On-call engineer at a desk at night responding to a production alert on multiple screens

Incident Response for LLM Apps: Runbooks That Work On-Call

LLM incident response is ordinary incident response plus three awkward facts. The failure may be a perfectly healthy HTTP 200. The thing that changed may be a prompt, a retrieval index, or a provider’s model alias rather than code. And a rollback has to cover state the model has already seen, such as cached prefixes, stored memory, and tool side effects that already happened. A team that handles outages well can still be slow here because nothing in its runbooks mentions any of this.

What follows is a runbook skeleton you can adapt in an afternoon: a severity ladder that fits LLM failure modes, the first fifteen minutes, the kill switches to build before you need them, symptom-based diagnosis, a worked scenario, and the postmortem fields that make the next incident shorter. It assumes you have the traces and metrics from the observability stack; without them, step one of every incident is “find out what happened,” and that step is slow.

A severity ladder built for model failures

SevLooks likeExampleTarget response
1Harm, leak, or irreversible actionPII from one tenant appears in another’s answer; agent executes an unapproved refundPage now; disable the capability within 15 minutes; legal and security notified
2Broad quality or availability failureSchema-valid rate drops from 99% to 91%; p95 TTFT triples; provider outage with no fallbackPage; mitigate within 30 minutes
3Localized or slow-burn degradationOne tenant’s route returns empty retrieval; cost per task up 25%Ticket within the business day; mitigate within a week
4Cosmetic or rareOdd formatting in a low-traffic localeBacklog, add a canary

Severity 1 is defined by harm, not by volume. A single cross-tenant leak outranks an hour of slowness. Write that into the ladder so nobody debates it at 3 a.m. For structuring the human side (roles, handoffs, communication), Google’s SRE chapter on managing incidents remains the clearest reference.

The first fifteen minutes

  1. Acknowledge and name an incident commander. One person decides; others investigate. Open a channel and a running timeline.
  2. Classify severity using the ladder. If unsure between two levels, pick the higher one and downgrade later.
  3. Ask “what changed?” Check the deploy log for prompt, model, index, tool schema, and config releases in the last 24 hours. Most LLM incidents are self-inflicted; a release tag on every span makes this a single query.
  4. Check the provider. Status page, plus your canaries against the provider directly versus through your gateway. If both fail, it is upstream; if only the gateway path fails, it is yours.
  5. Mitigate before you diagnose. Flip the relevant kill switch or roll back the last release. Root cause can wait; user harm cannot.
  6. Post the first update to stakeholders: what users see, what you have done, when the next update comes.

Kill switches to build before day one

Each of these should be a feature flag or config value that on-call can flip in under a minute, without a deploy and without a code review:

  • Tool disable. Turn off one tool, or all write tools while leaving read-only ones, so the agent degrades to advice rather than action. Fits naturally into the permissions model.
  • Model fallback. Route a feature to a secondary provider or a smaller self-hosted model. Test it monthly, because an untested fallback is a hope, not a fallback. Self-hosted options are covered in the vLLM serving guide.
  • Prompt and index pinning. One command to restore the last known-good prompt version and the previous index build.
  • Safe mode. Canned responses, retrieval-only answers with quoted sources, or “this feature is temporarily unavailable” for the affected route.
  • Per-tenant and per-feature shutoff. The scalpel for a runaway customer or a bad integration.
  • Spend circuit breaker. Hard cap on tokens per tenant per hour that blocks new work when exceeded; the ledger design is in LLM cost attribution.

Diagnosis by symptom

SymptomFirst three checksCommon root causes
Answers are wrong but 200s everywhereRelease tags on affected traces; retrieval hit rate; canary resultsPrompt edit, index rebuild with different chunking, provider alias moved
Latency spikeQueue depth and KV cache use (self-hosted); provider status; long-prompt shareA new long-context tenant, traffic burst, cache invalidation; see LLM batching and latency
Cost spikeSpend by tenant and feature; calls per run; cache hit rateRetry loop, tool loop, prefix change that killed caching, oversized context
Refusals or policy blocks surgeRefusal rate by route and release; guardrail rule IDsSystem prompt change, guardrail rule update, model update
Tool failuresError rate per tool; auth expiry; schema versionExpired credentials, downstream outage, tool description edit
Possible data exposureStop; preserve logs; identify scope by tenant and timeCache key collision, missing tenant filter in retrieval, prompt including another user’s context

For the tool-failure and loop rows, step-level traces are what turn guessing into reading; tracing LLM tool calls lists the fields to capture. For the cache rows, see the prompt caching guide.

Scenario: Tuesday, 02:10, cost is six times normal

An alert fires: spend rate is 6× the trailing median. The on-call engineer works the checklist.

  1. 02:12: Severity 2 (money, not harm). Incident commander named.
  2. 02:15: What changed? A tool schema release went out at 01:40. The cost dashboard shows one tenant and one feature account for 80% of the increase.
  3. 02:19: Traces for that tenant show 40+ tool calls per run; the search_docs tool is being called repeatedly with the same query because its new schema returns results under a key the harness no longer reads, so the model sees an empty result and tries again.
  4. 02:22: Mitigation: roll back the tool schema and set a temporary cap of 12 tool calls per run for that feature. Spend rate starts falling within minutes.
  5. 02:40: Estimate: about 90 minutes at an extra $310 per hour, roughly $465. Stakeholder update sent.
  6. Next day: postmortem actions: add a contract test for the tool’s response shape, add a loop-detector alert at 3 repeated calls, and add the failing run as a canary.

Nothing here required a genius. It required a release tag on every span, a per-tenant cost view, a rollback command, and a loop detector, each of which existed because someone built it before the incident.

Communicate like a human

Keep updates short, factual, and on a schedule: every 30 minutes for severity 2, every 15 for severity 1, even if the update is “no change.” A template that works:

Impact:   Support copilot replies are slower (p95 ~9s, normally ~3s) for ~30% of users.
Cause:    Under investigation; started after the 14:05 prompt release.
Action:   Rolling back prompt@2026-11-27.2 to .1; ETA 10 minutes.
Next:     Update at 14:45 or sooner if status changes.

For customer-facing notes, describe user impact, not internals, and never speculate about cause before you know it. If the incident involves personal data, bring in security and legal before external communication.

Postmortem fields that are specific to LLM systems

  • Prompt version, model snapshot, index build, tool schema versions, and guardrail rules in effect.
  • Whether a canary or eval would have caught it, and if not, the new canary that now exists. See canary prompts for LLM deploys.
  • Time to detect, time to mitigate, and time to resolve, separately. Detection delay is the number most often ignored.
  • Which signal fired first: alert, canary, customer, or engineer noticing.
  • Blast radius by tenant, feature, and time window, and whether any side effects (emails sent, records changed) need compensating action.
  • Action items with owners and dates, each linked to a test, alert, or runbook edit rather than “be more careful.”

Run blameless reviews and share them. The culture advice in Google’s postmortem culture chapter applies unchanged to LLM teams.

Drill it

Once a quarter, run a game day: inject a bad prompt version into staging, kill the primary provider key, or replay a looping trace, and time how long it takes on-call to mitigate. Measure against targets such as “kill switch flipped within 5 minutes of page.” Log what was confusing and fix the runbook. The same objectives belong in the reliability contract in agent SLAs, and the general discipline of treating prompts and models as releasable artifacts is laid out in the LLMOps production guide.

FAQ

What counts as an incident in an LLM application?

Anything that materially harms users, data, or budget: a safety or privacy failure, an irreversible tool action, a sharp quality drop, a latency or availability breach, or a cost spike. Many are silent because the service still returns successful responses.

What should I do first when an LLM app starts misbehaving?

Name an incident commander, classify severity, check what changed in the last 24 hours, check the provider, and mitigate with a rollback or kill switch before hunting for root cause. Post a first update to stakeholders early.

Which kill switches should an LLM app have?

At minimum: disable tools or write tools, fall back to another model, pin the last good prompt and index, enter a safe mode with canned or retrieval-only answers, shut off a tenant or feature, and a spend circuit breaker.

How do I find the cause of a sudden cost spike?

Slice spend by tenant, feature, and release, then check calls per run, retry counts, and cache hit rate. Loops, a changed tool schema, or a prompt edit that broke caching are the most common causes.

What belongs in an LLM incident postmortem?

The versions in effect (prompt, model, index, tool schemas), detection and mitigation timings, blast radius, whether a canary or eval would have caught it, and action items tied to new tests, alerts, or runbook changes.

How often should we run incident drills?

Quarterly is a good baseline. Rehearse a bad prompt release, provider failure, and a tool loop, time the mitigation, and update runbooks with whatever slowed the team down.

Related reading

About Mudasir Syed

Check Also

Developer masking personal identifiers in a text document on a monitor before sending it to an AI model

PII Redaction Before Prompts: Patterns That Survive Production

Last quarter a support team pasted an angry customer email into an internal summarizer. The …

Leave a Reply