Skip to content

docs(agent): document harness conformance and capture requirements found while onboarding - #4994

Merged
yaoyu-33 merged 3 commits into
mainfrom
docs/harness-onboarding-gaps
Oct 29, 2026
Merged

yaoyu-33 merged 3 commits into
mainfrom
docs/harness-onboarding-gaps

Conversation

@yaoyu-33

Copy link
Copy Markdown
Contributor

What changed and why

Onboarding a new harness (GitHub Copilot CLI) with the Add or Update a Harness guide hit five requirements that the guide and the conformance runner README did not state. The adapter passed the P0 harness conformance suite only after fixes for two of them. This PR documents all five. It changes only docs.

Gap Where it is documented Source it is based on (main)
Session-based conformance probes refuse hosts other than Linux Guide → Validate each supported pairing → Observability: run on Linux or in a Linux container scripts/harness_conformance/episode.py (run_episode raises "Conformance probes using agent sessions require Linux"); nemo_gym/agent_utils/process_supervisor.py ("Sandbox process supervision requires Linux")
Failed model attempts (HTTP 4xx/5xx) have no response ID, so only x-session-id can assign them to an invocation Guide → Route every model call through the Model Server _CLIENT_SESSION_HEADER in nemo_gym/base_responses_api_model.py; join_model_call_observations() and the model_call_ownership_unavailable gap in nemo_gym/rollout_observability.py; ownership.call_owner and ownership.gap in nemo_gym/harness_capabilities/checker.py; Pi's _build_models_config() in responses_api_agents/pi_agent/app.py
tools.witness_status expects a nonzero shell exit to be a failed tool call Guide → Convert outputs without silent loss nemo_gym/harness_capabilities/behavior.py
Registering a harness for conformance also means editing two hard-coded tuples Runner README, registration paragraph; it only mentions that a data-driven registry would remove the edits, without refactoring episode._config (("opencode", "pi") get timeout); ci.install_runtime (("hermes", "stirrup") skip the npm install)
Harness caches can land in the task's HOME Guide → borrowed-sandbox rules, runtime preparation, and Task environment validation Stirrup's UV_CACHE_DIR under its runtime directory in responses_api_agents/stirrup_agent/sandbox.py; the existing HOME/XDG rule

The Copilot CLI 1.0.103 behavior cited as an example (tool calls that exit nonzero reported as successful, and about 236 MB unpacked into $HOME/.cache) was observed while building that adapter. The adapter is not part of this PR.

Issue: none. This is a focused docs follow-up to a harness onboarding test run, and it documents existing main behavior.

Validation

  • cd fern && npm run check: 0 errors. The one warning is the redirects check, which was skipped because the CLI was not logged in. No slugs changed.
  • Rendered the edited page with fern docs dev (fern-api 5.171.4) from a scratch copy of fern/ that has a stub library-reference folder. Library generation could not run locally because the npm registry listed fern-api@latest as 5.171.5 but did not serve that version. The page returned 200. Every new paragraph rendered with its code spans, and the new links resolve (#harness-termination, /main/observability/harness-conformance, and the GitHub source links).
  • pre-commit run --files fern/versions/latest/pages/agent-server/add-or-update-a-harness.mdx scripts/harness_conformance/README.md: passed.
  • Checked every new claim against the main source files listed above.

Rollout evidence

N/A: this is a docs-only change with no runtime behavior to exercise.

Compatibility

None. The changes are documentation only.

🤖 Generated with Claude Code

…und while onboarding

Onboarding a new harness surfaced five requirements that the harness guide
and the conformance runner README did not state:

- session-based conformance probes run only on Linux
- every model request needs x-session-id so failed attempts get an owner
- a shell command that exits nonzero must be reported as a failed tool call
- conformance registration also edits hard-coded tuples in episode.py and ci.py
- harness caches must stay out of the task's HOME

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 23, 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.

@yaoyu-33 yaoyu-33 added docs Documentation-only updates or documentation debt area:agent Agent harnesses and Responses API agent behavior labels Oct 23, 2026
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 011ebce

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

@yaoyu-33
yaoyu-33 marked this pull request as ready for review October 23, 2026 20:56
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 23, 2026

@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

LGTM — no reliability concerns. The documentation additions match the inspected conformance runner, model-call capture and ownership logic, tool-status checks, and Stirrup installer behavior.

Reviewed both changed documents and relevant implementation/tests. Static review only; no builds or tests were executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

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

…nboarding-gaps

Signed-off-by: yaoyu-33 <[email protected]>

# Conflicts:
#	fern/versions/latest/pages/agent-server/add-or-update-a-harness.mdx
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 26600cf

tool's schema consumable by `provider.Probe._finish`. Keep expectations and witnesses out
of the task input and preserve the normal Gym collection path.

Registration also means adding the harness name to hard-coded tuples. `episode._config`

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.

@giuliolovisotto sounds like something that we need to fix :D

@yaoyu-33
yaoyu-33 added this pull request to the merge queue Oct 29, 2026
@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/40944252073

@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/40953349550

Merged via the queue into main with commit df148b9 Oct 29, 2026
44 of 47 checks passed
@yaoyu-33
yaoyu-33 deleted the docs/harness-onboarding-gaps branch October 29, 2026 21:32

This branch was previously deployed

1 inactive deployment
public — 26600cf2 Deployed Oct 29, 2026 by copy-pr-bot[bot] via release / finalize / notify #8225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants