# 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.

---

## 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](https://arxiv.org/abs/2606.09863). 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](https://tryabracadabra.com/blog/user-intent-detection-ai-agents/), and recording what the run itself did is [AI agent observability](https://tryabracadabra.com/blog/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.

| Object | What it answers | On this task |
| --- | --- | --- |
| Failure | Did the task finish? | 6 of 9 contacts were skipped |
| Silent failure | Did the log admit the miss? | Success status, and the agent said done |
| Signal | Which turn shows it? | Turn 9 asks where the rest are |
| Step stop | Where 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.

```text
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](https://www.anthropic.com/research/demystifying-evals-for-ai-agents). [AI agent analytics](https://tryabracadabra.com/blog/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](/blog/mcp-events/).

| Failure | Signal | How to detect |
| --- | --- | --- |
| Loop | The same call repeats | Same tool, same arguments, no new records written |
| Wrong tool | The step and the call disagree | update them is open, and the call is not the write |
| Failed tool call | An error status | Timeout, empty body, or a non-success status |
| Ungrounded answer | The sentence exceeds the result | The line says the job is done, and 6 were skipped |
| Refusal | An in-scope step is declined | The person asked for this task, and the agent will not run it |
| Rephrasing | The same ask comes back | Turn 9 asks where the rest are |
| Abandonment | No later person turn | The attempt ends on the agent’s last line |
| Escalation | A request for a person | The 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](https://tryabracadabra.com/blog/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](/blog/shadow-testing-ai-agents/) 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](https://tryabracadabra.com/features/) uses “people whose contact updates were skipped” for this task, and each result should open on the turn. The [product workspace](https://tryabracadabra.com/product/) 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.

| Metric | What it counts | On this task |
| --- | --- | --- |
| Attempts | Tasks started | 2,400 |
| Finish rate | Attempts that finish | 1,536, which is 64% |
| Step stop rate | Stops among attempts that reached the step | 528 of 2,308 on update them, 22.9% |
| Silent stop | Success status, and the step still stopped | 3 written, 6 skipped, status success |
| Rephrase | A person turn that repeats the ask | Turn 9 on the illustrative attempt |
| Escalation | A turn that asks for a person | Not in this transcript |
| Cost of a stop | Spend on attempts that never finish | Read unit rates on the [AI model pricing](https://tryabracadabra.com/ai-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](https://tryabracadabra.com/ai-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](/blog/symptom-to-harness-component/) to decide which part to fix. Most fixes are a [harness change](/blog/harness-engineering/); 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](https://tryabracadabra.com/blog/what-is-an-eval/) only [after a person has checked the turns](https://hamel.dev/blog/posts/field-guide/). 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.

## Related guides

- [User intent detection for AI agents: see the real ask](https://tryabracadabra.com/blog/user-intent-detection-ai-agents/)
- [Conversation analytics for AI agents: the task and intent model](https://tryabracadabra.com/blog/conversation-analytics-for-ai-agents/)
- [AI agent analytics: see what users ask and what works](https://tryabracadabra.com/blog/ai-agent-analytics/)
- [How to measure AI agent performance in production: 6 steps](https://tryabracadabra.com/blog/how-to-measure-ai-agent-performance/)
- [AI agent observability: how to monitor agents in production](https://tryabracadabra.com/blog/ai-agent-observability/)
- [What is an eval? AI evals explained for product managers](https://tryabracadabra.com/blog/what-is-an-eval/)
