When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents
Organizations: Purdue University
Abstract
Current coding-agent benchmarks usually pro- vide the full task specification upfront. Real research coding often does not: the intended system is progressively disclosed through in- teraction, requiring the agent to track durable design commitments across a long session. We introduce a benchmark for this setting and study faithfulne Ss Loss U nder eM ergent s Pecification (SLUMP), defined as the reduc- tion in final implementation faithfulness un- der emergent specification relative to a single- shot specification control. The benchmark con- tains 20 recent ML papers (10 ICML 2025, 10 NeurIPS 2025), 371 atomic verifiable compo- nents, and interaction scripts of approximately 60 coding requests that progressively disclose the target design without revealing the paper itself. Final repositories are scored with a five-level component-faithfulness rubric and accompanied by an exposure audit to verify that scored components are recoverable from the visible interaction. Evaluated on Claude Code and Codex, the single-shot specification control achieves higher overall implementation fidelity on 16/20 and 14/20 papers, respectively. Structural integration degrades under emergent specification on both platforms, while seman- tic faithfulness loss is substantial on Claude Code and small on Codex. As a mitigation case study, we introduce ProjectGuard, an exter- nal project-state layer for specification tracking. On Claude Code, ProjectGuard recovers 90% of the faithfulness gap, increases fully faith- ful components from 118 to 181, and reduces severe failures from 72 to 49. These results identify specification tracking as a distinct eval- uation target for long-horizon coding agents.
Figures & tables
| Score | Label | Definition |
|---|---|---|
| 0 | Absent | No code attempts this component. |
| 1 | Wrong | Code attempts the component but implements logic inconsistent with the specification. |
| 2 | Simplified | Code implements a degraded or approximate version of the intended component. |
| 3 | Equivalent | Code differs in form but preserves the same functional behavior and system role. |
| 4 | Faithful | Code closely matches the intended formulation and architectural realization. |
| Metric | A1–Judge | A2–Judge | A1–A2 |
|---|---|---|---|
| Weighted (quadratic) | 0.927 | 0.882 | 0.930 |
| Exact-match accuracy | 91.7% | 86.7% | 88.3% |
| Spearman | 0.938 | 0.899 | 0.932 |
| Within | 97.5% | 96.7% | 99.2% |
| Boundary disagr. (2–3) | 1.8% | 4.9% | 5.2% |
| Boundary disagr. (3–4) | 3.3% | 6.2% | 7.9% |
| Platform / Condition | MCF | DIR | IF50 |
|---|---|---|---|
| Claude Code / Emergent | 2.718 | 0.149 | 0.414 |
| Claude Code / Single-shot | 3.031 | 0.303 | 0.530 |
| Codex / Emergent | 3.242 | 0.148 | 0.479 |
| Codex / Single-shot | 3.245 | 0.289 | 0.550 |
| Case | Description |
|---|---|
| Committed design | Three-stream residual update committed in the visible interaction by turn 40/97: scalar state receives summed EU+SH deltas; coordinates receive an EU delta; SH features receive an SH delta. |
| Emergent | Final integrated model bypasses the earlier module, drops the coordinate update, and replaces the summed scalar residual with separate h_eu / h_sh paths. Score: Simplified (2/4). |
| Single-shot | Final model preserves all three residual paths in one layer module, including the coordinate update and summed scalar residual. Score: Faithful (4/4). |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| ID | Venue | Paper Title | # Comp. | # Req. |
| P1 | NeurIPS 2025 | ASGO: Adaptive Structured Gradient Optimization | 14 | 60 |
| P2 | ICML 2025 | AtlasD: Automatic Local Symmetry Discovery | 12 | 49 |
| P3 | NeurIPS 2025 | Capturing Polysemanticity with PRISM: A Multi-Concept Feature Description Framework | 16 | 60 |
| P4 | ICML 2025 | Curvature Enhanced Data Augmentation for Regression | 12 | 61 |
| P5 | NeurIPS 2025 | DualEqui: A Dual-Space Hierarchical Equivariant Network for Large Biomolecules | 22 | 60 |
| P6 | ICML 2025 | Hierarchical Equivariant Policy via Frame Transfer | 14 | 57 |
| P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 | P11 | P12 | P13 | P14 | P15 | P16 | P17 | P18 | P19 | P20 | Mean | ||
| MCF Rec. (%) | CC | +22 | 0 | 100 | +150 | +70 | +167 | +250 | +100 | +33 | +94 | +5 | +36 | 200 | 75 | +0 | 0 | +111 | +0 | +200 | +150 | +51 |
| Codex | 600 | — | 20 | +33 | 56 | — | +29 | 100 | +75 | 24 | 8 | +32 | 45 | 33 | +11 | +67 | +80 | +57 | 20 | +200 | 18 | |
| DIR (%) | CC | 47 | 10 | +48 | +1125 | +120 | +955 | +24 | 58 | +13 | +1 | +7 | +24 | 22 | +19 | 8 | +7 | +83 | +12 | 54 | — | +118 |
| Codex | +15 | +67 | +49 | +54 | +55 | 71 | 52 | +61 | — | +269 | 23 | +122 | +58 | +171 | +21 | +240 | +292 | +19 | 9 | +99 | +76 | |
| IF50 Rec. (%) | CC | +118 | 13 | +5 | +482 | +27 | +92 | +142 | 11 | +80 | +104 | 8 | +73 | +355 | 6 | +19 | +13 | +41 | 42 | +15 | +119 | +80 |
| Codex | 138 | 109 | +14 | +60 | 55 | +66 | 71 | +102 | +82 | +92 | +5 | +77 | +19 | +29 | 39 | +141 | +86 | 9 | 9 | +68 | +21 |
AI Coding Agents
AI coding agents use language models and software tools to plan, edit, test, and maintain code with varying levels of autonomy.
See all 326 papers