Repository navigation
feat(skillsbench): run SkillsBench on the harbor environment server - #5699
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Add a second SkillsBench path on the harbor environment server beside the existing OpenHands path through harbor_agent_general, which behaves as before. - harbor env server: when a task declares [environment].skills_dir and ships environment/skills/, upload that folder to skills_dir at seed, as root, before the task's entrypoint, healthcheck and harness session; the uploaded tree is opened to every user. - Two committed dataset entries, environments/harbor/skillsbench and environments/harbor/skillsbench_no_skill (README and dataset.toml, as terminal_bench_4), so gym eval run resolves them by name. - prepare_harbor_env.py writes each condition's tasks into its entry on the digest-pinned official images: with-skill declares skills_dir = /root/.agents/skills; no-skill drops environment/skills and clears baked-in skills with a seed-time overlay. - prepare.py exposes its checkout, task conversion, task.toml writer and a new image-manifest loader for both scripts; the OpenHands path's task output is unchanged. - README: the new path first, the OpenHands path kept as its own section; harbor server README and run-and-babysit-eval notes cover both paths. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
ace9006 to
51733c4
Compare
- prepare_harbor_env.py keeps every file the repository's .gitignore keeps in an entry (README.md, dataset.toml and *.yaml) and swaps the converted tasks in by renaming, so an interrupted preparation leaves the previous tasks in place. - Restore the name of test_adapt_task_preserves_prompt_and_sandbox_policy in test_skillsbench_prepare.py, which the helper rename had changed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — 1 RISK and 2 documentation NOTEs.
The Compose path starts its commands and checks image health before the new skill upload runs. Tasks that need those files during startup can therefore fail before reaching the harness.
I reviewed all 15 changed files and traced the affected preparation, dataset, sandbox and harness contracts. The delegated runtime report wasn't available, so I completed that inspection directly. This was a static review; I didn't execute tests or independently verify the reported rollout artifacts.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| session.workdir = await self._prepare_workdir(sandbox, task, task.workdir) | ||
| # The task's skills are in place before its entrypoint, healthcheck and agent, as a Dockerfile `COPY` | ||
| # would leave them; a Compose group's main was already started by the adapter. | ||
| await self._upload_task_skills(sandbox, task, session.workdir) |
There was a problem hiding this comment.
RISK — Upload skills before Compose starts main's command and healthcheck.
For Compose tasks, this upload happens too late. _seed first awaits _create_compose, whose adapter starts service commands and waits for image healthchecks before returning. For example, a task with skills_dir = "/opt/task-skills", environment/skills/demo/SKILL.md, and a main healthcheck of test -f /opt/task-skills/demo/SKILL.md fails startup when its image doesn't already contain the skills. The upload is never reached, and seed is retried instead of handing a ready task to the harness. This also affects plain tasks made into groups by a job-level Compose overlay.
Please deliver the skills through main's pre-command setup in _start_compose_group, and keep this post-create upload only for non-Compose sandboxes. The invariant is that the declared skills exist before main's entrypoint, command, hooks and image healthcheck. The exact integration needs care around Compose's deferred working-directory creation, so I wouldn't suggest a standalone one-line move.
Preserve: overlay execution and working-directory ownership must still precede delivery; relative skills paths must resolve to the same working directory as today. Keep root extraction, readable modes, ignored-file filtering, no upload without a declaration/source folder, and cleanup on transfer failure.
Proposed checks, not executed: run the minimal healthcheck case through the real Compose adapter and assert successful seed and file availability before command/healthcheck execution; repeat through a job-level overlay. Retain TestTaskSkills assertions for /app/.skills, ignored caches, absent source/declaration and retryable upload failure with sandbox cleanup.
There was a problem hiding this comment.
Confirmed against the real Compose adapter: when main's image healthcheck tests for a skill file, the group fails with Compose service 'main' unhealthy before the upload at L1999 runs (docker_compose.py#L1038-L1067). It fails closed, as a retryable seed failure before any agent exists, and no SkillsBench task hits it: the Compose mains run sleep infinity, and no pinned Dockerfile declares a HEALTHCHECK. So we'd treat it as a note for this PR.
To close it:
- Either put the skills on main's
x-sandbox.uploadsfor groups (docker_compose.py#L975-L985). That stage runs after setup and working-directory creation and before the command. It fits better thansetup_main, which only some tasks register and which runs before the working directory exists (sandboxes.py#L750-L751). - Or scope the docstring (session.py#L299) and the README (README.md#L113-L116) to single sandboxes, and add a Compose group test.
| Scores from the two paths are not comparable: OpenHands loads skills into its `invoke_skill` tool, while the | ||
| environment server gives the model the folder and its shell. | ||
|
|
||
| ## Run on the `harbor` environment server |
There was a problem hiding this comment.
NOTE — Document the source-less preparation workflow in Fern.
The new user workflow is covered by repository READMEs, but not by the published user docs, where the review rubric requires notable features to be documented. The existing Harbor Tasks guide describes committed entries as declaring source and being populated by a pull. Applying that guidance to gym dataset pull skillsbench fails because the resolver rejects entries without a source; these entries need the new preparation command instead.
Could you add a short SkillsBench section to that Fern page, link this README, and show python -m benchmarks.skillsbench.prepare_harbor_env followed by the two evaluation commands? Explain that these source-less entries are prepared locally, not pulled. Include the with-skill harness restriction, task exclusions and warning that scores aren't comparable with the OpenHands path.
Preserve and accept: keep the sourced-entry pull instructions for Terminal-Bench. A static documentation check should confirm that readers can reach both SkillsBench preparation/run commands from the published guide without being directed to gym dataset pull skillsbench, while the existing Terminal-Bench examples remain valid. This is a documentation suggestion, not an executed command result.
There was a problem hiding this comment.
Agreed, with a smaller ask.
- harbor-tasks.mdx: one sentence in harbor-tasks.mdx#L395-L399 saying an entry may declare no
sourcewhen a preparation script writes its tasks, with a link to the SkillsBench README. Todaygym dataset pull skillsbenchtells the user to add a source (entries.py#L315-L319). The exclusions and the comparability warning can stay in the README. - agent-skills.mdx: agent-skills.mdx#L11 says skills are "a run-level knob, not a dataset field". Harbor tasks can now bring their own
skills_dir, which the environment server places, so this page needs a line too.
| - **SkillsBench agent timeouts.** On the OpenHands path the row is final and scored. Many are zeros | ||
| without a verifier result (the sandbox was discarded before verification, or the verifier produced | ||
| nothing). Report the score over the rows the verifier graded beside the headline score. On the `harbor` | ||
| environment server a harness that stops at the task's `[agent].timeout_sec` reports `agent_limit` and the |
There was a problem hiding this comment.
NOTE — Name the timeout signal the supported harness writes.
The new agent_limit description doesn't match mini-SWE, currently the only supported with-skill harness. At its execution deadline, mini-SWE records termination.reason = "timeout", then returns response.metadata.miniswe_termination = "timeout". The environment verifies it, and a valid reward returns without an agent_limit failure kind. An operator filtering for the documented signal would miss those timeout rows.
Suggested replacement for the Harbor-path sentences at lines 378–381:
On the
harborenvironment server, a harness that returns at the task's[agent].timeout_secis verified and scored as usual. The timeout signal is harness-specific: mini-SWE recordsresponse.metadata.miniswe_termination = "timeout", not a genericagent_limitkind. An episode that overruns the task's whole budget fails withharbor:task_deadlineand is retried.
Preserve: execution timeouts remain gradable, setup timeouts remain infrastructure failures, and whole-episode overruns remain retryable. No runtime change is needed.
Static acceptance: check the text against _episode_turn_response and _deadline_failure; don't infer timeout from reward 0 alone. Retain the setup-timeout test's 503 assertion. I haven't executed tests.
There was a problem hiding this comment.
Confirmed: at its deadline mini-SWE returns an ordinary, verified response with metadata.miniswe_termination = "timeout" (app.py#L498-L504, #L589-L596). The kind name is off for other harnesses too: Gym's timeout kind is agent_timeout, and agent_limit is the iteration cap (failure_kinds.py#L88-L90).
yaoyu-33
left a comment
There was a problem hiding this comment.
Thanks for the careful write-up and the real runs. This PR moves SkillsBench onto the harbor environment server. Preparation writes two dataset entries that declare no source (with skills and without), and the server uploads a task's environment/skills/ to its skills_dir at seed.
Is the new _upload_task_skills needed? Yes. Without it, the with-skill condition would quietly run as no-skill on 86 of the 87 tasks, while mini-SWE still told the model where the skills are. Four reasons:
- At the pinned SkillsBench revision, only
radar-vital-signscopies its skills into the image. - The preparation adds no
COPYon purpose. - Overlay mode cannot
COPYwithout an image builder. - No harness uploads a task's own skills; mini-SWE only names the folder in its prompt.
Because it lives in the generic server, though, it now applies to every Harbor task that declares skills_dir. Harbor itself does not do this (skills.mdx#L42-L47). The inline comment on session.py suggests narrowing it.
No blockers. Inline comments:
- Narrowing and hardening the upload.
- Picking a skills location the reference solutions already search.
Replies in the three existing threads:
- The Compose ordering problem is real, but it fails closed and does not affect any SkillsBench task.
- The Fern note holds, with a smaller ask plus one more page.
- The
agent_limitnote holds, with one refinement.
Baselining (not requested for merge): neither entry sets verified, and the smoke runs meet the bar. Before marking them verified, please add:
gym dataset validatecounts for both entries over the 83 loadable tasks.- A reward profile for both conditions: same model, at least 3 repeats.
Checked locally at c2d82038 (macOS):
environment_servers/harbor/tests: the same 21 failures as the merge base. They are local-shell and/private/varpath tests, none caused by this PR.- The SkillsBench preparation tests pass.
- The OpenHands path's conversion is byte-identical to
main's on the test fixture. - A reproduction of the Compose ordering against the real Compose adapter.
Not run: real sandboxes, GPU, mini-SWE's own tests.
| source = task.path / "environment" / "skills" | ||
| if not skills_dir or not source.is_dir(): | ||
| return | ||
| target = posixpath.join(workdir, skills_dir) |
There was a problem hiding this comment.
environment_servers/harbor/session.py:314
The upload is needed for SkillsBench. Because it sits in the generic server, though, it also writes over the skills_dir of any Harbor task whose image already built or trimmed its own skills. Could it make three changes?
- Skip the upload when
skills_diralready exists and is non-empty in the sandbox.radar-vital-signskeeps working. - Make only the uploaded folders readable, not the whole target. Today it runs
chmod -R a+rXover all of it (transfer.py#L211), which covers all of/or the whole working directory for/or.. Refuse those values and~/$. - Write the resolved path into
task.json(L331). Today it carries the raw relative value that the upload resolved against the working directory, and Harbor asks for an absolute path (skills.mdx#L38).
| ENTRY_SUFFIXES = (".yaml",) | ||
| # Where the with-skill condition's skills land at seed: the environment server uploads the task's | ||
| # `environment/skills/` there, and harnesses read the path from the task context. | ||
| SKILLS_DIR = "/root/.agents/skills" |
There was a problem hiding this comment.
benchmarks/skillsbench/prepare_harbor_env.py:40
Could the one skills location be a path the reference solutions already search? All eight oracles that fail validate look in /app/skills. Four of them also look in /skills (for example 3d-scan-calc solve.sh#L14-L18), which is also the path Harbor's hello-skills example uses (Dockerfile#L9). /skills would let validate cover those four without uploading the skills to several places, and it stays out of the working directory, which /app/skills would not for the tasks that work in /app.
thank you for the review. resolving the notes in this PR and will push soon |
|
I'll watch this ready-to-merge PR and report substantive progress. Running on |
Address review on the harbor environment server's task skills upload: - Upload only when skills_dir is missing or empty in the sandbox, so an image that built or trimmed its own skills keeps them. - Open only the uploaded skill folders (and skills_dir itself when the upload created it); refuse a skills_dir of /, the working directory, or one only a shell resolves (~, $) as a task error. - Write the absolute skills_dir to task.json. - Scope the docstring and README to single sandboxes: a Compose group's main has already run its command and image healthcheck before the upload. Add a Compose group test. SkillsBench with-skill tasks now declare skills_dir = "/skills", which four skill-importing reference solutions search; the with-skill oracle wrapper links /app/skills to /skills for the length of solve.sh for the other four. Docs: Fern notes on source-less entries and task-brought skills, and the run-and-babysit-eval timeout note now names mini-SWE's own signal. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42298503083 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42300340478 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42304576478 |
|
The PR is no longer an open ready-to-merge PR targeting main. |
|
The PR is no longer an open ready-to-merge PR targeting main. |
Conflicts: - data/harbor-tasks.mdx: this PR splits it into data/task-folders/*. Main's new text moves to the matching page: the numeric USER note to Task Folder Format [agent], the Compose healthcheck user to Multi-Container Tasks, the job-overlay startup paragraph (#5186) to its overlay section, and the source-less committed entry (SkillsBench) to Author Task Folders. The skills_dir upload (#5699) is added to the [environment] table. - integrate-existing-agents.mdx: keep the Harbor task folders column and take main's intro and BrowseComp row. BrowseComp runs task folders only as root, because it refuses a task user. - environment_servers/harbor/README.md: keep the trimmed README. Its facts are now on the pages above. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
The Agent Skills note said a task folder's skills_dir must already be in its image and named one harness. Since #5699 the harbor server uploads environment/skills/ at seed, and any harness that declares supports_task_tool_context takes such a task. The note now only says run-level skills don't apply to task folders yet and links #5640; the paragraph below is the one description of task skills. Its link moves to the post-split /main/data/task-folders/harbor-tasks path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
… harbor server README (NVIDIA-NeMo#5131) * docs(harbor): document task folders in the job-based nav and trim the harbor server README Task folders get documented where readers already look, instead of in a separate top-level "Harbor Tasks" section: - Prepare Data is retitled Prepare Tasks (URLs unchanged). Its index compares JSONL rows plus a Resources Server with task folders, and it holds the task-folder pages: Author Task Folders (data/harbor-tasks, same URL as before), Task Folder Format, Task Folder Verifiers, Multi-Step Task Folders (data/multi-step-tasks, same URL), Multi-Container Tasks and Task Folder Patterns. - A new Design Agent Interactions section introduces Environment Servers, compares the six on main, and documents the harbor Environment Server. - Reference gains Task Folder Files and Storage, the image builds and environment variables in Configuration, and the missing CLI flags; Troubleshooting gains Task Folders; the OpenSandbox and Docker pages say how they run task folders. - The Terminal-Bench 2.1 tutorial is the one task-folder evaluation tutorial. - Pages that assumed every task is JSONL rows plus a Resources Server now cover both paths: architecture, the environments concept page, Configure Agents, Build Verifiers, Build Environments, the Contribute checklist, the glossary and the home page. AGENTS.md points coding agents to the task-folder path. - environment_servers/harbor/README.md goes from 24,329 words to about 1,700: what the server does, how to run and test it, a code map and a docs map by repo path. The dataset READMEs and the .gitignore comment that cited removed README sections now point to the docs, and the hello_* examples use the agent name the CLI accepts. test_fern_docs_links.py pins the evaluation-tutorial link count, which goes from 15 to 20 for the five new links. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(sandbox): restructure the Docker provider's Interactive Terminals section The section was three paragraphs of about 1,300 words. It now has a short intro and subsections for how a session runs, the pid record, signals and close, errors and limitations, with the tamper-protection internals in a collapsible block. No facts were dropped. The pid read's timeout is stated precisely: PID_READ_TIMEOUT_S, or exec.default_timeout_s when that is shorter. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(harbor): correct task-folder wording against current main A sentence-by-sentence check of the pages this PR adds, against the code on main, found 95 places where the wording was wrong, stale, imprecise, unclear or inconsistent across pages. Each finding was re-verified by a second pass before the fix went in. The outright errors: - Sandboxed harnesses (OpenCode, Hermes) call Gym's Model Server on the host, not the model endpoint, so only the host must reach `<url>`. - The 429 entry quoted an error prepare never prints. - A numeric `[verifier].user` is not resolved to a name. - A later fetch also re-downloads recorded task folders missing from disk. - Compose `cpus` and `mem_limit` are accepted. - `BaseEnvironmentServer` now lives in nemo_gym/server_runtime, and flat simple_agent rows run on `single_agent_turn_legacy`. - The ATIF link pointed at a page main deleted. The hello_* READMEs now all start a model server with `--model-type openai_model` and validate on Docker, as hello_world does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(harbor): address review comments on task folders - Say "Harbor task folders" on Prepare Tasks, since a Gym-specific format is planned. - Explain what `--sandbox opensandbox` loads and the order in which the CLI composes a task-folder run's configuration. - State that the task.toml tables are curated and point to Harbor's reference, and that the [gym] tables are complete. - Fix three settings rows: only the first `gpu_types` entry is sent, the multipliers' reach, and how a `verifier.environment` override merges. - Say that `verify` declares only the arguments it uses. - Link the overview to the top of Author Task Folders, and move "Coming from Harbor" up to just after that page's intro. - Drop a date from the OpenSandbox page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(harbor): fix recall-pass findings, cover task folders in Configure Agents, and group Prepare Tasks Accuracy: a claim-by-claim recall pass over every page this PR touches (2,248 atomic claims, each checked against main's code) found 216 more issues that an independent re-check confirmed: 13 wrong, 36 overstated, 13 inconsistent, 20 unclear and 134 omissions. This commit fixes all of them, each with the fewest words that keep a reader from acting wrongly. hello_mcp_tool now runs with miniswe_sandboxed_agent, the only model harness that takes a task's stdio MCP server. Configure Agents (Hayden's review): the section now covers both task paths. - Choose a Path names `--agent` for Harbor task folders. - The sandboxed-harness table says which harnesses run task folders. - It also explains that task folders use the dataset's `[gym] allowed_agents`, not the Resources Server lists. - Agent Skills and Remote Agent say how they apply to task folders. - The Pi row now lists its MCP grants. Prepare Tasks (Hayden's review): the sidebar now has two groups, JSONL Datasets and Harbor Task Folders, each with a landing page. The JSONL half of the old Prepare Tasks page becomes the JSONL landing page; the chooser stays. Pages that main already publishes get redirects. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * Remove the redundant example-copy step and group local task reuse Signed-off-by: haydeniw <[email protected]> * docs(harbor): clarify task examples and sandbox configuration Restore links to the hello task examples. Move provider setup and configuration precedence to the Harbor server page, leaving a short setup link in the hub workflow. Signed-off-by: haydeniw <[email protected]> * docs(harbor): explain when to use shared and separate verification Signed-off-by: haydeniw <[email protected]> * docs(harbor): address review comments from Hayden, Heather and Matt - Task Folder Verifiers: say which image test.sh runs in (the task's own, or the verifier's in separate mode), that verification needs no Dockerfile of its own, and how the sample is masked when bash, timeout, tar, gzip or find is missing. - Prepare Tasks: - The "Best fit" row now leads the table. - The heading reads "Two kinds of task formats", with every link updated. - A short JSONL paragraph says which Environment Server runs JSONL rows. - JSONL Datasets: an opening line on what JSONL rows fit best; the task-folder guide cards are removed. - Harbor Task Folders: a "Start here" section for Author Task Folders, with the other pages under "Guides and reference". - Architecture, Configure Agents and Design Agent Interactions: apply Heather's wording suggestions. The Agent Server intro keeps "it is orchestration code", which a docs test asserts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(harbor): present task folders without requiring Harbor (NVIDIA-NeMo#5687) * docs(harbor): rename agent interactions section and drop repeated titles - Sidebar label "Design Agent-Environment Interactions", page title "Design How Agents Interact with Environments"; link text updated. - Remove the body H1 that repeats the frontmatter title on the pages this PR adds or changes (Fern already renders the title). - Task-folder entry pages: move the Harbor repo link from the first sentence into "Coming from Harbor", and say there that results are Gym rollouts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(agent-interactions): list only the Environment Servers readers choose The chooser table now lists single_agent_turn, nemo_user_sim and harbor in plain language. legacy_agent and single_agent_turn_legacy get one sentence, since shipped configurations set them, and benchmark-specific servers such as swe_together get one sentence pointing to the benchmark's README, so the table does not grow with every benchmark. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(agent-interactions): point routing and episode limits at the code Routing is done for readers by rollout collection, so the paragraph now points to SharedRolloutCollectionConfig instead of describing the modes. The episode limits table keeps what each key means but drops the per-server defaults, which live in each server's config class. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(agent-interactions): link the full config example instead of a fragment Replace the partial single_agent_turn YAML block, which duplicated the runnable example in Integrate Existing Agents and hard-coded per-server defaults, with a short explanation and a link to that example. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(harbor): keep the only link to Harbor in "Coming from Harbor" Drop the links to Harbor's repository from the About, architecture, concepts, terminology and Harbor Environment Server pages, so readers are not sent off-site from Gym's own explanations. The task folder format page now says its tables list every key Gym acts on, instead of sending authors to Harbor's configuration reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(data): describe JSONL datasets for evaluation and training The JSONL Datasets intro read as if JSONL were only for RL training and ended on a bare "compare" pointer. Say rows serve evaluation or training, drop the legacy_agent aside, and say when task folders fit better instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(data): drop the Prerequisites section from JSONL Datasets "NeMo Gym installed" and the git clone block repeated Installation on a reference page. Move the no-OpenAI-account note into Data Format. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(data): describe both task formats in plain terms in the chooser The "What you write" row named internal fields for JSONL rows but described task folders in everyday terms. Describe both by what they contain and link each to its format details. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(data): open JSONL and task-folder pages with what a task contains Both section pages now start by saying what one task holds, in the same plain terms as the Prepare Tasks chooser, and say when the other format fits better. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): simplify the landing page and sort Harbor compatibility - Task folders landing page: drop the Harbor sentence from the opening and fold "Start here" into the guides table as its first row. - Compatibility with Harbor: group the items under Supported features, What Gym adds, Current limitations and Behavior differences, so a reader can tell which is which. The seed transcript row now says what it means: a multi-step task that seeds the agent with a transcript runs only with the oracle. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): fold Behavior differences into where readers look Clearing /tests before a shared verifier is a protection Gym adds, so it moves under What Gym adds. Overlay RUN timing is already in the Dockerfile modes table, and the prebuilt image ENTRYPOINT note now sits on the docker_image setting, so the separate section goes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): state the Compose limit once Supported features listed Compose "on OpenSandbox", repeating the limitation already under Current limitations. List the feature alone and link its page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(harbor): fill in Check the result for the hello examples Replace the TODO in five hello_* READMEs with the output of gym dataset validate --sandbox docker, run on this branch, and the result files to inspect, matching hello_world. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * fix(harbor): accept the hello examples' line without a final newline The instructions ask for a file containing one line, but the shell tests also required a trailing newline, so an agent that wrote the line exactly scored 0. Accept the line with or without one final newline, as hello_python_verifier's verifier.py already does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * fix(harbor): name the exact greeting in uppercase-greeting's instruction The verifier accepts only HELLO FROM NEMO GYM!, but the instruction asked for any uppercase greeting to NeMo Gym, so a reasonable answer such as HELLO NEMO GYM! scored 0. State the greeting to uppercase. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): make Coming from Harbor a short how-to List what a Harbor user does to run their tasks in NeMo Gym instead of a paragraph of differences. Drop the digest rule, which Task Folder Format already covers, and move the note on editing pulled tasks to Pull from the Harbor hub. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): list task MCP servers as supported, not a limitation Which harness can start task tools is a harness choice that Task Folder Patterns and Integrate Existing Agents already cover. List task MCP servers and skills under Supported features with a link there, and drop the bullet from Current limitations. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): rename What Gym adds to Additional features The list covers a few task-folder features, not what NeMo Gym offers as a whole. Under Compatibility with Harbor, Additional features keeps that scope and matches Supported features and Current limitations. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(harbor): describe the hello examples in NeMo Gym's own terms The hello examples are a new user's first task folders, but they defined datasets and dataset.toml through Harbor and mentioned publishing for Harbor. Describe them in NeMo Gym's terms, keep one compatibility line in hello_world, and say task folder, the term the docs use. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> * docs(task-folders): fix two statements flagged in review Point readers at each Environment Server's shipped configs, whose limits differ from the config class defaults, and state that a single-step task's root trajectory.json is refused for model harnesses too, not only a multi-step task's first-step transcript. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> --------- Signed-off-by: Chris Wing <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * docs(harbor): document the two settings local Docker runs need From Chris Wing's run of the hello_* examples on macOS with Docker Desktop: - When the hostname resolves to loopback or to nothing, the run stops with `Cannot resolve host ... for use_absolute_ip=true`. Add `+default_host=<LAN IP>`. - OpenCode's default `max_output_tokens` (131,072) exceeds caps such as gpt-4.1's 32,768, so every call is rejected and each task scores 0. Set `++opencode_agent.responses_api_agents.opencode_agent.max_output_tokens`. hello_world's Run it section explains both, and the other hello_* READMEs link to it. Troubleshooting covers the resolve error and adds an entry for an all-zero OpenCode run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * Revert "docs(harbor): document the two settings local Docker runs need" This reverts commit b86804a. The local Docker workarounds move to the follow-up code PR that fixes their causes, so that the docs and the fixes land together. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(skills): describe task-folder skills once and match the seed upload The Agent Skills note said a task folder's skills_dir must already be in its image and named one harness. Since NVIDIA-NeMo#5699 the harbor server uploads environment/skills/ at seed, and any harness that declares supports_task_tool_context takes such a task. The note now only says run-level skills don't apply to task folders yet and links NVIDIA-NeMo#5640; the paragraph below is the one description of task skills. Its link moves to the post-split /main/data/task-folders/harbor-tasks path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adil Asif <[email protected]> * docs(skills): state the run-level skills gap without linking the issue Docs that link an open issue go stale when it closes. State that task folders don't yet support run-level skills, and leave tracking to NVIDIA-NeMo#5640. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Chris Wing <[email protected]> --------- Signed-off-by: Adil Asif <[email protected]> Signed-off-by: haydeniw <[email protected]> Signed-off-by: Chris Wing <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: haydeniw <[email protected]> Co-authored-by: Chris Wing <[email protected]>
What and why
SkillsBench gains a second execution path, on Gym's
harborenvironment server, beside the existing one, which runs a whole Harbor job with an OpenHands SDK agent throughharbor_agent_generalbehind thelegacy_agentrelay. On the new path the server owns the task sandbox, the skills and the verifier, and any session harness that accepts a lent task sandbox and declaressupports_task_tool_contextcan run the benchmark. Skills stay plain files at a path the task declares, so how they are loaded and which tools the model uses to read them do not depend on the harness. The new path is the README's default; the OpenHands path stays as it is.harborenvironment server: task skills are uploaded at seed. When a task declares[environment].skills_dirand shipsenvironment/skills/, the server uploads that folder toskills_dironce the working directory exists, as a DockerfileCOPYwould leave it. Harbor expects the image to hold the folder already through a DockerfileCOPY skills ..., but tasks that run a prebuilt image keep their skills only in the build context; runtime-deploying runners such as BenchFlow's take them from there, and this does the same. Only 1 of the 87 official SkillsBench images copies its skills in.skills_dirthe image already filled is left as built, and a task withoutenvironment/skills/uploads nothing.skills_diritself when the upload created it. The folders above keep the image's modes, so a task user other than root needs askills_dirit can reach; every SkillsBench task runs as root. Askills_dirof/or the working directory, or one only a shell resolves (~,$), is refused at seed as a task error. The files the digest already ignores (__pycache__,*.pyc) stay out.skills_diris read from the working directory, and/tmp/.nemo-gym/task.jsonnow carries the absolute path the skills went to, as Harbor asks for.environments/harbor/skillsbenchandenvironments/harbor/skillsbench_no_skillfollow theterminal_bench_4layout: each commits a README and adataset.toml(type = "benchmark",domain = "agent",license = "Apache 2.0", nosource), andgym dataset validateandgym eval runresolve them by name. The task folders are gitignored beside them.benchmarks/skillsbench/prepare_harbor_env.pyreusesprepare.py's pinned checkout, task conversion,task.tomlwriter and image-manifest loader, and writes each condition's tasks into its entry. It converts them beside the entry with a copy of the entry's committed files (README.md,dataset.toml,*.yaml) and swaps the result in by renaming, so an interrupted preparation leaves the previous tasks:skills_dir = "/skills", the location Harbor's own skills example uses. It stays out of every task's working directory, and four of the reference solutions that import a skill's scripts already search it. The other four search only/app/skills, where BenchFlow's oracle mode puts skills, so the with-skill oracle wrapper links/app/skillsto/skillswhilesolve.shruns and removes the link afterwards. The agent and the verifier see one skills folder.skills_dirand carry noenvironment/skills/. The one image that builds skills in runs with an overlayRUNthat clears the agent skill locations; the server applies it at seed, with no build.images.json) by default, andtask.tomlusesnetwork_modeinstead of the deprecatedallow_internet.prepare.pyshares its helpers.fetch_official_tasks,task_definition,task_toml,adapt_taskand the newload_image_manifestare public, so the new script imports no private names.task_tomltakes the image,skills_dirand acurrent_schemaswitch (Harbor's current spellings); the OpenHands path keepsallow_internetandversion, which its pinned Harbor reads, and its output is byte-identical tomain's.harborserver README. Two Fern pages get a line each: Harbor Tasks says an entry may declare nosourcewhen a preparation script writes its tasks, and Agent Skills says a Harbor task can bring its own skills. The SkillsBench notes inrun-and-babysit-evalnow cover both paths; on theharborserver a harness timeout carries no failure kind, and mini-SWE records it asresponse.metadata.miniswe_termination = "timeout".This PR does not change any harness, the Harbor task loader, the other benchmarks,
harbor_agent_general, or the OpenHands path's configs and manifests; itsprepare.pychanges only in shape, and its test only in the one import it renames. DeepSWE's migration is covered separately in #4560. No issue is linked: the work is tracked internally.How to run:
Compatibility
skillsbench/harborandskillsbench/harbor_opensandbox(harbor_agent_general,skillsbench_app.py,openhands_agent.py,environment.py) keep their files, names and behavior.prepare.py's helpers lost their leading underscore and gained the shared pieces; converting all 87 tasks in both conditions, with and without the image manifest, gives byte-identical task folders before and after. Both paths share the pinned checkout indata/source; their outputs sit apart (data/tasksanddata/skillsbench_official.jsonlagainst the two entries), so preparing one does not touch the other.miniswe_sandboxed_agentis the only session harness that declaressupports_task_tool_context; the server refuses askills_dirtask for any other harness, and the no-skill folder runs on any session harness. mini-SWE readsskills_dirfrom/tmp/.nemo-gym/task.jsonand tells the model "Task skills are in /skills. Read the relevant SKILL.md files." OpenHands stays on the legacy relay until its session adapter (feat(openhands): add the OpenHands harness adapter #5543) supports task skills. Claude Code and Codex stage only a run-levelskills.path, not a per-taskskills_dir.invoke_skilltool over a skill catalog; the new path gives it the folder and its shell.harbor_agent_general) touch only files this PR leaves alone, includingskillsbench_app.py, which feat(biomlbench): add BioML-bench v0.1a CPU tasks through Harbor and OpenSandbox #5290 subclasses. Add BenchFlow environment and SkillsBench benchmark #1870 (BenchFlow SkillsBench integration) editsbenchmarks/skillsbench/README.mdtoo.Validation
Unit tests
At
e1ec7b38(the review fixes on top ofc2d82038;mainatf4ae9752c), Linux, the repository venv.pytest environment_servers/harbor/testspytest tests/unit_tests/benchmarkspytest tests/unit_tests/test_public_api_facades.py tests/unit_tests/test_public_api.pypytest tests/unit_tests -k "harbor and (entr or dataset)"(dataset entries and loader)The 3 harbor failures are
TestPromptTemplateintest_compose_overlay.py, which needsjinja2; it is not in the repository venv, and the same 3 fail onmain. The benchmark and entry runs turn off a globalcommit.gpgsign = trueon the test machine, which the unchanged fixtures'git commitotherwise picks up.harbor_agent_generalis not touched and was not re-run (110 passed, 2 skipped on the previous revision).The OpenHands path's conversion was compared with
main'sprepare.pydirectly: all 87 tasks, both conditions, with and without the pinned image, 348 conversions, 0 differing files.New and rewritten tests:
TestTaskSkillsinenvironment_servers/harbor/tests/test_app.py: the skills reachskills_dirbefore the task's entrypoint starts and before the agent seed, as root, without the ignored files; only the uploaded skill folders are opened, plusskills_dirwhen the upload made it; askills_dirthe image already filled is left as built and still reachestask.json;/,.,./, the working directory, a path that resolves to it,~/...and$HOME/...are refused at seed as task errors with nothing uploaded; a relativeskills_diris read from the working directory and written totask.jsonas an absolute path; a task with noskills_diruploads nothing; a failed upload is a retryable seed failure.tests/unit_tests/benchmarks/test_skillsbench_harbor_env_prepare.py(new): prompt and sandbox policy carried over and loadable byHarborTaskConfig; no-skill tasks withoutenvironment/skills/unless their own build still copies it; the with-skill oracle wrapper links/app/skillsforsolve.shonly, and the no-skill one does not; the no-skill overlay for an image that builds skills in, and the Dockerfile append without an image; clone at the pinned revision, both conditions written into their entries with the committed files kept (README.md,dataset.tomland*.yaml, as.gitignorekeeps them) and stale task folders replaced, an entry left aside by a preparation stopped between its two renames put back, re-preparing one condition without touching the other, and leaving the OpenHands path's task tree and index alone; both committed entries resolve by name, with no source and the Apache 2.0 license.test_skillsbench_prepare.pychanges only in the renamed import.Preparing both entries at
e1ec7b38writes 87 task folders into each and leaves the committed files untouched; all 87 with-skill tasks declareskills_dir = "/skills"and carry the oracle link, and no no-skill task carriesenvironment/skills/or the link.Real runs
At
e1ec7b38. Sandbox provider: OpenSandbox. Oracle rows usegym dataset validate; mini-SWE rows use Qwen3.5-122B-A10B through an OpenAI-compatible endpoint, one repeat, the task's own 600 s agent timeout.The eight reference solutions that failed
gym dataset validateon the earlier skills location (with-skill):3d-scan-calc,jax-computing-basics,pddl-airport-planning,pddl-tpp-planning,pptx-reference-formatting,travel-planning,video-silence-removerexceltable-in-ppt: its skill scripts now resolve and 6 of its 8 tests pass, but the workbook's formula cells come backNaNafter the LibreOffice recalculation it runs through thexlsxskillBoth rows ended
completedand were graded by the verifier, with no model-call errors. In the with-skill row the first model request carried "Task skills are in /skills", and the model listed/skillsand read itsSKILL.mdfiles. These rows use a different model from the ones below, so their rewards are not comparable with them.Earlier revisions. Model: a Nemotron checkpoint served by vLLM through Gym's
vllm_modelserver (thinking on, temperature 1.0, top_p 0.95). Sandbox provider: OpenSandbox. Harness:miniswe_sandboxed_agent; oracle rows usegym dataset validate(harbor_oracle_agent). One repeat per task, the task's own 600 s agent timeout.On
51733c41, run by entry name, with skills at/root/.agents/skills:--skip-unloadable --exclude-tasks fix-visual-stability, with the three Compose tasks selected)In the with-skill row the first model request carried "Task skills are in /root/.agents/skills". The same run left out
drone-planning-controlandreact-performance-debugginginskipped.json(see Known limits), so 1 of the 4 selected tasks ran. Theradar-vital-signs0.0 is a graded answer, as on the earlier revision.On an earlier revision of this change, with
mainat4a94129e7(the same server code with the upload after the healthcheck, and the dataset folders underbenchmarks/skillsbench/data/), concurrency 2:Wall time is the row's elapsed time from seed through verification. Every mini-SWE row ended
completed; there were no model-call errors, masked samples or failure rows, and the health check found 0 issues. In both with-skill rows the first model request carried the line "Task skills are in /root/.agents/skills", and the model listed that folder and readSKILL.mdfiles (2 of its bash calls in each row). In the no-skill rows neither the prompt nor any tool call names a skills path. Theradar-vital-signs0.0 is a graded answer, not an error. These runs show that the path works; they are not a score.Reference solutions that read skills. Twelve official oracles mention a skills path.
gym dataset validateon all twelve, with-skill, concurrency 4, with skills at/root/.agents/skills(the eight in the second row are re-run above):dialogue-parser(falls back to its own classes),lab-unit-harmonization(names a skill file it never reads)3d-scan-calc,exceltable-in-ppt,jax-computing-basics,pddl-airport-planning,pddl-tpp-planning,pptx-reference-formatting,travel-planning,video-silence-removerreserves-at-risk-calc(its IMF data download did not return an Excel file; its missingrecalc.pyhas a CSV fallback),citation-check(Semantic Scholar rate limit marked a real citation as fake)The other 75 oracles name no skills path.
Checks
pre-commiton the changed files: passed.Known limits
miniswe_sandboxed_agentcan run the with-skill condition. OpenHands stays on the legacy relay (skillsbench/harbor*) until its session adapter (feat(openhands): add the OpenHands harness adapter #5543) supports task skills by declaringsupports_task_tool_context.exceltable-in-ppt's reference solution scores 0.0 on this path. It finds its skill scripts, but the formula cells it recalculates through LibreOffice come backNaN; the cause was not investigated. The eight skill-importing reference solutions all fail in the no-skill condition, which has no skills.bike-rebalancerequestsno-network, which the Harbor loader refuses, so--skip-unloadableleaves it out. The OpenHands path's OpenSandbox config still runs it with open egress by explicit opt-in.3d-scan-calc,lean4-proof,video-silence-remover) ship skills that name scripts under/root/.claude/skills/, which is not where the new path installs them (/skills); the model has to follow the folder it was given, as any non-Claude harness does in the official runner.drone-planning-control,fix-visual-stabilityandreact-performance-debuggingbuild Compose services from their own Dockerfiles, and the published images cover only each task's main image. Without an image builder the server refuses the first and the third (--skip-unloadablenames them inskipped.json), andfix-visual-stability's build fails the run's preparation, so the documented commands add--exclude-tasks fix-visual-stability. On such a host a run covers 83 of the 87 tasks. Runs with a builder configured were not tried. In a Compose group the skills arrive after main's command and image healthcheck, which no SkillsBench Compose task depends on.verified; validate counts over the 83 loadable tasks and a reward profile for both conditions (one model, at least 3 repeats) are left to baselining.🤖 Generated with Claude Code