Skip to content

refactor: move agent session check into the agent base class - #5368

Merged
marta-sd merged 1 commit into
martas/fep-1923-extract-shared-ci-codefrom
martas/fep-1923-move-session-check
Nov 13, 2026
Merged

marta-sd merged 1 commit into
martas/fep-1923-extract-shared-ci-codefrom
martas/fep-1923-move-session-check

Conversation

@marta-sd

@marta-sd marta-sd commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds SimpleResponsesAPIAgent.supports_agent_sessions() and uses it in harness conformance in place of the private _supports_agent_sessions helper in episode.py. Stacked on #5367.

Validation

  • tests/unit_tests/test_agent_sessions.py, tests/unit_tests/test_checkpoint_agent.py, tests/unit_tests/test_session_routing.py and scripts/harness_conformance
  • pre-commit run on the changed files

Compatibility and benchmark impact

None.

🤖 Generated with Claude Code

@marta-sd
marta-sd added this pull request to stack #5369 October 30, 2026 14:32
@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

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.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:agent Agent harnesses and Responses API agent behavior feature New capabilities, enhancements, or enablement work labels Oct 30, 2026
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test e9b21be

@marta-sd marta-sd self-assigned this Oct 30, 2026
@marta-sd
marta-sd marked this pull request as ready for review November 2, 2026 14:22
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Nov 2, 2026

@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. The new classmethod preserves the previous capability predicate, and the conformance caller retains its runtime and routing behavior. The moved test preserves the existing detection cases, while the harness integration test still covers legacy/session selection and lifecycle failures.

I inspected all four changed files and their directly affected paths. The API-topic delegate's report wasn't available, so I checked that topic directly. Static review only; I didn't execute tests.

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.

@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Nov 2, 2026
giuliolovisotto
giuliolovisotto previously approved these changes Nov 3, 2026
@ko3n1g

ko3n1g commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

/review-approve

@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 within the follow-up scope. The current capability check, conformance caller, and moved regression test agree on session detection and interface selection.

The previous bot review was clean, so there were no unresolved findings to verify. I checked the relevant portions of all four changed files and their directly affected paths. The previously reviewed tree is unavailable, which prevents an exact inter-review comparison; the supplied evidence establishes no subsequent regression. This was a scoped follow-up, not a fresh whole-PR review.

Static review only; I didn't execute tests.

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

@ko3n1g

ko3n1g commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

/review-approve reset=true

@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. The new classmethod preserves the previous capability predicate, and the conformance caller retains its interface-selection behavior. The moved regression test preserves all five detection cases; existing integration coverage still checks legacy/session selection and lifecycle failures.

I completed a fresh review of all four changed files and their directly affected paths. Static review only; I didn't execute tests.

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

@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test bff953b

@giuliolovisotto giuliolovisotto 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.

Re-reviewed at bff953b989363da932e057d8045fb11bcacf5d6c against the current stacked base. The session-capability predicate and regression assertions match the previously approved revision; the package move and caller update preserve behavior. No blocking findings.

290 focused tests passed across agent sessions, checkpoint handling, session routing and the conformance runner, including both interface-selection paths. Independent Claude review also found no issues; changed-file lint/format checks passed. Full repository CI and live harness rollouts were not run.

— @codex

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@marta-sd
marta-sd force-pushed the martas/fep-1923-move-session-check branch from bff953b to 77296cb Compare November 13, 2026 08:06
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 13, 2026 08:07
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test 77296cb

@marta-sd
marta-sd enabled stacked auto-merge November 13, 2026 10:55
@marta-sd
marta-sd added this pull request to the merge queue Nov 13, 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/43416797067

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Nov 13, 2026
@marta-sd
marta-sd added this pull request to the merge queue Nov 13, 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/43422349204

Merged via the queue into main with commit a7406f0 Nov 13, 2026
117 of 120 checks passed
@marta-sd
marta-sd deleted the martas/fep-1923-move-session-check branch November 13, 2026 12:24
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 feature New capabilities, enhancements, or enablement work 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.

4 participants