Skip to content

docs(harbor): document task folders in the job-based nav and trim the harbor server README - #5131

Merged
adil-a merged 16 commits into
mainfrom
adasif/harbor-docs
Nov 10, 2026
Merged

adil-a merged 16 commits into
mainfrom
adasif/harbor-docs

Conversation

@adil-a

@adil-a adil-a commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents Harbor task folders inside the existing, job-based docs navigation instead of a separate "Harbor Tasks"
section, following the review on this PR and the agreed plan (restructure map).

  • Prepare Data is retitled Prepare Tasks (folder data/, URLs unchanged). It now offers two kinds of tasks, JSONL rows
    with a Resources Server or task folders, and holds the task-folder pages: authoring, format, verifier contract, Compose,
    patterns and multi-step.
  • New section: Design Agent Interactions (agent-interactions/). It introduces Environment Servers, compares the six on
    main, and documents the harbor Environment Server: what it does, when to use it, how to configure it.
  • No new top-level "Harbor Tasks" section. Its nine pages were folded into the sections above, Reference and
    Troubleshooting. The two published URLs, /main/data/harbor-tasks and /main/data/multi-step-tasks, keep their paths,
    so no redirects are needed.
  • The server README environment_servers/harbor/README.md goes from 24,329 words to about 1,700. It covers what the
    server does, how to run and test it, a code map, and a map of the docs by repo path.
  • Existing pages that assumed a Resources Server now mention both paths: architecture, the environments concept page,
    the Configure Agents index, Build Verifiers, the Build Environments index, the Contribute checklist, the glossary and
    the home page. AGENTS.md points coding agents to the task-folder path.

The diff is net negative: 43 files, +2,399 −2,472 lines against main.

Where each page landed

Page in the first version of this PR Now
harbor-tasks/index Split: "Two kinds of tasks" on the Prepare Tasks index, "Two ways to define a task" in About › Environments, and the Design Agent Interactions index
harbor-tasks/author-your-own-tasks Prepare Tasks › Author Task Folders (data/harbor-tasks, same URL as the published page) for the tutorial; Task Folder Patterns for parameterized tasks, MCP tools and shared verifier code
harbor-tasks/task-format Prepare Tasks › Task Folder Format (the spec), Task Folder Verifiers (the tests/ contract) and Multi-Container Tasks (Compose)
harbor-tasks/multi-step-tasks Prepare Tasks › Multi-Step Task Folders (data/multi-step-tasks, same URL as the published page)
harbor-tasks/configuration Design Agent Interactions › Harbor Environment Server (server block), Reference › Configuration (image builds, environment variables), the OpenSandbox and Docker provider pages
harbor-tasks/files-and-storage Reference › Task Folder Files and Storage
harbor-tasks/cli-reference Reference › CLI Commands, which already documented these commands; only the gaps were added
harbor-tasks/troubleshooting Troubleshooting › Task Folders
harbor-tasks/run-a-hub-dataset (SWE-bench Pro from the hub) Dropped. Terminal-Bench 2.1 on the Harbor Path is the one task-folder evaluation tutorial and took its generic steps. The Hermes SWE-bench Pro tutorial is unchanged.

Size

The ten new or rewritten pages run 1,100 to 1,850 words, about 15,100 in total, against a docs average of 1,350 per page. The task-folder material
went from about 59,800 words (this PR's first version, the two published pages and the README) to about 17,000. Most of
the cut was the same material written two or three times; exhaustive edge-case lists became short tables.

Not in this PR

Test plan

  • tests/unit_tests/test_fern_docs_links.py: passes. The pinned count of evaluation-tutorial links goes from 15 to 20 for
    the five new links.
  • tests/unit_tests/test_opensandbox_documented_config.py: passes.
  • A link and anchor check over every page under fern/versions/latest/pages: no broken internal links or anchors.
  • pre-commit run on all changed files: passes.
  • Review: every page was checked against the code by independent reviewers, and each finding was re-checked by an
    adversarial verifier. 37 findings survived (12 major, 25 minor) and are fixed; a second reviewer checked the fixes, and
    its 8 corrections are applied.
  • First run from a clean state, following the pages literally: gym dataset init, gym dataset validate up to the
    sandbox, gym eval run (accepted, up to the model endpoint), gym dataset publish --harbor, gym dataset pull for
    terminal_bench_2_1 and [email protected], and the hello_parameterized_tasks render behave as the pages say.
    Every place where the text and the CLI disagreed is fixed. No sandbox could be created on the test node (no Docker,
    no OpenSandbox key), so no oracle or agent episode ran to completion.
  • fern check is not runnable on the cluster nodes; Fern docs CI on this PR covers it.

Follow-up code fixes

#5798 (stacked on this PR) fixes the local Docker problems found while running the hello_* examples, and carries their docs:

  • Laptops whose hostname doesn't resolve to a reachable address now fall back to the default route's address, so +default_host is no longer needed.
  • --max-output-tokens now sets the harness's own output limit on task folders.
  • A model request the endpoint rejects (for example max_tokens above the model's cap) is reported as a failure instead of a 0 score.
  • mini-SWE setup no longer times out at once on macOS.

🤖 Generated with Claude Code

@adil-a

adil-a commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 8c07f1a

@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 27, 2026 14:50
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:data Datasets, preparation, task formats, and materialization docs Documentation-only updates or documentation debt labels Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SHIP WITH CARE

Found five RISK findings and one NOTE: an unsupported Harbor preparation command, shell examples that violate an existing docs check, and inaccurate artifact, export, retry, and entry-fetch contracts.

Reviewed all 16 changed files and traced the affected CLI, configuration, verifier, storage, and test paths. Navigation mounting and the relocated-page redirects match the inspected Fern configuration. No tests, builds, or Fern checks were executed; external hub package contents were not independently verified.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 27, 2026
@adil-a

adil-a commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a28fac4

@adil-a

adil-a commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a7b68f2

@cwing-nvidia cwing-nvidia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for putting this together. Before a detailed line-by-line review, I think the Harbor environment server and task docs would benefit from another pass at a higher level, so I'm sharing guidance here rather than a list of fixes.

Organizing the docs around reader jobs

The docs nav was reorganized around reader jobs in #1771, #1774 and #1777 (Prepare Data, Build Environments, Build Verifiers, Evaluate, Reference, Troubleshooting). A top-level "Harbor Tasks" section organizes by feature instead, which makes it harder for readers to find these pages from the job they came with. It might help to consider the perspective of each of these readers, starting from the docs home page rather than from the Harbor Tasks section:

  • Someone coming from Harbor who wants to run their tasks in Gym.
  • Someone new to Gym who wants to build an environment and has never heard of Harbor.
  • An agent working in the repo, starting from AGENTS.md, asked to write a task.

For each, can they answer these questions in the section where they would look for them?

  1. What is an environment in Gym, and what runs where?
  2. Which path fits my case: task folders on the harbor environment server, a resources server, or my own environment server? Can I train on it, or only evaluate?
  3. How do I author a task end to end on that path?
  4. How do I check that it works, debug it when it doesn't, and run an agent on it?
  5. How do I bring existing tasks (Harbor hub, an existing benchmark) in, and publish mine back out?

Each reader also has questions of their own, for example:

  • Coming from Harbor: Will my tasks run unchanged, and what is unsupported or behaves differently? How do Harbor's commands, agents and sandbox providers map to Gym's? Will rewards match what Harbor gives? What does Gym add?
  • New to Gym: questions 1 and 2 above should be the easiest to find.
  • An agent: Where do the files go in the repo, and what are the naming conventions? Where is the canonical spec, and which example should I copy? Which command's exit code proves the task is correct? What must pass before a PR (pre-commit, tests, catalog entries)?

One timing note: /main/data/harbor-tasks and /main/data/multi-step-tasks are already published, and this PR moves them, so if the pages are reorganized again later, those links would break a second time.

Things I noticed

Some examples from my read. I expect a fresh pass from these readers' point of view will turn up more:

  • Places where the new pages and existing pages disagree:
    • /main/data says datasets are JSONL rows, routed through an agent server to a resources server. The Harbor pages say a folder of task folders is the dataset, run by an environment server with no resources server. A reader who reads both won't know how they relate.
    • The Prepare Data index doesn't link to the Harbor pages yet.
    • about/architecture.mdx says an Environment Server does no scoring, while the harbor environment server runs the verifier.
    • Build Verifiers opens with "In NeMo Gym you implement it in a resources server", and its pages don't mention tests/test.sh, tests/verifier.py or reward.json.
  • Pages that overlap with existing ones:
    • The section has its own CLI reference, configuration, troubleshooting and multi-step pages, next to existing pages for the same jobs.
    • There are now two "Evaluate SWE-bench Pro with Hermes" tutorials on two paths, and a reader won't know which one to follow.
  • Existing sections that assume a resources server:
    • Prepare Data, Build Environments and Build Verifiers all describe making a task as writing JSONL rows and a resources server. With the harbor environment server, a task can be a task folder with no resources server at all.
    • It would help for these sections to show both ways and help the reader choose: when is a task folder the better fit, and when is a resources server?
    • What's the plan for updating these sections? Since this work introduces the task-folder path, it would help to know whether that happens in this PR or a follow-up, and if a follow-up, what readers see in the meantime.
    • While updating the Build Verifiers intro, two older lines there could be fixed at the same time, since they already disagree with about/architecture.mdx: the index says the agent calls /seed_session and /verify, and llm-as-judge.mdx calls a resources server "the environment server".
  • First run from a clean checkout:
    • It would be worth following the pages literally from a fresh clone and fixing anything that trips you up.
  • Naming consistency across these pages, the rest of the docs, environment_servers/harbor/README.md and AGENTS.md. For example:
    • Harbor is the external framework, and Gym has more than one integration named after it: the harbor_agent and harbor_agent_general agent servers, which run Harbor's own runtime inside Gym, and the harbor environment server, which runs Harbor-format tasks without it. #4826 marks the agent servers as deprecated and updates about/ecosystem.mdx, which is great. A few places would still send readers to harbor_agent: the root README.md links "Harbor" to it, and environment-tutorials/resources-server-apis.mdx and infrastructure/sandbox/daytona-access.mdx mention it.
    • The rest of the docs capitalize Environment Server; these pages use lowercase.

Existing harbor_agent users

This is a fourth reader: someone already running Harbor tasks in Gym through harbor_agent, now that #4826 deprecates it. Their questions are different from someone coming from Harbor: do I have to move, by when, and how?

  • The docs don't answer these questions yet. #4826 adds a deprecation banner and points to the harbor environment server, but nothing explains how to move an existing harbor_agent setup over.
  • This reader only exists until harbor_agent is removed, and #4826 doesn't set a removal date.
  • Seven benchmarks on main still run on harbor_agent (biomnibench_da, biomysterybench, bixbench_hypothesis, genebench_pro, labbench2_pdf, legal_agent_bench, openthoughts_tblite), plus the legal_agent_bench resources server config. A reader is told to use the environment server, while Gym's own benchmarks use the deprecated path, and the docs don't say why.

Is the plan to move those benchmarks to the harbor environment server before harbor_agent is removed?

The server README

I'd suggest including environment_servers/harbor/README.md in this pass too.

Where it stands today:

  • It is 1,565 lines and about 24,000 words at this PR's head (1,086 lines on main). For comparison, the other environment server READMEs are 120 to 1,000 words, and the longest resources server README is about 5,500.
  • It covers much of the same ground as these pages (task format, Dockerfile and Compose modes, multi-step, configuration, dataset authoring), so the two will be hard to keep in sync.
  • It has few links to the docs, and one of them points at the data/ page this PR removes.

Why it matters, especially for agents:

  • Coding agents working in the repo read the README next to the code first, and only reach the docs pages if something points them there. So for agents, this README is effectively the main documentation of the harbor environment server today.
  • AGENTS.md points agents to environment-tutorials/ for building environments, which covers resources servers only, and doesn't mention task folders or environment_servers/. An agent asked to write a task will either find this README or not learn that the task-folder path exists.

Examples of what could help:

  • A short README that covers what belongs with the server code: what the server does, how it fits with the other components, and how to run and test it.
  • Links to the docs pages for everything else, written as repo paths (fern/versions/latest/pages/...) so an agent can open them without web access.
  • Anything human readers need that only lives in the README today moves into the docs.
  • A short pointer in AGENTS.md to task folders and the harbor environment server, so agents can find the path from the repo root.

Helpful context for the next review

It would help reviewers if the PR description covered:

  • Where each page landed and why.
  • How the overlaps with existing pages were resolved, or which follow-up PR will handle them.
  • The results of a first-run test from a clean checkout.

Happy to look at an updated nav sketch before you fully rewrite content if that's easier.

@adil-a
adil-a force-pushed the adasif/harbor-m34-turn-sessions branch from cb737a3 to 57e3b7d Compare October 28, 2026 01:04
adil-a added a commit that referenced this pull request Nov 7, 2026
…off moving docs pages

Review follow-up on the deprecation notices:

- about/ecosystem.mdx and the root README link "Harbor" to
  environment_servers/harbor, without a deprecation note on the ecosystem
  page; the deprecated agents' own READMEs carry it.
- The startup warnings and README banners of harbor_agent and
  harbor_agent_general point at the harbor environment server's README
  instead of the data/harbor-tasks docs page, which #5131 moves. The notices
  no longer depend on where the Harbor docs pages land.
- The deprecation tests assert the repo path and that no docs URL is named.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Adil Asif <[email protected]>
cwing-nvidia and others added 3 commits November 7, 2026 02:08
* 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]>
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]>
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]>
@adil-a

adil-a commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b86804a

@adil-a

adil-a commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for running all of these end to end, this is really useful. Updated in b86804a:

  1. Local Docker reachability. For harnesses that call the model from inside the sandbox, Gym resolves gethostbyname(gethostname()). It refuses both a failed lookup (common for macOS *.local names) and a loopback result, and the Debian/Ubuntu 127.0.1.1 default fails the same way. The hello_world README's Run it section and the troubleshooting page now document +default_host=<LAN IP> ($(ipconfig getifaddr en0) on macOS), and the other hello_* READMEs link there. A code fix, either falling back to the default-route interface or advertising host.docker.internal to Docker sandboxes, needs its own PR. I'll open an issue.
  2. OpenCode output limit. The 131072 default is OpenCodeAgentConfig.max_output_tokens. The generated task-folder agent block inherits from opencode_agent, so ++opencode_agent.responses_api_agents.opencode_agent.max_output_tokens=16384 should reach it without the harbor_<taskset>_agent name. I traced this through the config merge but haven't run it, so could you confirm it works on your setup? It's documented next to the default_host note, and there's a new troubleshooting entry for an all-zero OpenCode run. The reward-0 behavior comes from the agent outcome policy sending a failed model call to VERIFY. Surfacing the model error as a failure_kind on graded results, and revisiting the default, are code changes for a follow-up, so I'll file those too.
  3. hello_mcp_tool mini-SWE setup. The missing venv/bin/python means the install never finished, so something cut setup short well under its 360 s budget. The likely cause, unconfirmed, is a clock mismatch. The agent builds the asyncio.timeout_at deadline from time.monotonic(), while uvloop's loop.time() can differ on macOS, so the deadline may already be past. Could you run python -c "import time,uvloop; l=uvloop.new_event_loop(); print(l.time()-time.monotonic())" in the Gym venv on your Mac? A large number confirms it. The hidden error is a separate bug: setup doesn't log a TimeoutError with its step, and cleanup's error replaces it. Both are agent fixes I'll file. The task folder itself looks fine.
  4. Compose on Docker. The docs are right. A Compose group needs a provider that supports networking between sandboxes, and only OpenSandbox implements it (with networking.enabled: true). The Docker provider is refused at group start.

I also merged the latest main, which brought the #5186 and SkillsBench docs into the split pages. The branch has no conflicts.

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]>
@adil-a

adil-a commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 38bf28a

@adil-a

adil-a commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up to the hello_* run notes above: the code fixes are in #5798, stacked on this PR. It covers the laptop model-server address, --max-output-tokens on task folders, reporting a rejected model request as a failure rather than a 0, and the mini-SWE setup timeout on macOS.


NeMo Gym treats skills as an **environment-level variable you can sweep**, the same way it treats prompts. You point a run at a directory of skills, the agent loads them with its own native mechanism, and each rollout result is tagged so you can compare variants. NeMo Gym does not interpret or activate skills — it sets up the skill environment and measures the outcome.

<Note>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few concerns with this note:

  • “A skills directory that is already in its image” no longer matches how skills_dir works since feat(skillsbench): run SkillsBench on the harbor environment server #5699: the server now uploads environment/skills/ at seed when the image doesn’t have it. The skills_dir row in Task Folder Format reflects that, so the two pages currently disagree.
  • The paragraph a few lines below (“The exception is a Harbor task that brings its own skills...”) covers task skills too, so readers get two descriptions of the same behavior on one page.
  • “Only miniswe_sandboxed_agent takes such a task” ties this page to the current harness list, which is likely to change.

Separately, the note presents “run-level skills do not apply to task folders” as how things work, but it reads like a gap rather than a design choice. Combining run-level skills with a task’s own skills seems useful, for example to compare skill variants on a task-folder benchmark. Is there an issue tracking support for run-level skills on task folders?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Fixed in 76346dd. The note now only says run-level skills do not apply to task folders yet, and links #5640, which tracks support. Task skills are described once, in the paragraph below, which now matches #5699 (upload at seed unless the image already has them). It names supports_task_tool_context instead of a harness. Agreed it is a gap, not a design choice.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I pushed an updated commit, I think it's better not to link the issue is that can grow stale. I'll approve the PR

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small one: the paragraph starting "The exception is a Harbor task that brings its own skills" (line 19) still links to /main/data/harbor-tasks, the path from before the split. It redirects, so nothing breaks, but it looks like the only link left on a pre-split path; the current page is /main/data/task-folders/harbor-tasks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 76346dd, it now points to /main/data/task-folders/harbor-tasks.

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]>
@adil-a

adil-a commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 76346dd

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 #5640.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Chris Wing <[email protected]>
@adil-a

adil-a commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6d9ff5c

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42751897760

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42755330492

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42755554890

This branch was previously deployed

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

Labels

area:data Datasets, preparation, task formats, and materialization docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer QA_verified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants