Documentation Drift in AI-Generated Pull Requests
Will De Michele, Kla Tantithamthavorn
Key points
From the paper's conclusion- We analyse 29,669 AI-generated pull requests from 2,585 repositories in the AIDev dataset, measuring documentation co-change: whether code-file modifications are accompanied by a documentation-file update in the same PR.
Abstract
AI coding agents now contribute to software repositories at scale, yet their documentation practices remain uncharacterised. We analyse 29,669 AI-generated pull requests from 2,585 repositories in the AIDev dataset, measuring documentation co-change: whether code-file modifications are accompanied by a documentation-file update in the same PR. We find that 63.2% of AI PRs change code without updating any documentation. This varies sharply by task type: 55.2% for features and 77.5% for refactoring. Undocumented code files are followed by a fix to the same file 8.6 to 11.7% more often than documented files across 30 to 90-day windows. A raw PR-level comparison shows the opposite because documented PRs are 3.9 times larger and therefore attract more fixes. Controlling for size exposure reverses this result. Documented changes also merge faster despite their larger size (median: 40 seconds versus 184 seconds), although merging is largely automated in this dataset. Documentation drift also compounds: within 90 days, a file changed without documentation is later re-documented at roughly half the rate of a file changed with documentation (24% versus 48%). This suggests that documentation debt tends to accumulate rather than be revisited.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical DocumentationarXiv · 2026
- What Will Replace Pull Requests? Rethinking Software Collaboration for AI AgentsarXiv · 2026
- Lessons Outlive Their Failures: A Case Study of Rules for AI Coding AgentsarXiv · 2026
- Toward an Evidence-Based Template for Agent Instruction Files: An Empirical Study of Adoption, Consistency, and MaintenancearXiv · 2026
- What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.mdarXiv · 2026
- Agentic Much? Adoption of Coding Agents on GitHubACM Transactions on Software Engineering and Methodology · 2026