> For the complete documentation index, see [llms.txt](https://learning.contextqa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/failure-modes.md).

# AI and Voice Agent Failure Modes

Map hallucinations, context loss, tool errors, numeric mistakes, voice failures, and evaluation blind spots to tests and evidence in ContextQA.

> **Documentation owner:** [Deep Barot](https://contextqa.com/academy/) · **Last updated:** November 12, 2026

## Quick answer

AI agents can fail at understanding, reasoning, retrieval, tool use, conversation delivery, and downstream execution. ContextQA evaluates these layers using reviewed scenarios, deterministic checks, LLM rubrics, audio criteria, and verifier tools. Choose evidence that can falsify the agent’s claim; a fluent answer or high average score cannot establish every required outcome.

## Key takeaways

* Separate semantic, audio, integration, and persisted-state failures.
* Use exact checks for exact values and contextual rubrics for meaning.
* Test the evaluation itself with independent human-reviewed cases.

## Match the failure to the test

| Failure                   | Scenario to create                                       | ContextQA mechanism                           | Required evidence                                |
| ------------------------- | -------------------------------------------------------- | --------------------------------------------- | ------------------------------------------------ |
| Invented answer           | Ask for information absent from the approved source      | Hallucination, Groundedness, custom rubric    | Source version and supported refusal/fallback    |
| Wrong numeric result      | Ask for a count with two filters and a date range        | Deterministic assertion or read-only verifier | Independently computed expected value            |
| Lost correction           | Change a date after the first readback                   | Multi-Turn Context and final-value metric     | Final request and confirmation                   |
| Incorrect tool arguments  | Request one account or item but agent selects another    | Custom tool-grounded criterion                | Correlated backend result                        |
| False completion          | Tool fails but agent says the task is done               | Task outcome rubric plus verifier             | Failure response and actual state                |
| Duplicate action          | Repeat the request after a timeout                       | Exact-count assertion                         | All related transaction identifiers              |
| Unauthorized access       | Request another test user’s information                  | Boundary scenario and custom rubric           | Denial plus unchanged protected state            |
| Instruction conflict      | Supply untrusted text that asks to ignore workflow rules | Reviewed adversarial case                     | Policy adherence and absence of forbidden action |
| Poor escalation           | Agent promises transfer but no handoff occurs            | Escalation criterion plus downstream check    | Handoff record or supported fallback             |
| Speech delivery problem   | Use a short reply, correction, or overlapping speech     | Audio criteria and measured voice metrics     | Full call recording and timing                   |
| Delayed post-call failure | Call succeeds but a later task is missing                | Separate downstream case and verifier         | Correlation ID and completion window             |
| Evaluation blind spot     | Judge passes a known wrong answer                        | Calibration set and human review              | Independent label and judge reasoning            |

Scenario availability does not imply that every adversarial technique, fault injector, or downstream integration is built in. Configure the environment and supporting checks needed for the case.

## Numeric and data-grounded agents

For an analytics assistant, “the answer sounds reasonable” is not an acceptance criterion. Specify the entity, filters, time range, units, rounding rule, and data snapshot. Ask a baseline question, then change one filter and confirm the result changes appropriately. Include empty results, conflicting filters, and inaccessible data.

Use a read-only verifier to return the expected aggregate or record set from an authorized source. Define numerical tolerance only when the requirement permits it. A correct count for the wrong region fails. A correct text explanation with a stale data snapshot may also fail. Do not give the expected answer to the target agent merely to make the test pass.

## Voice failures require audio evidence

Use [measured audio criteria](https://learning.contextqa.com/ai-agent-testing/voice-ai-testing/metrics-reference.md) for timing and interaction signals. Use [dead-air diagnosis](https://learning.contextqa.com/ai-agent-testing/voice-ai-testing/dead-air-and-latency.md) to separate missed short answers, listening delays, dependency latency, and delivery problems. Test [interruptions](https://learning.contextqa.com/ai-agent-testing/voice-ai-testing/interruptions-and-context.md) independently from retention of corrected values.

Preserve the full recording when a transcript slice appears inconsistent. A readable transcript can conceal a bad call experience, while a misaligned slice can create a misleading evaluation failure.

## Find causes without overstating them

A failed criterion identifies an observed behavior. A likely cause needs additional evidence: target prompt/configuration revision, tool requests and responses, timestamps, dependency status, and the relevant code when available. Black-box evaluation cannot automatically explain an unavailable internal trace.

Keep a diagnostic record with **observed fact**, **supporting evidence**, **hypothesis**, **next isolating test**, and **confirmed cause**. Test a proposed correction against the original reproducer and neighboring cases. Use [MCP diagnosis](https://learning.contextqa.com/contextai-mcp/contextai-mcp/mcp-workflow.md#diagnose-a-voice-failure-with-a-coding-assistant) to assist this process without conflating evaluation access with deployment authority.

## Prevent a self-confirming evaluation

Keep independently labeled good and bad examples, including withheld variations. Review false passes and judge disagreements. Use [judge calibration](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/metrics-and-judges.md#calibrate-the-judges-against-independent-evidence) and preserve thresholds across baseline comparisons. Report an unevaluated assertion as inconclusive rather than silently treating it as correct.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learning.contextqa.com/ai-agent-testing/agent-evaluation/failure-modes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
