AI agent failures can look similar from the outside: the answer is wrong, the task is incomplete, or the run times out. The repair path depends on where the failure began. A useful first pass is to classify it as a prompt or model problem, a tool problem, a retrieval problem, or an orchestration problem.
1. Prompt and model failures
Symptoms include unsupported conclusions, ignored constraints, malformed structured output, or a decision that is inconsistent with the available evidence. Inspect the model input, output, model version, prompt version, and the context that was actually supplied—not the context you expected to supply.
Useful test
Replay the same step with a fixed input and compare the output after changing one prompt or model variable.
2. Tool failures
The agent may select the wrong tool, send invalid arguments, mishandle an error, or treat an empty result as success. Inspect the tool span and the model decision immediately before and after it.
Screenshot needed: a TraceProbe timeline showing a model step, tool call, returned result, and the next decision.
3. Retrieval failures
Retrieval can return irrelevant, stale, duplicated, or empty context. The model may then produce a plausible answer from incomplete evidence. Check the query, retrieved documents, scores or filters, result count, and the exact context passed to the model.
Useful test
Run the same request with the retrieved context displayed and verify whether the expected source appears before changing the generation prompt.
4. Orchestration failures
State may be overwritten, steps may execute in the wrong order, retries may amplify an error, or a timeout may terminate a healthy downstream operation. These failures often appear only in the timeline because the final model response looks normal.
Screenshot needed: a TraceProbe summary or timeline showing retries, timing, or an unexpected branch.
Build a failure hypothesis
- State the visible symptom.
- Find the first step where the run differs from a successful baseline.
- Classify that step as prompt/model, tool, retrieval, or orchestration.
- Change one variable and compare the next run.