There is a frustrating kind of agent failure where, according to the trace, nothing went wrong. The model responded, the tools ran and the handoffs went through but the agent still failed to do what the user asked.
That was the problem I wanted to put to Prasanna Vijayanathan in our latest live podcast. Prasanna is an engineer at Netflix, where he works across performance, observability and quality of experience, and the author of Fairness in Generative AI.
I expected us to talk about what teams should record. Instead, much of the conversation came down to what those records can prove. A trace may reconstruct the run perfectly and still leave you guessing about why the outcome was wrong.
The trace is clean, but the proof is missing
When a trace looks clean, it is easy to pick the first strange step and blame it.
Prasanna says to step away from the trace first. Ask what the user wanted, how the agent understood the request and what should have changed if it had succeeded.
Only then should you inspect the run.
“A trace gives you evidence of what happened, but it doesn’t give you evidence of why it happened.”
A tool call appearing just before a failure does not mean it caused the failure. Even an agent’s explanation of what went wrong may only be a plausible story.
You need to test it.
If you think a retrieved document caused the bad decision, replace it and rerun the workflow. If the outcome changes repeatedly, you have stronger evidence. Prasanna calls this counterfactual testing.
The goal is: do not accept an explanation because it sounds right. Change the suspected cause and see whether the result changes with it.
For anyone thinking about agent access: Infisical is running a live demo on 18 November at 1 PM ET on giving agents scoped access to APIs and MCP tools without exposing credentials—and keeping every action traceable.
One agent’s guess becomes the next agent’s “fact”
Multi-agent systems make this harder.
One agent may inspect recent deployments and suggest that a particular release caused an incident. A second agent receives that conclusion and treats it as fact. A third uses it to recommend a fix.
By the end, the system may sound certain about an assumption nobody verified.
Who failed? The first agent made a weak claim. The next agent failed to question it. The final answer was shaped by both.
Prasanna argues that teams may need to stop searching for one tidy root cause. In many cases, several agents and decisions contributed to the failure.
To untangle them, a trace needs to capture more than calls and responses. It should show:
What the user originally wanted
How each agent interpreted its part of the task
Which model, instructions, documents and tool results shaped each decision
What happened after the agent acted
That final point matters most. An agent saying “task completed” is not proof that the task was completed.
If the agent reports the outcome and also grades its own success, nobody has checked whether anything changed in the real world.
A 95% success rate can still hide a 100% failure
Imagine an agent answering 95 out of 100 requests correctly.
Now imagine that the five failures were every request written in Spanish.
The dashboard still says 95%. For Spanish-speaking users, the failure rate is 100%.
Prasanna’s question is blunt:
“Ninety-five percent for whom?”
An overall score can hide patterns across languages, regions, devices, user groups, and types of requests. Teams need to break the numbers down far enough to see who is receiving a worse result.
This is where observability becomes a fairness problem. A system can look healthy overall while consistently failing the same people.
It also means success cannot be defined by engineers alone. The people building the agent, the teams deploying it, and the people affected by its decisions all see different parts of the outcome.
The same applies to accountability. The model provider, tool provider, system builder, and human approver may all have played a role. Their responsibilities should be decided before the agent is released—not argued over after something goes wrong.
For a small team putting its first agent into production, Prasanna recommends recording three things:
What the user asked for and what the agent believed it was doing
The evidence that shaped the agent’s decisions
Independent proof of what even happened
You may not be able to observe everything. But you should be able to answer three questions:
What was the agent trying to do? What shaped its decision? Did the promised result happen?
Watch the full conversation for Prasanna’s take on proving causation, tracing decisions across several agents and finding the failures hidden inside healthy-looking metrics.
Additionally, Prasanna takes the “95% for whom?” question further in Fairness in Generative AI, turning fairness from a broad principle into benchmarks, scorecards and release checks teams can actually use. If that part of our conversation stayed with you, the book is a natural place to continue.
That’s it for this one. We’ll pick up the conversation on Thursday.
Until then, keep building.
Tanya D’cruz
Editor-in-Chief, Agentic Engineering










