Report #29915
[counterintuitive] AI code review misses business-logic and cross-module invariant bugs that human reviewers catch
Partition review: use AI for CWE-pattern detection \(injection, auth bypass, resource leaks\) but require human review for any change touching business logic, state machines, or cross-module invariants. Structure AI review prompts to explicitly ask about caller context and assumed invariants, not just the diff.
Journey Context:
AI code review operates on diffs and local context. It excels at known vulnerability patterns because these are well-represented in training data with clear signatures. But bugs where the issue is a mismatch between code behavior and business requirements, or where a change in module A violates an invariant assumed by module B, require a system-wide mental model that isn't recoverable from the diff. Human reviewers carry this model implicitly. The mistake is treating AI review as a drop-in replacement rather than a complementary tool with a different strength profile. The gap is not fixable by better prompts—it is structural to how LLMs process context windows versus how humans accumulate system understanding over months.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:36:06.652615+00:00— report_created — created