8000 Add terminal-bench 2.1 by veoery · Pull Request #137 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

Add terminal-bench 2.1 - #137

Open
veoery wants to merge 1 commit into
Infini-AI-Lab:mainfrom
veoery:feat/TB-2.1
Open

veoery wants to merge 1 commit into
Infini-AI-Lab:mainfrom
veoery:feat/TB-2.1

Conversation

@veoery
@veoery veoery commented Nov 29, 2026 •
Copy link
Copy Markdown
Contributor

Change

Adds Terminal-Bench 2.1 as a Harbor benchmark example, examples/terminal_bench_2_1/, with no-adapter baselines and
the AHE Adapter for Codex and Claude Code. Nothing under hermit/ changes: the existing Harbor path
(python -m hermit.harbor.dataset prepare, environment.harbor, hermit.task.verify:environment) runs 2.1 as it is.

The task set. The Harbor hub's terminal-bench/terminal-bench-2-1, pinned at revision 6 (its l 8000 atest since
2026-04-30; Harbor treats an integer ref as a fixed revision, while a tag can move). It is Terminal-Bench 2.0's 89 tasks,
29 of them changed: the 28 in the 2.1 announcement, plus pytorch-model-recovery, whose image was rebuilt. Of the 29,
24 changed in what the agent or verifier sees (instructions, tests, images, limits), and 5 only in their reference
solution. The README's Task changes table lists them, from a
diff against the terminal-bench@2.0 download that terminal_bench_2_0/utils/dataset.lock locks.

Compatibility, checked against the downloaded tasks:

  • All 89 task.toml files (schema_version = "1.1") load in Harbor 0.25.0's Task model and in Hermit's
    hermit.task.directory.
  • No task uses anything Hermit refuses: no [[steps]], no separate verifier, mcp_servers = [] (Harbor refuses only a
    non-empty list), no skills, gpus = 0, public network.
  • Every task uses a prebuilt alexgshaw/<task>:<tag> image. 79 are 2.0's, with the same tags; the 10 new tags exist on
    Docker Hub. 21 GB compressed in all (2.0's: 49 GB).

Protocol decisions:

Files:

Validation

Run on Linux (RHEL 9, Docker, bubblewrap), Python 3.12, Harbor 0.25.0, at be2eba7.

  • python -m pytest --changed: 1474 passed, 12 failed, 112 skipped (15 min).

    • The same 12 fail on origin/main (899597b) on this machine (12 failed, 245 passed over the same seven files), so none come from this branch. They are in tests/methods/ahe/, examples/cap_harness/, examples/robodojo_sim/, tests/core/test_task.py and tests/core/test_harbor_environment.py.
    • Causes:
      • Another Hermit checkout is installed in this Python, so some subprocesses import the wrong hermit.
      • ~/.cache is a symlink to /scratch, so path comparisons see /scratch/... where they expect /home/....
      • The rrsi dependency group is not installed.

    CI is the clean check.

  • python -m pytest tests/core/test_harbor_examples.py: 109 passed (5.8 s). 18 of those tests are parametrized over terminal_bench_2_1 and cover: each config loads as Hermit loads it, Harbor settings pass the environment's checks, the method tests on the baseline's rows with the profile's model, no train row is a test row, in-sample rollouts 1–2 / 3–4, and every learner is sandboxed with no web search.

  • bash docs/build.sh (with docs/requirements.txt): build succeeded (warnings are errors).

  • python -m hermit.harbor.dataset prepare examples/terminal_bench_2_1/utils/benchmark.yaml: downloaded and checked the 89 tasks against the lock, and wrote 358 rows to utils/tasks.jsonl. The regenerated utils/splits/ and utils/image_sizes.json are byte-identical to the committed ones (git status clean).

  • hermit check --no-probe on all six configs. Problems reported:

    • evolver: No Evolver named 'eval-only' (baselines)
    • no hard budget is set (all six)
    • train and test share 2 tasks (smokes)

    These are the expected problems that examples/README.md documents for every Harbor example. Login: chatgpt ok for the Codex configs. The Claude configs report CLAUDE_CODE_OAUTH_TOKEN not set, because no Claude token was available on this machine.

  • Smoke, Codex (GPT-5.6-Luna), ahe_adapter/smoke_codex.yaml:

    • hermit train: 2 steps, 4/4 trials scored 1 (fix-git 96 s / 97 s, log-summary-date-ranges 61 s / 69 s); 0 infra, 0 timeouts, 0 agent errors. Rollout tokens: 523,796. Learner tokens: 803,790. Total time: 2,150 s.

      • Step 1: the Evolve Agent added two notes to MEMORY.md.
      • Step 2: attribution judged that change INEFFECTIVE, and the Evolve Agent removed the notes. final is the step 1 best-ever adapter, whose files match root.
    • hermit eval --adapter final: 2/2 scored 1, errors: 0, 840 s.

    • Confinement: all 8 learner launch records (sandbox/learner-{1..8}.json) have probe.passed: true. Each rollout's verdict records its Harbor trial_dir.

    • Two overrides were needed for this machine, not for the configs:

      • environment.harbor.disk_gate_gb=15, because this shared host's Docker disk had 22.8 GB free (the two smoke images need about 0.5 GB)
      • environment.harbor.jobs_dir=/scratch/.../tb21-codex-smoke, because a root-owned ~/.cache/hermit/harbor on this host blocked the default path

      With the default path, every trial failed as host_failed (PermissionError). Hermit correctly reported those trials as infra and unscored, not as agent failures.

Not verified

  • The Claude Code configs: no Claude token on this machine.
  • The baselines and the full AHE runs: not run. The README's results table is empty.
  • The README's per-task diff against 2.0 (the 29 changed tasks): Terminal-Bench 2.0's task directories were not on this machine to compare against.
  • The rollback: auto path that reverts a HARMFUL edit: the smoke judged nothing harmful.

Review

  • Tests and documentation cover the affected behavior, where applicable. The example joins the existing
    parametrized checks in test_harbor_examples.py: rows feat(tasks): package OfficeQA Pro paired GLM evaluation #1/feat(evolvers): GEPA and SkillOpt as built-in Evolvers, with the SkillOpt paper's OfficeQA setting #2 and feat(tasks/OfficeQA): OfficeQA Pro as a harnessadapter Environment (stacked on #2) #3/examples: a folder per method, tasks shared under examples/tasks (old folders kept) #4 from the lock, the profiles' models and
    logins, every config loading and passing the Harbor environment's checks. No new test functions. The docs are
    listed under Change.
  • Commands, defaults, and public interfaces are consistent. No interface changes. The configs keep 2.0's keys,
    run names and folder layout.
  • Agents follow the agent layers. No new agent: the built-in Codex and
    Claude Code agents in each task's Harbor environment.
  • Shared logs and examples contain no credentials or private data. The run folders (*/runs/), utils/tasks
    and utils/tasks.jsonl are gitignored and not committed; the lock names no path of this machine.
  • Documentation-only: not applicable.
  • Core changes: none.
  • Task directories (benchmark checklist): Harbor's task directories, prepared by hermit.harbor.dataset prepare from dataset.ref, with no dataset.patch. They run in Harbor's environments with
    hermit.task.verify:environment.
  • Public and private halves: the rows are rows_of's public half, and there is no data.view. The tests and
    the reference solution stay in the task directory, which only the verifier reads. The feedback is the
    verifier's output tail, as in 2.0.
  • What a task asks: each task.toml declares its time limits, CPUs and memory (up to 4 CPUs and 8 GB),
    applied by Harbor. The effective agent limit is the task's own (agent_timeout_sec: null, no
    agent.timeout_min); the verifier's is x5 and the start's x3. Six trials at a time can ask for 48 GB.
  • A real run: the Codex smoke through hermit train and hermit eval, above.
  • Independent review (post-PR audit): pending; runs after the PR is opened.
    • Nothing blocks merging: no defects in the code, configs or data.

🤖 Generated with Claude Code

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0