Skip to main content
Lightning Jar - Web Studio Lightning Jar Wordmark

Barkup Bench

Atom

Barkup Bench is our open research project measuring how large language models read and edit structured document trees. Every study is pre-registered: the hypotheses, task corpora, prompts, and analysis plan are committed to a public repository before a single model is called, and the results are published as found, corrections included.

The Findings in One Sentence

Give every node a stable id, never make the model reproduce anything it is not changing, and hand it everything the request assumes: the nodes it must read in the view, the goal it must satisfy in the memo. Everything the benchmark validated ships in the open-source barkup library, linked in the sidebar with the full article series below.

Barkup Bench · pre-registered · corrected 2026-07-06 · studies F–AZ

Every id-stable interface works, until trees get big or sessions get long. Then only anchored patches do, and they barely need to see the tree.

What the Recipe Costs

Finding where to look costs one search call. Remembering the session costs two worked examples plus a memo, even 36 edits in. The view is a correctness contract: what the model must read, it must be shown. Views carry values; memos carry goals. The agent can be trusted to write the memo itself, and "undo that" needs an echo, not a transcript.

Asking Beats Guessing

The series-long villain fell too. Offered one sentence of permission, every model asked instead of guessing, 270 out of 270. The silence was protocol, not blindness. Re-running the whole core stack on claude-opus-4.8, the tier our surfaces actually ship, passed every gate: the frontier does not need the training wheels, though they cost nothing to keep.

Where the Late Studies Closed the Borders

Restating a goal the model merely read does nothing; where a goal comes from matters more than saying it aloud. The memo is flawless until its twenty-note cap, where it silently discards exactly what it exists to remember, so the eviction is now deterministic and goal-safe. Some gaps are capabilities, not prompts: the ambiguity fix rescued the model we do not run and added nothing to the one we do. And told nothing but "that was invalid," models fixed their patches anyway. The error message was for us, not them.

Methods & Provenance

Main study: 200 seeded tasks × 6 conditions × 4 models × 2 regimes at temperature 0 (July 2026). Every follow-up study is pre-registered by commit before its first scored run and published as found, corrections included; the full catalog lives in the study index below, one page per study. All numbers are protocol-v2 corrected: the original interface-reliability gaps were an artifact of conversation histories that hid the model's own tool calls (vercel/ai#16840). Charts show parity prompts, models pooled unless noted, with Wilson 95% intervals. Conditions: A HTML + whole-tree rewrite, B JSON + rewrite, C JSON + mutation tools, D HTML + tools, E JSON Patch, and F id-anchored patch.

−2.0pp
corrected A vs C overall: 91.9% vs 93.9%; tools at slight-edge parity, not −5.3pp behind
3.8→71%
gemini-flash multi-turn tools success when its own tool calls become visible in history (the footgun)
≥99.3%
first-pass validity in every arm; HTML and JSON fluency tied
87–100%
anchored patches (F) at 300–1000 nodes, both model tiers; where rewrite falls to 0–80%
4s vs 10min
solved 1000-node edit: F $0.26 + 4s vs rewrite $0.88 + 597s (sonnet)
−98%
input tokens with a minimal focused view at ~1000 nodes (85.6k → 1.5k); accuracy statistically unchanged (Studies I/J)
13–0
late-session paired wins, per-turn views vs serialize-once (sonnet, Study K); and views cost 4× less
7–9pp
the price of grounding a human-style description with the whole tree in context (Study L); before the search tool
1 call
median find_nodes searches to ground an id-free edit; 43/45 sonnet (= its oracle bound), 39/45 gemini, at ~10% of full-tree input (Study N)
15/20
stateless sessions ending byte-perfect even with exact positions printed on every node (history: 19/20); memory isn't doing arithmetic (Study O)
2 examples
replace a session's entire history: ~900 canned tokens in the system prompt restore stateless sessions to full-history accuracy, at half the cost (Study P)
~½ of N
targets actually edited when one prompt asks for N edits; fan-out degrades every strategy, even oracle retrieval (Study Q)
90/90
fan-out tasks solved by app-side decomposition; 674/674 single-target subtasks, both models, at ⅓ the cost of a whole-tree prompt (Study R)
5.6×
what keeping history costs vs two worked examples across a 36-edit session (449k vs 81k input tokens); accuracy at parity, no late-session decay (Study S)
0→80/80
callback steps ("the codename we settled on") rescued by an app-maintained memo: stateless fails all of them, three note lines recover every one at 1.02× the cost (Study T)
0/90
dependent edits solved against a target-only view; every failure a valid patch with a silently invented value; both-nodes views go 90/90 at 25× less input than the full tree (Study U)
117/120
judged comparisons lost by rewrites that had to READ their goal from the document instead of being told it; while the application memo carried the same goal at full parity (Study V, judge-graded)
36/36
declarables recalled per model when the AGENT writes its own memo; retractions 12/12, zero noise notes, ~4 tool calls per session landing exactly on the declarative moments; the laziness hypothesis refuted (Study W)
0/144
"undo that" follow-ups solved without a context carrier; every failure a valid, silently guessed patch; a one-line app-appended last-edit echo restores history-parity at half the cost and beats history outright on opus (Study X)
0 false notes
from 432 conversational chatter baits, while casually phrased declarations ("scratch that, the codename is X2 now") extracted at exact parity with formulaic announcements on all three models (Study Y)
0/324
contamination events from same-schema distractor clients while facts and styleguide rules from a ~3.3k-token standing pack scored 216/216 per arm on every model (Study Z)
0/24
literal readings by opus-4.8 in Study AA’s confirmation arm; the model our Study Z claim called MOST literal measured least (sonnet 10/24, gemini 7/24); the claim is retracted (Study AA)
270/270
asks on provably-unsolvable edits once a one-sentence escape hatch existed; against 0/270 silent wrong patches without it, with zero false asks on the solvable twins (Study AC)
720/720
session steps passed on claude-opus-4.8 in every policy, including bare stateless: the worked examples that rescued sonnet are sub-frontier insurance (Study AD)
135/135
resumed solves after an ask: every model integrated a plain-text answer into an exactly-correct patch, zero re-asks, zero wrong integrations (Study AE)
0/90
wins for restate-the-goal-first on view-read rewrites, with PERFECT restatement compliance: the model says the goal, then orbits it anyway; where a goal comes from beats saying it aloud (Study AF, judge-graded)
30/30
notes silently lost at the memo's cap edge were GOAL notes, on every model; the one note class only the memo carries (Study AH)
3→15/15
sonnet's asks on ambiguous references with one added sentence; while gemini stopped one short of the bar and the shipped tier gained nothing, so the clause stays unshipped (Study AI)
138/144
silent "undo that" guesses converted into questions naming the missing antecedent by the shipped ask sentence, on every tier; with one measured condition on its zero tax (Study AG)
0/3
models where structured error feedback significantly beat a bare "the patch was invalid" on seeded-failure recovery; the verbatim-issues habit is developer UX, not model accuracy (Study AJ)
0 → 10/10
goal survival at the memo's cap edge on opus once the measured eviction pipeline replaced the silent clamp (p=.002; 19/19 over-cap sends became designed evictions, zero goals evicted; Study AK)
p = .219
the anti-self-eviction fence against the client-prune pathway: directionally right at zero cost (pooled prunes 5→1), but the control halved AK's baseline; unproven, not disproven, and unproven does not ship (Study AL)
3 → 40/40
lossless cap-edge recoveries on opus once the eviction notice invites consolidation; every needle kept, kind fidelity 800/800, zero degradations, ~570 extra tokens; shipped v3.215.0 (Study AM)

H2 · task success by tree size

At benchmark sizes (5–150 nodes), no interface dominates

Whole-tree rewrite (A, B) leads granular tools (C, D) at every size tested. The gap peaks on small/medium trees and narrows; but never reverses; at ~150 nodes. JSON Patch (E) collapses to 69.6% on large trees; and the pre-registered addendum condition F (id-anchored patches) recovers it exactly to rewrite level at the lowest token cost.

Data table; success by condition × size (parity, pooled)

H4 · multi-turn reference tasks, by model

Corrected: multi-turn reference edits are near-parity

Success on “insert a node, then edit it by the id from your own output”; protocol v2. With the model's own tool history visible, every interface is near-parity (A 88.1% vs C 91.3%, n.s.); gemini's residual tools deficit is phase-1 editing accuracy, not follow-up dropout. Zero id-reference failures in any arm, ever. The dramatic v1 gaps live in the footgun chart below.

Data table; reference-family success by model × condition (parity)

H3 · mean tokens per solved task

Rewrite is cheap where trees are small; HTML is the terser artifact where they're large

Tools arms (C, D) resend a growing conversation every call, so they burn 4–5× more tokens on small/medium trees. At ~150 nodes the whole-artifact arms grow too; and the HTML dialect (A, 15.6k) undercuts JSON rewrite (B, 23.0k) by ~30%: the one place the format measurably matters.

Data table; mean total tokens per solved task (parity, pooled)

Overall · success per model × condition (parity, 200 tasks each)

Frontier models don't care; smaller models do

Per-cell task success. Down the sonnet-4.5 and gpt-5.4 rows the interface barely matters; down the haiku-4.5 and gemini-3.5-flash rows the tools arms give up 10–17 points against rewrite.

The follow-up series · studies G–AO

Every Study, One Page Each

The main study above set the baseline; everything since has been a pre-registered follow-up, each with its own charts, gates, and verdict. Grouped by theme, or subscribe to the Atom feed to hear about new studies as they publish:

Interface reliability

Views & grounding

Sessions & memory

Qualitative (Track 2)

Standing context

Asking & calibration

Confirmations & machinery

Agent-surface steering

  • Study AO · Canonical-tag steering: the catalog read is the whole mechanism Unguided models never match a tag catalog's exact casing (0/36 clean everywhere); with a tags_list tool they consult it unprompted and land canonical on the first attempt; warnings alone cannot recover, and hard gating is unnecessary.
  • Study AP · The off-catalog fork: one sentence settles the foreign branch; the registration loses the adjacent one The frontier tier refuses to tag off-catalog topics unaided (12/12 empty, replicating AO); one sentence of tool-description guidance closes the sub-frontier gap on every tier; a guarded tag_create tool stays fully disciplined; the adjacent-class gate failed on solo-authored acceptable sets, and the AP′ re-score under an independently authored key passes.
  • Study AZ · The slot-sizing static block: the corrected prose is perfect, dev-as-is is not certified, so the fix ships inside the release that makes it necessary Replicator v3.334.0 adds two slot-sizing attributes and removes a third, which turns one line of the template-chat static block stale: the prose still advertises an attribute whose writes are now silent no-ops. The Replicator agent asked the bench to gate the release's prompt text both ways. One premise corrected first: the 13 regression gates do not carry that text, so the instrument was a dedicated slice over the REAL static block, extracted by replicator's own builder with the main and dev texts identity-pinned by test, 18 registered tasks by 3 arms on the shipped tier through a verbatim apply_template_patch port. The corrected-prose arm passed at ceiling: every sizing request landed as the exact registered operation, every control edit stayed clean, and zero writes to the removed attribute in 12 of 12 constraint cells across both runs. Dev-as-is failed its safety gate by the letter, one dead-attribute write invited by exactly the stale line the correction removes; the new digest names themselves caused no harm but taught only existence, not usage. One mid-study amendment under the defective-instrument rule, disclosed: the bench registered kebab-case attribute keys where the patch channel applies camelCase, and the void first run is preserved beside the scored one. Verdict delivered: ship the corrected line inside v3.334.0, and the slice persists toward a standing slot-sizing regression gate.

Whole-system baselines

  • Study AS · The PDF to template pipeline, measured: the machinery passes, and fidelity stops at the re-branding boundary The series' first whole-system study ran replicator's shipped six-stage PDF reconstruction pipeline against 12 frozen foreign-design PDFs: the machinery gates passed emphatically (12/12 completions, 0 fallback widgets in 85 builds) while both quality gates failed as measured (median fidelity 0.634 against a 0.700 bar, verify-loop uplift +0.007 against +0.050), and the decomposition is the finding: a dark cover page scored 0.002 because brand-compliance lint deliberately re-brands foreign palettes, and the verify loop spent 43% of wall-clock patching layout when the residual error is style.
  • Study AT · The AS interventions, measured: the re-branding penalty was concentrated, not pervasive, and the study corrects its own story Replicator shipped all three Study AS interventions the same evening (structure-judged verify, theme-from-source, brand-mode steering), and AT measured them on the frozen AS corpus: the recovery gate failed 4/16 and thereby corrected AS's own published reading (the re-branding penalty lives on dark surfaces; light pages move only hundredths; the dark cover stayed 0.002 because nothing paints the page surface), while the rebuilt verify loop kept corrections on 11 to 12 of 16 pages against AS's 1 and moved its own metric 2.4 to 3.7 times further, just under a bar that was guessed with no prior data.
  • Study AU · The match-stage engine A/B: Jev is not a drop-in judge, it is a looser policy, and the gate declined to fund finding out more Can a typed-decision model at a thousandth of the cost replace fable-5.1 as the PDF pipeline's reuse-vs-build judge? Phase 1 judged 102 frozen regions with both engines fresh on byte-identical inputs: action agreement 0.676 against the registered 0.85 gate, so Phase 2 never ran and fable stays. The texture is the finding: 31 of 33 disagreements run one direction (Jev reuses at 45.1% where fable sits at 16.7%), both engines pick the identical widget 15 of 15 when they agree to reuse, and Jev's extra reuses carry median probability 0.71, a systematically looser policy rather than noise, 49 times faster and roughly 500 times cheaper.
  • Study AV · Which matching policy is right? All gates pass, the default flips to the thousandfold-cheaper judge Study AU measured that the two match-stage judges disagree; AV ran the sequel AU's gate refused to fund and measured what the disagreement costs downstream. On a pinned instance with both arms at one commit, every gate passed: 12/12 completions per arm, zero fallbacks in 140 builds, and a median paired structure delta of -0.014 against the -0.03 no-harm bound, so the recommendation flips the match default to Jev: 40.9% fewer widgets built, the match stage 13 times faster, the pipeline 24% faster end to end, the stage's model cost about a thousandfold lower. The honest texture runs against the registered prediction: compositions absorbed the permissive policy best and simple pages paid the most.
  • Study AW · Does Turso enforce foreign keys? The two database kinds are opposites, and one mechanism explains both apps Two production apps built real engineering on opposite answers to the same question: Stem Shovel shipped 441 lines of hand-written cascades because its onDelete rules never fired, while Replicator's 159 FK actions depend on cascades passing with no pragma set. Study AW, the series' first database-behavior study (zero model calls, $0 spend), measured both claims on throwaway sandbox databases and passed all three gates: the three FK behaviors cohere in all 148 cells, the pragma reading predicted behavior in every steady-state cell, and nothing flapped. The finding: Turso's two database kinds behave oppositely. The classic libsql kind always enforces, and PRAGMA foreign_keys = OFF does not stick, even in a transaction; the engine (TursoDB) kind does not enforce by default, on the first and every later connection, and on the 2026-11-02 run ON persisted at the database level once set through any connection. A dated correction at the end of the entry withdraws that persistence claim: it did not reproduce on 2026-11-03, on the portal agent's databases or on the bench's own fresh engine database, and the likely mechanism is Turso's rolling cloud-engine build. Replicator's 'cascades pass with no pragma' was its own probe's footprint on the earlier build; Stem Shovel's 'onDelete never fired' is the engine default. Predictions scored honestly: 1 of 3, with the bench naming the wrong winner.
Pre-registered design, corpora, prompts, corrections, and all analyses live in the Barkup Bench repository (REPORT.md, including the protocol-v2 correction and the Study G–AM addenda). Upstream bug report: vercel/ai#16840 (resolved July 2026: the maintainers confirmed the footgun is real but found no safe runtime warning or codemod; the v7 migration guide now documents the final-step vs accumulated split, so history construction remains an app-side audit). Reading accuracy (H5) tied across formats and is omitted from the charts. For the practical distillation, ten action items with code examples, see The Builder's Playbook.

The article series · every post, in order

The Full Series

Every post in the Barkup Bench series, in order. Start at the top for the whole story, or jump straight to the current capstone, Hand It Everything It Needs.

  1. HTML as a Native Data Format for LLMs: Why We Encode Our Data in Markup Instead of JSON Jul 4, 2026
  2. We Benchmarked It: What Held Up in 'HTML as a Native Data Format for LLMs', and What Didn't Jul 6, 2026
  3. barkup 0.2: We Shipped What the Benchmark Told Us Jul 6, 2026
  4. A Deprecated Accessor That Still Typechecks Broke My Benchmark (and Maybe Your Agent) Jul 6, 2026
  5. We Found the Crossover (It Wasn't Where Anyone Looked) Jul 7, 2026
  6. The Model Doesn't Need to See Your Tree Jul 7, 2026
  7. Your Agent's Session Is Drifting (and the Fix Is Cheaper Than the Bug) Jul 7, 2026
  8. barkup 0.3: Focused Views, or Why the Model Doesn't Need to See Your Tree Jul 8, 2026
  9. Stable IDs Are All You Need: Seven Studies on Letting LLMs Edit Trees Jul 8, 2026
  10. We Tried to Delete the Hard Parts. The Benchmark Said No. Jul 8, 2026
  11. Then We Found the Cheap Part: One Search Call Grounds LLM Tree Edits Jul 9, 2026
  12. barkup 0.4: The Model Finds the Node Now Jul 9, 2026
  13. Your Agent Doesn't Need a Memory: Two Worked Examples Replace Session History Jul 10, 2026
  14. barkup 0.5: Your Code Finds the Targets Now Jul 10, 2026
  15. The Thirty-Sixth Edit: Long LLM Sessions Don't Need Memory Either Jul 10, 2026
  16. The Two Things Your Agent Can't See: Memos and Mentioned Nodes Jul 10, 2026
  17. Views Carry Values, Memos Carry Goals: Our First Judge-Graded Study Jul 11, 2026
  18. Who Writes the Memo? Auditing the Safety Net We Shipped Jul 12, 2026
  19. Hand It Everything It Needs: 23 Pre-Registered Studies on LLM Document Editing Jul 12, 2026
  20. Undo That: The One-Line Echo That Replaces a Transcript Jul 12, 2026
  21. Stronger LLMs Follow Conflicting Instructions More Literally, Not Less Jul 13, 2026
  22. The Model Always Knew What It Couldn't See Jul 13, 2026
  23. The Frontier Doesn't Need the Training Wheels (We Re-Ran Everything to Find Out) Jul 15, 2026
  24. Only the Frontier Knows When to Ask Jul 15, 2026
  25. Repeating the Goal Doesn't Make It Yours Jul 16, 2026
  26. The Twenty-First Note: How Three Neutral Components Compose into Silent Data Loss in LLM Memos Jul 16, 2026
  27. It Asked About Things It Already Knew Jul 16, 2026
  28. The Error Message Didn't Matter Jul 17, 2026

Ask Eljay

Ask about the studio's work, research, packages, or writing. A few starters:

Answers come from this site's own content and link their sources. For anything that matters, email hello@lightningjar.com.