Repository navigation
feat(bench): feature-building benchmark for Proof's context cost - #300
Draft
tonyketcham wants to merge 3 commits into
Conversation
benchmarks/proof-build asks whether Proof in context helps or hurts an agent that plans or builds a feature from a product-sense request. - A deterministic generator builds Tessera, a zero-dependency TypeScript design-editor core (79 source files, 132 tests), with 84 commits by five authors and a 7-Effort Proof graph: rules recorded only in Proof, rules also visible in code, five drifts the code moved past without Proof, two proper supersessions, and a 10x filler variant. A none variant has the same code with no Proof folder and no trailers. - 18 build tasks (6 proof-only, 5 code-visible, 4 stale, 3 control) and 8 plan tasks with rubrics, phrased as product requests that name no file, symbol or record. - Arms: none, skill, brief, find, findcode, dump and dump10x, identical apart from Proof access. - grade.mjs applies each session's diff to a clean tree and runs hidden acceptance, constraint and regression tests with no network; judge.mjs scores blinded plans; compare.mjs pairs arms against none with sign tests and Holm correction. Hidden tests and reference and naive patches stay outside the repository until the runs are done. The offline gate passes: each base fails acceptance, each reference passes, and each naive patch fails what its category predicts (54 patches, 0 failures). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW
The pilot excluded three of 30 sessions as leaving their folder, and all three were false: a grep pattern holding `'../src/...'`, a relative path inside a heredoc, and a miscounted `../` chain that pointed at a path that does not exist. A relative path outside the clone in a shell command now counts only when it names one of the clone's parent folders, another session's clone, or something that exists under a protected root. Absolute paths, `cd` out of the clone and file-tool paths are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW
Haiku built 18 features 3 times and planned 8 twice in each arm (446 sessions). Builds all-green: none 47 of 54, skill 41, find 40, findcode 41, brief 37, dump 36; processed tokens 1.3x to 2.0x of none. One stale accepted Decision about where shortcuts are registered caused most of the loss: Proof arms broke the frozen plugin table on every task that adds a shortcut, and findcode sessions followed the Decision past its stale-anchor note. Proof-only builds showed no gain (none 17 of 18). Plans: pasted Proof lifted proof-only plans and dragged stale ones, equal overall. Nothing reaches significance on the pre-registered tests. The README gains a results section; results/ holds per-session rows and the compare output; a measurement Finding records the result. With the runs done, the hidden tests and patches are committed in hidden/; grade.mjs now flags reads of the committed copies, and gate.mjs refuses an --out that would rebuild tasks/ in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #299.
What
benchmarks/proof-buildmeasures whether having Proof in context helps or hurts an agent that plans or builds a feature from a product-sense request: one that describes behaviour in a user's words and names no file, symbol or record.Bed. A deterministic generator builds Tessera, a zero-dependency TypeScript design-editor core:
node:testtests, with 84 commits by five authors.Proof:trailers, and 31 code citations.none(the same code with no Proof folder and no trailers) andx10(1,531 records).Tasks. 18 build tasks (6 proof-only, 5 code-visible, 4 stale, 3 control) and 8 plan tasks with rubrics, phrased as product requests.
Arms. Each arm sees identical code and an identical request. Only Proof access differs:
noneskillbrieffindproof findfirstfindcodefind, plus--pathand--refsdumpdump10xGrading.
grade.mjsapplies each session's diff to a clean tree and runs hidden acceptance, constraint and regression tests with no network.judge.mjsscores plans after blinding them, so the judge can't tell which arm wrote a plan.compare.mjspairs each arm withnone, using sign tests with Holm correction.Results: Haiku, full run
There were 446 sessions plus a 30-session pilot. No session timed out or hit an API error. 23 sessions left their folder harmlessly (scratch files,
cd /tmp), and none read the hidden tests.Builds, all-green of 54:
nonenoneskillfindfindcodebriefdumpnonewent 3 of 3 and every Proof arm 0 of 3.findcodesessions saw the note and still followed the Decision.nonepassed 17 of 18): the code's own patterns taught the recorded rules.dump1.00 against 0.90) and dragged down stale ones (0.76 against 1.00), so overall they're equal.dumphas p = 0.059, but the harm sits in a few tasks that share one record.The full tables are in the README. Per-session rows and the compare output are in
results/, and a measurement Finding records the result.Other changes in this PR
hidden/, since the runs are done.grade.mjsflags sessions that read the committed copies.gate.mjsrefuses an--outthat would rebuildtasks/in place.Checks
hidden/and from the copy outside the repo.noneclone: it has no trace of Proof.Next
🤖 Generated with Claude Code
https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW