arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07882cs.SE
收藏

基于轨迹引导的自动程序修复的错误报告规范细化

Bug Report Specification Refinement with Trajectory Guidance for Automated Program Repair

Concordia University(康考迪亚大学);DePaul University(德保罗大学);University of Manitoba(曼尼托巴大学)

S M Farah Al Fahim, Md Nakhla Rafi, Md Ahasanuzzaman, Zeyang Ma, Dong Jae Kim, Shaowei Wang, Tse-Hsun, Chen

AI总结:

研究针对自动程序修复中错误报告规范不完善的问题,提出TrajSpec方法,通过轨迹引导收集证据并组织成三级表示,经审查生成细化报告,实验表明该方法能有效提高修复性能。

摘要:

错误报告作为存储库级自动程序修复(APR)代理的任务规范,但往往只描述观察到的故障,遗漏与修复相关的信息。我们提出了TrajSpec,一种用于存储库支持的错误报告规范细化的轨迹引导方法。给定原始报告和预修复存储库,运行轨迹收集代理,将未验证的轨迹作为规范证据来源,组织成三级表示,生成细化报告草案并应用基于存储库的审查。在所有300个SWE-Bench Lite实例上评估,结果表明TrajSpec的细化报告能提高Pass@1,消融结果显示去除基于存储库的审查或分层证据表示会降低Pass@1。总体而言,TrajSpec提供了可操作的存储库支持上下文,持续提高修复性能。

英文摘要:

Bug reports serve as task specifications for repository-level automated program repair (APR) agents, but they often describe only the observed failure and omit repair-relevant information such as the failure-inducing behavior, behavioral requirement, and implementation scope. As a result, a repair agent may inspect irrelevant code, infer an incorrect requirement, or generate a patch that addresses the reported symptom without restoring the intended repository behavior. We present TrajSpec, a trajectory-guided approach for repository-supported bug report specification refinement. Given an original report and a pre-fix repository, TrajSpec runs a trajectory-collection agent and uses the resulting unverified trajectory as a source of trajectory-derived specification evidence. It organizes this evidence into a three-level representation consisting of a high-level interpretation of the issue, diagnostic findings supporting that interpretation, and concrete repository observations. TrajSpec then generates a draft refined report and applies repository-based review to remove unsupported claims, revise uncertain claims, and add repository-supported details. We evaluate TrajSpec on all 300 SWE-Bench Lite instances using Mini-SWE-Agent V2. TrajSpec's refined reports improve Pass@1 from 41.00% to 59.67% with GPT-5-mini and from 54.67% to 64.33% with MiniMax M2.5. On a stratified sample of 100 instances, TrajSpec's refined reports also improve Pass@1 from 41.00% to 71.00% with Agentless and from 47.00% to 72.00% with AutoCodeRover. Ablation results show that removing repository-based review or the hierarchical evidence representation reduces Pass@1 from 59.67% to 48.00% and 47.67%, respectively. Overall, TrajSpec provides actionable repository-supported context that consistently improves repair performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑