Library/ML system design/When production breaks

Working a production incident: three overlapping bugs

105 min5 partsAdvancedFundamentalsChecked Nov 2026
Start the lessonShort steps, each with something to do
What you'll learn
  • Name the three bugs behind Claude's drop in quality in August 2025, with the dates, rates and platforms Anthropic published
  • Show in numbers why sticky routing keeps the share of bad requests the same but puts them on fewer users
  • Explain how bf16 and fp32 can disagree and drop the most likely token, on the same shape as top-k code
  • Say what an approximate top-k may get wrong, what it must never get wrong, and why Anthropic moved to exact top-k
  • Explain why passing evals and green dashboards missed it, and how many eval questions it takes to see a 0.8% problem
  • Work an incident case out loud in order, and name a check that would have caught each bug sooner
Part 1 of 5about 13 min
The case

Triage a quality drop while every dashboard is green

It's Sunday, August 31, 2025, and you're the on-call engineer for model serving. For about four weeks a slowly growing number of users have said Claude's answers got worse. The early reports looked like ordinary noise. Since Friday they've spiked, and they contradict each other: some users say the model is badly broken, and plenty of others say it's fine.

Some complaints are specific. Thai or Chinese characters in the middle of English answers. Obvious syntax errors in generated code. Others are vague: the answers just seem worse. Assume the complaints name several models: Sonnet 4 most often, and also Opus 4, Opus 4.1, Haiku 3.5 and Opus 3.

Assume error rates and latency look normal. Benchmarks and safety evals pass. Recent deploys went through canary groups first, as usual.

Take me through it. What do you do in the first hour? What do you think is going on, and how would you find out? And what would you change so the next one is caught in hours instead of weeks?

No candidate report names this case as an interview question. Two things make it worth working. In the one reported Anthropic design round, the review turned into a deep dive on failure handling (1 report). And quality dropped and nothing is red is a case any team that runs models in production can hand you.

You start with what the on-call saw and the three bugs behind it. Then come sticky routing, precision and top-k, how to find bugs like these, and the checks that catch them sooner. It builds on two lessons: decoding, for top-k and top-p, and batch inference, for how a fleet of model servers runs.

It ends on a mock interview that runs in the order of a 45-minute round.

Anthropic published what happened

On September 17, 2025, Anthropic published "A postmortem of three recent issues." Its first sentence: "Between August and early September, three infrastructure bugs intermittently degraded Claude's response quality."

The post says Anthropic doesn't usually share this much technical detail about its infrastructure. It reads like a system design interview turned inside out. Each failure sits in a part you could be asked to design:

  • a routine load balancing change that sent more requests to the wrong servers (1 source)
  • sticky routing that kept unlucky users on a bad server (1 source)
  • operations that should have agreed on the top token but ran at different precisions (1 source)
  • an approximate top-k that "sometimes returned completely wrong results" (1 source)
  • evals that "simply didn't capture the degradation users were reporting" (1 source)

All five come from that one post.

Work the case twice. First as the on-call engineer who doesn't know the answer. Then with the post open.

In the editor, write is_green(day), the dashboard's verdict on one day, and green_but_worse(days, baseline), the days it missed. Each row of DAYS is (day, error rate, p99 latency in seconds, thumbs-down per 1,000 answers), and the dashboard's limits are ERROR_LIMIT and P99_LIMIT.

What the on-call saw

Put yourself at the end of August 2025. Nobody knows yet that there are three bugs. This is the picture the post describes.

Users reported worse answers, and the reports contradicted each other

2025What users reported
early Augustsome report worse answers, hard to tell apart from the normal noise in user feedback
late Augustthe reports come more often and keep coming, so Anthropic opens an investigation
after Aug 29many more users hit problems while others still see normal answers: the reports contradict each other

Some symptoms were vague: answers that just seemed worse.

Others were specific and bizarre. Thai or Chinese characters showed up in answers to English prompts. Code came back with obvious syntax errors.

One model runs on many paths, and every path must give the same quality

Three platformsThree kinds of chips
the first-party APIAWS Trainium
Amazon BedrockNVIDIA GPUs
Vertex AIGoogle TPUs

Claude reaches millions of users through three platforms: Anthropic's own API, Amazon Bedrock and Google Cloud's Vertex AI.

It runs on three kinds of chips: AWS Trainium, NVIDIA GPUs and Google TPUs (1 source).

Anthropic holds strict equivalence standards for model implementations across all of them. The aim: a user gets the same quality whichever path serves the request. Keep these axes in mind: platform, chip and model are the first ways to slice the data.

In the editor, write off_paths(scores, tol), the paths that fall short of the best one, and by_axis(scores, axis), the scores sliced by platform or by chip. SCORES holds one eval score for each (platform, chip) path.

Every check stayed green, because the bad answers were successful responses

The first puzzle is why nothing alerted.

Predict

A response answers an English question in Thai, with HTTP 200. What does the error dashboard count it as?

Pick an answer above to see the rest
Part 1 done
Part 2 of 5about 20 min
Three bugs

Three bugs overlapped in August

Behind the complaints were three separate bugs, live at the same time.

The three bugs ran at the same time

2025Bug 1: routingBug 2: TPU configBug 3: top-k
Aug 5starts, 0.8%
Aug 25startscode ships
Aug 26a rewrite ships
Aug 28last day on Opus 4.1 and Opus 4
Aug 29a balancing change sends more
Aug 31worst hour: 16%
Sep 2rolled back
Sep 4fix deployed, rolling outrolled back for Haiku 3.5
Sep 12rolled back for Opus 3
Sep 16done: first-party API and Vertex AI
Sep 18done: Bedrock

Three separate bugs, on different models and different platforms, overlapped in time.

The first came in on August 5 and hit about 0.8% of Sonnet 4 requests. The other two came from deployments on August 25 and 26.

Bug 3 has two dates. The post's list of bugs dates its deployment August 25. The post's deep dive dates the sampling rewrite August 26. Together they match the post's timeline, which gives "deployments on August 25 and 26."

In the editor, write live_on(bugs, day) and overlap_days(bugs): the timeline above as code. BUGS holds each bug's start and the day its fix or first rollback landed, as Python date values, and timedelta(days=1) steps one day.

Bug 1: short requests went to servers set up for a 1M-token context

Take the bugs one at a time, in the order they started.

Bug 1, one short Sonnet 4 requestInteractive
the router. Since Aug 5 some short requests went to the wrong servers. On Aug 29 a balancing change sent more of them.

On August 5, some Sonnet 4 requests went to servers configured for the upcoming 1M-token context window. At first this hit 0.8% of requests.

On August 29, a routine load balancing change unintentionally sent more short-context requests to those servers (1 source). At the worst hour, on August 31, 16% of Sonnet 4 requests were affected.

How far it reached:

  • About 30% of Claude Code users who made requests in this period had at least one message routed to the wrong server type, and got degraded responses.
  • On Amazon Bedrock, misrouted traffic peaked at 0.18% of all Sonnet 4 requests from August 12.
  • On Google Cloud's Vertex AI, wrong routing hit less than 0.0004% of requests, between August 27 and September 16.

Anthropic fixed the routing logic so short and long requests went to the right server pools. The fix was deployed on September 4. It finished rolling out to the first-party API and Vertex AI by September 16, and to Bedrock by September 18.

The post doesn't say why the 1M-context servers gave worse answers to short requests. Don't invent a reason in an interview. Say what you'd test: the same prompts through both server configurations, compared.

In the editor, write misroute_rate(log, first, last) and jump(log, change), to see the August 29 change in the numbers. Each LOG row is (day, Sonnet 4 requests, requests sent to the 1M-context servers), made up to start at the real 0.8%.

Bug 2: a TPU misconfiguration made rare tokens likely

The second bug caused the strangest complaints, the Thai and Chinese characters.

Predict

A misconfiguration lifts a Thai token from 0.0001 to 0.35 after an English prompt. What do users see?

Pick an answer above to see the rest

Bug 3: new token-selection code hit a compiler bug

On August 25, Anthropic deployed code to improve how Claude selects tokens. By accident, it triggered a latent bug, one that was already there but hadn't shown, in the XLA:TPU compiler. That's the compiler that turns the model's code into TPU instructions.

Which models:

  • Haiku 3.5: confirmed.
  • A subset of Sonnet 4 and Opus 3 on the Claude API: Anthropic believes it could have been hit.
  • Third-party platforms: not affected.

The rollback came in three steps:

  1. Haiku 3.5, where Anthropic first saw the bug: rolled back on September 4.
  2. Opus 3, after user reports that were compatible with this bug: rolled back on September 12.
  3. Sonnet 4: after extensive investigation Anthropic couldn't reproduce the bug there, but rolled it back too, out of an abundance of caution. The post gives no date.

Then Anthropic rolled out a fix that uses exact top-k with higher precision.

In the editor, write first_bad_change(n, probe): a binary search over the CHANGES log for the change that broke Haiku 3.5, in at most 3 probes instead of 7. make_probe(first_bad) builds a stand-in probe(k), which applies the first k changes and fails once change first_bad is among them, and it records each call so the example can count your probes.

Put the three side by side on day two

This is the table you'd want to have built on day two of the incident:

Bug 1: routingBug 2: corruptionBug 3: approximate top-k
ModelsSonnet 4Opus 4.1, Opus 4, Sonnet 4Haiku 3.5 confirmed, possibly some Sonnet 4 and Opus 3
Wherefirst-party API, Bedrock and Vertex AI, at very different ratesClaude API TPU servers onlyClaude API only, through the TPU compiler
StartedAugust 5, much worse after August 29August 25August 25 or 26
Symptomworse answers, much worse for some usersstray characters, syntax errorswrong tokens, inconsistent from request to request
Endedfix deployed September 4, rolled out by September 18rolled back September 2rolled back September 4 and 12, then exact top-k

In the editor, write where(reports, column) and only_on(reports, platform), to build the day-two table from raw reports. Each row of REPORTS is (model, platform, symptom).

Part 2 done
Part 3 of 5about 13 min
Sticky routing

Sticky routing changes who gets hurt

The reports contradicted each other for a reason, and the reason was routing.

Sticky routing sends a user's follow-ups back to the same server

Predict

Why route a user's follow-ups back to the same server?

Pick an answer above to see the rest

The share of bad answers stays the same, but fewer users get more of them

An example: 10 users, 12 requests each, with about 1 server in 10 bad.

Random routingFully sticky
bad answers12 of 12012 of 120
who sees them8 users see one or two1 user sees nothing else

Both sides have 12 bad answers out of 120. Stickiness doesn't change how many requests go bad. It changes who gets them.

Now the real numbers. Say 8% of servers are bad and each user sends 12 requests. Every user, sticky or not, gets 12 × 0.08 = 0.96 bad answers on average.

RoutingUsers with at least one bad answerUsers with 6 or more bad out of 12Users with all 12 bad
Random: each request picks a server63%0.016%about 0
90% of follow-ups stay on the same server15.8%7.8%2.8%
Fully sticky8%8%8%

How each row is worked out:

  • Random. Each request is a fresh draw. At least one bad answer is 1−0.9212=1−0.368=0.6321 - 0.92^{12} = 1 - 0.368 = 0.632. Here 0.92 is the chance that one request lands on a good server.
  • Fully sticky. The first request decides everything. 8% of users get 12 bad answers, and 92% get none.
  • 90% stay. Each follow-up stays on its server with probability 0.9, and otherwise picks a server at random. A short calculation gives this row: count the users who never see a bad answer, and take them from 1.

That's why the reports contradicted each other. Under random routing, nearly everyone sees an occasional bad answer and shrugs. Under sticky routing, a few users see the model fail again and again, and they say so loudly. Most see nothing wrong.

Draw some users and watch it happen. Then set stickiness to 90% for the table's middle row:

Sticky routing and who gets hurtInteractive
good response broken responseOne row per user. In this draw, 2 of 40 users got 6 or more bad answers.
Random100% staySticky
Requests answered badly8.0%8.0%8.0%
Users who hit at least one63%8.0%8.0%
Users with 6 or more of 12 badunder 0.1%8.0%8.0%
Users with all 12 badunder 0.1%8.0%8.0%

The table is exact, not this draw. With random routing a user hits at least one broken server with probability 1 − (1 − p)n. With full stickiness it's p, and those users get nothing but bad answers. In between, each follow-up stays on its server with the chosen probability and otherwise moves to a random one.

In the editor, write exposure(users, bad): the bad answers in total, and who got them. Server 7 is the one bad server. STICKY pins each of 10 users to one server for all 12 requests, and RANDOM scatters the requests so that 12 of them land on server 7, as in the table above.

A fraction of a percent per request reaches many users

Per-request rates turn into per-user rates faster than intuition says.

Take random routing at 0.8% per request. A user who sends 45 requests has a 1−0.99245=0.301 - 0.992^{45} = 0.30 chance of at least one bad answer. Here 0.992 is the chance that one request is fine.

Users who send dozens of requests are exposed dozens of times. So a fraction of a percent per request can touch a large share of them.

In the editor, write any_bad(p, n, stay): the 90% row of the last step's routing table, for any numbers. With 0.08, 12 and 0.9, it should give 15.8%.

Part 3 done
Part 4 of 5about 29 min
Precision and top-k

Two precisions can disagree about the top token

In December 2024, the TPU code sometimes dropped the top token

Claude samples with top-p: it keeps only the most likely tokens, up to the point where their probabilities add up to a threshold, typically 0.99 or 0.999.

On TPUs the model is too large for one chip. It's split across tens of chips or more, and each chip computes some of the probabilities. So finding the top tokens means a sort across chips, a distributed sort.

In December 2024, Anthropic found that its TPU code would occasionally drop the most probable token when temperature was zero. It deployed a workaround for that case.

The root cause came later. It was mixed precision:

  • The model computes next-token probabilities in bf16, a 16-bit floating point format.
  • The TPU's vector processor works natively in fp32, 32-bit floats.
  • So the TPU compiler, XLA, can speed things up by converting some operations to fp32. A flag turns that on, xla_allow_excess_precision, and it defaults to true.

The result: operations that should have agreed on the top token ran at different precisions (1 source). They didn't agree on which token had the highest probability. So the top token sometimes disappeared from consideration entirely.

In the editor, write local_top(shard, k), the top tokens on one chip, and global_top(shards, k), the merge a distributed sort does. Each dict in SHARDS is one chip's share of the vocabulary, token to probability.

bf16 rounds nearby numbers to the same value

To see how the third bug worked, start with what bf16 does to numbers that are close together.

Predict

Near 0.3, bf16 values sit 0.00195 apart. What happens to 0.30090 and 0.30103 in bf16?

Pick an answer above to see the rest

A cutoff in fp32 and values in bf16 can drop the top token

Here is the smallest version of the failure the post describes. It's an illustration, not Anthropic's code.

One operation takes the maximum from values the compiler kept in fp32. Another compares the bf16 values against that maximum, to keep only the top token. Greedy decoding at temperature zero needs exactly that.

import torch

# kept in fp32
p32 = torch.tensor([0.30103, 0.30090, 0.25000, 0.14807])
# what another op reads
p16 = p32.to(torch.bfloat16)
# 0.30103
top = p32.max()
# keep only the top token
keep = p16.float() >= top
print(keep)
tensor([False, False, False, False])

Every token fails, the top one included. Here is the path each number took:

The same four probabilitiesReadsGives
op 1, the maxfp320.30103
op 2, the filterbf16A = 0.30078
the cutoff check0.30078 ≥ 0.30103? No: A, the top token, is dropped

Token A fails its own test. Its bf16 value, 0.30078, sits below the fp32 maximum, 0.30103, that it's compared against. Nothing survives the filter. Whatever the code does next, the most likely token is out of consideration.

Swap A and B, and the two precisions disagree about which token is top. The fp32 argmax picks index 1. The bf16 argmax sees a tie and picks index 0.

In the editor, fix keep_top(values): it compares bf16 values against a maximum taken in fp32. to_bf16 is the rounding you just wrote, P32 holds the four probabilities as kept in fp32, and P16 holds them as another operation reads them.

Top-k code has the same shape

The top-k code from the decoding lesson computes a threshold, then masks everything below it:

kth = torch.topk(logits, k, dim=-1).values[..., -1:]
logits.masked_fill(logits < kth, float("-inf"))

The threshold, kth, is the k-th largest score. That's only correct if the threshold and the values it's compared against are the same tensor at the same precision.

Let a compiler run one side in fp32 and the other in bf16, and the k-th token can fall below its own threshold. At k = 1, that's the top token.

In the editor, write merged(p1, p2) and risky_share(steps), to count the near-ties that set up this bug. to_bf16 is written for you, and each row of STEPS holds the two highest probabilities at one decoding step.

A correct approximate top-k can lose tokens, but never the top one

Approximate top-k trades a little accuracy for speed. That trade has a limit, and the bug broke it.

Approximate top-k finds the top tokens fast

Picking a token, in a likely orderInteractive
a probability for every token. Computed across tens of chips or more.

The post doesn't draw this order. It's the likely one.

A sampler with top-p at 0.99 needs the most likely tokens out of a large vocabulary. It needs them every step, for every sequence in the batch.

The post calls approximate top-k a performance optimization that quickly finds the highest probability tokens. Anthropic had used it because it gave substantial performance improvements.

Approximate top-k keeps the best score in each bin

Predict

Keep the best score in each of 4 bins, then the top 2 of those. Two high scores sit in the same bin. What happens?

Pick an answer above to see the rest

The top token is the best in its own bin, so it can never be lost

Approximate top-k has three steps: split the scores into bins, keep the largest in each bin, then take an exact top-k of those winners.

The single most likely token is the largest value in the whole vocabulary. So it's the largest value in its own bin. Step 2 always keeps it, and step 3 always ranks it first. In the last step's 16 scores, that's id 2, at .5.

A correct approximate top-k can lose tokens near the bottom of the top k. It can never lose the top one.

The post's footnote says the same: "The approximation works by accepting potential inaccuracies in the lowest probability tokens, which shouldn't affect quality."

Removing the December workaround uncovered the bug

The rule that the top token can never be lost is what made the August bug a bug, and not an approximation error.

The August 26 rewrite fixed the precision issues. It also removed the December workaround, because Anthropic believed it had solved the root cause.

With the workaround gone, the approximate top-k "sometimes returned completely wrong results, but only for certain batch sizes and model configurations" (1 source). The December workaround had been masking this problem, by accident.

It was miserable to chase. It changed with unrelated factors, such as which operations ran before or after it, and whether debugging tools were on. "The same prompt might work perfectly on one request and fail on the next."

The reproducer Anthropic shared with the XLA:TPU engineers came with a telling caption: "The code returns correct results when run on CPUs."

Test the rule that must never break

The rule also hands you a cheap test for this class of bug. For every batch size and configuration you ship, assert that the argmax of the full distribution is in the returned set.

It needs no stored reference outputs, and it runs in CI.

In the editor, write approx_topk(x, k, bins): those three steps, on a numpy array. The last step's 16 scores in 4 bins make a good test: with k = 2 it returns ids 2 and 9.

Anthropic switched to exact top-k, at a minor cost

While investigating, Anthropic found that exact top-k no longer had the prohibitive performance penalty it once had. So it switched from approximate to exact top-k, and standardized some additional operations on fp32.

The reason, in one line: "Model quality is non-negotiable, so we accepted the minor efficiency impact."

One footnote matters if you've tuned sampling. The now-correct top-k may cause slight differences in which tokens make it in near the top-p threshold. In rare cases, users may benefit from re-tuning their top-p.

Here is why. Top-k usually runs before top-p. Once top-k has cut the candidates, top-p is a share of what top-k kept. So changing the top-k step can move the top-p set at its edge.

In the editor, write nucleus(probs, kept, p): top-p on whatever top-k kept. EXACT is the true top 4, and APPROX is an approximate top 4 that lost this, so the two top-p sets at p = 0.8 differ.

Part 4 done
Part 5 of 5about 30 min
Finding it

Why it took weeks to find

Every reason the post gives is a reason you can design against.

A 0.8% bug can need 15,625 eval questions to show

The evals didn't see it (1 source), in part because Claude often recovers well from isolated mistakes. Now add the arithmetic.

Say 0.8% of requests are affected, and an eval scores 80% when healthy. Even if every affected answer turned wrong, the score would fall by 0.008×0.80=0.00640.008 \times 0.80 = 0.0064, about 0.6 points.

An eval's standard error is p(1−p)/n\sqrt{p(1-p)/n}. Here pp is the score as a fraction, 0.80, and nn is the number of questions. Anthropic recommends reporting it with every eval score (1 source).

To see a 0.64-point drop at two standard errors, you need 0.8×0.2/n≤0.0032\sqrt{0.8 \times 0.2 / n} \le 0.0032. So n≥0.16/0.00322=15,625n \ge 0.16 / 0.0032^2 = 15{,}625 questions.

With 15,625 questions, one standard error is 0.32 points, so two are 0.64. The healthy score is 80.00%, and the band of two standard errors runs from 79.36% to 80.64%. The score with the bug, in the worst case where every affected answer is wrong, sits right at the edge, 79.36%.

Even the worst case only just reaches the edge of the noise. And two more things make it harder:

  • You compare against a healthy score that was itself measured on the same number of questions. Its noise adds too, which doubles the count to 31,250.
  • The eval's traffic has to go through the broken path at all. An eval run on its own cluster never meets a load balancing bug.

In the editor, write questions_needed(score, affected, z=2, compare=False): the arithmetic above, for any bug and any eval. A score of 0.80 and an affected share of 0.008 should give about 15,625, or 31,250 with compare.

Four more things hid the signal

  1. Privacy limits what engineers can read. Anthropic's privacy and security controls limit how and when engineers can access user conversations with Claude, especially ones that weren't sent in as feedback. That protects user privacy. It also kept engineers from examining the bad interactions they needed to find or reproduce the bugs.
  2. The symptoms didn't line up. Each bug produced different symptoms on different platforms at different rates. The mix of reports didn't point to any single cause. It looked like random, inconsistent degradation.
  3. Reports weren't tied to changes. The post says Anthropic "relied too heavily on noisy evaluations." It knew reports online were rising, but had no clear way to connect them to each recent change. When negative reports spiked on August 29, it didn't immediately connect them to an otherwise standard load balancing change.
  4. The changes overlapped. Deployments on August 25 and 26 and a load balancing change on August 29 came on top of a bug from August 5. Google's SRE Workbook warns against exactly this for canaries. It strongly advises running only one canary deployment at a time, because canaries that overlap raise the risk that their signals contaminate each other.

In the editor, write spike_day(reports) and suspect(changes, day), to tie the spike to a change. REPORTS holds the reports on each day of August, and CHANGES is the change log, by day.

Work an incident case in order

Interviewers who run an incident case want to watch you think in order. Here is an order that holds up.

Stop the damage first, and find the cause last

Predict

Reports point at one server configuration. What comes first?

Pick an answer above to see the rest

Slice the data until the story splits

When complaints contradict each other, split them until they don't.

Predict

Bad-answer reports look like noise overall. Split them by server configuration. What do you look for?

Pick an answer above to see the rest

Checks that would have caught each bug sooner

Anthropic named three changes, two of them still plans

Start from Anthropic's own list:

  • More sensitive evaluations. Evaluations that can more reliably tell working implementations from broken ones.
  • Quality evaluations in more places. Anthropic will run them continuously on true production systems, to catch issues such as the context window load balancing error (1 source).
  • Faster debugging tooling. Infrastructure and tooling to better debug feedback from the community, without sacrificing user privacy.

The post also credits its users. Reports of specific changes, examples of unexpected behavior, and patterns across different use cases all helped Anthropic isolate the issues. So treat feedback as a signal to engineer: tag it, count it, and line it up with deploys.

One check for each bug

Map the checks to the bugs, and add the ones a strong candidate proposes:

BugA check that catches itWhy it works
RoutingQuality probes sent all the time through the production router, scored per server poolThe eval travels the same path the bug lives on
RoutingA rule in the router: a short-context request never lands on a 1M-context pool, counted and alarmedIt turns a quality bug into a plain error count
RoutingUser-level metrics: the share of users with several bad answers in a sessionStickiness moves these before it moves the averages
CorruptionThe detection tests for unexpected character outputs that Anthropic added to deployment, plus a canary that compares wrong-script and code-parse rates against controlThe symptom is measurable without reading anyone's conversation
Top-k and precisionDifferential and golden-output tests: the same prompts at temperature zero on every hardware platform and batch size, compared with each other and with stored reference outputsPlatforms that should be equivalent are checked for it
Top-k and precisionA test that the argmax is always in the top-k set, across batch sizesIt encodes what the approximation must never get wrong
All threeFeedback (thumbs down, bug reports) tagged with model version, platform, hardware and server poolA spike lines up with a change instead of floating free
All threePrivacy-preserving analysis of real usage, such as Anthropic's Clio, a tool for privacy-preserving analysis of real-world model use that Anthropic now calls Anthropic Insights (1 source)It finds clusters of failures without engineers reading conversations

In the editor, write fires(readings, threshold) and first_alert(checks). Each entry in CHECKS is a check from the table: its readings as (day of August, value), and the value that sets off its alert.

What interviewers ask next

Once you've told the story, expect questions on what you'd change.

Why not turn off sticky routing?

Predict

Sticky routing concentrated the bad answers on fewer users. Why not just turn it off?

Pick an answer above to see the rest

Why didn't the evals catch it, and what would you change?

Three reasons, each with a fix:

  • The affected share was small. An eval needs tens of thousands of questions to see it, or a paired design: the same prompts through canary and control.
  • The eval didn't travel the production path. Run it through the real router, continuously, per pool and per platform.
  • Claude often recovers well from isolated mistakes. Add checks that score individual tokens and invariants, not only final answers.

What would you monitor to catch this in hours, not weeks?

  • quality probes every few minutes per pool, platform and hardware type, at temperature zero against reference outputs
  • the rate of responses in the wrong script for their prompt
  • parse failures on code answers
  • the thumbs-down rate per model version and pool, against its own baseline
  • the share of users with several bad answers in a session
  • every deploy and configuration change on the same timeline, so a step in any of these lines up with a change

In the editor, write paired_z(control, canary): the paired design, which counts only the prompts whose result changed. CONTROL and CANARY hold 1 for a right answer and 0 for a wrong one, on the same 50 prompts in the same order.

The practice round, start to finish

That's every piece the practice round needs. Here it is in order, from the first question to the last minute.

Check yourself
5 questions
  1. 1.8% of servers are bad, each user sends 12 requests, and routing goes from random to fully sticky. What changes?

  2. 2.The maximum probability is computed from values kept in fp32 (0.30103), and the filter compares bf16 values against it. The top token's bf16 value is 0.30078. What does a keep-the-top-token filter do?

  3. 3.Can a correct approximate top-k, which keeps the largest value of each bin and then takes an exact top-k of those, ever drop the single most likely token?

  4. 4.A bug degrades 0.8% of requests, and an eval scores 80% when healthy. About how many questions does the eval need to see the drop at two standard errors, even if every affected answer turns wrong?

  5. 5.Reports of worse answers are rising, they contradict each other, and error rates look normal. What do you do first?

Where this shows up

The reports behind this lesson, each with its source.

Anthropic serves Claude on three hardware platforms: AWS Trainium, NVIDIA GPUs and Google TPUs (Sept 2025).

“We deploy Claude across multiple hardware platforms, namely AWS Trainium, NVIDIA GPUs, and Google TPUs.”
Company source·Anthropic Engineering blog·2025-09-17Source

Bug 1 in the Aug 2025 incidents was worsened by a routine load balancing change that increased the number of affected short-context requests.

“a routine load balancing change unintentionally increased the number of short-context requests”
Company source·Anthropic Engineering blog·2025-09-17Source

Sticky routing made bug 1 worse: once misrouted, a user's follow-ups tended to hit the same bad server.

“subsequent follow-ups were likely to be served by the same incorrect server.”
Company source·Anthropic Engineering blog·2025-09-17Source

Another root cause in the postmortem: operations that should agree on the highest-probability token ran at different precision levels.

“operations that should have agreed on the highest probability token were running at different precision levels.”
Company source·Anthropic Engineering blog·2025-09-17Source

Anthropic says it will run its quality evals continuously on true production systems to catch issues like the load balancing error.

“we will run them continuously on true production systems to catch issues such as the context window load balancing error.”
Company source·Anthropic Engineering blog·2025-09-17Source

Anthropic recommends reporting the standard error of the mean (from the Central Limit Theorem) with every eval score.

“we encourage researchers to report the SEM, derived from the Central Limit Theorem, alongside each calculated eval score”
Company source·Anthropic research (Alignment)·2024-11-19Source

Clio (Dec 2024) is Anthropic's automated tool for privacy-preserving analysis of real-world model use; an update on the page dated 2026-08-24 says it is now called Anthropic Insights.

“Clio is an automated analysis tool that enables privacy-preserving analysis of real-world language model use.”
Company source·Anthropic research·2024-12-12Source

Same Staff report: the review turned into a deep dive on failure handling and overload protection.

Candidate report·Aced, formerly Exponent (candidate report)Source

The postmortem's approximate top-k operation sometimes returned completely wrong results.

“This approximation sometimes returned completely wrong results”
Company source·Anthropic Engineering blog·2025-09-17Source

Anthropic's evals did not capture the quality degradation users were reporting.

“The evaluations we ran simply didn't capture the degradation users were reporting”
Company source·Anthropic Engineering blog·2025-09-17Source

Practice

Sources (10)
  1. A postmortem of three recent issues · Anthropic Engineering · Sep 17, 2025
    “At the worst impacted hour on August 31, 16% of Sonnet 4 requests were affected.”
  2. A postmortem of three recent issues · Anthropic Engineering · Sep 17, 2025
    “We switched from approximate to exact top-k and standardized some additional operations on fp32 precision.”
  3. A postmortem of three recent issues · Anthropic Engineering · Sep 17, 2025
    “Our internal privacy and security controls limit how and when engineers can access user interactions with Claude, in particular when those interactions are not reported to us as feedback.”
  4. Improve your model's performance with bfloat16 · Cloud TPU documentation (last updated 2026-10-26) · Oct 26, 2026
    “Since float32 can represent all exact values in bfloat16, the conversion pads 16 zeros in the mantissa bits.”
  5. TPU-KNN: K Nearest Neighbor Search at Peak FLOP/s · arXiv 2206.14286 · Jun 28, 2022
    “Our algorithm comes with an analytical guarantee of recall in expectation and does not require maintaining sophisticated index data structure or tuning, making it suitable for applications with frequent updates.”
  6. jax.lax.approx_max_k · JAX documentation (undated page, read 2026-11-06) · Nov 6, 2026
    “Returns max k values and their indices of the operand in an approximate manner.”
  7. Monitoring Distributed Systems · Site Reliability Engineering (Google, O'Reilly), chapter 6 · Apr 1, 2016
    “implicitly (for example, an HTTP 200 success response, but coupled with the wrong content)”
  8. Managing Incidents · Site Reliability Engineering (Google, O'Reilly), chapter 14 · Apr 1, 2016
    “Stop the bleeding, restore service, and preserve the evidence for root-causing.”
  9. Addressing Cascading Failures · Site Reliability Engineering (Google, O'Reilly), chapter 22 · Apr 1, 2016
    “This might be accomplished through hard or soft stickiness between reverse proxies and service frontends.”
  10. Canarying Releases · The Site Reliability Workbook (Google, O'Reilly), chapter 16 · Jul 31, 2018
    “We strongly advise running only one canary deployment at a time.”