Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

docs: add a focused NeMo Gym integration guide (#772)

Christopher Kevinac9fc0ef4999
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 462663c2..0cc97384 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,11 @@ All notable changes to SkillEvaluator are documented in this file.
- Describe the other Tier 1 checks alongside Harness Check in the README and
include `harness` in the reference page's default check list.
+### Added
+
+- A dedicated [NeMo Gym integration guide](https://docs.nvidia.com/skills/skillevaluator/nemo-gym)
+ with setup, reviewed-dataset evaluation, reports, and troubleshooting.
+
### Fixed
- Scanner install hints in `health-check` and `doctor` now match the host:
@@ -152,9 +157,9 @@ must be updated when the release is frozen.
- Add offline pre-commit hooks: `skillevaluator-quality`,
`skillevaluator-schema`, and `skillevaluator-lint-scripts`. These hooks need
no API key, Docker, network access, or scanner downloads.
-- Add the experimental `tier3 evaluate --backend nemo-gym` adapter, with shared
- evaluation cases, verifier results, and report formats. Harbor remains the
- default backend. JSON and HTML identify the backend used.
+- 🎯 **NeMo Gym integration:** run Tier 3 evaluations through NeMo Gym with
+ SkillEvaluator’s grading and reports. [Get started](https://docs.nvidia.com/skills/skillevaluator/nemo-gym).
+ The integration is experimental; Harbor remains the default backend.
- Add opt-in grader qualification coverage policies, risk limits, preflight
checks, and retained assessment evidence. These tools and the synthetic pilot
do not establish grader reliability or release qualification.
diff --git a/docs/AGENTS.md b/docs/AGENTS.md
index 8004a0f3..014f9e8d 100644
--- a/docs/AGENTS.md
+++ b/docs/AGENTS.md
@@ -25,6 +25,7 @@ folder holds MDX pages published to <https://docs.nvidia.com/skills/skillevaluat
- `prepare-dataset.mdx` — author, generate, review, and validate cases before trials
- `tier3-run-options.mdx` — choose an agent and attempt count for reviewed cases
- `tier3-run-reference.mdx` — staging contracts, run settings, budgets, and repeat comparisons
+- `nemo-gym.mdx` — NeMo Gym setup, first evaluation, supported agents, and optional reference
- `tier3-runtime.mdx` — backend compatibility, runtime contracts, and troubleshooting
- `tier3-grading.mdx` — judges, evidence budgets, retries, and fallback policies
- `tier3-results.mdx` — scores, applicability, verdicts, and incomplete evidence
diff --git a/docs/README.md b/docs/README.md
index 6937c827..8af5e4c6 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -24,6 +24,7 @@ contributors making non-trivial edits.
- `prepare-dataset.mdx` — author, generate, review, and validate cases before trials
- `tier3-run-options.mdx` — choose an agent and attempt count for reviewed cases
- `tier3-run-reference.mdx` — staging contracts, run settings, budgets, and repeat comparisons
+- `nemo-gym.mdx` — NeMo Gym setup, first evaluation, supported agents, and optional reference
- `tier3-runtime.mdx` — runtime contracts, backend compatibility, and troubleshooting
- `tier3-grading.mdx` — judges, evidence budgets, retries, and fallback models
- `tier3-results.mdx` — scores, applicability, verdicts, and incomplete results
diff --git a/docs/cli-reference.mdx b/docs/cli-reference.mdx
index a49493d9..7a98d94a 100644
--- a/docs/cli-reference.mdx
+++ b/docs/cli-reference.mdx
@@ -620,7 +620,7 @@ Use `skillevaluator tier3 PATH` for the complete workflow with automatic missing
| --- | --- | --- |
| `-a, --agents TEXT` | provider-native | Comma-separated Harbor agents. Defaults: NVIDIA Build=`opencode`, OpenAI=`codex`, Anthropic=`claude-code`. Supported: `claude-code`, `codex`, `opencode`; Experimental: `hermes` (Docker with NVIDIA Build only; see [Experimental Hermes](/skills/skillevaluator/agents-and-sandboxes#experimental-hermes)). The alias `claude` is accepted for `claude-code`. See [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). |
| `--env-mode` | `docker` | Where trials run. SkillEvaluator exposes 27 environment modes: 26 Harbor-native modes — `docker`, `daytona`, `e2b`, `modal`, `runloop`, `langsmith`, `ec2`, `gke`, `ack`, `openshift`, `novita`, `apple-container`, `singularity`, `islo`, `tensorlake`, `cwsandbox`, `wandb`, `use-computer`, `blaxel`, `beam`, `skypilot`, `hyperbrowser`, `vercel`, `kata`, `runta`, `mosaic` — plus SkillEvaluator `local` mode. `wandb` runs Harbor's `cwsandbox` backend with W&B authentication, so it needs the `harbor[cwsandbox]==0.25.0` extra; Harbor 0.25 has no `wandb` extra. Harbor's `cua-cloud`, `opensandbox`, `hf-sandbox`, `podman`, `prime`, `smol`, `sbx`, `sail`, and `kernel` backends are not selectable. See the complete extras and prerequisites matrix in [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes#where-trials-run). Installed packages can add more modes; see [Custom execution backends](/skills/skillevaluator/agents-and-sandboxes#custom-execution-backends). |
-| `--backend` | `harbor` | Execution backend: `harbor`, or the experimental `nemo-gym` task-folder adapter. Public Gym 0.7.0 is incompatible; see [Execution backends](/skills/skillevaluator/tier3-runtime#execution-backends). |
+| `--backend` | `harbor` | Execution backend: `harbor`, or the experimental `nemo-gym` task-folder adapter. Public Gym 0.7.0 is incompatible; see [NeMo Gym integration](/skills/skillevaluator/nemo-gym). |
| `--environment-kwarg`, `--ek` | none | Operator-only `KEY=VALUE` constructor option for Harbor-native non-Docker backends (repeatable). Values accept JSON-compatible types; skill-owned `evals/config.yml` cannot set them. Never pass secrets. Docker and local reject all kwargs, Kata accepts only `kata_runtime` and `kata_dns`, and Harbor runtime-policy fields for overrides, mounts, networks, extra Compose, lifecycle, and pod security are reserved, as are `stream`, `enable_environment_dir_upload`, `auto_mounts`, `auto_mounting`, and `auth`/`forward_compose_env` for `cwsandbox`/`wandb`. Names the selected backend does not accept in Harbor 0.25.0 are rejected. See [Native backend constructor options](/skills/skillevaluator/agents-and-sandboxes#native-backend-constructor-options). |
| `--autopilot` | off | Create one eval case when no dataset/task source exists, then evaluate. The case is LLM-generated with the configured provider, with a deterministic keyless template fallback; an existing source is never overwritten. |
| `--skip-baseline` | off | Skip the without-skill baseline (no lift analysis, faster). |
diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdx
index 2d9d6c3e..81dbd18f 100644
--- a/docs/environment-variables.mdx
+++ b/docs/environment-variables.mdx
@@ -157,7 +157,7 @@ execution environments are covered in
| `SKILLEVALUATOR_RESULTS_DIR` | `<skill>/evals/results` | External root for run results. Precedence for writes: the `--results-dir` flag, then this variable, then the canonical in-skill location. Configured roots must remain outside the skill; `evals/results` is the only supported in-skill results root so generated output cannot change the skill's publication identity. Read commands (`view`, `compare`) honor the same order and also fall back to the legacy location so older runs stay visible. |
| `SKILLEVALUATOR_OUTPUT_PROVENANCE_KEY_FILE` | macOS: `~/Library/Application Support/skillevaluator/output-provenance.key`; Linux: `$XDG_STATE_HOME/skillevaluator/output-provenance.key` (`~/.local/state` when `XDG_STATE_HOME` is unset); Windows: `%LOCALAPPDATA%\skillevaluator\output-provenance.key` | Local key that authenticates the markers SkillEvaluator writes into its generated output directories; a directory is replaced only when its marker verifies for that path. The key is created on first use. It must be outside every evaluated skill and generated output tree. On macOS and Linux, the file and its directory must be owned by the current user and not accessible to group or other users. |
| `SKILLEVALUATOR_LOCAL_SANDBOX` | `require` | Local-mode sandbox policy. `require` fails closed when no OS sandbox backend (Bubblewrap on Linux, Seatbelt on macOS) is usable; `prefer` degrades to advisory-only guardrails with a loud warning; `off` skips sandbox probing entirely — for skills you fully trust. Any other value is rejected. No value enables native Windows: local mode fails closed there before anything runs — use WSL2 or `--env-mode docker`. |
-| `SKILL_EVAL_NEMO_GYM_BIN` | `gym` on `PATH` | Path to the Gym executable from the experimental adapter's separately pinned, editable installation. Public `nemo-gym==0.7.0` is incompatible. See [Execution backends](/skills/skillevaluator/tier3-runtime#execution-backends) for the tested configurations and remaining qualification limits. |
+| `SKILL_EVAL_NEMO_GYM_BIN` | `gym` on `PATH` | Path to the compatible pinned Gym executable if it is not on `PATH`. Public `nemo-gym==0.7.0` is incompatible. See [NeMo Gym integration](/skills/skillevaluator/nemo-gym) for installation, tested agents and remaining qualification limits. |
| `SKILL_EVAL_NEMO_GYM_MODEL_URL` | provider base URL | OpenAI-compatible base URL (ending in `/v1`) of the policy model for `--backend nemo-gym`. When set, also choose a model it serves with `--model`, `--agent-model` or `harbor.agents.<agent>.model`. |
| `SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` | provider key, only when the URL is also the provider's | API key for that policy model. Required when `SKILL_EVAL_NEMO_GYM_MODEL_URL` is set; use `EMPTY` for a keyless server. Passed to Gym through the environment, never on the command line. |
| `SKILL_EVAL_NEMO_GYM_HOST` | — | Address of this host that the Gym sandbox can reach (for example the Docker bridge gateway). Needed when the host name resolves to a loopback address. |
diff --git a/docs/nemo-gym.mdx b/docs/nemo-gym.mdx
new file mode 100644
index 00000000..2178e829
--- /dev/null
+++ b/docs/nemo-gym.mdx
@@ -0,0 +1,302 @@
+---
+title: "NeMo Gym Integration"
+description: "Set up NeMo Gym, run your reviewed Tier 3 cases in Docker, and open the SkillEvaluator report."
+---
+
+Run your Tier 3 tasks through **NeMo Gym**. SkillEvaluator prepares the cases,
+grades the runs with and without your skill, and produces the comparison report.
+
+<Note>
+ **Experimental · Docker · Linux (macOS untested).** Gym runs the agent and sandbox;
+ SkillEvaluator supplies the shared verifier, scores, and reports.
+</Note>
+
+<CardGroup cols={3}>
+ <Card title="1. Set up" icon="terminal" href="#install-the-pinned-gym">
+ Install Gym and connect your model.
+ </Card>
+ <Card title="2. Run" icon="play" href="#run-the-comparison">
+ Evaluate your reviewed dataset.
+ </Card>
+ <Card title="3. See the result" icon="chart-simple" href="#open-the-report">
+ Compare outcomes with and without the skill.
+ </Card>
+</CardGroup>
+
+## Before you start
+
+- [Install SkillEvaluator with all tiers](/skills/skillevaluator/installation#all-tiers), version **1.0.1** or later.
+- Have **uv**, **Git**, and **Docker** available. Start Docker before the readiness check.
+- Choose a skill folder containing `SKILL.md` and [prepare a reviewed dataset](/skills/skillevaluator/prepare-dataset) at `evals/evals.json`.
+
+The example below uses **Codex with OpenAI**. Replace `./my-skill` with your
+skill folder. Model calls can incur charges.
+
+<Steps toc={true}>
+
+### Install the pinned Gym
+
+SkillEvaluator finds Gym on `PATH` and checks its compatibility. It does not
+install Gym automatically. For the Codex walkthrough, use uv 0.13.4 or later
+and let uv install Gym in its own Python environment:
+
+```bash title="Install the pinned Gym once"
+uv tool install --python ">=3.13.14,<3.14" --reinstall \
+ "nemo-gym @ git+https://github.com/NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf"
+```
+
+Use the pinned source above: public `nemo-gym==0.7.0` has an incompatible CLI.
+The readiness check below verifies the required interface automatically.
+For OpenCode, use the editable setup in the advanced reference below.
+
+### Connect your model
+
+Export these in the same terminal as the evaluation. The OpenAI key serves
+both the evaluator and Gym's agent in this example.
+
+```bash title="Connect the evaluator and the live agent"
+export SKILL_EVAL_LLM_PROVIDER=openai
+export OPENAI_API_KEY='sk-...'
+export SKILL_EVAL_LLM_MODEL=gpt-5.4-mini
+export SKILL_EVAL_NEMO_GYM_MODEL_URL=https://api.openai.com/v1
+export SKILL_EVAL_NEMO_GYM_MODEL_API_KEY="$OPENAI_API_KEY"
+```
+
+Codex needs an endpoint that supports the **OpenAI Responses API**; NVIDIA
+Build does not support this route. Use a model your account can access. The
+commands below select `gpt-5.4-mini` for the agent too. For separate evaluator
+credentials, see [Providers & Credentials](/skills/skillevaluator/configuration).
+
+### Check your dataset and runtime
+
+Open and review `./my-skill/evals/evals.json` **before continuing**. If it is
+missing, [create your dataset first](/skills/skillevaluator/prepare-dataset).
+
+```bash title="Validate the cases and check Gym readiness"
+skillevaluator tier3 validate ./my-skill --strict
+skillevaluator tier3 doctor --backend nemo-gym --env-mode docker \
+ --agents codex --agent-model codex=gpt-5.4-mini
+```
+
+Fix failed checks before continuing. Doctor checks the CLI, Docker, and endpoint
+reachability; it does **not** prove that credentials or the model will work.
+
+### Run the comparison
+
+```bash title="One attempt per selected case, in both arms"
+skillevaluator tier3 evaluate ./my-skill \
+ --backend nemo-gym --env-mode docker \
+ --agents codex --agent-model codex=gpt-5.4-mini \
+ --n-attempts 1 --no-stop-on-pass
+```
+
+This uses your existing cases. It does not generate a missing dataset.
+Saved run settings can limit which cases run; check the reported coverage.
+Gym always runs every attempt. `--no-stop-on-pass` only matters when
+`evals/config.yml` sets `harbor.stop_on_pass: true`, which Gym otherwise rejects;
+without that setting you can leave it out.
+
+</Steps>
+
+## Open the report
+
+```bash
+skillevaluator view ./my-skill
+```
+
+| Check | What to look for |
+| --- | --- |
+| **Status and coverage** | Both arms completed with enough evidence to compare. |
+| **Skill Lift and trials** | How outcomes changed, and what happened in individual cases. |
+| **Backend** | The report shows **Backend: NeMo Gym** (`nemo-gym` in `result.json`); compare runs with matching models, agents, and judges. |
+
+The command prints the path to the latest `report.html` and opens it in your browser.
+By default, the run directory is under `./my-skill/evals/results/`. It also contains
+`result.json` and, when collected, Gym logs and rollouts under `_nemo-gym/`.
+[Read the results guide](/skills/skillevaluator/tier3-results).
+
+## Supported configurations
+
+Use **Docker on Linux**. macOS is allowed but has not had a live run. Windows, local mode, and managed sandbox
+backends are not supported by this adapter.
+
+| Agent | Current status |
+| --- | --- |
+| **Codex** | Completed with-skill and baseline live runs on the pinned Gym with GPT-5.4-mini; the example above uses this path. |
+| **Claude Code** | Completed with-skill and baseline live runs on the pinned Gym with Claude Sonnet 4.6; its mapping is experimental. |
+| **OpenCode** | Completed with-skill and baseline live runs on the pinned Gym with GPT-5.4-mini. Use the editable checkout below; its wheel installation fails during agent setup. |
+
+Support for every agent, grading mode, and custom task combination has not
+been qualified. Use the [Harbor walkthrough](/skills/skillevaluator/tier3-live-evaluation)
+for other environments or unsupported run options.
+
+## Troubleshooting
+
+<AccordionGroup>
+ <Accordion title="Gym is missing or its CLI is incompatible">
+ Make sure `gym` on `PATH` comes from the pinned install. If needed, run
+ `uv tool update-shell` and restart your shell. An explicit
+ `SKILL_EVAL_NEMO_GYM_BIN` takes precedence; unset it to use `PATH`.
+ Installing public Gym 0.7.0 does not supply the required interface.
+ </Accordion>
+ <Accordion title="Doctor passes, but the model call fails">
+ Check the policy URL, API key, and explicit `--agent-model` selection.
+ Codex and Claude Code need a Responses-compatible endpoint. Doctor's unauthenticated
+ reachability probe can pass even when the endpoint rejects authentication.
+ Check the failed trial and `_nemo-gym/` logs for the inference error.
+ </Accordion>
+ <Accordion title="An option or saved Harbor setting is rejected">
+ Review `evals/config.yml` as well as CLI flags. Gym rejects unsupported
+ settings before starting; it never silently switches to Harbor. Common
+ examples are early stopping, baseline reuse, budget controls, and MCP
+ servers. Use the detailed options reference below or choose Harbor.
+ </Accordion>
+ <Accordion title="Docker fails, or a run is interrupted">
+ Start Docker and check `docker info`. After a timeout or interruption,
+ check for leftover Gym servers and Docker sandboxes before retrying.
+ Inspect run status and execution errors before interpreting partial scores.
+ </Accordion>
+</AccordionGroup>
+
+## Advanced reference
+
+Expand only the details you need for another agent, custom tasks, or saved run settings.
+
+<AccordionGroup>
+ <Accordion title="Install Gym for OpenCode">
+
+OpenCode needs a persistent editable checkout so Gym can find its agent source
+files. Keep the checkout after installing and export the executable path in the
+terminal that runs the evaluation:
+
+```bash title="Install the pinned Gym in editable mode"
+git clone --filter=blob:none https://github.com/NVIDIA-NeMo/Gym.git "$HOME/nemo-gym/source"
+git -C "$HOME/nemo-gym/source" checkout --detach 792fa142f58277aecff05d402061d647e9a92acf
+uv venv --python ">=3.13.14,<3.14" "$HOME/nemo-gym/.venv"
+uv pip install --python "$HOME/nemo-gym/.venv/bin/python" \
+ --editable "$HOME/nemo-gym/source"
+export SKILL_EVAL_NEMO_GYM_BIN="$HOME/nemo-gym/.venv/bin/gym"
+```
+
+ </Accordion>
+
+ <Accordion title="Gym interface and compatibility">
+
+**Why the pinned commit:** the public `nemo-gym==0.7.0` release reads JSONL inputs and
+configured environments. It has no task-folder argument and no `--sandbox` option, so
+SkillEvaluator can't use it. The pinned commit
+[`792fa142`](https://github.com/NVIDIA-NeMo/Gym/blob/792fa142f58277aecff05d402061d647e9a92acf/nemo_gym/cli/main.py)
+adds both. Install that commit until a public release includes them.
+
+**What has been run live:** Docker runs completed both arms for Codex and OpenCode with
+GPT-5.4-mini, and for Claude Code with Claude Sonnet 4.6, and kept Gym's execution and
+verifier artifacts. These runs show the backend works end to end. They don't measure
+skill quality or cover every model, grading mode, or custom Dockerfile.
+
+ </Accordion>
+ <Accordion title="Claude Code model routing and skill discovery">
+
+The Claude Code mapping uses the same pinned runtime version as Harbor, installed
+by Gym inside the sandbox. It enables native discovery and projects staged skills
+into the task workdir's `.claude/skills/` directory because Gym uses a private
+Claude configuration directory. The baseline uses the same discovery settings
+without the target skill. Gym's required Anthropic credential field receives only
+a placeholder; policy credentials remain in the model-server environment. Claude Code
+takes its policy endpoint from the same settings as Codex: `SKILL_EVAL_NEMO_GYM_MODEL_URL`,
+`SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` and a model from `--model` or
+`--agent-model claude-code=MODEL`.
+Like Codex, it needs an endpoint that supports the OpenAI Responses API; NVIDIA Build
+returns 404 for `/v1/responses`.
+
+ </Accordion>
+ <Accordion title="Readiness probes and verifier contract">
+
+`tier3 doctor --backend nemo-gym` checks the Gym CLI interface and its version, that the Docker
+daemon answers, the `SKILL_EVAL_NEMO_GYM_*` settings, each selected agent's policy model
+endpoint, and the selected agents and `--env-mode`. The endpoint check uses
+an isolated, unauthenticated HTTP probe with a three-second deadline. It honors
+`HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (also lowercase), but sends no endpoint
+or proxy credentials and does not follow redirects. Policy endpoint HTTP responses,
+including authentication errors, count as reachable. Proxy authentication failures
+(`407`), failed HTTPS tunnels, and plain-HTTP proxy gateway errors (`502`, `504`)
+fail the check instead. HTTPS origin responses after a successful tunnel still
+count as reachable, including `502` and `504`. It does not
+validate credentials or model compatibility. The separate CLI interface check runs
+`gym eval run --help` with a 15-second timeout and a combined stdout/stderr limit of
+256 KiB, without policy credentials or server startup. Timeout, interruption, or output
+overflow stops its isolated process group with bounded TERM/KILL cleanup. It rejects
+missing task-folder arguments and required flags before dataset
+generation or task staging. Passing this necessary check does not certify live runtime
+compatibility. A Gym run reports
+configuration, Docker image, per-agent and collection progress.
+
+The adapter's required Gym contract is `gym eval run TASKS --sandbox docker`, with
+`--agent`, `--model-type openai_model`, `--model`, `--model-url`, `--output`, and
+`--concurrency`, plus Hydra overrides for repeats, credentials and cache disabling.
+Its help must describe a standalone positional `TARGET`, `tasks`, `task_dir`,
+`tasks_dir` or `task_folder` argument. Each rollout must identify its task and provide
+`verifier_return_code` and `verifier_logs_dir`, where the SkillEvaluator verifier's rewards and trajectory can
+be collected. The Gym implementation must execute inside Docker and resolve task
+environment templates; a host-only agent harness does not meet this contract.
+
+ </Accordion>
+ <Accordion title="Options, saved configuration, and retained artifacts">
+
+**Agents and grading modes**
+
+The adapter maps `codex`, `claude-code` and `opencode` and accepts `default`,
+`default_plus_custom` and `custom_only` grading modes. These are adapter capabilities;
+the live-run status in the table above does not qualify every combination.
+
+**Works as on Harbor**
+
+| Setting | On Gym |
+| --- | --- |
+| `evals/config.yml`: `harbor.n_attempts`, `pass_threshold`, `n_concurrent`, `max_cases`, `agents.<agent>.model`, `resources` (`cpus`, `memory_mb`), `runtime_env`, `grading.mode`, `skill_workspace.mode`/`include` | Unset flags fall back to these configuration keys, as on Harbor. |
+| `--skip-baseline`, `--skip-with-skill`, `--max-cases`, `--agent-model` | Apply the same way; `--agent-model` selects one model per agent. |
+| `--timeout-multiplier`, `harbor.timeout_multiplier` | Scale each task's agent, verifier, and environment-build timeouts as on Harbor; Gym enforces them. |
+| `harbor.agent_workdir`, `harbor.pre_agent_setup` (alias `setup_commands`, with-skill-only runs) | Work as on Harbor: Gym starts the agent in that working directory and runs setup commands as the task's environment healthcheck before the agent. |
+| `--copy-repo` | Stages the whole repository under `/workspace/repo/` as on Harbor. |
+| `skill_workspace.decoy_manifest` | Stages the same verified decoy snapshot into every arm. |
+| Native `evals/harbor/` tasks (`task_source: native_harbor`, or `auto` without `evals/evals.json`); `--override-cpus`, `--override-memory-mb` | Use Harbor's own native staging and run on Gym; verifiers may write `reward.json` or a numeric `reward.txt`, and overrides apply as on Harbor. |
+| `harbor.base_image_mode` (`reuse`/`rebuild`) | Builds Harbor's shared eval base image that the task images start from. |
+| `--custom-dockerfile-mode` (`rebase`, `preserve`) | Behave as on Harbor. |
+| `--environment-kwarg` | Rejected, as Harbor rejects it in Docker mode. |
+
+**Rejected before the run starts**
+
+- **Environment modes:** Every non-Docker `--env-mode` (including `local`, `daytona`, `e2b` and `singularity`) is rejected on the NeMo Gym path; use `--backend harbor` for those modes.
+- **Flags:** Gym rejects `--environment-kwarg`, `--stop-on-pass`, `--harbor-keep-jobs`, `--agent-runtime-preflight`, `--override-storage-mb`, `--reuse-baseline`, `--compare-to`, `--max-agent-tokens`, `--max-judge-calls`, `--max-attempts-total`, `--max-cost-usd`, `--price-file` and `--tolerate-baseline-timeouts`.
+- **Configuration keys:** Gym rejects `resources.storage_mb`, `max_agent_tokens`, `max_judge_calls`, `max_attempts_total`, `max_cost_usd`, `price_file` and `tolerate_baseline_timeouts: true` under `harbor`.
+- **Other conditions:** Gym rejects MCP servers in `evals/environment/mcp_servers.toml` or a native task's `[[environment.mcp_servers]]`, a model URL with embedded credentials, and Windows hosts, whether set by flag or config (a flag overrides its config key).
+- These restrictions apply before anything starts. `tier3 PATH --autopilot` checks them before it writes a dataset. Gym never silently switches or falls back to Harbor.
+
+**Credentials and environment**
+
+`runtime_env` (alias `passthrough_env`) entries reach the agent's sandbox as
+`${NAME}` references resolved from Gym's environment. Gym receives only the
+variables Harbor's Docker backend allows (including `DOCKER_HOST`, `DOCKER_CONTEXT`
+and TLS settings), Gym's `UV_*` package-index settings and credentials, `NETRC`, and
+the policy and judge credentials; relative Docker and TLS paths are made absolute first.
+Judge overrides (`LLM_JUDGE_MODEL`, `SKILL_EVAL_JUDGE_*`) reach Gym's verifier as on
+Harbor, and Vertex AI ADC tokens are refreshed before every `gym eval run`.
+
+**Failures, interruptions and artifacts**
+
+Every agent and arm is staged from one skill snapshot before the first launch. A
+missing or failed attempt counts as a failed trial, and the arm keeps its other
+scored trials. Excess rollouts are reported as execution errors and scoring remains
+bounded by the planned attempts. Any launch or rollout-count failure marks the run,
+the agent's progress row and the report as failed. If Gym's process group cannot be
+confirmed stopped after a timeout or interruption, no further arm starts beside it.
+After a timeout, the run records that as an execution error, finishes as failed and
+keeps the scores of the arms that finished. After an interruption, the progress
+output reports it and the run ends. Either way, check for leftover Gym servers and
+Docker sandboxes before you run again. A finished run updates `latest` and records
+the same dataset snapshot and publication target as a Harbor run. As on Harbor
+without `--harbor-keep-jobs`, the staged tasks and per-trial files are removed at
+the end; Gym's own redacted `gym.log` and its `rollouts.jsonl` stay under
+`_nemo-gym/` in the run folder, and the rollouts hold the raw agent responses.
+
+ </Accordion>
+</AccordionGroup>
diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx
index 9b387d24..8ab82a3c 100644
--- a/docs/tier3-live-evaluation.mdx
+++ b/docs/tier3-live-evaluation.mdx
@@ -31,7 +31,7 @@ then connect a model, prepare your dataset, and run the comparison.
<Note>
**NeMo Gym is also available** as an experimental backend for Docker on
Linux/macOS. The adapter is included in SkillEvaluator 1.0.1 and requires a
- separate pinned Gym installation; see [Installation](/skills/skillevaluator/installation#install) for package availability. [Setup and supported agents](/skills/skillevaluator/tier3-runtime#execution-backends).
+ separate pinned Gym installation; see [Installation](/skills/skillevaluator/installation#install) for package availability. [NeMo Gym setup and first run](/skills/skillevaluator/nemo-gym).
The walkthrough below uses **Harbor**, the default backend.
</Note>
diff --git a/docs/tier3-runtime.mdx b/docs/tier3-runtime.mdx
index c2627bb0..7f9437d3 100644
--- a/docs/tier3-runtime.mdx
+++ b/docs/tier3-runtime.mdx
@@ -137,156 +137,25 @@ cloud backend for untrusted code.
</Warning>
## Execution backends
-The backend selector and NeMo Gym adapter are included in SkillEvaluator
-**1.0.1**; 0.9.0 uses Harbor. See
-[Installation](/skills/skillevaluator/installation#install) for package availability.
-The separate pinned Gym runtime and compatibility requirements below still apply.
+`--backend` chooses what executes your cases. Both backends use SkillEvaluator's
+shared grading and report formats; Harbor is the default.
-`--backend` chooses what executes the cases. The default is Harbor. The experimental
-NeMo Gym adapter stages the same task folders and uses the shared verifier and result
-collector, but requires a Gym interface that is not available in the checked public
-`nemo-gym==0.7.0` release.
-
-| Backend | What runs the cases |
+| Backend | Choose it for |
| --- | --- |
-| `harbor` (default) | Harbor orchestrates the trials, runs the agent and the sandbox. Every `--env-mode` is available. |
-| `nemo-gym` | Native Gym task-folder adapter, restricted to `--env-mode docker`. Needs the pinned editable Gym install below; public Gym 0.7.0 is incompatible and fails preflight. Codex, Claude Code, and OpenCode have completed live paired runs on this pinned runtime. OpenCode requires the full editable checkout; its wheel installation fails during agent setup. |
-
-**Compatibility status:** installing `nemo-gym==0.7.0` does not enable this backend.
-That release's `gym eval run` takes JSONL inputs and configured environments; it has
-neither the positional task-directory argument nor `--sandbox` used by this adapter.
-Removing that flag alone does not provide the required execution or verifier contract.
-The immutable public source candidate
-[`NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf`](https://github.com/NVIDIA-NeMo/Gym/blob/792fa142f58277aecff05d402061d647e9a92acf/nemo_gym/cli/main.py)
-declares the `TARGET` task-folder argument and the seven required flags. Focused live
-Docker runs completed both with-skill and baseline trials for Codex and OpenCode with
-GPT-5.4-mini, and for Claude Code with Claude Sonnet 4.6. The runs retained native
-execution and verifier artifacts and exercised staged input files. These operational
-checks do not establish representative skill quality or compatibility with every model.
-Additional grading modes, custom Dockerfiles, and broader provider/model combinations
-need separate qualification.
-
-The Claude Code mapping uses the same pinned runtime version as Harbor, installed
-by Gym inside the sandbox. It enables native discovery and projects staged skills
-into the task workdir's `.claude/skills/` directory because Gym uses a private
-Claude configuration directory. The baseline uses the same discovery settings
-without the target skill. Gym's required Anthropic credential field receives only
-a placeholder; policy credentials remain in the model-server environment. Claude Code
-takes its policy endpoint from the same settings as Codex: `SKILL_EVAL_NEMO_GYM_MODEL_URL`,
-`SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` and a model from `--model` or
-`--agent-model claude-code=MODEL`.
-
-Use uv 0.13.4 or later on `PATH`. Install the pinned Gym from a persistent full
-source checkout in editable mode, with its own Python 3.13.14+ environment separate
-from SkillEvaluator's. Check that `gym eval run --help` lists `TARGET` and `--sandbox`:
-
-```bash
-git clone --filter=blob:none https://github.com/NVIDIA-NeMo/Gym.git "$HOME/nemo-gym/source"
-git -C "$HOME/nemo-gym/source" checkout --detach 792fa142f58277aecff05d402061d647e9a92acf
-uv venv --python ">=3.13.14,<3.14" "$HOME/nemo-gym/.venv"
-uv pip install --python "$HOME/nemo-gym/.venv/bin/python" \
- --editable "$HOME/nemo-gym/source"
-"$HOME/nemo-gym/.venv/bin/gym" eval run --help
-```
+| `harbor` (default) | The standard Tier 3 workflow, including Docker, local mode, and supported managed environments. |
+| `nemo-gym` (experimental) | Gym task execution in Docker on Linux/macOS, with a separately pinned Gym installation. |
-Then point SkillEvaluator at it and run:
+<Card title="NeMo Gym integration" icon="play" href="/skills/skillevaluator/nemo-gym">
+ Install the compatible Gym, connect a model, run your reviewed dataset, and open the report.
+ Includes supported agents and troubleshooting.
+</Card>
-```bash
-# Requires the pinned Gym install described below.
-export SKILL_EVAL_NEMO_GYM_BIN="$HOME/nemo-gym/.venv/bin/gym"
-# Codex needs an endpoint that serves the OpenAI Responses API; NVIDIA Build does not.
-export SKILL_EVAL_NEMO_GYM_MODEL_URL=https://api.openai.com/v1
-export SKILL_EVAL_NEMO_GYM_MODEL_API_KEY="$OPENAI_API_KEY"
-skillevaluator tier3 doctor --backend nemo-gym --agents codex
-skillevaluator tier3 evaluate ./my-skill --backend nemo-gym --agents codex --model <model>
-```
+The backend selector and NeMo Gym adapter are included in SkillEvaluator
+**1.0.1**; 0.9.0 uses Harbor. See
+[Installation](/skills/skillevaluator/installation#install) for package availability.
+The separate pinned Gym runtime and compatibility requirements are in the
+NeMo Gym guide above.
-`tier3 doctor --backend nemo-gym` checks the Gym CLI interface and its version, that the Docker
-daemon answers, the `SKILL_EVAL_NEMO_GYM_*` settings, each selected agent's policy model
-endpoint, and the selected agents and `--env-mode`. The endpoint check uses
-an isolated, unauthenticated HTTP probe with a three-second deadline. It honors
-`HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (also lowercase), but sends no endpoint
-or proxy credentials and does not follow redirects. Policy endpoint HTTP responses,
-including authentication errors, count as reachable. Proxy authentication failures
-(`407`), failed HTTPS tunnels, and plain-HTTP proxy gateway errors (`502`, `504`)
-fail the check instead. HTTPS origin responses after a successful tunnel still
-count as reachable, including `502` and `504`. It does not
-validate credentials or model compatibility. The separate CLI interface check runs
-`gym eval run --help` with a 15-second timeout and a combined stdout/stderr limit of
-256 KiB, without policy credentials or server startup. Timeout, interruption, or output
-overflow stops its isolated process group with bounded TERM/KILL cleanup. It rejects
-missing task-folder arguments and required flags before dataset
-generation or task staging. Passing this necessary check does not certify live runtime
-compatibility. A Gym run reports
-configuration, Docker image, per-agent and collection progress.
-
-Public Gym 0.7.0 requires Python 3.13.14 or later. Gym runs as its own pinned install
-rather than a SkillEvaluator dependency. Point `SKILL_EVAL_NEMO_GYM_BIN` at that
-install's `gym` executable. The run records `execution_backend` (name, Gym version,
-sandbox) in `result.json`; keep Harbor and NeMo Gym scores apart unless the model,
-harness and judge match.
-
-The adapter's required Gym contract is `gym eval run TASKS --sandbox docker`, with
-`--agent`, `--model-type openai_model`, `--model`, `--model-url`, `--output`, and
-`--concurrency`, plus Hydra overrides for repeats, credentials and cache disabling.
-Its help must describe a standalone positional `TARGET`, `tasks`, `task_dir`,
-`tasks_dir` or `task_folder` argument. Each rollout must identify its task and provide
-`verifier_return_code` and `verifier_logs_dir`, where the SkillEvaluator verifier's rewards and trajectory can
-be collected. The Gym implementation must execute inside Docker and resolve task
-environment templates; a host-only agent harness does not meet this contract.
-
-The adapter maps `codex`, `claude-code` and `opencode` and accepts `default`,
-`default_plus_custom` and `custom_only` grading modes. These are adapter capabilities;
-the live-run status in the table above does not qualify every combination.
-Every other `--env-mode` (including `local`, `daytona`, `e2b` and `singularity`) is
-not supported on the NeMo Gym path and is rejected before the run starts; use
-`--backend harbor` for those modes. Unset flags fall back to these `evals/config.yml` keys, as on Harbor:
-`harbor.n_attempts`, `pass_threshold`, `n_concurrent`, `max_cases`, `agents.<agent>.model`,
-`resources` (`cpus`, `memory_mb`), `runtime_env`, `grading.mode`, and
-`skill_workspace.mode`/`include`. `--skip-baseline`, `--skip-with-skill`, `--max-cases` and
-`--agent-model` (one model per agent) apply the same way. `--timeout-multiplier` (or
-`harbor.timeout_multiplier`) scales each task's agent, verifier, and environment-build timeouts
-as on Harbor, and Gym enforces them. `harbor.agent_workdir` and `harbor.pre_agent_setup`
-(alias `setup_commands`, with-skill-only runs) work as on Harbor: Gym starts the agent in
-that working directory and runs the setup commands as the task's environment healthcheck
-before the agent. `--copy-repo` stages the whole repository under
-`/workspace/repo/` as on Harbor, and a `skill_workspace.decoy_manifest` stages the same
-verified decoy snapshot into every arm. Native `evals/harbor/` tasks (`task_source: native_harbor`, or
-`auto` without `evals/evals.json`) are staged with Harbor's own native staging and run on Gym; their verifiers may write
-`reward.json` or a numeric `reward.txt`, and `--override-cpus`/`--override-memory-mb` apply to them, as on Harbor. `harbor.base_image_mode`
-(reuse/rebuild) builds Harbor's shared eval base image that the task images start from. `--custom-dockerfile-mode` rebase and preserve
-behave as on Harbor. `--environment-kwarg` is rejected, as Harbor rejects it in
-Docker mode. It rejects `--stop-on-pass`,
-`--harbor-keep-jobs`, `--agent-runtime-preflight`, `--override-storage-mb`,
-`--reuse-baseline`, `--compare-to`, `--max-agent-tokens`, `--max-judge-calls`,
-`--max-attempts-total`, `--max-cost-usd`, `--price-file`, `--tolerate-baseline-timeouts`,
-and the config keys
-`resources.storage_mb`, `max_agent_tokens`, `max_judge_calls`, `max_attempts_total`,
-`max_cost_usd`, `price_file` and `tolerate_baseline_timeouts: true` under `harbor`, MCP
-servers in `evals/environment/mcp_servers.toml` or a native task's `[[environment.mcp_servers]]`, a model URL with embedded credentials, and Windows hosts,
-whether set by flag or config (a flag overrides its config key), before anything
-starts (`tier3 PATH --autopilot` checks these before it writes a dataset); it never
-falls back to Harbor. `runtime_env` (alias `passthrough_env`) entries reach the agent's sandbox as `${NAME}`
-references resolved from Gym's environment. Gym receives only the variables Harbor's
-Docker backend allows (including `DOCKER_HOST`, `DOCKER_CONTEXT` and TLS settings),
-Gym's `UV_*` package-index settings and credentials, `NETRC`, and the policy and judge
-credentials; relative Docker and TLS paths are made absolute first. Judge overrides
-(`LLM_JUDGE_MODEL`, `SKILL_EVAL_JUDGE_*`) reach Gym's verifier as on Harbor, and Vertex
-AI ADC tokens are refreshed before every `gym eval run`. Every agent and arm is staged
-from one skill snapshot before the first launch. A missing or failed attempt counts as a
-failed trial, and the arm keeps its other scored trials. Excess rollouts are reported
-as execution errors and scoring remains bounded by the planned attempts. Any launch
-or rollout-count failure marks the
-run, the agent's progress row and the report as failed. If Gym's process group cannot be
-confirmed stopped after a timeout or interruption, no further arm starts beside it. After a
-timeout, the run records that as an execution error, finishes as failed and keeps the scores
-of the arms that finished. After an interruption, the progress output reports it and the run
-ends. Either way, check for leftover Gym servers and Docker sandboxes before you run again.
-A finished run updates `latest`
-and records the same dataset snapshot and publication target as a Harbor run. As on
-Harbor without `--harbor-keep-jobs`, the staged tasks and per-trial files are removed at
-the end; Gym's own redacted `gym.log` and its `rollouts.jsonl` stay under `_nemo-gym/`
-in the run folder, and the rollouts hold the raw agent responses.
## Harbor 0.25 compatibility
The `tier3` extra installs Harbor 0.25.0, the supported Tier 3 backend for this
@@ -450,7 +319,8 @@ See [retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci
`skillevaluator doctor` with the same agent and environment.
</Accordion>
<Accordion title="NeMo Gym cannot find the OpenCode runtime installer">
- Use the pinned editable source-checkout installation above. At this Gym
+ In the [advanced NeMo Gym reference](/skills/skillevaluator/nemo-gym#advanced-reference), open
+ **Install Gym for OpenCode** and follow the editable setup. At this Gym
revision, a non-editable wheel installation creates component-resource
symlinks that its Docker uploader preserves as dangling host-path links.
OpenCode then fails before execution with a missing
diff --git a/fern/docs.yml b/fern/docs.yml
index 18d78973..9f4a338d 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -71,6 +71,9 @@ navigation:
- page: Configure a Tier 3 Run
path: ../docs/tier3-run-options.mdx
slug: tier3-run-options
+ - page: NeMo Gym Integration
+ path: ../docs/nemo-gym.mdx
+ slug: nemo-gym
- page: Grader Validation
path: ../docs/grader-validation.mdx
slug: grader-validation