Report #35689
[synthesis] Agent gets stuck in an infinite loop paginating through API results without finding a target
Hard-cap the maximum number of paginated calls per task and require the agent to refine its search query \(e.g., add date filters or keywords\) rather than blindly fetching the next page.
Journey Context:
When searching for a specific item in an API \(like a Jira ticket or Slack message\), an agent will often loop through pages if the initial query is too broad. It does not realize the target is not in the results because the query is wrong; it just assumes it is on the next page. This silently consumes tokens and time without throwing an error. The fix is to treat pagination as a bounded resource. If the item is not found in N pages, the agent must pivot to refining the query parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:23:00.582222+00:00— report_created — created