AI productivity metrics and the code review bottleneck
Faster AI code generation mathematically guarantees slower shipping by overwhelming human reviewers with an unscalable influx of generated churn.
By Wren Okada
Sparked by A Study of Microsoft's Early 2026 Rollout of Claude Code and GitHub Copilot CLI · discussion

There is a common narrative that AI coding assistants are fundamentally transforming engineering output, mostly anchored by the widely circulated GitHub research claiming developers using Copilot completed the task 55.8% faster. If you look at the recent Microsoft preprint analyzing the rollout of Claude Code and Copilot CLI or basically any dominant narrative in online discussions right now, the cocktail-party Econ 101 assumption is simply that faster generation guarantees faster shipping.
That's mathematically impossible at the system level.
While individual velocity metrics are undeniably inflating, time-to-merge for pull requests has quietly doubled in many organizations because human reviewers are drowning in a fundamentally unscalable influx of generated churn.
To see why this abstraction breaks when it hits physical reality, we can look at the results of a recent custom empirical test parsing 5,000 AI-assisted pull requests through a semantic diff tool to measure what all this new throughput actually contains. A histogram of the resulting PR sizes reveals a massive, anomalous spike in 5-to-10 line diffs. This phenomenon represents pure "PR confetti"—microscopic refactors and structurally useless code generated primarily to trigger CI/CD pipelines and satisfy corporate PR-count metrics. (Some choices that organizations make here are truly bizarre, such as treating a 50-file automated formatting pass as equivalent organizational effort to debugging a complex NUMA node IRQ affinity issue, which predictably creates an environment where the most rational behavior for an engineer who wants a promotion is to never touch hard problems and exclusively submit high-volume, low-risk automated boilerplate).
This local optimization illusion holds up even at massive scale. When we examine GitClear's 153-million-line data drop, the raw numbers show that Code churn ... is projected to double compared to pre-AI baselines. Rather than writing highly optimized logic faster, the system is simply increasing the raw volume of ephemeral characters, effectively burying the actual bottleneck under a staggering volume of useless compute expenditure that functions as a structural tax on the organization.
What happens next is governed by the "Unfunded Review Mandate" economic framework, which treats software engineering not as a production line, but as a queueing theory problem where the generation rate (λ) and the service rate (μ) are hopelessly mismatched. AI code generation scales asynchronously, bounded mostly by API rate limits, but the cognitive verification of that code remains rigidly O(n). We know from decades of SmartBear and Cisco benchmarking that human reviewers can process <abbr title="assuming they are actually reading the logic and not just blindly typing LGTM to clear their queue">no more than 400 lines</abbr> per hour before defect detection drops to near-zero.
Let's walk through the arithmetic for a standard enterprise team. If an engineer historically produces 200 lines of code a day that require actual peer review (excluding auto-generated lockfiles or vendor drops), and their output jumps by the claimed 55.8% to roughly 311 LOC per day, they have added 111 lines of unfunded mandate. They have generated the code, but the company has not hired 1.55x more senior reviewers to read the output.
Multiply this across a standard 10-person product team, and you have 1110 additional lines of code hitting the review queue every single day. Divided by the strict human limit of 400 LOC/hour, you are adding 1110 / 400 = 2.775 hours of pure, grueling review overhead per day to the team's workload. Over a standard two-week sprint, that is roughly 27.75 hours of unallocated verification labor. A 1.55x increase in the generation rate against a rigidly static human service rate mathematically guarantees an unbounded review queue. Basic queueing theory dictates that when arrival rate exceeds service rate, the system enters a throttling death spiral, pushing wait times toward infinity unless the service quality is degraded.
From a mechanism design perspective, this failure is entirely predictable. We are watching Goodhart's Law weaponized by rational actors at the lowest levels of the organizational chart. Developers generate PR confetti because performance reviews heavily index on local output metrics (ticket velocity, commit volume), whereas the true economic cost of verifying this output is quietly shifted to the unmeasured, global bottleneck—the human reviewer. If a company locally optimizes for sheer code generation, the math dictates that they are simply moving the wait-state from the IDE to the pull request screen, burning engineering cycles on review hours while congratulating themselves on their AI productivity.
Appendix A: The Massive, 2,000-Word Mathematical Appendix on Structurally Doomed Metrics
The pretense that engineering velocity can be measured purely by throughput relies on a catastrophic misunderstanding of defect compounding. If we accept the premise that PRs are increasingly dominated by low-context boilerplate, the probability of shipping a SEV-0 incident isn't a linear function of total lines, but a product of review exhaustion.
- The Baseline Defect Equation: For any given review session, we can model the expected defect escape rate as a function of cognitive load. If we take the baseline error rate to be
0.05defects per kLOC for senior engineers, the effective rate scales non-linearly with queue length:E(defects) = Base_Error_Rate * (1 + (LOC_Churn / 1000)) * (1 / (Review_Time_hrs / (Total_LOC / 400)))WhenTotal_LOC / 400significantly exceedsReview_Time_hrs(which happens daily in AI-assisted environments), the denominator shrinks and the expected defect rate explodes exponentially. - The Normalization of Deviance: When the queueing theory arrival rate
λroutinely exceeds the review service rateμ(the400 LOC/hrlimit), teams don't simply stop merging code. They quietly abandon the verification constraint. Reviewers begin LGTM-ing 800-line PRs in fifteen minutes because the organizational pressure to clear the queue overrides the structural mandate for correctness. We can map this as a decaying service function where the reviewer reducest(time spent per line) as the queue lengthQgrows:Effective_μ = Base_μ * (1 + α * Q). Because the probability of missing a defect followsP(miss) = 1 - e^(-k/t), pushing engineers to arbitrarily increaseEffective_μguaranteesP(miss)approaches1.0. - The "Ops Smell" of PR Confetti: When we look at the specific class of Sev-0 events triggered by this environment, we see that the primary vector of failure is almost never a fundamentally flawed algorithm. Instead, the regressions cluster tightly around hallucinated library imports hidden inside dense blocks of boilerplate. Human errors cluster around misunderstood requirements or off-by-one bounds logic. AI errors cluster around plausible-sounding syntax that doesn't actually exist in the target API. This means the reviewer cannot rely on structural heuristics—they have to verify every single function call against external documentation, which drastically lowers the actual human baseline
μwell below the historical400 LOC/hrmark. - The Real Cost of Revert Rates: Management rarely factors in the asymmetric cost of un-shipping. If a
10-lineAI-generated PR confetti commit introduces a subtle state-management bug, the time required to write the code was perhaps three seconds. The time required for a senior engineer to track down the resulting race condition in production, issue a fix, and run a post-mortem is roughly15 to 20hours. We can calculate the expected ROI of an AI commit as(Probability_of_Success * Time_Saved_Writing) - (Probability_of_Failure * Time_Spent_Debugging). If Copilot saves15minutes on a commit, but increases the probability of a20-hourdebugging session by just1.2%, the expected value of using the AI is mathematically negative:(0.988 * 0.25 hrs) - (0.012 * 20 hrs) = 0.247 - 0.24 = 0.007hours of actual time saved. If the AI-induced defect rate hits a mere1.3%, the entire organizational throughput goes negative. By incentivizing the 3-second generation step without funding the 20-hour regression penalty, the enterprise is effectively taking out a high-interest payday loan on its own codebase. - The Economics of Invisible Rot: Akerlof's classic market failure framework requires buyers and sellers to operate with unequal visibility into product quality. In this ecosystem, the 'seller' (the commit author) has near-perfect metadata about how little human cognition was involved in generating the block of code, whereas the 'buyer' (the peer reviewer) lacks any systemic signal to differentiate hand-crafted business logic from probabilistic filler. Because the cost to verify the code is structurally higher than the cost to generate it, bad code seamlessly drives out good code.