Skip to content

fix(bench): held-out verify specs used wrong field names - #367

Merged
dahai80 merged 1 commit into
mainfrom
fix-heldout-verify-specs
Nov 27, 2026
Merged

dahai80 merged 1 commit into
mainfrom
fix-heldout-verify-specs

Conversation

@dahai80

@dahai80 dahai80 commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Problem

#362 shipped H01-H05 verify specs with guessed field names. The verify() contract is test (pytest), specs (all), stdout (command-stdout, exact match), and grep-absent takes only pattern. Caught live on the first milestone run: H02-H04 threw TypeError inside verify, H01 silently compared against undefined → false. Standard-20 rows were unaffected.

Fix

  • Specs corrected in tasks.json (H01 stdout-exact, H02/H04/H05 pytest test, H03 all.specs with pathless grep-absent).
  • New guard test tests/benchmarks/heldout-verify.test.ts (9 cases): every held-out spec must resolve through verify() itself against a canned correct solution, and fail on the untouched fixture. The original smoke bypassed verify() — that is how the drift shipped; the guard closes that path.

Verification

🤖 Generated with Claude Code

#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]>
@dahai80
dahai80 merged commit ce9dea0 into main Nov 27, 2026
1 check passed
@dahai80
dahai80 deleted the fix-heldout-verify-specs branch November 27, 2026 06:06
@dahai80 dahai80 mentioned this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant