From Reading Code to Reading Spec: A Verified Layer for LLM-Driven Codebase Maintenance
Organizations: Portland State University, USA · Clemson University, USA
Abstract
The rapid growth of LLM-generated code increases software complexity and the maintenance burden on engineers. While LLMs offer a potential automated alternative, this structural complexity hinders their ability to manage codebases directly. We introduce the Provable Representation Of Original Functionality (PROOF), which manages codebases indirectly via structured specifications. To enable full-lifecycle codebase management strictly through these specifications, PROOF abstracts codebase topology into a hierarchical natural-language representation. To establish absolute trust, the system proves semantic equivalence by reconstructing source code exclusively from this specification. This verified foundation drives maintenance requests, executing code modifications while synchronously updating itself to prevent semantic drift. Experiments on real-world repositories confirm the effectiveness of these specifications.
Figures & tables
| Repo | Files | Lines | Nonblank | Tests |
|---|---|---|---|---|
| Flask | 24 | 9,502 | 7,560 | 491 |
| Seaborn | 54 | 29,224 | 24,154 | 2,381 |
| Pytest | 81 | 37,770 | 31,463 | 4,224 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | Pass@1 (Seaborn) |
|---|---|
| Claude 5 Sonnet | 83.5% |
| Gemini 3.1 Pro | 72.1% |
| GPT-5.5 Medium | 55.7% |
Automated Software Engineering
Automated Software Engineering uses AI, search, and verification methods to automate tasks across the software development lifecycle.
See all 82 papers