traverse

Benchmark

Every figure here is computed deterministically — real tokenizer, real primitives, no model and no estimation. The one thing a model is required for, end-to-end answer accuracy, is reported as unmeasured rather than filled in with a plausible number.

64.6%
mean reduction
76.0%
median
93.4%
best case
-12.3%
worst case

This is not a reproduction of the paper. The paper reports a 92.0% mean (95.3% best case) over a 240-document corpus that is not public. This is an independent measurement on 6 documents authored for this project, with 52 questions. The gap is large and the reason is measurable — see below.

Why the gap: reduction scales with document size

Traversal's cost is roughly flat — an index, a few dense summaries, two resolved nodes. Injection's cost grows linearly with the document. So reduction is not a fixed property of the format; it is a function of how much document you are not reading. Across questions, the correlation between document size and reduction is r = 0.52.

DocumentClassSizeInjectionTraversalReduction
skillfileSkill File66768448129.7%
kbKnowledge Base80682330163.4%
planExecution Plan81983632161.6%
runbookOperational Runbook92494344353.1%
techdocTechnical Documentation95797523176.3%
handbookKnowledge Base (large)2,1602,17733984.4%

The largest document here is still only 2,160 tokens. Real handbooks and API references run 10–50k. The trend suggests the paper's 92% is reachable, on documents larger than any in this corpus — but this benchmark does not demonstrate that, it only points at it.

By task type

TasknMean reduction
information-lookup2373.7%
procedure-execution457.6%
multi-step-planning546.1%
role-conditional-access168.1%
cross-node-reasoning1058.4%
update-detection244.1%
assertion-verification560.7%
multi-agent-handoff279.4%

Cost of the defence

7.7%
false positives on clean documents
+2.6%
token overhead when enabled
4/52
questions where it fired

Two earlier versions of this gate were discarded for firing on 38% and 28% of a clean corpus. A defence that fires constantly spends the token saving it exists to protect, so false-positive rate is the binding constraint here, not detection rate.

Answer accuracy

not measured

End-to-end answer accuracy requires a language model. No ANTHROPIC_API_KEY was available when this report was generated. The harness exists (scripts/accuracy.ts) and will populate this section when run with a key. It is deliberately left empty rather than estimated.

This matters. A token reduction that quietly broke correctness would be worthless, and nothing on this page rules that out. It is the first thing I would measure with a key.

Limitations

method

tokenizer
cl100k_base (gpt-tokenizer) as a proxy for Claude's tokenizer, which is not public
model
none — every figure below is computed deterministically
corpus
6 documents authored for this project
questions
52
taskTypes
8

Regenerate with npm run bench