Report #36209
[research] Agent enters infinite tool-call loops without throwing an error
Set a hard observability limit on sequential identical tool calls. Emit a specific loop\_detected telemetry span and fail the trace gracefully.
Journey Context:
LLMs sometimes get stuck calling the same API with the exact same arguments repeatedly because the API returns an unexpected format the model cannot parse. It does not throw an exception, it just loops. Standard timeout limits are too coarse. You need a specific trace-level check: if tool\_name and tool\_args are identical for more than N consecutive steps, break and alert.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:15:18.464481+00:00— report_created — created