Skip to content
mentoor

Topic 1 of 5 · 5 min read

Recognising LLM-specific incidents

Goal: Classify an incident report by type and severity and name the first containment step.

An LLM incident is any moment when a model-backed feature fails its users, and the type decides the first move: a provider outage needs a fallback, a quality drop needs a rollback, harmful output needs a kill switch, runaway spend needs a cap, and injected instructions need the tool access cut. Naming the type in the first five minutes keeps people from debugging the wrong thing.

Check yourself · 1 of 3

After a prompt edit, error rate and latency are flat, but users say answers got worse. Which incident type is this?

Choose one answer

Why it matters

Classic monitoring catches crashes and slow responses. Model features also fail while returning HTTP 200 with fluent text. If your only alert is "error rate", four of the five types below stay invisible until a user posts a screenshot.

The five types

  1. Provider outage or degradation. Timeouts, 429 and 5xx responses from the model API, or a regional slowdown. Visible in error rate and latency. First move: route to the fallback model or a cached or non-AI path.
  2. Silent quality drift. The provider updates a model, someone edits a prompt, a retrieval index is rebuilt. Nothing errors, but answers get worse. Visible only in eval scores, user feedback and thumbs-down rate. First move: roll back the most recent change.
  3. Harmful or embarrassing output. A wrong medical claim, a leaked customer name, an offensive reply, a made-up policy that a user relies on. First move: switch the feature off or to a canned reply, and keep the trace as evidence.
  4. Runaway spend or load. A retry loop, an agent that never stops, a prompt that grew tenfold. Visible in token counts per request and daily spend. First move: lower the budget cap or rate limit.
  5. Injected instructions that trigger actions. Text in a web page, email or document tells an agent to send data or call a tool. The OWASP LLM Top 10 lists prompt injection and excessive agency among the main risks. First move: disable the affected tool, then review what it already did.

Severity

Rate by impact, not by cause. Who is affected, can harm be undone, and is it still happening? Wrong tone in an internal summariser is low. Leaked personal data or an agent that has already sent emails is high, whatever the technical cause.

Before and after

Weak report: "Chatbot is acting up." Fixed report, as the on-call engineer should write it:

Type: harmful output (type 3), possibly injection
Severity: high - customer data shown to wrong user, still reproducible
Seen: 14:05 UTC, trace id t-8812, support-bot v41
Containment: tool lookup_order disabled by flag at 14:12
Next: collect traces for 13:00-14:12, notify the owner of the data

What goes wrong

  • Treating every report as an outage. Failing over to another model does nothing for a bad prompt change.
  • Waiting for an error. Quality incidents have no error code. A rise in thumbs-down is the alert.
  • Rating by effort to fix. A one-line prompt fix can still be a high-severity incident.
  • Fixing before containing. Stop the harm first, understand it second.

Examples

Same symptom, different types

Support tickets say "the assistant gives odd answers". Check the signals: error rate is flat, latency is flat, but the eval score on Tuesday's nightly run fell, and a prompt change shipped Tuesday. That is type 2, so the first move is to roll back the prompt, not to fail over to another provider.

A cost spike that is really a loop

09:00 tokens/request avg 1,900
11:00 tokens/request avg 1,950
13:00 tokens/request avg 41,000  <- agent retries tool call with full history

Spend alerts fire, but the cause is behaviour, not traffic. Lower the per-request step limit, then look at the trace.

Key points

  • Name the incident type first, because each type has a different first containment step.
  • Silent quality drift returns HTTP 200, so it is caught only by eval scores, feedback and sampling.
  • Rate severity by impact: who is affected, whether harm can be undone and whether it is still happening.
  • Injected instructions are an incident when an agent can act on them, so the first move is to cut tool access.
  • Contain first, diagnose second: a flag, a cap or a fallback buys time.

Common mistakes

  • Starting a provider failover for what is actually a prompt or retrieval regression.
  • Having alerts only for errors and latency, with nothing on quality or cost per request.
  • Rating severity by how easy the fix is rather than by who was harmed.
  • Debugging before containing, while the harmful output is still being served.

Check yourself · 2 of 3

A support agent starts emailing customer data to an address that appeared in a pasted document. What is the first containment step?

Choose one answer

Check yourself · 3 of 3

Which fact should raise an LLM incident from low to high severity?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic