Repository navigation
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
Draft
rimashahbazyan wants to merge 7 commits into
rimashahbazyan wants to merge 7 commits into
Conversation
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]>
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 was referenced Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_fetchbehind the upstream blocklist throughhle_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):hle_diamond/pi_hle_toolspi_agentpi(new)hle_diamond/opencode2_hle_toolsopencode_agent, OpenCode 2.3.2opencode2(new)hle_diamond/hermes_hle_toolshermes_agentbare(new, no harness; runtime uploaded by the agent)hle_diamond/codex_hle_toolscodex_agent, Codex 0.144.4codex(new)hle_diamond/openclaw_hle_toolsopenclaw_agentbare(runtime uploaded by the agent)Other changes:
judge_openai.yamldefaulted toazure/openai/o3-mini, which now returns HTTP 410 (deployment deprecated). The default is nowopenai/openai/gpt-5.6-lunawithreasoning.effort: medium, the answer matcher Artificial Analysis documents for HLE-Diamond with the unchanged official judge prompt. Both are overridable withHLE_DIAMOND_JUDGE_MODELandHLE_DIAMOND_JUDGE_EFFORT.sandbox_docker_local.yaml: refuses each new agent unless the open-egress acknowledgement is set, as for the existing reference agent.web_fetchreplies".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 runon the changed files: passed.detect-secrets-hookwith the CI baseline: clean.docker run --network=none): interpreter and harness versions, the 34 locked Python distributions, nothing unexpected onPATH.Rollouts
One row per preset on an OpenSandbox cell with egress enforced, all on 2026-11-30 with GPT-6 Astra at
higheffort and the new default judge. Each row completed and was judged. These show the presets work; they are not scores.pi_hle_toolsweb_search, 3bash, 1writeopencode_hle_toolsweb_search, 1web_fetch, 2bash, 4todowriteopencode2_hle_toolsweb_search, 1web_fetch, 2shell, 1writehermes_hle_toolsweb_search, 2web_fetch, 2terminal, 1write_filecodex_hle_toolsweb_search, 3exec_command, 1update_planopenclaw_hle_toolsweb_search, 1web_fetch, 3execEgress 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, andweb_searchreturned results.Long
web_fetchreplies (one forced fetch of a ~503,000-character page per preset, local Docker): what the model was sent of the 61,742-character reply.pi_hle_toolsopenclaw_hle_toolsopencode2_hle_toolscodex_hle_toolshermes_hle_toolsopencode_hle_toolsCompatibility and benchmark impact
hle_diamondrun that composesjudge_openai.yaml. Numbers judged by o3-mini and by GPT-5.6 Luna are not comparable; earlier recorded runs were not regraded. SetHLE_DIAMOND_JUDGE_MODELto keep another judge.Known issue, not fixed here: with
mcp_tool_timeout_secondsset,openclaw_agentwrites atimeoutkey 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_toolsleaves 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
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).🤖 Generated with Claude Code