all posts

How to detect AI agent failures, including silent ones

AI agent failure detection finds conversations where the job did not finish, including runs the log calls a success. This guide covers the failure types, the signals to count, and how to triage them.

Abracadabra Team Guide 9 min read Updated
“Update these contacts from the trade-show list.”
Silent caseDone, with 6 of 9 skipped
Where it showsTurn 9 asks for the rest
Step that stopsupdate them, 528 of 2,308

A green call can still be a stop.

AI agent failure detection, defined

AI agent failure detection is the practice of finding conversations where the person did not get the job done, even though the run logged no error. It reads loops, tool results, answers that do not match those results, refusals, rephrasing, abandonment and escalation requests. Then it groups them so a team can triage the ones that repeat.

A failure is an attempt that does not finish the task the person asked for. A silent failure is that miss with no error beside it. The tool can return success. The closing line can say the job is done. The person still does not have the outcome they named.

Failure detection sits between two neighbouring practices. Naming the step a person is on is user intent detection, and recording what the run itself did is AI agent observability. Detection asks only whether the person got what they asked for.

The example throughout is the AI assistant inside a CRM, used by people on a sales team. Someone asks it to “update these contacts from the trade-show list”, and the agent works through 3 steps: find the contacts, update them, and log the activity.

ObjectWhat it answersOn this task
FailureDid the task finish?6 of 9 contacts were skipped
Silent failureDid the log admit the miss?Success status, and the agent said done
SignalWhich turn shows it?Turn 9 asks where the rest are
Step stopWhere did the attempt end?update them, 528 of 2,308

Why do silent agent failures go unnoticed?

A silent failure hides because the parts a trace usually counts all look fine. The call ran. The status was success. The agent produced a sentence. Nothing threw. The person still does not have the list they asked for.

On this task the tool is update_contacts. It takes all 9 contacts in 1 call, updates 3, skips the 6 whose emails do not match, and returns success. The next line is “Done. 3 contacts updated and logged.” A reader who stops at that line marks the task finished. A reader who compares 9 asked with 3 written marks update them as stopped.

The person says so at turn 9: “Where are the rest? Can you try that again?” That turn is dissatisfaction on the same task. It is not a new job. The write had already failed. Turn 8 reported a partial write as a finished job.

Across every attempt at this task, 2,308 reach update them. 528 stop there, a 22.9% stop rate. 1,780 go on to log the activity. The task finishes for 1,536 of 2,400 attempts, which is 64%. The 64% does not say that the middle step is where those attempts go.

Not every stop is silent. Turn 9 is the person noticing. An attempt that ends on “Done”, with no later person turn, is quieter: the log says success and nobody argues. The published figures do not split the 528. Detect both signals, and do not invent the split.

The check on this write

asked = 9
written = 3
silent_stop = (status == "success") and (written < asked)

Which failures should you detect?

Detect the failure from the person’s job, the tool result, and the next turn. Do not detect it from the closing word. “Done” is a claim. The claim has to survive the result. AI agent analytics covers the wider reading of what people ask and what works. Failures are easiest to miss when an agent starts work on its own, as with tasks started by MCP Events.

FailureSignalHow to detect
LoopThe same call repeatsSame tool, same arguments, no new records written
Wrong toolThe step and the call disagreeupdate them is open, and the call is not the write
Failed tool callAn error statusTimeout, empty body, or a non-success status
Ungrounded answerThe sentence exceeds the resultThe line says the job is done, and 6 were skipped
RefusalAn in-scope step is declinedThe person asked for this task, and the agent will not run it
RephrasingThe same ask comes backTurn 9 asks where the rest are
AbandonmentNo later person turnThe attempt ends on the agent’s last line
EscalationA request for a personThe open step is still unfinished
  • Loop. A second update_contacts on the same 9 contacts, after the same 6 skips, is a loop. A later attempt about a different list is a new task. The stop conditions and the repeat guard for that loop are in agent loop design.
  • Wrong tool call. Turn 5 is the go-ahead to update. Another search after that does not move the step. find_contacts belongs to the earlier step.
  • Failed tool call. An error, a timeout, or an empty body is a loud failure. Keep it out of the silent count. This task’s skip is the quiet one: success, with 6 contacts unwritten.
  • Hallucinated answer. “3 contacts updated” matches the write. “Done”, meaning the list is finished, does not. A name the tool never returned fails the same test.
  • Refusal. Declining update them is a failure of this task. Declining a different job, such as deleting a contact, stays out of this step’s stop rate.
  • Frustration and rephrasing. Turn 9 repeats the ask and marks dissatisfaction. Do not open a second task called “try again”, or one failure is counted twice.
  • Abandonment. The attempt stops and the person sends nothing further. Turn 9 is the opposite: the person stayed. Both can sit on update them, and they mean different things.
  • Escalation. A request for a human, a manager, or support belongs on the open step. It is not a new task, and it does not show that earlier steps finished.

How do you detect failures at scale?

You will not read 2,400 transcripts one by one and call that a method. The method is the same check on every attempt, then a count. The transcript is what you open after the count points somewhere. Before a fix goes out, a shadow test shows whether it would write all 9. An A/B test shows whether more tasks finish.

  1. Name the task from the opening line, and the steps a person would notice failing on their own.
  2. For the step that writes, store what was asked, what was written, and the status.
  3. Compare that result with the sentence the agent said about it.
  4. Mark a signal on the turn that shows it: a repeat call, a rephrase, a refusal, a request for a person, or no further turn.
  5. Count stops by step. The denominator is the attempts that reached the step.

Use the denominator of the step, not of the fleet. The 528 stops are 22.9% of the 2,308 attempts that reached update them. Attempts that died on find the contacts are not write failures. Then split the task by cohort before you call the step one bug. Self-serve finishes 71%, enterprise 66%, returning users 61%, EMEA 58%, and enterprise EMEA 52%. That is 19 points from best to worst, and 986 users sit in the worst cohort.

Once the labels exist, a search can pull the set. The features page uses “people whose contact updates were skipped” for this task, and each result should open on the turn. The product workspace keeps the task, the signal and the cohort in scope while you move from the count to the replay.

Which signals should you track?

Track a small set. Tie each one to a turn or a tool result. A metric you cannot open back into a conversation is not ready to act on.

MetricWhat it countsOn this task
AttemptsTasks started2,400
Finish rateAttempts that finish1,536, which is 64%
Step stop rateStops among attempts that reached the step528 of 2,308 on update them, 22.9%
Silent stopSuccess status, and the step still stopped3 written, 6 skipped, status success
RephraseA person turn that repeats the askTurn 9 on the illustrative attempt
EscalationA turn that asks for a personNot in this transcript
Cost of a stopSpend on attempts that never finishRead unit rates on the AI model pricing pages

Two traps sit in that table. Reporting only the 64% finish rate hides the step. Treating “Not in this transcript” as a fleet result hides escalation: this chat has no such turn, and that is not a count. Add the signal, then count it.

A loop also spends tokens on work that does not finish. Read unit prices on the AI model pricing pages, and judge them as the cost of a finished task, not of one call.

abracadabra reads each conversation, labels its task, and shows the step where it stopped.

How do you triage what you find?

Triage is the order you work the queue. Start where a high stop count and a high stop rate meet. Here that is update them: 528 stops at 22.9%, against 92 stops on find the contacts. One sharp sentence in a single chat is a clue. It is not the ranking. Use the symptom-to-part map to decide which part to fix. Most fixes are a harness change; test it before everyone gets it.

  1. Rank steps by stops, then by stop rate. Work the top of that list.
  2. Open the turn the count came from. Read the tool result beside the agent’s sentence.
  3. Split silent stops from loud tool errors before you pick a fix. A timeout and a success-with-skips need different changes.
  4. Split the step by cohort. Enterprise EMEA at 52% is not the same picture as self-serve at 71%.
  5. Name one change, then measure it. A pile of edits does not tell you which edit moved the rate.

The change that fits this transcript is small: update_contacts returns the skipped contacts with a reason, instead of a bare success. Whether that moves the 22.9% has to be measured afterwards. Halving those stops would finish 264 more attempts, and 64% would become 75%. That is the arithmetic of the step, not a promise about this change.

Save confirmed patterns as evals only after a person has checked the turns. The case is the same 9 contacts, the same 6 skips, and a rule that “Done” is wrong unless 9 were written. The detector finds the case. The eval keeps it from coming back unseen.

When is failure detection the wrong tool?

Failure detection is the wrong tool when the question is not whether the job finished. A clean label can still answer a question you did not mean to ask. Name that limit before you trust the queue.

  • A red status you already log. Detection adds the misses an error log never shows. It does not replace that log.
  • Deciding whether a change helped. Two versions on live traffic answer that. Labels from before the change do not.
  • A taxonomy built from tool names. update_contacts can succeed while update them stops. The person’s step is the label.
  • One transcript as the rate. The 9-turn chat explains the mechanism. The 528 is the size.
  • Every rephrase treated as a bug. Turn 2 is a clarifying question, and the person answers. It serves find the contacts. It is not a failed step.
  • Latency, or a copied token price. A slow write that really updates all 9 contacts is not this failure.

Detection cannot see a miss that is in neither the words nor the tool result. Keep the result the model saw. Without it, the closing line has nothing to be checked against.

Common questions about agent failure detection

What is AI agent failure detection?

It is the work of finding agent conversations that ended without the outcome the person asked for, including runs whose logs show no error. Each miss is labelled by type, such as a loop, a refusal or a rephrase, and the types that repeat go to triage. On the CRM assistant, the silent case is a success status after 6 of 9 contacts were skipped.

What is a silent failure in an AI agent?

A silent failure is a task that did not finish, with no error in the log. Here update_contacts writes 3 contacts, skips 6, returns success, and the agent says the job is done. The person then asks where the rest are, at turn 9.

How do you detect a loop in an agent conversation?

A loop is the same tool called again with the same arguments, when the result does not change. Calling update_contacts again for the identical 9 contacts, with the 6 skips unchanged, counts. A request about a new list starts a new task instead.

How do you tell a hallucinated answer from a partial tool result?

Compare the sentence with the tool result. “3 contacts updated” matches a write of 3. “Done”, as a claim that all 9 were handled, does not. A partial result described as partial is not a hallucinated answer.

How do you triage AI agent failures?

Rank steps by how many attempts stop, then by the stop rate. The step update them stops 528 of 2,308 attempts, 22.9%, ahead of 92 stops on find the contacts. Open the turn, separate a success-with-skips from a loud tool error, and split by cohort before you pick one change.

all posts

Find the tasks that fail without an error.

Abracadabra marks the step where each task stops, even when every tool call returns a success.