Myelin: Externalized Attention and Trajectory Steering for Small Agents

Working technical report on Myelin, a local-first Reactive Decision Kernel (RDK) that steers small coding and memory agents across long runs using deterministic state tracking, calibrated System-1 decision graphs, and a portable external token cache.

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:

  1. 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.
  2. 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 $0 and < 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

  1. Formalization of Externalized Trajectory Steering: A unified Event -> ActiveGraph -> BroadcastPlan model combining zero-cost deterministic operators, bounded parallel System-1 decision waves, bi-temporal salience decay, and "do nothing" tie-breaking (Section 3).
  2. 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 SQLite RuleSpec nodes, separated PolicyParams, hard egress: "local" privacy pinning, <= 16-question wave batching, and normalized adapters for five real agent harnesses (Section 4).
  3. Cheap-First Evaluation Protocol and Gate Discard Audit: A reproducible benchmark comparing Myelin against five steelman baselines (deterministic-only rules, local MiniLM-L6 reranking, 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).
  4. 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) and diff() replays (Section 5.4).

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:

text
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-only TraceResolver.
  • 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 weights w in [0.05, 5.0]; weighted directed edges (isPartOf, about, mentions, supersedes, contradicts, triggers, attendsTo, gates, reinforces); declarative RuleSpec nodes and versioned PolicyParams (uncalibrated vs. fitted); and an Effect Ledger recording issued BroadcastPlans, sibling statuses, and delivery receipts. Replaying the log supports deterministic fork(atSeq) and diff() for $0 counterfactual evaluation on cached judgments.
  • Plane C (Decision and Outcome Dataset, SQLite): Content-addressed decision_cache, deduplicated decision_views, (view, question, p, confidence) rows (decision_examples), and delayed hindsight outcome_labels (test_passed, user_overrode, user_confirmed, delivered). Plane C supports $0 replay 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):

  1. Deterministic Pre-Filter (0 model 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.
  2. Parallel Batched System-1 Wave: Candidate rules sharing a viewKey merge their typed questions into parallel calls to a calibrated System-1 decider returning probabilities p in [0, 1], automatically chunked to <= 16 questions per call and pinned to localDecider whenever egress == "local".
  3. 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 versioned PolicyParams, with "do nothing" winning ties.
  4. Atomic BroadcastPlan: All emitted dispatches (harness verdicts allow | ask | deny | inject, voice acknowledgments, thinker delegations, memory writes, OWED clock notifications) commit atomically to the Effect Ledger under lineageId before any destination runs.

3.4 Total-System Objective

We score the assembled system, never a gate in isolation. For steering tasks, we optimize:

text
compositeUtility = TaskSuccess
                 - 0.50 * FalseTriggerRate
                 - 0.02 * (meanInjectedTokens / 1000)
                 - 0.01 * usdPer1kEvents

subject 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 synchronous SqlDb adapter auto-selecting node:sqlite, an injected better-sqlite3 handle (shared directly with Zeph), or bun:sqlite.
  • Three-Module Store (src/store/): ledger.ts (slim ~200B event headers, atomic BroadcastPlan, siblingsOf, settleDispatch, queue supersession), world.ts (bi-temporal nodes/edges, heartbeat-collapsing setFact(), cryptographic forget(), RuleSpec and PolicyParams, pointer-backed spans with external-content FTS5, and weighted hybrid retrieval), and dataset.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 SQLite RuleSpec nodes (inspectable via graph.diff(), tunable without editing TypeScript) and programmatic CodeRule operators. Supports opt-in selfModify (off | propose | bounded-auto, defaulting to off) while enforcing locked: true anti-Goodhart locks on safety gates, egress boundaries, and OWED rules.
  • Typed Model Registry (src/models/): Abstracts DeciderModel, Embedder, Reranker, and CompleteModel behind unified token/latency/USD metering, enforcing <= 16-question chunking and hard egress: "local" pinning. Ships with jevDecider, zephDecider, offline $0 rulesDecider, budgetedDecider, non-truncating chunked ollamaEmbedder, local uv-backed minilmReranker (ms-marco-MiniLM-L-6-v2), and cliCompleteModel wrappers 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).

PackKindRole in Externalized Steering
memory-kvCode + GraphStage-0 non-truncated 2-wave span attention plus write-time bi-temporal distillation and supersedes decay.
coding-rulesCode + GraphPath and graph-matched just-in-time constraint/skill injection replacing decaying monolithic prompts.
thrash-guardCode + DeciderDeterministic 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-agentCode + GraphBi-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:

  1. 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.
  2. 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.
  3. 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 <= 16 questions 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

  1. 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-bench 25-task slice, optional extension): Exact final-DB-state verifier testing strict policy adherence and irreversible-action gating.
  2. 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 _abs abstentions), scored on retrieval metrics and frozen small-model QA accuracy per token (~600-token packs vs. ~8,500-token full sessions).
  3. Track 3: Portability and Runtime Adaptation Probes. Zero-shot cross-model transfer (running the identical Myelin graph, RuleSpecs, and dev-fitted PolicyParams across 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-2 plus weighted BM25 plus local MiniLM-L6 cross-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

  1. 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.
  2. 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.
  3. Write-Time Bi-Temporal Supersession vs. Append-Only Retrieval: Isolated on knowledge-update and multi-turn self-correction tasks.
  4. Coarse-to-Fine Wave Scaling: 1-head active zoom (<= 16 Qs/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:

  1. The Test-Cheat and Thrash Trap: Small model loops 3 times on a failing edge case and attempts test.skip or loosened assertions. Deterministic churn wakes thrash-guard on tool.before, blocks the cheat in < 300 ms, injects the repo invariant, and steers the agent to a real fix.
  2. 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 Constraint node and injects only that ~40-token slice on the matching edit.
  3. Selective Friction (risk-gate x memory-kv): Routine reads pass via deterministic fast-path (0 ms, $0); an ambiguous destructive command pauses via risk-gate, unless memory-kv already 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@5Sealed Score (N=238)Sealed R@5Sealed R@10Sealed All@5Sealed MRRSealed p95
legacy-1000b (v1 truncated BM25)0.729964.7%0.729674.5%79.3%61.8%0.7741 ms
bm25-turns (non-truncated FTS5)0.821475.4%0.838885.9%92.3%77.3%0.8502 ms
weighted-hybrid (hash + BM25)0.845777.6%0.860487.2%93.3%78.6%0.8895 ms
hash + MiniLM-L6 (prior hash champion)0.893883.6%0.900390.7%94.9%84.5%0.923341 ms
BGE-small + light BM25 (Fast Tier, no reranker)0.947291.4%0.944696.0%97.7%92.4%0.93716 ms
BGE-small + MiniLM-L6@T=2.5 (Locked Champion)0.954492.2%0.959897.0%98.0%93.3%0.962392 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 TokSealed Acc (N=60)Sealed Ctx TokToken Savings vs. NaiveSealed Acc / 1k Tok
legacy-1000b (v1 truncated BM25)23.3% (14/60)1,16936.7% (22/60)1,14813.7x0.3194
myelin-compact-top1258.3% (35/60)1,09663.3% (38/60)1,08314.5x0.5848
myelin-role-pack-d1@0.15 (local 2B d1 pruner)86.7% (52/60)2,21383.3% (50/60)2,2247.08x0.3747 (6.8x naive)
myelin-role-pack (Locked Champion)91.7% (55/60)3,22586.7% (52/60)3,1684.97x0.2736 (5.0x naive)
naive-top5-full (full raw top-5 sessions)88.3% (53/60)16,07586.7% (52/60)15,7561.0x0.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 / RawPrompt-Stuffed BaselineMyelin ChampionKey Systems Result
Starter Steering & Broadcast (16 cases)18.8%n/a16/16 (100.0%)+81.3 pts, 0.0% FTR
Adversarial Steering Dev (28 cases)32.1%n/a28/28 (100.0%)+67.9 pts, 0.0% FTR
Adversarial Steering Sealed Test (16 untouched cases)31.3%n/a15/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 tok12/12 (100.0%) @ 39 tok18.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/a6/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 logsn/a5/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.238475.0% / 0.1674 / 0.093477.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.265595.0% / 0.0606 / 0.135495.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.209685.0% / 0.0855 / 0.131395.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-base lost to MiniLM-L6@T=2.5 (cap=2, pool=80) at full 232-Q scale while running 6.6x slower (2,033 ms vs. 308 ms); uniform +-1 turn window packing bloated context to 6,219 tokens and underperformed packRoleAwareContext (75.0% vs. 88.9%).
  • Real bugs caught during overnight verification: Fixed ActiveGraph.fork(atSeq) dropping declarative RuleSpec nodes, fixed a CrossEncoder double-sigmoid bug crushing reranker scores into [0.50, 0.53], isolated claude-cli from ~/.claude/CLAUDE.md and workspace files (--tools "" --setting-sources "" --strict-mcp-config), and mapped AbortError cleanly to receipt.capped = "deadline".
  • Remaining failures observed on Sealed Test (scheduled for Sprint 1): One sealed steering miss (adv-test-rules-stripe-idempotency, where external_side_effect falsely denied a local TypeScript edit mentioning Stripe charges); multi-session and temporal-reasoning retrieval remaining at 87% All@5; and hosted Jev vs. local d1 + SideQuestions plus frontier-monolith (B4) and tau-bench head-to-heads queued next.

Layer-Isolated Failure Taxonomy

Every remaining failure under Myelin is classified into one layer to test whether modularity improves debuggability:

  1. Ingress / Adapter Loss: Host hook lacked required diff, file path, or turn context.
  2. Graph / Retrieval Miss: Relevant constraint or span was absent from top-K candidates.
  3. Gate Miscalibration: Candidate reached the decider, but probability fell on the wrong side of threshold.
  4. 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:

  1. 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.
  2. Classical IR Dominance: If B3 (MiniLM-L6) matches Myelin on Track 2 (including knowledge-update and abstention), specialized decision-model span zoom is unnecessary for retrieval.
  3. 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.
  4. Latency and Overhead Tax: If decider round-trips exceed p95 > 1500 ms on 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.
  5. 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.5B Student): 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.delta and BroadcastPlan kernel.
  • Cross-Harness Mesh Sync: Replicating lightweight Plane B belief/constraint mutations across peer harnesses while preserving single-writer Plane A logs.

Appendix: Reproducibility Commands

sh
# 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
Footnotes
  1. - Richard Sutton, The Bitter Lesson - why general methods scaling with compute keep winning through search and learning.
  2. - Wimmer et al., Thalamic control of sensory selection in divided attention - top-down prefrontal-thalamic gating of sensory selection under divided attention.
  3. - Alex L. Zhang, Language Model "Shape" - fitting model inputs and outputs to concrete system roles.
  4. - Alex L. Zhang, Zhening Li, and Omar Khattab, The Mismanaged Geniuses Hypothesis - framing task decomposition and model composition as learnable skills.
  5. - Alex Zhang and Omar Khattab, Language model harnesses are compositional generalizers - training models inside recursive harnesses for length and strategy generalization.
  6. - Isaac Ong et al., RouteLLM: Learning to Route LLMs with Preference Data - learned routing between stronger and weaker language models.
  7. - Yuxian Gu et al., MiniLLM: On-Policy Distillation of Large Language Models - on-policy distillation into smaller models.
  8. - Hongjin Su et al., ToolOrchestra - RL-trained small orchestrator over tools and larger models.
  9. - Single-Agent LLMs Outperform Multi-Agent Systems on Multi-Hop Reasoning Under Equal Thinking Token Budgets - matched-budget counterevidence against assuming multi-agent gains are free.
  10. - Rui Qian et al., Dispider - disentangling perception, interaction timing, and reply generation in streaming video.
  11. - Thinking Machines Lab, Interaction Models: A Scalable Approach to Human-AI Collaboration - continuous interaction paired with asynchronous background reasoning.
  12. - Di Wu et al., LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory - ICLR 2025 multi-session memory benchmark.
  13. - TypeSafe, System One Decision Models - non-generative calibrated decision primitives (`Noul`, `Score`, `Choice`).
  14. - Raymond Weitekamp, Recursive Decision Models - decision-only recursive computation over external state without generative decoding.
  15. - Yohei Nakajima, Compile From the Log, Don't Replace It and Regimes on LongMemEval with ActiveGraph - append-only event log projected into a live, forkable, replayable graph.