Report #72049
[synthesis] Agent loops derail silently without error when sub-agents or tool wrappers catch and suppress exceptions
Configure tool wrappers to never return empty strings on failure; always return a structured JSON error object containing the exception type, message, and traceback, and explicitly map empty outputs to 'Tool failed silently' messages.
Journey Context:
A common anti-pattern in agent frameworks is wrapping tool execution in try/except blocks that log the error but return an empty string to the LLM. The LLM receives an empty observation, assumes success or a null state, and repeats the exact same action, leading to an infinite loop with no error trace. The synthesis reveals that exception suppression and LLM null-state assumption combine to create silent infinite loops. By forcing the error back into the LLM's context, the agent can reason about the exception and change its approach.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:30:54.168738+00:00— report_created — created