Skip to content

feat(bench): held-out task tier H01-H05 with BENCH_HELDOUT gate - #362

Merged
dahai80 merged 1 commit into
mainfrom
bench-heldout
Nov 27, 2026
Merged

dahai80 merged 1 commit into
mainfrom
bench-heldout

Conversation

@dahai80

@dahai80 dahai80 commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Why

The 20-task suite has driven 10+ iteration runs (prompts, verify specs, thermal analysis, resume design) — per SWE-Bench Pro's held-out practice it can no longer be cited as an uncontaminated measure. This PR adds a frozen held-out tier that regular iteration runs never touch.

What

  • tasks.json v1.1.0: five new tasks H01-H05 with heldout: true, spread across difficulty/kind (easy/create, medium/fix, medium/search-edit, hard/debug, hard/implement).
  • Runner: BENCH_HELDOUT=1 gate — held-out tasks are filtered out of every default run (--only stays an explicit escape hatch). Rows gain heldout; summary gains heldoutTotal/heldoutResolved/heldoutRate (null when the tier did not run).
  • Fixtures frozen: comment in run.ts marks the tier — editing a held-out fixture invalidates its status and should be treated as re-baselining.

Verification

  • bun build --no-bundle clean.
  • All five fixtures smoke-tested with canned correct solutions: H01 stdout exact-match, H02-H05 pytest green, H03 stale-import grep-absent satisfied.

Discipline

Held-out tier runs only at milestone evaluation (progress reports), never during feature iteration. First milestone run lands after #356/#357/#358/#361 all merge.

🤖 Generated with Claude Code

SWE-Bench Pro practice: a score that has driven 10+ iteration runs stops
being an honest measure. tasks.json gains five held-out tasks (v1.1.0)
that are excluded from every run unless BENCH_HELDOUT=1 (or explicitly
selected via --only), so they can anchor milestone scoring without ever
driving iteration decisions.

- H01 easy/create: greet.sh prints hello (command-stdout)
- H02 medium/fix: sum_to off-by-one (pytest)
- H03 medium/search-edit: rename-leftover import sites (all: grep-absent
  + pytest)
- H04 hard/debug: exception swallowing (pytest)
- H05 hard/implement: LRU cache (pytest)

Runner: fixtures added (frozen — editing one invalidates held-out
status), heldout filter in task selection, rows gain heldout flag,
summary gains heldoutTotal/heldoutResolved/heldoutRate.

Verified: all five fixtures build and verify passes on a canned correct
solution (H01 stdout, H02-H05 pytest green, H03 stale-import check).

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit ca8ec99 into main Nov 27, 2026
1 check passed
@dahai80
dahai80 deleted the bench-heldout branch November 27, 2026 00:52
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