Report #85147
[synthesis] Models loop infinitely or hallucinate errors when a tool returns an empty string or null object
Ensure tool outputs always return a structured status message \(e.g., \{"status": "success", "data": null\}\). Never return "" or \{\}.
Journey Context:
GPT-4o interprets an empty string as a failure or truncation and will often retry the tool call or apologize. Claude handles empty outputs gracefully as successful no-ops. Llama 3 gets confused and may enter an infinite loop trying to parse the nothingness. Because agentic frameworks often strip or flatten empty outputs, returning an explicit success state prevents cross-model divergence in loop termination logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:30:15.750507+00:00— report_created — created