arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.13468cs.SEcs.AI
收藏

理解AI代理生成的拉取请求修复被拒绝的原因——来自AIDev数据集的洞察

Understanding the Rejection of Fixes Generated by Agentic Pull Requests -- Insights from the AIDev Dataset

École de Technologie Supérieure(埃克塞技术学院)

Mahmoud Abujadallah, Ali Arabat, Mohammed Sayagh

AI总结:

通过分析AIDev数据集,发现46.41%的AI代理(Copilot、Devin、Cursor、Claude)提出的代码修复被拒绝。本文对306个未合并的PR进行定性研究,归纳出14个拒绝原因,分为四类,并提出了改进模型引导的建议。

摘要:

AI编码代理越来越多地被用于生成拉取请求(PR),以在软件项目中提出代码修复。通过对AIDev数据集的初步探索,我们发现由Copilot、Devin、Cursor和Claude代理提出的修复中有46.41%被拒绝。这代表了大量浪费的资源,需要人工审查、验证以及运行测试和验证,而这些修复最终被丢弃。本文的目标是理解AI代理的失败模式,这对于更好地将AI代理集成为高效团队成员至关重要。本文对由前述代理创建或共同创作的306个未合并的拉取请求的代表性样本进行了定性研究,随后对拒绝原因进行了定量分析。我们的定性发现确定了14个原因,分为四个高级类别,用于拒绝AI代理的修复。我们观察到,开发者可能因以下原因拒绝修复:修复的实现不正确(例如,不完整、方法错误)、修复未通过持续集成(CI)管道并测试失败、代理无法执行实现(例如,未生成代码、会话丢失),以及修复优先级低。我们的结果揭示了在以下层面更好引导模型的重要性:(1)提出关于修复问题应遵循的方法的提示,(2)概述不应采取的方法的约束或限制,以及(3)指导代理如何通过CI管道验证实现而不引入破坏性变更。我们的结果表明,需要良好的任务优先级排序,以便生成的修复不会导致浪费的人工审查努力或浪费的代理资源(例如,令牌、计算或允许的请求数量)。

英文摘要:

AI coding agents are increasingly used to generate pull requests (PRs) that propose code fixes in software projects. From a first exploration of the AIDev dataset, we find that 46.41\% of the fixes proposed by the agents Copilot, Devin, Cursor, and Claude are rejected. This represents a significant amount of wasted resources that require human reviews, verifications, and running tests and validations for fixes that are merely discarded. Our goal in this paper is to understand the failure modes of AI-agents, an understanding that is crucial for better integrating AI-agents as efficient teammates. In this paper, we conduct a qualitative study on a representative sample of 306 non-merged pull requests created or co-authored by the agents mentioned earlier, followed by a quantitative analysis of the reasons for rejection. Our qualitative findings identify 14 reasons divided into four high-level categories for rejecting AI-agent fixes. We observe that developers can reject fixes due to fixes whose implementation is incorrect (e.g., incomplete, wrong approach), fixes that do not pass the continuous integration (CI) pipelines and fail tests, fixes for which the agent is unable to perform the implementation (e.g., no code generated, sessions lost), and fixes whose priority is low. Our results shed light on the importance of better guiding the model at these levels: (1) proposing hints about the approach to follow for fixing an issue, (2) outlining constraints or limitations regarding the approaches that should not be taken, and (3) instructing the agent on how to validate the implementation through CI pipelines and without introducing a breaking change. Our results suggest the need for good prioritization of tasks so that generated fixes do not lead to wasted human review efforts or wasted agent resources (e.g., tokens, compute, or allowed number of requests).

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

↑