Repository navigation
feat(bench): add a free offline gate for proof find - #283
Draft
tonyketcham wants to merge 2 commits into
Draft
tonyketcham wants to merge 2 commits into
tonyketcham wants to merge 2 commits into
Conversation
Before paying for agent sessions that test `proof find`, check for free whether it can surface the answers at all. - scripts/find-recall.mjs runs the real `proof find`, through one read server, on every question in three query sets: the raw question, the question with Effort titles and platform names removed, and the raw question scoped to its own Effort. The plan called for a third set of queries taken from pilot transcripts; no transcript has used `find` yet, so the scoped set stands in. Per question it records whether an evidence record is in the top 5, whether the answer appears on a card (whole tokens only; value answers that match most cards by chance are set aside), whether the right Effort ranks first, and reply size. - task.mjs adds a `find` strategy: start with find, get a hit for full text, use records only to count. The brief and nobrief texts are byte-identical. run.mjs still runs brief and nobrief by default and refuses unknown strategies. - compare.mjs pools several runs per side, pairing run i with run i. It refuses a file listed twice and also prints a sign test that counts each question once. - collect.mjs records a hash of the find source in each run file, and compare.mjs warns when two runs used different searches. The first gate fails on the 10x graph: an evidence record is in the top 5 for 81% of questions (bar 75%), but the answer appears on a card for only 56% (bar 60%). Blob payloads, counts, and lifecycle questions miss most. The README records the result and the next steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW
This was referenced Oct 19, 2026
…-find-gate Brings main's cross-Effort derives_from change (#280) up the stack, through the merge on the branch below. No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVVnhYL1Bz7mCfEKDoyLMW
4 of 8 tasks
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.
Summary of changes
Layer 3 of a stack. It sits on #282 (
proof find), which sits on #281.This adds a check that costs nothing to run. It asks whether
proof findputs the right record, and the answer itself, in its top five results. It runs no model. The rule is simple: no paid benchmark run until this check passes.scripts/find-recall.mjsruns every benchmark question throughproof findin three ways:--all);--effort).An Effort is Proof's top-level record for one piece of work. For each question the script records four things:
The check passes when the stripped set has evidence in the top five for at least 75% of questions and the answer on a card for at least 60%.
task.mjsadds afindstrategy. Its prompt tells the agent to read withfind, thenget, and to userecordsonly to count. Thebriefandnobriefprompts are byte-identical to before.collect.mjsstoresfind_hash, a sha256 offind.ts, in each run file's header.compare.mjswarns when two runs used differentfindcode. It can now also pool several run files, and it refuses the same file twice.run.mjsrecordsfind_hashtoo.The README records the first result. On the 10x graph the check fails:
The weak categories are Blob questions (22% answer on card, though 100% evidence), counts (24%), lifecycle (46%), and retraction (40%). So no paid runs were made. The next step is to quote the linked Blob passage on a card, then rerun this check.
To run it:
node benchmarks/proof-recall/scripts/find-recall.mjs, with--graph <dir>for the 10x graph.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
check.mjsand the single-filecompare.mjsoutput are unchanged)Does this introduce any non-backwards compatible changes?
Does this include any user config changes?
Generated by Claude Code