Repository navigation
Conversation
|
/ok to test 260369a |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — One RISK: Pool's missing EULA opt-in becomes an A4 violation without exercising its sandbox support.
I inspected all three changed files and the directly affected session, sandbox, and compliance-reporting paths. Tests weren't executed in this read-only review. The delegated lifecycle report wasn't available, so I completed that inspection directly.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
260369a to
e1282f5
Compare
|
/ok to test 94ca277 |
|
/ok to test e1282f5 |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP — The prior Pool opt-in finding is resolved; no eligible findings remain.
The opt-in guard now makes A4 skip when Pool lacks explicit EULA acceptance, without accepting it implicitly. A5 also skips, while static findings remain. Explicit acceptance still permits both dynamic checks. The regression tests assert these outcomes and retain the distinction between disconnecting, stopping, recognized sandbox refusal, and generic seed failure.
I completed the follow-up inspection of the fix, its rule/report propagation, and its regression tests. The previously reviewed tree wasn't supplied, so I couldn't compare the exact inter-review delta. Tests weren't executed in this read-only review.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
/review-approve reset=true |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — One RISK: an inconclusive health-command timeout becomes a false A5 finding.
The prior Pool EULA issue is resolved: the opt-in guard skips the dynamic checks without implicitly accepting the license, while explicit acceptance remains eligible.
I completed the broad review of all three changed files, consolidated all three delegated inspections, and traced the affected configuration, session, sandbox, and reporting contracts. Tests weren't executed in this read-only review.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| if reply.status_code != 200: | ||
| return SessionObservation("accepted", "failed", None) | ||
| try: | ||
| killed = (await owner.exec("true", timeout_s=30)).return_code != 0 |
There was a problem hiding this comment.
RISK — Distinguish an inconclusive health command from a stopped sandbox.
If the final true command times out after a successful seed and close, LocalProvider.exec returns return_code=125, error_type="timeout". This comparison records sandbox_killed=True, producing an A5 violation even when the agent left the sandbox running. The execution-result contract explicitly distinguishes runtime sentinels from process exit codes. The affected behavior is compliance classification; this isn't evidence of a production sandbox failure.
Could you preserve the successful A4 observation and mark A5 inconclusive instead? Replace this comparison with:
result = await owner.exec("true", timeout_s=30)
killed = None if result.error_type is not None else result.return_code != 0Then insert this before the truthiness check in stopped_lent_sandbox:
if session.sandbox_killed is None:
raise Unavailable("the lent sandbox's survival could not be determined")Update SessionObservation's documentation to permit unknown survival after an accepted close. Keep the explicit-stop exception path: calling stop() must still produce A5, while disconnect() must not. The invariant is that an inconclusive execution cannot establish an ownership violation.
Proposed acceptance checks: using the lending-agent fixture, make only the final true execution return SandboxExecResult(None, "local command timed out", 125, "timeout"). Expect SessionObservation("accepted", "accepted", None), A4 held, and A5 skipped with the inconclusive reason. Retain the disconnect/stop assertions, which expect False and True respectively, and the distinct recognized-refusal, generic-seed-failure, and failed-close outcomes. The suggested code and tests haven't been executed; verify them before adoption.
e1282f5 to
06fd38d
Compare
06fd38d to
3a411d4
Compare
3a411d4 to
02d13a5
Compare
|
/ok to test 02d13a5 |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP — No eligible findings remain in this follow-up.
The prior timeout fix remains present: the health check records unknown sandbox survival for runtime errors, and A5 skips with an inconclusive reason while A4 remains held. The regression test asserts the exact previously reported timeout result. Neighboring assertions retain the distinction between disconnecting and stopping, recognized refusal and seed failure, and failed close.
The Pool opt-in guard still avoids implicit license acceptance while keeping explicitly accepted configurations eligible. I also checked the A4/A5 documentation against the current rule and reporting paths.
I completed the scoped follow-up. All three delegated inspections reached completion; one report wasn't available, so I checked its configuration topic directly. The previously reviewed tree wasn't supplied, so I couldn't compare the exact inter-review delta or establish additional regressions from that comparison. Tests weren't executed in this read-only review.
Note:
⚠️ giuliolovisottois not in any eligible team (automation,gym_maintainers) — you don't have permission to trigger formal reviews. Posting review as comment only.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43416803520 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43422357205 |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
02d13a5 to
c7cd0e9
Compare
|
/ok to test c7cd0e9 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43427158996 |
What does this PR do?
Adds dynamic rules to the Environment Server compliance check: rules judged by running the agent, not only by reading its class. Stacked on #5441.
For an agent that implements sessions, the probe builds the agent from its default config (
configs/<component>.yaml) in the agent's own venv, lends it a sandbox, seeds a session with that sandbox, closes the session and checks whether the sandbox still runs. The lent sandbox is the local provider made connectable in process, so the probe needs no model, container or network. The global config gets apolicy_modelentry as in harness conformance, and the seed carriesagent_timeout_secas the environment server sends it.does not support sandbox access. A failed seed is reported at the agent's_seed_agent_session_state, or at its class._close_agent_session_state, or at its class. A5 does not apply when the agent refused the sandbox or the close failed.claude_code_agentleavesclaude_code_versionunset in its default config, so the probe uses2.1.261, the version that benchmark configs pin. Its seed installs that runtime. The probe does not set flags that only an operator may set: forpool_agent, whose seed needsaccept_pool_eula, A4 and A5 do not apply. When the sandbox's state after the close cannot be read, A5 does not apply.The README and the harness guide describe A4 and A5.
Validation
tests/unit_tests/tooling/test_environment_server_compliance.pyandtests/unit_tests/test_public_api_facades.pypre-commit runon the changed files6 compliant, 67 with findings, 0 unavailable. 31 implement sessions and reach A4. A4 reportedlangchain_deepagents_agent, and A5 found nothing. A4 and A5 did not apply topool_agent(operator opt-in) and topi_sandboxed_agentandvision2code_agent, which have noconfigs/<component>.yaml.Rollouts
N/A: CI-only change.
Compatibility and benchmark impact
None. The check is a separate workflow job and does not gate other jobs.
🤖 Generated with Claude Code