Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Chawla and Koul replay a recorded bad LLM decision to test the tool that must stop it

Tisha Chawla and Susheem Koul argue that a production agent failure cannot be debugged by rerunning the prompt. They record each step's inputs and outputs, then replay the model's original bad output against the repaired tool as a regression test.

Tisha Chawla, Susheem KoulAIE World's Fair 20262 min read
Watch from 1:38

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

Rerunning a failed prompt locally usually produces a correct answer, which tells the on-call engineer nothing about the run that went wrong. The speakers aim for replayability instead of determinism: record what entered and left each node of the agent (LLM calls, tools, retrieval) with the model and code versions, so the failed run can be rebuilt from the record.

Because the model's bad output is replayed rather than regenerated, the regression test does not depend on the model making the same mistake again. Tests of this kind cover guardrails and tool logic; tone and trajectory quality stay with behavioural evals such as an LLM judge.

What they found

From the talk. Figures are self-reported unless stated.
  • Record at the boundary of each node (what goes in and what comes out), not at the network layer, because local retrieval, in-process tools and memory never touch the network.

    The speakers' recommendation. They add that stubbing the model with recorded outputs gives a CI run that reproduces the failure offline with no model calls.

    Technical recommendation

    5:57
  • In the demo trace, the planner LLM turned a request to sell about $1,000 of Acme stock into a place_order call for 1,000 units, and the tool sold them at $190 each.

    A constructed demonstration with three annotated nodes (planner LLM, order tool, finalising LLM), not a reported production incident. The 200 OK in 30 ms with no alerts (1:38) belongs to the same illustrative scenario.

    Case study

    8:17
  • In the replay test, the planner node is stubbed with its recorded output while the repaired tool and the downstream LLM run live; the tool returns blocked.

    Demo of the speakers' proof-of-concept library, Chronicle. The exact guardrail rule is not described.

    Case study

    11:12

Why it matters

Our reading. Not said in the talk.

Most replay described in other talks reruns the model: Rémi Louf rebuilds exact requests to compare models, Andon Labs forks deployments to rerun an incident. Chawla and Koul freeze the model's output instead, which turns one bad run into a deterministic test and moves the fix into code the team controls.

What one could try

  • Wrap each LLM call, tool and retrieval step so it logs its input, output, model version and build ID.
  • When an agent fails in production, turn its trace into a test that stubs the upstream model output and asserts that the repaired tool rejects it.
  • Keep these deterministic tool and guardrail tests separate from LLM-judged evals of tone and trajectory.

Limitations

  • Shown on a constructed stock-trading demo with the speakers' proof-of-concept library; no production results are reported.
  • A live node in a replay runs its real side effects, so a destructive tool still needs a sandbox or gating during tests (our note, not covered in the talk).

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas