Report #79010
[synthesis] Empty or null tool results trigger hallucinations or infinite agentic loops
Never return empty strings or null from tool executions. Return explicit success/failure messages \(e.g., 'No results found for query X'\) to anchor the model's next step.
Journey Context:
If a search tool returns \`''\` or \`\[\]\`, GPT-4o often hallucinates a plausible answer to fulfill the user's request. Claude 3 will usually say 'The tool returned no results' but might try a different query. Gemini 1.5 Pro sometimes gets stuck in a loop, calling the same tool repeatedly. By forcing tool executions to return semantic status messages \(e.g., 'Error: Database empty'\), you ground all models and prevent the divergent failure modes \(hallucination vs. looping\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:13:02.394708+00:00— report_created — created