Repository navigation
feat(swe): support SWE-Next episode sessions - #5112
Conversation
|
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. |
8ff1ea9 to
530ec85
Compare
fa46f4b to
1c13335
Compare
DESCRIPTION FOR AGENTSCodex-generated description; not a completed review or human approval. Starting head: SWE-Next adopts the shared Preserve the distinction between infrastructure failures and agent-caused repository damage: unavailable execution is incomplete and masked, while a genuine Git failure can retain empty-patch grading. Shared helpers also reject provider errors during capture and support cookie-scoped agent-run close without bypassing episode identity. Tests cover both routes, capture-before-cleanup, masking, saved replies, close retries, and identity protection. The reported 107 passing tests and pre-commit result came from a combined stack tree; verify commands and provenance. Older runtime comments do not establish current-head validation. After stack synchronization, review the updated diff and obtain representative model smoke evidence, including verification behavior and sandbox cleanup. Record results against the actual PR head. This is the parent of #5240. |
1c13335 to
ce00ffe
Compare
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — one request-validation defect and one required validation gap.
RISK — Provide representative smoke evidence for this change
The supplied model and training reports identify 8ff1ea96e983c911127951ad4cf8f92d101ef35d, not the reviewed head. They don't establish that the new SWE-Next episode-session integration works with a real model and provider. The supplied description also attributes the unit-test result to a combined stack tree. The repository quality bar requires representative model rollouts and inspection of both agent and verifier behavior for this behavior-changing environment work.
Could you record representative smoke results against ce00ffe5f94f51bba7a2085019426d3fbcbc378e, including the effective configuration and dependency revisions? Exercise an episode seed, real model-driven repository work, verification, and resource close. Confirm that the captured patch reaches grading, an identical verification retry returns the saved result, and a post-run provider audit finds no run-owned sandboxes. Retain the existing agent-run route as a preservation check. Separately demonstrate that unavailable execution produces evaluation_completed=false and mask_sample=true, while a genuine Git failure retains unmasked empty-patch grading. No reward-distribution benchmark or historical training-parity claim is needed for this training-environment smoke check.
I inspected all eight changed files and traced the affected seed, capture, grading, close, and provider contracts. This was a static review; I didn't execute tests or rollouts. The inline finding includes proposed regression checks, not executed results.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
|
/ok to test f6ddb6a |
Keep session lifecycle tracking alongside the agent-only network policy when creating SWE-Next task sandboxes. Keep all automatically merged changes. Signed-off-by: svcnemo-autobot <[email protected]>
|
/ok to test 24eb8bf |
Signed-off-by: Nikhil Deshmudre <[email protected]>
Signed-off-by: Nikhil Deshmudre <[email protected]>
Signed-off-by: Nikhil Deshmudre <[email protected]>
24eb8bf to
07274d4
Compare
|
/ok to test 07274d4 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44140466579 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44141355457 |
What changes
SWE-Next supports environment-server episode sessions and the existing agent
/runpath. Both paths capture the agent's patch before stopping its task sandbox and grade that patch in a fresh sandbox. Typed episode verification returns the saved result on an identical retry. Failed sandbox stops retain ownership for cleanup retry./runcompatibilityFlat seed requests still return the sandbox handle, descriptor and workdir used by the existing agent-run integration. Cookie-scoped close releases that task's sandbox and retries failed cleanup; it cannot bypass a typed episode's identity checks. Both paths distinguish a completed Git failure, which receives empty-patch grading, from unavailable provider execution, which excludes the sample. Verification without an owned seeded session returns a masked lost-session result; re-seeding retains the old sandbox if stopping it fails.
Malformed requests claiming a typed session identity now return HTTP 422 before sandbox creation. Ordinary flat rows, including their scalar task IDs and extra dataset fields, remain accepted.
Scoring
evaluation_completed=true, and no sample mask or verification retry. A bad patch that hangs the tests is penalized.mask_sample=truewith a failure reason.Validation
07274d43f5ea60b520beca742bba4858a4a25f52: the complete SWE-Next suite plus shared SWE-bench session and patch-capture tests. Local Python 3.13.14 used an isolated OpenAI 2.45.0 / SWE-bench 4.1.0 dependency overlay; imports were verified against the rebased worktree.pre-commit run --all-filespassed, including formatting and import-layer checks; the private guardword catalog was unavailable for that run. The staged commit guardword check also passed. All three commits include DCO sign-off;git diff --checkpassed.for_agentargument and isolate global configuration.24eb8bfb0d04805696e406e12afd0b4ec8297d01./ok to test 07274d43f5ea60b520beca742bba4858a4a25f52.Base and scope
Rebased onto public main
5d6429f5b1362af47954d8cf72f03cbe443ff941. The scanner baseline matches main and is no longer changed by this PR. No separate issue is needed: this completes the SWE-Next episode-session integration proposed here.