Skip to content

feat(agents): add swappable benchmark profiles for the session harnesses - #5550

Merged
gwarmstrong merged 4 commits into
NVIDIA-NeMo:mainfrom
gwarmstrong:georgea/session-harness-benchmark-profiles
Nov 5, 2026
Merged

gwarmstrong merged 4 commits into
NVIDIA-NeMo:mainfrom
gwarmstrong:georgea/session-harness-benchmark-profiles

Conversation

@gwarmstrong

@gwarmstrong gwarmstrong commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds configs/profiles/benchmark.yaml to pi_agent, opencode_agent, codex_agent, openclaw_agent, hermes_agent and claude_code_agent, with a README paragraph for each. Each profile:

  • leaves resources_server.name unset (???), so Gym composes the agent onto the benchmark's own agent instance, with that benchmark's Resources Server and datasets;
  • sets sandbox_provider: sandbox and use_absolute_ip: true, so each session creates its own sandbox, which reaches the Model Server by address;
  • declares sandbox_config with a mandatory image: ??? and ready_timeout_s: 1200, and, except Hermes, which derives its TTL from its own timeouts, ttl_s: 14400 (OpenSandbox otherwise ends the sandbox after 10 minutes);
  • keeps the head server, whose config endpoint is unauthenticated, on 127.0.0.1;
  • for Claude Code, also points the CLI at the policy_model Gym Model Server, which serves the Anthropic Messages API, with an empty anthropic_api_key, and pins claude_code_version: "2.1.108", which sandbox sessions require.

The image and prompt stay with the caller. Each README also gives the Environment Server setting the pairing needs: HLE's Environment Server, like those of HLE Diamond, GPQA and APEX Shortlist, sends a required direct_http grant that no session harness can use, so the caller sets resources_tool_transports: [] under the benchmark's Environment Server name.

The profiles live in configs/profiles/, not at the top of configs/. Agent discovery treats every top-level config there as a standalone agent variant, and a profile with an unset Resources Server cannot run on its own. opencode_agent's permission profiles use a subdirectory for the same reason, and its test_permission_profile_is_not_a_standalone_agent_variant keeps passing.

Why. The deprecated pi_sandboxed_agent and opencode_sandboxed_agent each ship a configs/benchmark.yaml profile, and callers that compose a benchmark themselves load it by path: for example, an evaluation framework running HLE, whose Resources Server supplies no task sandbox. #5222 names the session harnesses as their replacements, but those have no profile. A caller moving off the deprecated agents would therefore have to write the ??? binding into its own config, and some config systems reject a mandatory-missing value. These profiles give each session harness the same entry point.

Unlike the deprecated agents' profiles, these do not set network_access: model_only, because the session harnesses do not have that setting yet; follow-up PRs add it. Until then, a sandbox created through these profiles uses the provider's default network.

Part of #5552. The deprecation in #5222 is the motivation.

Validation

  • Offline composition with HLE for each profile on this branch: gym env resolve --config benchmarks/hle/config.yaml --config responses_api_agents/<agent>/configs/profiles/benchmark.yaml --config responses_api_models/vllm_model/configs/vllm_model.yaml ++policy_base_url=<url> ++policy_api_key=<key> ++policy_model_name=<name> +default_host=<address> with placeholder OpenSandbox credentials. All six resolve with no ??? left. Each composes hle_equivalence_llm_judge_<agent>, bound to hle_equivalence_llm_judge_resources_server with the hle dataset, sandbox_provider: sandbox and model_server: policy_model.
  • gym env test +entrypoint=responses_api_agents/<agent> +should_validate_data=true: opencode 641 passed, codex 474, openclaw 497, hermes 349, claude_code 171, pi 339 passed and 1 failed. The Pi failure, test_gym_extensions[test_gym_mcp.mjs], needs Node 22; the local host has Node 19, and the test fails the same way without this change.
  • tests/unit_tests/environment/test_session_harness_benchmark_profiles.py (new, 18 passed): composes each profile onto HLE and checks the composed limits, the loopback head server, the resolve-time error for a missing image, and that discovery lists only each agent's own config.
  • responses_api_agents/<agent>/tests/test_benchmark_profile.py (new, 2 passed in each of the six adapters' environments, Hermes included): sends the seed request HLE's Environment Server builds (through its own _seed_agent) to the composed agent. With the README's override the seed carries no grants and the agent reaches sandbox creation; without it the seed carries the required direct_http grant and the agent returns a 422. The shared setup is in tests/session_harness_profiles.py. The seed check lives in the adapter suites so that core coverage does not measure the six adapters' modules. Removing the override, the Claude Code version pin, or the head server and TTL settings each fails these tests. The offline gym env resolve check above never seeded an agent, which is why it missed the 422.
  • tests/unit_tests/config: 254 passed.
  • pre-commit run --all-files: clean.

Rollouts

The same profile contents, at the earlier path configs/benchmark.yaml, drove internal HLE runs (Nemotron 3.5 Super on vLLM, 5 text tasks per harness, OpenSandbox), on a Gym fork that also carries the egress follow-ups and includes #4953. All six harnesses had 5/5 rollouts complete, graded and healthy: Pi, OpenCode, Codex, OpenClaw, Hermes, and Claude Code (with PR A). Those recipes set resources_tool_transports: [], the sandbox TTL and the Claude Code version themselves, which is why they did not hit the gaps the review found. On this head (c394bcb), one 5-task HLE smoke per harness, composed from these profiles with the README's override: all six completed 5/5 with every seed accepted, no 422, and no cleanup or sandbox errors. Pi, OpenCode, Codex, OpenClaw and Hermes were 5/5 healthy; Claude Code was 0/5 healthy because this head lacks PR A (#5547). Details: #5550 (comment)

Compatibility and benchmark impact

Additive: new profile files, README text and a test. Existing agent configs and the deprecated agents' profiles are unchanged. Callers of these profiles get head_server.host: 127.0.0.1; a deployment that serves the head server remotely overrides it.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes.
  • Documentation added or updated, or N/A with justification. Each adapter README describes its profile and the HLE pairing override.
  • Pre-commit checks pass locally (pre-commit run --all-files).
  • New source files include the required Apache-2.0 SPDX header. The six new profile files and the new test files carry the SPDX header.
  • All commits have DCO sign-off (git commit -s).

The deprecated pi_sandboxed_agent and opencode_sandboxed_agent each ship a
configs/benchmark.yaml profile. A caller that composes a benchmark itself,
such as an evaluation framework that runs HLE, loads that profile instead
of naming a Resources server. The session harnesses that replace them had
no such profile, so moving those callers off the deprecated agents meant
copying the `resources_server.name: ???` binding into the caller, where
some config systems reject a mandatory-missing value.

Add the same profile to pi_agent, opencode_agent, codex_agent,
openclaw_agent, hermes_agent and claude_code_agent, at
configs/profiles/benchmark.yaml. Each leaves the Resources server unset, so
Gym composes the agent onto the benchmark's own agent instance, and each
session creates its own sandbox through the `sandbox` provider at an
absolute address. The Claude Code profile also points the CLI at the
`policy_model` Gym model server. Image, limits and prompts stay with the
caller. Agent discovery reads only the top level of configs/, so, like
opencode_agent's permission profiles, these are not listed as standalone
agent variants.

Signed-off-by: gwarmstrong <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 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 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/ok to test 9969d99

@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.

HOLD — one BLOCKER and two RISK findings.

The profiles expose the unauthenticated configuration registry on the sandbox-reachable address. The advertised HLE pairing also retains an incompatible required tool grant, and the Claude Code profile lacks the runtime version required for sandbox sessions.

I reviewed all 12 changed files and traced composition, discovery, Environment Server grants, model routing, and owned/borrowed sandbox setup and cleanup. This was a static review; I didn't execute tests or rollouts.

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.

# The unset resources_server name makes Gym compose this agent onto the benchmark's own agent
# instance; each session then creates its own sandbox through the `sandbox` provider, which must
# reach the model server by address. Supply the image and limits in sandbox_config.
use_absolute_ip: true

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.

BLOCKER — Keep the configuration registry off the sandbox-reachable interface.

All six profiles enable unscoped use_absolute_ip. With no caller override for head_server.host, the parser assigns the reachable address to every server, including the head server. That server binds to this address and exposes an unauthenticated /global_config_dict_yaml endpoint that returns the merged configuration without redaction.

For a run supplying ++policy_api_key=<real-key>, any client that can reach the host's default port 11000 can retrieve that credential. On an unrestricted sandbox-to-host network, model-issued shell commands can fetch http://<model-host>:11000/global_config_dict_yaml using the same host address as inference. This crosses the intended boundary between task execution and host-held inference credentials; it also exposes other scalar secrets in the run configuration.

Could you pin the head server to loopback in each of the six profiles? Replace this line with:

Suggested change
use_absolute_ip: true
use_absolute_ip: true
head_server:
host: 127.0.0.1

This keeps model and Resources addresses reachable, including remote MCP endpoints, while local clients retain registry access. It also works when the caller supplies default_host; restricting absolute_ip_server_types alone doesn't protect that case. Deliberate remote-registry deployments can still override the head host explicitly.

Proposed acceptance checks, not executed: parse each profile with mocked hostname/port probes and hostname resolution to 192.0.2.20; assert that the head stays on 127.0.0.1 while model and Resources hosts use 192.0.2.20. Repeat with explicit default_host: 192.0.2.30 and require the same separation. In a remote smoke check, inference must work while the sandbox cannot connect to the head endpoint. Retain Codex's ownership assertions: supplied access selects Resources' provider/workdir, borrowed cleanup disconnects without stopping, and owned cleanup stops the sandbox. Verify the suggested YAML before adopting it.

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.

We agree with pinning head_server.host. It also covers a case that absolute_ip_server_types does not: an explicit +default_host, as in this PR's validation command, applies to every server (global_config.py#L1598-L1617).

Two corrections to the scope. The endpoint serves the config unresolved, so ${oc.env:...} values such as the OpenSandbox key stay as interpolation strings, and only literal values like ++policy_api_key=<key> are exposed. Also, both deprecated profiles already set the same unscoped use_absolute_ip. So we'd call this a RISK, not a BLOCKER, though it is cheap enough to fix here.

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.

Pinned head_server.host: 127.0.0.1 in all six profiles in c394bcb. The new test composes each profile onto HLE with +default_host=192.0.2.30. It checks that the head server stays on 127.0.0.1 while the agent gets 192.0.2.30. @yaoyu-33 agreed that it's a risk rather than a blocker, and thanks for the correction about the unresolved interpolations. A deliberate remote-registry setup can still override head_server.host.

still depend on legacy Agent-to-Resources bindings; they are not equivalent to this workflow.
A new pairing does not need another combined preset.

`configs/profiles/benchmark.yaml` is a swappable profile for benchmarks whose Resources server supplies no sandbox,

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.

RISK — Complete the HLE pairing's tool-grant configuration.

Loading HLE with any new profile, a model, and caller-supplied sandbox settings resolves the bindings but cannot start an episode. HLE inherits resources_tool_transports: [direct_http] from the judge Environment Server config. Composition retargets the agent without changing those settings, so the Environment Server sends a required direct-HTTP grant. All six harnesses reject it before sandbox creation: Pi, OpenCode, Codex, Hermes, OpenClaw, and Claude Code. Thus the advertised HLE composition reaches neither inference nor grading.

Could you supply and document the missing HLE pairing override in the six README additions? For this judge-only benchmark, load the following alongside the benchmark, harness profile, and model config:

hle_equivalence_llm_judge_environment_server:
  environment_servers:
    single_agent_turn_legacy:
      resources_tool_transports: []

Keep this in the pairing configuration rather than hard-coding HLE into generic profiles or silently dropping required grants globally. Preserve HLE's Resources reference, dataset, prompt and model binding; leave ordinary HLE/simple-agent configuration unchanged. Genuine required tool grants must retain their validation, and supported MCP grants must still reach their harnesses.

Proposed acceptance checks, not executed: for each profile, compose HLE with this override and valid runtime/image fixtures, then drive the Environment Server through mocked harness/provider execution. Assert that the agent seed receives no tool grants and no borrowed sandbox, owned setup succeeds, close stops the sandbox, and verification runs with the original task data and response. Retain the required-tool → HTTP 422/no execution assertions in Pi's test and OpenCode's test, plus owned-stop versus borrowed-disconnect behavior. Verify the proposed pairing YAML before adopting it.

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.

Confirmed. We seeded each composed agent offline with the grant single_agent_turn_legacy builds for HLE. Pi, OpenCode, Codex, OpenClaw and Claude Code all return 422 before any sandbox work. Hermes has the same check (hermes_agent/app.py#L361-L370). With the grant cleared they get past it, and the override above resolves cleanly.

For this PR we'd grade it a BLOCKER: HLE is the example every README gives, and none of the six can run it on this head. GPQA, HLE Diamond and APEX Shortlist compose onto the same direct_http grant. Did the fork the rollouts ran on include #4953? That PR moved HLE off the legacy_agent relay. Documenting the override for each benchmark would fix it, and so would having composition drop direct_http when the incoming agent is a session harness. Either way, one HLE smoke per harness on this head would confirm the fix.

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 for confirming it across all six. I went with documenting the override (c394bcb). The README paragraph also names HLE Diamond, GPQA and APEX Shortlist, which I checked send the same grant, and says to use the benchmark's own Environment Server name. On #4953: the fork's base did include it. Our rollouts ran through an evaluation framework whose HLE recipes set resources_tool_transports: [] on HLE's Environment Server themselves. My PR validation only resolved configs, so it never seeded an agent. The new test now seeds each composed agent with the grants HLE's Environment Server builds. One HLE smoke per harness on the new head will follow.

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, c394bcb resolves this, and the new seed test covers it. One correction to our earlier comment: please don't take the other option we gave, having composition drop direct_http when it swaps in a session harness. A benchmark whose tools really come over direct_http would then run without them, which is what the 422 is there to catch.

A follow-up, not blocking this PR: the four benchmarks your README names run on equivalence_llm_judge, math_with_judge and mcqa, and none of those registers a tool route. Their direct_http lines (1, 2, 3) came in with #4953's bulk switch. Dropping them would let these profiles run those benchmarks without the per-benchmark override, and simple_agent already accepts a seed with no grant (simple_agent/app.py:381-385).

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. Understood on composition; I hadn't taken that route. The follow-up is #5590, stacked on this PR. It drops direct_http from all 8 Environment Server configs of equivalence_llm_judge, math_with_judge and mcqa (also lc_judge, nl2bash-equivalency, dapo17k, dapo17k_trajectory_collection and math_stack_overflow). All of them bind simple_agent. It also removes the override from these READMEs, and the seed test now runs through HLE as shipped, with a direct_http case kept for the 422.

name: policy_model
model: ${policy_model_name}
anthropic_api_key: ""
sandbox_provider: sandbox

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.

RISK — Pin the Claude runtime when enabling sandbox sessions.

Even after correcting HLE's tool-grant mismatch, this profile inherits claude_code_version: null from the included defaults. A session seed with no tool grants, valid provider credentials and a caller-supplied image therefore returns HTTP 422, Claude sandbox execution requires an exact claude_code_version, at the version check, before creating a sandbox. Offline resolution doesn't exercise this requirement.

Could you select an exact supported version in the sandbox profile? The existing sandbox example and ownership test use 2.1.108; the minimal replacement here is:

Suggested change
sandbox_provider: sandbox
claude_code_version: "2.1.108"
sandbox_provider: sandbox

This makes the sandbox profile supply its mandatory runtime selection while the caller supplies image and limits. Keep the override confined to this profile: retain the ordinary YAML's optional local-runtime selection, explicit caller version overrides, borrowed-sandbox precedence, Gym model routing and placeholder credential handling.

Proposed acceptance checks, not executed: compose HLE with this profile, the no-tool pairing override and model/provider fixtures; assert the composed agent has version 2.1.108, model_server.name == "policy_model", and an empty configured Anthropic key. With provider and installer mocked, seed without sandbox_access and assert installation receives version="2.1.108" rather than the version 422. Retain the ownership test's assertions that owned execution starts once, borrowed execution never starts a replacement, and both install the selected exact version. Also check that a caller's explicit version override wins and the ordinary agent YAML still declares null. Verify the suggested version against the intended runtime before adopting it.

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.

Confirmed. Seeding the composed Claude Code agent with no grants returns this 422. +1 to pinning it in the profile. The README's owned-sandbox example (README.md#L222-L231) already uses 2.1.108.

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.

Pinned claude_code_version: "2.1.108" in the Claude Code profile in c394bcb, matching the README's sandbox example. The new test checks that the composed agent has that version and the policy_model binding. It also seeds the composed agent through HLE's Environment Server; that case fails with this 422 if the pin is removed (I checked). The ordinary claude_code_agent.yaml still declares null. A caller's own claude_code_version overrides the profile, as any config that includes it does.

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 4, 2026 00:18

@yaoyu-33 yaoyu-33 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.

HOLD. The six profiles resolve onto HLE as described, but on this head no HLE episode gets past agent seed.

Thanks for closing this gap for the session harnesses. We composed each profile onto benchmarks/hle/config.yaml with gym env resolve. All six resolve with no ??? left, the pairing guard passes, and discovery still lists only each agent's own config. The problems show up when the composed agents are seeded:

  • BLOCKER: HLE's environment server sends a required direct_http grant, and all six harnesses reject it with a 422. Details are on the existing thread at pi_agent/README.md:77.
  • RISK: the Claude Code profile has no claude_code_version, so every session gets a 422. See the existing thread on its benchmark.yaml:24.
  • RISK: without sandbox_config.ttl_s, five profiles get OpenSandbox's default 10-minute sandbox lifetime. See the inline comment.
  • On the head-server thread, we agree that head_server.host should be pinned, but we would grade it a RISK, not a BLOCKER. See our reply there.

PR hygiene:

  • The rollouts ran at the earlier path on a fork. Since #4953, HLE's environment server is single_agent_turn_legacy with direct_http, and that is what causes the 422 above. Could you re-run one HLE smoke per harness on this head after the fix?
  • The checklist ticks "Tests added or updated", but the PR adds no tests. A parametrized test that composes each profile onto HLE and seeds the composed agent with the environment server's real grants would have caught the 422.

resources_server:
type: resources_servers
name: ???
sandbox_provider: sandbox

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.

responses_api_agents/pi_agent/configs/profiles/benchmark.yaml:18

Without sandbox_config.ttl_s, the provider leaves out timeout (provider.py#L1799-L1800), so the OpenSandbox SDK's default 10-minute maximum lifetime applies (sandbox.py#L512, v0.1.15 as pinned in uv.lock). That is shorter than Pi's 900 s run timeout plus the runtime install, and much shorter than OpenCode's 10800 s. The OpenCode, Codex, OpenClaw and Claude Code profiles have the same gap; Hermes sets its own TTL. Could you declare the limits in each profile, as the deprecated profiles did? Then a missing image fails at resolve instead of on every episode. Overrides of these keys under the composed name (++hle_equivalence_llm_judge_pi_agent...sandbox_config.image=...) would also work; today they raise Key 'sandbox_config' is not in struct.

Suggested change
sandbox_provider: sandbox
sandbox_provider: sandbox
sandbox_config:
image: ???
ttl_s: 14400
ready_timeout_s: 1200

Other sandbox_config keys still have to go under the profile's own instance name (pi_agent.responses_api_agents.pi_agent.sandbox_config). The README sentence could say so.

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.

Done in c394bcb. The Pi, OpenCode, Codex, OpenClaw and Claude Code profiles declare sandbox_config: {image: ???, ttl_s: 14400, ready_timeout_s: 1200}. Hermes declares the image and ready_timeout_s and keeps deriving its TTL from its own timeouts. Because the key is now declared, the image can be set under the composed name, and a missing image fails at resolve with an error that names that override. Each README says the other sandbox_config keys go under the profile's own instance name, for example pi_agent.responses_api_agents.pi_agent.sandbox_config, because undeclared keys still raise not in struct under the composed name. The new test covers the composed limits and the missing-image error.

Composed onto HLE, every session harness rejected the first seed with a
422. HLE's Environment Server grants the agent its Resources server over
direct_http, which no session harness can use; HLE Diamond, GPQA and
APEX Shortlist do the same. The judge offers the agent no tools, so each
adapter README now gives the pairing setting that clears the grant,
`resources_tool_transports: []` under the benchmark's Environment Server.

The profiles also fill the gaps an episode reached after that:

- Claude Code pins `claude_code_version: "2.1.108"`, which sandbox
  sessions require.
- Each profile declares `sandbox_config` with a mandatory image, so a
  missing image fails at resolve and the image can be set under the
  composed agent's name. All but Hermes set `ttl_s: 14400`, without
  which OpenSandbox ends the sandbox after 10 minutes; Hermes derives
  its TTL from its own timeouts.
- `head_server.host` stays on 127.0.0.1. `use_absolute_ip` otherwise
  puts the head server, whose config endpoint is unauthenticated, on the
  address sandboxes reach.

A new test composes each profile onto HLE, seeds the composed agent with
the request HLE's Environment Server builds, and checks that the seed
reaches sandbox creation with the setting and is refused without it.

Signed-off-by: gwarmstrong <[email protected]>
@gwarmstrong

Copy link
Copy Markdown
Contributor Author

Thanks Yu. c394bcb addresses each finding:

  • Blocker: each adapter README now gives the HLE pairing override, resources_tool_transports: [] under the benchmark's Environment Server name, and says that HLE Diamond, GPQA and APEX Shortlist need the same setting under their own names.
  • The Claude Code profile pins claude_code_version: "2.1.108".
  • All six profiles declare sandbox_config with image: ??? and ready_timeout_s: 1200. All but Hermes also set ttl_s: 14400; Hermes derives its TTL from its own timeouts.
  • All six pin head_server.host: 127.0.0.1.
  • Tests: tests/unit_tests/environment/test_session_harness_benchmark_profiles.py composes each profile onto HLE. It then sends the seed request that HLE's Environment Server builds (through its own _seed_agent) to the composed agent. With the override, the seed carries no grants and the agent goes on to create its own sandbox. Without it, the seed carries the required direct_http grant and the agent returns a 422 before any sandbox work. The file also checks the composed limits, the loopback head server, the resolve-time error for a missing image, and that discovery still lists only each agent's own config. In the core venv, 28 cases pass. The two Hermes seed cases need hermes-agent, so they skip there and pass in Hermes's own venv.

On the rollouts: yes, the fork's base included #4953. The runs went through an evaluation framework whose HLE recipes already set resources_tool_transports: [] on HLE's Environment Server, along with the sandbox TTL and the Claude Code version, so they never hit these gaps. My validation for this PR only resolved the configs and never seeded an agent, which is how I missed them. I'll rerun one HLE smoke per harness on this head and post the results here.

@gwarmstrong

Copy link
Copy Markdown
Contributor Author

HLE smokes on this head (c394bcb), one per harness: 5 HLE tasks each, Nemotron 3.5 Super on vLLM, OpenSandbox, composed from configs/profiles/benchmark.yaml plus the README's resources_tool_transports: [] override.

Harness Slurm Completed Health
Pi 8604017 5/5 5/5 healthy
OpenCode 8604034 5/5 5/5 healthy
Codex 8604055 5/5 5/5 healthy
OpenClaw 8604072 5/5 5/5 healthy
Hermes 8604084 5/5 5/5 healthy
Claude Code 8604088 5/5 0/5 healthy (agent_turn_hollow, fixed by #5547, which this head doesn't include)

In every run, each seed was accepted with no grants (no 422), every rollout was graded and carries the agent's observations, the failures sidecar is empty, and no server log shows a cleanup or sandbox-stop error. The resolved configs show the head server on 127.0.0.1, ttl_s: 14400, and, for Claude Code, claude_code_version: 2.1.108. With no sandbox_runtime_dir at this head, Pi, Codex and OpenClaw installed their runtimes inside the sandbox. OpenCode's answers still start with the <think> block, which #5548 fixes.

@gwarmstrong

Copy link
Copy Markdown
Contributor Author

/ok to test c394bcb

The core test that seeded each composed agent imported all six adapters,
so core coverage measured their modules, about 6,700 statements that
only the adapters' own suites exercise, and fell to 87.57%, under its 95%
floor. The seed check now lives in tests/session_harness_profiles.py and
runs from a test in each adapter's suite, in that adapter's environment,
which also runs the Hermes case that the core venv had to skip. The core
test keeps the config-only checks.

Signed-off-by: gwarmstrong <[email protected]>
gwarmstrong added a commit to gwarmstrong/Gym that referenced this pull request Nov 4, 2026
… grant change

NVIDIA-NeMo#5550 moved the HLE seed check out of the core test into each adapter's
suite. This applies this branch's change there: the seed test runs through
HLE as shipped, with a case that grants direct_http to keep the 422, and
the core test reads the unset transports as empty.

Signed-off-by: gwarmstrong <[email protected]>
@gwarmstrong

Copy link
Copy Markdown
Contributor Author

/ok to test 1b48fcb

@gwarmstrong

Copy link
Copy Markdown
Contributor Author

/ok to test 6f326e0

@yaoyu-33 yaoyu-33 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. Thanks for the quick turnaround. 6f326e0 resolves everything from our earlier review:

  • The README's pairing override fixes the HLE 422, and #5590 follows up by removing the unused direct_http grants.
  • The Claude Code profile pins claude_code_version: "2.1.108".
  • Five profiles set ttl_s: 14400, and Hermes keeps deriving its own TTL.
  • The head server and the agent stay on 127.0.0.1, so only the model server takes the address sandboxes reach.

We ran the new tests at this head. The 18 profile tests pass, and so do the seed tests for Pi, OpenCode, Codex, OpenClaw and Claude Code (Hermes needs its own venv). Removing ttl_s or the agent's host pin from the Pi profile makes the composition test fail. Your HLE smokes on c394bcb cover the runtime path; the Claude Code health result there is the issue #5547 fixes.

On CI: Session routing end-to-end failed once on this head. All 200 sessions landed on one worker, which that test cannot run with, and the job passed on the two earlier heads with the same server code, so we re-ran the failed jobs. The kilocode conformance probe fails on every head and is non-blocking.

@yaoyu-33 yaoyu-33 added the ready-to-merge PR is approved, current, and waiting for final CI or merge label Nov 5, 2026

Copy link
Copy Markdown
Contributor

🤖 On it — handling this as babysit-ready-to-merge.

Copy link
Copy Markdown
Contributor

I'll watch this ready-to-merge PR and report substantive progress. Running on nim-gpt-6-1-sol.

Copy link
Copy Markdown
Contributor

💬 The maintainer’s rerun passed session routing. Kilocode’s non-blocking conformance probe still fails its terminal model-error check. I’m comparing that failure with current main before deciding whether a separate repair is needed.

Copy link
Copy Markdown
Contributor

💬 The latest conformance summary reports unavailable results, not eight test failures: seven harnesses lack evidence from the rerun, and Kilocode still fails the terminal model-error check. Current main skipped those probes, so it doesn’t establish whether the defect exists there.

I can’t complete that comparison: the installed test profile has no conformance selector, and the broker denied PR metadata and repair-search reads. I haven’t requested another retry or changed code. I’ll keep watching the PR for CI updates and merge.

@gwarmstrong
gwarmstrong added this pull request to the merge queue Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into NVIDIA-NeMo:main with commit 4a94129 Nov 5, 2026
97 of 104 checks passed
@gwarmstrong
gwarmstrong deleted the georgea/session-harness-benchmark-profiles branch November 5, 2026 05:55

Copy link
Copy Markdown
Contributor

The PR is no longer an open ready-to-merge PR targeting main.

Copy link
Copy Markdown
Contributor

The PR is no longer an open ready-to-merge PR targeting main.

gwarmstrong added a commit to gwarmstrong/Gym that referenced this pull request Nov 5, 2026
NVIDIA-NeMo#5550 landed squashed, so its files conflicted as added on both sides.
This branch's versions are kept: main had not changed them since NVIDIA-NeMo#5550,
except the Claude Code and Hermes READMEs, which take main's text with this
change's paragraph applied.

Signed-off-by: gwarmstrong <[email protected]>
gwarmstrong added a commit to gwarmstrong/Gym that referenced this pull request Nov 5, 2026
…claw egress change

The README conflict kept both new paragraphs: network_access, and the benchmark profile from NVIDIA-NeMo#5550.

Signed-off-by: gwarmstrong <[email protected]>

This branch was previously deployed

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

Labels

ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants