Skip to content

fix(swe-atlas): mask inconclusive grading and preserve cleanup retries - #5105

Merged
cmunley1 merged 1 commit into
mainfrom
cmunley1/swe-atlas-verifier-cleanup
Oct 29, 2026
Merged

cmunley1 merged 1 commit into
mainfrom
cmunley1/swe-atlas-verifier-cleanup

Conversation

@cmunley1

@cmunley1 cmunley1 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix three verifier failure paths found while reviewing the merged SWE Atlas Q&A integration from #4777. No separate issue is needed for these focused corrections.

  • When the upstream evaluator exits successfully but scores zero rubrics, mark verification incomplete and mask the sample instead of recording a valid zero reward.
  • If verification cannot delete its task sandbox, retain the session lookup so an explicit close can retry. Duplicate verification cannot consume that cleanup state.
  • During shutdown, await every sandbox deletion before closing the provider, then propagate the cleanup error.

Validation

  • pytest resources_servers/swe_atlas_qa/tests responses_api_agents/harness_agent/tests --cov=resources_servers.swe_atlas_qa.app --cov=resources_servers.swe_atlas_qa.prepare --cov-report=term-missing:skip-covered --cov-fail-under=95 -q: 109 passed, 98.43% production coverage.
  • gym env test +entrypoint=resources_servers/swe_atlas_qa +should_validate_data=true, using the existing isolated test environment via +skip_venv_if_present=true and +uv_venv_dir: 67 passed, example data validated.
  • All three new regressions fail against the unpatched base and pass with this change. Existing cancellation, missing-answer, partial-scoring, and sandbox-isolation tests pass.
  • Replayed the original failures with the unchanged upstream evaluator and controlled judge/provider failures. The evaluator made 72 invalid-judge attempts across nine rubrics and produced zero scored rubrics. That result is now masked. Cleanup retry removes the retained sandbox, and shutdown completes the remaining deletion before returning the first failure.
  • pre-commit run --all-files and git diff --check: passed. The optional private guardword catalog was unavailable. The diff contains only server code and tests.

Rollouts

One fresh Hermes + self-hosted DeepSeek-V4.1-Flash rollout on OpenSandbox, using the unchanged Scapy task task-6905333b74f22949d97ba9bd:

  • 1/1 submitted and fully graded, with evaluation_completed=true and mask_sample=false.
  • 11/11 rubrics scored, 10 passed. The upstream strict reward is 0, since one rubric failed.
  • Hermes completed without interruption or failure. No failure sidecars.
  • Confirmed that the running resources server loaded exactly the committed patch. The task sandbox closed before the separate verifier was created.
  • Cleanup verification found no remaining task sandboxes, local processes, or relay listeners.

This is integration evidence, not a benchmark score reproduction. The targeted regressions separately exercise controlled judge/provider failures that a successful smoke does not cover.

Compatibility and benchmark impact

No configuration, dataset, harness, or public API changes. Missing or empty answers remain completed, unmasked zero rewards. Partially scored answers retain the upstream scoring policy. Completely unscored judge runs are now excluded as inconclusive, so runs affected by judge outages can have different aggregate scores. Private grader assets and credentials are still staged only after the task sandbox closes successfully.

Checklist

  • Read the contributing guidelines.
  • Focused changes only.
  • Behavioral tests added and passing locally.
  • Documentation N/A for these internal failure-path fixes. Compatibility effects are described above.
  • Pre-commit checks pass locally.
  • No new source files. Existing SPDX headers retained.
  • Commit includes DCO sign-off.

@cmunley1 cmunley1 added bug Something isn't working area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers labels Oct 27, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cmunley1
cmunley1 marked this pull request as ready for review October 27, 2026 06:41
@cmunley1

Copy link
Copy Markdown
Contributor Author

/review

@cmunley1

Copy link
Copy Markdown
Contributor Author

/ok to test eda0552

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE — the source changes look correct; one RISK remains in the benchmark validation evidence.

RISK — Add the required before/after reward-profile comparison

Failure/evidence: The new zero-scored branch changes which samples contribute to this fixed evaluation benchmark. The description supplies a successful smoke rollout and controlled failure replays, but no paired base/head reward-profile comparison. The selected review rubric explicitly requires that comparison for fixed-benchmark verifier changes. Unintended distribution changes remain unmeasured; this is an evidence gap, not a demonstrated scoring defect.

Correction: Could you add a paired comparison using the same representative saved answers/tasks and judge configuration against base and head? Report the sample count, completed/masked counts, strict-pass distribution, mean reward, and aggregation denominator for each revision. Separate the intended exclusion of wholly unscored runs from results whose grading completed. No implementation rewrite is requested.

Preservation and acceptance: The comparison should show unchanged rewards for fully scored and partially scored answers, including a scored-but-failing answer. Missing/empty answers must remain completed, unmasked zero rewards. A controlled wholly unscored evaluation should change from a completed zero at base to an incomplete, masked zero at head. Retain the concrete assertions in the score-preservation and empty-answer tests. These are proposed acceptance checks; I did not execute them.

Both changed files and directly affected scoring, session-cleanup, shutdown, harness, and aggregation contracts were inspected. The delegated scoring report was unavailable, so that topic was independently completed during consolidation. Review was static-only; the reported test and rollout results were not independently reproduced.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 27, 2026
@cmunley1
cmunley1 merged commit a0f89c3 into main Oct 29, 2026
59 of 62 checks passed
@cmunley1
cmunley1 deleted the cmunley1/swe-atlas-verifier-cleanup branch October 29, 2026 05:02
jeffwillette pushed a commit to jeffwillette/Gym that referenced this pull request Oct 30, 2026
…ltered (NVIDIA-NeMo#5355)

On NVIDIA's inference API, azure/anthropic/claude-opus-4-* answers some
rubric calls on the security-tool tasks with finish_reason=content_filter
and no content. The evaluator leaves those rubrics unscored, and since NVIDIA-NeMo#5105
a rollout with none scored is masked, so the affected tasks drop out of the
score. In one 124 x 3 run judged by azure/anthropic/claude-opus-4-6, 17% of
rubric calls were filtered and 58 of 366 rollouts (23 tasks) had no rubric
scored; aws/anthropic/bedrock-claude-opus-4-6 graded the same calls normally.

Signed-off-by: Khushi Bhardwaj <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
public — eda05528 Deployed Oct 27, 2026 by copy-pr-bot[bot] via release / finalize / notify #7519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants