Repository navigation
feat(benchmarks): add OpenCode on Terminal-Bench 4.1 and Hermes on DeepSWE - #6724
giuliolovisotto wants to merge 9 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
🌿 Preview your docs: https://nvidia-preview-pr-6724-d4b4876675f5.docs.buildwithfern.com/nemo/gym |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I reviewed all four changed files and their connected configuration, session, task-selection and catalog paths. I found no demonstrated runtime BLOCKER. The required real-rollout evidence is still missing, and the new manifest needs its selection metadata completed.
RISK: Add representative real smoke-rollout evidence
The PR description explicitly says no rollouts have run. The new OpenCode profile changes the execution budget and enables on-demand ripgrep downloads, but configuration resolution and installer-only checks do not show that this pairing completes a model trajectory and reaches official verification. AGENTS.md requires representative real smoke rollouts for behavior-changing agent/environment work. This is an evidence gap affecting the new profile, not a reproduced runtime defect.
Could you attach the promised retro-console-soc and Compose-task rollouts before this leaves draft? Record the model/version, task IDs, exact command/config, trajectory artifacts, verifier outcomes and inspection notes. Acceptance should show usable grep/glob on Fedora, interaction with the Compose dependency, official verification, and cleanup. The model need not solve either task; distinguish model failure from broken setup or infrastructure. Keep the official scoring and task budgets, existing mini-SWE behavior and score-comparability warning unchanged. No full benchmark run or reward-distribution study is requested.
Validation
The review's focused probes ran against the reviewed source in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:355db96a7829581c6e408d61bd9cc67029f43be2, a successfully built default-branch CI image; no successful head-image build was found.
config-runtime-1/probe.py,public-session-probe.pyandinstaller-fallback-probe.pypassed. They exercised composed defaults and smoke overrides, task-budget caps, installer failure diagnostics, fake HTTP session plumbing, and borrowed-sandbox close behavior. The real installer accepted the missing-ripgrep fallback flag with a fake cached executable.task-selection-1/probe_task_selection.pyandprobe_collector.pypassed. The file contains 63 unique IDs from the committed 66-task inventory, excluding exactly the documented three. Actual filtering, CLI dispatch and repetition preserved task identity and order; unknown IDs failed closed.- Catalog probes passed discovery and non-mutating manifest validation. They also confirmed the five metadata omissions noted inline.
These scratch scripts are under /workspace/review-probes/. I did not independently validate task-image users, real downloads, model trajectories, Compose/GPU execution, observation capture or scoring.
For existing suites, I relied on head CI: lint, component locks, sandbox tests, core shards 0–2 and server shards 0/1/3/5/6 succeeded. Core shard 3, server shards 2/4/7 and LongMT scoring were still running at the last read, so the aggregate was not yet green. Changed-server and session-routing checks were skipped, not passed. No failing check was observed. I did not rerun the full CI suites locally.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| modality: text | ||
| licensing: unknown | ||
| authors: | ||
| - NVIDIA NeMo Gym contributors |
There was a problem hiding this comment.
NOTE: Could you complete this new manifest's maintainers, capabilities, domains, primary_metric and requirements fields? All five are absent and parse as None. The new-manifest authoring rule requires them even though the backward-compatible schema permits omission. Users discovering this profile otherwise cannot identify its owner, headline metric or GPU/network needs from the declaration.
Please add actual maintainer logins, the exact aggregate metric key and appropriate taxonomy/requirement values; use unknown only where supported rather than guessing. Keep the existing Harbor target, agent/model wiring and experimental: true. Acceptance: the five fields are explicit and non-placeholder, their requirements match the supported tasks and runtime downloads, and manifest validation and catalog discovery still succeed.
a6f58af to
a64c449
Compare
a64c449 to
8cd5904
Compare
8cd5904 to
c013d0b
Compare
c013d0b to
486fc9f
Compare
486fc9f to
b682f4f
Compare
Add terminal_bench_4/opencode: Terminal-Bench 4.1 with OpenCode agent sessions on the Harbor environment server, with the episode bound and setup allowance of terminal_bench_4/miniswe and OpenCode's run limit raised to the tasks' 8-hour agent budget. Add root_image_tasks.txt, the 63 tasks whose image runs as root, to compare harnesses on one task set: OpenCode cannot install itself in the three tasks that run as a non-root user. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
Set verify_after_agent_error in terminal_bench_4/opencode: an OpenCode run that died while its sandbox still runs (its own command killed it, or the kernel's OOM kill picked it) is graded as it stands instead of being retried, as Harbor grades after any agent exit and as terminal_bench_4/miniswe grades a mini-SWE run that was killed mid-step. Both harnesses then treat a dead agent the same way when they are compared on the same tasks. A setup failure or a model endpoint failure is still retried. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
Add deepswe/hermes: DeepSWE v1.1 with Hermes agent sessions on the same episode as deepswe/opencode. The resources server seeds the no-network agent sandbox, Hermes works in it through an agent session, and the patch is graded in a fresh verifier sandbox. The agent server stages Hermes's runtime into the sandbox, so the sandbox needs no network. The run limit (3 hours), the episode bound and the session concurrency are those of deepswe/opencode, to compare the two harnesses on the same tasks. The step limit is raised to 500 so that the run limit is the bound, as for OpenCode, which has no step limit. Hermes gets its shell and file toolsets, a declared 262144-token context window and its own 180-second command timeout. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
Run Hermes with its own step limit (90 model calls) and every toolset enabled instead of a 500-step limit and the shell and file toolsets only. With the run limit, episode bound and context window already aligned with deepswe/opencode, the two harnesses then differ only in what each one ships with. Document the recipe next to the OpenCode one in the DeepSWE README. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
… the Harbor entry batched-eval-parity and lake-temp-glm state their verifier's network restriction on the verifier's own sandbox ([verifier.environment] allow_internet = false), a placement the Harbor loader refuses, so a run of the entry stopped with two unloadable tasks. The entry's dataset.toml now states the same restriction on [verifier], where the loader applies it to the separate verifier's sandbox, as the terminal_bench_science entry does. The tests still run offline and all 66 tasks load. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
Set max_turns far above what the three-hour run limit allows, so the run limit is the only bound on a Hermes run, as it is for deepswe/opencode, which has no step limit. With Hermes's default of 90 model calls, runs on these tasks stop at the step limit within minutes, and the two harnesses are then compared under different limits. max_turns accepts no null. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
…_bench_4/opencode Set agent.build.steps to 1000, high enough that the 8-hour run limit is the bound. A comparison of harnesses on these tasks then gives each harness the same number (++tb4_max_steps=1000 for terminal_bench_4/miniswe). From that step on OpenCode 1 asks for a text answer and still offers the tools, so the limit does not stop a model that keeps calling them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
Replace the out-of-reach max_turns with 1000 model calls: a stated limit that both harnesses can share (opencode_config.agent.build.steps: 1000 for deepswe/opencode) instead of an arbitrary large number. It stays well above Hermes's default of 90, which ends runs on these tasks within minutes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
This reverts commit b188f56. The benchmark config keeps OpenCode's own default, no step limit; a run that wants one sets opencode_config.agent.build.steps itself, as it sets ++tb4_max_steps for terminal_bench_4/miniswe. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
b682f4f to
00a5eae
Compare
What does this PR do?
Adds
terminal_bench_4/opencode: Terminal-Bench 4.1 with OpenCode agent sessions on the Harbor environment server, next toterminal_bench_4/miniswe.benchmarks/terminal_bench_4/opencode.yaml(withopencode/manifest.yaml). It names the same Harbor target asminiswe.yamland composesopencode_agent:timeout: 28800. The shipped 10,800 s would end a run five hours before the tasks' 8-hour agent budget does.tb4_agent_max_timeout_seccaps it for smoke runs, as inminiswe.yaml.sandbox_ripgrep_download: true.retro-console-socruns on Fedora, where session setup cannot install ripgrep (it usesapt-getorapk), so OpenCode downloads it on first use there. The Debian and Ubuntu images still get it from their package index.miniswe.yaml.benchmarks/terminal_bench_4/root_image_tasks.txt: the 63 tasks whose image runs as root, fortask_ids_fpath. OpenCode installs itself in the task sandbox with the image's package manager, which it cannot do in the three tasks that run as a non-root user (fp8-rmsnorm-gemm,risk-scorer-replay,rs-archive-clone). The list lets several harnesses run on one task set.terminal_bench_4/miniswe.Without this config,
--agent-type opencode_agentonterminal_bench_4/minisweruns OpenCode with its shipped 3-hour limit and fails setup onretro-console-soc.No issue: this adds a benchmark config and changes no existing one.
It also adds
deepswe/hermes: DeepSWE v1.1 with Hermes agent sessions, next todeepswe/opencode.benchmarks/deepswe/hermes.yaml(withhermes/manifest.yaml). It composeshermes_agentwith the DeepSWE resources server andsingle_agent_turn_legacy, asopencode.yamldoes, and admitshermes_agenton its resources server instance:sandbox_runner_timeout_seconds: 10800anddefault_episode_timeout_seconds: 18000, the run limit and episode bound ofdeepswe/opencode.context_length: 262144, the windowopencode_agentdeclares. Unset, Hermes cannot probe the Gym model server and assumes 256,000 tokens.max_turns: 1000. With Hermes's default of 90 model calls, runs on these tasks stop at the step limit within minutes.deepswe/opencodehas no step limit; give itopencode_config.agent.build.steps: 1000to compare the two under the same limit.terminal_timeout: 180, Hermes's own default;hermes_agent.yamllowers it to 60. Every toolset stays enabled.concurrency: 1024, asdeepswe/opencode: an admitted episode already holds its agent sandbox.resources_servers/deepswe/README.md: a "Run Hermes rollouts" section.More harness configs for these benchmarks may be added to this branch while it is a draft.
Validation
harbor_benchmark()on the new config returns targetterminal_bench_4, harnessopencode_agent, and the samebenchmark_settingsasterminal_bench_4/miniswe.gym env resolveof a run config for this target withopencode_agent, the Harbor environment server, the OpenSandbox provider and this file: the run's agent instance resolvestimeout: 28800andsandbox_ripgrep_download: true; the environment server instance resolvesdefault_episode_timeout_seconds: 54000andharness_setup_allowance_s: 900.install_opencode_runtime.sh, unchanged) run by hand in two task images:risk-scorer-replay, as its default usernobody: stops with "needs curl ... automatic installation requires root".fedora:42at the digestretro-console-socbuilds from, as root: stops on ripgrep by default, passes with the ripgrep download allowed.pre-commit runon the staged files: the hooks that apply to them pass.gym env resolveofbenchmarks/deepswe/hermes.yamlwith the OpenSandbox provider and a vLLM model server: the agent instance resolvessandbox_runner_timeout_seconds: 10800,max_turns: 1000,terminal_timeout: 180,context_length: 262144,enabled_toolsets: nullandconcurrency: 1024; the resources server instance resolvesallowed_agents: [hermes_agent]andenforce_agent_no_network: true; the environment server instance resolvesdefault_episode_timeout_seconds: 18000.pre-commit run --all-files.Rollouts
None yet, which is why this is a draft. To add before review: rollouts of
terminal_bench_4/opencodethat includeretro-console-socand a Compose task, and rollouts ofdeepswe/hermes.Compatibility and benchmark impact
None for existing configs.
terminal_bench_4/opencodeanddeepswe/hermesare new and marked experimental.Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).🤖 Generated with Claude Code