The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents

Camilo Chacón Sartori
3/25/2026
cs.SEcs.AIcs.MA

No official code found. Best implementation: camilochs/the_specification_gap (2 stars, MIT, last commit 2026-03-19).

Abstract

When multiple LLM-based code agents independently implement parts of the same class, they must agree on shared internal representations, even when the specification leaves those choices implicit. We study this coordination problem across 51 class-generation tasks, progressively stripping specification detail from full docstrings (L0) to bare signatures (L3), and introducing opposing structural biases (lists vs. dictionaries) to stress-test integration. Three findings emerge. First, a persistent specification gap: two-agent integration accuracy drops from 58% to 25% as detail is removed, while a single-agent baseline degrades more gracefully (89% to 56%), leaving a 25--39 pp coordination gap that is consistent across two Claude models (Sonnet, Haiku) and three independent runs. Second, an AST-based conflict detector achieves 97% precision at the weakest specification level without additional LLM calls, yet a factorial recovery experiment shows that restoring the full specification alone recovers the single-agent ceiling (89%), while providing conflict reports adds no measurable benefit. Third, decomposing the gap into coordination cost (+16 pp) and information asymmetry (+11 pp) suggests that the two effects are independent and approximately additive. The gap is not merely a consequence of hidden information, but reflects the difficulty of producing compatible code without shared decisions. These results support a specification-first view of multi-agent code generation: richer specifications are both the primary coordination mechanism and the sufficient recovery instrument.

View on arXivView PDF

Code Implementations(1)

MIT

The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents

20Python, MakefileMar 18, 20267 months agoMIT

Similar Papers

Cite this paper

@article{sartori2026specification,
  title  = {The Specification Gap: Coordination Failure Under Partial Knowledge in Code Agents},
  author = {Camilo Chacón Sartori},
  year   = {2026},
  eprint = {2603.24284},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.24284v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.24284.svg)](https://codeofpaper.com/paper/2603.24284)

Discussion