How Do You Respond to an AI Incident?
How to spot, contain, fix and learn from an AI system that has gone wrong, explained simply for your AI interview.
In short
Stop the harm first, then find the cause. Spot the incident through monitoring and user reports, switch off the risky part, read the logs, fix the source, tell the people affected, and add the case to your tests.
12 min readIntermediateOccasional · estimateFacts checked 27 November 2026
Say it out loud
Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.
An AI incident is when a live AI system causes harm, like leaking data, giving customers wrong facts or taking an action it should not. My first move is to stop the harm, usually by switching off the risky part. Then I read the logs to see who was affected, fix the source, and tell those people. Last, I add the case to our tests, so it can't quietly come back. Logs and switches have to exist before an incident, because a wrong answer usually arrives with no error.
An AI incident is a moment when a live AI system does harm, or nearly does. It might leak private data, give a customer a wrong price, or act on instructions an attacker hid in a document. I treat it like any serious live problem, with two extra questions: what did the model read, and what could it do? The first answer points to the cause. The second shows how far the damage can reach.
The order matters. First I stop the harm, usually by switching off the risky tool or feature, even if that costs some service. Then I check the logs: the prompt, the tool calls and the model version for each affected chat. Only then do I fix the source, whether that is a bad document, a prompt change or a missing check in code. Rolling back to the last version that worked is often the fastest safe move.
Telling people starts as soon as the scope is known, before the fix is ready. Affected users get a clear note saying what happened and what to do. If the system is high-risk under the EU AI Act, a serious incident has its own reporting duty once those rules apply, so I bring in compliance the same day. After that I write a short review without blame, and I add the failing case to the test set that runs before every release.
Prevention shapes all of this. Monitoring, alerts and clear logs have to exist before the incident, because a wrong answer usually arrives with no error. I also say honestly that no filter catches every attack, so the plan has to assume some will get through.
What is an AI incident, in plain words?
An AI incident is when an AI system causes harm, or nearly does, while it is live. It might show one customer's details to another, quote a price the company never offered, or do something an attacker tricked it into doing.
Responding well means three things in order: stop the harm, find out what happened and who it reached, then fix the cause so it doesn't happen again. Each step needs something set up beforehand: an alert, a switch and a log.
Monitoring means automatic checks that watch error rates and complaints, so a problem shows up on a screen. A prompt is the instructions the team gives the model. A tool is an action the AI can take, such as sending an email.
Picture a bank branch manager. One teller starts giving customers wrong balances. She closes that counter first, checks every transaction that teller made that day, and only then fixes the training. A support assistant that quotes wrong fees follows the same order.
Key words
- Incident
- A moment when a live system causes harm, or nearly does, and needs a response.
- Kill switch
- A control that turns a feature or tool off fast, without a new release.
- Rollback
- Going back to the last version that worked.
- Logs
- A record of what the system did: the prompt, each tool call, the answer and the version.
- Blast radius
- How far the damage reaches: how many people, which data, which actions.
What are the steps, in order?
Every good response follows the same loop. Each box is one step, and the numbers show the order.
Responding to an AI incident, step by step
Spot it
Monitoring alert
error rate or a spike in complaints
Customer report
a user says an answer looks wrong
Switch off the risky part
a feature switch or one tool
Find and fix
Read the logs
prompt, tool calls, model version
Fix the cause
data, prompt or a tool rule
Tell and learn
Tell affected people
what happened and what to do
Add the case to tests
it stays in the test set
Back to normal
watched for a while, then closed
- 1The alert leads to switching the risky part off.
- 2A customer complaint also leads to the switch-off step.
- 3The logs are read to find every chat or action affected.
- 4As soon as the scope is known, affected people are told.
- 5The logs point to the cause, which is then fixed.
- 6Once the fix is in, the failing case is added to the tests.
- 7Once the new test is in, the service goes back to normal.
- 1
Spot it
A monitoring alert, a spike in complaints or one user who reports a strange answer. Someone owns each alert, so it never sits unread.
- 2
Stop the harm
Switch off the risky tool or feature first. Restoring the full service can wait until it is safe.
- 3
Find the scope
Search the logs for every chat or action with the bad output. Note the prompt version, the tools used and who was affected. Keep those logs redacted and for a short time, since prompts often hold personal data.
- 4
Fix the cause
Roll back to the last good version, or fix the bad document, prompt or missing check. Then test the fix on the failing cases.
- 5
Tell and learn
Tell the affected people as soon as the scope is known. Then write a short review without blame, and add the failing case to the tests.
NIST's AI Risk Management Framework puts the same idea in its manage section, in a line about tracking incidents, and it expects the steps to be written down:
“Processes for tracking, responding to, and recovering from incidents and errors are followed and documented.”
NIST AI RMF Playbook, MANAGE 4.3
“We identified the issue and rolled back the change on September 2.”
Anthropic, postmortem of three recent issues (2025)
A postmortem is a written review of what went wrong. Anthropic's 2025 review of degraded answers shows the pattern: they found the bad change, rolled it back, then added tests for that kind of output. Rollback works best when a change you made caused the problem.
Logs matter for the scope. OWASP's 2026 guidance on prompt injection says, for agent memory writes, to log the causing prompt. Keeping that prompt on record lets you search for every chat it touched.
How do you contain an incident without making it worse?
Switching everything off looks safe, but it has a cost too. Here is a made-up case at a mid-size bank, with made-up numbers.
The bank's support assistant starts quoting a card fee waiver that ended last month. By Monday morning, 1,300 chats had the old figure, and a complaint spike set off an alert. The engineer on duty that night has three options.
- Option A
Switch off the whole assistant
Stops the wrong figure at once. But about 9,000 self-service chats a day move to a call queue that is already long.
- Option B
Switch off only fee answers
Fee questions go to a fixed page while the rest of the assistant keeps working. The team then fixes the source.
- Option C
Roll back the prompt change
Works if a prompt change caused it. Does nothing if the old fee sheet is still in the search index.
I would pick B first, then check the search index (the store the bot searches for answers), then decide whether a wider switch is needed. The logs show how many chats quoted the old figure, and that count decides how much effort goes into the apology.
Tip
In an interview, name the trade-off. A full shutdown is simple but costly, and a narrow switch needs someone who knows which topics to fence off.
Who must you tell, and when?
Affected people come first. On 20 March, OpenAI took ChatGPT offline after a bug in an open-source library let some users see titles from another user's chat history. It then told affected users that their payment information may have been exposed.
Regulators can need to hear about it too. For high-risk AI systems, the European Commission's AI Act guide says the strict obligations start on 2 December 2027, and that providers and deployers report serious incidents:
“Providers and deployers will also report serious incidents and malfunctioning.”
European Commission, AI Act
Whether a report is due depends on the system, the market and the rules that apply. Compliance and legal teams decide that, so an interviewer will be glad to hear you bring them in early, even if you don't know every deadline by heart.
Tip
Keep a short list of who must hear what, and when, before anything breaks.
Can you catch every attack?
No. Microsoft describes its own defence against indirect prompt injection as spanning prevention, detection and impact mitigation, and says a probabilistic defence can miss some attacks.
So the response plan assumes some attacks will get through. That is why the tools an AI app can use matter: the fewer it can reach, the smaller the blast radius of the next incident.
How would you handle a data leak in a chat app?
This is close to the ChatGPT case above. A bug showed some users the titles of other users' chats, and the service was taken offline.
- 1
Take the risky feature offline
Stop it while the team works out who was touched. Keep a status page or banner up so users know what is happening.
- 2
Find the accounts affected
Use the logs and the library's bug report to list the chats and accounts that were exposed.
- 3
Fix and test the library
Patch or pin the library, then test the exact bug with a case that reproduces it.
- 4
Tell affected users plainly
Say what was seen, what data was involved, and what they should do, such as watching their card statement.
Tip
Say what you don't know yet. Early on, the scope is a guess until the logs are read.
What does the interviewer want to hear?
A strong answer covers
- Stop the harm first, then find the cause.
- Spot it: monitoring alerts, user reports and a named owner.
- Keep logs of the prompt, tool calls and model version.
- Fix the source, then add the failing case to the tests.
- Tell affected people, and bring in compliance early.
- Write a short review without blame, and act on it.
Common traps
Trap"We'll just fix the prompt and redeploy."
BetterStop first. A prompt fix needs testing, while a switch takes minutes.
Trap"If only a few users were hit, nobody needs to know."
BetterCount who was hit from the logs. Some rules set when you must tell people, so ask compliance the same day.
Trap"The model made the mistake, so it is the model's fault."
BetterThe model is one part. Your data, tools and checks decided how far the mistake reached.
Can you pick the right first move?
Spot the useful log
Which log line lets you find every affected chat later?
Quick check
Your assistant starts giving customers a wrong fee. What do you do first?
Can you answer these from memory?
Flash cards · tap a card to flip it
What will they ask next?
Learn it in depth
Last updated on 27 November 2026
Running an AI system that customers could see go wrong?
I design and build AI products and agents, including the monitoring, switches and review steps that catch problems early. Book a short call and tell me what yours needs to do.