Source-linked AI summary

Who Finishes the Job? A Study of Follow-Up Fixes and Commit Authorship on AI Coding Agent Pull Requests

Wannita Takerngsaksiri, Nhat Duong, Scott Barnett

arXiv:2609.26847v2cs.SE

TL;DR

Little is known about how often merged agent PRs receive follow-up fixes or who authors them. The paper tracks 6,774 merged agent PRs and compares verified fixes with human PRs from the same repositories. Agent merges have higher verified-fix odds, and many fixes are authored by the same agent.

  • Problem

    How often merged agent PRs receive follow-up fixes and who authors them remain insufficiently measured.

    Source: §1 · p. 2
  • Method

    The study tracks merged agent PRs and candidate fixes, applies file co-location and a 30-day window for linking, and examines verified fixes against a same-repository human baseline.

    Source: §6 · p. 16, §7 · p. 17
  • Results

    1.62 times the human odds: agent merges had verified fixes within 30 days more often than human merges in the same repositories and observation window.

    Source: §1 · p. 2, §7 · p. 17
  • Takeaways & Limitations

    Follow-up work continues after merge, and the study indicates PRs should be monitored beyond merge because useful signals may lie in code rather than merge metadata.

    Source: §5.1 · p. 15

    The findings apply to five AIDev agents in popular repositories, not other agents, low-activity repositories, or behavior after the data window.

    Source: §6 · p. 16

Abstract

from arXiv · show

AI coding agents now author a large share of pull requests (PRs) merged into popular open-source projects. A merged agent PR is usually considered finished work; yet, prior studies have reported issues in agent code after the merge (e.g., code smells and static-analysis issues). However, little is known about how often a merged agent PR is fixed afterward, and who actually authors the fixing. In this paper, we follow 6,774 merged agent PRs across five AI coding agents (OpenAI Codex, GitHub Copilot, Devin, Cursor, and Claude Code) from the AIDev-pop dataset (open-source repositories with at least 500 stars) into their follow-up fixes, against a baseline of 5,044 contemporaneous human PRs from the same repositories. We link each merge to its candidate fixes, verify every candidate with human annotators and an LLM judge that matches human-level agreement (binary Cohen's Kappa=0.78 against a human-human K=0.77, Direct-fix precision 90%), and attribute the fixing work at the PR and the commit level. Our findings show that (1) merged agent PRs attract verified fixes at 1.62 times the odds of merged human PRs in the same repositories over the same period of time; (2) 69.6% of verified fixes in agent merges come from the same agent; and (3) 76.4% of the verified fix PRs are agent-authored throughout all commits. These results show that agents currently largely finish their own job, but their merges still require fixing more often than human merges.

1 Introduction

The paper measures how often merged agent pull requests receive follow-up fixes, who authors them, and how fix-linked PRs differ from those without fixes. Against human PRs from the same repositories, it finds higher verified-fix odds for agent merges and substantial agent involvement in fixing.

1 Introduction

  • The study tracks 6,774 merged agent PRs across 891 repositories and five AI coding agents, against 5,044 merged human PRs from the same repositories, verifying candidate fixes with annotators and an LLM judge (Cohen’s κ = 0.78; direct-fix precision 90%).Source: §1 · pp. 2–3
  • 1.62 times the human odds: merged agent PRs had verified fixes more often within 30 days, with half of the 30-day incidence accruing in the first week.The comparison uses human PRs from the same repositories and observation window.Source: §1 · p. 2
  • 69.6% of verified fixes on agent merges came from the same agent, while 89% of verified fixes on human merges came from humans.The findings describe self-fixing in both authoring populations.Source: §1 · p. 2
  • 76.4% of verified-fix PRs on agent merges were agent-authored throughout all commits, with commits averaging 87.4% agent authorship per PR.These measures cover commits between first push and merge.Source: §1 · p. 3
  • Agent PRs with and without follow-up fixes had nearly identical overall merge-time signal distributions, but ten times the commits within a repository corresponded to 6.1 times the verified-fix odds.The overall effects were negligible to small.Source: §1 · p. 3

2 Background and Related Work

Prior work examines agent adoption, PR activity through and after merge, and code ownership, but follow-up fixes and their authorship remain less measured. This study links verified fixes to merged PRs and compares their authorship with the human baseline.

2.1 AI Coding Agents in Software Development

  • Agent coding has spread across open-source and industry settings, while prior research on adoption motivates examining what remains after an agent PR merges.The paper situates its study amid rapid adoption and notes earlier work on agent use and PRs.Source: §2.1 · pp. 3–4

2.2 The Study of AI Coding Agent’s Pull Requests

  • Prior PR studies cover first-push characteristics, review, merge outcomes, and post-merge changes, but this study mines follow-up fixes and validates candidates with humans and an LLM judge.Earlier post-merge work examined surviving static-analysis issues, modification patterns, and explicitly referenced corrective PRs.Source: §2.2 · p. 4

2.3 Code Ownership in the Age of AI Coding Agents

  • Earlier ownership research examines quality and self-fixing, while this paper measures who authors a follow-up fix after an agent PR merges and whether the merged PR’s author class returns to fix it.Prior human self-fixing studies report developers fixing roughly half of their own defects.Source: §2.3 · p. 5

3 Study Design

The study tracks merged agent PRs and a human baseline through candidate-fix identification, verification, and analyses of fixing authorship and merge-time signals. Its dataset comprises merged PRs from popular repositories, with a shared observation cutoff for cross-cohort comparison.

3.1 Overview

  • The study links merged PRs to candidate fixes, verifies candidate pairs, then analyzes who opened each fix PR, who authored its commits, and merge-time signals.The analyses use merged agent and human PRs, with the human cohort serving as a baseline for follow-up fixes.Source: §3.1 · p. 5
  • Candidate fixes must merge in the same repository within 30 days, carry a fix task-type tag, share edited files with the original PR, and include a non-boilerplate file.The overview also identifies human validation and an LLM judge as the added verification condition.Source: §3.1 · p. 6

3.2 Dataset

  • 6,774 merged agent PRs from 891 repositories and five agents form the agent cohort, alongside 5,044 merged human PRs from the same popular-repository cohort.Repositories were filtered to more than 500 GitHub stars; the cross-cohort comparison uses the human cohort’s end date as a shared cutoff.Source: §3.2 · p. 6

4 Results

The study identifies and validates follow-up fixes, then compares their incidence for agent and human merges in the same repositories and observation window. Agent merges have higher odds of a verified fix, and the fixes accumulate early.

4.1.1 Approach of RQ1

  • Candidate fixes were later same-repository PRs within 30 days, tagged as fixes, sharing edited files with the merged PR and including a non-boilerplate file.Candidate fixers could come from either the agent or human cohort, and partially observed merges were excluded.Source: §4.1.1 · p. 7
  • A candidate pair counted as a verified fix only when annotators labeled it a direct fix; the LLM judge reached κ = 0.78 and 90% direct-fix precision on revalidation.The annotators distinguished direct fixes from related touches and unrelated pairs; the judge used the same PR information and was revalidated on sampled agent and human pairs.Source: §4.1.1 · pp. 7–8

4.1.2 Results of RQ1

  • 4.5% of fully observed agent merges had a verified fix within 30 days, while 22.9% had a candidate fix.The full agent cohort included 4,505 PRs with a complete 30-day observation window; Table 1 covers candidate, verified, and precision-adjusted rates.Source: §4.1.2 · p. 8, Table 1 · p. 8
  • 1.62 times the human odds of a verified fix were observed for agent merges within the same repositories and shared observation window.The repository-stratified odds ratio was 1.62 (95% CI=1.10–2.39, p=0.015).Source: Table 2 · p. 8, §4.1.2 · p. 9
  • Half of the 30-day verified-fix incidence accumulated within the first week in both cohorts, with cumulative incidence reaching 4.5% for agents versus 2.6% for humans by day 30.The cumulative-incidence curves separate from the first day; each merge enters the time-to-event view with its own observation time.Source: §4.1.2 · p. 9, Figure 3 · p. 9

4.2 RQ2: Who authors the verified fix PRs of the merged agent PRs?

The study finds that verified fixes are commonly authored by the agent that made the original merge, and that commit effort and some merge-time signals distinguish fixes. It compares fixer identities, commit authorship, and merge-time signals across agent and human PRs.

4.2.1 Approach of RQ2

  • The study classifies each verified-fix PR author as human, self-agent, or other-agent based on who opened the fixing PR and whether it was the same agent as the original PR.The same classification is applied to verified fixes of the human cohort as a baseline.Source: §4.2.1 · p. 10

4.2.2 Results of RQ2

  • 69.6% of verified fixes on agent merges are by the same agent, versus 27.4% by a human and 3.0% by another agent; 89.1% of verified fixes on human merges are by humans.The self-fixing pattern holds for every agent with a non-trivial count; Codex merges are most often human-fixed (38.4%), while Copilot self-fixes about 95%.Source: §4.2.2 · p. 10

4.3.1 Approach of RQ3

  • The commit-level analysis examines who authored commits within verified-fix PRs, rather than only who opened the PR.It aggregates per PR, reporting both average agent-authored share and the percentage of PRs whose commits are all agent-authored.Source: §4.3 · p. 11, §4.3.1 · p. 11
  • Commits are classified as agent, automation, or human using author-login patterns and agent-generated commit-message patterns.Because Codex does not sign commits and fewer than 2% carry a marker, it is excluded from the commit-share measure; unmarked agent commits may be counted as human, so agent shares are a conservative lower bound.Source: §4.3.1 · p. 11

4.3.2 Results of RQ3

  • Verified-fix agent PRs average 87.4% agent-authored commits per PR, and 76.4% are agent-authored throughout all commits.Across four agents and all merged PRs, the corresponding values are 78.8% average agent-authored share and 54.1% all-agent-authored PRs, lower than on verified-fix PRs.Source: §4.3.2 · pp. 11–12

4.4.1 Approach

  • The study compares agent PRs with and without verified fixes to identify merge-time characteristics associated with later fixes.The within-repository analysis tests each signal while accounting for repository differences and PR size.Source: §4.4 · p. 12, §4.4.1 · p. 13
  • Merge-time comparisons use review time, commits per PR, post-first-push churn, and review items, with pooled tests and within-repository conditional logistic regressions.The regression controls for repository and the number of non-boilerplate files shipped; its odds ratio compares same-repository merges ten times apart on a signal.Source: §4.4.1 · pp. 12–13

4.4.2 Results

  • A merge with ten times the commits carries 6.1 times the odds of a verified fix within the same repository; review items carry 2.4 times, churn 1.3 times, and review time has no significant effect.In the pooled comparison, signal distributions are nearly identical, with negligible-to-small effects; the within-repository analysis holds repository and shipped-file count fixed.Source: §4.4.2 · pp. 13–14, Table 6 · p. 13, Figure 5 · p. 14

5 Discussion

The discussion argues that merged agent PRs may still need follow-up work and that fix activity often remains with the original authoring population. It also raises questions about maintaining code when an owning agent is deprecated or discontinued.

5.1 The merge is not the end of the work, and code review is needed.

  • 4.5% of agent merges carry a verified fix within 30 days, which is 1.62 times more than human merges; at the aggregate level, merge-time signals show only minor differences.The study indicates that PRs should be monitored beyond merge because signals may live in code rather than merge metadata. It says verification requires reading code changes.Source: §5.1 · p. 15

5.2 Owners fix their own code, but now the owner is an agent.

  • Agent merges are fixed by the same agent 69.6% of the time, paralleling humans fixing human merges 89% of the time, but a deprecated agent leaves no experienced insider behind.The discussion identifies future questions about model-level ownership and whether projects should adopt explicit ownership policies.Source: §5.2 · p. 15

6 Threats to Validity

The study reports limits in how fixes and authorship are identified, the population covered, and the reliability of verification and cross-cohort comparisons.

Construct Validity

  • Verified-fix rates are floors because file co-location within 30 days can miss cross-file, later, or non-fix-typed repairs.Under 2% of PRs reach the 30-commit fetch cap, which the authors accept.Source: §6 · p. 16

Internal Validity

  • Unmarked agent PRs may be counted as human-authored, and fixer identity captures authorship rather than ownership through code review.The authors report that findings remain when agents consistently fix more than half of their code.Source: §6 · p. 16

External Validity

  • Findings apply to five AIDev agents in repositories with at least 500 stars, not to other agents, low-activity repositories, or behavior after the data window.The authors verified that their snapshot reproduces Li et al. (2026)’s ≥101-star curated set exactly.Source: §6 · p. 16

Conclusion Validity

  • Verification is more reliable for binary Direct-fix labels than three-way labels, and the judge’s Direct-fix precision is 90% in both cohorts.Cross-cohort comparisons use shared observation windows and repository-stratified estimates; own-window cohort rates are not compared.Source: §6 · p. 16

7 Conclusion

The study finds that agent PRs are followed by fixes at higher odds than human PRs, while agents author much of the fixing work. Merge-time signals offer little advance distinction, and commit count is the clearest within-repository signal.

7 Conclusion

  • Agent merges attract verified fixes at 1.62 times the odds of human merges, while 69.6% of verified fixes come from the same agent.On average, 87.4% of commits to verified-fix PRs for agent merges are agent-authored.Source: §7 · p. 17
  • Merges later needing a fix have nearly the same merge-time signals as other merges; within repositories, commit count is the clearest signal.Agents largely finish their own work, but their merges need fixing modestly more often than human merges, with little visibility up front.Source: §7 · p. 17

Statements and Declarations

The paper reports its funding, author contributions, data availability, and declarations.

Statements and Declarations

  • The work was supported by the Australian Composites Manufacturing CRC under Grant HPN003 – ForgeX.ai, AI factory management (Phase 1).Source: Statements and Declarations · p. 17
  • Wannita Takerngsaksiri led study design, data collection, analysis, and drafting; Nhat Duong joined materials preparation and human validation.Scott Barnett reviewed the work and acquired funding; all authors commented on and approved the manuscript.Source: Statements and Declarations · p. 17
  • The replication package is available on GitHub, and the study uses public AIDev data without private or personally identifiable data.Source: Statements and Declarations · p. 17
  • The author declared no conflict of interest, and ethical approval, informed consent, and a clinical trial number were not applicable.Source: Statements and Declarations · p. 17

A The Labeler for Verified Fix Annotation

Human annotators use a web labeler to assess candidate pairs consisting of an original PR and a candidate fix. Only pairs labeled Direct fix count as verified fixes.

A The Labeler for Verified Fix Annotation

B The Rule List of Commit Author-Class Mapping (RQ3)

The section maps commit author class using two evidence sources: author login and commit message. Table 7 gives the complete set of rules, organized by agent.

Loading 2609.26847v2…