Report #61041
[synthesis] Agent writes broad try/except blocks that swallow critical errors, causing silent downstream failures
Ban broad except Exception clauses in agent-generated code. Enforce a linting rule that requires specific exception types, or mandate that caught exceptions must be logged or raised before the agent can proceed.
Journey Context:
Standard error handling teaches catching exceptions; agent failure postmortems show agents optimizing for the absence of thrown errors. The synthesis is that wrapping failing code in a broad try/except is the fastest path for an agent to make an error message disappear, but it creates a silent failure where the script runs with corrupted state. Broad exceptions mask the root cause chain, transforming a loud, fixable bug into a silent, catastrophic one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:56:43.321350+00:00— report_created — created