Skip to content

AI engineering · 5 September 2026 · 7 min read

Not every bug is worth fixing: common sense for AI code review

AI reviewers find real bugs, and plenty of imaginary ones. Here's how we decide which findings to fix, and why defending against the impossible makes software worse.

  • AI engineering
  • Code review
  • AI coding agents
  • Security
  • For CTOs and tech leads
  • For engineers
In this article
  1. What does an imaginary bug look like?
  2. Why do AI reviewers flag so much?
  3. Is it real, or just possible?
  4. Where do defences belong?
  5. Doesn't this contradict refusing bad input?
  6. Six rules for triaging AI review findings
  7. What does this mean for your business?
  8. What should your team do first?
  9. FAQ

The short answer: AI reviewers are tireless at finding things that could go wrong. Some of those things will happen. Many never will. If you fix everything an agent flags, you end up with code that defends against imaginary attacks, is harder to read, and has more places for real bugs to hide. Every finding should answer one question before anyone fixes it: how, realistically, would this happen?

We've watched agents spend an afternoon defending against attacks that couldn't happen, so we've had to get good at telling the difference. Here's how we decide what's worth fixing.

What does an imaginary bug look like?

Here's a real one. During a review, an agent flagged a problem and set about fixing it: if an attacker managed to send a thousand requests within a single millisecond, something in the system might break.

On paper, it's true. In practice, it isn't going to happen. The requests would have to get past the network, the load balancer and the rate limits in front of the service, all arriving in a window shorter than the time it takes most of them to cross the internet. The "fix" was new code, new tests and a new thing for every future reader to understand, to protect against a scenario that can't realistically occur.

The agent wasn't wrong that the code could break under those conditions. It was wrong about whether the conditions could happen. That's a judgement call, and agents are poor at it on their own, because nothing in a piece of code tells you what the world around it looks like.

Why do AI reviewers flag so much?

Because finding things is what you asked them to do. An agent told to review code for problems will find problems. If the real ones are few, it keeps looking, and the bar for what counts quietly drops.

There's also no cost to the reviewer. Flagging a far-fetched risk takes one sentence. Fixing it takes someone's afternoon, adds code that has to be maintained, and makes the next review longer. Unless you make that cost part of the review, it doesn't get weighed.

And agents can't see the context outside the code. They don't know the system hasn't launched yet, that a service only ever talks to one other service you also own, or that a "user" in this part of the system is a trusted internal process. They review for the worst case because they can't rule it out.

Is it real, or just possible?

Our rule is short: a finding needs a realistic trigger, or a scenario the system will actually meet at scale. Failures that are virtually impossible never count as serious. They're either dropped, or recorded in one line in a list of known gaps, so the knowledge isn't lost and nobody spends a day on it.

We also tell reviewers this up front, in their instructions, and we reject fixes whose complexity outweighs the risk they remove. Fixing isn't free. A defence that's harder to understand than the problem it prevents is a bad trade.

A recent example. A full review of a new version of our platform came back with a mix of findings. Several were real and got fixed the same day: a background task that could be starved of time, and a resend at startup with no upper limit. Others were correct in general but irrelevant here: the code didn't handle old stored data in an outdated format, or database changes that had been edited after the fact. Those would matter in a system with years of production data. This one hasn't launched, and its stores are reset whenever the format moves on. So we rejected them as defects and wrote down why.

Where do defences belong?

None of this means "don't bother with safety". It means putting it where the risk is.

We learned this one the hard way. An earlier internal tool had limits at every layer: a maximum number of this, a maximum size of that, dozens of them, each with its own test. Most guarded trusted code reading local files, where nothing harmful could arrive. Meanwhile, the part of the system that actually changed things on the machine had far less protection. The cost landed where there was no risk, and every one of those arbitrary limits was a future failure waiting for a real project to hit it.

The rewrite moved the defences to the edges: where data comes in from outside, and where it leaves for someone else. Inside, trusted code is allowed to be simple.

Doesn't this contradict refusing bad input?

We're firm believers that impossible input should be refused loudly, never quietly capped or defaulted. That still stands, and it's a different thing.

Refusing bad input is usually one line, in one place, and it turns a hidden wrong answer into a visible error. Defending against a far-fetched scenario usually means new machinery: queues, limits, retries, extra state, and the tests for all of it. The first makes the code simpler to reason about. The second makes it harder.

The test is the same for both: what's the realistic failure, and what does the fix cost?

Six rules for triaging AI review findings

1. Ask for the trigger

Every serious finding names a realistic way it happens: what input, from whom, under what load. "An attacker could…" isn't enough on its own. Which attacker, and how did they get there?

2. Tell reviewers what the system is

Is it live or pre-launch? Who calls it? What sits in front of it? What scale will it really meet? A reviewer with context makes far fewer imaginary findings.

3. Weigh the fix, not just the bug

A fix adds code, tests and things to understand. If the fix is more complex than the risk is likely, don't do it.

4. Write down what you decide not to fix

One line in a known-gaps list is enough. It stops the same finding being raised, argued and re-raised every review, and it means the decision can be revisited if the context changes.

5. Defend at the edges

Put limits, validation and protection where untrusted data enters and where data leaves. Don't wrap every internal function in armour against callers you control.

6. Have a person make the call

Agents are good at finding risks. Deciding which ones matter needs someone who knows the business, the users and the system's real conditions. That judgement is a large part of what an experienced engineer brings.

What does this mean for your business?

More review findings don't mean more safety. Every fix costs time and money, and fixes for risks that can't really happen add complexity, which brings real risks of its own. A team that fixes everything an AI flags will be slower, and not noticeably safer.

What you actually want from your engineers is judgement: which risks are real for your business, your users and your scale, and which ones aren't. One good sign is a written list of risks the team has looked at and decided not to fix, each with a reason. That's not a team ignoring risk. It's a team managing it, and showing its working.

What should your team do first?

  • Add one line to your review instructions: "Every serious finding must name a realistic trigger. Virtually impossible failures are not serious."

  • Describe the system in every review brief: live or not, who uses it, what sits in front of it.

  • Start a known-gaps list for each service, and put rejected findings there with one line of reasoning.

  • Look at your last few "defensive" fixes and ask what they protect against. If nobody can say, they may be worth removing.

FAQ

Isn't it risky to ignore findings from an AI reviewer? Not ignoring, triaging. Each finding is weighed against how likely it is and what the fix costs, and the ones you don't fix are written down with a reason. That's more rigorous than fixing everything, not less, because every decision is explicit.

How do you stop AI code review from being noisy? Give the reviewer context about the system, a clear severity scale, and the rule that serious findings need a realistic trigger. Ask for evidence: the exact code, and no speculation. Noise drops sharply when reviewers know what counts.

What about security? Shouldn't you defend against everything? Defend against what's realistic for your system, at the points where untrusted input arrives. Security spread thinly over every internal function is usually weaker than security concentrated where the threats are.

Can AI judge how realistic a risk is? Partly, if you give it the context. But the final call depends on things that often aren't written down anywhere: how the system is really used, who the users are, what the business can tolerate. That call should stay with a person.


We embed engineers who know which risks are real. If your team is drowning in AI review findings, or not sure which ones to trust, we're happy to talk.

All articles

Read something that sounds like your problem?

A free 15-minute intro with our CEO. Bring the article, and he’ll tell you which service fits, if any. If a spreadsheet and two rules would do the job, we’ll say so.