Paper: 2611.08417
Authors: E. Kelly Buchanan, Crystal Zhou, Scott W. Linderman, Christopher Ré (Stanford University, Cornell University)
Categories: cs.AI, cs.SE, cs.CL

The Gap

Autonomous coding agents (e.g., Claude Code, Codex, SWE-agent) represent the most economically consequential commercial deployments of frontier LLMs. Consequently, public agentic benchmarks—most notably Terminal-Bench—directly dictate enterprise purchasing decisions, VC funding, and foundational research priorities.

However, the AI community has historically treated evaluation suites as static, immutable datasets. In reality, agentic benchmarks are complex, multi-tiered software systems comprising Docker containers, dynamic network environments, grading oracles, test scripts, and shell execution budgets.

This static mindset causes an invisible, compounding crisis: Benchmark Maintenance Debt.

  1. Instruction-Verification Mismatch: As frontier models improve, they find novel, perfectly valid technical solutions. However, rigid assertion scripts (e.g., exact regex matches on terminal stdout or byte-for-byte binary diffs) reject correct completions.
  2. Task Bit Rot and Dependency Drift: Tasks that pull live apt packages, pip dependencies, external GitHub repositories, or REST APIs silently break when upstream software versions update.
  3. The Hidden Resource Trap: Benchmarks enforce arbitrary wall-clock execution limits. Slow execution environments or rate limits trigger artificial timeouts, punishing thorough models that take seconds longer to execute code.
                    THE BENCHMARK MAINTENANCE DEBT LIFECYCLE

  Task Design:                Agent Execution:              Verification:
  [ instruction.md ]  ───>    [ Docker Runtime $ _ ] ───>   [ Verifier & Oracle ]
  - Underspecified goals      - CPU/RAM limits throttled    - Overspecified unit tests
  - Hidden constraints        - Upstream APIs drift         - Rejects valid novel paths
  - Rigid assumptions         - Wall-clock timeout hit      - Flawed ground-truth oracles
                                        │
                                        ▼
  Result: Over 30% of benchmark tasks develop defects within months of release!

The Increment

One sentence: Stanford researchers Christopher Ré, Scott Linderman, and colleagues formalize Benchmarks as Software, conducting a systematic audit of Terminal-Bench 2.0 that uncovered defects across ~30% of its tasks, releasing Terminal-Bench 2.1 with repairs that swing agent scores by over 10 percentage points, while proving that wall-clock time budgets alone explain up to 30 percentage points of apparent harness performance gaps.

                  CONTINUOUS BENCHMARK VALIDATION PIPELINE

  [ Community Bug Reports ] + [ Execution Traces ] + [ Automated Oracle Checks ]
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   Evidence Collector Agent: Gathers Docker logs, diffs, & metrics      │
  └────────────────────────────────────────────────────────────────────────┘
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   Multi-Model Auditor (Claude Code + Codex): Triages into Taxonomies   │
  │   - Instruction-Verification Mismatch (57% of defects)                 │
  │   - Task Drift (43% of defects)                                        │
  │   - Environment & Resource Issues (29% of defects)                     │
  └────────────────────────────────────────────────────────────────────────┘
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   Human-Gated Repairs: Oracle regression tests + TB 2.1 Release         │
  └────────────────────────────────────────────────────────────────────────┘

Core Framework & Mechanisms

The authors establish a continuous validation and maintenance pipeline that treats benchmark suites identically to mission-critical open-source software:

1. The Three Primary Defect Taxonomies

Applying this rubric to the 28 repaired tasks in Terminal-Bench 2.0 revealed three distinct failure surfaces:

  • Instruction-Verification Mismatch (57% of defective tasks): The problem prompt and the grading assertion script disagree. For example, in the query-optimize task, the verifier script demanded byte-for-byte preservation of SQLite database file headers—a hidden requirement never mentioned in the prompt.
  • Task Drift (43% of defective tasks): Breaking changes in mutable external state, such as updated pip wheels, modified third-party API payloads, or changed public documentation. The repair pins all external environments hermetically.
  • Environment & Resource Issues (29% of defective tasks): Tasks that are solvable in theory, but fail because Docker containers run out of memory, disk inodes, or CPU time during grading.

2. Auditing Workflow & Multi-Agent Consistency

The validation architecture operates across three distinct roles:

  1. Evidence Collector: Extracts stdout, stderr, process metrics, and git diffs from successful and failed model runs.
  2. Auditor Agent: Classifies defects against standardized rubrics. Highly capable models (Claude Code with Opus 4.6 and Codex with GPT-5.4) achieve strong inter-agent agreement (κ=0.80\kappa = 0.80).
  3. Verifier Agent: Re-runs ground-truth reference oracles against proposed patch diffs to ensure the repair fixes the root cause rather than just relaxing test thresholds.

3. The Resource Allocation Confounder

Benchmarks measure a composite product of Model×Harness×Resource Budget\text{Model} \times \text{Harness} \times \text{Resource Budget}. The authors show that default wall-clock timeouts create severe evaluation illusions:

  • On GPT 5.4, relaxing the strict time budget closed a massive 20 percentage-point harness gap between rival agent harnesses.
  • On GPT 5.4 mini, extending execution time collapsed a 30 percentage-point gap down to just 5 percentage points.
  • Therefore, reported “agent framework superiority” is frequently nothing more than faster script execution under tight timeouts rather than superior reasoning.

Key Quantitative Results

The team evaluated 19 state-of-the-art agent setups across Terminal-Bench 2.0 and the newly repaired Terminal-Bench 2.1.

1. Benchmark Audit Impact on Agent Leaderboards

Agent Configuration (Model + Harness)Terminal-Bench 2.0 ScoreTerminal-Bench 2.1 ScoreAbsolute Accuracy DeltaLeaderboard Rank Shift
Claude Opus 4.6 + Claude Code80.2%87.6%+7.4 ppClimbed +3 ranks
GPT 5.5 + Codex88.5%93.1%+4.6 ppStable (#1)
GPT 5.4 + Codex82.0%85.2%+3.2 ppDown -1 rank
Gemini Pro 3.1 + Gemini CLI76.4%81.0%+4.6 ppStable
GLM 5.1 + Terminus-268.5%72.8%+4.3 ppStable
Claude Sonnet 4.6 + Claude Code71.0%76.5%+5.5 ppClimbed +1 rank
GPT 5.4 mini + Codex (Default Timeout)48.2%51.0%+2.8 ppHarness Gap: 30 pp
GPT 5.4 mini + Codex (Extended Timeout)72.0%76.2%+25.2 ppHarness Gap: 5 pp

2. Analysis of the Repaired Tasks

  • Concentrated Lift on Mismatches: Across tasks where verifiers were repaired, 5 tasks that previously had pass rates ≤15%\le 15\% jumped to >50%> 50\%, accounting for 62.7% of the total accuracy change across the repaired subset.
  • Rank Shuffling: While global Spearman correlation remains high (ρ=0.958\rho = 0.958), leaderboard positions shifted by up to three full ranks, invalidating several marketing claims made on TB 2.0.
  • Timeout Dominance: In 68% of failed Claude Code trials and 57% of failed trials across all harnesses, tasks failed purely because of wall-clock timeouts, not incorrect code.

Practical Implications

  1. Benchmarks Must Adopt Semantic Versioning & CI: Static benchmark releases are obsolete. Autonomous coding benchmarks must be maintained as active software projects with semantic versioning (2.0 →\to 2.1), regression tests, and public issue trackers.
  2. Decouple Timeout Latency from Capability: Benchmark designers must separate algorithmic competence from execution speed. Enforcing rigid wall-clock deadlines measures server hardware and API latency rather than cognitive reasoning.
  3. Auditing Verification Scripts: LLM providers must inspect grading assertions. When frontier models score lower on a benchmark after an update, it is frequently because the model found a novel, more concise solution that violated hardcoded assumptions in the test suite.

论文: 2611.08417
作者: E. Kelly Buchanan, Crystal Zhou, Scott W. Linderman, Christopher Ré (斯坦福大学, 康奈尔大学)
分类: cs.AI, cs.SE, cs.CL

问题背景与核心痛点(The Gap)

自主代码智能体(如 Claude Code、Codex、SWE-agent)是当下前沿大模型最具商业价值与落地潜力的核心应用场景。以 Terminal-Bench 为代表的终端与代码智能体基准,直接左右着企业的技术采购选型、数十亿美元的风投资金流向以及大模型团队的研究演进路线。

然而,AI 学界长期存在一个严重的认知误区:将评测基准视为一次性发布、永恒不变的静态数据集。事实上,智能体基准是一套极其复杂的全栈软件系统,涵盖 Docker 容器环境、动态网络依赖、判题脚本(Oracle/Verifier)以及资源限额配置。

这种将基准视为“静态考卷”的惯性思维,导致评测集迅速累积隐形而致命的**“基准维护技术债”(Benchmark Maintenance Debt)**:

  1. 指令与判题逻辑严重脱节(Instruction-Verification Mismatch):随着模型推理能力的飞跃,模型往往会探索出人类出题人未曾设想的高级解法。然而,许多判题脚本充斥着僵化的断言(例如对终端输出做死板的正则表达式正则匹配,或要求 SQLite 二进制文件字节级一致),导致原本正确的创新解被粗暴判定为 0 分。
  2. 环境腐烂与外部状态漂移(Task Drift):任务在运行时需要在线拉取公共 pip 包、apt 依赖或外部 API。当上游开源库版本迭代或网络接口变动时,原本完好的任务会大面积崩溃报错。
  3. 暗藏杀机的物理资源限额:评测框架普遍设置了严格的物理挂钟超时(Wall-Clock Timeout)。模型可能只需多运行几秒钟即可完成编译,却因偶发的网络波动或环境卡顿被直接判负,严重掩盖了模型的真实推理上限。
                     智能体评测全生命周期的“技术债”蔓延

  任务设计阶段:              智能体执行阶段:              最终判题阶段:
  [ 题目指令 instruction.md ] ──> [ Docker 执行环境 $ _ ]  ──> [ 判题脚本与基准答案 ]
  - 未明示的隐藏限制条件       - 容器 CPU/显存/磁盘超限      - 僵化死板的单元测试断言
  - 出题人的主观狭隘假定       - 外部依赖库更新导致报错      - 误杀模型创新探索的有效解
  - 缺乏防御性验证设计         - 偶发卡顿触发物理超时        - 损坏的 Ground-Truth Oracle
                                        │
                                        ▼
  恶果:即便发布前经过严格人工与红队审查,短短数月内近 30% 的评测任务均出现致命缺陷!

核心突破与创新(The Increment)

一句话总结:斯坦福大学 Christopher Ré 与 Scott Linderman 团队正式奠立了**“基准即软件”(Benchmarks as Software)的现代化评测工程体系:对权威基准 Terminal-Bench 2.0 进行了严密审计,挖掘出高达 30% 的缺陷任务,修复并发布了 Terminal-Bench 2.1;实验证明,修复后的基准使智能体得分波动超 10 个百分点,天梯榜发生多达 3 个位次的逆转,并首次量化证实物理超时时间被人为放大了高达 20-30 个百分点的框架差距**。

                    智能体基准持续验证与自动化修复流水线

  [ 社区缺陷 Issue 报告 ] + [ 历史运行轨迹 Trace ] + [ 确定性 Oracle 自动化回归 ]
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   证据收集智能体 (Evidence Collector):自动归集容器日志、Diff 与指标   │
  └────────────────────────────────────────────────────────────────────────┘
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   多模型审查仲裁 (Auditor Agent: Claude Code + Codex 双核校验)         │
  │   - 归类缺陷类型:指令断言脱节 (57%)、环境漂移 (43%)、资源瓶颈 (29%)   │
  │   - 自动生成候选 Patch 补丁与回归测试用例                              │
  └────────────────────────────────────────────────────────────────────────┘
                                     │
                                     ▼
  ┌────────────────────────────────────────────────────────────────────────┐
  │   人类终审验证与版本迭代:发布 Terminal-Bench 2.1 (消除维护技术债)      │
  └────────────────────────────────────────────────────────────────────────┘

关键机制与架构解析(Core Framework & Mechanism)

研究团队建立了一套像维护顶级开源软件一样维护评测基准的闭环工作流:

1. 三大典型缺陷分类体系(Defect Taxonomy)

针对 Terminal-Bench 2.0 中发现的 28 个问题任务,团队建立了精细的标准归类:

  • 指令与验证脱节(占比 57%):题目描述与判卷代码存在冲突。例如在 query-optimize 任务中,判题脚本强制要求数据库文件的二进制头部必须原样保留,而题干中对这一隐性约束只字未提。修复方案为明确题目契约,放宽与题目意图无关的生硬断言;
  • 任务状态漂移(占比 43%):依赖外部可变状态(如公共 pip 源、在线文档、公开 API)。修复方案是将所有运行时依赖彻底“密封”(Hermetic Pinning),剔除不稳定的外部网络依赖;
  • 环境与系统资源缺陷(占比 29%):由于 Docker 默认分配的内存过小或磁盘 Inode 耗尽,导致正确的模型代码无法完成编译运行。修复方案是将资源安全垫至少放宽至 Oracle 需求的 1.5 倍。

2. 多智能体协作审计与一致性检验

  • 证据组织者(Evidence Agent):负责剥离主观评价,系统化归纳社区 Bug 报告、Docker 运行 stdout/stderr、系统调用跟踪及基准答案差异;
  • 审计专家(Auditor Agent):由两家头部厂商顶尖模型(Claude Code + Opus 4.6 与 Codex + GPT-5.4)担当,在缺陷二值判断与初审上达成高达 κ=0.80\kappa = 0.80 的强统计一致性;
  • 判卷校验器(Verifier Agent):在沙盒中强制重新执行 Oracle 参考答案,拦截“只治标不治本”的过宽断言,确保修复不改变原任务的核心考察能力。

3. 资源配置如何严重扭曲性能结论

现有排行榜将性能粗暴折叠为单一数字,完全混淆了“模型推理能力”与“执行速度”。团队通过剥离变量测试发现:

  • 在 GPT 5.4 上,仅仅将物理超时阈值适当放宽,就抹平了不同智能体 Harness 之间原本高达 20 个百分点的断崖差距;
  • 在 GPT 5.4 mini 上,放宽时间限额更是将 30 个百分点的落后幅度断崖式收缩至仅 5 个百分点;
  • 这表明,过去许多声称某框架“大幅超越竞品”的评测结论,很大程度上只是框架在紧迫超时下的执行调度开销不同,而非模型思考能力存在本质代差。

关键实验评测与量化对比(Quantitative Results)

团队针对涵盖各大主流厂商的 19 款顶级智能体方案,在 TB 2.0 与全新发布的 TB 2.1 上展开了全面基准重测:

1. 基准版本修复前后的表现与排名巨震

智能体配置方案 (模型 + 执行框架)Terminal-Bench 2.0 得分Terminal-Bench 2.1 得分绝对准确率变动 (Delta)天梯榜排位变动
Claude Opus 4.6 + Claude Code80.2%87.6%+7.4 pp跃升 +3 名
GPT 5.5 + Codex88.5%93.1%+4.6 pp稳居第一 (#1)
GPT 5.4 + Codex82.0%85.2%+3.2 pp下滑 -1 名
Gemini Pro 3.1 + Gemini CLI76.4%81.0%+4.6 pp保持不变
GLM 5.1 + Terminus-268.5%72.8%+4.3 pp保持不变
Claude Sonnet 4.6 + Claude Code71.0%76.5%+5.5 pp提升 +1 名
GPT 5.4 mini + Codex (默认超时限额)48.2%51.0%+2.8 pp框架差距高达 30 pp
GPT 5.4 mini + Codex (放宽超时限额)72.0%76.2%+25.2 pp框架差距收窄至 5 pp

2. 缺陷任务的深层量化剖析

  • 断言误杀率触目惊心:在被修正的 28 个任务中,有 5 个原先全行业通过率不足 15%15\% 的任务,在修正了死板判卷代码后,通过率直接飙升至 >50%> 50\%,贡献了整体准确率增幅的 62.7%!
  • 天梯榜重新洗牌:尽管整体排序保留了高相关度(Spearman ρ=0.958\rho = 0.958),但由于各模型对修复题目的适应度不同,局部排名剧烈洗牌,多款模型名次跨度达 3 个位次。
  • 超时的绝对支配地位:在 Claude Code 的所有失败轨迹中,有高达 68% 的任务并非逻辑报错,而是单纯触发了物理挂钟超时。

实践启示与行业影响(Practical Implications)

  1. 评测基准必须推行语义化版本与 CI/CD:AI 工业界必须彻底破除“静态基准”迷信。智能体基准应遵循开源软件维护规范,引入语义化版本号(如 TB 2.0 →\to 2.1),并建立定期的自动化回归检查与 Issue 修复机制。
  2. 剥离执行时延与推理能力:设计评测集时,应将计算环境延迟、Token 吞吐开销与认知决策准确率解耦。强加严苛的真实挂钟倒计时,往往只是在度量测试机器的 CPU 负载而非 AI 智力。
  3. 当分数不合常理时,首选审查断言脚本:大模型开发者应当对异常的评测失误保持警惕。当新一代模型得分不升反降时,极大概率是模型找到了更高效但被老旧判卷脚本视为违规的新型实现路径。