Skip to content

refactor: describe session support without "native" - #4854

Merged
ananthsub merged 2 commits into
mainfrom
ananthsub/no-native-session-terms
Oct 21, 2026
Merged

ananthsub merged 2 commits into
mainfrom
ananthsub/no-native-session-terms

Conversation

@ananthsub

@ananthsub ananthsub commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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:

Before After
native session(s), native-session adapters agent session(s), adapters that implement agent sessions
native Environment Server an Environment Server that drives agent sessions, such as single_agent_turn
native rows, native task rows, native taskset row materialized rows, materialized task rows, materialized taskset row
native episode request episode request
"Native Codex …", "Native Pi …" error and installer messages "Codex in the task sandbox …", "Pi in the task sandbox …"
native composition composition with an Environment Server

Other changes that follow the same wording:

  • The harness guide (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.
  • OpenClaw's native_session_id and prefer_native_session_id become openclaw_session_id and prefer_openclaw_session_id, because the value is OpenClaw's own session ID.
  • Codex's observability reader now says "Codex CLI session record", and the OpenSandbox timeout message now says "OpenSandbox command session was deleted".
  • The checkpoint end-to-end deployment topologies native and legacy become sessions and relay.
  • Test names and fixture values in the rollout collection, task materialization, benchmark, checkpoint, and migration script tests use materialized rows and session environments.

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. Frozen fern/versions/v* snapshots are unchanged.

A stacked follow-up, #4855, applies the same treatment to "legacy" for the flat-row and agent /run paths.

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.py covers 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/tests covers the OpenSandbox message and checkpoint comment changes.
  • pytest responses_api_agents/{codex_agent,kilocode_agent,openclaw_agent,pi_agent}/tests, in a venv with nemo-gym[dev,sandbox], covers the renamed agent tests and error messages. The pinned-Pi CLI tests fail identically on main without the pinned Pi runtime installed.
  • pytest --collect-only tests/e2e/checkpoint confirms the renamed topologies resolve.
  • pre-commit run --files on the changed files, including guardwords-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.

"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]>
@ananthsub ananthsub added docs Documentation-only updates or documentation debt area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation needs-review PR is ready for code review and waiting on a reviewer labels Oct 21, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 21, 2026 14:02
@ananthsub
ananthsub requested a review from yaoyu-33 October 21, 2026 14:04
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
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]>
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 092cd14

@ananthsub
ananthsub enabled auto-merge October 21, 2026 15:51
@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 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.

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

Merged via the queue into main with commit c6f2899 Oct 21, 2026
50 of 56 checks passed
@ananthsub
ananthsub deleted the ananthsub/no-native-session-terms branch October 21, 2026 16:59
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]>

This branch was previously deployed

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

Labels

area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants