Documentation Menu · Living Runtime & Neural MoE

Living Runtime & Neural MoE

40-dimension realization registry, quantized HCME v5 Mixture-of-Experts, A/B/A/B background recompilation, and 2 GiB+ wide arenas.

Hector separates business semantics from physical realization. Instead of locking an application forever to hand-picked hash maps, locks, or caches, the realization engine treats implementation strategies as explicit options across a 40-dimension registry—where Absent emits zero bytes and zero instructions.

1 · TELEMETRY Seen Sample 2 · DETECTOR + MOE HCME v5 + LinUcb 3 · OFF-THREAD W^X compile_beside 4 · ATOMIC SWAP A/B/A/B Verified RRAC 168h seasonal pre-compile · Bernstein shift threshold · 0 hot-thread lock contention

1. The 40-Dimension Registry & 6-Axis Cost Vector

Every realization site resolves a Decision across Closed | Bound | Open | Absent using saturating u128 interval arithmetic across all declared axes simultaneously:

Mechanism AxisKey Concepts & Realization FormsOwner
Cost VectorSpeed, Memory, Size, Compilation, Energy, Disk (+ Latency policies)realize::space
Origin QualityWritten → Lock → Seed → Facts → Measured → Estimated → Default → Undecidedspace::choice
Keys & ColumnsDense direct array when span ≤ 8× rows, open addressing, bit-packing, partitioning, cohort sharingspace::keys/bits
Atlas Curve StoreExact machine-indexed, single-unit cost points preventing cross-unit dominance bugsspace::atlas
Scoped Goal & Option Directives
Developer Policy
-- Declare architectural goals per scope instead of hand-coding data structures
prefer p99 <= 2 ms on Physics
prefer Speed then Memory on Core
restrict undo(None) on Telemetry   -- omit undo journaling completely (0 bytes emitted)

2. Neural MoE (HCME v5) & Online LinUcb<10>

Machine learning inside Hector strictly orders candidate shapes so search converges faster—it never guesses correctness or replaces proof:

  • Ahead-of-Time GNN + MoE (HCME v5): 8-kind / 3-round graph neural network paired with a 4-expert / 4-head Mixture of Experts in quantized Q16 fixed-point (zero heap allocation per candidate), sealed in SHA-256 signed binaries.
  • Online Contextual Bandit (LinUcb<10>): 4 independent axis heads using Sherman–Morrison O(D²) updates (D = 10 features) to rank admissible runtime strategies during workload shifts.

3. Crash-Safe Living Adaptation & RRAC

realize::living safely re-optimizes rows, ahead, parts, and recursive in live traffic:

  1. Bounded Sampling (Seen): Runs under explicit CPU ppm budgets (PolicyBudget).
  2. Bernstein 2-Epoch Shift Detection: Flags regime changes without flapping on noise.
  3. Background compile_beside & A/B/A/B Trials: Builds candidate W^X images off the hot thread and confirms gains under bounded regret.
  4. Atomic Swap (Program::perform) & RRAC: Swaps at safe transaction boundaries while reading 168-hour seasonal schedules to pre-compile expected traffic peaks ahead of arrival.

4. Scale by Construction: 2 GiB+ Arenas & DBSP

  • Wide Memory Arenas (Layout::wide): Scales beyond 2 GiB (ROW_BITS = 26) up to 2^30 rows using 64-bit r14 window addressing and lazy page commits.
  • DBSP Deltas, Oatlog E-Graphs & Treap Extrema: Lowers sum/count into O(1) deltas and the ... minimizing queries into persistent treaps instead of O(N²) rescans.