Repository navigation
docs(agent): document harness conformance and capture requirements found while onboarding - #4994
Conversation
…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]>
|
/ok to test 011ebce |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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.
Signed-off-by: yaoyu-33 <[email protected]>
…nboarding-gaps Signed-off-by: yaoyu-33 <[email protected]> # Conflicts: # fern/versions/latest/pages/agent-server/add-or-update-a-harness.mdx
|
/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` |
There was a problem hiding this comment.
@giuliolovisotto sounds like something that we need to fix :D
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40944252073 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40953349550 |
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.
main)scripts/harness_conformance/episode.py(run_episoderaises "Conformance probes using agent sessions require Linux");nemo_gym/agent_utils/process_supervisor.py("Sandbox process supervision requires Linux")x-session-idcan assign them to an invocation_CLIENT_SESSION_HEADERinnemo_gym/base_responses_api_model.py;join_model_call_observations()and themodel_call_ownership_unavailablegap innemo_gym/rollout_observability.py;ownership.call_ownerandownership.gapinnemo_gym/harness_capabilities/checker.py; Pi's_build_models_config()inresponses_api_agents/pi_agent/app.pytools.witness_statusexpects a nonzero shell exit to be afailedtool callnemo_gym/harness_capabilities/behavior.pyepisode._config(("opencode", "pi")gettimeout);ci.install_runtime(("hermes", "stirrup")skip the npm install)HOMEUV_CACHE_DIRunder its runtime directory inresponses_api_agents/stirrup_agent/sandbox.py; the existing HOME/XDG ruleThe 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
mainbehavior.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.fern docs dev(fern-api 5.171.4) from a scratch copy offern/that has a stub library-reference folder. Library generation could not run locally because the npm registry listedfern-api@latestas 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.mainsource 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