TL;DR · Review overload
- Not every PR needs a human. Sort PRs into a few review profiles by what a bug would cost, and send only the risky ones to an engineer who knows that code. Anthropic and Duckbill report about twice as many merged PRs.
- Not all code needs the same tests either. Use the same profiles: stricter profiles get stronger tests (property-based tests, fuzzing, formal methods), and unit tests are enough only for glue code. Mutation testing tells you whether your tests are any good.
- Build less. 28.5% of agent PRs never merge. Only give engineering tasks tied to revenue, a commitment or a concrete risk, and cut scope instead of splitting PRs.
- Try it like a customer, and make mistakes cheap to undo. For user-facing PRs, a tester tries the change in its own temporary environment before it merges; feature flags, canary releases and infrastructure as code everywhere.
Agents generate too much code and engineers spend too much time reviewing it. Sounds familiar? In this post I dive deep into the PR review bottleneck problem that so many are facing.
To start, we need to frame the problem properly. Review is not an isolated process, but rather a part of the pipeline that brings an idea all the way to deployed software, and consists of three steps: decide, build, check (Figure 1).
1 Decide
Tie each task to an outcome.
2 Build
The thinnest slice that delivers it.
3 Check: the bottleneck
TestsUse the full toolset
ReviewEngineers only for high-risk PRs
QAUse it like a customer. Try to break it.
Coding agents have substantially increased the capacity of the build step, and as a consequence, many got excited and started increasing the load at the input of the pipeline — let’s build everything! Predictably, this moved the bottleneck down to the third step.
What most are missing is that adding review capacity (for example with an AI reviewer) isn’t the only option: review is only one of three ways to check software before it ships. The other two, tests and QA, are under-used in my experience, and they can take load off review.
The other part of the solution is to decrease the load on the first step, and approve a request to the engineering team only if it is provably attached to a business outcome.
This post is a deep dive on failure mode 5, “review overload”, from my free guide Why context engineering isn’t enough. I’ll start by looking at data that helps us to define the problem more precisely, and then I’ll provide my recommendations on fixing this.
The 2026 review squeeze in data
Code volume and PR size jumped, review capacity didn’t, and a lot of the extra code wasn’t needed.
+51%diffs per developer at Meta, in one yearASE 2026
28.5%of agent PRs never mergeMSR 2026
5×median review timeFaros AI (vendor)
+242.7%incidents per PRFaros AI (vendor)
- More code: at Meta, diffs per developer grew 51% in a year and lines per diff 105.9%, over 80% of it from coding agents, while fewer diffs got reviewed within a day (ASE 2026).
- Much of it isn’t needed: 28.5% of agent PRs never merge (Ehsani et al., MSR 2026). Agents’ code is also thrown away more often, and sooner: 7.3% of the functions they add are later deleted, against 4.1% for humans, and half of those go within 3 days, against 34 (Pham & Ghaleb, MSR 2026). Even before agents, most ideas didn’t pay off: only one third of those tested at Microsoft improved the metric they targeted (Kohavi et al., KDD 2013), and 10–20% success rates are the most common across the industry (Kohavi et al., KDD 2024).
- Reviews skipped, incidents up: as median review time grew 5x, 31.3% more PRs merged with no review at all, and incidents per PR rose 242.7% (Faros AI, Apr 2026, vendor data).
- Bigger PRs, longer waits: median PR size grew 122% in a year, and AI teams wait 105% longer for a first review (DX Q3 2026, vendor data).
The usual advice to make smaller PRs shrinks each PR, not the total. Splitting the same change into smaller reviews saved no time and caught no extra bugs in a controlled experiment (di Biase et al., 2019), and each extra PR waits again for a reviewer.
What is the purpose of reviews?
Even before coding agents, human review was a poor bug filter. Of 570 review comments at Microsoft, only 14% were about defects (Bacchelli & Bird, ICSE 2013). At Mozilla, 54% of reviewed, approved changes still introduced bugs (Kononenko et al., ICSME 2015).
What review fixes instead is mostly structure: in two open-source projects, 75% of the changes made during review made the code easier to understand and change, and 25% fixed what it does (Beller et al., MSR 2014).
Human review pays off mostly when the reviewer knows the code. Studies at Microsoft and on Qt and OpenStack link familiarity with the code to better reviews: more useful comments and fewer bugs in production (Bosu, Greiler & Bird, MSR 2015, Thongtanunam et al., ICSE 2016).
AI reviewers don’t fill that gap yet: 56.3% of CodeRabbit’s suggestions that got a reply were rejected and only 36.4% accepted (though that appears to be increasing over time, and the data is somewhat old) (Lin et al., 2026).
What tests actually catch
Unit tests catch about half the small bugs planted in code: 45% for developers’ tests across 135 Java projects, and 43% with LLM-written assertions (Molinelli et al., ASE 2025).
Other kinds of test catch more, or catch what unit tests can’t. Across 40 Python projects, each property-based test caught about 50 times as many planted bugs as the average unit test (Ravi & Coblenz, OOPSLA 2025). At AWS, model checking found a DynamoDB bug that could lose data; its shortest trace took 35 steps, and it had passed unnoticed through extensive design reviews, code reviews and testing (Newcombe et al., CACM 2015).
When writing tests, agents lean more on mocks: across 1.2 million commits they changed test files more often than humans (23% vs 13%), but 36% of their test commits added mocks, against 26% (Hora & Robbes, MSR 2026). Mocks are often needed, but the fewer a test uses, the more real code it checks.
What QA is actually good for
QA can catch bugs that reviews and tests miss, because it uses the final product the way a customer would, and tries to break it. Passing tests don’t prove a change does what you wanted: 29.6% of agent patches that passed SWE-bench Verified’s tests in practice behaved differently from the human fix (Wang et al., 2026).
And a tester doesn’t need a script: people freely exploring an application found as many defects in the same time as people following written test cases, with fewer false reports (Itkonen et al., ESEM 2007), and in four later experiments more (Afzal et al., EMSE 2015).
Yet US companies are cutting QA: from 2023 to 2025, jobs for QA analysts and testers fell 8% while developer jobs grew 2% (BLS).
My take on fixing the review bottleneck
The biggest waste of your senior engineers’ time is reviewing code nobody needed. Every task you feed to engineering should tie to revenue, a customer or stakeholder commitment, or a concrete risk being reduced. No outcome, no code. Then build the thinnest slice that delivers it.
Cut scope, not PR size: split a PR only when it mixes unrelated changes.
Review: decide what needs a human
Not all code costs the same when it breaks. So sort PRs into a few review profiles, from strictest to loosest. A profile is a risk level: its actions decide which checks must pass, whether an agent reviews first, and who approves.
When you design the profiles, decide which parts of the code go in which one. Weigh how bad a failure there is, how much depends on that code, how easily a change rolls back, and whether automatic checks can tell if it’s right: the riskier it looks, the stricter its profile. These come from FMEA, the failure analysis used in the car industry (Bosch, 2012).
Then give each profile a definition: which PRs it applies to. Mostly file paths (e.g. db/migrations/**) and how well the author knows that code, read from git history. Optionally, add yes-or-no questions the paths can’t settle, like “does this PR add a module or change a public interface?”, and have an agent reviewer answer them. By the way, if you set up what I describe in failure mode 2 of my guide, an architecture description in the repo plus conformance checks against it, a deterministic check can answer that question, at least in part. I’ll go deeper on this in a later post.
In practice, a script in CI matches each PR to the strictest profile it fits and blocks the merge until that profile’s actions are done. The agent only answers the questions and the script decides, so the agent can make a PR stricter, never looser. AWS recommends the same split: the tier comes from what the change touches, and a deterministic gate applies the policy (Hawkins, Williams & Schiavone, Nov 2026).
When a profile needs a person, send the PR to someone who has reviewed that part of the code before, not to whoever is free.
Two teams that work this way report the payoff (self-reports, not audited):
- Duckbill asks for a human only on a short list of areas, such as auth, the public API and schema changes. Merged PRs rose 94%, and PRs without a human merged in a median 1 hour instead of 26 (Mike Julian, Sep 2026).
- Anthropic’s Claude Code team has a classifier pick each PR’s tier, from zero to two human approvals, and only trusted authors get the lighter tiers. Merged PRs more than doubled and the revert share fell over 40% (Osmani, Lunt & Wang, Oct 2026).
Tests: make them good, not just more
Set the tests per profile. Each profile lists the tests its code needs, and stricter profiles need stronger ones. Unit tests give an agent fast feedback, but they’re enough only for glue code.
Use the whole toolset. Each kind of test catches a different kind of bug (Figure 2). I’ll go through each one in depth in a later post.
| Part of the code | Typical bug | Reach for | What a human reads |
|---|---|---|---|
| Parses outside inputAPI handlers, webhooks, transaction decoding | Crash, hang, injection | Fuzzing | Little: the harness |
| Logic with a rulePricing, fees, a ledger, permissions | Wrong answer | Property-based tests | The rule, in one line |
| Stateful partsSmart contracts, state machines, queues | A bad sequence of calls | Stateful property tests (invariant tests) | The invariants |
| Distributed or concurrentConsensus, replication, retries | Races, partial failure | Deterministic simulation | The invariants |
| Where one bug is catastrophicSigning, a protocol’s core rules | The rare case no test hits | Formal methods | The spec |
| Between servicesYour services, third-party APIs | One side changes, the other breaks | Contract tests | The contract |
| User journeysSign-up, checkout, connecting a wallet | A broken flow | A few end-to-end tests | The list of journeys |
| Glue codeControllers, mappers, config | Wiring, typos | Types, linters, component tests | Nothing per PR |
How good is your test suite? Measure it with mutation testing, which plants the bugs for you and checks if your tests actually fail. You can use cargo-mutants (Rust), Stryker (JS/TS/C#), PIT (JVM), vertigo-rs (Solidity). Start with the riskiest modules, then run it only on the lines each PR changes (cargo-mutants --in-diff), as Google does in code review (Petrovic et al., IEEE TSE 2022). Use the score to find weak tests, not as a target (Papadakis et al., ICSE 2018).
Write a skill for tests. This improves consistency with agents: which kind of test they reach for in each part of the code, when a mock is fine and when a test must use the real thing, and how they write it.
QA and rollback: try the build like a customer, and make mistakes cheap to undo
Use it like a customer before customers do. For user-facing profiles, make a tester’s approval one of the profile’s actions. CI deploys each PR to its own temporary environment, seeded with realistic test data, and links it in the PR (GitLab calls these review apps). The tester (QA or the PM) opens the link, uses the change the way a customer would and tries to break it, and the merge waits for their OK. The environment shuts down when the PR merges. Every bug a tester finds before merge is one your engineers didn’t have to catch in review, so keep QA capacity in proportion to engineering output.
Make rollback fast across code and infrastructure. Pair lighter review with feature flags (and clean up old ones: a reused flag cost Knight Capital $460M in 45 minutes, Doug Seven, 2014), canary releases (Google SRE Workbook), and declarative infrastructure as code (Terraform, NixOS). Changes with side effects, like destructive migrations, sent emails or broadcast blockchain transactions, can’t be rolled back this way, so put them in your strictest profile.
Next week: the GitHub setup, with draft PRs, a CI script that labels each PR with its profile, and approval rules that follow the label.