Repository navigation
refactor: describe session support without "native" - #4854
Merged
Merged
Conversation
"Native" meant several different things in docs, comments, error messages, and tests about Environment Server sessions, and none of them told the reader what was meant. Each use now names the concrete thing, following #4070: - "native sessions" are agent sessions. - A "native Environment Server" is an Environment Server that drives agent sessions, such as `single_agent_turn`. - "Native rows" and "native task rows" are materialized rows. - A "native episode request" is an episode request. - "Native Codex" and "Native Pi" errors now say Codex or Pi in the task sandbox. - "Native composition" is composition with an Environment Server. Private names follow the same wording: OpenClaw's `native_session_id` becomes `openclaw_session_id`, and the checkpoint end-to-end topologies `native` and `legacy` become `sessions` and `relay`. Uses of "native" that mean a harness's own transcript, binary, or output, native PDFs, the Gym-native eval path, and native Gym rollouts are unrelated and unchanged. Signed-off-by: Ananth Subramaniam <[email protected]>
Contributor
Ask agents to name the specific mechanism, owner, or format instead of qualifiers such as "native", "legacy", "new", or "old", and reword the Dataset description so AGENTS.md follows the rule itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
yaoyu-33
approved these changes
Oct 21, 2026
Contributor
Author
|
/ok to test 092cd14 |
ananthsub
enabled auto-merge
October 21, 2026 15:51
yaoyu-33
approved these changes
Oct 21, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39636111766 |
yuhezhang-ai
added a commit
that referenced
this pull request
Oct 21, 2026
Integrate main 92323e9. Preserve #4751 tracing and #4854 terminology alongside managed recovery, asynchronous output cleanup, and the full episode-failure retry test matrix. Signed-off-by: Yuhe Zhang <[email protected]>
7 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Removes "native" from docs, comments, error messages, and tests that describe Environment Server session support. #4070 renamed the code identifiers, but the harness guide, architecture page, agent READMEs, adapter error messages, and test names still said "native sessions", "native Environment Server", and "native rows". "Native" does not tell a reader which side of the protocol is meant or how it differs from the other path, so each use now names the concrete thing:
single_agent_turnOther changes that follow the same wording:
add-or-update-a-harness.mdx) now says "the harness's inputs", "the harness's own configuration", and "harness item" where it used "native" for the harness's own formats.native_session_idandprefer_native_session_idbecomeopenclaw_session_idandprefer_openclaw_session_id, because the value is OpenClaw's own session ID.nativeandlegacybecomesessionsandrelay.Uses of "native" with an unrelated meaning are unchanged: a harness's own transcripts, binaries, and output; native PDFs; the Gym-native eval path; native Gym rollouts in reverification;
is_responses_native; and Gym's built-in agents that return token IDs inline. Frozenfern/versions/v*snapshots are unchanged.A stacked follow-up, #4855, applies the same treatment to "legacy" for the flat-row and agent
/runpaths.Issue
No issue is linked. This finishes the terminology change from #4070 for docs, prose, and tests.
Validation
pytest -n 16 tests/unit_tests/test_rollout_collection.py tests/unit_tests/test_task_materialization.py tests/unit_tests/test_benchmarks.py tests/unit_tests/test_checkpoint_agent.py tests/unit_tests/test_global_config.py tests/unit_tests/test_add_legacy_agent_environment_servers.py tests/unit_tests/test_environment_server.pycovers the renamed routing, materialization, checkpoint, and migration tests.pytest -n 16 tests/unit_tests/test_opensandbox_provider.py tests/unit_tests/test_opensandbox_compose.py tests/unit_tests/test_opensandbox_http_transport.py tests/unit_tests/test_opensandbox_pty.py tests/unit_tests/test_sandbox.py tests/unit_tests/test_sandbox_stop_retry.py tests/unit_tests/test_checkpoint_resources.py environment_servers/single_agent_turn_legacy/testscovers the OpenSandbox message and checkpoint comment changes.pytest responses_api_agents/{codex_agent,kilocode_agent,openclaw_agent,pi_agent}/tests, in a venv withnemo-gym[dev,sandbox], covers the renamed agent tests and error messages. The pinned-Pi CLI tests fail identically onmainwithout the pinned Pi runtime installed.pytest --collect-only tests/e2e/checkpointconfirms the renamed topologies resolve.pre-commit run --fileson the changed files, includingguardwords-check.Rollouts
N/A: the changes are wording in docs, comments, error messages, test names, and private identifiers. No rollout behavior changes.
Compatibility
No API, configuration, or result changes. The Codex and Pi validation error messages, the Codex installer messages, and the OpenSandbox timeout message have new wording, so anything matching their exact text needs the new text. The renamed OpenClaw identifiers are private.