Memory & Retrieval•Study date: September 30, 2026•Printable brief ↗Recall Benchmark

Published by Sean Carr

Zero-Token Planning: Removing All Planner Tokens With No Detected Accuracy Difference

Deterministic routing removed planner tokens. Memory accuracy comparisons use sealed Bank Slice results.

Where this shows up in MeshTen: Powers deterministic query routing and historical session memory retrieval in developer agent CLI tooling.
Executive Brief

At a Glance

Planner Tokens

45,348 -> 0

In bank_s2 (50 Qs), deterministic routing eliminated all 45,348 planner tokens (152,239 tokens across 180 benchmark Qs).

Pointer Latency

8.69s -> 0.68s

p50 pointer lookup latency accelerated 12.8x with deterministic query planning with no detected accuracy difference (McNemar exact test, p = 1.0).

Sealed Bank Slice 2 Accuracy

46/50 vs 35/50

On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability.

Paired Significance

p = 0.0034

On sealed Bank Slice 2, the exact McNemar test recorded 12 H-only correct versus 1 B0-only correct.

Empirical Findings TableScroll table →
Telemetry MetricMeasured ValueContext & Observability
Planner Tokens45,348 -> 0In bank_s2 (50 Qs), deterministic routing eliminated all 45,348 planner tokens (152,239 tokens across 180 benchmark Qs).
Pointer Latency8.69s -> 0.68sp50 pointer lookup latency accelerated 12.8x with deterministic query planning with no detected accuracy difference (McNemar exact test, p = 1.0).
Sealed Bank Slice 2 Accuracy46/50 vs 35/50On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability.
Paired Significancep = 0.0034On sealed Bank Slice 2, the exact McNemar test recorded 12 H-only correct versus 1 B0-only correct.

Executive Summary & Core Finding

Deterministic query routing eliminated planner token overhead on reused question sets. On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability. The October 2 run recorded 152,239 planner tokens versus zero, with both arms scoring 135/180. The October 3 unlimited-planner rerun scored 141/180 versus 142/180 and measured pointer p50 latency of 8.8s versus 0.67s. On these reused question sets, deterministic routing reduced pointer latency, with no detected accuracy difference.

Method

1

We evaluated deterministic query routing against LLM query planning across 180 frozen questions (bank_s2, bank_s1, and p7h suites), tracking planner token expenditure and pointer retrieval latency.

2

We compared memory and B0 on sealed Bank Slice 1 and Bank Slice 2. B0 could search notes, handoffs and memory files, without raw transcripts.

3

Across 771 indexed engineering sessions, we tested state retention, recency filtering, and thread disambiguation across 60 dev questions and a 40-question blind holdout set.

4

Every incorrect answer was independently reviewed and classified across six failure modes: stale data, bad ground-truth benchmark, wrong thread attribution, retrieval miss, reasoning failure, and judge variance.

Empirical Telemetry

What We Measured

Telemetry from deterministic planning (180 Qs) and holdout memory evaluation (80 Qs)

Planner Tokens

45,348 -> 0

In bank_s2 (50 Qs), deterministic routing eliminated all 45,348 planner tokens (152,239 tokens across 180 benchmark Qs).

Pointer Latency

8.69s -> 0.68s

p50 pointer lookup latency accelerated 12.8x with deterministic query planning with no detected accuracy difference (McNemar exact test, p = 1.0).

Sealed Bank Slice 2 Accuracy

46/50 vs 35/50

On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability.

Paired Significance

p = 0.0034

On sealed Bank Slice 2, the exact McNemar test recorded 12 H-only correct versus 1 B0-only correct.

Experimental Notes & Observability Details

  • In deterministic query planner evaluations across 180 questions (bank_s2, bank_s1, p7h), deterministic routing eliminated 152,239 planner tokens to zero and accelerated p50 pointer latency ~13x (8.69 s to 0.68 s in bank_s2) with no detected accuracy difference (McNemar exact test, p = 1.0 across all three suites).
  • On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability. In the earlier P7H token measurement, H consumed about 12% more median tokens (129k versus 115k); its unsealed accuracy scores are omitted.
  • Analysis of 40 labeled errors across the 771-session benchmark revealed: 15 reasoning errors (37.5%), 10 retrieval misses (25.0%), 9 flawed ground-truth benchmarks (22.5%), 5 wrong-thread attributions (12.5%), and 1 judging variance (2.5%). Zero misses were caused by store indexing lag.
Interpretation & Working Hypotheses

What We Think It Suggests

  • Deterministic rule-based query planning can eliminate LLM planner token overhead with no detected accuracy difference on developer session questions.
  • Enabling persistent memory indexes significantly improves retrieval accuracy over naive log searching, but uses its token budget reading structured turns rather than reducing per-query token counts.
Methodology Boundaries

Limits

  • Benchmark domain: Evaluated specifically on developer engineering session histories and command logs; may not generalize to open-domain casual chat.
  • Fixed question banks: Evaluated across 180 deterministic planning questions and an 80-question holdout set; larger longitudinal datasets are required for full lifespan modeling.
Benchmark Harness

Reproduce It (Data & Benchmarks)

  • Benchmark suites: bank_s2 (50 Qs), bank_s1 (50 Qs), and p7h (80 Qs).
  • Harness: selfmem deterministic query router vs LLM query planner (Claude Sonnet).
  • Holdout pre-registration: PREDICTION_B0.md committed to version control before scoring.
  • Planner tokens: 152,239 versus zero in the October 2 run. Public memory accuracy comparison: sealed Bank Slice 2, H 46/50 versus B0 35/50.

Data and prompt templates only; no proprietary code is published.

Detailed Analysis & Field Observations

Cutting planner tokens to zero

In typical agent memory retrieval pipelines, an LLM call is invoked simply to plan the query, parsing user intents, determining temporal bounds, and selecting index filters. This creates a hidden latency and token tax on every lookup before retrieval even starts.

We tested whether this planning step could be replaced entirely. By replacing the model that plans each memory lookup with deterministic rules, we evaluated 180 questions across three frozen benchmark suites (bank_s2, bank_s1, and p7h). The deterministic planner routed 84% to 98% of queries without an LLM call, dropping planner tokens to zero while cutting pointer lookup latency by ~13x (8.69 s down to 0.68 s median in bank_s2) at identical retrieval accuracy (McNemar exact test, p = 1.0 across all three suites).

Benchmark SuitePlanner ArmAccuracyPlanner TokensPointer Latency (p50)Pointer Latency (Max)Routing (HD)
bank_s2 (50 Qs)H (LLM Planner)45 / 5045,3488.69 s10.80 s0 det / 34 llm / 16 fallback
bank_s2 (50 Qs)HD (Deterministic)46 / 5000.68 s3.17 s49 det / 1 llm / 0 fallback
bank_s1 (50 Qs)H (LLM Planner)46 / 5030,3348.82 s11.28 s0 det / 30 llm / 20 fallback
bank_s1 (50 Qs)HD (Deterministic)45 / 5000.92 s4.35 s42 det / 8 llm / 0 fallback
p7h (80 Qs)H (LLM Planner)44 / 8076,5577.80 s12.01 s0 det / 64 llm / 16 fallback
p7h (80 Qs)HD (Deterministic)44 / 8000.63 s8.81 s71 det / 9 llm / 0 fallback

Note that these figures isolate the prompt tokens and execution latency of the query planning step itself. We do not claim platform-wide figures for total context tokens saved by memory retention, as continuous longitudinal token savings remain the subject of active production measurement.

Memory on vs off: accuracy, not token savings

For public memory accuracy comparisons, we use sealed Bank Slice results. B0 had notes, handoff logs and memory files, without raw transcripts.

On sealed Bank Slice 2, H scored 46/50 versus B0 35/50 (exact McNemar test, p = 0.0034). B0 was a notes, handoff-log and memory-file grep baseline without raw transcripts. The arms had different source access, so observed gains include corpus availability.

On sealed Bank Slice 1, H scored 43/50 versus B0 47/50 (McNemar p = 0.22); 43/50 gold answers cited handoff logs available to B0.

In the earlier P7H token measurement, H consumed about 12% more median tokens (129k versus 115k). Its accuracy scores are omitted because that run lacked mechanical confinement.

Pre-registration records predictions before scoring. Earlier unsealed accuracy results are omitted from public reporting.

Longitudinal recall across 771 development sessions

As AI coding agents take on multi-day software engineering projects, their ability to accurately recall past decisions, architectural rulings, and intermediate test results becomes critical. In practice, off-the-shelf vector embedding search performs poorly on technical session histories. Simple similarity search frequently confuses an early rejected proposal with the final ratified architecture, or retrieves an abandoned worktree thread instead of the active mainline commit.

To benchmark and evaluate our internal memory system (selfmem), we constructed a formal evaluation harness across 771 real development sessions. The benchmark comprised a 60-question development set and a frozen 40-question holdout set with IDs fixed in version control before the run, testing six distinct question archetypes: state counts, latest values, explicit supervisor instructions, task status, session attribution, and architectural rationale.

The development and holdout evaluations explored model backend differences. Their accuracy scores are omitted because these exploratory runs lacked mechanical confinement.

More important than raw scores was our systematic forensic breakdown of all 40 recorded errors. Interestingly, zero misses were attributable to store staleness, as all relevant session transcripts were present in the indexing database. Instead, the largest error category was reasoning failure (15 cases, 37.5%), where the agent retrieved the exact transcript turn containing the answer but misread the status or conflated separate subagent tasks.

The second major failure mode was retrieval omission (10 cases, 25.0%), where keyword search failed to bridge terminology shifts across sessions. Wrong-thread attribution accounted for 5 misses (12.5%), where the system retrieved an exploratory scaffold branch rather than the finalized implementation thread. Furthermore, 9 cases (22.5%) were uncovered where the 'ground truth' benchmark itself had grown stale due to downstream commits.

These findings indicate on this sample that multi-agent memory cannot rely on flat semantic embeddings alone. High-precision engineering recall requires explicit thread lineage tracking, timestamp-anchored state progression, and independent verification of ground-truth citations.

Current synthesis: Semantic Memory Living Paper v1.