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 →

Most AI-generated test files do little verification — 80% lack strong assertions — but when tests contain explicit oracle signals PRs are noticeably more likely to be accepted, increasing merge odds by about 28% after controls.

All Smoke, No Alarm: Oracle Signals in Agent-Authored Test Code
Dipayan Banik, Kowshik Chowdhury, Shazibul Islam Shamim · June 16, 2026
arxiv correlational medium evidence 7/10 relevance Full text usable extracted full text Source PDF
Although 80.2% of agent-authored test-file patches contain weak or no explicit oracles, PRs with strong oracle signals are significantly more likely to be merged (adjusted OR = 1.28, p < 0.001).

Software practitioners increasingly use AI coding agents that generate test code alongside production code in open source pull requests (PRs). Recent studies report more than 932,000 agent-authored PRs across more than 116,000 repositories, yet whether their test files contain meaningful verification logic remains underexplored. Test files lacking explicit assertions execute code without verifying behavior, so quality gates based on test-file presence overestimate verification strength. The goal of this paper is to help practitioners assess the verification strength of agent-authored patches by characterizing oracle signals and their link to merge outcomes and review effort. We conduct an empirical study of 86,156 test-file patches from 33,596 agent-authored PRs across 2,807 GitHub repositories produced by five coding agents: OpenAI Codex, GitHub Copilot, Devin, Cursor, and Claude Code. A qualitative analysis of 384 stratified patches informs a syntactic taxonomy of eight oracle signal categories. Applied at scale, 80.2% of test patches contain weak or no explicit oracle signals. While raw merge rates are lower for strong-oracle PRs, a regression analysis adjusting for agent, PR size, repository popularity, task type, and language shows strong oracles significantly improve merge likelihood (OR = 1.28, p < 0.001). Our findings suggest that test file counts substantially overestimate verification strength and that practitioners can adopt oracle-aware quality checks to more accurately evaluate agent-authored contributions.

Summary

Main Finding

Agent-authored test files largely lack meaningful test oracles: across 86,156 cumulative test-file patches from 33,596 agent-authored PRs, 80.2% contain weak or no explicit oracle signals (i.e., no or only execution-level checks). Although raw merge rates look lower for PRs with the strongest oracle signals, a multivariate regression that controls for agent, PR size, repo popularity, task type, and language finds that PRs with multi-strong oracles (S3) are more likely to be merged (OR = 1.28, p < 0.001). In short, agents reliably generate test structure but frequently fail to generate substantive verification logic, and oracle strength is an independent positive signal for merge likelihood once confounders are controlled.

Key Points

  • Scope and scale
    • 86,156 cumulative test-file patches from 33,596 agent-authored pull requests across 2,807 GitHub repositories (AIDev-pop subset).
    • Five agents analyzed: OpenAI Codex (dominant, ~65% of PRs), GitHub Copilot, Devin, Cursor, Claude Code.
  • Oracle taxonomy (syntactic, regex-based)
    • Eight oracle-signal categories: Weak (W1–W5) to Strong (S1–S3).
      • W1: no assertion; W2: existence/non-null checks; W3: boolean asserts only; W4: mock/call verification; W5: snapshot match only.
      • S1: value equality/comparison; S2: error/containment/type checks; S3: two or more distinct strong types.
  • Prevalence and agent differences
    • 80.2% of test-file patches are weak/no-oracle (W1–W5).
    • Strong-oracle presence overall: S1 = 11.3%, S3 = 5.7%.
    • Newly created test files show higher strong-oracle rates; across agents the new-file strong rate ranges ≈18% to 67% (agent-dependent).
    • Agents differ significantly in oracle quality (χ2 test reported).
  • Merge outcomes and review effort
    • Raw rates: S3 PRs merged at 59.7% vs 72.6% for weak-oracle PRs, but S3 PRs are much larger, more reviewed, and in more popular repos.
    • After controlling for confounders (agent, PR size, repo stars, task type, language), S3 oracles significantly increase merge likelihood (OR = 1.28, p < 0.001).
    • S3 PRs attract 2.4× more review effort and ~4.2× more code additions on average.
  • Validation and limitations
    • Human labeling: stratified sample of 384 patches, Cohen’s κ = 0.77; automated classifier matches human labels in 86.7% of sampled patches.
    • Limitations include regex/syntactic approach (may miss implicit or pre-existing oracles), dataset filtered to repos with ≥100 stars, timeframe and agent mix may limit generalizability.

Data & Methods

  • Data source: AIDev-pop subset (AIDev dataset).
  • Test-file identification: path-based test patterns + 30 source-code extensions; non-executable artifacts excluded.
  • Cumulative patch construction: concatenated diffs per (PR, filename) in commit order to capture the full oracle signal introduced by the PR (86,156 cumulative patches from 103,976 initial test patches).
  • Oracle signal taxonomy developed via iterative open coding; applied regex-based detectors for common assertion patterns across major testing frameworks (pytest, JUnit, Jest, Go testing, RSpec).
  • Manual validation: 384 stratified random patches labeled by two authors; disagreements resolved and inter-rater reliability computed.
  • PR-level aggregation: each PR assigned its strongest oracle-signal class across its test-file patches; grouped into three PR quality groups (all weak, has strong, has multi-strong).
  • Outcomes measured: merge outcome, review effort (formal reviews + inline + discussion comments), PR size (files changed, lines added), repo stars, time-to-close.
  • Analyses: descriptive distributions, controlled comparisons within agents/task types/PR size buckets, and multivariate logistic regression controlling for agent, log(PR size), log(repo stars), task type, and primary language.

Implications for AI Economics

  • Measurement and productivity metrics
    • Current productivity or quality metrics that count presence of tests (or coverage) will overestimate verification value when agent-authored tests are included. Firms relying on naïve KPIs (test-file counts, coverage badges) risk overstating agent productivity and software quality.
    • Economic evaluations of agent impact (labor substitution estimates, ROI models) should discount the verification value of agent-generated tests unless oracle quality is measured.
  • Incentives and tool procurement
    • Buyers and teams should prefer agents or configurations that are explicitly optimized for oracle generation (agents differ markedly on oracle rates). Procurement decisions and pricing models could reflect differences in verification capability, not only code-completion throughput.
    • Vendors could monetize higher-quality oracle generation (or offer it as a premium feature) because strong oracles correlate with higher merge likelihood after adjustment.
  • Cost structure and reviewer labor
    • Agent-generated PRs with stronger oracles are associated with larger, more-reviewed PRs; agent adoption may shift reviewer workloads rather than simply reduce them. Economic models of labor substitution must account for increased review and integration effort.
    • Organizations may incur additional costs to implement oracle-aware CI checks, manual audits, or curated prompting strategies that improve oracle quality.
  • Risk, externalities, and downstream costs
    • Weak or absent oracles create “test theater” that masks correctness issues; undiscovered faults can impose downstream debugging, incident, or reputation costs. Economic assessments of agent deployment should include probabilistic estimates of such downstream failure costs.
  • Policy and governance
    • Firms and regulators should consider standards for verification signals in automated contributions (e.g., require assertion patterns for newly added test files, or flag test files lacking oracles for manual review).
    • Procurement and approval workflows (e.g., for third-party code or agent-generated PRs) can include oracle-aware gates to reduce hidden risk and better align incentives.
  • Recommendations for economic actors
    • Update KPIs to include oracle-aware measures (e.g., fraction of test files with S1–S3 syntactic signals; follow-up validation or mutation testing success rates).
    • Differentiate agents on verification capability in vendor evaluations and cost-benefit analysis.
    • Invest in complementary labor (test-focused reviewers, mutation-guided validation) and in training/prompt engineering that explicitly requests behavioral assertions.
    • Track downstream incidents and remediation costs attributable to weak oracles to refine ROI and deployment strategies.

Concluding note: the study shows a measurable verification gap in agent-authored tests that alters the economic calculus of adopting coding agents — agents produce test structure cheaply but often not substantive verification, so organizations should recalibrate productivity, procurement, and governance decisions to reflect oracle quality rather than test-file counts alone.

Assessment

Paper Typecorrelational Evidence Strengthmedium — Large-scale dataset and statistically significant association (OR=1.28, p<0.001) provide credible correlational evidence that stronger explicit test oracles are linked to higher merge likelihood, but the study is observational and subject to unobserved confounding, selection effects, and potential measurement error in oracle coding, limiting causal claims. Methods Rigorhigh — Careful mixed-methods approach: stratified qualitative coding to build a clear syntactic taxonomy, application of that taxonomy at scale across tens of thousands of patches, and multivariate regression controlling for important confounders; however, subjectivity in manual coding and remaining omitted-variable risks remain. Sample86,156 test-file patches from 33,596 agent-authored PRs across 2,807 public GitHub repositories produced by five coding agents (OpenAI Codex, GitHub Copilot, Devin, Cursor, Claude Code); qualitative subsample of 384 stratified patches for taxonomy development; various languages and task types (not all detailed). Themeshuman_ai_collab productivity IdentificationObservational comparison using a logistic regression that adjusts for agent, PR size, repository popularity, task type, and programming language; qualitative stratified coding (n=384) produced a taxonomy of oracle-signal categories which was then applied at scale to 86,156 test-file patches; no randomization or natural experiment for causal identification. GeneralizabilityLimited to public GitHub repositories and the specific set of five coding agents studied, Findings may not generalize to private, enterprise, or other repository ecosystems, Temporal scope unspecified — agent capabilities and usage patterns evolve rapidly, Possible variation across programming languages and testing frameworks not fully explored, Results concern presence/strength of explicit oracles in tests, not broader measures of test effectiveness or runtime fault detection

Claims (9)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Recent studies report more than 932,000 agent-authored PRs across more than 116,000 repositories. Adoption Rate positive count of agent-authored pull requests
Reading fidelity high
Study strength medium
n=932000
more than 932,000 agent-authored PRs
0.3
Test files lacking explicit assertions execute code without verifying behavior, so quality gates based on test-file presence overestimate verification strength. Output Quality negative verification strength (presence of meaningful test assertions)
Reading fidelity high
Study strength medium
not reported
0.3
We conduct an empirical study of 86,156 test-file patches from 33,596 agent-authored PRs across 2,807 GitHub repositories produced by five coding agents: OpenAI Codex, GitHub Copilot, Devin, Cursor, and Claude Code. Other null_result dataset composition (counts of patches/PRs/repos/agents)
Reading fidelity high
Study strength high
n=86156
86,156 test-file patches from 33,596 agent-authored PRs across 2,807 repositories
0.5
A qualitative analysis of 384 stratified patches informs a syntactic taxonomy of eight oracle signal categories. Output Quality null_result taxonomy of oracle signal categories derived from qualitative analysis
Reading fidelity high
Study strength medium
n=384
384 stratified patches; eight oracle signal categories
0.3
Applied at scale, 80.2% of test patches contain weak or no explicit oracle signals. Output Quality negative presence of explicit oracle signals in test patches
Reading fidelity high
Study strength high
n=86156
80.2%
0.5
Raw merge rates are lower for strong-oracle PRs. Adoption Rate negative raw merge rate
Reading fidelity high
Study strength low
n=33596
0.15
A regression analysis adjusting for agent, PR size, repository popularity, task type, and language shows strong oracles significantly improve merge likelihood (OR = 1.28, p < 0.001). Adoption Rate positive merge likelihood (probability of PR being merged)
Reading fidelity high
Study strength medium
n=33596
OR = 1.28, p < 0.001
0.3
Test file counts substantially overestimate verification strength. Output Quality negative accuracy of using test-file counts as proxy for verification strength
Reading fidelity high
Study strength medium
n=86156
0.3
Practitioners can adopt oracle-aware quality checks to more accurately evaluate agent-authored contributions. Organizational Efficiency positive accuracy/effectiveness of quality evaluation for agent-authored contributions
Reading fidelity high
Study strength speculative
not reported
0.05

Notes