Report #68670
[counterintuitive] AI can reliably identify missing error handling in code reviews
Explicitly enumerate expected failure modes and error types in the prompt or code comments; do not rely on AI to infer undocumented operational failure states.
Journey Context:
AI is great at adding 'try/catch' boilerplate, but it fails catastrophically at identifying \*missing\* error handling for domain-specific failure modes. It assumes the happy path is the only path unless explicitly told otherwise. A senior engineer looks at a file read and intuitively asks 'what if the disk is full?' or 'what if the file is locked?'. AI looks at the same code and sees a valid I/O operation. It catches syntax errors in error handling, but misses entire bug classes of unhandled operational exceptions because it lacks real-world operational scars.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:44:47.184151+00:00— report_created — created