Repository navigation
feat(eval): leave infra failures that persist out of the score - #4851
AdamRajfer wants to merge 37 commits into
Conversation
An infra failure still failing at the attempt cap, and a rollout that left no row, counted as 0, so an outage the model did not cause lowered its score. Evaluation now leaves them out: the headline is the mean over the scored rollouts, and the metrics file and the exporters (MLflow, W&B) carry `rollouts_infra_unresolved`, `rollouts_infra_unresolved_rate` over the rollouts owed a score, `rollouts_complete`, and `publishable`, which is false above 2% unresolved. The run logs the count. The rows stay non-terminal, so a later attempt can still dispatch them. A Tau2 rerun still below the cap also leaves the run incomplete. Benchmark configs decide where their method differs: Terminal-Bench 4 and SWE- bench Pro set `count_infra_unresolved_as_zero`, and LMArena sets `count_failure_classes_as_zero: [judge_failed]`, so its judge failures at the cap count against its own gate. The completeness fields appear only when the run is incomplete. A run in which every rollout ended left out or unresolved has nothing left to retry, so it finishes; its metrics carry no score, `rollouts_complete: false` and `publishable: false`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
|
/ok to test 5846430 |
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…cohort failure A GenRM cohort or judge failure is an infra failure still owed a retry. Counted as 0 through count_failure_classes_as_zero it is scored, but the run stays incomplete, so the aggregate metrics now carry the completeness fields next to mean/reward. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
|
/ok to test 6dd5447 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
HOLD — six RISK findings affect completeness accounting, scoreless artifacts, and retry/export behavior.
Reviewed all 11 changed files and traced the affected aggregation, shard identity, resume, and exporter paths. Findings are based on static source reasoning; tests could not be executed in this read-only review.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| latest_failures, | ||
| failure_attempts, | ||
| result_ids, | ||
| expected=len(results) + len(latest_failures) + len(missing if missing else no_row), |
There was a problem hiding this comment.
RISK — Recovered failures inflate the publication-rate denominator
Failure: A sidecar failure recovered by another shard remains in latest_failures, although _infra_unresolved_counts skips it via result_ids. This expression nevertheless includes it in expected. For example, an original shard has 47 successes and judge failures for tasks 0 and 48; a retry shard succeeds on task 0. There are 49 rollouts owed a score and one unresolved failure, but this computes 50 owed: publishable becomes true at 1/50 instead of false at 1/49. This silently changes the publication gate for recovered evaluations.
Correction: In this completeness call, count sidecar identities only when no scored result supersedes them. The replacement expression is:
expected=(
len(results)
+ len(set(latest_failures) - result_ids)
+ len(missing if missing else no_row)
),This addresses recovered sidecars; missing-row reconciliation is a separate finding.
Preservation / acceptance — proposed checks, not executed: Construct the two-shard example above with distinct task indices: expect unresolved=1, rate=1/49, and publishable=false. A failure-only inventory must still include each failed rollout once; a selected infra failure scored as zero must remain unresolved; benchmark data gaps must still be removed from owed by _infra_unresolved_counts. Keep the recovered task's reward scored exactly once.
There was a problem hiding this comment.
Fixed in cf6ad74 (fix(eval): do not owe a score twice for a failure another shard recovered), with a test that fails without the fix.
| failure_attempts, | ||
| result_ids, | ||
| expected=len(results) + len(latest_failures) + len(missing if missing else no_row), | ||
| missing=len(missing if missing else no_row), |
There was a problem hiding this comment.
RISK — A retry shard cannot clear another shard's missing-row count
Failure: Let the original inventory contain tasks 0 and 1, with only task 1 recorded; a retry shard records task 0 for the same environment server. Scoring correctly includes both successes, but no_row still contains the original shard's task 0. With default options it is counted unresolved directly; with zero-imputation enabled, missing becomes empty and this fallback counts no_row anyway. The fully recovered run therefore reports unresolved=1, rate=1/3, complete=false, publishable=false.
Correction: Reconcile missing identities globally regardless of whether they will be scored. In aggregate reconciliation, build result_ids unconditionally, then normalize no_row before the existing imputation branch:
result_ids = {_identity_key(r, group) for r in results}
# After collecting no_row from the individual shards:
accounted = result_ids | set(latest_failures)
no_row = list({
_identity_key(r, group): r
for r in no_row
if _identity_key(r, group) not in accounted
}.values())Use len(no_row) for completeness, independently of the opt-in missing list. The invariant is one unresolved observation per still-unaccounted logical rollout.
Preservation / acceptance — proposed checks, not executed: Extend the existing retry-shard case to assert that recovered runs have no incomplete fields, both with imputation disabled and enabled. Two shards missing the same logical rollout must count it once. Identical task indices belonging to different environment servers must remain separate, retaining the existing per-server lost-rollout score assertions.
There was a problem hiding this comment.
Fixed in c92a138 (fix(eval): count a rollout missing from one shard once, after the other shards), with a test that fails without the fix.
| if config.materialized_jsonl_fpath.exists() | ||
| else len(input_rows) + persisted_count | ||
| ) | ||
| no_score = aggregate_metrics_fpath is None and not config.disable_aggregation and bool(input_rows) |
There was a problem hiding this comment.
RISK — Settled scoreless resumes and offline aggregation omit their metrics artifact
Failure: With cap=1, collect one judge_failed rollout using disable_aggregation=true, then resume with aggregation enabled. Cache loading dispatches nothing, so input_rows=[]; aggregation returns None, this predicate is false, and no scoreless metrics file or completeness export is produced. Offline aggregation of the same settled artifacts also returns None: its finalization neither creates a placeholder nor passes no_score. The promised incomplete/non-publishable artifact therefore exists only for a fresh collection invocation, not equivalent resumed or sharded runs.
Correction: Base the collection fallback on the nonempty expected inventory, not the dispatch subset:
no_score = (
aggregate_metrics_fpath is None
and not config.disable_aggregation
and expected_rollouts > 0
)When true, pass the full materialized inventory to _unscored_metrics_file, not input_rows. Add equivalent finalization in RolloutAggregationHelper.run_from_config for an empty scored set whose known failures are all terminal or capped; create the scoreless entries and pass no_score=True. Keep pending retry-only and disabled-aggregation behavior distinct.
Preservation / acceptance — proposed checks, not executed: For the two-invocation example and offline aggregation, expect no reward metric, unresolved=1, complete=false, publishable=false. For an all-data-gap settled inventory, expect unresolved=0 but still complete=false/publishable=false because there is no score. Preserve the fresh settled-run assertions, the collection error for retry-only failures below cap, and no metrics file when aggregation is disabled. Creating offline scoreless entries must not require a live head server.
There was a problem hiding this comment.
| config.count_failure_classes_as_zero, | ||
| persisted_success_keys, | ||
| retry_terminal_timeouts=config.retry_terminal_timeouts, | ||
| infra_unresolved_as_zero=config.count_infra_unresolved_as_zero, |
There was a problem hiding this comment.
RISK — The new infra-zero opt-in is ignored by the no-result guard
Failure: With default count_failure_classes_as_zero=None, count_infra_unresolved_as_zero=true, and one judge failure below the attempt cap, this call correctly puts a zero in counted. However, the result guard recomputes result_failures using [] without the new option. It finds no result and raises before saving the explicitly requested zero-valued metrics. The new Terminal-Bench/SWE-bench option therefore behaves differently for an all-infra-failure run than for a mixed run.
Correction: In the result_failures conditional expression, replace the condition with:
if (
config.count_failure_classes_as_zero is not None
or config.count_infra_unresolved_as_zero
)Keep counted as the true branch and retain the existing fallback. An explicitly opted-in, nonempty metrics input must satisfy this guard; this must not bypass the later require_complete check.
Preservation / acceptance — proposed checks, not executed: With cap=3 and require_complete=false, one judge_failed result plus the new flag should finish with mean/reward=0, unresolved=1, complete=false, publishable=false, while leaving the main rollout file empty and the original failure in the sidecar. With the flag false, the same below-cap default run must still raise the no-result error. Data gaps must never become zeros; final model failures must remain zeros; explicit class filtering must continue to control which retryable failures are counted.
There was a problem hiding this comment.
Not changed yet, on purpose. Should count_infra_unresolved_as_zero also satisfy the no-result guard (the run finishes with 0 and stays incomplete), or should the guard keep raising so a resume retries first? That decision is open; follow-up in this thread.
There was a problem hiding this comment.
Fixed in 547aea2 (fix(eval): let a benchmark's infra zeros satisfy the no-result guard), with a test that fails without the fix. With count_infra_unresolved_as_zero, an all-infra run now finishes with 0 and stays marked incomplete.
There was a problem hiding this comment.
Update after review: the earlier resolution changes. With count_infra_unresolved_as_zero, the opted-in zeros now count only beside a real result (a saved row or a final failure). A run in which no rollout has a real result measured nothing, so it fails with no score and asks for a resubmit, instead of finishing at 0. Changed in 1390e33, covered by test_infra_zeros_need_a_real_result_beside_them. The same rule for a run whose rollouts are all at the attempt cap follows in a separate commit.
| the keys it published before; their absence means complete and publishable. Returns the fields it added, | ||
| for the exporters, or ``{}``. | ||
| """ | ||
| if fields["rollouts_complete"]: |
There was a problem hiding this comment.
RISK — Successful resumes leave persistent exporters marked incomplete
Failure: An incomplete hop exports rollouts_complete=false and publishable=false. A successful resume removes those fields from the new metrics file, but this early return also suppresses their exporter update. Both MLflow and W&B reopen the previous tracking run, so its last completeness values remain false after all rollouts succeed. Absence in a later export does not clear stored metrics.
Correction: Keep omission from complete metrics files, but send an explicit current-state update to persistent exporters. The smallest change at this branch is:
if fields["rollouts_complete"]:
return dict(fields)Both entrypoint callers already export the returned mapping. Update the helper/doc wording to distinguish artifact omission from exporter state updates. The invariant is that resumed tracking state agrees with the latest inventory, not a previous hop.
Preservation / acceptance — proposed checks, not executed: Use a persistent fake exporter that merges metric updates across an incomplete run and a successful resume. Its final values must be unresolved=0, rate=0, complete=true, publishable=true; the completed metrics file must still omit completeness fields. Retain the existing incomplete-run export assertions and confirm that a still-incomplete resume continues to export its current unresolved count and gate result.
There was a problem hiding this comment.
Fixed in 0495490 (fix(rollout): export the completeness fields of a complete run too), with a test that fails without the fix.
|
|
||
| def _unscored_metrics_file(output_fpath: Path, rows: Iterable[Mapping[str, Any]]) -> Path: | ||
| """The metrics file of a settled run that scored nothing: one entry per agent, with no score in it.""" | ||
| agents = sorted({name for name in map(_routing_identity, rows) if name}) |
There was a problem hiding this comment.
RISK — Scoreless placeholders collapse distinct environment-server results
Failure: Give _unscored_metrics_file two rows stamped with environment servers env1 and env2, both carrying agent_ref.name="agent_x". _routing_identity chooses the agent first, so this creates one agent_x entry and discards both server stamps. Normal aggregation instead emits separate env1 and env2 entries through server-first grouping and label_runs. Thus an entirely scoreless run changes the artifact's identity contract and loses one benchmark's entry. Native rows without an agent also lose their environment-server stamp.
Correction: Build scoreless entries using the same environment-server grouping and unique-label contract as normal aggregation, retaining _ng_environment_server for stamped groups. Do not deduplicate stamped rows through _routing_identity. Preserve the existing agent fallback for genuinely unstamped legacy rows and the ability to create scoreless artifacts without a live scoring server. Exact offline binding resolution for unstamped legacy rows is not available from this helper's current inputs, so a blind replacement would be unsafe; that fallback needs an explicit implementation decision rather than treating agent names as server names.
Acceptance — proposed checks, not executed: Directly call the helper with the two stamped rows above: expect two entries labelled env1/env2, each with its matching server stamp and no score. A native row containing only the server stamp must retain it. A single unstamped legacy agent must still produce its existing agent-labelled entry, without contacting the head server. Verify that scoreless and scored artifacts use the same identities for the stamped two-server case.
There was a problem hiding this comment.
Fixed in fb10206 (fix(rollout): key scoreless metrics entries by environment server), with a test that fails without the fix.
…ered Bot finding 4339235313, PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). gym eval aggregate counted every latest sidecar failure in the rollouts owed a score, including one another shard landed, so the unresolved rate was too low (1/50 instead of 1/49) and publishable could flip to true. Only failures no result supersedes are owed now. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…er shards Bot finding 4339235334, PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). A rollout one shard has no row for was counted as unresolved even when a retry shard had landed it, unless missing rollouts were scored, so a fully recovered run read incomplete and not publishable. Missing rows are now reconciled against every shard's results and failures whether or not they are scored. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…lete Bot finding 4339235356, PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). The no-result guard keyed on this invocation's input rows, so a resume whose every rollout settled earlier wrote no aggregate file. Judge by the materialized inventory instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Bot finding 4339235378, PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). MLflow and W&B reopen a resumed tracking run, so omitting the fields once the run completes left the earlier hop's rollouts_complete=false in place. The metrics file still omits them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Bot finding 4339235393, PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). A run that scored nothing grouped its placeholder entries by agent first, so two servers fronting one agent collapsed into one entry and lost their stamps. Key and label them as _call_aggregate_metrics does; unstamped legacy rows keep the agent fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…ggregate Bot finding 4339235356 (offline half), PR NVIDIA-NeMo#4851 (part 9, infra failures that persist). Offline aggregation of a run whose every failure is final or at the cap wrote no metrics file. Write the scoreless entries with no_score, as collection does; a failure still below the cap keeps the old behaviour. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Each in-place try now records its cause, and judge_failsafe passes all of them to the rule. A reply with text and no verdict is JudgeNoVerdictError, the model's: the judge answered, so the answer was judged. An empty reply is JudgeEmptyReplyError, infra: a throttled judge or a provider-side filter can send an HTTP 200 with no text. raise_unparseable_verdict picks between them by whether the reply has text, and call_judge does the same in evaluation for an empty or non-JSON 200 body. Rate limits and every HTTP or transport error stay infra. A context overflow the server cannot tie to the answer stays infra; the model's own overflow is still read from the judge engine's context-length reply. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…he model's 0 Arena already sends the judge reply's text to raise_unparseable_verdict, and an arena reply with no text (no output, no message, no text content) is an empty reply. Tests cover an empty reply three times, an empty reply then text with no verdict, a 429 three times (all infra, left out of the score), and text with no verdict three times (the model's final 0). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…fusal as no verdict In evaluation, a judge reply with no text (no output, or a reasoning-only item) is now an empty reply, which the rule treats as infra, so it never becomes the model's 0. A refusal and text with neither label are replies with no verdict: the judge answered, so after three tries the row is the model's final 0. Training still scores all of them as unequal. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
… row The infra branch of judge_failure_after_retries built a row with no reward. reward is required in the verify response, so the agent rejected the reply and the rollout was recorded as a generic agent failure, with the model as its cause and without the judge's cause, attempt count or settled stamp. The infra row now carries reward 0.0 with mask_sample set, so it is a valid reply that is no measurement: evaluation leaves it out of the score, counts it in rollouts_infra_unresolved, and marks the run not publishable above the gate. The never-re-dispatch stamp, failure_kind and the judge fields are kept. A failed judge call is now infra whatever its status: the judge never answered, so the answer got no verdict. Before, a 4xx with no budget or key text, such as a plain 422, read as the model's. The model's 0 stays for a judge reply with text and no verdict, and for a context overflow a server can tie to the answer. nemo_gym/testing/verify_reply.py carries a verify reply through the agent's response contract, the collector and aggregation, so a server's tests can check the row end to end. Tests use it for the shared judge path, arena and math_with_judge. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…rdict judge_failure_after_retries takes no_verdict, what the benchmark's official grader does when the judge answered with text but no verdict on every try. 'wrong' keeps the model's final 0. 'drop' keeps the answer as a result that is no measurement: mask_sample with failure_kind judge_no_verdict, so aggregation leaves it out of the score and counts it in coverage/masked_rollouts, and resume never re-dispatches it. 'drop' is the default, so a server with no stated official behaviour never scores it 0. Empty replies, rate limits and failed calls stay infra-unresolved. Includes the shared judge path's judge_no_verdict_outcome server setting, which the rule reads. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
When the judge answers with text but no verdict on every try, the arena game keeps no verdict instead of becoming a failure row. Arena's metric then leaves the rollout out of the win rate and counts it against the failed-rollout gate, which is how Arena-Hard-Auto treats a null judgment. Empty replies and failed calls stay infra-unresolved. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…s NeMo-Skills does math_with_judge sets judge_no_verdict_outcome to 'wrong': NeMo-Skills' math judge scores a judgement with no verdict as not equal, so after its tries the row is the model's final 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…an all-infra run A model endpoint that refuses or drops every connection was retried forever unless an endpoint file was set, so a dead policy server held its rollouts until the job ended. request() and NeMoGymAsyncOpenAI take max_connection_retry_seconds, how long one request keeps retrying a connection that fails without a break. In evaluation vllm_model sets it from endpoint_connection_retry_seconds (default 300 s, configurable), so its requests then fail with the connection error, which is infra. Training keeps retrying. A run whose every rollout is only infra-unresolved at the attempt cap no longer finishes as settled in evaluation: it measured nothing, so it fails with the no-result error and says to resubmit, with or without count_infra_unresolved_as_zero. A run with a data gap or any real result still finishes, incomplete and not publishable. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
… existed A failure at verification, after the rollout produced the model's answer, was re-dispatched on resume when its kind was retryable: a relayed judge 422 labelled transient, a verifier mask, a relayed 5xx. That gives the model another try and scores a different answer. In evaluation such a row is now never re-dispatched, whatever its kind. It is infra-unresolved: left out of the score, counted, and recoverable later with gym eval reverify. Gym's exception middleware sets X-NeMo-Gym-Failure-Stage: verification beside the cause header when the failing inner call was a /verify, so an agent's 500 says where it failed; the collector keeps the stage on the row, as it already does for an environment server's failure stage. A failure before the answer exists is re-dispatched as before, and training is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
The test retries a judge reply with no verdict in place on the same answer, then scores text with no verdict as the model's 0 and an empty reply as unresolved infra. Its old name said the reply was never a zero. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
…gent The end-to-end judge tests imported the simple agent's app only to validate a verify reply against its response model. That import brought the whole agent app into the unit-test coverage at 21%, so the unit job failed its 95% gate. verify_reply_through_collection already validates against the same contract, a BaseVerifyResponse that keeps extra fields, so the tests now use only the helper. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Part 9 of 9, merge in order. Stacked on #4850; the diff shows only this part's changes.
What and why. An infra failure that was not final, below the attempt cap or at it, counted as 0 by default, so an outage the model did not cause lowered its score. A rollout that left no row was left out with nothing to say so. Evaluation now leaves both out of the score and counts them as unresolved: the headline is the mean over the scored rollouts, and the metrics file and the exporters (MLflow, W&B) carry
rollouts_infra_unresolved,rollouts_infra_unresolved_rateover the rollouts owed a score,rollouts_complete,max_infra_unresolved_rate(0.02), andpublishable, which is false above that rate. The run logs the count. Ingym eval aggregate, a rollout that one shard failed or left no row for, but another shard landed, counts once: it is neither unresolved nor owed a score twice. The rows stay non-terminal, so a later attempt can still dispatch them. A Tau2 rerun still below the cap also leaves the run incomplete. Benchmark configs decide where their method differs: Terminal-Bench 4 and SWE-bench Pro setcount_infra_unresolved_as_zero, and LMArena setscount_failure_classes_as_zero: [judge_failed], so its judge failures count against its own failed-rollout gate, never as lost games. In the metrics file the completeness fields appear only when the run is incomplete. The exporters get them on every run, so a resume that completes overwrites an earlierrollouts_complete: falsein MLflow and W&B.A run whose every rollout is unresolved infra at the attempt cap measured nothing, so in evaluation it fails with the no-result error and asks for a resubmit, with or without
count_infra_unresolved_as_zero. A run with nothing left to retry that has a data gap or any real result finishes, including a resume that has nothing left to dispatch. If no rollout of it scored, its metrics carry no score,rollouts_complete: falseandpublishable: false, with one entry per environment server;gym eval aggregatewrites the same metrics for such a run. Withcount_infra_unresolved_as_zero, the opted-in zeros count only beside a real result (a saved row or a final failure). A run in which no rollout has one measured nothing: below the attempt cap it fails with no score and asks for a resubmit. This holds ingym eval runand ingym eval aggregate.Judge failures, in evaluation only. A judge failure never re-runs the rollout: that would give the model another answer and score a different one.
NEMO_GYM_JUDGE_MAX_ATTEMPTS(default 3) with backoff. Only the outermost loop retries, so a call nested in a server's call-and-parse attempt does not multiply the cap.judge_failure_after_retriesinnemo_gym/failure_kinds.py):judge_no_verdict_outcome. LMArena drops the null judgment as Arena-Hard-Auto does: the game keeps no verdict, stays out of the win rate and counts against the failed-rollout gate. math_with_judge scores it wrong, as NeMo-Skills does.dropis the default, so a server with no stated official behaviour never scores it 0.reward0.0 withmask_sample, stays out of the score, counts inrollouts_infra_unresolved, and the run is not publishable above the rate.judge_input_too_long), not retried. Servers opt in where the judge input holds only the model's answer next to fixed text and the official grader gives such an answer no credit: SimpleQA, AA-LCR, and the frontierscience, physics and ugphysics judges.gym eval reverify. Gym's exception middleware setsX-NeMo-Gym-Failure-Stage: verificationwhen the failing inner call was a/verify, and the collector keeps the stage on the row. A failure before the answer exists is re-dispatched as before.vllm_modelstops retrying a connection that keeps failing afterendpoint_connection_retry_seconds(default 300 s, configurable), so the request fails with the connection error, which is infra, instead of holding its rollouts until the job ends.judge_failed, an arena judge failure is a skipped game, an unparseable math verdict scores as unequal, a failed verify is re-dispatched, and a dead endpoint is retried.Methodology. A rollout with no measurement is not a score of 0, and a run with too many of them is not published. Terminal-Bench scores an errored trial as 0 and SWE-bench Pro an evaluation error as unresolved, so those two keep the 0.
Eval scores. Runs with infra failures that are not final move up. Runs with those failures, or with missing rollouts, may be marked not publishable. Terminal-Bench 4 and SWE-bench Pro do not move for failures that left a row, but a rollout that left no row now counts as 0 there, so such runs move down. A judge failure is scored on the model's first answer: a judge that never answered leaves the row out instead of a 0, and a reply with no verdict scores as each benchmark's grader does. Runs with neither do not move.
Training and RL: no change. Every change is in
gym eval runandgym eval aggregatescoring and in evaluation-only judge and endpoint handling;run_examplesis untouched. Checked by the existingrun_examplestests passing unchanged.Unit tests.
test_failure_retry_rule.py::TestInfraUnresolved(unresolved counts, rate,publishable, a pending Tau2 rerun, a capped row dispatched again with a fresh attempt budget, a settled scoreless run that finishes and reports incomplete, a resume with nothing left to dispatch, scoreless entries per environment server,test_infra_zeros_need_a_real_result_beside_them, the benchmark configs),test_an_all_infra_run_at_the_cap_fails_for_resubmit,test_rollout_collection.py::test_an_incomplete_run_exports_its_completeness_fields(run and aggregate paths),test_rollout_collection.py(run and aggregate paths, shards, a resume that completes, a settled scoreless aggregate),test_infra_zeros_at_the_cap_need_a_real_result_beside_them,test_gym_eval_aggregate_scores_infra_zeros_only_beside_a_real_result, andresources_servers/genrm_compare/tests/test_http_lifecycle.py::test_collector_saves_actual_cohort_failure_class_and_reasonupdated for the completeness fields.tests/unit_tests/test_judge.py::TestJudgeRetriedInPlaceOnTheSameAnswer(byte-identical retries, a timeout, the cap, a nested call, each branch of the rule, training's single attempt),TestTheRulesRowReachesTheScoreandTestNoVerdictFollowsTheOfficialGrader(through the agent's response contract, the collector and aggregation), andtest_rollout_collection.py::TestAJudgeFailureNeverReRunsTheRollout.test_a_judge_failure_is_retried_in_place_on_the_same_answer,test_a_null_judgment_at_the_cap_is_dropped_as_arena_hard_auto_does,test_a_judge_outage_at_the_cap_is_unresolved_infra_not_a_lost_game,test_a_judge_422_after_the_tries_reaches_the_score_as_unresolved_infraandtest_judge_failures_at_the_cap_count_against_the_gate; math_with_judge'stest_an_unparseable_judge_verdict_is_retried_in_place_then_split_by_causeandtest_an_unparseable_verdict_recovers_in_place_when_the_judge_answers_again.tests/unit_tests/test_judge.py::TestJudgeInputTooLong,TestJudgeReasonThroughTheModelServer(a real judge model server over HTTP) in the opted-in servers' tests, andtest_an_answer_too_long_for_the_judge_is_the_models_final_zeroin simpleqa, aalcr, frontierscience_judge, physics_judge and ugphysics_judge, each in evaluation and in training.test_failure_retry_rule.py::TestAFailureAfterTheAnswerExistsIsNeverReRun,test_server_utils.py::test_a_dead_endpoint_fails_the_request_at_the_time_cap, andvllm_model'sTestDeadEndpointTimeCap.🤖 Generated with Claude Code