Skip to content

feat(hle_diamond): upstream web tools setup on Pi, OpenCode 2, Hermes, Codex and OpenClaw; replace the retired o3-mini judge - #7015

Draft
rimashahbazyan wants to merge 7 commits into
mainfrom
rshahbazyan/hle-tools-multi-harness
Draft

rimashahbazyan wants to merge 7 commits into
mainfrom
rshahbazyan/hle-tools-multi-harness

Conversation

@rimashahbazyan

Copy link
Copy Markdown
Contributor

What does this PR do?

Follow-up to #6362. It makes the upstream HLE with-tools setup of hle_diamond/opencode_hle_tools (reference Python image, web_search / web_fetch behind the upstream blocklist through hle_web_tools, network_access: model_and_tools, the upstream judge prompt) runnable on the other session harnesses, and replaces the judge model the gateway stopped serving.

New presets, each holding the tool server, egress policy, judge settings and environment note equal to opencode_hle_tools (a test enforces this; the note differs only in how the harness names the tools):

Preset Harness Image target
hle_diamond/pi_hle_tools pi_agent pi (new)
hle_diamond/opencode2_hle_tools opencode_agent, OpenCode 2.3.2 opencode2 (new)
hle_diamond/hermes_hle_tools hermes_agent bare (new, no harness; runtime uploaded by the agent)
hle_diamond/codex_hle_tools codex_agent, Codex 0.144.4 codex (new)
hle_diamond/openclaw_hle_tools openclaw_agent bare (runtime uploaded by the agent)

Other changes:

  • Reference image: four new Dockerfile targets. The default target (OpenCode 1.17.11) is unchanged and rebuilds to the same image.
  • Judge: judge_openai.yaml defaulted to azure/openai/o3-mini, which now returns HTTP 410 (deployment deprecated). The default is now openai/openai/gpt-5.6-luna with reasoning.effort: medium, the answer matcher Artificial Analysis documents for HLE-Diamond with the unchanged official judge prompt. Both are overridable with HLE_DIAMOND_JUDGE_MODEL and HLE_DIAMOND_JUDGE_EFFORT.
  • sandbox_docker_local.yaml: refuses each new agent unless the open-egress acknowledgement is set, as for the existing reference agent.
  • README: a section per preset, "OpenSandbox cell runs", and "Long web_fetch replies".

Claude Code is not included; it waits on #6349 / #6292.

Validation

  • pytest resources_servers/equivalence_llm_judge/tests/test_hle_diamond.py responses_api_agents/opencode_sandboxed_agent/tests/test_hle_reference_image.py resources_servers/hle_web_tools/tests responses_api_agents/pi_agent/tests/test_offline_science_presets.py: 260 passed on the final diff.
  • pre-commit run on the changed files: passed. detect-secrets-hook with the CI baseline: clean.
  • Each new image target verified offline (docker run --network=none): interpreter and harness versions, the 34 locked Python distributions, nothing unexpected on PATH.

Rollouts

One row per preset on an OpenSandbox cell with egress enforced, all on 2026-11-30 with GPT-6 Astra at high effort and the new default judge. Each row completed and was judged. These show the presets work; they are not scores.

Preset Tool calls in the row
pi_hle_tools 2 web_search, 3 bash, 1 write
opencode_hle_tools 4 web_search, 1 web_fetch, 2 bash, 4 todowrite
opencode2_hle_tools 4 web_search, 1 web_fetch, 2 shell, 1 write
hermes_hle_tools 3 web_search, 2 web_fetch, 2 terminal, 1 write_file
codex_hle_tools 3 web_search, 3 exec_command, 1 update_plan
openclaw_hle_tools 4 web_search, 1 web_fetch, 3 exec

Egress check on the same cell: from a sandbox with network_access: model_and_tools, a direct fetch failed at name resolution, a connection to a raw public IP timed out, and web_search returned results.

Long web_fetch replies (one forced fetch of a ~503,000-character page per preset, local Docker): what the model was sent of the 61,742-character reply.

Preset Sent to the model Rest
pi_hle_tools all of it nothing withheld
openclaw_hle_tools all of it nothing withheld
opencode2_hle_tools the first 50 KiB saved to a file
codex_hle_tools about 12,000 characters, middle dropped not kept
hermes_hle_tools a 2,559-character preview saved to a file
opencode_hle_tools a 318-character notice saved to a file

Compatibility and benchmark impact

  • Judge change affects every hle_diamond run that composes judge_openai.yaml. Numbers judged by o3-mini and by GPT-5.6 Luna are not comparable; earlier recorded runs were not regraded. Set HLE_DIAMOND_JUDGE_MODEL to keep another judge.
  • Existing presets and the default image target are otherwise unchanged.
  • With-tools numbers are not comparable across harnesses without the caveat above: only Pi and OpenClaw show the model a full long page.

Known issue, not fixed here: with mcp_tool_timeout_seconds set, openclaw_agent writes a timeout key that OpenClaw 2026.11.5 rejects, and every granted MCP server fails to start ("Required Gym MCP tools could not be initialized: web_tools: exit 1"). openclaw_hle_tools leaves the setting unset and a test keeps it so.

Not covered: any score, more than one row per preset, the image questions on the new harnesses.

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 (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

🤖 Generated with Claude Code

rimashahbazyan and others added 7 commits December 1, 2026 17:27
Add hle_diamond/pi_hle_tools: the opencode_hle_tools setup (the web_tools
server, enforced egress, the bare-question judge and the environment note)
on pi_agent, so one setup can be compared across two harnesses.

- Reference image: a `pi` target that holds upstream's Python environment
  plus Pi and a private Node under /opt, off PATH. The default build still
  produces the OpenCode image unchanged.
- Preset: benchmarks/hle_diamond/pi_hle_tools.yaml on a renamed agent, with
  an acknowledgement-gated block in sandbox_docker_local.yaml.
- Tests hold the preset equal to pi_search (agent) and to opencode_hle_tools
  (tool server, judge, note, hosts), and tie the image target to the
  preset's Pi release and runtime directory.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…_hle_tools)

Add hle_diamond/hermes_hle_tools: the opencode_hle_tools setup (the web_tools
server, enforced egress, the bare-question judge and the environment note
with Hermes's tool names) on hermes_agent.

- Reference image: a harness-free `bare` target. hermes_agent uploads its
  own runtime into the sandbox, so the image carries no harness.
- Preset: only Hermes's terminal and file toolsets, no temperature of Gym's,
  and the OpenCode preset's run budget and window, on a renamed agent with an
  acknowledgement-gated block in sandbox_docker_local.yaml.
- Tests hold the tool server, judge and hosts equal to opencode_hle_tools and
  the note equal apart from the tool names.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…encode2_hle_tools)

Add hle_diamond/opencode2_hle_tools: opencode_hle_tools on the OpenCode 2
release opencode_agent pins (2.3.2).

- Reference image: an `opencode2` target that installs the pinned
  x64-baseline release tarball, checked against opencode_agent's digest, at
  /usr/local/bin/opencode-2.3.2.
- Preset: changes only the release, the binary's path and digest, and the
  image; it keeps the reference agent, so the local-Docker refusal applies.
- A test holds every other setting equal to opencode_hle_tools and ties the
  image target to the pinned release.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…mini judge

codex_hle_tools and openclaw_hle_tools run opencode_hle_tools' tool server,
egress policy, judge settings and environment note on Codex 0.144.4 (new
`codex` target of the reference image, installed from a lock) and on
OpenClaw (harness-free image, runtime uploaded from the Gym host). The
OpenClaw preset leaves mcp_tool_timeout_seconds unset: with it set the
adapter writes a key OpenClaw 2026.11.5 rejects and no granted tool
server starts.

The gateway stopped serving o3-mini on 2026-11-28 (HTTP 410), so
judge_openai.yaml now defaults to openai/openai/gpt-5.6-luna at medium
reasoning effort, the answer matcher Artificial Analysis uses for
HLE-Diamond with the unchanged official judge prompt. Both are
overridable (HLE_DIAMOND_JUDGE_MODEL, HLE_DIAMOND_JUDGE_EFFORT). Earlier
recorded runs used o3-mini and were not regraded.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…s presets

One row of each of the six presets has run on an OpenSandbox cell with
network_access model_and_tools enforced, and a direct-fetch check from a
sandbox was blocked while the tool servers stayed reachable. State what
these runs show and what they do not, and narrow the "no OpenSandbox
run" statements to the presets that still have none.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…na judge

All six *_hle_tools rows now come from 2026-11-30 at one commit with the
default judge, replacing the mix of o3-mini and Luna rows.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…eply to the model

One forced fetch of a page far above the 60,000-character cap per
preset: Pi and OpenClaw send the whole reply, OpenCode 2 the first
50 KiB, Codex about 12,000 characters with the middle dropped, Hermes a
short preview and OpenCode 1 only a notice, the last three saving the
reply to a file.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Dec 1, 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.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:high Autobot PR risk: high feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers labels Dec 1, 2026
weijiac0619 added a commit that referenced this pull request Dec 3, 2026
… and tools

The OpenCode, OpenClaw, Pi and Codex presets ran their sandboxes with
network_access: inherit so each harness could download its runtime, which
left the model free to reach the web from the harness's shell instead of
using the task's tools. They now set model_and_tools, as Hermes already
does: the sandbox reaches only the model server and the resources server
that grants the tools. With no network to download from, each runtime is
in the image or uploaded by the agent server:

- OpenCode 1.17.11 at /usr/local/bin/opencode, digest checked, from the
  HLE-Diamond reference image (OPENCODE_REFERENCE_SANDBOX_IMAGE).
- OpenClaw's runtime uploaded by the agent server (sandbox_runtime_upload)
  into python:3.12.
- Pi 1.5.2 under /opt, from the offline science image with Pi
  (PI_SANDBOX_IMAGE).
- Codex 0.144.4 under /opt/codex-runtime (CODEX_REFERENCE_SANDBOX_IMAGE);
  the image target that builds it is proposed in #7015.

The README lists the images, the need for an OpenSandbox deployment that
enforces egress policies, and a development-only override for one that
does not, whose scores are not reportable. The tests check the network
rule, the runtime settings and where each image comes from.

Signed-off-by: weijia chen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work risk:high Autobot PR risk: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants