Abstract
Running an always-on or long-horizon AI agent by streaming every observation, policy, and past turn into a single monolithic context window hits two ceilings: compute and latency grow quickly, and relevant instructions get diluted by accumulated history. Across long multi-task exchanges, models have no deterministic way to track active tasks, superseded instructions, or completed effects, so they fail to adjust their behavior and drift. Static system prompts and naive retrieval pipelines do not fix this, especially when the base model is small.
We present Myelin, a local-first, runtime-agnostic Reactive Decision Kernel (RDK) that attaches to existing agent harnesses (Zeph, Claude Code, Codex, Hermes, and Pi) to perform externalized attention and trajectory steering. Drawing on cortico-thalamic sensory selection, event-sourced graph state (ActiveGraph), and calibrated System-1 decision models, Myelin separates zero-cost deterministic state tracking and pre-filtering from bounded parallel waves of calibrated binary and graded judgments (Noul, Score, Choice). World facts, bi-temporal memories, declarative rules (RuleSpec), and versioned calibration parameters (PolicyParams) live in one materialized SQLite graph, while raw execution traces stay by pointer in the host harness (zero duplication). At each lifecycle event, Myelin computes an atomic BroadcastPlan that injects a small, salience-weighted slice of cached tokens to steer the downstream model's trajectory (or block, defer, or route work across endpoints) without modifying base model weights.
We evaluate Myelin under strict Dev / Sealed-Test separation across 145 logged runs at $0.00 in paid API spend using local Apple Silicon models (BGE-small, MiniLM-L6, and LiquidAI/d1-Omni-2B) and air-gapped claude-haiku / claude-sonnet rubric judges. On all 238 untouched LongMemEval-S sealed test questions, local retrieval reaches 97.0% Recall@5, 93.3% All-Evidence@5 (+31.5 percentage points over our v1 truncated baseline), and 0.962 MRR (with a zero-reranker fast tier hitting 92.4% All@5 in 16 ms p95). Role-aware context packing (packRoleAwareContext) matches full raw top-5 sessions on sealed rubric-graded Haiku QA (86.7% vs. 86.7%, +50.0 points over v1) using 4.97x fewer context tokens (3,168 vs. 15,756), while beating full sessions on Dev (91.7% vs. 88.3%). On live local 2B d1-Omni-2B, Myelin reaches 15/16 (93.8%, +62.5 points, 0.0% false-trigger rate) on untouched adversarial steering, 12/12 (100%) on executable coding steerability at 14.7x to 18.5x fewer tokens than prompt stuffing, 6/6 on live multi-turn coding traps, and cuts calibration Brier error by 40.4% to 79.8% across three independent domains via pure-TypeScript L1 SideQuestions combiners.
1. Introduction
Modern agent systems rely heavily on one pattern: dump instructions, tool schemas, retrieved notes, and conversation history into a single prompt and rely on a large generative model to follow every rule, notice when it is looping, remember earlier corrections, and avoid dangerous actions.
That monolithic pattern breaks down in two practical settings:
- Always-on interaction and multi-task context rot. Streaming continuous screen state, audio, calendar deltas, tool outputs, and interleaved multi-task exchanges into one window wastes compute and degrades attention as history piles up. Without a deterministic mechanism tracking active tasks, superseded instructions, and completed effects, agents fail to adjust their behavior after mid-session corrections and drift across long sequences.
- Small-model agent harnesses. Smaller, faster generative models (Haiku-class, Flash-Lite-class, or local 3B to 30B models) are cheap and responsive enough to run continuously, yet they frequently forget mid-session constraints, oscillate on failing edits, weaken unit tests to escape loops, or trigger unintended side effects when left unsteered.
The usual response is to scale up to a larger monolith. We investigate a complementary direction: scaling down and composing at runtime. As model architectures and hardware improve, smaller specialized models achieve higher decision accuracy and faster adaptation per unit of compute. When narrow gating and selection decisions are cheap and calibrated, a harness can lift two operations outside the main model's weights:
- Deterministic state tracking and selective input routing: Code tracks active tasks, receipts, churn counters, and obvious fast-paths at
$0and< 3 ms; calibrated System-1 decision models fire only when semantic judgment is genuinely required. - External token-cache trajectory steering: A curated, salience-weighted cache of distilled constraints, beliefs, and spans sits outside the base model. At each step, the gate selects a small token slice (typically 40 to 600 tokens) and injects it right where it alters the downstream model's next action.
This resembles cortico-thalamic control2 in biology, where top-down goals tune a fast relay to suppress irrelevant streams and amplify task-relevant working memory. Mechanistically, injecting a targeted slice of cached tokens acts as a non-parametric steering intervention, roughly analogous to an attention head pulling relevant keys from a KV cache, with one practical property: because the steering surface is plain tokens rather than hidden activation vectors or LoRA weights, it is human-inspectable, directly editable, and portable across base models.
Contributions
- Formalization of Externalized Trajectory Steering: A unified
Event -> ActiveGraph -> BroadcastPlanmodel combining zero-cost deterministic operators, bounded parallel System-1 decision waves, bi-temporal salience decay, and"do nothing"tie-breaking (Section 3). - Myelin v0.2 Architecture: A lightweight, runtime-agnostic TypeScript library verified natively on Node 22+ (
node:sqlite/better-sqlite3) and Bun (bun:sqlite), with a 3-plane local-first storage split (zero raw trace duplication), declarative SQLiteRuleSpecnodes, separatedPolicyParams, hardegress: "local"privacy pinning,<= 16-question wave batching, and normalized adapters for five real agent harnesses (Section 4). - Cheap-First Evaluation Protocol and Gate Discard Audit: A reproducible benchmark comparing Myelin against five steelman baselines (deterministic-only rules, local
MiniLM-L6reranking, static prompt stuffing, raw small model, and a frontier monolith) while logging everything the gate threw away so efficiency gains cannot hide false negatives (Section 5). - Reproducible Example Harness and Counterfactual Trace Viewer: A drop-in 3-scenario coding harness demo and interactive timeline inspector built on event-sourced
fork(atSeq)anddiff()replays (Section 5.4).
2. Background and Related Work
Scaling, Model Shape, and Compositional Harnesses. The Bitter Lesson1 argues that general methods scaling with computation via search and learning outperform hand-crafted domain knowledge over time. Rather than fighting that observation with brittle heuristics, recent work examines where learning belongs in compound systems. Alex L. Zhang's Language Model "Shape"3 focuses on matching a model's input and output interface to a specific system slot, while Zhang, Li, and Khattab's The Mismanaged Geniuses Hypothesis4 frames decomposition and model composition as learnable skills, later demonstrating length and strategy generalization in Language model harnesses are compositional generalizers5. Myelin builds the instrumented runtime substrate for this co-design problem, allowing hand-seeded policies, fitted calibration, and future distillation to be compared fairly.
Routing, Distillation, and Learned Orchestration. RouteLLM6 trains routers from preference data to allocate queries between strong and weak LLMs. MiniLLM7 distills larger generative models into smaller ones via reverse KL. ToolOrchestra8 trains an 8B RL controller to coordinate tools and larger models. Counterevidence also shows that multi-agent setups can underperform a single agent on multi-hop reasoning under strictly matched thinking token budgets (Single-Agent vs. Multi-Agent9). We treat that result as a hard design constraint: every Myelin claim is scored on total assembled system cost (agent tokens, decider overhead, and wall-clock latency), not on its cheapest component.
Gated Perception, Agent Memory, and Decision Models. Wimmer et al.2 characterize prefrontal-thalamic gating of sensory selection under divided attention. In streaming multimodal AI, Dispider10 decouples perception, interaction timing, and reply generation, while Thinking Machines Lab11 studies continuous interaction paired with asynchronous background reasoning. For long-horizon memory, LongMemEval12 benchmarks multi-session recall, temporal reasoning, knowledge updates, and abstention. Non-generative System-1 decision models such as TypeSafe System One (Jev)13 expose calibrated primitives (Noul, Score, Choice) with explicit criteria, enabling fast parallel evaluation without generative decoding overhead.
3. Problem Formulation: Externalized Trajectory Steering
3.1 Canonical Event Stream and Situational Frame
An agent harness emits a discrete stream of typed events:
e_t = (id, kind, origin, lineageId, frame, payload, attachments?, egress)Here kind spans both coding-agent lifecycle hooks (session.start, turn.input, context.prepare, tool.before, tool.after, turn.complete, session.end) and ambient interaction deltas (perception.delta, clock.tick, effect.receipt, work.*). origin (owner | agent | sensor | thinker | worker | voice | clock) prevents self-echo loops; lineageId links causal chains across channels; frame = (place, device, app, file, who, quiet, when) captures situational context; attachments carries pointer-first AttachmentRef descriptors for large inputs (> 4 KB); and egress (local | any) enforces a hard privacy boundary.
3.2 Three-Plane Local-First State
To keep the cognitive layer fast, portable, and free of raw trace bloat, state is partitioned into three planes:
- Plane A (Canonical Raw Traces, Host-Owned): Full transcripts, tool stdout/stderr, and large attachments stay inside the host harness (
bb.db, Claude/Codex.jsonl, local files). Myelin references them exclusively via dual locators{ localRef, casRef }hydrated on demand through a read-onlyTraceResolver. - Plane B (Materialized Active Graph, SQLite): An append-only mutation log projects a materialized graph
G_t = (V_t, E_t, w_t, R_t, Theta_t)holding world and memory nodes (episode,span,entity,fact,belief,constraint,goal,skill) with bi-temporal validity intervals(validFromMs, validToMs, lastConfirmedMs), egress tags, and salience weightsw in [0.05, 5.0]; weighted directed edges (isPartOf,about,mentions,supersedes,contradicts,triggers,attendsTo,gates,reinforces); declarativeRuleSpecnodes and versionedPolicyParams(uncalibratedvs.fitted); and an Effect Ledger recording issuedBroadcastPlans, sibling statuses, and delivery receipts. Replaying the log supports deterministicfork(atSeq)anddiff()for$0counterfactual evaluation on cached judgments. - Plane C (Decision and Outcome Dataset, SQLite): Content-addressed
decision_cache, deduplicateddecision_views,(view, question, p, confidence)rows (decision_examples), and delayed hindsightoutcome_labels (test_passed,user_overrode,user_confirmed,delivered). Plane C supports$0replay caching, empirical threshold fitting, and optional opt-in distillation.
3.3 Two-Stage Bounded Wave Evaluation
Given (G_t, e_t) and a hard budget B = (maxDepth, maxJudgments, maxMs, maxUsd), evaluation runs in ordered stages (Stage 0 speculative memory before Stage 1 interaction steering):
- Deterministic Pre-Filter (
0model calls): Matching rules run pure code operators (path globs, file-churn counters, safe-read allowlists, heartbeat collapsing, hybrid candidate retrieval). Rules returning null incur zero model cost. - Parallel Batched System-1 Wave: Candidate rules sharing a
viewKeymerge their typed questions into parallel calls to a calibrated System-1 decider returning probabilitiesp in [0, 1], automatically chunked to<= 16questions per call and pinned tolocalDeciderwheneveregress == "local". - Bounded Recursive Zoom and Calibrated Gating: Only when a coarse screen lands in an uncertainty band or flags multi-span relevance does the engine spend a Wave-2 zoom call over hydrated spans, strictly within budget
B. Final actions pass through versionedPolicyParams, with"do nothing"winning ties. - Atomic
BroadcastPlan: All emitted dispatches (harness verdictsallow | ask | deny | inject, voice acknowledgments, thinker delegations, memory writes,OWEDclock notifications) commit atomically to the Effect Ledger underlineageIdbefore any destination runs.
3.4 Total-System Objective
We score the assembled system, never a gate in isolation. For steering tasks, we optimize:
compositeUtility = TaskSuccess
- 0.50 * FalseTriggerRate
- 0.02 * (meanInjectedTokens / 1000)
- 0.01 * usdPer1kEventssubject to hard guardrails: FalseTriggerRate <= 0.10, fast-hook p95 <= 1500 ms, and zero egress: "local" leaks. For memory tasks, we report Recall@5, MRR, NDCG@10, and frozen small-model QA accuracy per injected token.
4. System Architecture: Myelin v0.2
Myelin v0.2 is a lean, runtime-agnostic TypeScript ESM library verified natively under both Node 22+ (node:sqlite, node:crypto) and Bun (bun:sqlite), with a single runtime dependency (zod).
4.1 Core Modules
- Runtime-Agnostic SQLite Port (
src/core/sql.ts): A ~30-line synchronousSqlDbadapter auto-selectingnode:sqlite, an injectedbetter-sqlite3handle (shared directly with Zeph), orbun:sqlite. - Three-Module Store (
src/store/):ledger.ts(slim ~200B event headers, atomicBroadcastPlan,siblingsOf,settleDispatch, queue supersession),world.ts(bi-temporal nodes/edges, heartbeat-collapsingsetFact(), cryptographicforget(),RuleSpecandPolicyParams, pointer-backed spans with external-content FTS5, and weighted hybrid retrieval), anddataset.ts(Plane C cache, views, examples, and delayed outcome labels). - Declarative and Programmatic Rule Engine (
src/core/rules.ts,src/core/engine.ts): Evaluates both serializable SQLiteRuleSpecnodes (inspectable viagraph.diff(), tunable without editing TypeScript) and programmaticCodeRuleoperators. Supports opt-inselfModify(off | propose | bounded-auto, defaulting tooff) while enforcinglocked: trueanti-Goodhart locks on safety gates, egress boundaries, andOWEDrules. - Typed Model Registry (
src/models/): AbstractsDeciderModel,Embedder,Reranker, andCompleteModelbehind unified token/latency/USD metering, enforcing<= 16-question chunking and hardegress: "local"pinning. Ships withjevDecider,zephDecider, offline$0rulesDecider,budgetedDecider, non-truncating chunkedollamaEmbedder, localuv-backedminilmReranker(ms-marco-MiniLM-L-6-v2), andcliCompleteModelwrappers for small-model runs.
4.2 Normalized Harness Adapters and Composable Packs
Five harnesses map onto the same contract via ~50-line adapters (src/adapters/): Zeph, Claude Code, Codex CLI, Hermes Agent, and Pi Agent (createPiExtension).
| Pack | Kind | Role in Externalized Steering |
|---|---|---|
memory-kv | Code + Graph | Stage-0 non-truncated 2-wave span attention plus write-time bi-temporal distillation and supersedes decay. |
coding-rules | Code + Graph | Path and graph-matched just-in-time constraint/skill injection replacing decaying monolithic prompts. |
thrash-guard | Code + Decider | Deterministic file-churn and failure counter plus 3-Noul detection of edit oscillation, test-weakening cheats, and scope drift. |
declarative (risk-gate, owed-clock) | Pure RuleSpec (locked: true) | Deterministic safe-read fast-path plus 3-zone semantic risk gate (allow/ask/deny); un-droppable OWED reminders settled strictly by effect.receipt. |
interaction-agent | Code + Graph | Bi-temporal heartbeat facts, sibling-aware work.started ack debounce, pointer-first AttachmentRef routing, Stage-1 clarify-vs-act, and live correction-to-constraint promotion. |
4.3 Lessons From v1 Pilot Experiments That Shaped v0.2
Four rounds of pilot runs on an earlier prototype (myelin-script) surfaced three concrete confounders that shaped v0.2:
- Silent 1,000-byte truncation: An upstream local embedder cap clipped marked evidence spans in 37/56 sampled LongMemEval questions; v0.2 removes fixed byte caps in favor of full turn/chunk indexing and pointer-hydrated spans.
- The Fusion Tax: Blind 50/50 Reciprocal Rank Fusion over BM25 and dense vectors cost 4/56 questions compared to weighted combinations; v0.2 uses weighted hybrid retrieval plus pluggable cross-encoder reranking.
- Unbounded fixed-head scanning: Running 6 fixed attention heads across every candidate span burned ~650 judgments/turn (~9 requests) to produce ~800-token packs (~10x compression over ~8,500-token full sessions, holding 40/56 all-evidence sessions and 88/102 marked evidence turns vs. 41/56 for whole-session Jev reranking). v0.2 replaces blind 6-head scans with coarse-to-fine active zoom capped at
<= 16questions per wave.
5. Evaluation Methodology and Example Demo Harness
All benchmarks enforce strict Dev / Sealed-Test separation: scorers (bench/score.ts), test cases, and sealed split IDs stay frozen during every run.
5.1 Evaluation Tracks
- Track 1: Coding and Policy Agent Steering (Primary).
- 1A. Deterministic Coding Steerability Suite (15 to 20 repo bug-fix tasks with seeded invariants and hidden edge-case tests): Evaluates small models (Claude Haiku, Gemini Flash-Lite) on task pass rate, invariant compliance, test-cheat prevention, wasted thrash turns, injected tokens, and wall-clock latency.
- 1B. Multi-Turn Self-Correction (
PrefEval-style, 20 to 30 sessions): User issues a behavioral correction on Turn 2; adherence is measured on Turn 12+ across interleaved distractors. - 1C. Adversarial Real-Trace Suite (Dev 30 / Sealed 30 trajectories from real Zeph, Claude Code, and Codex logs): Loaded with false-positive traps (safe edits, legitimate test fixes, harmless reads, non-corrective replies, repeated heartbeats) to stress-test
FalseTriggerRate <= 0.10. - 1D. Policy-Gated Tool Use (
tau-bench25-task slice, optional extension): Exact final-DB-state verifier testing strict policy adherence and irreversible-action gating.
- Track 2: Non-Truncated LongMemEval-S Memory QA (500 questions: 250 Dev / 250 Sealed Test). Full non-truncated turn/chunk indexing across all strata (
single-session,multi-session,temporal-reasoning,knowledge-update, and_absabstentions), scored on retrieval metrics and frozen small-model QA accuracy per token (~600-token packs vs. ~8,500-token full sessions). - Track 3: Portability and Runtime Adaptation Probes. Zero-shot cross-model transfer (running the identical Myelin graph,
RuleSpecs, and dev-fittedPolicyParamsacross Claude Haiku and Gemini Flash-Lite without re-tuning) and 1-to-3-shot runtime behavioral adaptation.
5.2 Five Steelman Baselines
- B0 (Raw Small Model): Unsteered small agent with standard minimal harness.
- B1 (Static Prompt Stuffing): Same small model with all repo rules, policies, and memory notes concatenated into the system prompt.
- B2 (Deterministic Rules Only): Myelin's own deterministic pre-filters, churn counters, and path matchers with zero System-1 model calls.
- B3 (Local Classical IR): Non-truncated
embeddinggemma-2plus weighted BM25 plus localMiniLM-L6cross-encoder reranker on Track 2. - B4 (Frontier Monolith Ceiling): Unsteered frontier model establishing the Bitter Lesson quality/cost reference point.
5.3 Four Mandatory Ablations
- Gate Discard Audit ("What the Gate Threw Away"): Log every event skipped by deterministic pre-filters or gated below threshold; report Miss Rate (False Negatives) right beside False-Trigger Rate and token savings.
- Uncalibrated vs. Fitted
PolicyParams: Hand-picked defaults (0.55/0.65/0.70) vs. thresholds fitted on Dev Plane C examples, evaluated strictly on Sealed Test. - Write-Time Bi-Temporal Supersession vs. Append-Only Retrieval: Isolated on
knowledge-updateand multi-turn self-correction tasks. - Coarse-to-Fine Wave Scaling: 1-head active zoom (
<= 16Qs/wave) vs. fixed multi-head scan vs. single-wave screening.
5.4 Reproducible Example Harness and Interactive Demo (examples/coding-demo/)
To make every mechanism inspectable on a laptop in under a minute, the paper ships with a standalone drop-in coding harness demo (via Myelin's pi / claude-code adapter) running three deterministic scenarios side-by-side across B0 (Raw), B1 (Static Prompt), and Myelin:
- The Test-Cheat and Thrash Trap: Small model loops 3 times on a failing edge case and attempts
test.skipor loosened assertions. Deterministic churn wakesthrash-guardontool.before, blocks the cheat in< 300 ms, injects the repo invariant, and steers the agent to a real fix. - The Turn-2 Correction That Survives to Turn 12: User corrects a dependency and typing rule early in a multi-task session; after 10 distractor turns, Raw forgets while Myelin promotes the correction into a weighted
Constraintnode and injects only that ~40-token slice on the matching edit. - Selective Friction (
risk-gatexmemory-kv): Routine reads pass via deterministic fast-path (0 ms,$0); an ambiguous destructive command pauses viarisk-gate, unlessmemory-kvalready holds the standing user preference.
Each run outputs a self-contained JSON trace powering an Interactive Counterfactual Trace Viewer (built on graph.fork(atSeq) / diff()), allowing readers to scrub turn-by-turn, inspect every decision receipt, toggle "What the Gate Threw Away", and diff where steering altered the trajectory.
6. Sprint 0 Verified Results (Dev vs. Untouched Sealed Test)
All code, prompts, pack configs, and hyperparameters were tuned strictly on dev splits and frozen at commit 6f4d501 before evaluating any split="test" data. Zero post-hoc edits were made after sealed evaluation. Engineering verification: 22/22 tests (136 assertions) pass natively on Bun (bun:sqlite) and Node v22.23.2 (node:sqlite), TypeScript strict check passes with 0 errors, and total paid API spend across all 145 logged runs was $0.00.
Table 1: Track 1 LongMemEval-S Retrieval (232 Dev + 238 Untouched Sealed Test, $0 Local)
Retrieval Arm ($0 Local) | Dev Score (N=232) | Dev All@5 | Sealed Score (N=238) | Sealed R@5 | Sealed R@10 | Sealed All@5 | Sealed MRR | Sealed p95 |
|---|---|---|---|---|---|---|---|---|
legacy-1000b (v1 truncated BM25) | 0.7299 | 64.7% | 0.7296 | 74.5% | 79.3% | 61.8% | 0.774 | 1 ms |
bm25-turns (non-truncated FTS5) | 0.8214 | 75.4% | 0.8388 | 85.9% | 92.3% | 77.3% | 0.850 | 2 ms |
weighted-hybrid (hash + BM25) | 0.8457 | 77.6% | 0.8604 | 87.2% | 93.3% | 78.6% | 0.889 | 5 ms |
hash + MiniLM-L6 (prior hash champion) | 0.8938 | 83.6% | 0.9003 | 90.7% | 94.9% | 84.5% | 0.923 | 341 ms |
BGE-small + light BM25 (Fast Tier, no reranker) | 0.9472 | 91.4% | 0.9446 | 96.0% | 97.7% | 92.4% | 0.937 | 16 ms |
BGE-small + MiniLM-L6@T=2.5 (Locked Champion) | 0.9544 | 92.2% | 0.9598 | 97.0% | 98.0% | 93.3% | 0.962 | 392 ms |
Sealed-test performance exceeded Dev across every primary metric (0.9598 vs. 0.9544, 93.3% vs. 92.2% All@5). Four of six LongMemEval strata hit 100% All@5 on Sealed Test (knowledge-update, single-session-assistant, single-session-preference, single-session-user), while multi-session and temporal-reasoning both reached 87%.
Table 2: Track 1B Impartial Sonnet Rubric-Graded Air-Gapped Haiku QA (60 Dev + 60 Sealed Test)
Context Packing Arm (bge-minilm Retriever) | Dev Acc (N=60) | Dev Ctx Tok | Sealed Acc (N=60) | Sealed Ctx Tok | Token Savings vs. Naive | Sealed Acc / 1k Tok |
|---|---|---|---|---|---|---|
legacy-1000b (v1 truncated BM25) | 23.3% (14/60) | 1,169 | 36.7% (22/60) | 1,148 | 13.7x | 0.3194 |
myelin-compact-top12 | 58.3% (35/60) | 1,096 | 63.3% (38/60) | 1,083 | 14.5x | 0.5848 |
myelin-role-pack-d1@0.15 (local 2B d1 pruner) | 86.7% (52/60) | 2,213 | 83.3% (50/60) | 2,224 | 7.08x | 0.3747 (6.8x naive) |
myelin-role-pack (Locked Champion) | 91.7% (55/60) | 3,225 | 86.7% (52/60) | 3,168 | 4.97x | 0.2736 (5.0x naive) |
naive-top5-full (full raw top-5 sessions) | 88.3% (53/60) | 16,075 | 86.7% (52/60) | 15,756 | 1.0x | 0.0550 |
In conversational traces, compact user: turns carry nearly all facts, updates, and preferences (~15% of tokens), while assistant: turns are long lectures (~85% of tokens). packRoleAwareContext retains all user: turns across the top-5 ranked episodes plus only the top-5 highest-scoring assistant: turns, cutting context size 5.0x while beating raw full sessions on Dev (+3.4 points) and matching them identically on Sealed Test (and outperforming raw sessions on multi-session 8/10 vs. 7/10 and temporal-reasoning 8/10 vs. 7/10).
Table 3: Track 2 and 3 Live Local d1-Omni-2B Steering, Coding Steerability, and 5-Harness Matrix
Benchmark Suite ($0 Local d1-Omni-2B / Isolated claude-haiku) | Unsteered / Raw | Prompt-Stuffed Baseline | Myelin Champion | Key Systems Result |
|---|---|---|---|---|
Starter Steering & Broadcast (16 cases) | 18.8% | n/a | 16/16 (100.0%) | +81.3 pts, 0.0% FTR |
Adversarial Steering Dev (28 cases) | 32.1% | n/a | 28/28 (100.0%) | +67.9 pts, 0.0% FTR |
Adversarial Steering Sealed Test (16 untouched cases) | 31.3% | n/a | 15/16 (93.8%) | +62.5 pts, 0.0% FTR (14/16 on defaults) |
Executable bun test Coding Steerability (12 tasks, d1) | 6/12 (50.0%) | 11/12 @ 722 tok | 12/12 (100.0%) @ 39 tok | 18.5x fewer context tokens |
Executable bun test Coding Steerability (12 tasks, isolated CLI v2) | 8/12 (66.7%) | 12/12 @ 722 tok (3,184 ms) | 12/12 (100.0%) @ 49 tok (2,367 ms) | 14.7x fewer context tokens, 26% faster |
Live Multi-Turn Coding Traps (6 tasks, live d1-Omni-2B) | 4/6 (66.7%) (2.83 turns) | n/a | 6/6 (100.0%) (2.33 turns) | -18% fewer turns, 0 false blocks |
5-Harness Systems Matrix (Zeph, Claude, Codex, Hermes, Pi) | 6,346 KB raw logs | n/a | 5/5 contract pass (0.17 to 0.62 ms) | 17.8x Plane A slimming (356 KB), 0 air-gap leaks, 0-call fork(atSeq) replay |
Table 4: Track 4 ReAnchor and SideQuestions L1 Combiners (Live Local d1-Omni-2B, Held-Out Eval)
Decision Domain (d1-Omni-2B, $0 Local) | raw-1q (Acc / Brier / ECE) | reanchor-1q (Acc / Brier / ECE) | SideQuestions L1 Combiner (Acc / Brier / ECE) | Live MyelinEngine E2E |
|---|---|---|---|---|
LongMemEval-S Hard Distractors (n=40) | 72.5% / 0.2233 / 0.2384 | 75.0% / 0.1674 / 0.0934 | 77.5% (+5.0 pts) / 0.1331 (-40.4%) / 0.1315 (-44.8%) (beat raw Haiku 75.0%) | n/a |
clarify-vs-act Steering Boundary (n=20) | 85.0% (3 FN) / 0.1202 / 0.2655 | 95.0% / 0.0606 / 0.1354 | 95.0% (+10.0 pts) / 0.0243 (-79.8%) / 0.0690 (-74.0%) | 100.0% (20/20) |
Subtle test-cheat Code Diffs (n=20) | 85.0% (3 FP) / 0.1235 / 0.2096 | 85.0% / 0.0855 / 0.1313 | 95.0% (+10.0 pts, FP 3->1) / 0.0355 (-71.3%) / 0.0754 (-64.0%) | 100.0% (20/20) |
Discarded Hypotheses, Real Bugs Caught, and Remaining Sealed-Test Gaps
- Honest negative results reverted on Dev: Deterministic relative-date session anchoring (
temporalAnchorBoost) hurt 232-Q Dev (0.9544 -> 0.9517) because conversation timestamps do not equal mentioned event dates;BAAI/bge-reranker-baselost toMiniLM-L6@T=2.5(cap=2, pool=80) at full 232-Q scale while running6.6xslower (2,033 msvs.308 ms); uniform+-1turn window packing bloated context to6,219tokens and underperformedpackRoleAwareContext(75.0%vs.88.9%). - Real bugs caught during overnight verification: Fixed
ActiveGraph.fork(atSeq)dropping declarativeRuleSpecnodes, fixed a CrossEncoder double-sigmoid bug crushing reranker scores into[0.50, 0.53], isolatedclaude-clifrom~/.claude/CLAUDE.mdand workspace files (--tools "" --setting-sources "" --strict-mcp-config), and mappedAbortErrorcleanly toreceipt.capped = "deadline". - Remaining failures observed on Sealed Test (scheduled for Sprint 1): One sealed steering miss (
adv-test-rules-stripe-idempotency, whereexternal_side_effectfalsely denied a local TypeScript edit mentioning Stripe charges);multi-sessionandtemporal-reasoningretrieval remaining at87% All@5; and hosted Jev vs. locald1 + SideQuestionsplus frontier-monolith (B4) andtau-benchhead-to-heads queued next.
Layer-Isolated Failure Taxonomy
Every remaining failure under Myelin is classified into one layer to test whether modularity improves debuggability:
- Ingress / Adapter Loss: Host hook lacked required diff, file path, or turn context.
- Graph / Retrieval Miss: Relevant constraint or span was absent from top-K candidates.
- Gate Miscalibration: Candidate reached the decider, but probability fell on the wrong side of threshold.
- Steering Ignored by Base Model: Myelin injected the exact correct constraint or span, yet the small generative model still violated it.
7. Limitations, Threats to Validity, and Falsification Criteria
We define upfront the conditions under which our hypothesis fails:
- Deterministic Dominance: If B2 (Deterministic Rules Only) matches Myelin on Track 1 within noise, System-1 decider calls add latency and complexity without earning their keep on coding steering.
- Classical IR Dominance: If B3 (
MiniLM-L6) matches Myelin on Track 2 (includingknowledge-updateand abstention), specialized decision-model span zoom is unnecessary for retrieval. - Base-Model Compliance Ceiling: If >40% of remaining errors fall in Layer 4 (Steering Ignored), external token-cache steering hits a compliance wall and base-model co-adaptation is required.
- Latency and Overhead Tax: If decider round-trips exceed
p95 > 1500 mson frequent tool hooks or total system tokens/USD fail to beat B4 (Frontier Monolith) at comparable quality, the scaling-down bet does not pay off yet. - Threats to Validity: Hosted System-1 APIs (
jev-1.14.0) can drift across versions; authored coding tasks risk overfitting unless paired with real captured sessions (Track 1C) and public benchmarks (LongMemEval); token-cache steering is sensitive to prompt formatting across base models (tested directly in Track 3).
8. Future Work
Explicitly parked outside Paper 1 until Tracks 1 to 3 clear the Pareto bar:
- Nightly Opt-In Distillation (Plane C to Local
0.6B-1.5BStudent): Exporting redacted,egress: "any"Plane C examples to ephemeral GPU bursts (Modal / RunPod), distilling a local student decider via weighted BCE/KL, and gating local promotion strictly on held-out Brier score and ECE. - Two-Sided Harness Co-Adaptation (
Inkling-2-Mini+ AsyncGRPO): Training a small looped MoE VLM directly inside Myelin so the base model learns to trust speculative[myelin:*]injections and pointer references. - Multimodal Sensory Edge and Ambient Zeph Integration: Pairing a zero-GC Rust/Swift sensory edge (camera frame-diff, VAD, audio floor) with Myelin's
perception.deltaandBroadcastPlankernel. - Cross-Harness Mesh Sync: Replicating lightweight Plane B belief/constraint mutations across peer harnesses while preserving single-writer Plane A logs.
Appendix: Reproducibility Commands
# 1. Verify runtime-agnostic core on both Bun and Node 22+
bun test
npm run test:node
bun run typecheck
# 2. Verify 16-case steering and broadcast benchmark wiring ($0)
bun run bench -- --track steering --decider fake
# 3. Run Sprint 0 live Jev baseline with hard spend circuit breaker
bun run bench -- --track steering --decider jev --max-usd 0.50 --label "sprint0-jev-v02"
# 4. Run non-truncated LongMemEval Track 1
bun run bench -- --track longmemeval --decider fake --embedder hash