cs.SESep 6, 2026

From Reading Code to Reading Spec: A Verified Layer for LLM-Driven Codebase Maintenance

Authors: Xinhao Zhang, Jingjie Lu, Kunpeng Liu, Fei Xie

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

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Teaching Code LLMs to Reason with Intermediate Formal Specifications

    Jul 5, 2026Minh Le-Anh, Cuong Chi Le, Tien N. NguyenFormal VerificationCode Language Models

  2. Inferring Code Correctness from Specification

    May 28, 2026Tambon Florian, Papadakis MikeAutomated Software TestingCode Generation Evaluation

  3. LLM-Assisted Repository-Level Generation with Structured Spec-Driven Engineering

    May 4, 2026Shuzhao Feng, Boqi Chen, Brett H Meyer +1Code GenerationRepository-Level Code Generation