The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests About 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

Pooled data suggest co-authored AI pull requests merge less often, but that's an illusion: stratifying by agent and adding repo and PR-structure controls erases the apparent co-authorship advantage, indicating selection and structural confounders rather than a causal productivity gain.

Beyond Simpson's Paradox: A Cascade of Confounders in AI Agent Pull-Request Co-Authorship
Haoran Yu, Xiaochong Jiang, Lifei Liu, Su Wang, Pin Qian, Yihang Chen · June 21, 2026
arxiv correlational medium evidence 7/10 relevance Full text usable extracted full text Source PDF
Apparent benefits or harms of adding a human 'Co-Authored-By' trailer to AI-assisted pull requests are driven by agent composition and PR structure rather than a robust within-agent causal effect: after agent stratification and within-repo/PR-structure controls, no agent shows a clear co-authorship advantage.

Pooled across five AI coding agents, pull requests (PRs) with a human Co-Authored-By trailer merge less often than purely-autonomous ones (53.8% vs. 79.8%) -- yet this aggregate finding is a textbook Simpson's Paradox. Stratifying 33,596 PRs from the AIDev dataset by agent identity reverses the conclusion: Copilot and Devin show large positive within-agent gaps (+41.2 and +33.5 pp, both p<0.001), while Cursor, Claude Code, and Codex show small effects whose cross-sectional 95% CIs span zero. The paradox is driven entirely by agent composition: Codex, which dominates 64.9% of the dataset, achieves high merge rates while rarely using co-authorship. But Simpson's Paradox is only the first layer of a cascade of confounders: within-repo controls eliminate Devin's gap (+33.5 to +1.6 pp, p=0.73); a commit-count control further halves Copilot's within-repo gap (+36.2 to +24.4 pp); restricted to multi-commit PRs, the Copilot within-repo effect dissolves to +4.8 pp (p=0.59). No agent retains a clear co-authorship effect once both repository selection and PR structure are controlled. Our findings caution against reporting agent-pooled statistics without stratification and demonstrate that cross-sectional co-authorship associations are largely selection and PR-structure artefacts rather than evidence of a causal benefit.

Summary

Main Finding

Pooled across five AI coding agents, PRs with a Co-Authored-By trailer appear to merge much less often than purely-autonomous ones (53.8% vs. 79.8%, Δ = −26.0 pp). This aggregate result is a textbook Simpson’s Paradox: stratifying by agent reverses the sign for most agents (e.g., Copilot +41.2 pp, Devin +33.5 pp). But further robustness steps expose a cascade of confounders—repository selection and PR structure largely explain away the per-agent co-authorship gaps. After within-repo controls and PR-structure (commit-count / multi-commit) adjustments, no agent retains a clear co-authorship effect. In contrast, author/committer attribution (human author/committer vs agent author/bot committer vs agent author/human committer) shows a consistent monotone association with merge rates (47.6% → 64.3% → 82.0%).

Key Points

  • Pooled (misleading) statistic:
    • Co-authored PRs: 10,764 PRs, merge rate 53.8%
    • Purely-autonomous PRs: 22,832 PRs, merge rate 79.8%
    • Aggregate gap: −26.0 percentage points (χ2 ≫ 0)
  • Per-agent heterogeneity (selected figures):
    • Codex (64.9% of PRs): coauth rate 1.2%; MR coauth 78.3% vs pure 82.6% (Δ = −4.4 pp)
    • Copilot (14.8%): coauth 89.4%; MR coauth 47.4% vs pure 6.2% (Δ = +41.2 pp)
    • Devin (14.4%): coauth 95.9%; MR coauth 55.1% vs pure 21.6% (Δ = +33.5 pp)
  • Cascade of confounding:
    • Within-repo (repo×agent fixed effects) pooled coauth effect: +15.2 pp (SE 2.5)
    • Copilot within-repo: +36.2 pp; controlling for log(commits) → +24.4 pp
    • Copilot restricted to multi-commit PRs → +4.8 pp (p = 0.59; underpowered)
    • Devin’s within-repo gap collapses to +1.6 pp (p = 0.73)
    • Net: once repository selection and PR structure are controlled, no agent shows a clear causal co-authorship benefit based on these observational data.
  • Author/committer classification (n = 33,564 PRs):
    • human_both (human author + human committer): n=23,200, MR=82.0%
    • agent_draft (bot author, human committer): n=336, MR=64.3%
    • fully_autonomous (bot author + bot committer): n=10,028, MR=47.6%
    • This graded pattern persists within commit-count bins and across agents with sufficient data.
  • Multi-agent adoption (n=233 multi-agent repos): introducing a second agent is associated with a −12.1 pp change in weekly merge rates (DiD; SE=3.6), possibly due to compositional effects.

Data & Methods

  • Data: AIDev dataset; 33,596 PRs from five AI coding agents (Codex, Copilot, Devin, Cursor, Claude Code) over ~218 days (2024-12 to 2025-07). Agent coverage windows differ.
  • Key measurements:
    • Co-Authored-By: parsed GitHub commit trailers; PR flagged collaborative if any commit has such a trailer.
    • Author/committer classification from commit metadata to form three collaboration modes.
    • Outcome: binary merge state at collection time; open PRs treated as not merged (robustness checks on closed-only preserve main pattern).
  • Statistical approaches:
    • Descriptive proportions and Pearson χ2 tests for baseline comparisons.
    • Stratification by agent identity to reveal Simpson’s Paradox.
    • Repository×agent fixed-effect regressions with cluster-robust SEs for within-repo estimates.
    • Additional controls: log(commit count); restriction to multi-commit PRs to address single-commit draft confound.
    • Difference-in-differences regression for multi-agent adoption analysis (repo fixed effects + linear time trend).
  • Limitations explicitly acknowledged by authors:
    • Observational design: associations ≠ causation.
    • Measurement noise: agents auto-insert trailers; some trailers use bot emails (noreply), inflating coauth counts for some agents.
    • Dominance of Codex (65% of PRs) — pooled stats highly sensitive to agent composition.
    • No control for PR size, task type, reviewer experience; survivorship bias (only repos that adopted agents included).
    • Some analyses (e.g., multi-commit Copilot pure-autonomous group) are underpowered.

Implications for AI Economics

  • Beware of pooled productivity metrics: aggregate performance measures that mix heterogeneous agents can be severely misleading (Simpson’s Paradox). Economic analysis of AI tools must stratify by agent/model and other salient covariates before drawing conclusions about value or productivity.
  • Valuing human-in-the-loop interventions requires careful identification:
    • Observational co-authorship markers are confounded by repo selection and PR maturation; naïve estimates over- or understate the marginal benefit of adding human effort.
    • Author/committer signals appear more robust than coauth trailers and may better proxy for economically meaningful human involvement (e.g., effort, review time).
  • Procurement and deployment decisions:
    • Firms buying or licensing coding agents should not rely on headline pooled merge rates to infer agent quality or the ROI of mandating human co-authorship. Decisions should be based on agent-stratified, within-repository comparisons and adjusted for PR structure.
    • Where merge-rate is a proxy for “value delivered,” the true marginal return to human sign-off looks smaller than pooled cross-sectional figures suggest once you control for selection and structure.
  • Incentives and labor economics:
    • High coauth rates for some agents may reflect operational workflows (tools that auto-add trailers) rather than greater human effort; incentive schemes that pay or reward based on coauth markers could be gamed or misaligned.
    • The graded author/committer pattern (higher merge rates with more human involvement) implies economic value to human oversight, but causality is unresolved—economic models should treat this as selection-biased evidence until randomized or quasi-experimental estimates are available.
  • Market structure and competition among agents:
    • Agent composition matters: a dominant high-merge agent (Codex) can mask poor outcomes from other agents. Economic assessments of competition, market shares, or social welfare should control for such heterogeneity.
    • The observed negative association after introducing a second agent (−12.1 pp) suggests potential quality dilution or adverse compositional effects when multiple agents are adopted; platform and firm-level policies should monitor multi-agent interactions.
  • Research & policy recommendations for economists:
    • Use within-repo (or within-project) comparisons, control for PR structure (commit counts, draft markers), and prefer pre-registered randomized trials (e.g., random assignment of mandatory human review or coauth attribution) to identify causal effects of human involvement.
    • When using administrative markers (trailers, metadata) as proxies for human work, validate those proxies across agents and workflows to avoid measurement bias in cost/benefit analyses.
    • Account for power and sample-size limitations when evaluating effects for less-frequent agents or rare collaboration modes.

Bottom line: empirical evaluations of AI coding agents (and of human-AI collaboration value) must avoid pooling heterogeneous agents and must control for repository selection and PR structure; otherwise, policy, procurement, and welfare conclusions will be unreliable.

Assessment

Paper Typecorrelational Evidence Strengthmedium — The paper uses a large observational dataset and a convincing sequence of stratification and within-repo controls that substantially reduce apparent associations, which strengthens causal interpretation relative to naive cross-sections; however, there is no exogenous variation or random assignment, and unobserved confounders (developer skill, selection into co-authorship, temporal/versioning effects) could still bias estimates. Methods Rigorhigh — The authors identify and diagnose a Simpson's paradox, report agent-level effects, implement within-repo fixed effects, add a relevant commit-count control, and run robustness checks (multi-commit restriction) that jointly address multiple layers of confounding; the analytic approach is systematic and transparent, even though it cannot fully substitute for experimental identification. Sample33,596 pull requests from the AIDev dataset covering five AI coding agents (Copilot, Devin, Cursor, Claude Code, Codex); Codex constitutes 64.9% of PRs; outcomes are PR merge rates and presence of a human 'Co-Authored-By' trailer; time period and repo-language breakdown not specified in the summary. Themeshuman_ai_collab productivity IdentificationStratification by AI agent identity, within-repository (repo) fixed-effects comparisons, controls for commit-count, and sample restriction to multi-commit PRs to assess whether cross-sectional co-authorship associations persist after controlling for agent composition, repository selection, and PR structure. GeneralizabilityDataset limited to AIDev / observed GitHub PRs and likely open-source repositories (may not generalize to private repos or enterprise workflows), Dominance of one agent (Codex ~64.9%) biases pooled estimates and may limit applicability to contexts with different agent mixes, Agent implementations and versions change over time; findings may not hold for newer or different models, Merge rate is an imperfect proxy for developer productivity or economic value, Unobserved developer characteristics, team norms, and repo code-review practices may limit transferability across teams, languages, and firms, Observational design prevents definitive causal claims

Claims (9)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Pooled across five AI coding agents, pull requests (PRs) with a human Co-Authored-By trailer merge less often than purely-autonomous ones (53.8% vs. 79.8%). Output Quality negative PR merge rate (whether a PR was merged)
Reading fidelity high
Study strength medium
n=33596
53.8% vs. 79.8%
0.3
Stratifying 33,596 PRs by agent identity reverses the pooled conclusion: Copilot and Devin show large positive within-agent gaps (+41.2 and +33.5 percentage points, both p<0.001), while Cursor, Claude Code, and Codex show small effects whose cross-sectional 95% CIs span zero. Output Quality positive PR merge rate (within-agent co-authorship vs. autonomous PRs)
Reading fidelity high
Study strength medium
n=33596
+41.2 and +33.5 pp (both p<0.001); other agents' effects small with 95% CIs spanning zero
0.3
The Simpson's paradox in the pooled result is driven entirely by agent composition: Codex dominates 64.9% of the dataset. Adoption Rate mixed agent share of dataset (proportion of PRs by agent)
Reading fidelity high
Study strength medium
n=33596
64.9%
0.3
Codex achieves high merge rates while rarely using co-authorship (contributing to the pooled aggregate pattern). Output Quality positive Codex PR merge rate and frequency of Co-Authored-By usage
Reading fidelity medium
Study strength medium
n=33596
0.18
Within-repository controls eliminate Devin's co-authorship gap, reducing it from +33.5 percentage points to +1.6 pp (p = 0.73). Output Quality null_result PR merge rate (Devin co-authorship effect before and after within-repo control)
Reading fidelity high
Study strength medium
+33.5 to +1.6 pp (p=0.73)
0.3
Adding a commit-count control roughly halves Copilot's within-repo co-authorship gap (from +36.2 pp to +24.4 pp). Output Quality positive PR merge rate (Copilot co-authorship effect before and after commit-count control)
Reading fidelity high
Study strength medium
+36.2 to +24.4 pp
0.3
When restricted to multi-commit PRs, the Copilot within-repo effect dissolves to +4.8 percentage points (p = 0.59). Output Quality null_result PR merge rate (Copilot co-authorship effect in multi-commit PR subset)
Reading fidelity high
Study strength medium
+4.8 pp (p=0.59)
0.3
No agent retains a clear co-authorship effect once both repository selection and PR structure are controlled. Output Quality null_result PR merge rate (co-authorship effect after full set of controls)
Reading fidelity medium
Study strength medium
not reported
0.18
Cross-sectional co-authorship associations are largely selection and PR-structure artefacts rather than evidence of a causal benefit from co-authorship. Other null_result interpretation of co-authorship associations' causal status (whether associations reflect causal benefit)
Reading fidelity medium
Study strength speculative
not reported
0.03

Notes