Skip to content

cp: fix(config): declare environment servers for agents added after the migration (4084) into r0.7.0 - #4127

Merged
ananthsub merged 1 commit into
NVIDIA-NeMo:r0.7.0from
ananthsub:cherry-pick/r0.7.0-legacy-agent-configs
Oct 6, 2026
Merged

ananthsub merged 1 commit into
NVIDIA-NeMo:r0.7.0from
ananthsub:cherry-pick/r0.7.0-legacy-agent-configs

Conversation

@ananthsub

Copy link
Copy Markdown
Contributor

What

This PR only cherry-picks #4084 (33611bcc9, "fix(config): declare environment servers for agents added after the migration") into r0.7.0. It adds no new code. The commit is applied with git cherry-pick -x, so its message records the source commit.

It declares legacy_agent environment servers for the four configs on r0.7.0 whose agents have none, and adds the unit test that runs scripts/add_legacy_agent_environment_servers.py --check over the repository:

  • environments/wordle/config.yaml
  • resources_servers/wordle/configs/wordle.yaml
  • resources_servers/swemer_oml/configs/swemer_oml_example.yaml
  • resources_servers/swemer_oml/configs/swemer_oml_opencode.yaml

Why

#4084 has the r0.7.0 label, but the automatic cherry-pick failed. Without these blocks, runs of these configs on r0.7.0 generate the relays at startup and log the deprecation warning, and a run with error_on_agent_without_environment_server: true fails with AgentWithoutEnvironmentServerError.

Conflict resolution

#4084 also updates resources_servers/swe_internal_v1/configs/swe_internal_v1_example.yaml and swe_internal_v1_opencode.yaml. The swe_internal_v1 resources server exists only on main, so those two files are left out. Everything else applied unchanged.

Validation

  • python scripts/add_legacy_agent_environment_servers.py --check on unmodified r0.7.0 flags exactly these four configs and no others. Running the script there produces blocks identical to the ones in this PR.
  • The same --check on this branch: no files to update.
  • pytest tests/unit_tests/test_add_legacy_agent_environment_servers.py tests/unit_tests/test_global_config.py: pass, including the new test_repository_configs_declare_every_environment_server.
  • pre-commit hooks on the changed files: pass.

Rollout evidence

N/A. The added blocks are the relays the runtime already generates for these agents at startup, so a run's servers and routing do not change; only the deprecation warning goes away.

…igration (NVIDIA-NeMo#4084)

Declares `legacy_agent` environment servers for the six configs added
after NVIDIA-NeMo#3929 that have agents with no environment server:

- `environments/wordle/config.yaml`
- `resources_servers/wordle/configs/wordle.yaml`
- `resources_servers/swemer_oml/configs/swemer_oml_example.yaml`
- `resources_servers/swemer_oml/configs/swemer_oml_opencode.yaml`
-
`resources_servers/swe_internal_v1/configs/swe_internal_v1_example.yaml`
-
`resources_servers/swe_internal_v1/configs/swe_internal_v1_opencode.yaml`

Without these, every run of these configs generates the relays at
startup and logs the deprecation warning, and a run with
`error_on_agent_without_environment_server: true` fails with
`AgentWithoutEnvironmentServerError`. The blocks were written by
`scripts/add_legacy_agent_environment_servers.py`, so they match what
the runtime generates today.

Nothing checked the repository's configs, which is how these slipped in.
This PR adds a unit test that runs the script's `--check` over the
repository and fails if any agent still lacks an environment server.

No issue; follow-up to NVIDIA-NeMo#3929.

- The new test,
`test_repository_configs_declare_every_environment_server`, fails on
`main`'s configs and passes with this change.
- `gym env resolve --config <file>
+error_on_agent_without_environment_server=true` on each of the six
configs: before this change, all six are rejected for having no
environment server; after it, all six pass that check. Resolution then
stops at the unset `model_server` values, which need a local `env.yaml`.
- `pytest tests/unit_tests/test_add_legacy_agent_environment_servers.py
tests/unit_tests/test_global_config.py`: all pass.
- `pre-commit run` on the changed files: all pass.

N/A. The added blocks are the relays the runtime already generates for
these agents at startup, so a run's servers and routing don't change;
only the deprecation warning goes away.

No behavior change for existing runs. Runs with
`error_on_agent_without_environment_server: true` now accept these
configs.

Signed-off-by: Ananth Subramaniam <[email protected]>
(cherry picked from commit 33611bc)
Signed-off-by: Ananth Subramaniam <[email protected]>
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 6, 2026 19:40
@yaoyu-33 yaoyu-33 added area:config Hydra configuration, schemas, composition, and compatibility bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer labels Oct 6, 2026
@ananthsub
ananthsub merged commit 19d066e into NVIDIA-NeMo:r0.7.0 Oct 6, 2026
48 checks passed

This branch was previously deployed

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

Labels

area:config Hydra configuration, schemas, composition, and compatibility bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface 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