What Happens When an AI Agent Fails?
AI agent incident management is the process that detects an agent failure, contains it before analyzing it, informs the people and authorities concerned, repairs harm already done and closes the incident only when fixes are tracked to completion. Its controls, including who may stop the agent, are agreed before go-live, not improvised during the incident.
Quick facts
- Type
- Operating process for deployers of AI agents
- Key idea
- Contain first, preserve evidence, repair downstream harm, then learn
- Where it lives in the process
- A monitoring alert, a severity gateway, a containment path to people, a notification task and an approval to restart
- Main legal hook
- EU AI Act Art. 3(49), 26(5) and 73 (serious incidents, high-risk systems); GDPR Art. 33 only for personal data breaches
- Related concepts
- Deactivation policy, bypass procedure, rollback, downstream harms, post-incident review
- IAPP® AIGP® reference
- Body of Knowledge v2.1, IV.C (governing deployment and use) and III.C (release, monitoring and maintenance)
At a glance
- Detect — monitoring thresholds, complaints and staff reports raise the alert
- Triage — rate the severity: scale, ongoing harm, reversibility
- Contain — suspend or localize, route work to staff, keep the evidence
- Notify — affected people directly; provider or authority where the law requires
- Repair downstream harm — trace, correct and remediate outputs already used
- Review and track fixes — record the incident and close each fix before closing it
What counts as an AI agent incident, and what causes one?
An AI agent incident is an event in which an agent's outputs or actions depart from its intended use and cause, or could cause, harm. A minor deviation is handled as an issue; it becomes an incident when it crosses a severity threshold agreed in advance.
The causes are covered in depth in the entry on versioning, releasing and monitoring AI agents. When the failure started is the best clue:
| Cause | Typical signal |
|---|---|
| Limited robustness (brittleness) | Fails under conditions testing never covered, such as new equipment or a new site, while the original setting still performs |
| Insufficient testing | A tool integration tested on fixed sample responses breaks when the external interface changes |
| Drift | Quality falls slowly as inputs change; caught by continuous monitoring against release baselines, not by periodic audits |
| Poor data | A flaw built in at training, such as missing values encoded as zero, fails from the first week |
| Upstream change | A model called through a "latest" alias changes on the provider's release day, outside change control; pin the version and retest |
Look-alikes need more: data poisoning needs an attacker, a feedback loop needs the model's own past decisions in its training data, and prompt injection needs instructions hidden in content the agent reads.
An AI agent incident is defined by harm against intended use, and the moment it started usually points to its cause.
What should you do first when an AI agent fails?
Triage the alert by severity: how many cases are affected, whether harm is still occurring and whether the actions can be undone. When harm is ongoing or spreading, containment comes first: before root-cause analysis, before contacting customers and before the fix. The NIST AI RMF asks for mechanisms, with assigned responsibilities, to supersede, disengage or deactivate a system whose outcomes depart from its intended use (MANAGE 2.4).
The usual first move is to suspend the failing tool or step and route the work to staff through a bypass procedure, so the process keeps running. Choose the narrowest stop the evidence supports: if errors appear at one site whose integration changed while other sites run normally, stop the agent there, keep monitoring the rest and widen the stop if errors spread. Rolling the agent back helps only when a change of your own caused the fault, not when the agent version is unchanged.
Whatever the option, preserve the evidence. A rollback tool that replaces the live version can destroy the faulty prompt or configuration, so save it and its logs before or during the rollback, and never delete incident-period logs. Affected outputs can still be found afterwards; an overwritten version cannot.
Containment stops an AI agent incident from growing, and preserved evidence makes the later analysis possible.
What should a deactivation policy agree before go-live?
A deactivation policy settles how the agent is stopped in operation, so that nobody improvises during an incident. It states:
- Who may stop the agent, usually the AI owner or an on-call lead, and who may restart it.
- Which triggers stop it: thresholds such as a sampled error rate, a number of complaints in a day or any suspected serious incident.
- What scope each trigger stops: one tool, one step, one site or the whole agent.
- What fallback keeps the work going: the bypass to people, with the capacity to absorb it.
Three things look similar but are not the policy: decommissioning, which retires the agent at end of life; a shutdown test, which checks that the mechanism works; and a provider's contractual right to suspend the service, which protects the provider, not the people affected.
For high-risk systems, the EU AI Act also requires deployers who have reason to consider that use presents a risk to inform the provider or distributor and the market surveillance authority without undue delay and to suspend use (Art. 26(5)). A deactivation policy makes that duty workable.
A deactivation policy answers who stops an AI agent, on which triggers and with what fallback, before anyone needs to.
Who must be told about an AI agent incident?
What the law says under the EU AI Act, for high-risk systems:
| Article | Who | What |
|---|---|---|
| Art. 3(49) | — | A serious incident leads to death or serious harm to health, serious and irreversible disruption of critical infrastructure, infringement of fundamental-rights obligations, or serious harm to property or the environment |
| Art. 26(5) | Deployer | On a serious incident, informs the provider first, then the importer or distributor and the market surveillance authority |
| Art. 73(1)–(4) | Provider | Reports to the market surveillance authority where it occurred, at most 15 days after awareness; at most 2 days for a widespread infringement or critical-infrastructure disruption, 10 days for a death |
| Art. 73(6) | Provider | Investigates without delay, but does not alter the system in a way that may affect later evaluation of the causes before informing the competent authorities |
The GDPR adds a separate duty only for a personal data breach: notice to the supervisory authority within 72 hours (Art. 33). A model fault alone is not a breach. Sector and national rules may add more.
Good practice: contact the people affected directly and promptly, with what was wrong, the correct information and where to get help. Do not wait for the final root-cause report. A website notice does not reach people who already hold the wrong information. The NIST AI RMF asks that incidents be communicated to relevant AI actors, including affected communities (MANAGE 4.3).
AI agent incident notification follows the law where it applies and reaches affected people directly in every case.
How do you repair downstream harms and close the incident?
Fixing the agent does not undo what it already did. Outputs may have been copied into other records or shared with partners who are acting on them. Trace where they went, correct them at each recipient and remediate the people affected, for example by releasing held payments. While a partner still acts on wrong outputs, correcting them comes before writing up the incident; any regulatory report runs alongside, as the applicable law requires.
Restoring service is not closing the incident. A post-incident review, owned by the deployer even when the provider helps, records:
- the timeline, from first signal to restoration;
- the root cause and contributing factors;
- the impact and severity;
- the response, and what worked;
- each fix, with an owner and a due date, tracked to completion.
The provider's analysis is one input to this review, not a substitute for it. The record goes to the incident register for audits and trend analysis.
An AI agent incident is closed by a documented review and completed fixes, not by the agent working again.
Where does incident handling sit in the process, and how is it measured?
Incident handling is a process with roles, gates and records. The figure on this page models it with standard BPMN 2.0.2 elements, as a modeling convention: Monitoring raises the alert, the AI owner triages, contains, preserves evidence and fixes, and the process owner notifies and approves the return to service.
Kestrel Retail's returns chat agent began promising refunds outside policy one evening. The AI owner rated it severe, suspended the refund-promise step, routed returns chats to the service team and saved the configuration and logs. The next morning the process owner wrote to each customer affected with the correct terms.
Measure both the agent and the response, with thresholds set before go-live:
| KPI | What it shows |
|---|---|
| Accuracy (sampled error rate) | Output quality from independent sampling |
| Escalation rate | Cases sent to people; a sudden change signals trouble |
| Override rate | How often people reject or change outputs |
| SLA adherence | Service levels, including during a bypass |
| Time to detect and to contain | How fast monitoring and the first response work |
| Fixes closed on time | Whether reviews lead to lasting change |
AI agent incident handling belongs in the process model, with a role, a place, a record and a measure for each control.
BPMN diagram
Handling an AI agent incident: triage, containment, notification and return to service
Step by step
- Pool and lanes: one pool, "AI agent incident handling", with three lanes: "Monitoring" (a system, not a person), "AI owner" and "Process owner". Giving the monitoring system its own lane is a modeling convention, not a BPMN element for AI.
- Message start event "Incident alert received" (Monitoring lane): the monitoring system sends the alert, for example when a threshold is crossed.
- User task "Triage severity" (AI owner lane): the AI owner rates how many cases are affected, whether harm is still occurring and whether it can be undone.
- Exclusive gateway "Severe or spreading?" (AI owner lane), with two outgoing sequence flows.
- "Yes" sequence flow: goes to the user task "Contain: suspend agent step, route work to staff" (AI owner lane). The failing step stops and people take over the work.
- Task "Preserve logs and faulty version" (AI owner lane): the faulty version and its logs are saved before anything is changed or rolled back.
- User task "Notify affected parties and, where required, provider or authority" (Process owner lane): the people affected are contacted, and the provider or the authority is informed where the law requires it.
- User task "Root-cause analysis and fix" (AI owner lane): follows the notification.
- User task "Approve return to service" (Process owner lane): the process owner decides whether the agent may resume, then the end event "Agent restored".
- "No" sequence flow from the gateway: goes to the task "Record issue and keep monitoring" (AI owner lane), then the end event "Issue logged".
Suspend, localize, roll back, deactivate or decommission?
| When it fits | Keep in mind | |
|---|---|---|
| Suspend a tool or step, bypass to staff | One capability is failing and staff can absorb the work | Check the bypass has capacity; the rest of the agent keeps running |
| Localize | Evidence places the harm at one site, integration or customer group | Keep monitoring elsewhere and widen the stop if errors spread |
| Roll back | A recent change of your own (prompt, configuration, tools) caused the fault | Save the faulty version and its logs first; useless when the agent version did not change |
| Deactivate the agent | The cause is unknown and harm is widespread or severe | Weigh the effects on upstream and downstream processes |
| Decommission | The agent reaches the end of its life | A planned life-cycle step, not an incident response |
Choose the narrowest stop the evidence supports and widen it when the evidence does. Every option keeps the evidence, and each is named in the deactivation policy before go-live.
Exam focus
Handling incidents in use maps to BoK v2.1 IV.C (governing deployment and use); incident causes and their detection map to III.C (release, monitoring and maintenance). Scenario questions ask what to do FIRST while harm is ongoing, how narrowly to stop the agent, who must be told and what closes an incident. The common trap is starting root-cause analysis, or declaring closure once service is restored, while harm continues. Practise in the Domain IV drill, and in the Domain III drill for causes.
Practise this AIGP domain →Check your understanding
A few practice questions on this entry, drawn at random.
FAQ
What should you do first when an AI agent starts making errors?
If harm is still occurring, contain it first: suspend the failing tool or step and route the work to staff, or stop the agent only where the evidence shows harm. Save the faulty version and its logs while you do so. Root-cause analysis, customer contact and the fix follow once the harm has stopped growing.
Does a deployer have to report AI incidents to an authority?
Under the EU AI Act, a deployer of a high-risk system that identifies a serious incident informs the provider first, then the importer or distributor and the market surveillance authority (Art. 26(5)); the provider reports under Art. 73. Other incidents depend on sector and national law. A personal data breach triggers the separate GDPR notice within 72 hours.
What is a deactivation policy for an AI system?
A deactivation policy, agreed before go-live, states who may stop the AI system, which triggers or thresholds require it, what scope each trigger stops and what fallback keeps the work going. It differs from decommissioning at end of life, from a shutdown test and from a provider's contractual right to suspend the service.
Should you roll back an AI agent immediately after a bad change?
Yes, when your own change caused the fault and harm is ongoing, but save the faulty version and its logs before or during the rollback, because some tools overwrite the live version. Without them, the cause cannot be analyzed and the fix cannot be verified. A rollback does not help if the agent version did not change.
When is an AI incident closed?
When a post-incident review records the timeline, cause, impact and response, and each fix has an owner and is tracked to completion. Restoring service, receiving the provider's analysis or telling customers are steps along the way. The deployer owns the review even when the provider helps.
Sources
- Regulation (EU) 2024/1689 (Artificial Intelligence Act), Art. 3(49), 26(5) and 73, as amended by Regulation (EU) 2026/1744 (Digital Omnibus on AI).
- Regulation (EU) 2016/679 (General Data Protection Regulation), Art. 33.
- NIST (2023). Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1: MANAGE 2.4, 3.2 and 4.3; MEASURE 2.4.
- NIST. AI RMF Playbook, MANAGE 2.4 and 4.3 (bypass procedures, deactivation thresholds, incident records).
- IAPP. AIGP Body of Knowledge, version 2.1 (effective 2 February 2026), competencies IV.C and III.C.
- Last reviewed