Sources#
Summary#
A post-merge study asks what happens to an agent's code after it lands: how long it stays unmodified (its survival or retention), why it is later changed, and who changes it. By November 2026 five published studies had given conflicting answers. Agent code was said to be terminated at the human rate but fixed more often (Xia & Miller), to survive worse than human code for every agent (Popescu et al.), to churn less for some vendors (Kraishan), to need more follow-up fixes, mostly from the same agent (Takerngsaksiri et al.), and to be maintained mostly by humans (Sawada et al.).
Rahman, Begoug & Shihab (Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict, empirical) hold the data fixed and vary the measurement. They make nine choices on one cohort: line tracking, which files are kept, the unit and its weighting, what counts as a modification, the intent classifier, across- vs within-repository comparison, the variance estimator, the observation window, and how the modifier is identified. They report every one of 88 specifications. Their conclusion is that whether agent code survives longer than human code is "decided as much by the measurement as by the code." That holds for one tier only. For human-supervised agents the direction is robust. For the fully-autonomous tier (Devin) the measurement decides which verdict a study reports.
The paper revises the same authors' earlier study, which reported agent code retained longer than human code (HR 0.83 within repositories, each PR counted once). That verdict now holds only for the human-supervised tier, and within it only for Copilot.
The cohort#
The cohort is merged PRs from AIDev (the dataset several AIDev cuts in this wiki share) in 215 repositories that pass an engineered-project filter. PRs were merged before 1 August 2025, and modifications are observed until 31 December 2025, so every line has at least five months of follow-up. Of the 854,139 added lines, 644,177 remain after removing vendored and generated code. Two tiers are compared with same-cohort human code:
| Group | PRs | Lines |
|---|---|---|
| Human-supervised (Copilot 67,398, Codex 48,867, Claude Code 48,182, Cursor 13,340 lines) | 1,055 | 177,787 |
| Fully-autonomous (Devin only) | 412 | 87,634 |
| Human baseline | 1,327 | 378,756 |
Each line is followed by identity (git blame --reverse -M -C along the first-parent chain), and every claimed modification is checked in the modifying commit's diff. Retention is estimated with Kaplan-Meier curves and Cox models. HR < 1 means agent lines are modified later ("retained longer"). With identity tracking on all lines, 20.1% of human-supervised, 21.5% of Devin and 25.0% of human lines are modified within the window. The point estimates are HR 0.888 and 0.896, and neither is significant once errors are clustered by repository ([0.612, 1.289] and [0.425, 1.889]).
What moves the verdict#
The paper names five mechanisms. Each one moved a verdict or an effect size on the same data.
1. How a line is followed. On 276,314 units that all three trackers cover, line-number tracking records about twice as many modifications as identity tracking (human lines 64.5% against 29.0%). In a blind manual check of 300 units, only 35.9% of its "modified" claims were correct, against 98.7% for identity tracking. Most of the spurious events are renames, moves and insertions above the line. It inflates human modifications more than Devin's, which moves Devin's HR from 1.294 to 0.992.
2. Which files are kept. Vendored and generated files are regenerated wholesale, and 96% of the 205,180 vendored lines sit in human PRs. Keeping them makes 46.5% of human lines "modified" against about 21% of agent lines, and both tiers look retained far longer (HR 0.376 and 0.389). A study that keeps them "compares how often projects regenerate their build output, not how long agent and human code is retained."
3. What each unit counts. One Devin PR, pdfme/pdfme#1059, adds 36,537 lines: 41.7% of all Devin lines, of which 4.8% are modified. Devin's HR is 0.90 per line, 1.19 per PR, 1.56 per hunk (significant, [1.07, 2.28]), and 1.29 when lines are capped per PR (20 files × 100 lines, a common mining shortcut). Human-supervised code is less concentrated, since its five largest PRs hold 23.9% of its lines, and stays below 1 under every weighting (0.89 / 0.72 / 0.83). The paper does not call any of these wrong. Each one answers a different question, about lines, about contributions, or about blocks of code.
4. Which code is followed for how long. Requiring eight months of follow-up drops 142 early Devin PRs, holding 61.7% of its lines and including #1059, and moves Devin's HR from 0.90 to 1.70. The change comes from the cohort, not the follow-up length. Dropping the same PRs and censoring the rest at 150 days gives 1.72. A longer window in a fixed-end dataset is a different cohort.
5. Where the code lives, and how uncertainty is estimated. The tiers barely share repositories. Only 10 of 215 contain both, and 74.9% contain exactly one tier. Devin repositories have more contributors (median 9 vs 4), so an across-repository Devin comparison is partly a comparison of projects. On the 31 repositories shared with human code, the pooled Devin estimate is 0.62, not 0.90. The variance estimator matters more than the scope. For the Devin line model, the standard error of log HR is 0.008 with lines treated as independent and 0.38 clustered by repository, about 50× too narrow without clustering. The number of across-repository Devin specifications reporting "modified sooner" falls from 15 of 22 (model-based) to 9 (clustered by PR) to 3 (clustered by repository). Against 500 label permutations, neither 15 nor 3 exceeds chance (p = 0.086 and 0.35). The 15 look striking only because the intervals are too narrow.
Two further choices change sizes, not directions:
- Modification definition. 18.8% of content modifications change only whitespace. An AST-structural definition, which ignores renames, literals and formatting, gives the same verdict as the syntactic one in 19 of the 24 specifications where both can be fitted, and never reverses a direction. Devin code receives the most leaf-only edits (14.2% of its modifications, against 7.0% and 5.8%), often restyling to pass a project's linter. The structural definition is what makes the within-repository human-supervised effect significant (HR 0.717, [0.477, 0.921]).
- Intent classifier. Keyword rules agree with 618 human labels at κ = 0.38. Three LLMs (DeepSeek-V4.1-Flash, gpt-oss-120b, MiniMax-M3.1-Flash) agree at 0.69–0.71, and their combinations at 0.71–0.72, about the κ = 0.68 at which two humans agree with each other. The LLMs do as well from the commit message alone (0.68–0.74), so the gain comes from the classifier, not the diff. Keyword rules alone find that Devin code is modified for different reasons than human code (p < 0.001, V = 0.11). No LLM approach confirms it (p ≥ 0.37). The keyword errors follow the rules' priority order: 584 commits labelled corrective by the rules are labelled adaptive or perfective by all three LLMs, against 57 the other way. Disagreement among the models flags the commits that need a human. A unanimous label matches the human label 86.0% of the time, and a 2-of-3 majority only 54.3%. This is the routing signal LLM-Judge Validation recommends, applied to annotation.
What holds across all 88 specifications#
With errors clustered by repository, the curve gives (verified against Fig. 10 and Table 10, both reconciled with the PDF):
| Tier | Retained longer / no difference / modified sooner |
|---|---|
| Human-supervised | 24 / 19 / 1 |
| Devin | 1 / 40 / 3 |
- Human-supervised code is retained longer than human code, and the effect is Copilot's. It is retained longer in 13 of 22 across-repository and 11 of 22 within-repository specifications, more than permuted labels give in both scopes (p = 0.008), and 42 of its 44 point estimates lie below 1. The only "sooner" verdicts combine hunk units with line-number tracking, the tracker shown to be wrong two times in three. Per agent within repositories, only Copilot excludes 1 (0.653, [0.459, 0.954], 53 repositories). Codex is 0.831 and its interval includes 1. Cursor (16 repositories) and Claude Code (13) are too wide to read. File covariates (age, prior activity, new file, test file) leave the structural estimate significant at 0.742. The hazard is not proportional: no difference in the first 30 days (HR 1.20), then a lower hazard from 30 to 90 days (0.45 across repositories). The six-month cohort of 760 human-supervised PRs keeps the direction.
- Devin code shows no difference that survives the variance estimator. All 22 within-repository specifications report no difference in every window, and 15 of the 22 point estimates lie below 1. The within-repo line estimate is 1.059 [0.409, 2.076]. With 31 shared repositories, the design detects only HRs below 0.32 or above 3.13, so the paper reports "no detectable difference" and never "equal." A first-week within-repository Devin excess (HR 1.72, p = 0.007) was found in a window chosen after seeing the data. It replicated in none of 5 held-out repository splits and is reported as a hypothesis.
- Humans maintain agent code. Humans make 87.7% of the modifying commits to agent code (88.6% for human-supervised code, 85.7% for Devin), and 83.7% if a
Co-authored-bytrailer naming an agent counts as agent work. No unit or window makes agents the main maintainers. The largest agent share is 29.9%, for follow-up PRs of Devin code within 7 days. When an agent modifies agent code, it is almost always the agent that wrote it: Copilot makes 151 of 166 agent modifications to human-supervised code, and Devin makes 85 of 88 to Devin code. - The data do not show that agent code needs more defect fixes. No classifier's accuracy differs by tier (all p ≥ 0.13). After correcting LLM shares for classification error, the corrective shares overlap. Under the majority vote with one confusion matrix per tier they are 24.8% human-supervised, 26.1% Devin and 23.1% human.
The five published designs, re-run on this cohort#
These are approximations, not reproductions: the original studies use other datasets and windows, and two use other outcomes. Table 17 was reconciled against pdftotext -layout.
| Study | Reported | This design on this cohort | The single change that moves it |
|---|---|---|---|
| Xia & Miller (pooled agents, line units, within-repo Cox) | HR 1.11 n.s.; corrective HR 1.49 | HR 0.92, p = 0.68 (agrees) | Corrective cause-specific hazard is 0.68 with keyword-first labels and 1.37 with LLM labels (p = 0.22, 0.14) |
| Sawada et al. (file level, months 1–6) | Humans do ~83% of maintenance | Humans 88.2% | Direction agrees; the share depends on unit and window |
| Popescu et al. (per agent, survival at 3 d / 1 wk / 3 wk, pooled) | Every agent below human | At 3 weeks Cursor 77.2%, Claude Code 81.8%, Devin 88.6%, human 91.7%, Codex 93.2%, Copilot 96.1% | Within repositories only Copilot differs, and it is retained longer (HR 0.65) |
| Kraishan (PR churn on most-changed file, 90 days) | Claude Code lowest churn; Copilot lower; Codex and Devin at human level | Cliff's δ Codex −0.11, Copilot −0.10, Devin +0.08, Claude Code +0.05, Cursor +0.04 (agrees on Copilot) | With a repository model no agent differs (p ≥ 0.38) |
| Takerngsaksiri et al. (PR units, 30 days, Mantel-Haenszel) | OR 1.62 for a verified follow-up fix | Any-modification MH OR 0.86 pooled (p = 0.095); Devin 0.77 | Not comparable (different outcome). The raw Devin gap (51.7% vs 46.0% of PRs modified) reverses within the 31 shared repositories |
The paper's reading is that before a disagreement between post-merge studies is read as a difference between agents or datasets, their measurement choices should be compared.
Who follows up, and how fast#
The two agents that modify their own code do it differently. Devin modifies its own code soon after merge (median 2.8 days, 30 of 85 commits within a day). In a sample of 20, 14 belong to the original PR's work: 7 continue the same feature or fix, and 7 are the next item in a series of similar PRs. Copilot's self-modifications come weeks later (median 42.0 days). In its sample of 20, 14 are later maintenance (p = 0.026, indicative only, since 12 of the 20 Copilot commits are from dotnet/aspire). The authors conjecture that a same-agent follow-up "may be reviewed less carefully than a new contribution". This is the work-splitting reading of Follow-Up Fixes on Agent PRs's day-0 fix excess, seen from the modification side.
Measured as Takerngsaksiri's unit (follow-up PRs within 30 days), agents make 13.3% of the follow-ups to human-supervised code and 25.5% to Devin code. The same agent makes all 71 agent-made Devin follow-ups and 65 of 73 human-supervised ones. "Most fixes come from the same agent" and "humans do most of the maintenance" are therefore both true. They have different denominators.
The operationalization checklist (Table 18, compressed)#
- Track line identity (reverse blame with rename/copy detection on the first-parent chain), verify each modification in its diff, and report a second tracker.
- Remove vendored and generated files. Do not cap lines per PR. Report line-weighted and PR-weighted estimates side by side, with the share of lines in the largest PRs.
- Report modification events by type, with an AST-structural definition as a sensitivity check.
- Prefer validated LLM intent classifiers over keyword rules. Use more than one model, hand-label the commits where they disagree, correct the shares for classification error, and check that accuracy does not differ by tier.
- Compare within repositories, with cluster-bootstrap intervals, the number of contributing repositories and the minimum detectable effect.
- Cluster standard errors by repository in every model, and test the specification curve against permuted labels.
- Report the window and the cohort it implies.
- State the maintainer unit, window and modifier rule, and report self-modification separately.
- Check proportional hazards (Schoenfeld rejects them in every model here). If they fail, report piecewise HRs and test any window on held-out repositories.
- Publish a specification curve rather than a single pipeline.
The authors rank items 2, 5, 6 and 7 as mattering most for the survival verdict, because each one alone changes Devin's estimate or its verdict.
What this changes in the wiki#
- Agent-Vendor Heterogeneity's per-vendor churn ranking is qualified, not superseded. Kraishan's δ values describe Kraishan's sample. Re-run on this cohort, the design agrees only on Copilot, and with a repository model no agent differs. The authors' broader verdict, that no agent imposes a higher per-line maintenance burden, is consistent with this paper.
- Follow-Up Fixes on Agent PRs's 1.62 stands on its own outcome. On any modification instead of verified fixes, the same Mantel-Haenszel design gives 0.86 (n.s.). That fits the earlier reading that the 1.62 is mostly a same-day, same-agent signal rather than broad excess churn.
- Acceleration Whiplash's "rework of AI code" explanation for churn gets a within-repository null on this cohort: no excess modification hazard for either tier, and the human-supervised tier sits below human code. It still does not decompose Faros's lines-deleted-to-added metric.
- The survival construct in What the Agent-PR Oversight Numbers Can and Cannot Say needed a horizon and an examiner class. It also needs a tracker, a unit weighting and a variance estimator, or the same code can be reported as retained longer or modified sooner.
Scope and evidence#
- Tier:
empirical, kept. The replication package covers the identity-tracking miner, every specification, the human intent labels and the raw LLM outputs. Every manual step is checked on a sample: a tracker accuracy audit (300 units), an AST-rule check (383 modifications, 93.7% agreement, κ 0.60), and an attribution audit of 200 human-baseline PRs. - Self-revision. The authors are re-examining their own earlier study and narrow its headline. That counts against motivated reading, not for it. AI assistance with the manuscript (Claude, Grammarly) is disclosed.
- The human baseline is not AI-free. An estimated 5.5% [2.8, 8.9] of human-baseline PRs show AI authorship that AIDev did not flag, and locally used AI is undetectable. A nine-scenario sensitivity analysis keeps the approximate HR between 0.78 and 0.87 for human-supervised code and between 0.84 and 0.93 for Devin.
- Merged PRs only. Agent PRs are rejected more often than human PRs, so the observed agent code is a positively selected subset.
- "Fully autonomous" means Devin, in 31 repositories. Tool and tier cannot be separated. AIDev does not record how closely each human-supervised PR was supervised, and PR metadata cannot stand in for autonomy: the share of an agent's PRs opened by its own account runs from 0% (Codex) to 98% (Copilot).
- The window was added after seeing the other results. The paper tests its variants against permuted labels for that reason.
- One dataset. 215 public repositories, mostly TypeScript (25.6%) and Python (20.0%), PRs from the first half of 2025. The paper's main claim, that the choices can change a verdict, needs only one dataset. Its agent effects need replication.
Connections#
- Agent-Vendor Heterogeneity — one of the five designs re-run. Its per-vendor churn differences disappear under a repository model except Copilot's, and its standing question about a diff-level survival measure now has a line-level one
- Follow-Up Fixes on Agent PRs — another re-run design, with a different outcome. Its same-agent fixer share reappears here as "agents make few follow-ups, and those they make are almost always their own", and Devin's 2.8-day self-modifications back that page's work-splitting reading
- Open Source Under Agent Contributions — the maintainer's question about post-merge cost, now answered with a code-survival measure and a power statement. Within the same repositories there is no detectable excess for Devin and a lower hazard for Copilot, and humans still do almost nine in ten of the later modifications
- Post-Acceptance Edit Behavior — the same survival construct one stage earlier. DECODE follows AI completions inside the IDE before commit, over minutes. This follows merged agent PRs over months. Both find most edits made by humans, and both find the hazard non-constant (an early excess, then a crossing at 45–60 days here)
- Acceleration Whiplash — the vendor churn figure this kind of study was meant to check. The earlier study was motivated by GitClear's rising two-week churn. On a same-repo design, neither tier shows the excess, and the vendor metric remains undecomposed
- Efficiency Debt of AI-Generated Code — Google's sub-parity revert ratio in one monorepo, the within-organization analogue of a within-repository comparison. Both find that the scope of comparison changes the reading
- LLM-Judge Validation — the commit-intent classifier as an LLM annotator validated against a human-human ceiling (κ 0.68), with inter-model disagreement as the routing signal. It is also a worked case of a label error deciding a verdict: keyword rules create a Devin difference no human label confirms
- Agent-Generated Test Quality — a sibling AIDev cut. Its missing-baseline complaint is answered here by a same-cohort human baseline audited for hidden AI authorship
- Reviewer Habituation on Agent Pull Requests — the authors' conjecture that fast same-agent follow-ups are reviewed less carefully is a review-depth question that page's design could test
- What the Agent-PR Oversight Numbers Can and Cannot Say — survival as the construct behind "acceptance". This paper lists the further parameters it needs
Open Questions#
- Does the fully-autonomous verdict generalize beyond Devin? Jules (~76,000 merged PRs) and Kiro (~11,000) contributed at scale in January–June 2026, but no dataset records how autonomously a PR was produced, and own-account share ranges from 0% (Codex) to 98% (Copilot). Settler: a within-repository survival re-run on a post-2025 cohort with a per-PR autonomy measure, which the authors name as their next step.
- Are an agent's quick self-follow-ups reviewed less carefully than its first contributions, as the authors conjecture? Devin's self-modifications arrive a median 2.8 days after merge and mostly continue the original task. Settler: on AIDev, compare review items and time under review for same-agent follow-up PRs against first PRs from the same agent and repository.
Sources#
- Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict — Musfiqur Rahman, Mahi Begoug & Emad Shihab (Concordia University), Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict, arXiv 2611.21784 v2, 2026-11-19 (v1 2026-11-16), 60pp,
empirical. Cited: §1 (nine choices), §2.2 + Table 1 (the five published designs), §3 (the earlier study and its reproduction), §4.2–4.8 (cohort, attribution audit, tracker accuracy, AST rule, intent classifiers, modifier rule, statistics), §5–9 (RQ1–RQ5), §10 + Fig. 10 + Tables 16–17 (specification curve and re-run designs), §11 + Table 18 (mechanisms, robust results, checklist), §12 (threats). Parse status: the flagged tables are clean. The ingesttable-collapseflag (58 multi-value cells) fires on the paper's ownlonger / none / sooner (…)andHR [CI]cell formats, not on docling merges. Tables 10 and 17 were reconciled cell by cell againstpdftotext -layouton the local PDF and match, including Table 17's Xia & Miller cell, which the markdown truncates ("p = 0.22 and" — the PDF reads "0.22 and 0.14"). Figs. 5 and 10 were viewed and their values match the prose (24/19/1 and 1/40/3; within-repo structural HR 0.72 [0.48, 0.92]). Every other figure here is quoted from prose
Cited by 12
- Agent-Vendor Heterogeneity×3
revisiting survival agent attributed code — Rahman, Begoug & Shihab (Concordia), arXiv 2611.21784…
- Follow-Up Fixes on Agent PRs×3
Rahman, Begoug & Shihab (revisiting survival agent attributed code, empirical) re-ran this paper's…
- Open Source Under Agent Contributions×3
Residual of the agent-contribution outcome question (see Resolved Questions): is the merge rate of…
- Acceleration Whiplash×2
Post Merge Survival Of Agent Code — the churn question rebuilt as survival analysis, with the…
- Agent-Generated Test Quality
Post Merge Survival Of Agent Code — another AIDev cut, and one that builds and audits the human…
- What the Agent-PR Oversight Numbers Can and Cannot Say
Postscript (2026-11-23): survival needs more parameters than a horizon and an examiner class.…
- Efficiency Debt of AI-Generated Code
Post Merge Survival Of Agent Code — the scope point, made with a specification curve. Google…
- LLM-Judge Validation
Post Merge Survival Of Agent Code — LLM-as-annotator validated against a measured human ceiling, in…
- AI Coding Practice
Post Merge Survival Of Agent Code — Rahman, Begoug & Shihab (Concordia, arXiv 2611.21784): one…
- Open Questions Backlog
Post Merge Survival Of Agent Code ×2 (oldest 1d) — Does the fully-autonomous verdict generalize…
- Post-Acceptance Edit Behavior
Post Merge Survival Of Agent Code — the same survival construct, after merge rather than before…
- Reviewer Habituation on Agent Pull Requests
Post Merge Survival Of Agent Code — a review-depth question this page's design could test. Rahman…
Related articles
- Follow-Up Fixes on Agent PRs
Takerngsaksiri, Duong & Barnett (Deakin, arXiv 2609.26847): merged agent PRs draw a verified follow-up fix within 30 da…
- Review as the Control Point
Agarwal et al. (CMU, arXiv 2607.07980): a 26-construct/67-relationship causal theory synthesized from 3,100 coded pract…
- Verification as the New Bottleneck
Fiona Fung: coding is no longer the bottleneck — verification, review, maintenance are; shift-left; TDD loses its tax;…
- Agent-Generated Test Quality
Two AIDev cuts on whether agent code is tested. Jhanglani et al. (204K test files): a trade, not a deficit — agents dou…
- Agent-Vendor Heterogeneity
Kraishan (Texas Tech, arXiv 2609.17598): 37,623 provenance-labelled PRs across 2,807 repos with a same-repo human basel…
