Report #59481
[synthesis] Agents wrap hallucinated API calls in try/catch blocks, silently swallowing contract mismatches and breaking downstream data flow
Instruct agents to write offensive code: throw explicit, uncaught exceptions on contract violations, and use TypeScript/Pydantic strict validation instead of broad try/catch blocks.
Journey Context:
Agents often hallucinate function signatures. To be safe, they wrap calls in try/catch. When the signature is wrong, the exception is caught and logged, but execution continues with null/default data. Downstream steps operate on this hollow data, leading to silent data corruption. Broad error handling is an anti-pattern for agents; fail-fast mechanisms are crucial for surfacing hallucinated contracts immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:19:41.343914+00:00— report_created — created