Repository navigation
Reject unexpected benchmark case selection before model calls - #358
Draft
seyoung4503 wants to merge 3 commits into
Draft
seyoung4503 wants to merge 3 commits into
seyoung4503 wants to merge 3 commits into
Conversation
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.
A prespecified 31-case failure manifest was intersected with the CLI's default development split, so only one case ran. Add optional
--expected-casesto reject an unexpected final selection before creating output or calling a model. Logs and settings record the input, selected and expected counts. Existing split, exclusion and scoring behavior is unchanged.The check runs after split and failure/pass filtering, including the zero-case path. Expected zero permits a confirmed no-op; negative expectations fail. For a prespecified failure manifest, use
--split all --expected-cases N. Here, “all” means every case in that manifest, not the full benchmark.Validation: 370 tests passed, 1 skipped, scoped Ruff and diff checks passed. Tests cover the development-split mismatch, post-exclusion mismatch, zero no-op, negative expectation, successful matching count and settings provenance. The existing runner and settings paths are reused: no new runtime functions, net +19 runner lines, no product code changes.
Runtime evidence is archived in
bench/accuracy/mcp-review-results/selection-count-validationwith 39 verified hashes. The original one-case run (bird146, official 0/1) is preserved. Its other 30 cases were started in a fresh output with explicit--split all; actual manifest IDs were verified 30/30. No already-executed case was repeated. A subsequent two-case run verified input=2, selected=2 and expected=2 through the new guard. It scored 1/2: bird495 improved, bird467 did not. The guard is not claimed to improve SQL accuracy.A controlled offline audit isolated bird467's remaining mismatch: changing only the protein predicate leaves 71 patients; removing only the model-added requirement that the test date follow the birth date yields the reference's 73. Two additional patients qualify through pre-birth-date records. This is diagnostic evidence, not a model repair or a change to product policy; the original score remains zero.