At eleven at night the answers start going subtly wrong. They are confident and well formatted, and they cite documents that do not say what the answer claims.

Three things changed today. A prompt template edit shipped this morning, the vendor rolled a model point release, and an ingestion job failed quietly at six. Which one is it, and which one can you undo right now, on its own, without reverting the other two?

If the answer is "we would have to redeploy", then the rollback is really a deployment under another name.

AI incidents need their own taxonomy

Classic incident categories are about availability: the service is down, latency is up, or the error rate spiked. AI systems fail while still returning 200s.

The classes worth naming in advance, because you will not invent them under pressure:

  • Quality regression: answers got worse, and nothing logged an error.
  • Retrieval failure: the index is stale, empty, or serving the wrong tenant's documents.
  • Tool failure wearing a model costume: a tool returns nothing and the model fills the gap.
  • Safety or policy breach: output that should have been refused, or a leak across a boundary.
  • Cost or latency blowout: usually a retry loop, or a context that quietly doubled.
  • Upstream model change: the vendor changed something and your behaviour moved with it.

Each has a different first responder and a different first action, which is why they need writing down before the incident.

Independent rollback, or none at all

Every layer that can change behaviour needs its own version and its own reversal path, decoupled from the application release. Prompt templates are versioned, flag-selectable and revertible in seconds. Model choice and parameters live in configuration instead of code, pinned to a dated version rather than a floating alias, so a vendor point release reaches you only when you move the pin. Retrieval config covers index version, chunking, thresholds and whether the reranker is on, with the previous index retained so reverting is a pointer swap rather than a rebuild. Each tool should be individually disableable, so one bad integration does not force you to kill the whole feature. Pinning and retention both have a price. The vendor still decides when the old model retires, and the retained index is storage you pay for twice.

Then the kill switch, and be precise about what it kills. Hiding the UI while the workflow still runs on the backend is not one. Exercise it in production on a quiet afternoon, because until you have tested a kill switch you only believe it works.

Detection, support and the postmortem

Detection is chronically underinvested. Your availability alerts will not fire here. Alert on quality proxies instead: refusal rate, retrieval hit rate, correction rate, escalation volume, tokens per task.

Support needs a path that is not "file a bug". Give them the failure taxonomy, a trace ID field, and a named person to escalate to. Decide the customer communication rule before you need it, covering which failure classes get proactive contact, who writes it and who approves it.

Afterwards, a postmortem without evidence is a memory exercise, so gather the traces, the versions in play, the tenants affected and the timeline. Then feed the incident back into testing by turning every confirmed bad output into a regression case, so that failure has to be new next time.

Rehearse the eleven o'clock question

On an ordinary Tuesday, stage the opening scenario in a non-production environment: a prompt edit, a model version change and a failed ingestion job. Revert each one on its own and time it. Any layer that needs a redeploy, or drags another layer back with it, is the next boundary to draw.

Terms in this piece

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Sep 17, 2026

Short mental models: one idea, why it matters, what to do about it.

Article · · 2 min read

Read post-mortems, not tutorials

Tutorials teach one tool's happy path. Post-mortems teach how systems fail, and that carries over to every stack you will work on.

Checklist · · 12 checks

RAG production-readiness checklist

Twelve checks to pass before a retrieval system answers a real user. Tick them locally; progress stays in your browser.