Doc2Harness:在编码智能体长时程工程框架上对LLM进行基准测试
研究论文 · 2026/10/15
我们提出 Doc2Harness,一个两阶段基准,直接评估长时程 harness 工程。第一阶段,构建模型在固定构建器 harness 中接收仅接口的契约骨架和整合了十二个前沿 harness 行为的开发文档,然后在隔离容器中构建完整候选 harness。第二阶段,冻结的候选 harness 在与构建环境分离的容器中运行,每个测试用例一个容器,并由脚本化模拟模型端到端驱动。我们通过四个可观察通道对每个测试用例评分:发送给模型的请求、磁盘上的文件、进程退出码和命令输出;阳性对照排除空洞通过。在十九个前沿模型上,每个模型在 328 个测试用例上进行三次独立构建评估,GPT-6 Astra 以 53.05% 的通过率最高,最弱模型为 27.44%,差距约二十六个百分点。即使最强模型也失败近一半测试用例,失败集中在跨切面功能如何拆分到模块。据我们所知,Doc2Harness 提供了首个测量长时程 harness 工程的确定性基准。
该基准填补了 harness 工程评估的空白,揭示了即使最强模型在长时程 harness 构建任务上也失败近半,为未来研究提供了明确的改进方向。
Agents driven by large language models are increasingly deployed on long-horizon tasks, where they use tools and modify real workspaces. How well they perform depends as much on the harness around the model as on the model itself. Existing benchmarks measure downstream task success under a fixed harness, leaving harness engineering itself unexplored. We propose Doc2Harness, a two-stage benchmark that evaluates long-horizon harness engineering directly. In Stage 1, a build model operating inside a fixed builder harness receives an interface-only contract skeleton and a development document that consolidates behavior across twelve frontier harnesses, and then constructs a complete candidate harness in an isolated container. In Stage 2, the frozen candidate harness runs in containers separate from the construction environment, one per test case, and is driven end to end by a scripted mock model. We score each test case using four observable channels, namely the requests sent to the model, the files on disk, the process exit code, and the command output; positive controls rule out vacuous passes. Across nineteen frontier models, each evaluated with three independent builds on 328 test cases, GPT-6 Astra achieves the highest pass rate at 53.05%, while the weakest model reaches 27.44%, a gap of roughly twenty-six percentage points. Even the strongest model fails nearly half of the test cases, and failures cluster around how cross-cutting functionality is split across modules. To our knowledge, Doc2Harness provides the first deterministic benchmark for measuring long-horizon harness engineering.