Reviewing AI-generated pull requests (PRs) requires a different approach than reviewing human-generated PRs. This post explains the adjustments we made to handle a deluge of such PRs in Apache DataFusion in late 2026.
Is Human Code Review Old-Fashioned?
I know it is trendy to say that code no longer matters and that using AI tools to generate and review code is the future of software engineering. That may eventually be true. However, I still see a lot of AI-generated code that is “correct” but solves the wrong problem, solves a problem nobody has, or patches a symptom without addressing the root cause.1 I don’t know of any valuable production system that AI agents have built, reviewed, and maintained without substantial human review.
Until the tools get much better, I believe open source communities are the best way for people to build and maintain critical software. We do need to adjust how we review PRs, however, to keep those communities sustainable.
The Onslaught
We had about 300 open PRs this summer, and the number climbed sharply in the fall, reaching 500 by mid-October.
From June to October, the number of accounts opening their first PR each month also more than tripled.
Reviewing Human-Generated PRs with Empathy
My philosophy for reviewing human-generated PRs is pretty much the Golden Rule – treat others how you would like to be treated. If someone cared enough to learn DataFusion, Rust, and our process to create a PR, we owed them a review and feedback on their contribution. Opening a PR took substantial effort, and that effort was evidence of the author’s commitment to our project. Our review effort was evidence of our commitment to the community. I believe this approach helped DataFusion grow into a healthy open source project with a strong community of contributors.
However, once the PR volume exceeded what we could keep up with, I couldn’t keep following that philosophy, which was deeply demotivating and had me questioning the future of open source software engineering.
Matching Review Effort to Author Effort
As is perhaps obvious in retrospect, most new PRs were not from people investing substantial effort in our community. Instead, they were almost certainly generated using short prompts to AI coding agents, likely without much (if any) human review.2 The key dynamic, which I am not the first to observe, is that creating a PR takes much less effort than reviewing it.3
To give you a taste of what this looked like, one account opened 12 DataFusion PRs in under three hours, and several accounts submitted PRs to more than 20 repositories over 30 days. Some accounts submitted over 500 PRs. The chance that any person paid significant attention to that many PRs is low, and creating those PRs certainly took less attention than I was trying to pay as the reviewer. So we made some changes to try and reduce the asymmetry.
Process Changes
Limit open PRs. After a community discussion, contributors without write access were limited to three open, non-draft PRs at a time. The limit forces contributors to choose which PRs matter most and explain their choices, which helps us understand their priorities and motivations and decide where to spend our review time.
Decline PRs from fully autonomous agents. We added an explicit instruction to our AI policy asking agents to open PRs only with meaningful human oversight, and we more quickly closed PRs that lacked such supervision.
Aggressively close PRs that are unlikely to be reviewed.
Using a script to identify Prolific Authors
who were likely investing minimal effort in their PRs, we much more aggressively
closed PRs when review comments went unanswered or
replies were clearly unedited agent output.4
Run tests in contributors’ forks. The Apache Software Foundation used to have effectively unlimited GitHub Actions capacity,5 and we ran CI tests for all contributor PRs. However, the deluge of AI-generated PRs in the fall lead to days when it took more than seven hours for jobs to start. To bring balance, we updated our CI workflow to run tests in contributors’ forks (using their GitHub Actions capacity), which returned the time to run CI on our repo to minutes.
Requesting Changes Vigorously
Recently, I’ve been trying to go through approved PRs before they are merged and request changes or additional clarification when needed. This helps ensure PRs aren’t merged just because they look plausible and another agent signed off.6 Each PR must make sense and be a good idea in the context of the overall system. For example, here are some PRs where requesting changes and insisting on clarity resulted in much better merged code:
-
Wall-of-text obfuscation comments: after a few rounds in which I asked the author to actually read the comments and articulate them in their own words, the diff went from +1,526 lines to +1,164 lines.
-
Hard-to-verify behavior changes: The initial tests and code had more than 1,200 lines of changes. After several changes (described in my transcript testing post), the version we merged was 191 lines and clearly showed the behavior change in an easy-to-understand way.
-
A series of one-off patches to subquery planning from different authors added special cases for various new queries, but each such patch opened a bunch of bugs that produced wrong results. We stopped the onslaught of patches and are working on a proper subquery design to handle the general case.
Going Forward
The number of open PRs is still climbing, and I don’t realistically see that changing – instead, we need to adjust to this new reality. Code is now (effectively) free to write, but reviewer capacity from people who understand the system remains scarce. I plan to focus most of my attention on helping develop the humans who use DataFusion, want to understand it better, and drive it forward. If this description matches you, please consider joining the community.
-
All three problems are common in entirely human-written PRs too. ↩︎
-
I think most of the people involved have good intentions. A prompt like “find and fix bugs in open source projects” is not obviously malicious, though it has seriously negative impacts on the community as I wrote about in a past post. ↩︎
-
I’d always been reluctant to close PRs, but I finally realized that such contributors were effectively stealing my attention and harming the community in the process. ↩︎
-
In the sense our CI jobs never waited more than a minute or two for a runner. ↩︎
-
As PR volume grows, it is increasingly common for maintainers to review and approve PRs based (seemingly) solely on a coding agent’s approval, negatively impacting the quality of the code. An agent’s review and approval, while useful, do not necessarily mean the code should be committed. ↩︎