Files
2125_GCE/glyphos/__pycache__/symbolic_pipeline.cpython-314.pyc
T

107 lines
18 KiB
Plaintext
Raw Normal View History

+
2026-07-09 12:54:44 -04:00
þÜ0jÓ3ãó,Rt^RIt^RIHtHt^RIHtHtHtH t ]P!] 4t ]!RR44t
]!RR44t]!RR 44t]!R
R 44t]!R R
44tRRltRRRlltRRltRRRlltR#)zõSymbolic Pipeline Abstraction for XIC.
2026-07-09 12:54:44 -04:00
Provides a structured, glyph-aware pipeline for symbolic cognition execution.
Routes prompts through the LAIN 8-lane cognition kernel with explicit step tracking
and comprehensive glyph resonance metrics.
N)Ú dataclassÚfield)ÚAnyÚDictÚListÚOptionalcó0a]tRt^toRtV3RltRtVtR#)ÚGlyphResonanceMetricsz2Glyph resonance metrics from LAIN cognition layer.cóV<V^8„dQh/S[;R&S[;R&S[;R&S[;R&S[;R&#)éÚweightÚ
lineage_scoreÚcontributor_scoreÚfrequency_scoreÚ
grammar_score©Úfloat)ÚformatÚ
__classdict__s"€Ú0/home/t420/2125_GCE/glyphos/symbolic_pipeline.pyÚ __annotate__Ú"GlyphResonanceMetrics.__annotate__sEø‡ñ
ñÑñ ñ
Ññ ñ Ññ
ñÑòó©N)Ú__name__Ú
__module__Ú __qualname__Ú__firstlineno__Ú__doc__Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©rs@rr r sø‡áƒrr có€a]tRt^toRt]!]R7tRtV3RlRlt R
V3RlRllt
V3RlR lt V3R
lt R t
VtR #)ÚGlyphResonanceMapz*Maps glyph IDs to their resonance metrics.©Údefault_factoryçcó6<V^8„dQhRS[RS[S[,/#)r Úglyph_idÚreturn)Ústrrr )rrs"€rrÚGlyphResonanceMap.__annotate__s!ø€÷-©Cð-±HÑ=RÕ4Sñ-rc ó8VPPV4#)z+Get resonance metrics for a specific glyph.)Ú
resonancesÚget)Úselfr)s&&rÚget_glyph_resonanceÚ%GlyphResonanceMap.get_glyph_resonancesà×" ,rcóL<V^8„dQhRS[RS[S[S[S[3,,/#)r Únr*)ÚintrÚtupler+r )rrs"€rrr,#s+ø€÷ð!©D±±sÑ<QÐ7QÕ1RÕ,Sñ!rc óZ\VPP4RRR7pVRV#)zGet top N glyphs by weight.có(V^,P#)é©r )Úxs&rÚ<lambda>Ú2GlyphResonanceMap.get_top_glyphs.<locals>.<lambda>'s ˜!˜A$Ÿ+š+rT)ÚkeyÚreverseN)Úsortedr.Úitems)r0r4Ú
sorted_glyphss&& rÚget_top_glyphsÚ GlyphResonanceMap.get_top_glyphs#s1äØ O‰O× ô
ˆ
ð
˜R˜aÐ Ð rcó <V^8„dQhRS[/#)r r*r)rrs"€rrr,,sø€÷,¡uñ,rc ó¶VP'gR#\RVPP444pV\VP4, #)z(Get average resonance across all glyphs.r'c3ó8"TFqPxK R#5i)Nr:)Ú.0Úms& rÚ <genexpr>Ú:GlyphResonanceMap.get_average_resonance.<locals>.<genexpr>0séÐ?Ñ&> —HHÓ&>ùs)r.ÚsumÚvaluesÚlen)r0Útotals& rÚget_average_resonanceÚ'GlyphResonanceMap.get_average_resonance,s?àˆÙÜÑ? d§o¡o×&<Ñ&<Ô&>Ó?ˆØ”s˜4Ÿ?™?Ó+rcóH<V^8„dQh/S[S[S[3,;R&S[;R&#)r r.Úglobal_resonance_score)rr+r r)rrs"€rrr,s*ø‡ñ‘SÑñrrN)é)rrrrrrÚdictr.rSr1rCrPrr r!r"s@rr$r$s=ø‡á4Ù38ÈÔ3N€JØ$'Ð÷,÷'ƒrr$cópa]tRt^4toRt]!]R7t]!]R7t ]
V3RlRl4t V3Rlt Rt
VtR#)Ú FusedSymbolz2Fused symbolic representation from LAIN cognition.r%có:<V^8„dQhRS[S[S[3,RR/#)r Úlain_fused_symbolr*rW©rr+r)rrs"€rrÚFusedSymbol.__annotate__<s'ø€÷VñV±±c¹3°hµðVÀMñVrc  óöVPRR4pVPR.4p\VPRR4R7pVPR/4pVP4wrg\V\4'gK\ VPRR4VPR R4VPR
R4VPR R4VPR R4R
7VP V& V!W#VR7#)z)Parse fused_symbol dict from LAIN result.ÚsummaryÚÚ glyph_idsrSr')rSÚ
resonance_mapr r
rrr)r r
rrr)r]r_r`)r/r$rAÚ
isinstancerUr r.)ÚclsrYr]r_r`Ú
raw_resonancer)Ú metrics_dicts&& rÚfrom_lain_resultÚFusedSymbol.from_lain_result;ð$×'¨ °2Ó6ˆØ%×)¨+°rÓ:ˆ ä)Ø#4×#8Ñ#8Ð9QÐSVÓ#Wô
ˆ
ð-¨o¸rÓ
Ø&3×&9Ñ&9Ö&;Ñ "ˆ˜×-Ü5JØ'×+¨H°cÓ:Ø".×"2Ñ"2°?ÀCÓ"HØ&2×&6Ñ&6Ð7JÈCÓ&PØ$0×$4Ñ$4Ð5FÈÓ$LØ".×"2Ñ"2°?ÀCÓ"Hô 6
×Ó'<ñ˜7À}ÔUrcóN<V^8„dQh/S[;R&S[S[,;R&S[;R&#)r r]r_r`)r+rr$)rrs"€rrr[4s/ø‡ññ‘Cñ
 rrN)rrrrrrÚlistr_r$r`Ú classmethodrerr r!r"s@rrWrW4s8ø‡á °Ô6€IÙ',Ð=NÔ'O€Mà÷VóðV÷ƒrrWcóBa]tRt^StoRt]!]R7tV3RltRt Vt
R#)Ú SymbolicStepz1A single step in the symbolic pipeline execution.r%có`<V^8„dQh/S[;R&S[;R&S[;R&S[S[S[3,;R&#)r ÚnameÚkindÚpayloadÚcontext)r+rr)rrs"€rrÚSymbolicStep.__annotate__Ss>ø‡ñ ñ ñ
 ñ #s(
rrN) rrrrrrrUrprr r!r"s@rrkrkSsø‡á$°DÔ9€G÷
ƒrrkcó4a]tRt^\toRtRtV3RltRtVtR#)ÚSymbolicPipelineResultz(Result of a symbolic pipeline execution.Ncó^<V^8„dQh/S[S[,;R&S[;R&S[S[,;R&#)r ÚstepsÚ output_textÚ fused_symbol)rrkr+rrW)rrs"€rrÚ#SymbolicPipelineResult.__annotate__\s6ø‡ñ  Õ ÑññÑñ ñ
™;Õ rr) rrrrrrwrr r!r"s@rrsrs\sø‡á+/€L÷ ƒrrscólV^8„dQhRRR\\\\\3,3,/#©r Úpipeline_resultrsr*rZ)rs"rrrds.÷ñØä Œ#Œt”CœH
Õñrc ó\VP'g/#VPP'g/#/pVPPPP4FEwr#RVPRVP
RVP RVPRVP/W&KG V#)usExtract glyph resonance metrics from a pipeline result.
Returns dict mapping glyph_id → resonance metrics dict.
r r
rrr) rwr`r.rAr r
rrr)r{Úresultr)Úmetricss& rÚextract_glyph_resonancesrds ð × '× ˆ à × '× 5× ˆ à
€F؈à g—n‘nØ ˜W×  ×!:Ñ!:Ø ˜w× ˜W× 
ˆÓñ[ð €Mrc ólV^8„dQhRRR\R\\\\3,,/#)r r{rsr4r*)r5rr6r+r)rs"rrr~s4÷ñØä
ðô
Œ%””U
Õ
ÕñrcóúVP'g.#VPP'g.#VPPPV4UUu.uFwr#W#P3NK upp#uuppi)z…Get top N glyphs by resonance weight from a pipeline result.
Returns list of (glyph_id, weight) tuples sorted by weight descending.
)rwr`rCr )r{r4r)r~s&& rÚget_dominant_glyphsr~suð × '× ˆ à × '× 5× ˆ ð"1×!=Ñ!=×!KÑ!K×!ZÑ!ZÐ[\Ô!]ô á!]Ñ ˆ
—>"Ù!]ò ðùó sÁA7có(V^8„dQhRRR\/#rz)r+)rs"rrrs÷ñØäñrc ó¸VP'gR#VPP'gR#VPPpRVPR
2R\VP4 2RR.pVP ^4FCwr4VP
RV R VPR
R
VPR
R VPR
24KE R PV4#)
z/Format a human-readable glyph resonance report.zNo glyph resonance data.zNo resonance map available.zGlobal Resonance Score: z.3fzGlyphs Engaged: r^zTop Glyphs by Weight:z z : weight=z
2026-07-09 12:54:44 -04:00
, lineage=z, contributor=Ú
) rwr`rSrNr.rCÚappendr r
rÚjoin)r{Ú resonanceÚlinesr)r~s& rÚformat_glyph_resonance_reportrŠð × '×  × '× 5× ×:€Ià
" 9×#CÑ#CÀCÐ"HÐ
œ3˜y×
Øð 
€Eð'×5°aÖˆØ
Ø
2026-07-09 12:54:44 -04:00
˜) G§N¡N°3Ð#7ð8Ø×,¨SÐ2Ø"×4°SÐ

ñ 9‰9 Ðrc
óÎV^8„dQhR\R\\\\3,,R\\,R\\\,,R\
/#)r Úpromptrpr)r_r*)r+rrrrrs)rs"rrr®s[÷MñMÜ ðMä
2026-07-09 12:54:44 -04:00
”dœ3¤˜8•nÕ
Mô”sMôœœS Õ"ð Mô
ñ Mrcó´ ^RIHp^RIHp.pV!4pVP R4pTP \
RRT\T;'g/4R74\T;'g/4p .p
2026-07-09 12:54:44 -04:00
V'dV PR^
4p \V4V 8”dVRV pV
P R V 24W9R
&VP \
R R R
VR \V4/V R74V
'd#VP \
R
RRV
/RV /R74M-V'd&W)R&VP \
2026-07-09 12:54:44 -04:00
RV 2RVV R74VPV4p RRRRRRRRRRRR ^R!^R"^R#\T4/./pRRR ^R!^R"^R#\T4/.pTPTTT RT R$7pTPR%4pRpT'd<\PT4pTPR&4;'g
TP pMTPR&4;'gTpT'dMTP \
R'R%R(TP R
TP"R)TP$P&//R74^R*IHp^R+IHp^RIp^R,IHp.pR-pT'djTP$'dXTP$P5^4UUu.uFwppRTR.TP6/NK pppTP$P94pR/R0R1TP;4P=4R2,R3T PR3R44R5T PR54R
T'd
TP"M.R6T'd\TP"4M^R)T'd)TP$'dTP$P&MR-R7\T4R8T
R9R:TR;T/R<R&TR=T'dR(TP R
TP"/MR// pT!T4T'dTP"'d€^R>IH pTP"FipT!T4pT'gKTPR?.4pTPR@RA4pTPRB/4pT!TTTTRCTPRC4/RD7Kk \TTTR7# \dp
\TRT
2RR7uRp
2026-07-09 12:54:44 -04:00
?