When Code Review Becomes the Bug

An unexpected failure mode in AI-native software engineering.

How repeated code review can erode intended behavior, and four steps for verifying a proposed defect.

Something strange is happening in AI-native software development. Code review is getting remarkably good. And that’s starting to create problems of its own.

Not because reviewers are missing bugs. Quite the opposite.

Working with an exceptional engineering team, I’ve watched the scale and complexity of what we can build change dramatically. A single pull request can now contain interconnected changes that would have required weeks of coordinated engineering effort not long ago. Entire subsystems can emerge in hours.

And the automated reviewers are keeping up.

They’re finding subtle concurrency hazards, broken transactional guarantees, numerical errors buried several abstractions deep, and failure conditions that require a serious understanding of the system to recognize.

A substantial PR might go through several rounds of review, with each round uncovering another legitimate defect.

That’s an impressive capability. But it comes with a failure mode I hadn’t anticipated.

A reviewer can be exceptionally good at finding bugs while simultaneously becoming a source of bugs itself.

Asymmetry Nobody Designed

Consider what happens when one agent writes the code and another reviews it.

The authoring agent has spent considerable time constructing the system. Along the way, it’s made architectural decisions, worked through requirements, rejected alternatives, and discovered constraints that weren’t obvious at the outset.

Some of that knowledge lives in documentation. Some is captured in tests. Much of it exists only in the history of how the implementation came together.

The reviewing agent arrives later.

It has the diff, access to the repository, and perhaps a carefully prepared architectural summary. It can inspect callers, trace data flows, run tests, and reason about failure conditions with considerable sophistication.

But it doesn’t necessarily understand why the system was built this way.

That’s the asymmetry.

The reviewer can understand the implementation well enough to identify a genuine technical defect without understanding the intended behavior well enough to recommend the right correction.

And the better its technical analysis, the more persuasive that recommendation becomes.

Here’s how the failure unfolds.

A reviewer identifies a problem, explains the underlying mechanism, and proposes a fix. The authoring agent accepts the recommendation and makes the change.

The reviewer is satisfied. The tests pass.

But the correction has quietly removed an important capability, weakened an existing guarantee, or simplified away behavior that was intentional.

The next review identifies another issue. Another correction follows. Eventually the PR is approved.

At no point did anyone explicitly decide to remove the original behavior. It simply disappeared along the way.

The code becomes progressively more compliant with the reviewer’s expectations, without necessarily becoming more correct.

I’ve started thinking of this as review-induced specification erosion.

It’s particularly difficult to recognize because all the usual engineering signals can look positive. More tests pass. Review findings are resolved. The implementation gets cleaner. The PR goes green.

Meanwhile, the software has become less faithful to what we actually intended to build.

More Intelligence Makes Things Worse

This isn’t a hypothetical. The problem emerged from direct empirical evidence in my own engineering work. I’ve documented multiple instances of this failure mode across real development and review cycles. The underlying implementations and review histories are private, but the pattern has been consistent enough to change how I’m approaching the problem.

The distinction that matters is between identifying a defect and determining what should be done about it.

An automated reviewer might correctly identify a concurrency hazard but misunderstand the guarantees the surrounding system needs to preserve. Or it might construct an entirely plausible argument around an architectural assumption that turns out to be false.

Both can lead to unnecessary or damaging changes if the authoring agent treats the review as an instruction rather than a claim to be evaluated.

I’ve also seen the other side of this: reviewers uncovering serious defects that could easily have escaped conventional testing, along with findings initially considered blockers that were subsequently disproven.

These aren’t reasons to distrust automated review. They’re reasons to be much more precise about what a review actually establishes.

And here’s the hard part: making reviewers more intelligent doesn’t automatically solve the problem. It can make it harder to detect.

A mediocre reviewer often makes mistakes that are easy to recognize. A highly capable reviewer can build a detailed, technically credible argument on top of a mistaken assumption. The reasoning may be excellent. The premise may still be wrong.

That’s a much more difficult failure to catch, particularly when the authoring agent is inclined to accept the reviewer’s conclusions.

None of this is entirely new. Human reviewers misunderstand design intent too. What’s different is the speed and scale at which autonomous agents can turn a review finding into a code change, then repeat the process.

The more capable these systems become, the more valuable their independent criticism becomes, the more important it is not to confuse that criticism with authority.

We’ve spent decades building engineering workflows around the idea that additional review moves software toward correctness.

That assumption needs qualification when the participants are autonomous agents.

Review is not necessarily a monotonically improving process.

Finding is Not a Fact

I think part of the problem is how we’ve defined the output of code review.

The reviewer finds something suspicious, explains what’s wrong, and recommends a correction. That’s a perfectly reasonable workflow when the person receiving the review understands the broader design and can exercise independent judgment.

With autonomous agents, that boundary becomes less reliable.

The moment an authoring agent treats a review recommendation as an instruction, the reviewer has effectively acquired design authority.

Without necessarily having the context that should come with it.

The alternative I’m pursuing changes the fundamental unit of review.

Instead of producing a recommendation, the reviewer produces a falsifiable challenge.

The distinction matters.

A useful challenge needs to establish a potential contradiction between two independent claims:

What the implementation actually does, and what the system is supposed to do.

Both require evidence.

The first is a technical question. Can we establish that a particular behavior occurs under reachable conditions? Can we reproduce it, trace the execution path, or demonstrate the failure through a meaningful test?

The second is harder. What evidence establishes that the behavior is actually wrong?

That requires examining requirements, interfaces, contracts, previous behavior, architectural decisions, and the expectations of other components.

And none of those sources is automatically authoritative.

Tests can encode mistaken assumptions. Documentation goes stale. Previous behavior may have been deliberately replaced. Even the authoring agent’s understanding of the system can be incomplete.

Sometimes the intended behavior simply cannot be established from the available evidence.

That’s not an invitation to guess. It’s a question that needs to be resolved by someone with the appropriate context and authority.

More importantly, the reviewer should actively attempt to disprove its own challenge before presenting it to the author.

Is the failure actually reachable? Does another layer already prevent it? Has the reviewer misunderstood the contract? Is the apparent inconsistency deliberate? Does the suspected bug survive examination of the real execution path?

And if the implementation does behave as claimed, is there sufficient evidence that a different behavior is required?

This changes the reviewer’s job.

The objective is no longer to find something that looks wrong and explain how to fix it.

It’s to establish a contradiction between implementation and intent that survives serious attempts to disprove it.

A challenge should make clear what was observed, why it appears to violate a requirement, what evidence supports that requirement, and what would invalidate the claim. If the evidence doesn’t hold, the finding should be discarded. If intent remains ambiguous, the uncertainty should be explicit.

Neither situation justifies an automatic code change.

A verification flow that routes proposed defects to confirmed, invalid, or unresolved outcomes.

Adversarial Verification

I’ve been refactoring an older project of mine, AI Code Review, around this approach.

The original architecture assembled detailed review packets: code changes, dependency relationships, architectural context, affected consumers, and likely risk areas. The goal was to give an AI reviewer enough information to examine an unfamiliar codebase with something approaching the judgment of an experienced engineer.

That context remains valuable.

But the evidence from our development work has convinced me that the more important problem comes after the reviewer notices something suspicious.

The new architecture treats code review as an adversarial investigation.

The reviewer constructs a falsifiable challenge, supported by evidence of both implementation behavior and intended behavior. It attempts to disprove its own conclusions before reporting them.

An independent verification pass can then examine the challenge from the other direction, looking for counterexamples, unsupported assumptions, conflicting requirements, or evidence that the reported failure isn’t actually possible.

A demonstrated contradiction can be returned to the author. An invalid challenge can be rejected. Ambiguous intent remains unresolved until the necessary decision is made.

The authoring agent retains responsibility for the implementation and its design decisions.

And there’s another important requirement: resolving a verified defect must not silently invalidate other guarantees.

That means verification cannot stop at confirming that the reported bug has disappeared. It also needs to examine what the correction might have broken.

This isn’t about adding more reviewers or producing increasingly elaborate review reports.

It’s about changing the relationship between criticism, evidence, and authority.

A reviewer should be free to challenge any part of the system. It should not be able to redefine the system simply by producing a convincing recommendation.

Likewise, the author shouldn’t be obligated to make a change because another intelligent agent has constructed an impressive argument.

That doesn’t mean every challenge needs a perfectly reproducible test. Concurrency bugs, distributed failure conditions, and intermittent failures don’t always cooperate with that standard.

But the burden of investigation should remain with the agent making the claim. Assumptions should be visible. Uncertainty should be explicit. And the challenge should contain enough evidence that another capable agent can meaningfully dispute it.

The quality of an automated reviewer should ultimately be measured not by how many findings it produces, or how convincing they sound, but by how reliably those findings survive independent examination.

We’re now incorporating this approach into an active engineering development cycle, informed by the failures that motivated it.

I’m also making AI Code Review available under the MIT open-source license. The implementation includes the review protocols, repository analysis, and tooling needed to experiment with this approach. Anyone interested can inspect the code, use it in their own workflow, or improve upon it.

The Next Bottleneck

There’s a broader engineering problem here that extends well beyond code review.

AI-native development is changing the economics of software construction. As implementation gets dramatically faster, we’re discovering that producing sophisticated systems and maintaining a coherent understanding of those systems are two very different capabilities.

The code is only part of what we’re building.

The rest is the accumulated intent: what the system promises, which behaviors must remain true, which compromises were deliberate, and which capabilities cannot be sacrificed just because another implementation looks cleaner.

That understanding is distributed across people, agents, repositories, tests, decisions, and time.

No single participant necessarily has the complete picture.

So the interesting engineering problem is no longer just how to make individual agents better at their jobs. It’s how to make a collection of very capable agents reason, disagree, investigate, and correct one another without gradually losing the thing they were collectively trying to build.

In some ways, this looks less like conventional code review and more like designing a distributed system for reasoning.

Each participant has incomplete context. Each can arrive at a locally defensible conclusion. Those conclusions can conflict. And without an explicit way to reconcile them against shared evidence and intended behavior, individually reasonable decisions can produce a globally incorrect result.

That’s a familiar systems problem, even if the participants and failure modes are new.

We’ve become remarkably good at making machines productive authors of software.

Now we need to make them accountable critics.

The next frontier isn’t finding more bugs. It’s distinguishing a genuine defect from a persuasive misunderstanding, and fixing the former without allowing the latter to quietly redesign the system.

Because the ultimate measure of engineering quality isn’t whether the reviewer is satisfied.

It’s whether the software still does what we meant it to do.

Josh English is the VP of Engineering at Chronicle Media, and can be followed on X (@JoshSeriesAI)