Technical TL;DR: Agent memory papers usually change the index, prompt scaffold, and LLM at the same time—obscuring whether gains come from better retrieval or stronger base reasoning. Across 9 runs (5,535 verified traces) on Official DolphinBench (600 multi-app MCP tasks + 15 memory_enabled=False counterfactuals; 13,539 sessions / 1,500,265 o200k_base tokens ingested in 153.4s with 0 LLM calls), we moved one axis per run against frozen 0o444 SQLite stores to measure what retrieval, scale, and role-neutral QLoRA + DPO each contribute under Official openai/gpt-5.6-sol grading.
5,535 Live Traces · 9 Runs
600 Official Tasks + 15 Counterfactuals/Run · 13,539 Sessions (1.50M o200k_base Tokens)
42.67% @ $0.00
Local Qwen3-Coder-30B-A3B Wave-4 on Dual RTX 2080 Ti (gpt-5.6-sol · 85.73% Mech. Checks)
+12.50 pp Alex · +10.50 pp Riley
SovereignMemoryStore vs. Raw snowflake-arctic-embed2 Cosine on Fixed gpt-oss:120b
15.7x Edge Lift (8B Q4_0)
7/600 → 110/600 (18.33% Official) via Ollama .System Template Fix + BF16 LoRA+DPO

1. Why DolphinBench Breaks Toy Haystacks & Our 5-Gate Clean-Room

Toy needle-in-a-haystack benchmarks hide a self-contained fact inside filler text and query the exact same nouns. Real workspace agents fail on stateful action execution under evolving rules. Released by Mem0 (mem0ai/dolphinbench), DolphinBench tests 600 live mock_mcp workspace tasks across 13,539 chronological sessions (1,500,265 o200k_base tokens) and three personas—Morgan (200 Founder/Ops tasks), Alex (200 Staff SWE tasks with 18 KB incident logs and deprecated flags), and Riley (200 Growth PM tasks)—plus 15 pure-deterministic counterfactuals. Passing requires retrieving standing policies that share zero nouns with today's terse prompt, resolving [Date: YYYY-MM-DD] temporal supersession, chaining list_* state lookups before mutating records, and withholding prohibited side effects.

Every run in our 9 × 615 = 5,535-trace suite is enforced by verify_zero_leakage.py across five gates:

  1. Zero-LLM 0o444 SQLite Immutability: Ingests all 13,539 sessions in 153.4s with 0 LLM calls ($0.00), truncates WAL, applies chmod 0o444 + file:...?mode=ro URIs, and verifies pre/post SHA-256 digests across every 600-task run.
  2. Static AST Clean-Room Scan: Verifies zero imports from grading rubrics, zero persona proper nouns, and zero test-ID branching.
  3. Official 5-Method BenchmarkHarness Replay: Passes upstream python -m harness.export_submission --release upstream --check offline with 0 errors.
  4. Mechanical Check Suite (599 Tasks / 1,310 Assertions): Audits deterministic tool arguments and mock_mcp state mutations without an LLM judge.
  5. Counterfactual Causality Gate (15 Tasks, memory_enabled=True vs. False): Confirms causal lift from retrieved memory (+53.3 pp on both 30B and 120B).
Frozen 0o444 SQLite & Harness SHA-256 Digests (7 Clean-Room Artifacts)
Artifact / Frozen Store Role & Scale Verified SHA-256 Digest
upstream/ Unmodified mem0ai/dolphinbench release (600 tasks, 13,539 sessions) 6da84edd86670a2c91476ac732bcaf07e4e7f210c3fee3aed225c54b104a82df
sovereign_memory.py Zero-LLM SovereignMemoryStore (0o444 SQLite, 256/32 Raw-RAG + 4-Way RRF) 16700bc047b0a0e88d3e8b04e55f8513000e922947dd1a186fefba7ab65769bd
sovereign_harness.py Official 5-method BenchmarkHarness MCP adapter 4531e3efa4e110e335078b10cc7a83fe84ca2955ad7cc74350fd1e496c0eee5f
vanilla_snowflake_harness.py Pure raw-turn single-query 1024d snowflake-arctic-embed2 cosine baseline a9f3c50992d0ae30a445fa0883c362e0466ceb6de146b7a3abea9691d8e8ca2f
morgan.sqlite (0o444) 3,400 turns · 2,547 Raw-RAG windows · 44.7 MB · 0 LLM calls f3f8fbf550a4ef3f75ed752e5e1929205720898616add35e93a865e2dd0bcc04
alex.sqlite (0o444) 5,011 turns · 2,691 Raw-RAG windows · 53.2 MB · 0 LLM calls 7c3fec7c869625db9df5decf74471d5f14507eae2ebf8d64a69f7e86d7ccba04
riley.sqlite (0o444) 5,128 turns · 2,697 Raw-RAG windows · 53.6 MB · 0 LLM calls b9a59a1b1cdb2a09e4930516671829152ec0b24fd2cbebcc114961413c0e7266

2. Axis A: Zero-LLM Hybrid Memory vs. Raw Cosine (+12.50 pp SWE)

Cloud memory layers run paid LLM extraction over every message during ingestion, whereas naive vector RAG embeds whole turns and fetches top-k cosine neighbors. Holding Stock gpt-oss:120b, 1024d snowflake-arctic-embed2, the 4,200-token budget, and judges fixed, swapping single-query cosine (VanillaSnowflakeHarness) for SovereignMemoryStore lifts overall pass rate from 48.50% (291/600) → 55.83% (335/600, +7.33 pp).

# sovereign_memory.py — Read-only 0o444 URI guard + 4-Way Hybrid RRF + Raw-RAG window projection
def retrieve_persona_briefing(path: Path, cache: FrozenCache, query: str, q_vec: list[float], rrf_k: int = 60):
    if (path.stat().st_mode & 0o222) != 0:
        raise PermissionError(f"Refusing benchmark retrieval on writable SQLite store: {path}")

    fts_expr = build_fts5_or_query(query)  # Quoted Porter-stemmed token OR-clause
    conn = sqlite3.connect(f"file:{path}?mode=ro", uri=True, timeout=10.0)
    try:
        top_turn_bm25 = [int(r[0]) for r in conn.execute(
            "SELECT rowid - 1 FROM turns_fts WHERE turns_fts MATCH ? ORDER BY bm25(turns_fts) ASC LIMIT 128",
            (fts_expr,),
        ).fetchall()]
        top_win_bm25 = [int(r[0]) for r in conn.execute(
            "SELECT rowid - 1 FROM windows_fts WHERE windows_fts MATCH ? ORDER BY bm25(windows_fts) ASC LIMIT 128",
            (fts_expr,),
        ).fetchall()]
    finally:
        conn.close()

    # 4-Way RRF: Turn-Dense (1.0) + Turn-BM25 (1.15) + Win-Dense (0.85) + Win-BM25 (0.95)
    turn_rrf: dict[int, float] = {}
    for rank, (t_idx, _) in enumerate(top_turn_dense):
        turn_rrf[t_idx] = turn_rrf.get(t_idx, 0.0) + 1.00 / (rrf_k + rank + 1)
    for rank, t_idx in enumerate(top_turn_bm25):
        turn_rrf[t_idx] = turn_rrf.get(t_idx, 0.0) + 1.15 / (rrf_k + rank + 1)
    for rank, (w_idx, _) in enumerate(top_win_dense):
        for t_idx in cache.windows[w_idx]["turn_indices"]:
            turn_rrf[t_idx] = turn_rrf.get(t_idx, 0.0) + 0.85 / (rrf_k + rank + 1)
    for rank, w_idx in enumerate(top_win_bm25):
        for t_idx in cache.windows[w_idx]["turn_indices"]:
            turn_rrf[t_idx] = turn_rrf.get(t_idx, 0.0) + 0.95 / (rrf_k + rank + 1)
    # Cross-encoder rerank + salience boost -> knapsack-pack 4,200 tokens in chronological order.

3. Axis B: Parameter Scale Phase Transition (8B → 30B MoE → 120B MoE)

With retrieval frozen, every model evaluated on SovereignMemoryStore receives the byte-identical 4,200-token turn-1 briefing across all 600 tasks, isolating parameter scale across our 6-run Phase-1 matrix (3,690 traces across Node-02 Dual RTX 2080 Ti 22 GB NVLink, Node-01 Dual RTX 3060 24 GB, and 96 GB Blackwell G4 burst):

Run Agent Model & Memory Overall (Strict / Referee) Morgan / Alex / Riley (Strict) Mechanical Gate (599 / 1,310) Pure Det. (15) Latency
Run 1 gpt-oss:120b Stock + Sovereign (G4) 55.83% (335) / 76.17% 64.0% / 44.5% / 59.0% 83.14% / 79.92% 10/15 vs 2/15 9.62s
Run 2 gpt-oss:120b Stock + Vanilla Cosine (G4) 48.50% (291) / 75.17% 65.0% / 32.0% / 48.5% 82.80% / 81.22% 9/15 vs 1/15 8.59s
Run 3 gpt-oss-sre:120b Wave-3 Auditor + Sovereign 36.50% (219) / 51.00% 40.5% / 28.0% / 41.0% 55.59% / 59.47% 8/15 vs 0/15 15.52s
Run 4 qwen3-coder-30b-moe Wave-3 + Sovereign (Node-02) 53.00% (318) / 79.17% 62.0% / 43.0% / 54.0% 88.15% / 84.50% 9/15 vs 1/15 16.33s
Run 5 qwen3-coder-30b-moe:base Stock + Sovereign (Node-02) 50.50% (303) / 80.33% (hermes3) 63.0% / 38.5% / 50.0% 88.81% / 85.11% 9/15 vs 1/15 17.11s
Run 6 hermes3:latest 8B Q4_0 Stock + Sovereign (Node-02) 1.17% (7) / 4.50% (qwen3-30b) 1.5% / 0.0% / 2.0% 66.44% / 57.25% 0/15 vs 1/15 5.96s

Stock hermes3:latest (8B Q4_0) did not fail on JSON tool syntax—it emitted valid tool calls on 593/600 tasks (66.44% mechanical task gate), yet collapsed to 4.50% (0/15 pure deterministic) when binding multiple policy constraints simultaneously. Stepping up to local Qwen3-Coder-30B-A3B (only 3.3B active parameters on Dual RTX 2080 Ti at $0.00) crosses that reasoning threshold immediately, hitting 80.33% under hermes3 and a suite-high 88.81% (532/599) mechanical compliance.

4. Axis C: Wave-3 Refusal Postmortem → Wave-4 Unified QLoRA + DPO

Our most useful discovery came from Run 3's failure, where applying our Wave-3 SRE Code-Auditor adapter to gpt-oss:120b dropped generalist accuracy from 55.83% → 36.50%, alongside a hidden Ollama template bug on 8B:

{{- if .Tools }}
<|im_start|>system
You are a function calling AI model... <tools>{{ .Tools }}</tools><|im_end>
{{- else if .System }}   <-- BUG: .System is silently dropped whenever .Tools is non-empty!
<|im_start|>system
{{ .System }}<|im_end>
{{- end }}
The Wave-4 Unified Fix (18,131 Zero-Leak SFT + DPO Rows Across 7 Splits): We stripped persona prompts out of every Modelfile so weights stay role-neutral, repaired the Hermes-3 template so {{ .System }} and <tools> render together cleanly, and expanded krush420/sovereign-code-audit-sft to 18,131 Zero-Leak SFT + DPO rows across 7 splits—pairing code-audit calibration with clean-room list_*-before-write discovery chains, temporal-supersession overrides, and action-vs-refusal DPO pairs across 8B (BF16), 30B, and 120B.

5. Official openai/gpt-5.6-sol Leaderboard & 6/6 Queued Archives

We ran all three Wave-4 adapters (1,845 additional traces → 5,535 total verified Wave-3/Wave-4 ablation traces), graded all five open-weights Sovereign configurations across 600/600 tasks—plus a companion frontier scaling control pairing the byte-identical frozen 0o444 SovereignMemoryStore with Gemini 4 Argon (reasoning_effort="medium")—with the official openai/gpt-5.6-sol (reasoning_effort="medium") judge, verified offline via harness.export_submission --check, and queued all 6/6 archives on dolphinbench.ai:

Rank / Tier (gpt-5.6-sol) Configuration Overall (600) Morgan / Alex / Riley Mech. Checks USD Cost Latency
Sovereign Frontier #1 Gemini 4 Argon + SovereignMemoryStore (Paper #27) 89.17% (535) 92.0% / 87.0% / 88.5% 89.8% $24.57 55.27s
Official #1 Hermes + GPT 5.6 Luna + Mem0 70.67% (424) 78.0% / 66.0% / 68.0% — $96.21 37.69s
Official #4 Hermes + GPT 5.6 Luna + Built-in 65.67% (394) 65.5% / 55.5% / 76.0% — $61.48 44.35s
Official #6 Hermes + MiniMax M3 + Mem0 47.83% (287) 54.0% / 41.0% / 48.5% — $148.02 46.95s
Sovereign Local #1 (30B Wave-4) Qwen3-Coder-30B-A3B Wave-4 + SovereignMemoryStore 42.67% (256) 55.5% / 35.0% / 37.5% 85.73% $0.00 15.72s
Sovereign (30B Stock) Qwen3-Coder-30B-A3B Stock + SovereignMemoryStore 42.00% (252) 58.5% / 35.5% / 32.0% 85.11% $0.00 17.11s
Official #8 Hermes + MiniMax M3 + Hindsight 41.00% (246) 54.5% / 46.5% / 22.0% — $158.33 144.28s
Sovereign (120B Wave-4) gpt-oss-sre:120b Wave-4 + SovereignMemoryStore 39.50% (237) 54.5% / 31.5% / 32.5% 78.85% $0.00 16.83s
Sovereign (120B Stock) gpt-oss:120b Stock + SovereignMemoryStore 39.17% (235) 51.0% / 35.0% / 31.5% 79.92% $0.00 9.62s
Official #9 Claude Code + Claude Sonnet 5 + Honcho 35.83% (215) 46.5% / 31.5% / 29.5% — $1,565.82 37.92s
Official #10 Claude Code + Claude Sonnet 5 + Mem0 32.33% (194) 40.5% / 36.0% / 20.5% — $1,830.57 42.30s
Official #13 Hermes + MiniMax M3 + Supermemory 20.00% (120) 22.5% (45) / 18.5% / 19.0% — $497.70 137.52s
Sovereign (8B Wave-4) Hermes-3-Llama-3.1-8B Q4_0 Wave-4 + SovereignMemoryStore 18.33% (110) 26.0% (52) / 14.5% / 14.5% 64.20% $0.00 11.30s
Cryptographic Ledger of Queued dolphinbench.ai Submission Archives (6/6 HTTP 200)
Submission Archive & Size Official Score Queued Submission UUID Archive SHA-256 Digest
sovereign_gemini_4_argon.zip (8.350 MiB) 535/600 (89.17%, #1 Overall) 29389157-b01b-42b5-8193-17d9a496f580 9a7fa41fb3d1cf5f71f0c3cf74a0c97f8f39d50e26a7dd484c323f7719ecb7a0
sovereign_qwen3_coder_30b_wave4_qlora.zip (9.006 MiB) 256/600 (42.67%) fd45f16c-fd3c-471c-b93d-413f61f1dbcf d0b6423d3a9c3cba22c63d936fb13c00b3e39fb1afa672e2bfd50781bbde692e
sovereign_qwen3_coder_30b_stock.zip (9.125 MiB) 252/600 (42.00%) 9cac5ab1-ecba-40a6-ad84-55ec2d67bfce 8dea5dac9006f77dc98f3dc598bbc7fd490299c85d7667c5797a635dc3ad222a
sovereign_gpt_oss_120b_wave4_qlora.zip (6.420 MiB) 237/600 (39.50%) 83a4c085-0e44-42af-a625-b496e63c8949 4cacf215c6b7c7cb4ec223868646dac45cfdce038a78f4be174f290efbd2d6a2
sovereign_gpt_oss_120b_stock.zip (6.073 MiB) 235/600 (39.17%) 7b5073fd-e1d9-458b-a607-7c55f76b6df1 3a0b4577db4a8179abdffc00b7831ac3e84f3a864930df892a2c175d19bcf69b
sovereign_hermes3_8b_wave4_qlora.zip (5.424 MiB) 110/600 (18.33%) 19552654-be39-4fe0-8043-a49158582356 24ae1fde4ef51f11ed2e72e546481a4205438c4eba3c4afcaffe268726b9e422

6. Honest Frontier Gaps, Argon Validation & Engineering Tradeoffs

Where Open-Weights Hardware Wins—and What Frontier Reasoning Unlocks on the Same Memory: Beating mid-tier cloud stacks at $0.00 on dual consumer GPUs is practical, and holding our 0o444 SQLite stores constant under a frontier model isolates whether the remaining gap is retrieval or active reasoning.
  1. Local -28.00 pp Open-Weights Gap vs. +18.50 pp Frontier Lead on Identical Memory: On open-weights MoEs (3B–5B active parameters), local $0.00 30B Wave-4 (42.67%, 256/600) trails cloud #1 Hermes + GPT 5.6 Luna + Mem0 (70.67% @ $96.21) by -28.00 pp, and scaling total experts alone in stock Qwen3-Coder-Next-80B (3.0B-active / 79.7B-total MoE) scores 38.50% (231/600). Conversely, pairing the exact same byte-identical 0o444 frozen SovereignMemoryStore with Gemini 4 Argon (reasoning_effort="medium") reaches 89.17% (535/600, +18.50 pp above #1 at $24.57 total cost)—proving the 46.50 pp gap was active multi-hop reasoning rather than retrieval, as detailed in our companion Paper #27 (Return on Memory) and validating @krusch/toolkit/cascade's L3 frontier escalation tier.
  2. Judge Calibration Spread (hermes3 80.33% vs. gemma4:e4b 53.00% vs. gpt-5.6-sol 42.67%): Non-thinking local judges credit tool-family matches while gpt-5.6-sol penalizes any missing implicit field, yet rank order held across all judges (Wave-4 > Stock and 30B > 120B > 8B)—validating local Referees + 1,310 mechanical checks for $0.00 inner-loop iteration.
  3. 8B Q4_0 Multi-Hop Ceiling (18.33%): Even after a 15.7x lift, 14.5% on Alex/Riley confirms 4-bit 8B models belong in L1 fast triage and single-hop dispatch, not multi-app state mutation.
  4. Role-Neutral Weights Beat Persona Modelfiles: Moving persona identity to runtime prompts while training weights on capability primitives lets one fused GGUF serve both strict code audits and proactive assistant tasks without refusal drift.

7. Reproducibility, Compute Ledger (49.13 / 58.54 CUs) & Public Artifacts

# 1. Offline unit suites & 5-gate static AST / 0o444 clean-room verifier
.venv/bin/python -m unittest discover -s . -p "test_*.py" -v && .venv/bin/python verify_zero_leakage.py --static-only

# 2. Local 600-task + 15-counterfactual run on Dual RTX 2080 Ti ($0.00 / 0 CUs)
.venv/bin/python run_homelab_models_600.py --model qwen3-coder-30b-moe:latest --workers 4

# 3. Official openai/gpt-5.6-sol grading + offline upstream archive check
.venv/bin/python package_official_submissions.py --only wave4_30b --workers 12
PYTHONPATH=upstream .venv/bin/python -m harness.export_submission --release upstream --check submissions/sovereign_qwen3_coder_30b_wave4_qlora.zip

Inspect All Verified Traces, Submission Digests & Wave-4 Open Weights

6/6 Queued dolphinbench.ai Archives · 89.17% Frontier Argon (#1) & 42.67% Local 30B @ $0.00 · 18,131 Zero-Leak SFT + DPO Rows

Return on Memory (Paper #27, 89.17%) → 🤗 HF Benchmark Dataset → Interactive Arena (Tab 5) → ICLR 2026 BEAM 10M Paper →