Repository navigation
fix(reproduce): check task count and compare only requested rubrics - #376
Open
plox-sumit wants to merge 1 commit into
Open
plox-sumit wants to merge 1 commit into
plox-sumit wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This branch has not been deployed
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.
Fixes #362.
What was wrong
clawbench-reproducecould say PASS for a run on the wrong number of tasks, and could say FAIL for a correct single-rubric run.verdict()only looked at the three percentages. It never looked at the task count. So 5 tasks with the same percentages passed against a published row of 130 tasks.--rubric lenientor--rubric strict, the rubric that was not run was read as 0% and still compared. A correct lenient-only run failed on the strict column, which nobody asked for.What changed
n, givesINVALID.not evaluatedinstead of0.0%.INVALID, not 0%.n_judge_err_<rubric>above zero), the result isINVALID. Those runs were counted as misses even though the judge never answered.verdict()now returns"pass","fail"or"invalid". If a run is both incomplete and off by more than the tolerance, it is reported asINVALID, because numbers from an incomplete run can't be trusted either way.clawbench-runalready exits 3 when the judge gives no verdict, and 2 is already used for an unknown model.Example output for a lenient-only run:
Left for you to decide
task_id, but the published table only hasn, so there is nothing to compare the ids with. This PR checks the count only. If you add a task list or a dataset revision to the published rows, I can add that check in a follow-up.INVALIDis the strict choice. If you want a softer rule, tell me and I'll change it.Tests
New file
tests/test_reproduce_verdict.py. It covers both examples from the issue, lenient-only and strict-only runs, full mode (a pass and a real mismatch), a missing rubric, judge-inconclusive runs, empty input, and the three CLI exit codes. 13 of its 15 cases fail onmain, and all 15 pass with this change.uv run --frozen pytest: 301 passed, 10 skipped, 1 failed (see below)uv run --frozen ruff checkandruff format --check: cleanpyright: no errors in the files I touchedThe one failing test is
test_checked_task_json_files_parse_and_validate[v1-lite]. It fails the same way onmainon my Windows machine, becausetest-cases/v1-liteis made of symlinks and Windows checks them out as text files. It has nothing to do with this change, and I expect it to pass in CI.CHANGELOG: added one line under Unreleased / Fixed.
🤖 Generated with Claude Code