GlyphRunner System
8f55949b11
Integrate XIC telemetry with FedMart (Phase 1)
...
Implement telemetry schema, adapter, and pipeline integration for
FedMart real-time monitoring of XIC symbolic pipeline execution.
## Components
### Telemetry Schema (integrations/fedmart/telemetry_schema.json)
- JSON schema defining XIC telemetry event structure
- Required fields: event_type, timestamp, run_id, glyph_count, etc.
- Optional: metadata, raw_payload for detailed analysis
- Supports multi-glyph resonance summaries and guardrail events
### FedMart Adapter (integrations/fedmart/xic_adapter.py)
- FedMartAdapter class for telemetry emission and spec registration
- emit_telemetry(): normalize and forward telemetry events
- register_spec_map(): push XIC specification status
- Control hooks: pause_run(), throttle_run() for guardrail actions
- Local mode (buffering) and remote mode (HTTP POST)
- Global singleton instance via get_adapter()
### Pipeline Integration (glyphos/symbolic_pipeline.py)
- Emit telemetry at end of run_symbolic_pipeline()
- Captures: glyph_ids, resonance scores, execution steps, guardrails
- Builds resonance_map_summary with top glyphs and averages
- Optional import (graceful degradation if FedMart not available)
### Validation Suite (tests/validate_fedmart_integration.py)
- 12 comprehensive tests covering all adapter functions
- Tests: telemetry emission, normalization, spec registration
- Tests: control actions, buffer operations, schema compliance
- Tests: multi-glyph resonance tracking, guardrail event capture
- All 12 tests passing ✅
## Key Features
✅ Telemetry normalization (timestamp ISO 8601, run_id generation)
✅ Multi-glyph resonance summaries (top 5 glyphs, average resonance)
✅ Guardrail event tracking (truncation, max steps, etc.)
✅ Spec map registration for specification tracking
✅ Control actions (pause/throttle for guardrail responses)
✅ Local mode for testing, remote mode for production
✅ Schema compliance validation
✅ Graceful degradation if FedMart not available
## Testing
All 12 validation tests passing:
✅ Schema validation
✅ Adapter initialization
✅ Telemetry emission (local mode)
✅ Normalization with defaults
✅ Spec map registration
✅ Control actions
✅ Pipeline telemetry integration
✅ Guardrail event capture
✅ Multi-glyph resonance tracking
✅ Buffer operations
✅ Schema compliance
✅ Empty buffer handling
## Next Steps
Phase 2: UI Visualization - real-time dashboard for FedMart
Phase 3: XIC v2 Control Flow - IF, MATCH, LOOP operations
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-05-21 02:40:10 -04:00
GlyphRunner System
9792449157
Implement GlyphOS Event System
...
Add lightweight, in-process event bus with Cognitive Kernel integration:
New Components:
- glyphos/events.py: EventBus class + functional API
* EventBus: publish/subscribe pattern with history
* Event type definitions (EventType literal)
* Singleton: get_event_bus(), emit(), on()
* History filtering and limits
* Graceful handler error handling
- tests/test_events.py: Comprehensive test suite (16 tests, 100% pass)
* EventBus subscription/publishing/history
* Global singleton behavior
* Functional API (on, emit, get_event_bus)
* Kernel integration tests
* Cognition event emission tests
Modified:
- glyphos/cognitive_kernel.py: Event emissions at key points
* kernel.warmup.completed: After warmup() completes
* cognition.started: At start of execute_gx()
* cognition.completed: After execute_gx() completes
* glyph.resonance.updated: When glyph resonance present
- glyphos/__init__.py: Export events module
Test Results:
- Registry tests: 12/12 ✅
- Bridge tests: 10/10 ✅
- Kernel tests: 8/8 ✅
- Event system tests: 16/16 ✅ (NEW)
- Integration tests: 6/6 ✅
- Total: 52/52 ✅
No breaking changes - all 36 existing tests still pass.
2026-05-20 18:11:25 -04:00
GlyphRunner System
5c4bfb2dc1
Implement GlyphOS Cognitive Kernel
...
Add a system service layer on top of LAIN cognition and Supercharged Glyph Registry:
Components:
- glyphos/cognitive_kernel.py: CognitiveKernel class + functional API
* CognitiveKernel: Main orchestrator with execute_gx(), execute_symbolic()
* Result accessors: get_last_result(), get_last_trace(), get_last_fused_symbol()
* get_kernel(): Singleton kernel instance
* run_gx(): Convenience function for global kernel
* kernel_status(): Status introspection
- glyphos/__init__.py: Package initialization
- tests/test_cognitive_kernel.py: Comprehensive test suite (8 tests, 100% pass)
* Kernel initialization and warmup
* GX execution and result validation
* Result accessor methods
* Singleton pattern
* Functional API
- COGNITIVE_KERNEL.md: Complete documentation
Test Results:
- 12 registry tests ✅
- 10 glyph bridge tests ✅
- 6 integration suites ✅
- 8 cognitive kernel tests ✅
- Total: 36 tests, 0 failures
No breaking changes - all existing tests pass.
2026-05-20 18:03:25 -04:00
GlyphRunner System
4bc49c90b3
Implement LAIN ↔ Supercharged Glyph Bridge
...
New module:
- gx_lain/lain_glyph_bridge.py: Bridge connecting LedoGlyph600 to LAIN cognition
Functions:
- load_glyph_context(manifest, context): Load relevant glyph from registry
- inject_glyph_metadata_into_lane(lane_result, glyph_context): Add glyph fields to lane
- compute_glyph_resonance(glyph_context): Calculate glyph resonance metrics
- augment_fused_symbol_with_glyphs(fused_symbol, glyph_context): Add glyph to final output
Modified:
- gx_lain/runtime.py: Integrate glyph bridge into execute_with_lain()
* Load glyph context as step 1 of cognition
* Inject glyph metadata into each lane result
* Augment fused symbol with glyph context
* Add glyph_resonance to diagnostics
* Track glyph loading in cognition_trace
Tests:
- tests/test_lain_glyph_bridge.py: 10 comprehensive tests
* Context loading (with/without glyph)
* Metadata injection (preserves existing fields)
* Resonance computation (4-component metric)
* Symbol augmentation
* Full integration test
Features:
- Glyph metadata: id, name, category, score, period, band
- Frequency signatures: praw (P, R, A, W)
- Activation envelopes: mode, score
- Lineage: signature, inheritance weight
- Symbolic anatomy: power, complexity, resonance, stability, connectivity, affinity
- Resonance profile: activation + frequency + symbolic metrics (0.0-1.0)
All 18 integration tests still passing (no regressions).
2026-05-20 17:41:47 -04:00
GlyphRunner System
f5dba41cf2
Implement Supercharged Glyph Registry (LedoGlyph600)
...
New modules:
- glyphs/super_registry.py: Registry for 600 supercharged glyphs
- tests/test_supercharged_registry.py: Comprehensive test suite
Features:
- load_all_supercharged(): Lazy-load 600 glyphs from LedoGlyph600.json
- get_super(): Retrieve glyph by ID with all supercharged fields
- list_super_ids(): List all 600 glyph IDs (sorted)
- search_super(): Search by query across specified fields
- super_stats(): Registry metadata and statistics
- get_super_field(): Nested field access via dot-notation
- list_super_by_category(): Filter by category
- get_super_by_band(): Filter by frequency band
- get_glyphs_by_score_range(): Filter by score range
Data source: /mnt/d/users/dave/Downloads/LEDONOVA/LedoGlyph600.json
Supercharged fields:
- Symbolic anatomy (originalMetrics: power, complexity, resonance, stability, connectivity, affinity)
- Frequency signatures (praw: P, R, A, W)
- Contributor inheritance (lineage: predecessors, siblings, descendants, signature)
- Activation envelopes (activation: vector, score, signature, modes)
- Resonance profiles (activation modes: dormant, present, resonant, overdrive)
- Routing & governance metadata
All 12 tests passing.
2026-05-20 17:12:30 -04:00