Your AI code reviewer isn't a second opinion. It may be the first opinion again.
2 Nov 2026, 8:39 pm
A model writes the change. A model reviews the change and says it looks good. The pull request now has two positive signals on it, and it feels like two checks happened.
Often it was closer to one.
AI review is useful, and I'm not arguing against using it. I'm arguing against what teams quietly start treating it as: an independent security check. The demo vs. the merge queue
In the demo, the reviewer catches an unsanitized input, explains it clearly, and suggests a fix. That's real value, and it does happen.
In the merge queue, the hard cases look different. The code is clean, the summary is confident, and the flaw is something neither the author nor the reviewer had any reason to consider, because neither was told about it.
The scenarios below are illustrative, not real incidents. Failure mode 1: shared assumptions
The ticket says: "Add an endpoint so users can download their invoices." A coding assistant produces this:
An AI reviewer reads the diff and reports: authentication is enforced, the ORM prevents SQL injection, no obvious issues. Each of those statements is true.
Any logged-in user can still download any invoice by changing the ID.
The generator treated "logged in" as "allowed." If the reviewer starts from the same ticket, the same diff, and the same mental shortcut, it can make the same mistake. Using a different model may help, but it doesn't make the review independent. A gap in the context is a gap for every model that receives that context.
The useful check starts somewhere else, at the requirement: who is allowed to read this invoice? Failure mode 2: the diff isn't the control flow
A reviewer that sees only the diff sees only what changed. Security behavior often lives in what didn't.
Say a PR adds a new router in routes/export.js. The file looks fine. But the auth middleware is mounted per path in app.js, a file the PR never touches, and the new path isn't covered. No line in the diff is wrong. The bug exists in the relationship between that diff and the rest of the system.
Before trusting "looks safe" on a sensitive change, trace the path a request actually takes. If the tool can't show you that path, it hasn't checked it. Failure mode 3: the confident explanation
"This change validates input and enforces appropriate permissions" is a sentence about the code. It isn't evidence about the code.
Fluent summaries are easy to accept, especially at the end of a long day with ten PRs left. A simple habit helps: for any important claim, ask what would demonstrate it. Which line enforces the permission? Which test fails if it's removed? If nobody can point to anything, the claim is still a hypothesis. Failure mode 4: tests that inherit the blind spot
Generated tests can repeat the same assumption as generated code. A test that logs in as the owner and gets a 200 passes on the vulnerable endpoint above. It proves the happy path works.
A test written from the requirement looks different:
That test fails until the query i…
https://dev.to/cyclopt_dimitrisk/your-ai-code-reviewer-isnt-a-second-opinion-it-may-be-the-first-opinion-again-nbm