一句话:ArtifactSync 用 LLM 做层次化变更影响分析,自动识别并修复代码变更后过时的文档与测试等工件。
当开发者修改源代码时,文档、测试等相关工件往往随之过时,形成难以手工修复的跨工件不一致。ArtifactSync 利用大语言模型来维护跨工件一致性:LLM 能理解代码、文档与测试等异构工件之间的语义关联,这是传统静态分析难以捕捉的。该方法采用层次化变更影响分析,从扫描文件名开始,逐步对不确定的文件“放大”,仅在必要时请求更详细的上下文,从而使大型仓库上的评估既可行又具成本效益。工具同时实现为命令行程序与交互式 VS Code 扩展,在编辑器中为每处不一致给出清晰解释和可直接应用的可操作修复。作者在两个开源仓库上的初步评估显示,ArtifactSync 在识别受影响工件与生成相应修复两方面准确率最高可达 100%。
When developers change source code, related artifacts like documentation and tests often become outdated, creating inconsistencies that are difficult to fix manually. We introduce ArtifactSync, a tool that leverages Large Language Models (LLMs) for automated cross-artifact consistency maintenance. LLMs are uniquely suited for this task because they can understand semantic relationships across diverse artifact types, such as code, documentation, and tests that traditional static analysis cannot capture. ArtifactSync performs change impact analysis using a hierarchical approach that starts by scanning file names and progressively “zooms in” on uncertain files, requesting more detailed context only when necessary. This targeted change impact analysis makes the evaluation of large repositories both feasible and cost-effective. ArtifactSync is implemented as both a command-line tool and an interactive VS Code extension. Within the editor, it presents each detected inconsistency with a clear explanation and an actionable fix that developers can apply directly. Our preliminary evaluation across two open-source repositories shows that ArtifactSync achieved up to 100% accuracy in both identifying impacted artifacts and generating corresponding fixes. A demonstration is available at https://youtu.be/AfLe_I_OnA0 and the tool at https://github.com/Alor-e/artifact-sync.
@inproceedings{paperbot11943,
title = {ArtifactSync: Automated Repository Synchronization through Hierarchical Change Impact Analysis},
author = {Ebube Alor and João Pedro de Souza Olivo Tardivo and SayedHassan Khatoonabadi and Emad Shihab},
booktitle = {ICSE},
year = {2026},
doi = {10.1145/3774748.3787617}
}