Repository navigation
fix(bench): held-out verify specs used wrong field names - #367
Merged
Merged
Conversation
#362 shipped H01-H05 specs against guessed field names (path/all/expect); the real verify() contract is test (pytest), specs (all), stdout (command-stdout), and grep-absent takes pattern only. First milestone run caught it live: H02-H04 threw TypeError in verify, H01 silently compared against undefined. Specs corrected; new guard test runs every held-out spec through verify() itself with a canned correct solution (resolves) and, where a fixture exists, the untouched tree (fails) - the original smoke bypassed verify(), which is how the drift shipped. Co-Authored-By: Claude Code <[email protected]>
Merged
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.
Problem
#362 shipped H01-H05 verify specs with guessed field names. The
verify()contract istest(pytest),specs(all),stdout(command-stdout, exact match), and grep-absent takes onlypattern. Caught live on the first milestone run: H02-H04 threwTypeErrorinside verify, H01 silently compared againstundefined→ false. Standard-20 rows were unaffected.Fix
tasks.json(H01 stdout-exact, H02/H04/H05 pytesttest, H03all.specswith pathless grep-absent).tests/benchmarks/heldout-verify.test.ts(9 cases): every held-out spec must resolve throughverify()itself against a canned correct solution, and fail on the untouched fixture. The original smoke bypassedverify()— that is how the drift shipped; the guard closes that path.Verification
bun test tests/benchmarks/heldout-verify.test.ts: 9/9 pass.--only H01,H02,H03,H04,H05) after merge to produce the first valid heldoutRate for report 请求: 暴露项目级 API (JSON-RPC/HTTP) #6.🤖 Generated with Claude Code