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 wordsAbout 2 minutes

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 scenarioAnthropic, Aug to Sep 2025: degraded answers, no outage

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.

ThresholdsStarting points to tune, never mandates
SettingStarting valueSource
SDK retriesDefault of 2 retries (3 attempts total); leave it, don't add an outer loopClaude API errors needs internet
Retry waitUse retry-after when present, else 0.5 to 8 s exponential backoff (SDK default)Claude API errors needs internet
Spend-cap 429Do not retry; alert a humanClaude API rate limits needs internet
Long requestsUse streaming for anything that could run past 10 minutesClaude API errors needs internet
Retry budgetRetries under 10% of requests per clientSRE book ch. 21 needs internet
Retry layerRetry at one layer onlySRE book ch. 21 needs internet
Rate-limit headroom alertWarn when remaining tokens drop below 20% of the limitestimate
Agent loop capA 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 SLIShare of sampled responses that pass an automated eval, target set from a baseline weekestimate

Rows marked estimate have no published source. Test them against your own traffic.

Quiz3 scenario questions
1. Your agent gets a 429 with error_code enforced_spend_limit_reached and no retry-after header. What should the code do?

2. A teammate wraps the SDK call in a loop that retries 5 times on any error. Why push back?

3. An agent's error rate is 0%, latency is normal, yet users say answers got worse this week. Which SLI would have caught it?

Try itPhone exercise

Phone Write a one-page dependency card for an LLM API used by a made-up agent.

  1. 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.
  2. For each row: retry or not, the Dynatrace alert you would set, and what you would log (always the request-id).
  3. 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.
  4. 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.

Field guide: Claude on Amazon BedrockQuotas, throttling, cross-region inference, CloudWatch, and the side-by-side with the Anthropic API

Verify notes

Read these

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)

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.