mlsanityData to 7 Oct 2026

Code That Works, Environments That Don't: Measuring Environment Reproducibility in AI-Generated Software

arXiv 2610.00425 ↗First posted 30 Sep 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 34 references that are in the map. First posted on arXiv 30 Sep 2026.

Builds on

13 of 34 references.

References · 13

  1. 2021Program Synthesis with Large Language Modelscited by 3,509
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2024A Survey on Large Language Models for Code Generationcited by 646
  4. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
  5. 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
  6. 2019Small World with High Risks: A Study of Security Threats in the npm Ecosystemcited by 36
  7. 2014An introduction to Docker for reproducible research, with examples from the R environmentcited by 25
  8. 2020An Empirical Study of Usages, Updates and Risks of Third-Party Libraries in Java Projectscited by 11
  9. 2022Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystemcited by 8
  10. 2018Debloating Software through Piece-Wise Compilation and Loadingcited by 6
  11. 2020A Comprehensive Study of Bloated Dependencies in the Maven Ecosystemcited by 5
  12. 2017Sciunits: Reusable Research Objectscited by 3
1 more
  1. 2020Coverage-Based Debloating for Java Bytecodecited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents
  2. 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
  3. 2026AI-Generated Smells: An Analysis of Code and Architecture in LLM and Agent-Driven Development
  4. 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
  5. 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer
  6. 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios
  7. 2025SetupBench: Assessing Software Engineering Agents' Ability to Bootstrap Development Environments
  8. 2026To What Extent Does Agent-generated Code Require Maintenance? An Empirical Study