Repository navigation
feat(single-agent-turn): forward Resources seed observations - #5142
Conversation
Signed-off-by: RyaliNvidia <[email protected]>
yaoyu-33
left a comment
There was a problem hiding this comment.
LGTM. Observation forwarding preserves verification inputs and checkpoint behavior; 140 focused tests passed. Please resolve the conflict and run CI before merging.
Signed-off-by: RyaliNvidia <[email protected]>
|
/ok to test e33aa29 |
Signed-off-by: RyaliNvidia <[email protected]>
|
/ok to test 8c92a74 |
Signed-off-by: RyaliNvidia <[email protected]>
Signed-off-by: RyaliNvidia <[email protected]>
yaoyu-33
left a comment
There was a problem hiding this comment.
Reapproved after checking the seed-response compatibility fix and main integration. 171 focused Resources/session/environment tests and four HTTP serialization probes passed; observation forwarding, verification inputs, and checkpoint behavior remain intact. No new blocking issue found. Latest-head required CI is still outstanding.
|
/ok to test a24f8cb |
Signed-off-by: RyaliNvidia <[email protected]>
|
/ok to test 5713ae5 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41574956403 |
Main's #5142 forwards a Resources seed observation to the agent. It met this branch only in the single-turn environment's import blocks. - app.py: both import sets kept. The seed observation lands on the session handles and reaches the agent request, as on main; this branch's failure-reply verification is unchanged. - tests/test_app.py: this branch's imports plus the four names #5142 adds, and SingleAgentTurnRequest for its new test. The test that an unvalidated seed observation stays out of the session handles expects NgFailureEvent with stage "seed", since this branch replaced HandledEpisodeError with NgFailureEvent. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
…er/run-records-on-store Brings in #5072 at 4df4ac2, which merged main 101a442 (#5142 single-agent-turn seed observations, #5336 extracted_code), and the recovery stack on top of it. Signed-off-by: Adam Rajfer <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
What does this PR do?
Add an optional
observationstring toResourcesSeedSessionResponsefor tasks whose prompt becomes available during seed/reset.single_agent_turnappends a nonempty observation verbatim as one user message after a copy of authored input, normalizing string input only when necessary.Preserve authored model controls/tools and send original authored input to verification. Missing, null and empty observations retain existing behavior. Store the observation in checkpointed session handles so restore before invocation supplies it without reseeding; older handles remain compatible. Validate the seed response and session identity before storing it. Preserve existing seed-response JSON when no observation is supplied; explicitly supplied null/text values remain supported.
Incorporates current main
3bf99705a905f9aefb18b03875a003189ff1edbf, using canonical package locations and preserving its stop, skip-verification and verifier-evidence behavior and tests. No separate issue is needed for this focused Resources/Environment Server contract extension.Validation
nemo_gym.server_runtimeexports. The original policy check failed before the correction; the complete public-API facade suite and both checkpoint-observation variants now pass (368 tests). Only one test import changed; no production code or assertions changed. Full repository hooks and whitespace checks passed; the private guardwords catalog remained unavailable. The earlier CI run passed 14,244 core tests and failed only this import-policy check; the full core suite was not rerun locally for this import-only correction.observation, serialization omits that field while preserving all other defaults. Explicit null, empty, whitespace and text values still round-trip. The model's structured validation/serialization JSON Schema and FastAPI OpenAPI response schema remain intact.single_agent_turn151 passed; Terminal Bench 2.1 89 passed, 13 skipped; Terminal Bench 4 302 passed, 1 skipped. Both Resources data validations passed.uv.lockthrough Gym's setup helper and reused withskip_venv_if_present=true. Terminal Bench 4 also used its declared server-specific packages, including OpenSandbox 0.1.16, through its existing overrides. No source dependency pins were changed.pre-commit run --all-files, Ruff/format and PR-relative whitespace checks passed. Private guardwords catalog unavailable, so its private scan was skipped. Fern validation passed with zero errors; unauthenticated redirect-history checking was skipped.Compatibility and limits
Only
single_agent_turnconsumes the field. Agents accepting one user message need empty authored user input when Resources supplies the prompt. No new checkpoint mechanism, task identity, digest or verification-input change.Live model/sandbox rollout: N/A for this protocol forwarding change. Deterministic fixtures establish transport behavior, not task quality. Full core/all-server and remote sandbox qualification were not run. No dependency, image or authentication change. Fixtures are synthetic; commits include DCO sign-off. No review replies or CI trust-approval comments were posted.
Proposed maintainer labels:
feature,area:env-infra,needs-review.