Storage is blocked in this browser, so progress will not be saved. Everything else still works.
Module 6 · Dec 21 to Dec 27 · light week
LLM and agent platform reliability
429 vs 529, one retry layer, and a quality SLI for the day the API stays up but answers get worse.
0 of 5 bursts done
Concept in plain words
An LLM-backed service fails in the usual ways, such as rate limits, overload and timeouts, plus one new way: it can stay up while its answers get worse. A 429 means your organization hit a limit. A 529 means the API is overloaded for everyone. Both are retryable with backoff, but not every 429 is: a spend-cap 429 has no retry-after header and keeps failing until access resumes, so page a human instead. The SDK already retries twice (three attempts in all), honors retry-after, and otherwise backs off from 0.5 to 8 seconds, so don't wrap it in a second retry loop. Agents call tools many times per task: cap iterations, and give every tool that moves money an idempotency key and a human approval step. You need a quality SLI next to the availability one.
Payments analogy: A 429 is your card's own limit; a 529 is the card network having a bad day for everyone. A spend-cap 429 is the account being frozen: swiping again won't help, you call the bank.
Banking scenario
What the source says
Between August and early September, three infrastructure bugs intermittently degraded Claude's response quality.
On August 5, some Sonnet 4 requests were misrouted to servers configured for the upcoming 1M token context window. This bug initially affected 0.8% of requests. At the worst impacted hour on August 31, 16% of Sonnet 4 requests were affected.
Approximately 30% of Claude Code users who made requests during this period had at least one message routed to the wrong server type, resulting in degraded responses.
The evaluations we ran simply didn't capture the degradation users were reporting, in part because Claude often recovers well from isolated mistakes.
Source: Anthropic: A postmortem of three recent issues needs internet
Illustrative scenario
A bank's dispute-intake agent summarizes cardholder chargeback claims and fills the reason code. For two weeks, a growing share of summaries pick the wrong reason code. Every API call returns 200, the availability SLO is green, and the first sign is a back-office team reporting more rejected chargebacks from the card network.
What an SRE would have seen first: Nothing on the availability dashboard. The earliest signal would have been a falling pass rate on a small eval set run against sampled production traffic, then a rise in downstream rejects.
The control that would have caught it: A quality SLI in Dynatrace (share of sampled responses that pass an automated eval) with its own burn-rate alert, next to availability and latency, plus human review on anything that changes money.
Made-up payments translation for study. Not a real event at any company.
Thresholds
| Setting | Starting value | Source |
|---|---|---|
| SDK retries | Default of 2 retries (3 attempts total); leave it, don't add an outer loop | Claude API errors needs internet |
| Retry wait | Use retry-after when present, else 0.5 to 8 s exponential backoff (SDK default) | Claude API errors needs internet |
| Spend-cap 429 | Do not retry; alert a human | Claude API rate limits needs internet |
| Long requests | Use streaming for anything that could run past 10 minutes | Claude API errors needs internet |
| Retry budget | Retries under 10% of requests per client | SRE book ch. 21 needs internet |
| Retry layer | Retry at one layer only | SRE book ch. 21 needs internet |
| Rate-limit headroom alert | Warn when remaining tokens drop below 20% of the limit | estimate |
| Agent loop cap | A maximum number of tool-call iterations per task, for example 10 to 20 The agents article recommends a cap but gives no number. | estimate |
| Quality SLI | Share of sampled responses that pass an automated eval, target set from a baseline week | estimate |
Rows marked estimate have no published source. Test them against your own traffic.
Quiz
Try it
Phone Write a one-page dependency card for an LLM API used by a made-up agent.
- One row per signal: 429 rate_limit_error, 429 spend cap, 429 ramp limit, 529 overloaded_error, 500 api_error, 504 timeout_error, error mid-stream after a 200.
- For each row: retry or not, the Dynatrace alert you would set, and what you would log (always the request-id).
- Pick 4 SLIs from this list (suggestions, not a published standard): task success rate, p95 latency per task, tool-call error rate, cost per task, 429 rate, guardrail trigger rate.
- Write the DQL sketch for one of them over your request logs.
You keep: The dependency card with your 4 SLIs and one DQL sketch.
Verify notes
- Docs changed since your guide: the errors page now says a workspace spend limit you set returns 400, not 429, except on the Claude Code workspace. A tier spend cap returns 429 with error_code enforced_spend_limit_reached. There is also a 429 ramp limit (error_code ramp_limit_exceeded) after a sharp usage increase. Re-read both pages before you rely on the exact codes.
- The headroom alert, loop cap and quality SLI target are estimates.
- Payments angle: verify with your compliance team what human-in-the-loop and model-risk rules apply to AI in payment flows where you work.
Read these
- Claude API errors needs internet
- Claude API rate limits needs internet
- Anthropic: A postmortem of three recent issues needs internet
- Anthropic: Building effective agents needs internet
- SRE book: Handling Overload needs internet
- SRE book: Addressing Cascading Failures needs internet
From your Sourced Reading Guide. Reading times in that guide are estimates.
Companion book estimate
Becoming a Rockstar SRE needs internet, Jeremy Proffitt and Rod Anami (Packt Publishing, April 28, 2023)
- Publisher's summary: "Realize how business decisions can impact quality and reliability". Spend caps and rate limits are business decisions that show up as reliability events.
Dynatrace translation: Chart 429 and 529 rates from your LLM call logs with DQL, and split spend-cap 429s out by error code so they route to a human.
Mapped from chapter titles and the publisher's feature list only; I have not read the book, so treat each link as an estimate. Chapters 8 to 17 were not listed on the pages I opened. The book is from April 2023, so it predates the 2025 incidents and API docs used here; its code repo's software list names Prometheus and Grafana and does not name Dynatrace.