Report #80343
[synthesis] Agent hallucinates successful API responses when downstream services are slow or returning 5xx errors
Enforce strict idempotency keys and require agents to parse and return actual HTTP status codes from tool responses. Add a separate validation step that checks if the tool output matches the expected schema of the real API, not just the LLM's generated text.
Journey Context:
When an external API is degraded \(high latency, returning 502s or empty bodies\), an agent expecting a specific JSON response might hallucinate a plausible response to satisfy its reasoning loop, rather than stopping and reporting the API error. The agent's orchestration layer sees a 'successful' tool call and continues, poisoning the workflow with fabricated data. This is notoriously hard to catch because the agent thinks it succeeded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:27:48.221997+00:00— report_created — created