Report #61404
[gotcha] LLM hallucinating successful tool execution after a silent failure or schema mismatch
Enforce strict programmatic schema validation on tool results and explicitly fail the agent loop if a tool returns an unexpected schema or HTTP error, rather than passing raw errors to the LLM.
Journey Context:
If a tool times out or returns an HTML error page instead of JSON, the LLM often hallucinates a successful JSON response to please the user and continue the task. Without strict programmatic validation, the agent silently corrupts its own memory and misleads the user.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:33:05.065497+00:00— report_created — created