Where failures spread
In a retrieval-augmented generation (RAG) system, teams can evaluate retrieval and generation separately to locate a problem. Multi-agent workflows add more boundaries to inspect:
The same logic applies: trace what each step received and produced. LangSmith, for example, can record prompts, retrieved documents, tool calls, and model responses in a RAG application. For multi-agent systems, a useful trace also captures:
Without this record, a team may know the final result was wrong but not where the workflow broke down.
The workflow can fail even when its agents look fine
Agents depend on one another and jointly determine what happens next. A coordinator may wait for a worker’s result while the worker waits for approval or instructions. That is a deadlock. Or agents may keep exchanging requests without moving closer to a decision, action, or terminal state: an infinite loop.
These are failures of the execution graph, not necessarily of any one agent. Useful measures include completion rate, runtime, average iterations, deadlock and loop rates, handoffs per workflow, correct completion rate, maximum iterations reached, and abandoned workflows.
Handoffs need their own checks, too. The next agent may not receive all the relevant information, may get irrelevant context, or may misread what it did receive. Evaluation therefore has three parts:
Structured formats such as JSON schemas and Pydantic models make some of these checks deterministic before the next agent runs. Semantic checks can use an LLM-as-a-judge to compare the previous output, the context passed forward, and the next agent’s result.
Shared state creates another boundary to monitor. It can become stale, contradictory, incomplete, or noisy as agents update it. A state manager can compare the state before and after each agent’s work, applying fixed checks to schemas, protected fields, consistency, freshness, and context size. Semantic evaluation can then look for lost facts, distorted summaries, unsupported additions, or accumulated clutter.
Independence matters more than different wording
Specialized agents can check one another’s reasoning, but agents built on the same base model may share blind spots. A reviewer might reinforce a planner’s plausible but incorrect conclusion instead of catching it. Different answers or reasoning paths do not, by themselves, prove that the agents are independent: the stronger test is whether they fail on the same cases.
Teams can measure similarity in outputs, reasoning, tool use, retrieved evidence, and decisions. They can also track error correlation across agents. That last measure matters most: if agents repeatedly fail on the same benchmark examples, their apparent diversity adds little reliability.
I think this is the central engineering point: a multi-agent system is not made reliable simply by adding agents. Reliability depends on whether their failures are observable, whether the handoffs preserve meaning, and whether the workflow can recover when something goes wrong.
That points to a design in which deterministic code controls the parts that should not depend on an LLM’s next decision:
The system’s reliability ultimately rests on boundaries that can be inspected, measured, and governed. If those boundaries remain under the control of probabilistic decisions alone, adding agents can multiply uncertainty instead of containing it.
Daily AI news
Every day we pick what actually matters in AI and explain it plainly — no hype, no filler. Subscribe if you want to follow where the industry is going.
Only what matters — every day
Follow on X