Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict
- Source: https://arxiv.org/abs/2611.21784
- Author: unknown
- Published: 2026-11-17
- Intake: 2026-11-19 evening (daily-intake-evening, openclaw)
- Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/OpenClaw定时任务/论文流水线/2026-11-19-论文流水线.md
中文摘要
'AI 代码合并后能活多久'的实证结论互相矛盾,本文把原因定位在测量选择:对 AIDev 数据集 215 个仓库、2,802 个已合并 PR 的 854,139 行新增代码,逐一变化 9 个测量选择,在 5 个研究问题上建出 88 个生存分析设定。有人监督的 Copilot 类 agent 代码,测量选择只改效应大小不改方向;全自动的 Devin 类代码结论直接被翻转:按行独立算标准误时 22 个设定 15 个说更早被改,按仓库聚类后只剩 3 个,与随机打乱标签的假阳性相当。五个已发表设计重跑全部因单一测量选择翻转结果,读这类研究先看统计单位。
English Summary
Published verdicts on how long agent-authored code survives after merge conflict; this paper shows measurement choices decide them. Re-analyzing 854,139 added lines from 2,802 merged PRs across 215 AIDev repositories, it varies nine measurement choices into 88 survival-analysis specifications over five research questions. For human-supervised agents (mostly Copilot) choices change effect size but not direction; for the fully-autonomous Devin the verdict flips: 15 of 22 specifications say 'modified sooner' when lines are treated as independent, but only 3 with repository-clustered standard errors - no more than permuted labels produce. Five published designs each flip on a single measurement choice when re-run.
Abstract (arXiv)
Studies of how long code from AI coding agents survives after it is merged reach conflicting verdicts: agent code is reported to be retained longer than human code, about as long, or modified sooner. Each study makes defensible measurement choices, but how much these choices decide the verdict is unknown. We revisit the survival of agent-attributed code in our earlier study: 854,139 lines that 2,802 merged pull requests (PRs) added to 215 repositories of the AIDev dataset. We vary nine measurement choices in five research questions and build a specification curve of 88 survival analyses, tested under three variance estimators, several observation windows, and permuted labels. For code from human-supervised agents, mostly GitHub Copilot, the choices change the size of the effect but not its direction. For code from the fully-autonomous agent Devin, they decide the verdict. Across repositories, 15 of 22 specifications report it modified sooner when lines are treated as independent, but only 3 when standard errors are clustered by repository, no more than permuted labels produce. Within repositories, no specification detects a difference. LLM intent classifiers agree with human labels about as well as two humans agree with each other, whereas keyword rules do not (kappa = 0.69 to 0.72 against 0.38), and the two reach different verdicts on why agent code is modified. Humans make most modifications to agent code under every unit and window. Re-run on our data, five published designs each change their result with a single choice. Whether agent code survives longer than human code is therefore decided as much by the measurement as by the code. We derive an operationalization checklist for post-merge studies.