Metraipolis › archive › dc_14c61d01dab0
Code That Works, Environments That Don't: Measuring Environment Reproducibility in AI-Generated Software — arXiv:2610.00425
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.00425
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-06T12:09:32.881Z
- SHA-256 of the archived text
068fbd3466db2607f1d9e7c2a04a658c613d10b676b9e39df83490387bcaca86- Stable URL of this page
https://metraipolis.com/documento/dc_14c61d01dab0
How to cite
Code That Works, Environments That Don't: Measuring Environment Reproducibility in AI-Generated Software — arXiv:2610.00425 — arXiv (en), https://arxiv.org/abs/2610.00425 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_14c61d01dab0 (Metraipolis archive dc_14c61d01dab0, sha256 068fbd3466db2607f1d9e7c2a04a658c613d10b676b9e39df83490387bcaca86)
BibTeX
@misc{dc14c61d01dab0,
title = {Code That Works, Environments That Don't: Measuring Environment Reproducibility in AI-Generated Software — arXiv:2610.00425},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.00425},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_14c61d01dab0; sha256 068fbd3466db2607f1d9e7c2a04a658c613d10b676b9e39df83490387bcaca86},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.00425. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Code generation has emerged as a central capability of large language models, with coding agents now able to produce functionally correct software projects from natural language prompts. However, functional correctness alone does not capture a critical dimension of generation quality: environment specification, defined as the accurate identification of the dependencies required to execute generated code, is equally critical. We develop an agent protocol for environment specification and introduce a three-layer framework comprising declared, runtime-installed, and necessary-and-sufficient dependencies to systematically assess coding agents for environment specification. Using this protocol, we evaluate the extent to which coding agents systematically misspecify software environment dependencies and how this misspecification varies across three agents, four languages, and fifty programming tasks. Our results show that current coding agents exhibit systematic generalization failures along this dimension, producing dependency specifications that are inconsistent, redundant, or incomplete in ways that functional tests do not detect. Across agents, dependency set agreement is as low as 7% for identical tasks, and newer agents show no meaningful improvement, suggesting the failure is not resolved by scale or recency. The largest divergence occurs between the declared and runtime dependency layers, implicating environment priors learned from the models' training distributions as the primary driver. Our findings establish environment specification as a distinct, measurable axis of code generation quality that current benchmarks do not capture, and motivate training objectives and evaluation protocols that jointly optimize for functional correctness and environmental portability. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-02 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.00425 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-06T10:21:28.069Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-10-02?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).