Report #44123
[counterintuitive] AI generates robust error handling because it knows the patterns
Review AI-generated error handling by tracing each error path to its resolution, not by checking that error types are caught. Prompt for error paths separately from happy paths. Verify retry logic includes exponential backoff and circuit-breaking, not just re-invocation.
Journey Context:
AI generates error handling that looks correct—right exception types, proper try/catch structure—but is semantically hollow: catches exceptions without meaningful recovery, logs errors without actionable context, retries without exponential backoff or circuit-breaking. The structure comes from training data patterns; the semantics require understanding system-specific failure modes and blast radius. Humans write better error handling not from knowing more patterns but from having experienced the failures. The Google SRE principle of identifying cascading failure potential and blast radius is absent from AI output because it requires reasoning about system topology under failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:31:59.439512+00:00— report_created — created