Skip to content

test(grade): cover the 0.3 critical cap on the judge path - #74

Open
qte77 wants to merge 1 commit into
PhysicalAIBenchmarks:mainfrom
qte77:test/critical-cap-judge-path
Open

qte77 wants to merge 1 commit into
PhysicalAIBenchmarks:mainfrom
qte77:test/critical-cap-judge-path

Conversation

@qte77

@qte77 qte77 commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

CI grades with SKIP_JUDGE=1, so the line that caps a judged reward after a critical failure (reward = min(score, CRITICAL_CAP) if critical else score) never runs in tests; the existing test_sonnet_rna_protocol_that_overdraws_ethanol_is_capped checks the trigger, not the cap. This adds two tests in tests/test_benchmark_regressions.py, one for an IR task's grade() and one for the RNA main(), with the judge, simulator and checks stubbed (no API, no simulator): capped at 0.3 with a critical failure, unchanged below the cap or without one.

Checked: both tests fail when the cap is removed from the two graders and pass on main; full pytest -q -rs with harbor 0.23.0: 220 passed, 6 skipped. Test-only change, no task files touched.

Generated with Claude noreply@anthropic.com

CI grades with SKIP_JUDGE=1, so the line that caps a judged reward after a
critical failure never ran in tests. Stub the judge, simulator and checks
and assert the cap for an IR task and an RNA task: capped at 0.3 with a
critical failure, unchanged below the cap or without one.

Co-Authored-By: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
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