clock.py: mono_ns single timebase; LatencyHistogram (raw reservoir, exact nearest-rank percentiles); PlaneClock per-plane seq clocks with strict staleness budgets (age==budget not stale — MHS FIX-9 lesson); DeadlineScheduler — single-driver timer heap with EARLY-WAKE on earlier-than-head insert (the jitter-budget mechanism), isolated callbacks. harness.py: seeded deterministic event storms (sequence-hash asserted) driving the REAL Rust ExecutionKernel via the MOCK bundle; reaction latency measured producer-stamp→post-fold across the queue hop exactly as the production account stream consumes; ACCOUNT_UPDATE wallet sentinel tracks kernel k_capital so synthetic storms never trip capital_frozen; sustained throughput reported alongside the gate. V0 GATE (prod host, 50k events, 5k concurrent deadlines, burst 8/12ms ≈ 667 ev/s offered): venue_event_reaction p99 7.19ms (<10ms budget), deadline_jitter p99 4.86ms (<25ms), zero early fires. Capacity artifacts: the 32/1ms and 16/12ms storms (archived reports) show intra-burst queueing dominating beyond ~1.3k ev/s offered at ~0.33ms/fold. 17 unit tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
523 B
Python
12 lines
523 B
Python
"""VIOLET — staged rebuild of the PINK-on-DITAv2 runtime.
|
|
|
|
Stage V0: reactor clock primitives + latency harness (this package).
|
|
Stage V1: observe-only runtime scaffolding (observe_guard, divergence).
|
|
|
|
Charter: violet-subsecond-rebuild-plan (operator memory) — VIOLET is the
|
|
highest-frequency color in the visible spectrum; the runtime is the
|
|
fastest-cadence member of the BLUE/PINK family. The DITAv2 kernel, exec
|
|
router, venue adapters and persistence are SHARED LIBRARIES; only
|
|
launcher/identity/namespaces fork.
|
|
"""
|