Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict
Musfiqur Rahman, Mahi Begoug, Emad Shihab
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Not All Agents Are Equal: Code Quality and Post-Merge Maintenance Across Five Autonomous Coding Agents in the WildarXiv · 2026
- Agent or Human? Detecting Commits by AI Coding Agents in the Absence of Authorship SignaturesarXiv · 2026
- What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.mdarXiv · 2026
- GHAgentCI: A Dataset of Coding-Agent Invocations in CI Workflow HistoriesarXiv · 2026
- Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware RankingarXiv · 2026
- Do AI Coding Agents Write Infrastructure as Code Like Humans? An Empirical Study of GitHub Pull RequestsarXiv · 2026