AI Agent Failure and Human Intervention: How to Design Exception Handling and Build a Continuous Improvement Loop

Column
AI Agent Failure and Human Intervention: How to Design Exception Handling and Build a Continuous Improvement Loop

Introduction

When an AI agent behaves unexpectedly, where should a human step in, and how do you carry that through to root-cause analysis, correction, and prevention of recurrence? This piece sets out a common way of thinking, spanning fallback, log analysis, reproduction testing, and the post-mortem.

Tatsuya Ito

Tatsuya Ito

Artificial Intelligence Consultant

company-icon

Third Scope Ltd.

Born in 1985 and originally from Mie Prefecture, Japan. In 2012, he joined an AR startup in Hong Kong as an engineer. Since then, he has been involved in new business development and AI service launches at several AI startups. In 2018, he founded the current ThirdScope Inc. by taking over an AI service and its development team. He now supports companies in adopting and utilizing AI, with a focus on AI-driven business development, operational transformation, and product development. He has also been involved in AI research as a Project Researcher at the University of Tokyo. Today, he continues to work at the forefront of AI project development, providing practical consulting from both technical and business perspectives.

No one could decide whether we ought to have stopped it or let it run to the finish.

This is an anonymised, reconstructed case drawn from situations the author has encountered across several AI adoption engagements. At one B2B company, an AI agent had begun handling first replies to prospective customers, only for an unforeseen conditional branch to nearly attach an outdated proposal document. On Slack, messages such as “let’s pause it for now” and “we’ll look into the cause later” flew back and forth, and it had become rather unclear who, between sales planning, IT, and the front-line managers, actually held the final say.

The author has seen much the same scene play out many times over, across AI adoption, business transformation, and product development work. The problem is rarely the AI’s capability alone. When an AI behaves unexpectedly, who stops it, who checks the cause, and who decides to resume? Where those steps have not been agreed in advance, even a technically trivial fault can bring the whole team’s decision-making to a halt.

This company subsequently reviewed its exception logs from the previous three months and set out, in plain terms, its criteria for human intervention, the behaviour of its fallback AI, and its rollback, recovery, and post-mortem flows. By sharing AI incident records, response templates, and training case studies internally, it is shifting towards treating failure not as “someone’s mistake” but as the entry point to an improvement loop.

This article is written for the operations staff and digital transformation leads who wrestle with how to respond when an AI agent fails. It sets out where humans should step in, and how to carry that through to root-cause analysis, correction, and prevention of recurrence. The aim is a state in which, even when the AI fails, the team does not panic, and can work through stopping, reverting, investigating, and fixing by the same set of steps. That said, simply drawing up a runbook is no panacea. Only when log design, training, and regular review come together does autonomous operation become genuinely workable. If you share these concerns, do read on with your own operation in mind.

Responding to AI agent failures takes more than a “stop button”

Responding to AI agent failures takes more than a “stop button”

When an AI agent behaves unexpectedly, the first response that springs to mind is to stop it. For anything touching customer-facing work, outbound sending, contracts, sums of money, or personal data, pausing is indeed important.

But if you frame AI agent failure response purely as “stop or don’t stop,” the operation soon grinds to a halt. What the front line genuinely needs is the steps that follow the stop.

Consider whether you are in a position to answer questions such as these.

  • Once it is stopped, who confirms the scope of the impact?
  • Which logs does one look at?
  • Who contacts the customer?
  • Do we roll back, or fix it by hand?
  • Where are the preventive measures recorded, and who reflects them into training or operating rules?

When the author is asked to advise on AI adoption, the conversation tends at first to settle on “which AI tool should we use” and “how far can we automate.” Those matter, naturally. Yet once you are actually running the thing, the more important question becomes: when the AI fails, how do you protect the business? Behind every bit of glamorous automation there is, without fail, some decidedly unglamorous exception handling.

What matters in AI incident response is not promising to reduce failures to zero. It is creating a state in which, when failure does occur, you contain the damage, confirm the cause, and feed it back into how you operate next. On managing AI risk, the NIST AI Risk Management Framework likewise sets out an approach to managing AI-related risks, treating them as ongoing impacts on organisations and society.

Start by deciding the conditions under which humans intervene

Start by deciding the conditions under which humans intervene

In the autonomous operation of AI agents, having a person involved in every single step rather defeats the point of automation. Leave everything entirely to the AI, on the other hand, and the impact can spread when something unexpected occurs.

So the first thing to decide is: under what conditions does a human step in?

When the author is consulted on agent design, the discussion centres not so much on “how much to delegate” as on “from what point not to delegate.”Widening the scope of automation is tempting, but extend the agent’s authority while the intervention conditions remain vague, and the front line pays for it later.

Level 1: the AI falls back automatically

For processing where the impact is small and no outbound sending is involved, it is effective to design the AI to switch to an alternative route on its own.

For instance: returning “I cannot answer that” when the document it should refer to cannot be found; holding with a set phrase when confidence falls below a threshold; or prompting for additional input fields when the relevant data is lacking.

At this stage, humans need not intervene in every operation. Even so, how many times the fallback has occurred should be recorded in the logs, so it can be checked afterwards.

What matters is building into the AI a habit of not pressing on while still in the dark. It is the same with training a new member of staff: someone who checks when they cannot decide is trusted more than someone who barrels ahead. An AI agent is no different.

Level 2: resume processing after a staff check

For work that can be carried out safely with a human check in the loop — replies to customers, decisions on internal applications, drafting quotations and the like — the AI’s processing is placed on hold.

In this case, the AI agent does not press on to the next step of its own accord, but instead raises a request for confirmation with the responsible member of staff.

For example, it might give notice along the lines of: “I cannot decide whether to send document A or document B to this customer. Please check.” Processing resumes once a person chooses to approve, amend, or send it back.

At first glance, this design looks as though it slows the pace of automation. In practice, though, it can do the opposite and improve stability. Where the points to be checked are made clear, the front line can decide without hesitation. Having a person look only at the key points can, in the end, prove easier to run than having the AI carry everything through.

Level 3: cases requiring an immediate stop or rollback

Misinformation already sent outside, mis-stated contract terms, mistaken reference to personal data, access to data beyond one’s permissions — these warrant an immediate stop.

At this level, rather than leaving the call to the AI agent alone, you notify a predetermined owner and proceed to stop the processing, confirm the scope of impact, roll back, and contact those concerned.

What matters is not to settle the structure only after a serious incident has occurred. Who stops it, who looks at the business impact, and who looks at the technical logs all need to be decided in calmer times.

In organisations where AI agent operation becomes unstable, a vague assumption — “if anything happens, someone will look at it” — tends to be left in place. Yet when something truly does happen, that “someone” is slow to appear. That is precisely why the intervener needs to be defined by name or by role.

Levels of human intervention when an AI agent fails
Intervention level Main conditions Response approach
Level 1 Processing with small impact and no outbound sending The AI falls back automatically and records a log
Level 2 Processing that can proceed safely with a human check Approve, amend, or send back after a staff check
Level 3 Processing with serious impact — outbound sending, contracts, personal data, access beyond permissions Immediate stop, confirmation of impact, rollback, and contact with those concerned

Think of AI exception handling as detect, stop, substitute, recover, record

Think of AI exception handling as detect, stop, substitute, recover, record

Tackle AI agent failure response on a case-by-case basis, and it quickly turns complicated. So it helps to organise it as a common pattern, in five stages: detect, stop, substitute, recover, and record.

These five stages are not confined to any one industry. They are a way of thinking that applies across a great many AI agent operations — sales support, enquiry handling, internal help desks, marketing distribution, internal application processing, and more.

Detect: how do you spot an anomaly?

First, decide what counts as an anomaly.

It is not only the cases that throw an error. With an AI agent, the processing may complete perfectly well while the substance is, in business terms, inappropriate.

For instance: it is referring to an outdated document; it is answering while confidence remains low; it is distributing to an unintended customer segment; or it is taking longer than usual to process.

Operate without detection conditions and you will only notice the problem when the front line flags it or a customer gets in touch. The approach of continuously observing AI incidents and grasping the patterns is also set out in the OECD AI Incidents and Hazards Monitor.

In the early stages of an AI agent rollout, the author tends to recommend gathering “the points that strike a person as off” from the front line, rather than over-engineering the detection conditions from the outset. The front line’s sense of unease is the starting point for log design.

Stop: where do you stop it?

Next, decide where to stop the AI agent.

Do you halt all processing at once, stop only a particular workflow, or stop only the outbound sending? Without deciding the scope of the stop, you either stop too much and bring the whole operation to a standstill, or stop too narrowly and let the impact spread.

For a sales-email-drafting AI, for example, one might separate it out as “carry on creating drafts, but stop automatic sending.” For an enquiry-handling AI, a design such as “continue internal-facing answers, but hold automatic replies to customers” is also possible.

Stopping does not necessarily mean stopping everything. It means adjusting the scope of what you stop, in order to protect the business.

Substitute: switch to a fallback AI or to manual handling

Stop the AI agent and the work stops with it. So you need an alternative ready at the same moment you stop.

The classic options are a fallback AI and manual handling.

A fallback AI is a stand-in AI with its permissions and scope of action pared back relative to the usual autonomous agent. For example: it does not send anything outside, and only puts forward candidate answers; it makes no fresh judgements, and replies only within the bounds of a set FAQ; where it lacks a given degree of certainty, it routes to “staff check.” Constraints of that sort are applied.

Contracts, legal matters, and serious customer issues, on the other hand, should be returned to manual handling. Minimising the impact takes priority over preserving the automation.

On AI projects, there can be a feeling that “we went to the trouble of automating this, so reverting to manual is surely a defeat.” The author does not see it that way. It is precisely because a design exists for reverting to manual that you can step into automation with any peace of mind.

Recover: carry out the rollback and recovery steps

Where the failure has affected the outside world, recovery is needed.

Recovery comes in two parts: the technical rollback and the operational recovery.

A technical rollback means returning settings, prompts, reference data, integration targets and so on to their state before the problem arose. Operational recovery means correcting documents sent in error, explaining to the customer, sharing with internal stakeholders, and amending the CRM or management ledger.

With AI agent failures, these two are readily confused. Restore the system alone and the impact on the customer remains. Conversely, apologise to the customer alone and the same malfunction recurs.

What is needed here is to view the technical and the operational separately. The engineering view alone is not enough, and the front-line view alone is not enough either. You need an operating design that joins the two.

Record: keep it in a form usable for the next improvement

Finally, record what was done.

The items worth recording are: the date and time of occurrence, how it was detected, the scope of impact, the processing that was carried out, the prompts and reference data used, the timing of any human intervention, the interim response, the permanent response, and the measures to prevent recurrence.

What matters here is not to let it become a mere report. It needs to be kept in a form usable for the next round of training, rule revisions, prompt corrections, and reviews of permission design.

When putting an AI foundation in place internally, it helps to organise AI incident response templates, retrospective notes, and training case studies by project, so that those involved can improve while looking at the same information. A service such as Kanata, for instance — where AI chat, summarisation, learning content, and per-project libraries can all be handled in the same environment — is well suited to keeping failure response from ending as a one-off exchange in a chat, and accumulating it instead as organisational knowledge.

AI agent exception-handling flow
Stage What to confirm Main response
Detect What you judge to be an anomaly Grasp errors, references to outdated documents, low confidence, distribution to unintended segments, and the like
Stop Which scope to stop Distinguish between a full stop, a workflow stop, an outbound-sending stop, and so on
Substitute Which processing to switch to Switch to a fallback AI or to manual handling
Recover What to restore Roll back settings and data, explain to the customer, and amend the management ledger
Record What to keep Record the event, the scope of impact, the interim response, the permanent response, and the measures to prevent recurrence

In root-cause analysis, keep “log analysis” and “reproduction testing” apart

In root-cause analysis, keep “log analysis” and “reproduction testing” apart

When an AI agent fails, the front line is often asked “why did that happen?”

But an AI’s behaviour arises from several factors overlapping: the prompt, the reference data, the permissions, the external integrations, the input, the model’s output tendencies, and ambiguity in the business rules all become entangled.

For that reason, in root-cause analysis it is important to think of “log analysis” and “reproduction testing” separately.

When the author joins a root-cause session, they sometimes say at the outset: “let’s hunt for the branch point, not the culprit.” An AI agent failure can rarely be explained by one person’s mistake. Rather, you need to trace at which branch, on the basis of which information, and why, the processing proceeded as it did.

What to look at in log analysis

In log analysis, you confirm what information the AI agent received, what judgements it made, and which operations it carried out.

Specifically, you check the following.

  • The instructions and data that were input
  • The documents and knowledge it referred to
  • The prompts that were used
  • The tools and external integrations that were invoked
  • The outcomes of the decision branches
  • The output
  • Whether there was human approval or amendment
  • Whether there were any errors or warnings

Where no logs remain, root-cause analysis becomes guesswork. Fix things on guesswork alone, and the same problem may well recur somewhere else.

If you are embedding an AI agent into your operations, keeping “the minimum logs needed to explain it afterwards” should be a premise from the moment of adoption. This is not only for monitoring’s sake; it is also to protect the front line.

What to confirm in reproduction testing

In reproduction testing, you confirm whether the same failure occurs when the same conditions are supplied.

For example, you re-run with the same input, the same reference data, the same prompt, and the same permission settings, and see whether the problem reproduces.

If it reproduces, the cause is more likely to lie in the settings or rules. If it does not, you suspect updates to external data, timing, context, variability in the model’s output, and the like.

In AI agent reproduction testing, the exact same output will not necessarily come back. So it matters to look not merely for a string match, but for whether the same business-level misjudgement occurs.

In AI operation, several small conditions overlap to produce an incident. That is exactly why you need to keep log analysis and reproduction testing apart, and narrow down the cause by procedure rather than by gut feeling.

Place accountability with the “operating design,” not the “AI”

Place accountability with the “operating design,” not the “AI”

When an AI agent fails, it is sometimes said that “the AI did it of its own accord.”

But you cannot lodge business accountability with an AI. It was a human organisation that decided which permissions to grant the AI, which data to let it refer to, and how far to let it act automatically.

So accountability needs to be made clear as a matter of operating design, not of individual gut feeling.

For instance, divide the roles as follows.

Business owner
Decides the scope of work delegated to the AI agent

Digital transformation lead
Designs the operating rules, training, and improvement cycle

IT / information-systems owner
Manages permissions, logs, integrations, and means of stopping

Front-line manager
Takes on day-to-day exception handling and the human-intervention call

Operational staff
Confirm, amend, and report on the AI’s output

Without this division, it becomes unclear “who decides” when trouble strikes. And when you respond in haste while it remains unclear, the conversation tends towards dodging responsibility rather than preventing recurrence.

In AI agent operation, what matters is to design intervention points as roles, rather than relying on the attentiveness of any one person.

The author has a strong aversion to letting AI adoption end at “tool selection.” An AI becomes valuable not at the moment it is adopted, but only once it is used on the front line, encounters exceptions, and continues to be improved through them nonetheless. For that, leaving accountability unclear simply will not do.

Turn failure into an improvement loop with a post-mortem

Turn failure into an improvement loop with a post-mortem

In AI incident response, what matters most is what comes afterwards.

Pausing, handling the customer, and reverting the settings — most companies see that far. But to carry through to preventing recurrence, you need a set form for the retrospective.

What is needed here is a post-mortem: a retrospective that organises, for the problem that arose, the facts, the cause, the response, and the measures to prevent recurrence. The point is that it is done not to blame a particular member of staff, but to improve the mechanism.

In an AI agent post-mortem, you organise the following.

  • What happened
  • When and where it was detected
  • Which work, customers, or data it affected
  • On the basis of which input the AI agent carried out which processing
  • At what point the humans intervened
  • Whether the intervention was too early or too late
  • Whether the fallback functioned
  • Whether the rollback and recovery steps were sufficient
  • What to change from next time

Save this retrospective as training content or knowledge and it can also serve to bring new staff up to speed. In an environment that can combine AI chat, summarisation, e-learning, and per-project libraries, an incident record can be reused not as a mere set of minutes but as material for the next round of training and for operational improvement.

What matters is being able to turn it, not into a mere instance of failure, but into “teaching material for the next time the same thing happens.”

The author takes the view that good AI operation is not operation in which failure never occurs, but operation in which the speed of learning from failure keeps rising. The front line does not shrink back, the facts come out, and they feed into the next improvement. Only with that culture in place does an AI agent grow within an organisation.

In AI agent training, teach not just “how to use it” but “how to stop it”

In AI agent training, teach not just “how to use it” but “how to stop it”

A great deal of generative-AI training centres on how to write prompts, ideas for applying it to work, and ways to improve efficiency.

Those are important, of course. But once an AI agent is operating autonomously, “how to use it” alone is not enough.

The front line comes to need the following skills.

  • The judgement not to take an AI agent’s output at face value
  • The powers of observation to notice anomalous behaviour
  • The ability to understand the criteria for human intervention
  • The ability to read logs and isolate causes
  • The ability to record exception handling and feed it into improvement
  • The ability to separate work to delegate to the AI from work a human should decide

In short, you need to move on from training that uses AI to training that supervises AI.

For front-line managers and operations staff in particular, role-play that imagines a scenario in which an AI agent has failed is effective.

For example, prepare cases such as “an incorrect document was about to be sent to a customer,” “the AI answered by referring to an outdated regulation,” or “the target conditions for a sales list were extracted incorrectly,” and practise where to stop, whom to report to, and which logs to look at.

Without this drill, when an AI incident occurs in earnest, the front line inevitably ends up improvising.

In the author’s own experience supporting product development and business systems, the better the mechanism, the more carefully its “behaviour under exceptions” has been designed. Working under normal conditions is, in a sense, only to be expected. Where the difference shows is when the unexpected occurs.

Turn failure response into “operational know-how you can share”

Turn failure response into “operational know-how you can share”

Keep AI agent failure response shut up within one person’s experience and no repeatability arises. One member of staff may handle it well, but if another cannot handle it the same way, the organisation remains unstable.

So AI agent failure response needs to be turned into “operational know-how you can share.”

For instance, when an AI incident occurs, first tidy up the meeting notes and the chat exchanges. Next, give structure to the event, the scope of impact, the interim response, the permanent response, and the open questions. On that basis, save the settled response steps and preventive measures as knowledge, and use them as reference for the next time and beyond.

Important cases can also be turned into training content. Rather than merely sharing “here is a failure that occurred,” you put it into a form from which one can learn “at which point a human ought to have intervened in this case,” “where in the logs one ought to have looked,” and “which fallback would have been appropriate.”

There are various options for an operation of this sort — existing knowledge-management tools, an LMS, an internal wiki, ticket-management tools, and so on. Among them, Kanata lets you handle AI chat, summarisation, learning content, and per-project libraries on a single work-support platform, which suits organisations that want to carry through from recording an AI incident to turning it into training along the same path.

The maturity of an AI agent operation shows not in how many tools you use, but in how quickly you can learn from failure. Turning failure response into operational know-how you can share is the foundation of continuous improvement.

In summary: aim not for an AI that does not fail, but for an AI operation that can recover from failure

In summary: aim not for an AI that does not fail, but for an AI operation that can recover from failure

In the autonomous operation of AI agents, reducing failure entirely to zero is not realistic.

Business rules change. Reference data goes stale. The context of customer dealings can be intricate. Instructions from the human side can be ambiguous.

That is precisely why what you should aim for is not “an AI that never fails.” What you should aim for is an AI operation that, even when it fails, notices quickly, contains the impact, investigates the cause, corrects it, and feeds it into how you operate next.

To that end, you need to put the following five in place as common parts.

  1. Decide the conditions under which humans intervene
  2. Design the switch between a fallback AI and manual handling
  3. Get into a state where log analysis and reproduction testing are possible
  4. Set down the rollback and recovery steps in writing
  5. Reflect post-mortems into training, rules, and knowledge

The further AI agents work their way into the business, the more failure response ceases to be a matter for the technical department alone. It becomes a theme that ties together management decisions, information governance, customer touchpoints, and front-line training.

In that sense, designing for human intervention is not a brake on autonomous operation. It is, rather, the foundation for entrusting work to an AI agent with any peace of mind.

When the author supports an AI adoption, what they look at in the end is always whether it has taken a form that will keep being used on the front line. It worked nicely in the PoC. It looked clean in the demo. Yet if the response for when it fails has not been settled, it will not take root on the front line.

AI agents have the potential to transform a company’s operations considerably. But to turn that potential into reality, you must design not only the patterns for success but the way back when things fail.All of that, taken together, is what AI agent operating design is.

Q&A

When an AI agent fails, what is the first thing to do?

The first thing to do is to stop the impact from spreading further. That does not always mean stopping everything at once. You decide the scope of the stop according to the business impact — stopping only outbound sending, stopping only a particular workflow, switching to a staff check, and so on.

How should one decide the criteria for human intervention?

Base them on the scope of impact, whether outbound sending is involved, the bearing on money and contracts, the handling of personal or confidential information, and the effect on the customer experience. Small uncertainties are handled by fallback, while processing that touches customers or contracts is made subject to a staff check or an immediate stop.

What is a fallback AI?

A fallback AI is a stand-in process, with its permissions and scope of action restricted, used when the usual AI agent cannot safely carry on with the processing. For instance, it presents only candidate answers without sending anything outside, answers only within the bounds of a set FAQ, and routes anything it is unsure about to a staff check.

What should one look at in the root-cause analysis of an AI incident?

Confirm the input, the reference data, the prompts used, the decision branches, the output, the external integrations, the approval history, and the error and warning logs. On that basis, reproduce the same conditions and test whether the same business-level misjudgement occurs. Keeping log analysis and reproduction testing apart is important.

What is needed to turn an AI agent failure into prevention of recurrence?

Hold a post-mortem and organise the event, the scope of impact, the cause hypotheses, the interim response, the permanent response, and the measures to prevent recurrence. By reflecting that content into training, operating rules, prompt corrections, permission design, and knowledge management, you can turn it from mere failure response into an improvement loop.

Share this article