Repository navigation
Conversation
ananthsub
marked this pull request as draft
October 21, 2026 14:04
|
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. |
Contributor
Prose about the path where an agent runs a whole episode through its own `/run`, the flat rows sent on that path, and the relay in front of it called all three "legacy". That word says the path is old, not what it does, so each use now names the concrete thing: - A "legacy /run" is the agent's own `/run`. - A "legacy row" or "legacy seed body" is a flat row or flat seed body. - "The legacy agent relay" is the `legacy_agent` relay. - A "legacy swap" is an `--agent-type` swap, which rebinds the agent's own `resources_server`. Error messages from Codex and Simple Agent, docstrings and comments, agent READMEs, the harness conformance README, and test names and fixture values follow the same wording. Names that configs or outputs depend on are unchanged: `legacy_agent`, `single_agent_turn_legacy`, `environment_routing_mode: legacy`, and the `legacy_run` value of `agent_interface`. Internal identifiers such as `LegacyRun`, `legacy_run()`, `run_legacy`, and Simple Agent's `_LegacyLoopReply` keep their names, as do the tests named after them. Other meanings of "legacy", such as deprecated `agent_ref` routing, deprecated dataset fields, and `ng_*` command aliases, are unrelated and unchanged. Signed-off-by: Ananth Subramaniam <[email protected]>
`legacy_agent` relays `/run` to an agent that runs the whole episode itself. Gym plans to deprecate that server and remove support for it over time, but the docs only deprecated relays that Gym generates for agents without a declared Environment Server. The `legacy_agent` README and module docstring, the architecture page, the Agent Server overview, the existing-agents guide, and the new-environment guide now say that `legacy_agent` is the legacy path and that new agents should implement agent sessions. The Codex README calls its `/run` sections the legacy `/run` quick start and limitations, and points new experiments at the agent session workflow. Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
force-pushed
the
ananthsub/no-legacy-session-terms
branch
from
October 21, 2026 18:09
c9b3cc1 to
adec73f
Compare
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 "legacy" from prose that describes the flat-row path, the agent's own
/runpath, and the relay in front of it. All three were called "legacy", which says the path is old but not what it does, so each use now names the concrete thing:/run, the legacy/runpath/runlegacy_agentrelay--agent-typeswap source and configurations, which rebind the agent's ownresources_serverresources_serverbindingThe change covers:
nemo_gym/_checkpoint,base_resources_server.py,base_responses_api_agent.py,episode_types.py,mcp_auto_exposure.py,rollout_collection.py, and thelegacy_agentandsingle_agent_turn_legacyservers./runroute and tool-call messages).hermes_legacy,legacy_rows, and the harness conformanceLegacyAgenttest class.legacy_agentREADME and module docstring, the architecture page, the Agent Server overview, the existing-agents guide, and the new-environment guide now state thatlegacy_agentis the legacy path and that Gym plans to deprecate it and remove support for it over time, so new agents should implement agent sessions. Before this, the docs only deprecated relays that Gym generates for agents without a declared Environment Server. The Codex README labels its/runsections as the legacy/runquick start and limitations, and points new experiments at the agent session workflow.Names that configs or outputs depend on are unchanged:
legacy_agent,single_agent_turn_legacy,environment_routing_mode: legacy, and thelegacy_runvalue ofagent_interfacein harness conformance output. Internal identifiers such asLegacyRun,legacy_run(),legacy_episodes,run_legacy,_legacy_result, and Simple Agent's_LegacyLoopReplyalso keep their names, as do the tests named after them; renaming those is a separate refactor. Uses of "legacy" with another meaning, such as deprecatedagent_refrouting, deprecated dataset fields,ng_*command aliases, and older token capture formats, are unrelated and unchanged.Issue
No issue is linked. This is the companion terminology change to #4854, which removed "native" following #4070.
Validation
pytest -n 16 tests/unit_tests/test_rollout_collection.py tests/unit_tests/test_checkpoint_agent.py tests/unit_tests/test_base_resources_server.py tests/unit_tests/test_checkpoint_resources.py tests/unit_tests/test_environment_server.py tests/unit_tests/test_mcp_auto_exposure.py scripts/harness_conformance/testscovers the renamed routing, checkpoint, and harness conformance tests.pytest environment_servers/legacy_agent/tests(also after thelegacy_agentdocstring change),pytest environment_servers/single_agent_turn/tests, andpytest environment_servers/single_agent_turn_legacy/tests, run separately, cover the flat-row adapter tests.pytest responses_api_agents/{simple_agent,codex_agent,pi_agent,openclaw_agent,opencode_agent,kilocode_agent,claude_code_agent}/tests, in a venv withnemo-gym[dev,sandbox], covers the reworded error messages and renamed agent tests. The pinned-Pi CLI tests fail identically onmainwithout the pinned Pi runtime installed.pytest --collect-only tests/e2e/checkpointconfirms the renamed end-to-end test collects.pre-commit run --fileson the changed files, includingguardwords-check.Rollouts
N/A: the changes are wording in docs, comments, error messages, and tests. No rollout behavior changes.
Compatibility
No API, configuration, or result changes. The Codex
/runerror and the Simple Agent/runand tool-call error messages have new wording, so anything matching their exact text needs the new text.