Files
2125_GCE/gx_lain/__pycache__/lain_glyph_bridge.cpython-314.pyc
T

128 lines
10 KiB
Plaintext
Raw Normal View History

+
0*jå$ãórRt^RIHtHtHtHt^RIHtHtH t RRlt
RRlt RRlt R R
lt
R R ltR
#)LAIN ↔ Supercharged Glyph Bridge
Connects the Supercharged Glyph Registry (LedoGlyph600) to the LAIN cognition
engine, injecting glyph metadata, frequency signatures, lineage, activation
envelopes, and resonance profiles into the cognition process.
)ÚOptionalÚDictÚAnyÚList)Ú get_superÚ search_superÚlist_super_idscó<V^8„dQhR\R\R\/#)éÚmanifestÚcontextÚreturn©Údict)Úformats"Ú1/home/dave/superdave/gx_lain/lain_glyph_bridge.pyÚ __annotate__r s!÷44ð43´ð4ñ4cóêVPR4pV'd!\V4pV'd\VRR7#VPR4pV'dH\V\4'd2V'd*V^,p\V4pV'd\VRR7#VPR.4pV'd5VF.p\ V^R7pV'gK\V^,RR7u# \RRR7#) a¢Load glyph context relevant to the GX file.
Determines which glyph(s) are relevant by:
1. Checking manifest["glyph_id"] if present
2. Searching glyphs by manifest["glyphs"] if present
3. Searching glyphs by manifest["tags"] if present
4. Falling back to default context if no glyph found
Args:
manifest: GX manifest dict
context: Execution context dict
Returns:
Dict with glyph metadata and context fields:
{
"id": str,
"name": str,
"category": str,
"score": int,
"praw": dict,
"originalMetrics": dict,
"activation": dict,
"lineage": dict,
"found": bool,
"_raw": dict,
}
Úglyph_idT)ÚfoundÚglyphsÚtags)ÚlimitNF)ÚgetrÚ_build_glyph_contextÚ
isinstanceÚlistr)r r rÚglyphÚ glyphs_listrÚtagÚresultss&& rÚload_glyph_contextr" ð:|‰|˜'€Hßܘ#ˆß ܰTÔ —,‘,˜xÓ(€Kß”z +¬t×4¿Ø˜q•>ˆÜ˜(Óß Ü°TÔ  <‰<˜ Ó #€Dß Ûˆ" 3¨aÔ0ˆ‰wÜ+¨G°A­J¸dÔô  ¨EÔ 2rcóRV^8„dQhR\\,R\R\/#)r
rrr
)rrÚbool)rs"rrrCs%÷-
ñ-
¤¬¥ð-
´-
Äñ-
rcó>V'V'RVPRR4RVPRR4RVPRR4RVPR^4RVPR/4RVPR/4RVPR/4R VPR /4R
VPR
/4R VPR /4R VPR /4R
VPR
4RVPR4RRRV/#RRRRRRR^R/R/R/R /R
/R /R /R
RRRRRRR/#)z¬Build a normalized glyph context dict.
Args:
glyph: Glyph dict from registry, or None
found: Whether a glyph was found
Returns:
Normalized glyph context dict
ÚidÚunknownÚnameÚcategoryÚscoreÚprawÚoriginalMetricsÚ
activationÚlineageÚroutingÚstorageÚ
governanceÚperiodÚbandr_rawÚnoneNF)r)rrs&&rrrCsA÷
à %—)‘)˜D )Ó E—II˜f iÓ ˜Ÿ ™  *¨iÓ U—Y‘Y˜Ó E—I‘I˜f bÓ ˜uŸy™yÐ):¸ ˜%Ÿ)™) L°"Ó u—yy ¨BÓ u—y¨BÓ u—y¨BÓ ˜%Ÿ)™) L°"Ó e—ii Ó E—I‘I˜  
ð
ð&
  ˜Ø   ˜rØ ˜"Ø    ˜    
ð
rcó<V^8„dQhR\R\R\/#)r
Ú lane_resultÚ
glyph_contextr
r)rs"rrrss&÷:ñ:Üð:äð:ô
ñ:rcó6VPR4'gV#\V4pVR,VR&VR,VR&VR,VR&VR,VR &VPR
/4pV'dW2R &VPR /4pV'd+VPR
R4VR&VPR^4VR&VPR/4pV'd+VPRR4VR&VPR^4VR&VPR/4pV'dWbR&V#)Inject glyph metadata into a lane result.
Adds glyph fields to the lane result without overwriting existing fields.
Extends lane_result with:
- glyph_id
- glyph_name
- glyph_category
- glyph_frequency_signature (praw)
- glyph_activation_mode
- glyph_lineage_signature
- glyph_symbolic_anatomy (originalMetrics)
Args:
lane_result: Lane result dict from lane processor
glyph_context: Glyph context from load_glyph_context()
Returns:
Extended lane_result dict with glyph metadata
rr&rr(Ú
glyph_namer)Úglyph_categoryr*Ú glyph_scorer+Úglyph_frequency_signaturer-Ú currentModer'Úglyph_activation_modeÚglyph_activation_scorer.Ú signatureÚglyph_lineage_signatureÚinheritanceWeightÚglyph_inheritance_weightr,Úglyph_symbolic_anatomy)rr)r7r8Úextendedr+r-r.Úmetricss&& rÚinject_glyph_metadata_into_lanerHss4ð. × Ñ ˜W× Ðô €HðÕ.€HˆZÑØ*¨6Õ2€Hˆ\ÑØ!.¨zÕ!:€HÐ
ÑØ+¨GÕ4€Hˆ]Ñð × Ñ ˜V RÓ (€Dß Ø04Ð×" Ó4€Jߨ,6¯N©N¸=È)Ó,TˆÐ)Ø-7¯^©^¸GÀQÓ-GˆÐ×Ñ  ¨2Ó.€Gߨ.5¯k©k¸+ÀyÓ.QˆÐ+Ø/6¯{©{Ð;NÐPQÓ/RˆÐ×ÑÐ 1°2Ó6€Gߨ-4Ð €Orcó0V^8„dQhR\R\/#)r
r8r
r)rs"rrr°s÷7ñ7¬4ð7´7rcóÔVPR4'g
RRRRRRRRRR/#VPR /4pVPR
^4p\R VR , 4pVPR
/4pRUu.uFp\VPV^44NK pp\RV44R,R , p\R V4pVPR/4p V PR^24p
\R V
R , 4p VR,VR,,V R,,p R\ V^4R\ V^4R\ V ^4R\ V ^4RRRVR,RVR
,/#uupi)Compute glyph-level resonance metrics.
Combines multiple glyph measurements into unified resonance metrics:
- activation_resonance: from activation.score
- frequency_resonance: from praw vector magnitude
- symbolic_resonance: from originalMetrics resonance field
- overall_resonance: combined normalized value
Args:
glyph_context: Glyph context from load_glyph_context()
Returns:
Dict with resonance metrics
rÚactivation_resonancegÚfrequency_resonanceÚsymbolic_resonanceÚoverall_resonanceÚ glyph_foundFr-r*gð?gY@r+c3ó2"TF
qV,xK R#5i))Ú.0Úvs& rÚ <genexpr>Ú*compute_glyph_resonance.<locals>.<genexpr>ÐséРA˜aŸ%š%«ùsgà?r,Ú resonancegš™™™™™Ù?g333333Ó?Trr&r<)ÚW)rÚminÚfloatÚsumÚround)
r8r-Úactivation_scorerKr+Ú praw_valuesÚpraw_magnituderLrGÚsymbolic_resonance_valrMrNs
& rÚcompute_glyph_resonancerd°sð × Ñ ˜W× "  !     Ø ˜5ð 
ð
ð×" Ó4€JØ!—~~ g¨qÓܘsÐ$4°uÕ$<Óð × Ñ ˜V RÓ (€DÙ2FÓGÑ2F¨Q”5˜Ÿ ! Q›Ö(Ñ2F€KÐÑÓÕÕE€Nܘc >Óð×ÑÐ 1°2Ó6€GØ$Ÿ[™[¨°bÓܘSÐ"8¸5Õ"@Óð ˜
 Õ

˜
ð ¤Ð&:¸AÓ >ØœuÐ%8¸œeÐ$6¸ÓœUÐ#4°aÓM }  ðùò!HsÁ1$E%có<V^8„dQhR\R\R\/#)r
Ú fused_symbolr8r
r)rs"rrrês&÷:ñ:Üð:äð:ô
ñ:rcó\V4pVPR4'VR,VR&VR,VR&VR,VR&VR,VR &VPR
/4pV'dVPR R 4VR
&VPR/4pV'dVPRR 4VR&RV9d5RVR, 2RVR, 2.pVPR.4V,VR&V#RVR&RVR&RVR&^VR &RVR&V#)axAugment fused symbol with glyph metadata.