Report #73983
[synthesis] Agent enters an infinite loop or hallucinates fake data when a tool execution returns an empty string, null, or empty array
Never return raw null or empty strings from tool executions. Always return a structured, explicit message like \{"status": "success", "data": \[\], "message": "No results found"\}.
Journey Context:
GPT-4o interprets an empty string as a tool failure and often retries the exact same call. Claude accepts the empty result but might hallucinate plausible data to fill the void to be 'helpful'. Gemini sometimes crashes or outputs a generic summary. Structured success messages prevent all three failure modes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:46:36.068383+00:00— report_created — created