Repository navigation
Conversation
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Environment servers now answer /aggregate_metrics, so rollout collection has one place to ask rather than reaching past them to an agent. The base server registers the route and declares the method abstract, so every protocol states where its metrics come from. single_agent forwards to the resources server that verified; legacy_agent forwards to the agent it fronts. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Collection posted /run and /aggregate_metrics straight to the agent. Both now go to the environment server declared for that agent, so nothing reaches an agent without passing through one. Resolving the server from the agent only describes an episode that has exactly one. Routing should name the server directly once tasksets can. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
The base declares four limits every environment server must state. A relay enforces none of them, so configs had to repeat values that did nothing. They now carry defaults, and setting one warns. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Declares a legacy-agent environment server beside every bound agent instance. Idempotent, with a --check mode. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
…o entrypoint Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Benchmarks that landed after the last sweep declare an agent with no environment server, which rollout collection cannot reach. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
…ts per row (NVIDIA-NeMo#3576) ## What does this PR do? Lets one rollout-collection batch mix native (materialized) tasksets and compatibility-routed flat rows, with no new agent × resources pairing, and keeps the chosen environment server's identity on every row through shards, retries and results. - A materialized task (`task_id.taskset` plus `task_input`) now routes by `environment_server_routes` in **every** `environment_routing_mode`; it is the native episode request and no agent-server `/run` accepts it. - A flat row keeps following the mode: `agent` (default) resolves the row's own environment server at dispatch, as today; `legacy` sends every flat row to `environment_server_name`; `taskset` stays native-only and rejects flat rows, so a native run cannot silently pick up legacy input. - A materialized row whose taskset has no entry in `environment_server_routes` fails at preprocessing with the missing route named. (NVIDIA-NeMo#3491 no longer has a `tasksets` config block, so routes are the only declaration.) - Two knobs that cannot apply to a materialized row now fail with the fix named instead of a `KeyError`: `num_repeats_add_seed` (the seed lives in the top-level prompt, which a materialized row keeps under `task_input`). - No config or YAML changes: routes point at existing environment-server deployments, and flat rows reach the `legacy_agent` servers that NVIDIA-NeMo#3490 generates in front of each existing pairing. The `_ng_environment_server` stamp, written once at preprocessing, already reaches the materialized input file, resume retries (`_load_from_cache` re-reads the stamped rows) and result rows; this PR does not change that path. ## Interaction flow ```mermaid sequenceDiagram participant C as Rollout collector participant N as Native environment server, one per taskset route participant L as legacy_agent environment server, one per pairing participant A as Agent server Note over C: preprocess stamps _ng_environment_server once per row Note over C: materialized row routes by task_id.taskset, flat row follows the routing mode C->>N: POST /run with the episode request, episode_id plus task C->>L: POST /run with today's flat row L->>A: relay /run N-->>C: SingleAgentEpisodeResponse L-->>C: legacy result ``` ## Stack position Stacks on NVIDIA-NeMo#3491 (part 12, `ananthsub/episode-orchestration-10-rollout-routing`) and touches only `nemo_gym/rollout_collection.py`, which NVIDIA-NeMo#3492 does not modify. It can be squashed into NVIDIA-NeMo#3491 if preferred, since it changes the semantics of the routing mode that PR introduces. Follow-up (separate PR): aggregate metrics grouped by `_ng_environment_server` instead of `agent_ref.name`, and native `failure` replies written to the failures sidecar, so identity also persists through `gym eval aggregate` and retries of native episodes. ## Validation - `pytest tests/unit_tests/test_rollout_collection.py tests/unit_tests/test_global_config.py -q` → 383 passed. - Adversarial review (four lenses, two independent refuters per finding, each reproduced against the code): the two surviving findings attributable to this PR are fixed in the second commit. - New tests in `TestEnvironmentServerRouting`: a mixed batch dispatches the native row to its taskset's route as an episode request and the flat row to the server fronting its agent as today's flat body; a materialized row without a route fails before dispatch; `legacy` mode stamps flat rows with `environment_server_name` and materialized rows by taskset, then dispatches both through `run_examples` against a `legacy_agent` server that binds no resources server; `num_repeats_add_seed` on a materialized row fails before dispatch; `taskset` mode still rejects flat rows. - `ruff check` and `ruff format --check` pass. ## Compatibility and benchmark impact Default behavior for flat-only batches is unchanged. Materialized rows in `agent` mode previously had no route and could not be dispatched; they now require `environment_server_routes`, which is what `taskset` mode already required. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Adil Asif <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit 3178fd3)
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit d6c8cbe)
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit 7ba7393)
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit ffb3039)
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit 0adc36b)
Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit 8ed1652)
Replace four internal flags with SessionPhase and RunnerCleanup while preserving close retries, unknown-launch safety, cleanup receipts, and locking. Extend lifecycle assertions for completed invocations, rejected input, and cleanup-confirmed close retries. Validation: 79 lifecycle/environment/resource tests passed, 5 skipped; 56 controller checks passed with the unused model_tools dependency import isolated. Full pre-commit and diff checks passed. No new real-model smoke: internal state representation only; Linux supervisor and full Hermes integration were not rerun. Signed-off-by: yaoyu-33 <[email protected]> (cherry picked from commit f1dc2d0)
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
2 times, most recently
from
October 15, 2026 23:20
278f017 to
de966de
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 15, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
added a commit
that referenced
this pull request
Oct 15, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 15, 2026 23:39
de966de to
be7577c
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 00:04
be7577c to
03fba88
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 00:11
03fba88 to
500d3d1
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 02:23
500d3d1 to
77e606c
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 03:45
77e606c to
1d701f4
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
2 times, most recently
from
October 16, 2026 19:24
75456ae to
32ae695
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 20:43
32ae695 to
b90166b
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
added a commit
that referenced
this pull request
Oct 16, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 16, 2026 21:59
b90166b to
129dadc
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 19, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 19, 2026 21:15
129dadc to
6572042
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 19, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 19, 2026 21:20
6572042 to
49a8ff0
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 20, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]> (cherry picked from commit 666d2ed) Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 20, 2026 02:10
49a8ff0 to
f8fbeec
Compare
init-nikhil
added a commit
that referenced
this pull request
Oct 20, 2026
Adapt useful lifecycle, failure handling and NVIDIA gateway behavior from Razvan Dinu's PR #4291 (49b8daa) on top of durable ordered NOOA assistant history. Stop NOOA-owned workers before standard environment verification, preserve terminal exceptions and failed-call evidence, isolate optional summary failures, and leave unrecovered infrastructure failures ungraded. Retain partial-result grading at execution limits and align active NOOA pins, including controller bootstrap, at 19caab1. Signed-off-by: Nikhil Deshmudre <[email protected]> (cherry picked from commit 666d2ed) Signed-off-by: Nikhil Deshmudre <[email protected]>
init-nikhil
force-pushed
the
codex/nooa-eval-reproducibility
branch
from
October 20, 2026 04:46
f8fbeec to
10a2a19
Compare
Author
|
Closing this in favor of the NOOA stack, which now contains these changes. #4291 was based on an older version of Where each part went:
Not carried over: the vLLM workaround for the NVIDIA inference gateway (duplicate reasoning fields and the prompt cache hint). It isn't specific to NOOA. If that gateway still rejects these requests, it will go to @giuliolovisotto, thanks for the review. #4357 covers the termination-labelling points: policy-budget and invalid-output stops are labelled incomplete, and real failures are kept. |
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?
Stacked on #4088 (
codex/nooa-eval-reproducibility), which remains part of the pending NOOA integration stack. Ports the fixes used during local Terminal-Bench evaluation; no separate issue is needed for this follow-up.19caab169b018476ac433d040f6ae3f06aeff101, included in the now-merged Fix benchmark task rendering, CodeAct loops, shell lifecycle, and summarization labs-OO-Agents#426.Validation
pre-commit run --all-filesandgit diff --check: passed.TestEndpointFile::test_unpublished_endpoint_grace_lifecycle). The same failure reproduces on the unchanged base (159 passed, 1 failed); it passes individually. Imported source paths were verified against this worktree.Tests exercised:
Run with
pytest -p pytest_asyncio.plugin --asyncio-mode=auto --import-mode=importlib, the pinned NOOA source on PYTHONPATH, andNEMO_GYM_EXTRA_ROOTSpointing to this checkout. Full repository tests were not run.Rollouts
Prior live native
kv-store-grpccanaryrdinu-nooa-lifecycle-20261008-195032validated the lifecycle patch: reward 1.0, all seven native tests passed, diagnostic RPC succeeded during grading, and cleanup removed all six socket-owning processes. This is historical evidence, not a fresh rollout from this assembled branch. Draft pending a fresh native model smoke. No new benchmark/model rollout or active evaluation modification was performed for this PR.Compatibility and benchmark impact
The default finish endpoint delegates to close for other adapters. Retention is opt-in through
finish_agent_before_verification; the external harness owns final service cleanup. Custom NOOA profiles need the updated shell-scope and summary-marker APIs. The dependency update also brings full task rendering, the BenchAgent 7-in-15 loop guard, todo removal, and append-only summarization. Native tests and grading are unchanged; no suite score gain is claimed.Checklist