Tisha describes an agent making a wrong tool call that succeeds in production but works correctly when engineers rerun the prompt. Her example is a stock order: the agent treats a $1,000 amount as 1,000 shares, creating a $190,000 trade at $190 per share, while the API returns a clean 200 OK.
Your Agent Failed in Prod. Good Luck Reproducing It.
Speakers
Tisha Chawla and Susheem Koul of Microsoft explain how to capture and replay production AI agent runs, using their stock-selling example and Chronicle, at AI Engineer.
Tisha explains that setting temperature to zero does not guarantee a repeatable run or fix faulty reasoning. She points to differences in floating-point operations, request batching, and mixture-of-experts routing as sources of output variation. She argues that teams should aim to replay recorded runs for debugging rather than force identical model outputs.
Tisha distinguishes bitwise determinism from replayability: replayability means recording enough of a run to inspect and retest it. She recommends capturing inputs and outputs at each workflow node, including local retrieval and in-process tools, along with context such as model and code versions. Replay can then rerun a failure without making model calls.
Susheem introduces Chronicle, a proof of concept that records method inputs and outputs through boundary annotations on tools, LLM calls, and retrieval steps. In the stock-selling example, the trace shows the LLM generating an order for 1,000 shares and the tool executing it. The recorded trace can be replayed with the LLM node stubbed and the tool run live to check whether a guardrail blocks the order.
Tisha says recorded traces can support deterministic tests of guardrails and tools, while behavioral questions such as tone or trajectory are better suited to methods like LLM-as-a-judge. Her recommendations include logging session variables, capturing the full run context, and reusing traces to debug and test fixes while allowing generation-time variation.
Takeaways
- Capture inputs, outputs, and relevant version details at each agent workflow node so production failures can be inspected.
- Use recorded traces to replay failures and test changed tools or guardrails without calling the model again.
- Test deterministic components such as tools and guardrails with replay; assess subjective behavior separately.
- Treat temperature zero as insufficient for reproducibility in hosted model systems.
- Log the full run context, including model version, build ID, and retrieval chunks.
Mentioned in this talk
Search inside this talk
What was claimed 6
- works atSusheem Koul works at
Microsoft“Tisha Chawla & Susheem Koul, Microsoft”
YouTube Verified2 sources· Talk, Web· archived
- previously atTisha Chawla previously at
Microsoft“Tisha Chawla & Susheem Koul, Microsoft”
YouTube Verified2 sources· Talk, Web· archived
- featureBoundary: Annotates workflow methods as boundaries so their inputs and outputs can be recorded.
“it can be annotated with the boundary annotation”
YouTube Unverified1 source· Talk
- featureChronicle: Records workflow node inputs and outputs, run metadata, and traces for replay and testing.
“anything that goes into the method and comes out of the method gets recorded”
YouTube Unverified1 source· Talk
- featureBoundary: Replay mode stubs selected workflow nodes using a previously recorded trace.
“enabled replay mode on Boundary, which allows Boundary to stub every node you want”
YouTube Unverified1 source· Talk
- featureChronicle: Recorded agent sessions can be reused as test cases without calling the model.
“uses those recordings as test cases”
YouTube Unverified1 source· Talk










