This is the third part of a five-part series on resilience for agentic systems, from concept to operations. Part 1 put the degraded mode into the concept paper. Part 2 designed the fallback as a ladder of rungs, from full autonomy down to a human runbook. This part is about the build, and about one habit that every layer of an agent stack shares: when something fails, try again. A single retry is a kindness. A retry at every layer, beneath an agent that reasons about failure and tries again in its own way, is a weapon pointed at whatever is already struggling.

Forty-eight attempts for one request
Part 1 mentioned the AI model platform incident of 29 May 2026 in a sentence. It deserves a closer look. According to the platform’s post-incident review, a change in an upstream layer used by a large internal workload altered how capacity failures were reported. Failures that meant “there is no room” started to look like ordinary transient errors, the kind every client is taught to retry.
So the clients retried. Several layers of the calling stack retried immediately and repeatedly, without enough backoff or jitter, and in some cases a single failed request produced up to 48 additional attempts. The extra traffic exhausted the shared inference routing layer, instances ran out of memory and crashed, and customers across several regions saw latency and failures for about seven and a half hours. Real demand hadn’t changed. The platform was being hammered by its own callers’ good intentions.
The repairs include stronger overload protection, so one workload’s retries can’t overwhelm shared components, work with upstream teams on retry policy design, and advice to customers to use backoff and jitter.
The code-hosting platform outage of 17 August 2026 rhymes with it. Its own write-up says the outage lasted 7 hours and 47 minutes, and that errors in some services set off a client-side retry loop that increased traffic during recovery. The team had to bring that loop under control before it could safely restore traffic. The first of its fixes reads like a checklist for this post: consistent retry limits, retry budgets and variable timeouts across service-to-service interactions, to prevent retry storms and cascading load.
Why agents multiply it
Neither review spells out every layer that retried, so take what follows as the general argument rather than a reading of either incident. Look at a typical agent stack and count the places that will quietly try again.
- The agent’s own loop. The model sees an error and decides what to do next. Often that means trying again, rephrasing the call or reaching for a different tool that hits the same struggling dependency.
- The framework. Orchestration libraries commonly wrap tool calls and model calls in retry logic of their own.
- The SDK. Client libraries usually retry transient errors by default, a few times, before the caller ever sees a failure.
- The gateway. A model or API gateway may retry or fail over too, which is sensible in isolation.
Each layer’s owner had the same reasonable thought: a little persistence helps. Nobody configured the multiplication. A well-known engineering essay on timeouts, retries and backoff, published by a large cloud provider in December 2019, works through a call that passes down a five-deep stack of services to a database, with three retries at each layer. If each layer retries independently, it says, the load on the database rises 243-fold, which makes recovery unlikely.
Agents add two twists. The first is that the top layer reasons. A deterministic client retries the same call; an agent can decide the problem is its phrasing, its tool choice or its plan, and generate new work that a retry counter never sees. The second is that agents call agents. A planner that delegates to three sub-agents, each with its own loop and its own stack underneath, turns one failure into a fan-out. As an illustration only, four layers that each make up to three attempts produce up to 81 at the bottom, before the agent tries anything clever.
One retry budget per job, not per layer
The fix starts with ownership. Decide which layer is allowed to retry, and make the others fail fast and report honestly. The essay’s own advice is to retry at a single point in the stack. For agents, I’d put that point at the job: the unit of work the business cares about, such as one claim, one onboarding or one reconciliation.
- Give each job a retry budget, carried with it. Every layer spends from the same allowance, so a framework retry and an agent’s second attempt both count. When it’s gone, the job stops and escalates. It doesn’t start again from the top.
- Back off exponentially, with jitter. Each wait is longer than the last, and randomised, so a thousand clients that failed at the same moment don’t come back at the same moment.
- Retry only what is worth retrying. “The service is overloaded” and “you’re not allowed to do that” are different errors, and neither improves with an immediate second attempt. The May incident started when one kind of failure was reported as the other, which is why the error contract between layers matters as much as the retry code.
- Vary your timeouts. A model call that legitimately takes forty seconds and a lookup that should take forty milliseconds don’t share a sensible timeout.
Make every action safe to repeat
Budgets limit how many times you retry. They don’t make a retry safe. For an agent that acts in the world, the more dangerous failure isn’t load; it’s doing a thing twice. The payment went through but the confirmation timed out, so the agent paid again.
- Idempotent tool calls. Give every side-effecting call an idempotency key, generated once per intended action and reused on every retry. The receiving system recognises the key and returns the first result instead of acting again. The essay puts it simply: idempotency means the side effects happen only once, however often you retry.
- Checkpoints. A multi-step task that fails at step seven should resume at step seven, not restart at step one and redo six steps that already changed things. That’s the argument of An Agent Is a State Machine, Not a Loop: runs and steps are rows, so a half-finished task is a state you can pick up, not a process you lost.
- Compensation for what can’t be undone. Some steps can’t be repeated or rolled back: a message sent, an order placed with a partner. For each, design the compensating step in advance, such as the cancellation or the correction, and record which steps completed so recovery knows exactly what to compensate.
Breakers between agents, and a budget on the loop
Two more controls stop a struggling system from being finished off by its own agents.
Circuit breakers between agents and their dependencies. When a downstream agent or tool keeps failing, stop calling it for a while and fail fast instead, then let a trickle of test calls through before reopening. A tripped breaker is also a natural trigger for the step down the degradation ladder from part 2: the agent drops to propose-only or to rules, rather than queueing work behind a dependency that isn’t coming back soon.
A token and cost budget on every run. A looping agent doesn’t only hurt the platform; it hurts the bill. In What Agents Cost to Run I called the retry loop the most common margin leak, invisible in averages and brutal in the tail, and argued for attempts per run as a headline metric. A hard budget on tokens, tool calls and wall-clock time halts the run and hands it to a person. It’s the run-level version of Write the Stopping Rule Before the Pilot: decide in advance when to stop, because the system won’t decide for you.
What the family assistant does
My DIY family assistant, built on weekends on local open-source models, is tiny next to any of this, but two of its choices point the same way. When it generates the morning joke, it is allowed to retry a couple of times and then falls back to something canned, as I described in A Bot That Teaches. That’s a retry budget with a degraded mode at the end of it, even if I didn’t call it that. And because of the approval gate from Propose, Don’t Act, nothing with a real-world effect happens until a person taps Approve. A loop can’t repeat an action on its own, because no action happens without a person. It’s not idempotency, but it puts a person between a retry and the world.
The takeaway
For leaders building products and digital platforms on AI and Data, the lesson from both incidents is that retries are a policy, not a default, and nobody owns the policy unless someone is told to. Give every agent a retry budget, and make every action safe to repeat. The question for your teams: if one call fails at the bottom of your agent stack, how many attempts reach the dependency, and what happens if two of them succeed? If nobody can answer, you’ve found the multiplier before your next outage does.
Designed to Degrade — a five-part series on resilience for agentic systems
- Your Agents Will Have a Bad Day
- Every Agent Needs a Worse Version of Itself
- Retries Are a Weapon — you are here
- The Dependency You Forgot You Had
- Recovery Is the Dangerous Part
Related: An Agent Is a State Machine, Not a Loop · What Agents Cost to Run · Write the Stopping Rule Before the Pilot.
Part of a personal DIY hobby, tinkered together on weekends for my own family, built entirely with open-source, self-hosted models.





Leave a Reply