What to Do When an AI Agent Fails in Production
A risk register says what could fail. A response plan decides who switches the agent off, what gets checked first and who is told while the company is still working out what happened. Most companies have the first and assume they have the second.
Carlos Andrés Ramírez ·
A risk register says what could fail. A response plan decides who switches the agent off, what gets checked first and who is told while the company is still working out what happened. Most companies have the first and assume they have the second.
Picture an agent that answers customer complaints and proposes refunds. It has worked well for weeks. On a Friday afternoon, after a change to the policy table, it starts approving refunds it should not. Nobody notices until Monday, when finance looks at the weekly close and asks what happened.
That is when the company finds out it had the risk written down. It was in the register, with its probability, its impact and a generic owner. What it did not have was someone with the authority to stop the agent on a Friday, a way to know how many refunds it had approved, or a prior decision on whether the affected customers had to be told. A risk register is for approving the deployment. A response plan is for the day the deployment goes wrong.
The short answer
Do we have a response plan for when an agent fails, or only a risk register?
You have a response plan if you can answer four questions without opening a document: who can switch this agent off, how do we reconstruct what it did, who repairs the affected cases, and who decides what gets communicated and to whom. If any answer is "it depends" or "we would have to ask", you have a register. The difference matters because an agent incident is not like a system outage: the agent keeps running, keeps deciding and keeps adding cases while the company debates.
Why the register is not enough
A failing agent keeps working, which is why the first minute costs more than the last
When a server goes down, the damage stops by itself: there is no service. When an agent gets something wrong, the opposite happens. Every new case it processes with the same error is one more case to review later. The cost of an incident grows with the time between the failure and the stop, and that time is almost always set by a question of authority: nobody wants to be the person who switched off another team's agent without permission.
That is why the plan is written beforehand, when there is no pressure. A committee that agrees on the spot who may stop a production process takes hours, and those hours are counted in wrongly resolved cases.
A response plan is not measured by what it describes, but by what it lets you do in the first hour without asking anyone's permission.
BECOME
The framework
A response plan for agents has four parts, and each answers a different question
None of them is technically hard. What is hard is having them in place before the incident, each with a name behind it.
- 1. A switch with an owner
- Every agent has a way to be paused that does not require a deployment or a meeting, and a person with written authority to use it, outside office hours too. It matters because a fast stop is the only thing that limits damage while the investigation runs. Pausing should be a cheap decision: if switching the agent off costs an argument, it gets switched off late.
- 2. A trail that can be read
- For every action the agent takes, there is a record of what it received, what it decided and on which rules or data. It matters because without it, the question "how many cases are affected?" is answered by reviewing them all by hand. With the trail, you filter from the date the policy table changed and the problem has a size.
- 3. A repair path
- It is decided in advance who reviews the affected cases, by what criteria and in what order: first what cannot be undone, such as a payment already sent, then what can be corrected quietly. It matters because unordered repair burns the team on the least urgent work.
- 4. A communication rule
- Someone decides, against written criteria, whether customers, a regulator or the board must be told, and with what wording. It matters because improvised communication tends to arrive late or contradict itself, and notice to a third party sometimes has legal deadlines that do not wait for the team to finish investigating.
How to check it
A plan nobody has rehearsed is just one more document in the register
Security teams have run incident drills for years, and what they learn is always the same: the written plan had a gap that only showed up when it was executed. Agents are no different. In a one-hour drill, someone is asked to pause the agent, to say how many cases it processed since a given date, and to draft the notice to a customer. If any of the three steps sits waiting for an authorisation, that is the gap.
The rehearsal also changes the conversation with whoever decides. It is much easier to ask for budget for a decision trail right after the team has seen that, without one, the question of how many cases were affected has no answer.
Pick the agent that touches the most money or the most customers today and ask the first-hour question: if tomorrow it got every case wrong, who switches it off, with what permission, and how would we know how many cases it affected? The first answer that is missing is your first backlog.
Frequently asked questions
What is an incident response plan for an AI agent?
It is the set of decisions made in advance about what to do when an agent gets something wrong in production: who can stop it, how its actions are reconstructed, who repairs the affected cases and who decides what is communicated. It differs from a risk register in that it does not describe what might happen, but what is done when it does.
Who should be able to switch off an AI agent?
A specific person with written authority, plus a deputy for out-of-hours. Usually it is the owner of the process the agent runs, not the technical team, because the person who knows the business knows when stopping costs less than carrying on. What matters is that pausing does not require a meeting or a deployment.
How do you know how many cases a failed agent affected?
Only if the agent leaves a record of every action with the date, the data it received and the rules it applied. With that trail you filter the cases from the moment the error began. Without it, the only option is to review all of the agent's activity by hand, and the true size of the problem stays unknown.
Do you have to tell customers when an AI agent makes a mistake?
It depends on what it affected. If the error had financial, legal or personal-data consequences, in many cases yes, sometimes within deadlines set by a regulation or a contract. That is why the decision is written before the incident, with clear criteria and an owner, rather than improvised when customers are already asking.
Let's test your response plan with a drill
From the idea to the operation
Scaling under control means deciding limits, oversight and traceability first. Adding them later means rebuilding.
About the author
Carlos Andrés Ramírez — Transformation Director
Specialist in business transformation and reinvention. Director of Specialised Programmes and lecturer in Artificial Intelligence at UPC's Graduate School.