Skip to content

test(agents): AUT-2815 stabilize supervision and diagnostic deadlines - #5926

Merged
ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:test/aut-2815-stabilize-supervision-tests
Nov 10, 2026
Merged

ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:test/aut-2815-stabilize-supervision-tests

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

AUT-2815 identified Gym test races between detached-child startup, interruption and diagnostic finalization.

What changed

  • Wait for Codex child readiness before exercising termination; cover immediate and delayed startup across all five endings.
  • Give NOOA lifecycle capture and finalization headroom around its separately bounded diagnostics; explicitly assert slow-download cancellation.

Details

Preserve timeout receipts, descendant ownership, provider-deadline assertions, evidence ordering and original errors. Only two test files change; runtime behavior, dependencies, scoring and model configuration are unchanged. Real model rollouts: N/A, test-only.

Base: e9143261640efc5663d5c151c7445a358650a63c. Head: cdeb905012d1415494f5dd731ce72af639d187d8. Local receipts cover identical source bytes before signing. Unaffected local core/GPU rows were not selected; provider checks remain authoritative.

Tested

  • Managed unit:lint: eight hooks passed; Guardwords excluded by platform policy, Markdown filename hook skipped natively.
  • functional:7/8: 3,435 passed, 52 skipped; all ten Codex regression variants passed.
  • Bounded functional:3/8 replay: 2,527 passed, two skipped; all 46 NOOA sandbox-runner cases passed.
  • Original shard 3 hit an unchanged Workplace Assistant checkpoint timeout. Diagnostics and the single native replay passed; its cause remains unconfirmed, not repaired here.
  • Native skips retained. Exact-head provider CI is pending; required-check lookup returned HTTP 404, so no full-gate claim is made.

Wait for the detached child to be ready before exercising each Codex termination mode, including explicit expiry. Cover delayed startup without relaxing cleanup and provider-deadline assertions.\n\nSeparate NOOA diagnostic cancellation from the lifecycle watchdog so bounded diagnostics leave time for finalization, and assert cancellation explicitly.\n\nRefs: AUT-2815

Signed-off-by: svcnemo-autobot <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 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.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:agent Agent harnesses and Responses API agent behavior complexity:low Localized change in one scope with a small, straightforward review surface labels Nov 10, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test cdeb905

@ko3n1g

ko3n1g commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

/review-approve

@github-actions

Copy link
Copy Markdown
Contributor

@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

LGTM — no concerns found.

I reviewed both changed tests and their directly affected lifecycle paths. The Codex changes preserve descendant ownership, cleanup receipts, and provider-deadline assertions. The NOOA changes separate lifecycle and diagnostic budgets while retaining evidence ordering, recovered output, cookies, and original-error checks.

Static review only; I didn't execute tests or verify provider CI.

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.

@ko3n1g
ko3n1g disabled auto-merge November 10, 2026 12:39
@ko3n1g
ko3n1g enabled auto-merge November 10, 2026 12:39
@ko3n1g

ko3n1g commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

/review-approve

@ko3n1g
ko3n1g added this pull request to the merge queue Nov 10, 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/42817732452

@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

LGTM — no concerns found.

This was a same-head follow-up to review 5841551614. The Codex tests and NOOA tests are unchanged since that clean review. There are no subsequent changes or unresolved prior findings in scope; I didn't reopen broad discovery.

Static inspection only; I didn't execute tests or verify provider CI.

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

@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/42819322396

Merged via the queue into NVIDIA-NeMo:main with commit f91a12e Nov 10, 2026
109 of 112 checks passed
ananthsub added a commit that referenced this pull request Nov 10, 2026
Give the process-supervision and exec-transport tests deadlines that a
loaded runner cannot hit, and fire the supervisor deadline on purpose
once the harness is ready instead of racing harness start-up.

Align the Kilo Code, OpenClaw and OpenCode exec-transport copies with the
Codex copy from #5926: a 60 s activation deadline, an explicit expiry
after the harness is ready, a ready wait that fails at once if the
harness exits early, uploads that do not wait behind the supervised exec,
and a delayed-startup case. All four copies close and expire with a 10 s
CLOSE_TIMEOUT.

Give the Codex, OpenCode and Pi sandbox-runner tests a 60 s supervisor
deadline with a 5 s cleanup budget, drive timeouts through the expire
file, and stop a supervisor that a failing test leaves running. The Pool
lifecycle timeout cases expire after the fake Pool is ready, and the
OpenClaw MCP probe timeout is 8 s.

Refs #5672

Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub added a commit that referenced this pull request Nov 10, 2026
Give the process-supervision and exec-transport tests deadlines that a
loaded runner cannot hit, and fire the supervisor deadline on purpose
once the harness is ready instead of racing harness start-up.

Align the Kilo Code, OpenClaw and OpenCode exec-transport copies with the
Codex copy from #5926: a 60 s activation deadline, an explicit expiry
after the harness is ready, a ready wait that fails at once if the
harness exits early, uploads that do not wait behind the supervised exec,
and a delayed-startup case. All four copies close and expire with a 10 s
CLOSE_TIMEOUT.

Give the Codex, OpenCode and Pi sandbox-runner tests a 60 s supervisor
deadline with a 5 s cleanup budget, drive timeouts through the expire
file, and stop a supervisor that a failing test leaves running. The Pool
lifecycle timeout cases expire after the fake Pool is ready, and the
OpenClaw MCP probe timeout is 8 s.

Refs #5672

Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub added a commit that referenced this pull request Nov 11, 2026
… lost launches (#5933)

* test(agent): fence lost launches with the claim before retirement

The lost-launch tests replayed the delayed launch only after the session
directory was retired, so the missing supervisor script stopped it and a
broken launch claim went unnoticed.

Replay the delayed launch before retirement too, with the supervisor
still in place, and add a supervisor client test that takes the stop
claim between the guard and `ln -s` so that `ln -s` alone has to fence
the launch.

Signed-off-by: Ananth Subramaniam <[email protected]>

* test(agent): import exported names from nemo_gym.agents in claim tests

Take SUPERVISOR_FILE from the public nemo_gym.agents facade, give the new
closes a 10 s deadline that a loaded runner will not hit, and fail fast if
the launch finishes before its bash -n check.

Signed-off-by: Ananth Subramaniam <[email protected]>

* test(agent): stabilize supervision and exec-transport tests

Give the process-supervision and exec-transport tests deadlines that a
loaded runner cannot hit, and fire the supervisor deadline on purpose
once the harness is ready instead of racing harness start-up.

Align the Kilo Code, OpenClaw and OpenCode exec-transport copies with the
Codex copy from #5926: a 60 s activation deadline, an explicit expiry
after the harness is ready, a ready wait that fails at once if the
harness exits early, uploads that do not wait behind the supervised exec,
and a delayed-startup case. All four copies close and expire with a 10 s
CLOSE_TIMEOUT.

Give the Codex, OpenCode and Pi sandbox-runner tests a 60 s supervisor
deadline with a 5 s cleanup budget, drive timeouts through the expire
file, and stop a supervisor that a failing test leaves running. The Pool
lifecycle timeout cases expire after the fake Pool is ready, and the
OpenClaw MCP probe timeout is 8 s.

Refs #5672

Signed-off-by: Ananth Subramaniam <[email protected]>

* test(kilocode): check the exact provider deadline in exec-transport tests

Match the other exec-transport copies: the provider deadline is the activation deadline plus CLOSE_TIMEOUT and the provider margin, not just more than the old 3 s close.

Signed-off-by: Ananth Subramaniam <[email protected]>

---------

Signed-off-by: Ananth Subramaniam <[email protected]>

This branch was previously deployed

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

Labels

area:agent Agent harnesses and Responses API agent behavior complexity:low Localized change in one scope with a small, straightforward review surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants