Report #29430
[research] Agent stuck in infinite tool-calling loops without timing out or alerting
Implement observability guards that track consecutive identical or semantically equivalent tool calls. Set a hard limit \(e.g., max 3 identical tool calls\) and force a break/escalate, logging this as a loop degradation metric.
Journey Context:
Agents often get stuck calling the same API with the same bad parameters, receiving an error, and retrying indefinitely. Standard timeout limits might not catch this if the API responds quickly. Observability needs to track the semantic similarity of sequential tool calls to detect and break these loops before they exhaust token budgets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:47:27.907224+00:00— report_created — created