Turning an agent failure into an engineering diagnosis

← Back to Blog & Articles

A final success rate says that something went wrong, not what.

Agent failures can usually be attributed to one component of the loop:

  • planning: choosing a wrong overall approach;
  • tool choice: calling the wrong tool;
  • arguments: calling the right tool with wrong or malformed inputs;
  • reading output: misinterpreting what a tool returned;
  • stopping: quitting early, or never quitting.

To estimate how failures divide among these, take a sample of failed episodes, have a reader assign each to a primary category, and report the shares with intervals. Simulated example: suppose the true shares among failures are 15%, 35%, 30%, 12% and 8%, and a reviewer labels 150 failed episodes. A draw of 150 gives counts 19, 55, 46, 21 and 9, which are estimated shares of 12.7%, 36.7%, 30.7%, 14.0% and 6.0%, with 95% Wilson intervals of 8.3–18.9%, 29.4–44.6%, 23.8–38.5%, 9.3–20.5% and 3.2–11.0%. Tool choice and arguments together account for about two-thirds of failures, and the intervals show that the ranking of the top two is not firmly established while the gap between them and stopping is.

Three cautions apply. The categories overlap, and a reviewer must choose a primary cause by a stated rule. The labelling itself is a measurement with error, so two reviewers should label a subset and report agreement (the companion book treats this). And the shares describe failures of the system as evaluated: if you fix tool choice, the shares of the remainder will change and new failure modes may appear. Attribution tells you where to look first, not how much a fix will gain; for the latter you need the compounding arithmetic of Sections 3.3 to 3.8 applied to per-component reliabilities.

Continue with the book

Explore the full treatment, worked examples, and exercises in Next-Generation AI, Explained and Evaluated.


Companion article for Next-Generation AI, Explained and Evaluated, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top