by Samy (Kondasamy Jayaraman)

Module 66 · Why did it fail?

Advanced

Where it went wrong, and why

An agent run ends badly at its last step. Lay the run out as a marble run, change one piece at a time, and the piece whose change flips the outcome is the cause.

Read as
!!

The whole idea in one example

Change the last step, or the cause

Swap piece 8, Send

wrong

Wrong blade

Sent it by express post. The blade is still the wrong one.

Swap piece 3, Search

right

Right blade

Searched “L40 mower blade”: only B-40.

A toy run: the steps are hand-written, the parts made up, and a weighted dice roll stands in for the model’s pick.

How it works

Four tests carry the module

  1. OK

    1 Replay with one change

    Swap one piece; only piece 3’s swap flips the blade

    Zhang et al. (ICML 2025) call a mistake decisive if fixing it turns the failed run into a success; when several are, the earliest is the cause.

    Source, checked 3 November 2026

  2. !!

    2 Take a piece out

    See which steps the outcome really needs

    Labelling those failures by hand took the paper’s three people about 84 hours between them, and each was unsure on 15–30% of cases (Zhang et al., ICML 2025).

    Source, checked 3 November 2026

  3. ???

    3 Break it on purpose

    A tool times out, and the run just stops

    Principles of Chaos Engineering: bring in real-world events, such as servers that crash, then look for a difference from the system’s normal behaviour.

    Source, checked 3 November 2026

  4. OK

    4 Many runs

    One lucky replay, or 20 that agree

    Yao et al. (τ-bench, 2024): gpt-4o succeeded on under half the tasks, and on retail tasks got all 8 tries of the same task right under 25% of the time.

    Source, checked 3 November 2026

The story

Larkspur sends the wrong blade

Larkspur Supply Co.’s assistant sent a customer the wrong replacement blade. Inés lays its run out as a wooden marble run, one piece per step, and replays it to find the cause. You help Inés find the cause.

14.2%
of failing steps found by the best automatic method in Who&When
3 of 8
the piece that caused the wrong blade, found by replays
4 = 4
right landings in 20 replays, with a lucky change and with none
12
replays to find the causes of 4 failed runs on the workbench

Your path

The chapters

  1. Chapter 1

    The failed run

    How does one step’s output travel to the end of a run?

  2. Chapter 2

    Blame the last step

    Does changing the step where it went wrong fix the run?

  3. Chapter 3

    Replay with one change

    Which step, swapped on its own, flips the run to the right blade?

  4. Chapter 4

    Take a piece out

    What happens when you take one step out of the run?

  5. Chapter 5

    Break it on purpose

    What does the run do when a tool it calls stops answering?

  6. Chapter 6

    Many runs

    How many replays does it take to trust a cause?

  7. Chapter 7

    Workbench: 4 failed runs

    Can you find each run’s cause within the replay budget?

Who it’s for

  • Engineers
  • Product managers
  • Analysts
  • No code needed

Anyone who has to explain why an agent did the wrong thing, and fix the right step. The Evals and Observability modules first help; no maths is needed.