6.2.9 · D2AI Agents & Tool Use

Visual walkthrough — Autonomous agent evaluation

1,762 words8 min readBack to topic

We will earn every symbol before we use it. By the end you will see the number instead of just reading it.


Step 1 — What is a "step" and what is "success"?

WHAT. Imagine the agent's job as a row of doorways. To finish the task it must walk through every doorway in order. Each doorway is one step — one action, like "click the search button" or "read the price".

WHY. Before any math, we need a picture of what we are counting. The parent note listed a flight-booking agent with 6 steps; here we draw the chain itself so "step" is a thing you can point at, not a word.

PICTURE. Below, each box is one step. A green tick means the agent got through that doorway; a red cross means it got stuck. If any doorway is a cross, the agent never reaches the goal at the far end.

Figure — Autonomous agent evaluation

Step 2 — Give each doorway a number: probability

WHAT. We attach a number to each doorway: the chance the agent clears that one doorway. We write it .

WHY. We want to reason about reliability, not just eyeball it. A number lets us combine steps with arithmetic. We choose probability — a number between and — because "chance of clearing a doorway" is exactly what probability was invented to measure.

PICTURE. Same chain as before, but now each doorway wears a label: = "chance of clearing doorway ". The bar under each doorway shows how full that chance is (a nearly-full bar = very reliable).

Figure — Autonomous agent evaluation

A smart check: if the doorway is always open; if it is a wall.


Step 3 — Why we multiply the numbers (the AND rule)

WHAT. To succeed overall the agent must clear step 1 AND step 2 AND ... AND step . When independent chances must all happen, we multiply them.

WHY multiply and not add? Adding is for "either this or that" (more ways to win → bigger number). But here every extra doorway is one more wall that could stop you, so the chance can only shrink. Multiplying two numbers that are each below gives something smaller — which is exactly the shrinking we expect.

PICTURE. Start with a full square = probability (certain). Each doorway keeps only a fraction of what is left. Two doorways at : first keep of the square, then keep of that strip. The surviving area is the overall success chance.

Figure — Autonomous agent evaluation

Step 4 — All steps equally reliable: the power

WHAT. Suppose every doorway is equally good, for all . Then multiplying by itself times is raising it to the power .

WHY. This is the clean, worst-truth-in-one-glance case. It turns a long product into a single expression we can plot and feel.

PICTURE. A curve of as grows, drawn for a few values of . Notice how the curve, which starts near the top, sags dramatically as steps pile up — while holds up far longer.

Figure — Autonomous agent evaluation

Step 5 — Put the parent's numbers in:

WHAT. Plug and into .

WHY. This is the headline number from the parent note. We want to derive it, not quote it.

PICTURE. Ten bars, each shrinking the running product by a factor . Watch the running total slide from down past and settle near — a "leaky bucket" losing at every pour.

Figure — Autonomous agent evaluation

Step 6 — Edge and degenerate cases (never leave a gap)

WHAT + WHY + PICTURE. We now sweep every corner so no reader hits an unshown scenario.

Figure — Autonomous agent evaluation
  • (single step): . One doorway, no chaining — the classic "static input → output" ML case. The compounding penalty vanishes.
  • (perfect steps): for any . A flawless agent never decays, no matter how long the task. The whole problem only exists because .
  • (a wall somewhere): . One impossible step zeroes the entire product — this is the "single failed step blocks everything" fact made numeric.
  • (long-horizon task): since , . Any imperfect agent, given a long enough task, eventually fails almost surely. Long-horizon agents need either near-perfect steps or error recovery (which breaks the independence assumption in the agent's favour — see Reinforcement Learning Basics).
  • Uneven steps: if one is tiny (a bottleneck doorway), the product is dragged down almost entirely by it, whatever the others are. Fixing the weakest step buys the most success.

The one-picture summary

Figure — Autonomous agent evaluation

One figure, the whole story: a chain of doorways (Step 1) each labelled (Step 2), multiplied together via the AND rule (Step 3) into (Step 4), evaluated at (Step 5), with the edge curves for , and long (Step 6) framing it.

Recall Feynman retelling — say it back in plain words

Picture a hallway of doors. To finish, the agent must walk through every door. Each door opens for it about times out of . That feels safe — but reliability doesn't add, it multiplies, because you need door 1 open and door 2 open and so on. Multiply ten 's and you get about : the agent finishes the whole hallway only a third of the time, even though it almost never trips on a single door. So a per-action score is a liar — measure the whole hallway, end to end. And if you ever want a long hallway to actually get finished, you can't just be "good" per door; you have to be almost perfect per door, or build agents that can back up and retry a door they missed.

Recall Quick self-checks

What operation combines independent per-step chances, and why? ::: Multiplication, because success needs step 1 AND step 2 AND ... — all must happen. Compute to two decimals. ::: About . If , what is for any ? ::: — a perfect agent never decays. To hit task success over steps, what per-step do you need? ::: . Why does per-action accuracy overstate an agent's real ability? ::: Because task success is the product over steps, which shrinks fast; accuracy hides the compounding.


Related: Benchmark Design · Human Evaluation Protocols · Tool Use in Language Models · Multi-Agent Systems · A/B Testing · Safety Alignment · LM Prompting Strategies