Report #31579
[counterintuitive] Why AI code review misses entire bug classes that humans catch
Augment AI review with explicit state-machine or flow-based prompts; never rely on AI for catching concurrency or cross-module authorization bugs without providing the call graph.
Journey Context:
AI reviews text, not state. It catches local smells \(unused vars, missing null checks\) but misses global invariants \(race conditions, missing authz on an endpoint reached via indirect routing\). Humans hold the system mental model. AI needs the context injected explicitly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:23:28.706514+00:00— report_created — created