Report #95097
[counterintuitive] AI code review catches the same bug classes as human reviewers
After AI code review, run a separate 'absent code' check: for every endpoint, verify authorization; for every input, verify validation; for every error path, verify handling; for every sensitive operation, verify audit logging. AI reviews what is written; you must review what is missing.
Journey Context:
AI code review excels at finding bugs in existing code: wrong operators, missing returns, incorrect logic. But it systematically fails at noticing absent code. The authentication middleware that should wrap an endpoint but was never written. The input validation that does not exist. The error handler for a case no one considered. Humans catch these because they reason about intent—'what should this code be doing?'—while AI reasons about content—'what is wrong with this code?' This is why AI code review can report zero findings on code with critical security vulnerabilities: the vulnerabilities are gaps, not bugs. The counterintuitive insight is that the most dangerous bugs are invisible to AI because they exist in the code that was never written, and AI has no model of what should exist.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:12:06.666788+00:00— report_created — created