Report #36288
[architecture] Two agents or an agent and a tool get stuck in an infinite loop of calling each other due to conflicting validation rules
Enforce a strictly monotonically decreasing step budget or token budget passed in the state object between agents. If the budget hits zero, force an exit or escalation.
Journey Context:
Agent A asks Agent B to fix code. Agent B returns code. Agent A tests it, fails, asks Agent B again. Agent B returns the same flawed code. Without a hard limit on state transitions, the loop runs forever, burning API credits. A step budget is a non-negotiable circuit breaker that prevents runaway compute costs in autonomous loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:23:18.540884+00:00— report_created — created