[2604.03622] Toward Executable Repository-Level Code Generation via Environment Alignment
About this article
Abstract page for arXiv paper 2604.03622: Toward Executable Repository-Level Code Generation via Environment Alignment
Computer Science > Software Engineering arXiv:2604.03622 (cs) [Submitted on 4 Apr 2026] Title:Toward Executable Repository-Level Code Generation via Environment Alignment Authors:Ruwei Pan, Junlei Shen, Linhao Wu, Yueheng Zhu, Zixiong Yang, Yakun Zhang, Lu Zhang, Hongyu Zhang View a PDF of the paper titled Toward Executable Repository-Level Code Generation via Environment Alignment, by Ruwei Pan and 7 other authors View PDF HTML (experimental) Abstract:Large language models (LLMs) have achieved strong performance on code generation, but existing methods still struggle with repository-level code generation under executable validation. Under this evaluation setting, success is determined not by the plausibility of isolated code fragments, but by whether a generated multi-file repository can be successfully installed, have its dependencies and internal references resolved, be launched, and be validated in a real execution environment. To address this challenge, we propose EnvGraph, a framework for repository-level code generation that formulates repository executability as an environment alignment problem. EnvGraph jointly models two coupled conditions for successful repository execution, namely external dependency satisfaction and repository-internal reference resolution. It maintains a dual-layer environment representation, uses execution evidence to perform execution-evidence-based attribution, and guides repository generation through a unified targeted revision mechanism ...