从阅读代码到阅读规格:面向LLM驱动代码库维护的已验证层
From Reading Code to Reading Spec: A Verified Layer for LLM-Driven Codebase Maintenance
Xinhao Zhang, Jingjie Lu, Kunpeng Liu, Fei Xie
AI 速读 基于摘要
提出PROOF,用分层自然语言规格间接管理代码库,并通过从规格重建源码来证明语义等价,以支撑LLM驱动的代码维护。
cs.SE · cs.CL
查看原文摘要
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.