Skip to content

feat(tier3): add selectable NeMo Gym execution backend - #225

Merged
rng1995 merged 65 commits into
mainfrom
feat/christopherk/nemogym-integration
Nov 13, 2026
Merged

rng1995 merged 65 commits into
mainfrom
feat/christopherk/nemogym-integration

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Main synchronization and conflict resolution — 10 November 2026

Current head: c92e873eeaea7fbc405d8ecfb1233622e4d37282. Merged main d717f22cf6cad94e96891f8efbaa10d24e2b4837, preserved Christopher's concurrent merge 2825cd2bd52862db787103664f7ef8b25ddf92c8, and pushed normally with signed-off merge commits. GitHub confirms this head is mergeable.

Scenario BEFORE AFTER
Main integration Conflicts in CLI/options/reporting/changelog; newer main behavior overlapped Gym dispatch. Both histories and main's baseline, history, comparison, reporting and budget features are preserved. Failed Gym execution retention and persisted next-step guidance coexist.
Gym autopilot Harbor prerequisites could run before generation; the evaluate CLI repeated a compatibility check. Keyed Gym preflight runs inside the source snapshot using its own backend path; keyless compatibility checks remain. Harbor keeps its own ordering. The extra CLI probe is removed.
Unsupported baseline/comparison/budget options Newly introduced main flags and config could be ignored by Gym. Shared capability checks reject unsupported options, including explicit zero limits, before generation or execution. Direct-runner config is guarded; Christopher's run_options/config-override API is preserved.
Compatibility help Wrapped option prose could resemble a positional argument. Christopher's strict positional-section parser and regression are preserved verbatim, along with the bounded probe and TARGET support.

Verification: The first integration tree 20e9886ef69aeac3c7895bfe9aef2403e008de4b passed the full default suite with four workers: 27,526 passed, 35 skipped. After reconciling Christopher's newer commit and main's baseline-only sufficiency fix, final tree 54445d9cd6abb9ad2d9feddda6e650cfc98078ee passed 648 focused regressions, including Gym, autopilot, workflow, command, source-shaped parser, CLI golden and baseline/progress contracts. Counts from separate selections overlap and are not summed as unique tests.

Final-tree Ruff, changed-file formatting, wheel/sdist builds, configured source/archive OSS boundaries, public benchmark provenance, pinned Fern and diff checks passed. Fern retained one optional unauthenticated redirect-check warning. Independent subagent reviews and parent-preservation checks passed; main options/report/commands/workflow and the latest baseline fix are byte-identical to Christopher's update. An earlier intermediate Gym subset had one interrupt assertion failure; two exact reruns and the subsequent full suite passed. That original observation remains recorded without claiming a proven baseline cause.

Hosted CI restarted for this final head; no final-head hosted green result is claimed yet. Native Gym runtime qualification remains separate, and existing source/runtime qualification review is not resolved by this merge repair.

Summary

Adds a second Tier 3 execution backend. skillevaluator tier3 evaluate --backend harbor|nemo-gym picks who runs the cases; harbor stays the default and is unchanged.

With --backend nemo-gym:

  • evals.json is unchanged and is generated into the same task folders (task.toml, instruction.md, tests/, environment/) as for Harbor.
  • NeMo Gym runs them natively (gym eval run <tasks> --agent codex_agent --sandbox docker): its orchestrator, model server, agent harness and Docker sandbox, then the SkillEvaluator verifier (tests/test.sh) in the same sandbox. The Harbor runtime is not used.
  • Gym's rollouts are normalized back into trial result.json files, so the existing collector, scores, lift, activation, reports and result.json are shared. result.json records execution_backend (name, Gym version, sandbox).
  • Gym runs as a separate process (SKILL_EVAL_NEMO_GYM_BIN) because it needs Python 3.13.14+. The policy model URL/key come from SKILL_EVAL_NEMO_GYM_MODEL_URL / SKILL_EVAL_NEMO_GYM_MODEL_API_KEY; keys never appear on the command line, in task folders or in rollouts. Judge credentials reach only the verifier as ${NAME} templates.
  • Gym's CLI agents reject Harbor's skills_dir task hook, so only Gym's copy of each task drops it; the skill is still baked into the image at each agent's native path, so the with-skill and baseline arms are identical to Harbor's.
  • Options the backend can't honor (non-Docker --env-mode, --harbor-keep-jobs, --stop-on-pass, --copy-repo, Harbor-only environment kwargs, unsupported agents/grading modes, ...) fail before anything runs. There is no fallback to Harbor.

Also: skill activation now credits a SKILL.md read wrapped in a shell (/bin/bash -lc 'cat .../SKILL.md'), which Gym's Codex agent records. This applies to Harbor runs too; searches inside a wrapper are still not counted. tests/tier3/test_plugin_signals.py pinned the old scored-check behavior for bash -lc 'cat ...', so that case moves from the lenient-only group to its own test.

Code: src/skillevaluator/tier3/nemo_gym/ (backend.py selection and capability checks, runner.py task staging and Gym invocation, results.py rollout normalization), wired through cli.py, EvaluationOptions.backend and tier3/commands.py.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (tests/test_nemo_gym_backend.py, wrapped-read cases in tests/test_checks_routing.py, CLI golden snapshot)
  • Updated documentation for user-visible changes (docs/tier3-live-evaluation.mdx, docs/cli-reference.mdx, docs/environment-variables.mdx)
  • Ran make lint (ruff on changed files)
  • Ran make test (full suite after merging main; the remaining failures are environment-only and fail identically on main here: git-remote identity, CI onboarding and same-inode tests)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Live runs with NeMo Gym built from NVIDIA-NeMo/Gym@792fa142 (reports 0.7.0rc0), Codex agent, Docker sandbox, both arms:

skill cases with skill without skill attempts scored activation
calculator (sample) 2 0.99 0.45 4/4 activated
pdf (anthropics/skills, custom Dockerfile + input PDFs) 3 0.98 0.68 6/6 activated 3/3
skillevaluator tier3 validate ./pdf
skillevaluator tier3 evaluate ./pdf --backend nemo-gym --agents codex --model <model> --n-concurrent 1

Not covered yet: resumed/retried runs don't yet check that they reuse the original run's backend; Claude Code and OpenCode are mapped (claude_code_agent, opencode_agent) but only Codex was run end to end.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/67945dcbfd564cea889a3e0c2ee68013
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/67945dcbfd564cea889a3e0c2ee68013?variant=devin
Requested by: @chrisknvidia


Devin Review

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the actual Git history and diff at 4564f41. The only nonmerge commit, d51fd32 (chore: start Nemogym integration), is an empty scaffold; the branch has no changed files relative to its base or current main. There is no Nemogym implementation or behavior to validate, so I cannot approve the claimed integration. Leaving this draft open for implementation.

Add `tier3 evaluate --backend harbor|nemo-gym` (default harbor). With
nemo-gym, the evals.json cases are generated as the same task folders and
run by NeMo Gym's own orchestrator, agent harness and Docker sandbox in a
separate pinned process. Rollouts are normalized back into trial results,
so the shared collector, scores, lift and reports are reused, and
result.json records the backend and Gym version. Unsupported options are
rejected before execution with no fallback to Harbor.

Also credit SKILL.md reads wrapped in `bash -lc '...'`, which NeMo Gym's
Codex agent records, as skill activation.

Signed-off-by: Christopher Kevin <[email protected]>
…test

The scored activation check now credits `bash -lc 'cat .../SKILL.md'`, so move that case from the lenient-only group to its own test.

Signed-off-by: Christopher Kevin <[email protected]>
@devin-ai-integration devin-ai-integration Bot changed the title Adding Nemogym integration feat(tier3): add selectable NeMo Gym execution backend Nov 6, 2026
@chrisknvidia
chrisknvidia marked this pull request as ready for review November 6, 2026 09:55
devin-ai-integration[bot]

This comment was marked as resolved.

…kend

- Resolve unset options from evals/config.yml as Harbor does and reject config-set features Gym cannot honor (stop_on_pass, timeout_multiplier, agent_runtime_preflight, base_image_mode, custom Dockerfile modes).
- Apply --skip-with-skill and --max-cases, and pass one --agent-model string per agent.
- Reject --agent-runtime-preflight, and reject unsupported Gym flags before --autopilot writes a dataset.
- Write run_config.json and the run_config/attempt_policy/report_status/duration result fields so result discovery finds Gym runs.
- Launch Gym with only the host variables a Harbor backend may receive, plus the policy and judge credentials.

Signed-off-by: Christopher Kevin <[email protected]>
devin-ai-integration[bot]

This comment was marked as resolved.

…ackend

Use harbor.agents.<agent>.model and harbor.resources (cpus, memory_mb) when no flag overrides them, reject the Harbor-only config keys Gym cannot honor (task_source native_harbor, agent_workdir, pre_agent_setup, setup_commands, passthrough_env, resources.storage_mb), and list the supported keys in the docs.

Signed-off-by: Christopher Kevin <[email protected]>
devin-ai-integration[bot]

This comment was marked as resolved.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 14 findings (0 P1, 7 P2, 7 P3); 14 posted inline.

Re-reviewed at 6f913c4 (my 10-29 review was of the earlier scaffold). Every inline finding was reproduced with the PR's fake-gym fixtures and independently re-checked.

Status of the earlier Devin threads at this head:

  • Fixed: --skip-with-skill, --max-cases, per-agent model lists, --agent-runtime-preflight, docs config precedence, and most of the configured Gym policy (attempts, threshold, concurrency, grading, workspace mode, include; stop_on_pass/timeout_multiplier/preflight/base_image_mode/native_harbor rejected). The gaps left are decoy_manifest and runtime_env (inline).
  • Completed-run discovery: completed_only works; the remaining latest-link gap is inline at runner.py:503.
  • Autopilot before rejected flags: still open for flags that only the runner checks. tier3 evaluate --backend nemo-gym --autopilot --timeout-multiplier 2 (with a resolvable gym) generates evals.json, then exits 1. harbor.timeout_multiplier in config.yml behaves the same way. The tier3 PATH ordering is covered in the cli.py:3121 comment.
  • Host credentials: the deny-list over os.environ still forwards unprefixed secrets such as SLACK_BOT_TOKEN, NPM_TOKEN, AZURE_OPENAI_API_KEY, AZURE_CLIENT_SECRET, CI_JOB_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, VAULT_TOKEN, NGC_API_KEY, PGPASSWORD and DATABASE_URL, none of which Harbor's docker allowlist passes. The allowlist suggested at runner.py:174 fixes both this and the dropped Docker settings.
  • passthrough_env: still open; see also runner.py:111.

Comment thread src/skillevaluator/cli.py Resolved
Comment thread CHANGELOG.md Resolved
Merge Gym launch errors into results, tolerate truncated rollout JSONL, stage harbor.runtime_env into agent tasks, forward only Harbor's Docker-backend environment allowlist, publish the latest link, record dataset snapshot and publication target, run Gym in its own process group with graceful shutdown, resolve the Gym binary and version robustly, require a policy key for a custom model URL, validate SKILL_EVAL_NEMO_GYM_TIMEOUT_S, reject skill_workspace.decoy_manifest and harbor.timeout_multiplier, skip Harbor runtime preflight for tier3 PATH --backend nemo-gym, and drop duplicated CHANGELOG entries.

Signed-off-by: Christopher Kevin <[email protected]>
devin-ai-integration[bot]

This comment was marked as resolved.

chrisknvidia and others added 2 commits November 7, 2026 02:23
Skip a config key in nemo_gym_config_errors when its flag is given, read the workflow's environment_kwarg param, and stop rejecting the passthrough_env/setup_commands aliases that load_evals_config already normalizes (passthrough_env now reaches the agent via runtime_env staging).

Signed-off-by: Christopher Kevin <[email protected]>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Signed-off-by: Christopher Kevin <[email protected]>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 24 findings (0 P1, 5 P2, 19 P3); 24 posted inline.

Re-reviewed at 3f289ea: that is 245d268 plus the main merge, which doesn't touch the Gym code. I re-checked every earlier thread with a probe rather than from the replies, then reviewed the whole PR again. Every inline finding below was reproduced and independently re-checked.

Status of my earlier comments:

  • Fixed: a truncated rollouts.jsonl no longer aborts collection. Unprefixed host secrets no longer reach Gym. decoy_manifest is rejected at every entry point before any work, and latest is published. Also fixed: a relative SKILL_EVAL_NEMO_GYM_BIN, a custom model URL now needing its own key, the version of a symlinked gym, validation of SKILL_EVAL_NEMO_GYM_TIMEOUT_S, and the CHANGELOG duplicates.
  • Fixed with a gap (follow-ups inline):
    • Launch errors now fail the run, but report.html/tier3 view still say succeeded.
    • The Harbor-only preflights are gone from tier3 PATH, but so are the generic ones.
    • The Docker variables reach Gym, but relative paths aren't anchored and named-index uv credentials are dropped.
    • The process-group kill works for a timeout and a single Ctrl-C, but not when the leader exits during the grace period or on a second Ctrl-C.
    • The dataset snapshot fields match Harbor's, but publication_target is not withheld when include stages context from outside the skill.
    • runtime_env reaches Claude Code but not Codex.

Devin's threads, including the two new ones: all fixed, except that Gym's own env settings are still checked only after the dataset step (covered in the workflow.py comment).

The reformatting in 245d268 matches the pinned ruff (0.15.20, line-length 120). It merges cleanly with #325 and the other open PRs that touch those files: the only conflicts are CHANGELOG.md, and evaluation/options.py with #384/#387. tests/test_nemo_gym_backend.py passes (35), as do the CLI, workflow, normalizer and routing suites. Reverting each fix in a copy makes its cited test fail. The one gap is test_failed_gym_launch_is_reported_not_succeeded, which covers only the no-rollouts case.

Comment thread src/skillevaluator/tier3/workflow.py Resolved
Isolate the Gym version probe, stage judge overrides into the verifier,
keep partial rollouts as scored arms, let Codex inherit runtime_env,
refresh Vertex ADC per launch, harden process cleanup and log redaction,
reject MCP servers, native Harbor tasks, URL credentials and Windows
before any work, stage every arm once before the first launch, remove
staged tasks/jobs as Harbor does, and carry failed status into reports.

Signed-off-by: Christopher Kevin <[email protected]>
devin-ai-integration[bot]

This comment was marked as resolved.

Scale each staged task's agent, verifier and environment-build timeouts
by Harbor's multiplier before Gym runs, since Gym enforces the task's own
timeouts. Validate the multiplier as Harbor does and record it in
run_config.json.

Signed-off-by: Christopher Kevin <[email protected]>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@rng1995

rng1995 commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@chrisknvidia, below are answers to both of your questions and a note on the main sync.

Main sync. I merged main ce52a098 (#332, #440, #448, #454) as 66af59a5, a fast-forward on top of your 8b35d4f. The only conflict was CHANGELOG.md, where I kept both Unreleased/Added entries. Apart from the changelog, the merge brings in exactly main's diff. The PR's own diff against main is unchanged: 29 files, +4703/−76. None of the four main commits touches a file this PR changes. #332 changes how the benchmark card treats a baseline that ran. Gym results go through the same collector, so that change applies to both backends. I ran the focused suites on the merged tree: the Gym backend, Gym main-integration and autopilot-preflight tests, tests/golden, tests/reporting, checks routing and plugin signals. Result: 2,623 passed, 5 skipped and 7 failed, and all 7 failures come from my machine. The 3 fake-Gym run tests pass when rerun one at a time. The CLI-surface golden test also fails on your 8b35d4f here, because my venv has click 8.5.1 rather than the locked 8.4.2. The 3 --help probe-containment tests use a 2-second timeout, which this machine (load average around 23) sometimes misses, so they pass or fail from run to run; one of them fails on 8b35d4f here too. The merge changes no Gym, CLI or golden file, so hosted CI on 66af59a is the check that counts.

1. Without --autopilot, do Gym's checks still run before a run folder is created?

Yes, with one exception that predates the reconcile.

  • tier3 evaluate --backend nemo-gym goes through commands.evaluate. There, nemo_gym_capability_errors rejects the CLI options, including the baseline, comparison and budget run_options.
  • run_nemo_gym_eval then probes the Gym CLI, loads evals/config.yml and checks capabilities, Harbor-only and budget config keys, MCP servers, storage, the SKILL_EVAL_NEMO_GYM_* timeout and sandbox settings, and the policy URL and key. All of this happens before _reserve_run_dir.

I checked this by running the real evaluate command with a fake gym, no --autopilot and an explicit --results-dir. I ran it on the merged head and on 2825cd2, which still had the early check in cli.py.

Bad input (no --autopilot) Merged head 2825cd2
--harbor-keep-jobs, --stop-on-pass, --reuse-baseline, --compare-to, --max-attempts-total, --agent-runtime-preflight, --override-storage-mb, --override-cpus 0, --env-mode local rejected, no run folder, no Gym launch same
config harbor.stop_on_pass, harbor.max_attempts_total, harbor.resources.storage_mb rejected, no run folder, no Gym launch same
evals/environment/mcp_servers.toml declaring a server rejected, no run folder, no Gym launch not run
bad SKILL_EVAL_NEMO_GYM_TIMEOUT_S, SKILL_EVAL_NEMO_GYM_SANDBOX=k8s, URL set without a key, URL with userinfo rejected, no run folder, no Gym launch same
SKILL_EVAL_NEMO_GYM_BIN unset, or a gym whose help has no --sandbox rejected, no run folder, no Gym launch same
valid control launches Gym and writes the run folder same

The only difference is the exit code: 1 instead of 2. The errors now come from the engine rather than from a click UsageError, so they exit the same way Harbor's config errors do.

The exception (on both heads, P3): a bad harbor.runtime_env fails only after the run folder has been reserved. Examples are an unset ${VAR} or an operator-owned name such as MY_API_KEY. The failed run leaves results/<skill>/<run_id>/ behind, containing _nemo-gym/ and the generated-output marker. The cause is that verifier_judge_env resolves runtime_env inside the artifact lifecycle, after _reserve_run_dir. Harbor rejects the same config before it creates a run folder: harbor/runner.py returns runtime_errors at L5651, before _reserve_run_dir at L5944. Suggested fix: call verifier_judge_env(...) and _resolve_runtime_env(...) before _reserve_run_dir, and add a harbor.runtime_env: {FOO: ${UNSET}} case to test_gym_rejects_config_budget_before_generation_or_execution. That test already asserts that no results/ folder is created.

2. Scope: what do I think?

I agree with the scope. Gym runs in Docker only, fails closed with no Harbor fallback, and rejects everything it can't honor before the run starts. The table above checks each item in your list on the merged head. There are two places where "works the same" doesn't fully hold. Neither one blocks this PR.

  • --max-agents is ignored rather than rejected. Gym runs agents and arms one after another, so the cap always holds. But multi-agent runs take longer as you add agents, and nothing on the Gym path reads --max-agents. So --max-agents 0 gets through, where Harbor rejects it with max_agents must be >= 1.
  • Reports don't say which backend ran. result.json records execution_backend, but no reporter reads it. A Gym run's HTML and Markdown reports and its BENCHMARK.md say Environment: docker, the same as a Harbor run. The docs tell readers to "keep Harbor and NeMo Gym scores apart", but nothing in the report shows which backend produced it. While the backend is experimental and not yet qualified, I'd show NeMo Gym <version> (experimental) in the report header and on the BENCHMARK environment line, so a published verdict can't be taken for a Harbor-qualified one. This can be a follow-up.

Only Codex has run on real Gym. That's fine for an experimental flag, because the docs and CHANGELOG still say the Codex, Claude Code and OpenCode mappings don't establish end-to-end support. I'd keep the "792fa142 candidate" wording until someone other than the author installs from that commit and gets a scored paired run.

…a run folder

Resolve the judge and harbor.runtime_env environment before
_reserve_run_dir, so an unset ${VAR} or an operator-owned name leaves no
results/ folder behind, as on Harbor. Reject --max-agents and
harbor.max_agents below 1 on the Gym path with Harbor's message.

Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia
chrisknvidia force-pushed the feat/christopherk/nemogym-integration branch from b7494b3 to b639ede Compare November 12, 2026 18:35
@chrisknvidia

Copy link
Copy Markdown
Collaborator Author

The exception (on both heads, P3): a bad harbor.runtime_env fails only after the run folder has been reserved.
The --max-agents is ignored rather than rejected.

@rng1995, both are fixed in b639ede.

  • runtime_env: run_nemo_gym_eval now calls verifier_judge_env(...) and _resolve_runtime_env(...) before _reserve_run_dir. An unset ${VAR} or an operator-owned name such as MY_API_KEY is rejected with no results/ folder, as on Harbor. New test: test_gym_rejects_bad_runtime_env_before_reserving_a_run_folder covers both cases.
  • max_agents: --max-agents is now passed to the Gym runner. The runner rejects it, or harbor.max_agents when the flag isn't given, below 1 with Harbor's max_agents must be >= 1, again before any run folder. Gym still runs agents one at a time, so any valid value holds. New tests: test_gym_rejects_max_agents_below_one_like_harbor and test_gym_dispatch_passes_max_agents.
  • Backend in reports: agreed, that's a follow-up. result.json already records execution_backend.

The Gym, Tier 3, CLI, golden and reporting tests pass locally (13,085), and ruff is clean.

chrisknvidia and others added 3 commits November 12, 2026 18:37
Keeps both Unreleased/Added CHANGELOG entries (NeMo Gym backend and
CI onboarding/benchmark PRs from #439). No other files conflicted.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in main through b38b71b (#416, #417, #420, #422, #423, #428,
#429, #467). Merged without conflicts; CHANGELOG, docs, decoys.py and
eval_core/checks.py auto-merged with both sides' edits in separate hunks.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995

rng1995 commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@chrisknvidia, I checked b639ede and both fixes hold. I ran the real tier3 evaluate --backend nemo-gym without --autopilot against 73780f0:

  • harbor.runtime_env with an unset ${VAR}, or with an operator-owned name such as MY_API_KEY: rejected with nothing left under results/ and no Gym launch.
  • --max-agents 0: rejected with max_agents must be >= 1, with no run folder.
  • harbor.max_agents: 0: rejected while evals/config.yml is loaded.
  • --max-agents 3, and a run with valid settings: both still launch and finish.

Main moved twice more, so I merged it into the branch as two signed merges:

Both sides had edited eval_core/checks.py and decoys.py, but in separate places. This PR's wrapped SKILL.md read credit is unchanged next to main's tool-productivity rewrite in #428. decoys.py has only this PR's reformatting plus main's new error message.

On ed6e27a I ran the Gym, golden, progress, tool-productivity, root-search, checks-routing, plugin-signal, decoy, timeout-recovery, RAGAS-evidence, run-budget and grader tests with click pinned to the locked 8.4.2. All 1,533 passed.

The report backend label stays as a follow-up, as agreed.

@rng1995
rng1995 enabled auto-merge (squash) November 12, 2026 20:19
rng1995 and others added 4 commits November 12, 2026 12:31
Brings in #464 (Harbor 0.25.0) and #466. The only conflict was docs/cli-reference.mdx: keep main's Harbor 0.25.0 --env-mode and --environment-kwarg rows, and this PR's --backend row between them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #410, #412, #413, #419, #421, #425, #430 and #444. Conflicts: CHANGELOG.md (kept both Unreleased Fixed entries) and evaluation/options.py (kept main's tolerate_baseline_timeouts field and this PR's backend field).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
main's #430 added --tolerate-baseline-timeouts and harbor.tolerate_baseline_timeouts,
but only the Harbor runner reads them. After the main sync, a NeMo Gym run accepted
either and silently ran without the tolerance, the same gap the budget and
baseline-reuse options had.

Gym now rejects the option when it is on, from the flag or the config key, before
dataset generation, a run folder or a Gym launch, with the same "is not supported
with --backend nemo-gym yet" message. Off is Gym's own behavior, so
--no-tolerate-baseline-timeouts stays allowed and, as on Harbor, overrides a config
key that turns it on. The docs list the new rejected flag and key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #407. The only conflict was CHANGELOG.md, where both sides added an Unreleased Added entry; kept both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving at 5036eab.

The earlier review items are all fixed:

  • The positional TARGET check now reads only the argparse positional arguments: section (_declares_task_positional), so wrapped --only-tasks help no longer passes a CLI without the positional.
  • --autopilot with --backend nemo-gym runs the Gym preflight instead of Harbor's agent-runtime checks.
  • Baseline reuse, --compare-to and the budget options are rejected for Gym, including an explicit 0.
  • b639ede's runtime_env and max_agents checks run before a run folder is reserved.

I synced the branch with main three times (fd57e02, 61feaf4, 5036eab). The conflicts were in CHANGELOG.md, docs/cli-reference.mdx and evaluation/options.py; I kept both sides in each. One sync needed a code change, 218b2dc. #430's --tolerate-baseline-timeouts and harbor.tolerate_baseline_timeouts were accepted on Gym and silently ignored. Gym now rejects them when they're on, before generation, a run folder or a launch. --no-tolerate-baseline-timeouts still overrides a config key that turns it on, as on Harbor. The new tests fail without the change.

I ran a fake-Gym evaluation on the synced head where one baseline attempt fails:

  • #407's coverage notice reads "baseline incomplete" and never names a Harbor exception.
  • Token usage shows missing counters as partial, never as 0.
  • #430 adds no tolerance fields to a Gym run.
  • #419 regenerates a Gym report from result.json.
  • #464's Harbor 0.25 environment changes never reach the Gym path.

One new P3 is inline, from #407: a Gym run's terminal output points to a tier3-benchmark.md that the Gym backend doesn't write.

Not blocking this approval: native qualification on real Gym (only Codex has been run so far), and the report backend-label follow-up.

devin-ai-integration[bot]

This comment was marked as resolved.

chrisknvidia and others added 3 commits November 12, 2026 22:35
The --backend row in the CLI reference and the SKILL_EVAL_NEMO_GYM_BIN row
in the environment variables page linked to tier3-live-evaluation.mdx by
file path. Published pages need the /skills/skillevaluator/<slug> form, as
docs/AGENTS.md requires.

Signed-off-by: Christopher Kevin <[email protected]>
When a timed-out gym eval run could not be stopped (killpg refused or the
leader was not reaped), the failure was recorded against the arm and the
next arm launched beside Gym servers and sandboxes that might still be
running.

_run_gym now makes one last bounded SIGKILL and reap after a failed stop and
checks the group is empty. If it still cannot confirm that, it raises
GymCleanupError; the runner reports the agent as failed and aborts instead
of starting another arm.

Signed-off-by: Christopher Kevin <[email protected]>
@rng1995
rng1995 disabled auto-merge November 13, 2026 07:05
rng1995 and others added 5 commits November 13, 2026 00:55
…topped

Re-raising GymCleanupError ended the evaluation before collection, so the
arms and agents that had already finished lost their scores: no result.json,
report or latest. Now nothing else is launched beside the group, each skipped
arm is recorded as not started, and the run is still collected and saved as
failed with the cleanup error.

On Ctrl-C, SIGTERM or SIGHUP the interrupt still ends the run, but a failed
cleanup progress event now says Gym may still be running, instead of only
"Aborted!".

_group_is_gone reaps our own zombies in the group before each probe, so
SkillEvaluator as PID 1 (or a subreaper) without an init no longer reports an
already-dead group as running.

New tests cover a member that outlives the leader, a retried EPERM probe, the
Linux subreaper case, the interrupt event, and a finished arm kept beside a
hung one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
When an earlier arm finished, the summary without --verbose folded the
cleanup error into "N failure detail(s)", so with --progress off nothing said
that Gym's servers or sandboxes may still be running. Record it as a warning
too, which the summary always prints, and record that the arm timed out
before its stop failed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Brings in main up to 7a37915. The only conflict was CHANGELOG.md, where both
sides added Added and Fixed entries; both sides are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Brings in main up to ba7779a, which prepares v0.9.0. This PR is not part of
0.9.0, so its CHANGELOG entries move to a new Unreleased section above the
0.9.0 release notes. docs/cli-reference.mdx keeps main's site-path links in
the tier3 evaluate flag table and adds this PR's --backend row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
#456 made create-eval-dataset default to --grounding auto, which needs
evals/EVAL.md, --prompt or a matching trace, and rewrote Harbor's
missing-dataset error to say so. The Gym backend kept its own copy of the old
message, which told users to run create-eval-dataset, and that now fails
without guidance. Both backends now use one shared message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 merged commit a2da244 into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the feat/christopherk/nemogym-integration branch November 13, 2026 11:57

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR merged while this review was in progress; the reviewed head is still 33ef2cea4352. Two verified findings below need follow-up: verifier rewards can overwrite staged case identity, and normalization omits the custom grader's explanation sidecar.

Reviewed backend capabilities, staging, credential/process handling, rollout normalization, and shared collection/reporting, with existing comments checked for duplicates. Focused backend/integration/autopilot suites passed (177 passed, 1 skipped; installed Harbor 0.24 rather than pinned 0.25). Both findings were independently reproduced through the real normalizer/collector, including the real custom-grader wrapper. No native Gym, Docker, or paid-provider run was performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants