Table of Contents

Retry storm on a failing tool

IF an agent fails the same tool call repeatedly inside one task → THEN apply the retry-storm circuit breaker → RESULT the loop is cut off after N identical failures, and the storm's cost is surfaced as waste avoided.

The signal in the agentic log

  • Signal: ≥ 3 consecutive failed turns where the sets of tools called in those turns overlap by ≥ 0.80 (Sørensen–Dice similarity).
  • Field source: Outcome, ToolCalls[].Name, ToolCalls[].Success, ToolCalls[].FailureReason, TurnSeq.
  • The detector reports wasteRatio and latency per repo and sizes the storm from its longest run.

The setup

  1. Accept the retry-storm circuit break recommendation.
  2. The recommended breaker aborts or escalates after recommendedN = clamp(longestStormLength − 1, 2, 3) identical failures.
  3. The SDK applies the breaker on subsequent calls in the project.

The result

  • Agents stop burning turns on a tool that is already failing; the escalation path takes over.
  • Projected savings equal the storm's cost, and each blocked retry shows up in the Action Center ledger with its reason.

Behind it

  • Detector: retry-storm circuit break.
  • Recommendation action: RetryCircuitBreaker.
  • Related: a failing tool is also a candidate for Missing tool backfill if the agent keeps improvising it.