Skip to content

Doc2Harness: Evaluating large language models' capability in long-horizon scaffolding engineering for coding agentsDoc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents

Hugging Face Daily Papers· arXiv:2610.20344· Yuyao Ge, Shenghua Liu, Peizhong Gao, Chendi Ge, Chenxu Liu, Yiwei Wang, Lingrui Mei, Baolong Bi, Jiayu Yao, Jiafeng Guo, Xueqi ChengInstitute of Computing Technology, Chinese Academy of Sciences; Tsinghua University; Peking University; Southeast UniversityIndexed by this site · 2026-10-15· Originally publishedAI updates

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

On 328 cases in Doc2Harness, GPT-6 Astra's three-time construction pass rate is 53.05%, and Hy3's is 27.44%.

Questions
Existing benchmarks use unit tests under a fixed harness to measure downstream success or failure and cannot directly measure whether a model can construct a coding agent harness from a specification. The authors believe the harness determines how tools, permissions, and sessions land in the environment.
Methods
The constructed model, in a fixed OpenCode, submits candidates based on documents merged from twelve harnesses and skeleton files containing only interfaces. The script mocks the model to drive each example black-box, judging from requests, files, exit codes, and command outputs; positive controls exclude empty passes.
Experiments and results
Nineteen models, each built three times, 328 cases. GPT-6 Astra's pass rate is 53.05%, Hy3's is 27.44% (Table 2). The authors state that even the strongest model fails nearly half the cases; the strong-weak gap in permissions is 50.8 percentage points (Table 3).
Limitations and future work
The authors point out that the protocol is not a build–evaluate–fix loop; the pass rate submitted early is a lower bound, and behavioral feedback improvements after freezing are not tested; same-source variants may still fail together. The experiment covers nineteen models, 328 cases, one run per case, and is judged as a deterministic assertion.
Experimental setupGPT-6 Astra、Claude Opus 5 et al. · Doc2Harness · pass rate
Evaluated models
GPT-6 AstraClaude Opus 5Qwen3.8 Max 0902GPT-5.6-solGrok 4.7GLM 5.3MiMo-V2.6-FlashStep 5 PreviewDeepSeek V4.1 FlashHy4 previewKimi K3Claude Opus 4.8GPT-5.5Doubao Seed 2.1 ProClaude Opus 4.7DeepSeek V4 ProClaude Opus 4.6GLM 5.2Hy3
Benchmarks
Doc2Harness
Metrics
pass rate
AI summaryThe researchers propose Doc2Harness, a two-stage benchmark that directly evaluates coding agents' long-horizon scaffolding engineering capability. In the first stage, a builder model works within a fixed builder harness, using an interface-only contract skeleton and a development document summarizing the behavior of twelve frontier harnesses, to build a complete candidate harness in an isolated container. In the second stage, the frozen candidate harness is run in a separate container, one container per test case, driven end-to-end by a scripted mock model. Scoring is based on four observable channels—requests sent to the model, disk files, process exit codes, and command output—with positive controls to rule out vacuous passes. Across 19 frontier models, three independent builds each, and 328 test cases, GPT-6 Astra achieved the highest pass rate at 53.05%, the weakest model at 27.44%, a gap of about 26 percentage points, with failures concentrated in how cross-module functionality is partitioned. The authors state this is the first deterministic benchmark for long-horizon scaffolding engineering.

The researchers propose Doc2Harness, a two-stage benchmark that directly evaluates coding agents' long-horizon scaffolding engineering capability. In the first stage, a builder model works within a fixed builder harness, using an interface-only contract skeleton and a development document summarizing the behavior of twelve frontier harnesses, to build a complete candidate harness in an isolated container. In the second stage, the frozen candidate harness is run in a separate container, one container per test case, driven end-to-end by a scripted mock model. Scoring is based on four observable channels—requests sent to the model, disk files, process exit codes, and command output—with positive controls to rule out vacuous passes. Across 19 frontier models, three independent builds each, and 328 test cases, GPT-6 Astra achieved the highest pass rate at 53.05%, the weakest model at 27.44%, a gap of about 26 percentage points, with failures concentrated in how cross-module functionality is partitioned. The authors state this is the first deterministic benchmark for long-horizon scaffolding engineering.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing benchmarks test downstream tasks under a fixed harness and do not directly evaluate harness construction.

    What is to be evaluated is whether a model can construct a complete coding agent harness over a long horizon from a specification, not whether it completes downstream tasks under a fixed harness.

    • Deployment scenario: the authors believe that as LLM coding agents enter more complex environments, the harness manages the interaction loop, tool execution, context, permissions, session state, failure recovery, and result verification, thereby determining how much of the model's capability reaches the environment. Step-by-step supervision of every step has become difficult, so recursive self-improvement emerges: the agent does tasks, looks at results, modifies its own harness, and uses it for the next task.
    • Existing standards are insufficient: the authors name SWE-bench Pro, NL2Repo-Bench, and Commit0, and believe their interactive unit tests cannot be directly transferred. The same feature can have multiple implementations within a harness, but ordinary unit tests observe through a fixed interface; the harness itself does not complete downstream tasks, so correctness must be judged by the model that drives it. The authors also believe mature open-source repositories may appear repeatedly in training corpora, whereas harnesses have appeared only in recent years and are updated frequently.
    • Reducing knowledge dependence: the development documentation is rewritten after merging and disambiguating user documentation from twelve frontier harnesses; the contract skeleton is further distilled from mini-swe-agent, keeping only interfaces and removing internal implementation. Stage 2 uses a mock model with preset scripts to avoid instability from real LLMs.
    • Proposed benchmark: Doc2Harness separates construction and evaluation. The construction model delivers a candidate in a fixed builder harness; after freezing, a mock model runs a complete session in an isolated container, judging from requests sent to the model, disk files, process exit codes, and command output, with positive controls excluding vacuous passes. The authors state that, to their knowledge, this is the first deterministic benchmark measuring long-horizon harness engineering.
  2. What related research exists?

    Related work evaluates downstream tasks or existing harnesses; the authors state that this paper deterministically evaluates construction itself.

    Section §5 of the paper discusses two groups: code/SWE benchmarks and harness benchmarks. The experiments do not list previous construction methods as baselines; instead, they compare nineteen construction models on Doc2Harness.

    Code completion and repository-level generation

    • Local completion: HumanEval (Chen et al., 2021) uses unit tests to judge individual functions; MBPP (Austin et al., 2021) and EvalPlus (Liu et al., 2023) extend this paradigm to larger scale.
    • In-repository modification: SWE-bench (Jimenez et al., 2024) requires solving real issues and judges with tests from the corresponding pull requests. Later variants handle contamination (Deng et al., 2026), end-to-end performance on freelance tasks (Miserendino et al., 2025), or derive specifications from documentation changes (Jiang et al., 2026).
    • Generation from scratch: Commit0 (Zhao et al., 2025) and NL2Repo-Bench (Ding et al., 2026) require rebuilding published libraries, judged by provided or upstream unit tests. RepoZero (Zhang et al., 2026b) compares output equivalence with another implementation; ProgramBench (Yang et al., 2026) uses reference executables to generate end-to-end tests via fuzzing; DeepSWE (Huang et al., 2026b) handwrites a verifier for each task, accepting any implementation of the requested feature set. The introduction argues that the unit test standards of SWE-bench Pro, NL2Repo-Bench, and Commit0 cannot be directly used for harnesses.

    Evaluating existing harnesses

    • Changing harness or configuration: the paper relays Claw-SWE-Bench (Zheng et al., 2026): after fixing prompt, budget, workspace, and evaluator, harness choice changes scores by 27.4 points, and model choice by 29.4 points. Harness-Bench (Yao et al., 2026) isolates configuration-level effects on 106 sandbox tasks; the paper relays its conclusion: capabilities should be reported at the model–harness configuration level, not attributed solely to the base model.
    • Individual capabilities: other works evaluate rule following (Huang et al., 2026c), skill retrieval under progressive disclosure (Han et al., 2026), component lifecycle reasoning (Sileo and Kachler, 2026), or safety along policy ladders and persistent carriers (Davidovich et al., 2026; Bai et al., 2026; Zhang et al., 2026a) on fixed harnesses. Ke et al. (2026) vary a given harness in stages and ask whether the agent can keep up.

    Having models produce or revise harnesses

    • Starting from existing implementations: Wu et al. (2026), Huang et al. (2026a), and Ursekar et al. (2026) have models produce or revise harnesses based on existing harnesses and their execution feedback. The authors point out that gains are measured on downstream tasks and cannot be separated from simply increasing test-time search; the paper states this confound has been noted in that literature (Wang et al., 2026).
    • Output-level scoring: the paper cites Liu et al. (2026) to illustrate that a harness can return correct and harmless answers along trajectories that reach unauthorized resources, and output-level evaluation cannot see such failures. The authors state that the above studies all infer harness quality from downstream tasks and do not judge case by case whether the harness's own behavior conforms to the specification.

    Baselines in this paper's experiments

    • No external method baselines: the evaluated objects are nineteen construction models, and the cases are Doc2Harness's 328 cases. The Stage 1 builder harness is fixed to OpenCode and is not a compared model.

    In §5.3, the authors summarize the difference in three points: the deliverable does not correspond to any published implementation, and the development documentation consolidates twelve frontier harnesses into self-consistent clauses; candidates are driven by a mock model with preset scripts, evaluation is deterministic, and what is judged is the harness itself; running scripted sessions black-box and reading effects from four channels makes "rejected operations must not occur" judgeable case by case, with positive controls confirming the observation premise. The authors state this is the first benchmark that can deterministically evaluate a model's ability to develop harnesses.

  3. How does the paper address this problem?

    Two stages: first, build within fixed OpenCode according to the documentation and interface skeleton; then, a scripted mock model makes black-box judgments.

    Doc2Harness separates construction and evaluation: the construction model submits candidates in a fixed builder harness according to the development documentation and a skeleton containing only interfaces; after freezing, a scripted mock model drives them black-box in an isolated container, using four-channel assertions and positive controls to obtain a pass rate.

    Two-stage task

    • Stage 1: the builder consists of the evaluated construction model plus a fixed builder harness. It reads the development documentation, starts from the contract skeleton, constructs a candidate in an isolated container, and ends with a single submission; no submission means no delivery.
    • Formal check: at each submission, a contract check verifies compilability and installability, presence of required commands, absence of placeholder stubs, and presence of the three contract interfaces, without running any test cases. If it passes, the candidate is frozen and no longer modified; if it fails, it is returned and can be resubmitted within the quota. The scored candidate is the state submitted when the model declares completion, not the state at which the time limit runs out.
    • Stage 2: in containers isolated from the build environment, one container per case. A mock model drives the candidate according to a preset script and runs one complete session. The four channels are requests sent to the model, disk files, process exit codes, and command output.
    • Which side is fixed: Stage 1 uniformly uses the open-source framework OpenCode, not Claude Code or Codex CLI. The authors' reason is that the latter two are developed by model vendors together with their own models, which may advantage the Claude and GPT series. Stage 2 does not use a real LLM. What is ranked is the construction model, not individual candidates.

    Development documentation and contract skeleton

    • Three documentation steps: collect a feature list, write clauses, and disambiguate. Clauses are the basic unit. Most clauses specify the external behavior of one feature; consistency rules specify cross-feature and cross-section relationships.
    • Twelve sources: Claude Code, Kimi Code, Gemini CLI, Qwen Code, OpenCode, OpenClaw, Codex CLI, Aider, OpenHands, Cline, Crush, Cursor. Candidate features are extracted first, then invocation forms, parameter semantics, and boundary behaviors are added, merged, and deduplicated.
    • Clause scope: Table 1 covers deliverables and runtime interfaces, built-in tools, top-level commands and subcommands, permissions and roles, global flags, in-session commands, persistent memory, convention files, consistency rules, exit codes, and the API driving automated evaluation. Except for the three contracts, implementation methods are not constrained; the effect of each feature must be observable from one of the four channels.
    • Disambiguation and skeleton: commands with overlapping semantics are merged; context compression adopts /compact. Same-name different-concept items are split: read-only constraints go to permissions, proposal and application of modifications go to roles. The skeleton is a mini-swe-agent with the implementation removed: five Python source files totaling about seventy lines, plus an installation script, entry script, and project configuration. The three immutable contracts are the CLI, the headless entry point, and the API driving automated evaluation. The authors state that a representative candidate has about 30 Python source files and about 16,000 lines, of which about 99.6% is written by the construction model beyond the skeleton. Each build occurs in a newly created empty container with no external network except the specified model gateway; if preflight fails, the build is aborted and produces no result.

    Test case synthesis

    • Three methods: in Figure 3, the first two broaden coverage and the third deepens checks. Methods are switched after diminishing marginal returns and are used alternately. Cases must anchor to a clause and must be able to distinguish implementations; whether they truly distinguish is determined only after evaluation. The paper does not report the number of cases contributed by each method.
    • Public issues: issues are pulled from Claude Code, OpenCode, Gemini CLI, and Kimi Code; after filtering out pull requests, the counts are 9,868, 5,438, 4,831, and 946, totaling 21,083. Sorted by relevance to the documentation, human review continues until marginal returns fall below the cost of continued review. Clustered by phenomenon, one candidate per cluster; among those anchoring the same clause with effects too close, only the one with more complete materials is kept, and it must be writable as a deterministic assertion. The authors expect substantial overlap between defects exposed by a mature harness and errors in the harness written by the construction model.
    • Cross-implementation comparison: candidate source code is divided into modules by documented features; for the comparison target (the examples in the text are Kimi Code and Qwen Code), the same division is used to examine module-by-module omissions and divergences. Only differences traceable to the purpose of a clause become candidates.
    • Univariate expansion: starting from seeds that already distinguish implementations, only the scenario is changed while assertions are kept, changing one variable at a time: tool, input form, error parameter, or result return location. Those too close to the seed are discarded. Clauses without anchored cases cannot serve as seeds and can only be supplemented by the first two methods.

    Judgment and positive control

    • Vacuous pass: passing does not necessarily mean the tested requirement is implemented. Path-escape-type assertions can hold both when "the read tool intercepts out-of-bounds reads" and when "the read tool cannot read files at all"; the latter is a vacuous pass.
    • Gating: a positive control shares the scenario and fixture with the corresponding case, changing only the input or access path, and asserts a result that must occur when the observation premise holds. If the control fails, the entire group of cases is recorded as FAIL regardless of their own status. Controls are not counted in the pass rate. PASS also requires that the case itself passes and that every control gating it passes.
    • Three types: Channel confirms that tool results reach the observed channel; Same form uses the same input form, changing only the access path, to exclude failure even without that constraint; Reverse excludes implementations that reject such inputs for other reasons. The paper uses symlinks and read tools to illustrate these three types.

    Run quotas

    • Stage 1: OpenCode 1.17.0, given one task description via the non-interactive entry point opencode run; this entry point advances only one round at a time, so --continue is used to resume, up to twenty-four rounds or until wall-clock time runs out. Context compaction triggers at eighty percent of the model window. Each build has two hours of wall-clock time and at most three submissions; whichever comes first ends the build.
    • Stage 2: each case executes once in its own container and fixture, with a 900-second timeout recorded as FAIL. Both stages run on the same AMD EPYC 7K83, with 48 logical processors and 128 GB of memory. The suite has 328 cases total, divided into nine mutually exclusive categories by documentation content and the three external contracts.
  4. What experiments did the paper conduct?

    GPT-6 Astra's pass rate is 53.05%, and the weakest, Hy3, is 27.44% (Table 2).

    Experimental Setup

    • Models tested: nineteen models from eleven vendors: Claude Opus 4.6, Opus 4.7, Opus 4.8, Opus 5, GPT-5.5, GPT-5.6-sol, GPT-6 Astra, Qwen3.8 Max 0902, Kimi K3, GLM 5.2, GLM 5.3, DeepSeek V4 Pro, DeepSeek V4.1 Flash, Hy3, Hy4 preview, Doubao Seed 2.1 Pro, MiMo-V2.6-Flash, Grok 4.7, Step 5 Preview. Three independent builds per model. Table 2 writes the first four as Opus 4.6/4.7/4.8/5, and writes Qwen3.8 Max 0902 as Qwen3.8 Max.
    • Benchmark scale: Doc2Harness, 328 cases, nine categories (Table 2, Figure 4): session state 84, file operations 75, permissions 61, headless 40, direct drive 33, interactive terminal 20, artifact checks 7, startup 7, extension discovery 1.
    • Control: no external method baseline. The builder harness is fixed to OpenCode 1.17.0; Stage 2 is driven by a mock model from a preset script, not by the LLM under test.
    • Metric: the main metric is pass rate. The rightmost column of Table 2 is the mean ± standard deviation of the three scores on the 328 cases. Positive controls do not enter any denominator.
    • Judgment: no LLM judging. Deterministic assertions on four channels; a 900-second timeout is recorded as FAIL. The paper does not report manual review.
    • Budget: Stage 1 at most twenty-four rounds, two hours, three submissions, compression threshold 80%. Stage 2 one run per case. The server is an AMD EPYC 7K83, 48 logical processors, 128 GB memory.

    Main Results

    According to Table 2. Cells are percentages; the overall column is the mean ± standard deviation over three builds. Only eight models are listed, including the highest and the lowest.

    Swipe horizontally to read the table

    ModelPermissionsFile operationsSessionOverall
    GPT-6 Astra71.646.744.053.05±0.25
    Opus 563.439.638.146.65±1.80
    Qwen3.8 Max61.238.243.345.83±0.14
    Grok 4.754.650.728.243.50±2.49
    Kimi K343.240.925.438.31±1.28
    Opus 4.620.837.321.828.25±0.14
    GLM 5.223.032.921.827.64±1.01
    Hy328.431.119.427.44±0.43

    Omitted: GPT-5.6-sol, GLM 5.3, MiMo-V2.6-Flash, Step 5 Preview, DeepSeek V4.1 Flash, Hy4 preview, Opus 4.8, GPT-5.5, Doubao Seed 2.1 Pro, Opus 4.7, DeepSeek V4 Pro. The nineteen-model overall mean in Table 2 is 38.30%.

    • Saturation level: the authors state that on this cohort the suite is neither saturated nor unable to distinguish models; even the strongest model fails nearly half of the cases. The authors state that the highest and lowest differ by about twenty-six percentage points. Figure 1 orders models by overall pass rate from high to low, each entry being the mean of three builds; exact values are according to Table 2.
    • Ordinary and boundary: the authors report that on ordinary scenarios Opus 5 is 80.68% and GPT-6 Astra is 72.46%; on boundary scenarios GPT-6 Astra is 48.97% and Opus 5 is 37.02% (§4.1). The authors consider the gap between the two to be concentrated in boundary clauses. The paper does not state the number of cases in each of these two classes.
    • Rankings need not agree: as visible in the table, the relative ordering on the file operations column need not match the overall ranking. Full category rankings are in the next section.

    Categories and Discrimination

    • Strong-weak gap: in Table 3, permissions averages 43.7%, with a strong-weak gap of 50.8 percentage points, and 51 of 61 cases distinguish models. file operations averages 39.6%, with a strong-weak gap of 20.9 percentage points. interactive terminal averages 79.9%, which the authors state is approaching saturation. artifact checks averages 100.0%, with a strong-weak gap of 0.0; extension discovery averages 0.0%.
    • Floor and ceiling: the floor, where all candidates fail, is 56 cases; the ceiling, where all pass, is 16 cases; 256 cases can distinguish rankings (Table 3). The floor is concentrated in direct drive, session state, permissions and headless. direct drive has an average pass rate of 18.8%, with 17 floor cases and 16 discriminating cases out of 33.
    • Rankings and correlation: among the six main categories with at least 20 cases, rankings differ by at most sixteen positions: Grok 4.7 is first on file operations and eleventh on session; Opus 4.6 is third on direct drive and nineteenth on permissions; Hy4 preview is fifth on session and nineteenth on direct drive. GPT-6 Astra leads four of these categories, and Grok 4.7 and Qwen3.8 Max each lead one of the remaining. All fifteen pairwise correlations are positive, mean +0.521; overall pass rate is positively correlated with all six categories, five of them between 0.69 and 0.94. The authors consider this consistent with capability varying largely along one dimension, but rankings still vary substantially by category. KR-20 over all cases is 0.913; the authors state this indicates high internal consistency.

    Source Structure of Candidate Harnesses

    • Scale: §4.3 analyzes all scored candidates. Modules are Python source files in the root directory; lines of code are non-blank lines. In Table 4, model-mean lines of code range from 1,271 (GPT-5.5) to 16,681 (Qwen3.8 Max); across all builds the range is 1,062 to 19,208. 95.9% of the variance in lines of code is between models; the coefficient of variation across three builds of the same model averages 12.7%, and across the means of the nineteen models is 60.1%. The between-model variance shares for number of modules, lines per module, and largest-module share are 87.9%, 80.6%, 95.7%.
    • Relation to score: the correlation of lines of code with pass rate is 0.614 (all builds) and 0.629 (model means). Controlling for lines of code, the partial correlation of number of modules with pass rate is -0.423, holding between -0.484 and -0.309 under leave-one-model-out checks; the partial correlation of lines per module is +0.504, and 0.312 to 0.649 under the same checks. The authors consider implementation scale to be determined mainly by model identity, that more modules means a lower score, and that splitting is not without cost. The Conclusion states that failures are not random but concentrated in whether the same functionality is split across multiple modules; the paper does not report the number of cases classified by failure cause.
    • Figure and unexplained row: in Figure 5, the left panel has one point per model, the mean of three builds, with a least-squares fit and its 95% confidence band; the right panel connects the three builds of each model with line segments. The paper does not give the coordinates of the points in the figure. In Table 4, GPT-5.5 is 2.7 modules with a largest module of 78%; the paper does not separately explain this row.

    Other Ablations and Analyses

    The paper has no parameter ablation. The remaining statistics are as follows.

    • Of the 328 cases, 130 are gated by at least one positive control; 114 by one, 15 by two, and one by three (§2.5).
    • The broadest control gates six cases; the next two each gate five cases (§2.5).
    • Figure 4: file operations 50/75, permissions 30/61, session state 23/84, headless 15/40, direct drive 8/33, interactive terminal 1/20, startup 2/7; artifact checks is marked NA.
    • The authors state that artifact checks is marked NA because the contract check already fully covers whether the deliverables checked by that category are complete.
    • Table 2 category means: headless 26.4%, Other (15 cases) 76.3%.
    • Table 4: GPT-6 Astra averages 7,964 lines, 12.3 modules, largest module 21%; Doubao Seed 2.1 Pro is 41.7 modules, largest module 8%.
  5. What are some points that can be further explored?

    The authors point out that the protocol measures only a single build, and same-origin variants may fail together.

    Limitations and future directions noted by the authors

    • Single build: the protocol measures a single build. Each build has at most three submissions, not an iterative build–evaluate–repair loop (§6 Limitations).
    • Early submission is a lower bound: the contract check examines form, not behavior; how many revisions a candidate receives depends on when the model submits; early submitters' pass rates are lower bounds, not upper bounds (§6).
    • No measurement of post-freeze improvement: the protocol does not measure improvement of the candidate harness after freezing, based on behavioral feedback (§6).
    • Correlated failures from defects: multiple cases can surround the same feature. Univariate expansion derives multiple variants from the same seed; after distance checks remove overly close candidates, the remaining variants are still related, and a single defect can cause correlated failures (§6).

    Limitations and Conclusion do not list further experiments. Conclusion only expresses the hope that Doc2Harness will be used as a benchmark for measuring this kind of construction capability.

    Experimental coverage

    • Models: nineteen frontier models from eleven vendors are evaluated, with three independent builds per model (§3, Table 2).
    • Cases: 328 cases in nine categories; 130 cases have positive controls; controls are not counted in the pass rate (§2.5, Table 2).
    • Protocol: Stage 1 fixes OpenCode 1.17.0, with at most twenty-four rounds, two hours, and three submissions; Stage 2 is driven by a scripted mock model, once per case, 900 seconds (§2.1, §3).
    • Judgment and statistics: four-channel deterministic assertions, no LLM review. The paper reports KR-20, correlations among the six categories, and correlations and partial correlations of lines of code and module count with pass rate (§4.2, §4.3). The paper does not report agreement between human and automatic judgment, nor query counts per model.
    • Material sources: development documentation comes from user documentation of twelve frontier harnesses; issue mining uses four of the public repositories, totaling 21,083 after filtering out pull requests (§2.2, §2.3).
  6. Summarize the main content of the paper

    Using deterministic black-box tests to evaluate harness construction, GPT-6 Astra's pass rate is 53.05%.

    Doc2Harness uses two-stage, deterministic black-box testing to measure whether a model can construct a coding agent harness from a specification.

    • Problem: existing SWE benchmarks mostly use task-provided tests under a fixed harness to look at downstream success or failure. The authors believe this cannot directly judge a harness: the same feature can have multiple implementations, and a harness does not complete downstream tasks on its own. Harnesses appeared late and update quickly, so evaluation also emphasizes generalization.
    • Approach: the construction model, within fixed OpenCode, submits a complete candidate in an isolated container based on development documentation merged and disambiguated from twelve frontier harnesses, and a skeleton declaring only interfaces. After the formal check passes, it is frozen. A scripted mock model then drives each case and judges from requests, disk files, exit codes, and command output; positive controls exclude vacuous passes where the feature did not run. 328 cases are divided into nine categories.
    • Main results: nineteen models, three builds each. GPT-6 Astra's pass rate is 53.05%±0.25, and Hy3's is 27.44%±0.43 (Table 2). The authors state the gap is about twenty-six percentage points, the suite is not saturated, and the strongest model still fails on nearly half. On ordinary scenarios, Opus 5 is 80.68% and GPT-6 Astra is 72.46%; on boundary scenarios, they are 37.02% and 48.97%, respectively (§4.1). The paper does not state the number of cases in each type.
    • Categories and structure: the permission category has a strength difference of 50.8 percentage points, and 51 of 61 cases can distinguish models (Table 3). Across the six main categories, ranks differ by at most sixteen positions, all fifteen pairs of correlations are positive, with a mean of +0.521. After controlling for lines of code, the partial correlation between module count and pass rate is -0.423 (§4.3). The authors believe higher-scoring candidates tend to put cross-cutting features into fewer modules, with failures concentrated on whether the same feature is split; the paper does not give case counts by failure cause.
    • Authors' conclusion: the authors state that Doc2Harness is the first benchmark that can deterministically evaluate a model's ability to develop harnesses, and they hope it will be used to measure this kind of construction capability. The authors also state explicitly that the protocol is not a repair loop with behavioral feedback, that early submitters' pass rates are lower bounds, and that same-origin variants can still fail together due to the same defect.
Read originalhuggingface.co