TrajRepair-Bench v2

Paper-facing provenance brief

Data Sources
& Provenance

A concise account of where TrajRepair-Bench v2 comes from, what was inherited from upstream benchmarks, what we constructed, and how every failed trajectory became an execution-validated repair instance.

Verified against local manifests 15 September 2026 Current source-of-truth: benchmark_v2/

Dataset snapshot

One benchmark,
two acquisition lanes

TrajRepair-Bench combines locally generated failures on Terminal-Bench tasks with public audit failures from Harbor-Index 1.0. Both lanes are normalized into the same repair protocol: revise a complete action list, replay it from a clean environment, and judge it by execution.

285execution-verified failure instances
90unique tasks in the full shipped pool
200instances on the main evaluation board
10upstream benchmark families
16distinct failure-model labels
3agent scaffolds
Counting convention. The current manifests support 10 upstream benchmark families, not 12. The full population is 285 = 200 test + 85 development instances. INSTANCES.csv contains 270 rows because 15 shipped development-only instances are recorded in the manifests and split file but not in that table.

Primary acquisition sources

Where the data came from

The two boards differ in acquisition, not in evaluation semantics. The Terminal lane provides controlled model and scaffold diversity. The Harbor lane provides long, heterogeneous public failures over a wide collection of upstream task families.

159Terminal board
instances

Terminal-Bench lane

Task packages come from Terminal-Bench. Failed trajectories were generated locally by running seven model labels through mini-swe-agent and OpenHands, then retaining failures that could be faithfully replayed.

Tasks retained
61
Failure models
7
Scaffolds
mini-swe-agent · OpenHands
Raw evidence
Reasoning · commands · observations
Provenance type
Locally generated organic failures
126Harbor board
instances

Harbor-Index lane

Task packages and public audit trajectories come from Harbor-Index 1.0, with task metadata available through the Harbor Hub. All selected runs use the Terminus-2 harness.

Tasks retained
29
Failure models
9
Scaffold
Terminus-2
Trajectory format
ATIF-derived R / P / O
Provenance type
Public audit failures

Provenance boundary

Inherited versus constructed

This distinction should be explicit in the paper. TrajRepair-Bench does not claim authorship of the upstream tasks. Its contribution is the transformation of real failed runs into reproducible, repairable, execution-validated instances.

Inherited

Upstream task package

Task description, clean environment definition, official verifier semantics, and upstream reference assets used for dataset construction.

Observed

Organic failed run

Model reasoning, tool actions, terminal observations, the executable action sequence, and the upstream failure verdict.

Constructed by us

Repair instance

Normalized action list, reproduced failure, leak-audited failure scene, augmented checks, split metadata, clean-replay judge, and edit metrics.

Upstream coverage

Ten benchmark families

Counts below are regenerated from the two 285-instance manifests and the frozen 200-instance board. “Terminal-Bench” includes 159 direct Terminal-board instances plus 19 Terminal-Bench-family tasks represented through Harbor.

Upstream family Primary domain Full pool instances Full pool tasks Main-board instances Main-board tasks
Terminal-BenchTerminal and systems engineering1786513262
GSORepository-level performance optimization347217
BixBenchComputational biology and bioinformatics20585
AlgoTuneAlgorithm and numerical optimization164144
Spider2Enterprise data and DBT workflows10282
CyberGymReal-world vulnerability analysis10262
SciCodeResearch-level scientific coding8242
DA-CodeExecutable data-science analysis4131
USACO benchmarkCompetitive programming3121
CodePDENumerical PDE solver generation2121
Total—2859020087

Failure producers

Models and scaffolds

The models listed here produced the source failures; they are not the repair models evaluated later. The dataset intentionally contains multiple model and scaffold identities so that repair systems face heterogeneous failure styles.

Terminal-Bench failures

159 trajectories · 7 model labels · 2 scaffolds

Qwen · 26Kimi · 26Devstral · 25DeepSeek v3.2 · 24Gemini · 23Claude · 20GPT-5 · 15
mini-swe-agent
106 instances
OpenHands
53 instances

Harbor failures

126 trajectories · 9 model labels · Terminus-2

MiniMax M3 · 16Gemini 3.1 Pro · 16GLM 5.2 · 15DeepSeek v4 Pro · 15Qwen 3.7 Max · 13MiMo v2.5 Pro · 13Kimi K2.6 · 13Claude Opus 4.8 · 13GPT-5.5 · 12
Scaffold
Terminus-2 · 126 instances
Format
ATIF public audit trajectories

Construction protocol

From failed run to repair benchmark

Admission depends on executable evidence. Every instance must preserve the original task semantics, reproduce the source failure, expose a faithful but leak-free failure scene, and support clean replay of a submitted action list.

Extract

Project reasoning, terminal actions, and observations into a normalized R/P/O trajectory and executable action list.

Reproduce

Replay the original action list from the official clean environment. Keep the instance only when the failure is reproduced.

Snapshot

Capture the post-failure container for diagnosis, then remove tests, oracle material, and authoring artifacts.

Augment

Add executable goal, enabler, and constraint checks derived from the specification and upstream assets.

Select

Deduplicate by failure signature or repair similarity, apply quality gates, and freeze the development/test split.

Agent-visible evidence

  • Original task description
  • Full failed R/P/O trajectory
  • Numbered original action list
  • Explorable failure-scene container
  • Submission schema and scoring rules

Withheld evaluation assets

  • Official tests and verifier internals
  • Reference solution or repair oracle
  • Localization truth and construction evidence
  • Private augmented-check implementation
  • Judge results before final submission

Quality and evaluation

Execution is the oracle

A repair system submits a complete revised action list. The evaluator computes the diff automatically, replays the list from a clean environment, and reports both upstream and strengthened correctness verdicts.

Failure fidelity

All 285 source action lists have corresponding replayed failure scenes. Harbor records preserve a zero reward on all 126 selected failures.

Official verdict

Repair@1 (official) uses the task's inherited official verifier and remains the externally comparable result.

Strict verdict

Repair@1 (strict) requires both the official verifier and augmented specification checks to pass.

Repair cost

Replaced, deleted, and inserted actions are derived from the old/new list alignment. Correctness remains primary.

Augmented-check accounting. Harbor contributes 1,421 checkpoint-instance evaluations from 337 unique probes across 29 task catalogs. The Terminal lane contains 496 task-level checkpoints across 61 tasks, including 228 directly executable end-state probes. These are different counting units and should not be added as if they were the same statistic.

Release structure

Population and frozen split

The benchmark ships 285 verified instances. The main board is the frozen test set. Development instances are separated according to whether their underlying task also appears on the test board.

200test

Main board

118 Terminal-board and 82 Harbor-board failures across 87 tasks. Frozen-config final evaluation only.

3strict dev

Task-disjoint

Underlying tasks do not occur on the main board. Intended for genuine method development.

82loose dev

Shared-task analysis

Shares an underlying task with the main board. Suitable for analysis, not parameter selection.

285total

Shipped pool

Every manifest instance appears in exactly one frozen split; all have workspace and image metadata.

Paper-ready wording

Data sources paragraph

This paragraph is deliberately conservative: it distinguishes upstream material from our transformations and uses the current 10-family counting convention.

TrajRepair-Bench v2 aggregates organic failed agent executions from two acquisition lanes. The Terminal-Bench lane contains 159 failures over 61 tasks, generated locally by seven model configurations using mini-swe-agent and OpenHands. The Harbor lane contains 126 failures over 29 tasks, selected from the public audit trajectories of Harbor-Index 1.0 and generated by nine model configurations under Terminus-2. Across both lanes, the resulting pool contains 285 execution-verified failures over 90 tasks from ten upstream benchmark families. We normalize each run into a reasoning/action/observation trajectory and an executable action list, replay the original list from the official clean environment to reproduce the failure, and snapshot a leak-audited post-failure container for diagnosis. A repair system submits a complete revised action list, which is replayed from a clean environment and evaluated using the inherited official verifier together with augmented specification checks. The frozen main board contains 200 instances over 87 tasks; the remaining 85 instances form the development pool.
Before submission. Add the exact upstream dataset versions or commit hashes used during acquisition. The current release manifests record source names and instance-level provenance but do not yet provide one consolidated, paper-ready version table for all ten upstream families.

Citation checklist

What the paper should cite

Cite both the immediate acquisition source and the underlying benchmark families. If space is limited, keep the full family-level provenance in an appendix or dataset card.

  1. Terminal-Bench — task packages and official terminal verifiers.
  2. Harbor-Index 1.0 and the Harbor Hub — immediate source of Harbor tasks and public audit runs.
  3. Terminus-2 — the Harbor failure-generation scaffold and ATIF trajectory producer.
  4. mini-swe-agent and OpenHands — Terminal-lane failure-generation scaffolds.
  5. GSO, AlgoTune, BixBench, and Spider2.
  6. CyberGym, SciCode, DA-Code, USACO benchmark, and CodePDE.

Release and governance

Traceability safeguards

These controls make the dataset auditable and reduce contamination or accidental answer leakage.

Traceability

  • Per-instance source task, model, scaffold, action count, and image mapping
  • Separate manifests for Terminal and Harbor acquisition lanes
  • Frozen development/test split with documented pre-freeze exposure
  • Failure-scene leak audits and source-failure replay evidence

Distribution

  • TrajRepair dataset layer declared CC BY 4.0
  • Repository code licensed separately
  • Upstream ownership, licenses, and citation obligations remain applicable
  • Evaluation-only canary embedded in examinee-facing artifacts