跳到正文
arXiv (AI + Vision + Imaging)· Haomin Qi, Xingliang Wang, Xuanqi Gao, Baihui Sang, Xin Zhang, Minghua Ma, Pengfei Gao, Yu Kang, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang, Qi Zhang·· 9 天前AI 评分18

Change2Task:将代码仓库合并PR转化为可执行编码智能体任务与环境

Change2Task: From Repository Changes to Executable Coding Agent Tasks and Environments

AI 导读

Change2Task 把已合并的 PR 在当前代码版本上通过补丁反转、代码映射或智能体改写还原改动前状态,生成可执行编码任务。从 1130 个 PR 构建出 900 个经测试验证的任务,比 SWE-smith 的 PR Mirror 多恢复 29%;四个编码智能体在原版与重建版上均解决 41.1% 的任务,逐任务一致率 89.7%。

正文 · 原文

arXiv:2607.28591v3 Announce Type: replace-cross Abstract: Coding agents learn from and are measured on executable tasks, but building such tasks from repository history usually means rebuilding an environment at an old revision for every task, which is costly and brittle. We observe that a merged pull request (PR) can instead be undone on today's code: removing the effect of a bug fix or feature from a maintained revision recreates the same task inside an environment that already builds and runs. We present Change2Task, which converts merged PRs into verified tasks on an up-to-date revision of the same repository. It reconstructs the pre-change state by patch reversal, code mapping, or agent-based rewriting, and keeps a task only if its target tests pass, fail, and pass again across the healthy, task, and restored states. From 1,130 PRs spanning bug fixing, feature addition, test generation, API migration, and security repair, Change2Task builds 900 verified tasks, recovering 29% more than SWE-smith's PR Mirror on matched bug-fix candidates. The reconstructed tasks preserve the evaluation signal: in aggregate, four coding agents solve 41.1% of tasks on both the original and reconstructed versions, with 89.7% per-task agreement. Sharing modern environments across tasks further reduces setup time by 58% and storage by 71%. On 11 private industrial repositories, Change2Task yields 1,000 tasks on which the strongest model reaches only 14.6% Pass@3.

来源:arXiv (AI + Vision + Imaging) · arxiv.org