AI
New Framework Lets AI Maintain Code by Reading Specifications Instead of Source Files
A verified abstraction layer called PROOF enables large language models to manage growing codebases more safely by working from structured natural-language descriptions rather than directly with code.
As AI-generated code proliferates across software projects, maintaining those expanding codebases becomes increasingly difficult. Rather than asking language models to work directly with source code—a task that grows harder as systems become more complex—researchers have developed a new intermediate layer that lets AI manage code through structured specifications.
The Core Problem#
The rapid expansion of LLM-generated code introduces architectural complexity that makes it difficult for language models to handle codebase modifications reliably. Existing approaches struggle because they ask AI systems to navigate and update source code directly, a task that scales poorly as systems grow larger and more intricate.
How PROOF Works#
The new framework, called the Provable Representation Of Original Functionality (PROOF), shifts the maintenance paradigm. Rather than having language models edit code directly, the system:
- Converts the codebase structure into a hierarchical natural-language specification that captures the system's architecture and behavior
- Uses language models to work exclusively with these specifications when handling maintenance requests
- Reconstructs source code from scratch based on the specification to verify that the changes preserve the original functionality
- Continuously synchronizes the specification with code modifications to prevent the specification and implementation from drifting apart over time
Why This Matters#
This verified foundation approach offers several advantages. By establishing that code can be accurately regenerated from the specification, the system proves semantic equivalence—meaning the high-level description truly captures what the code does. This creates an auditable layer of trust, essential for automated codebase management at scale.
Validation#
Testing on real-world repositories demonstrates that these specifications effectively enable full-lifecycle codebase management, suggesting the approach may help teams manage increasingly complex AI-assisted software projects.

