Skip to content

fix(eval): re-judge judge failures saved under the legacy judge_failed class - #6346

Merged
wprazuch merged 2 commits into
mainfrom
wprazuch/fix-judge-binding-legacy-class
Nov 20, 2026
Merged

wprazuch merged 2 commits into
mainfrom
wprazuch/fix-judge-binding-legacy-class

Conversation

@wprazuch

Copy link
Copy Markdown
Contributor

Fixes #6341

What

A run's saved judge failures are now re-judged even when they were saved as judge_unparseable (with judge_failed kept 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_unparseable and _ng_failure_legacy_class: judge_failed. due_judge_failures matches either field, so it counts these failures as due. bind_judge_failures compared only _ng_failure_class to judge_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 predicate due_judge_failures and --judge-failed-only already use.
  • is_rejudgment_of and is_rejudgment_failure_of use matches_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 for judge_failed and for judge_unparseable + legacy judge_failed:

    • bind then settle;
    • a re-judgment that fails again spends a failure attempt.

    Both judge_unparseable cases fail on main (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_tests on macOS, compared with main in the same environment: 190 failures and 10 collection errors on both. They are environmental (no mlflow extra, 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 on main by itself.

  • pre-commit run on the changed files: passed.

Rollout evidence

N/A: recovery bookkeeping only. No environment, agent, verifier or model behaviour changes.

…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]>
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 18, 2026 09:30
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
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]>
@wprazuch

Copy link
Copy Markdown
Contributor Author

/ok to test 7e70c64

@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters needs-review PR is ready for code review and waiting on a reviewer labels Nov 18, 2026
@lafrancef
lafrancef added this pull request to the merge queue Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44334793939

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 18, 2026
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Nov 19, 2026
@wprazuch
wprazuch added this pull request to the merge queue Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44705436435

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@wprazuch
wprazuch added this pull request to the merge queue Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44708445216

Merged via the queue into main with commit 4e8d0c4 Nov 20, 2026
81 checks passed
@wprazuch
wprazuch deleted the wprazuch/fix-judge-binding-legacy-class branch November 20, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-judgment binds no judge failure saved as judge_unparseable, so the run stops incomplete

3 participants