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]9gQhRw]9g
Rx]9gQhRy]9g
Rz]9gQh]
!R{4]
!R|4]
!]R4;_uu_4t]P4tRRR4R}]9dR~]9gQhR]9gQhR€]9g
R]9gQh]
!R4]
!R”4]
!Rƒ4]
!R4]
!R„4]
!R…4]
!R†4]
!R‡4]
!Rˆ4]
!R‰4]
!RŠ4]
!R4]
!RŒ4]
!R4]
!RŽ4]
!R4R# +'giELã;i ]d)t]
!R] 24]P&!^4RtAEL·RtAii;i +'giELu;i ]d)t]
!R] 24]P&!^4RtAELRRtAii;i +'giEL;i ]d)t]
!R] 24]P&!^4RtAELÛRtAii;i ]d)t]
!R] 24]P&!^4RtAEL3RtAii;i +'giEL;i ]d)t]
!R] 24]P&!^4RtAELÖRtAii;i +'giEL¼;i ]d)t]
!R] 24]P&!^4RtAEL¨RtAii;i +'giELŽ;i ]d)t]
!R] 24]P&!^4RtAEL†RtAii;i +'giELl;i ]d)t]
!R] 24]P&!^4RtAELmRtAii;i +'giELS;i ]d)t]
!R] 24]P&!^4RtAEL8RtAii;i +'giEL;i ]d)t]
!R] 24]P&!^4RtAELRtAii;i)•zEValidation tests for XIC Panel UI integration with FedMart telemetry.N)ÚPathz)XIC Panel UI Integration Validation Suitez+
[TEST 1] HTML template exists and is validz'fedmart_ui/modules/xic_panel/index.htmlzHTML file not found at Úrz<!DOCTYPE html>z#<div class="xic-monitor-container">zid="runStatus"zid="timelineContent"zid="heatmapCanvas"zid="glyphSelect"zid="guardrailList"zid="specStatus"z$<script src="xic_panel.js"></script>u: ✅ PASS: HTML template valid with all required elementsu ⌠FAIL: z7
[TEST 2] CSS stylesheet exists and has critical stylesz*fedmart_ui/modules/xic_panel/xic_panel.csszCSS file not found at z.xic-monitor-containerz .xic-headerz.timeline-stepz .legend-barz .glyph-itemz.guardrail-eventz .spec-entryz.heatmap-legendu9 ✅ PASS: CSS stylesheet valid with all required stylesz;
[TEST 3] JavaScript file exists and has required functionsz)fedmart_ui/modules/xic_panel/xic_panel.jszJS file not found at zclass XICMonitorzconnectToFeed()zprocessTelemetry(telemetry)zrenderTimeline(telemetry)z%renderHeatmap(topGlyphs, globalScore)zshowGlyphMetrics(glyphId)zshowGuardrailAlerts(guardrails)z
pauseRun()z
throttleRun()ÚDOMContentLoadedu= ✅ PASS: JavaScript file valid with all required functionsz5
[TEST 4] Mock telemetry data matches expected schemaÚ
event_typeÚsymbolic_pipeline_runÚ timestampz2026-05-21T12:00:00ZÚrun_idÚxic_test_12345Úprogramzdemo_symbolic.gx.jsonÚ chain_labelÚ
test_chainÚ glyph_idsú glyph://aú glyph://bú glyph://cÚ glyph_countÚglobal_resonance_scoreg´Èv¾Ÿë?Ústeps_executedÚguardrails_triggeredÚresonance_map_summaryÚ
top_glyphsÚglyph_idÚweightgffffffî?g\Âõ(\ç?gìQ¸…ëé?Úaverage_resonancegÂõ(\ê?Ú raw_payloadÚ output_textz
Sample outputÚfused_symbol_summaryÚsummaryzFused symbolic resultzMissing required fieldsu% ✅ PASS: Mock telemetry data validz1
[TEST 5] UI elements properly configured in HTMLzid="connectBtn"zclass="btn-primary"z
id="pauseBtn"zclass="btn-warning"zid="throttleBtn"z width="600"zPanel z
not foundu/ ✅ PASS: All UI elements properly configuredz0
[TEST 6] Heatmap color gradient function existszcolorForWeight(normalized)Ú0x00cc66Ú204Ú0x0066ccÚ255Ú0xff9900Ú153u8 ✅ PASS: Color gradient function properly implementedz+
[TEST 7] WebSocket connection logic existsz
new WebSocketz ws.onmessagez
ws.onerrorz
ws.onclosez/ws/fedmart/xicu; ✅ PASS: WebSocket connection logic properly implementedz0
[TEST 8] Guardrail control endpoint calls existz/fedmart/control/pausez/fedmart/control/throttlezfetch(zapplication/jsonu7 ✅ PASS: Guardrail control endpoints properly calledz/
[TEST 9] Telemetry data binding to UI elementszgetElementById('stepCount')Ú stepCountElzgetElementById('execTime')Ú
execTimeElzgetElementById('runStatus')Ú runStatusElzgetElementById('heatmapCanvas')Ú
heatmapCanvasu/ ✅ PASS: Telemetry data properly bound to UIz'
[TEST 10] Error handling in JavaScriptÚtryÚcatchz
console.errorÚ ExceptionÚErroru/ ✅ PASS: Error handling properly implementedu&All 10 UI Integration Tests PASSED ✅z
Summary:u& ✅ HTML template valid and completeu1 ✅ CSS stylesheet includes all required stylesu( ✅ JavaScript module fully functionalu. ✅ Telemetry schema matches UI expectationsu% ✅ UI elements properly configuredu' ✅ Heatmap visualization implementedu, ✅ WebSocket connection handling completeu% ✅ Guardrail control actions wiredu% ✅ Telemetry data binding verifiedu ✅ Error handling in placez#
XIC Panel UI ready for deployment!zF======================================================================)rrr>rrrrrrr)z run-timelinezresonance-heatmapzglyph-inspectorzguardrail-controlz
spec-coveragezG
======================================================================)#Ú__doc__ÚsysÚjsonÚpathlibrÚpathÚinsertÚstrÚ__file__ÚparentÚprintÚ html_pathÚexistsÚopenÚreadÚ html_contentr*ÚexitÚcss_pathÚ css_contentÚjs_pathÚ
js_contentÚmock_telemetryÚrequired_fieldsÚissubsetÚkeysÚ
isinstanceÚintÚfloatÚlistÚdictÚpanelsÚpanel©óÚ4/home/t420/2125_GCE/tests/validate_ui_integration.pyÚ<module>rPsE
ðá
Û Ýð‘3‘t˜H“~×€h„ÙЀh„ñÐÙÐ?€IØ × Ñ × Ò ÐDÐ!8¸¸ Ð á
ˆi˜× Ô  Ø—v‘v“xˆ ÷
ð   Ô  0°LÔ  ˜|Ô  !       Ô   <Ô    Ô  1°\Ô   Ð
 ÐÙÐA€HØ ?‰?× Ò ÐAÐ 6°x°jÐ á
ˆh˜× Ô  Ø—f‘f“hˆ ÷
ð $   ˜  ˜  ˜  ˜   Ô  ˜    Ô   Ð
 ÐÙÐ?€GØ >‰>× Ò Ð4°W°IÐ á
ˆgÔ ˜qØ—V‘V“Xˆ
÷
ð  Ô   
Ô  (¨JÔ  &¨*Ô  2°jÔ  &¨*Ô 
Ô  ˜:Ô  ˜jÔ   Ô   Ð
 Ð-àÐÐÐÐÒ  ˜ ØØ ؘ[¨(°DИ[¨(°DИ[¨(°DÐð
 ð
"
ð Ø ˜?Ø ÐÒ%ð
ð'€Nò:€Oð × # N×$7Ñ$7Ó$9× UÐ<UÓ  n 3°S×  nÐ%=Õ×  nÐ%;Õ<¸d×  nÐ%<Õ=¸t×   Ð
 ÐÙ
ˆi˜× Ô  Ø—v‘v“xˆ ÷
ð   Ô ,Ð1FÈ,Ô1VÐ ˜ *Ð/DÈ Ô/TÐ  Ô -Ð2GÈ<Ô2WÐ    /°MÀ\Ô4QÐ  Ô  l€Fۈؘ Ö¨u¨g°ZÐ&@Óñ
Ð
 Ð
Ù
ˆgÔ ˜qØ—V‘V“Xˆ
÷
ð (¨:Ô  ˜Ô # u°
Ô':Ð ˜Ô # 
Ô':Ð ˜Ô # 
Ô':Ð  Ð
 Ð
Ù
ˆgÔ ˜qØ—V‘V“Xˆ
÷
ð ˜jÔ  ˜  ˜  ˜   
Ô   Ð
 Ð Ù
ˆgÔ ˜qØ—V‘V“Xˆ
÷
ð $   &¨*Ô     Ô   Ð