Reversa:一个用于将遗留软件转换为AI代理操作规范的反向文档工程框架
Reversa: A Reverse Documentation Engineering Framework for Converting Legacy Software into Operational Specifications for AI Agents
AI总结:
本文提出Reversa框架,旨在通过反向文档工程将遗留软件转换为AI代理可操作的规范,通过多代理流水线流程提取隐含规则,生成可追溯的操作规范,并提出评估协议以衡量覆盖率、可追溯性、置信度、效用和成本。
摘要:
遗留系统集中了业务规则、架构决策和操作例外,这些通常在代码、数据、配置和维护实践中隐含存在。同时,基于语言模型的编码代理依赖于可靠的上下文、正确性标准和行为契约来修改真实系统,以降低风险。本文提出了Reversa,一个用于将遗留软件转换为可追溯的操作规范的反向文档工程框架。Reversa将此过程组织为一个多代理流水线:专门的代理映射项目表面,分析模块,提取隐含规则,合成架构,编写单元级规范,并审查生成的声明。该提案强调三个机制:代码与规范之间的可追溯性、显式的置信度标记以及保留缺口供人工验证。该框架作为Node.js CLI分布式发布,跨多个代理引擎安装技能,并使用SHA-256清单在更新或卸载操作期间保留修改后的文件。除了架构描述外,我们还报告了一个探索性案例研究,即从COBOL迁移到Go的ATM迁移,其中流水线产生了517个由内部置信度指数分类的声明,10个登记的缺口,53个Gherkin平衡场景,以及一个完成9/11任务的重建计划。最终平衡验证和切换未在本研究中完成。我们不声称有广泛的实证优势;我们根据反向工程、LLM文档和软件代理文献的位置,提出一个具有覆盖率、可追溯性、置信度、效用和成本指标的评估协议。
英文摘要:
Legacy systems concentrate business rules, architectural decisions, and operational exceptions that often remain implicit in code, data, configuration, and maintenance practices. At the same time, language-model-based coding agents depend on reliable context, correctness criteria, and behavioral contracts to modify real systems with lower risk. This paper presents Reversa, a reverse documentation engineering framework for converting legacy software into traceable operational specifications for AI agents. Reversa organizes this process as a multi-agent pipeline: specialized agents map the project surface, analyze modules, extract implicit rules, synthesize architecture, write unit-level specifications, and review generated claims. The proposal emphasizes three mechanisms: traceability between code and specification, explicit confidence marking, and preservation of gaps for human validation. The framework is distributed as a Node.js CLI, installs skills across multiple agent engines, and uses a SHA-256 manifest to preserve modified files during update or uninstall operations. In addition to the architectural description, we report an exploratory case study on migrating an ATM from COBOL to Go, in which the pipeline produced 517 claims classified by an internal confidence index, 10 registered gaps, 53 Gherkin parity scenarios, and a reconstruction plan with 9 of 11 tasks completed at inventory time. Final parity validation and cutover were not completed in this study. We do not claim broad empirical superiority; we position the contribution with respect to the literature on reverse engineering, LLM-based documentation, and software agents, and propose an evaluation protocol with metrics for coverage, traceability, confidence, utility, and cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。