Repository navigation
fix(eval): re-judge judge failures saved under the legacy judge_failed class - #6346
Merged
Merged
Conversation
…d class due_judge_failures matched either class field, but bind_judge_failures and the store's re-judgment checks compared only _ng_failure_class, so judge_unparseable failures were reported due, never bound, and the run stopped incomplete. Fixes #6341 Signed-off-by: Wojciech Prazuch <[email protected]>
Contributor
The binding's other single-field comparison. Without it a spent rollout whose class is retained is judged again instead of refused, and skip_spent returns a non-empty binding. Signed-off-by: Wojciech Prazuch <[email protected]>
Contributor
Author
|
/ok to test 7e70c64 |
lafrancef
approved these changes
Nov 18, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44334793939 |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 18, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44705436435 |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 20, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44708445216 |
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 #6341
What
A run's saved judge failures are now re-judged even when they were saved as
judge_unparseable(withjudge_failedkept as the legacy class). Before, those failures were reported as due but never re-judged, and the run stopped incomplete.Why
A judge verdict that does not parse is saved with
_ng_failure_class: judge_unparseableand_ng_failure_legacy_class: judge_failed.due_judge_failuresmatches either field, so it counts these failures as due.bind_judge_failurescompared only_ng_failure_classtojudge_failed, so it bound none of them. The run then had due work it never did, and it ended with no eligible retry.How it works
Four checks compared one field. They now match either field, like the rest of recovery:
bind_judge_failures, in its spent-budget check and its returned binding, uses_is_judge_failure. That is the predicatedue_judge_failuresand--judge-failed-onlyalready use.is_rejudgment_ofandis_rejudgment_failure_ofusematches_failure_class. Without this, the store refuses to settle a re-judged result ("does not settle the saved judge failure") and does not count a re-judgment that fails again.Nothing changes for rows saved with
_ng_failure_class: judge_failed.What it found
On a real run of 1,353 rollouts with 4 such failures, re-judgment selected 0, recovered 0, and the job exited 76 at 1,349/1,353.
Tested
New tests in
tests/unit_tests/eval/test_rejudge_saved_judge_failures.py, each run forjudge_failedand forjudge_unparseable+ legacyjudge_failed:Both
judge_unparseablecases fail onmain(assert [] == ['0-0'], then "does not settle the saved judge failure"). They pass here.test_rejudge_saved_judge_failures.py,test_reverify_saved_results.py,rollouts/test_rollout_store.py,rollouts/test_rollout_records.py: 323 passed.Full
tests/unit_testson macOS, compared withmainin the same environment: 190 failures and 10 collection errors on both. They are environmental (nomlflowextra, macOS sockets and sandbox tooling). The one test that differs,test_harbor_package_store.py::test_short_http_reply_is_a_package_store_error, also fails 2 runs out of 3 onmainby itself.pre-commit runon the changed files: passed.Rollout evidence
N/A: recovery bookkeeping only. No environment, agent, verifier or model behaviour changes.