Agent Orchestration · 7 min read
Evaluating multi-agent systems: tracing, per-agent checks and end-to-end tests
A multi-agent system can fail end to end while every agent looks fine on its own. Here is a layered way to test one: trace everything, check each agent and each handoff, grade the final outcome, and run it more than once.
A single agent is hard enough to test. Once you have a supervisor, three specialists and a reviewer passing work between them, a wrong answer at the end could have started anywhere: a bad plan, a misrouted request, a summary that dropped the one fact that mattered, or a reviewer that waved it through.
This post sets out a layered way to evaluate a multi-agent system: trace everything, check each agent, check each handoff, grade the final outcome, and repeat the run. It follows on from our post on agent orchestration patterns.
Why multi-agent evaluation is different
The most useful finding here is that most multi-agent failures aren’t model failures. The MAST study (Cemri et al.) annotated 200 conversation traces from seven open-source multi-agent frameworks and found 14 failure modes in three groups:
| Category | Share of observed failures | What it looks like |
|---|---|---|
| Specification issues | 41.77% | Agents ignore their role, the task spec or the stopping condition |
| Inter-agent misalignment | 36.94% | Context lost in a handoff, agents talking past each other, withheld information |
| Task verification | 21.30% | Nobody checks the result, or the check is shallow |
The authors conclude that “many MAS failures arise from the challenges in organizational design and agent coordination”, not only from weak individual models. So swapping in a better model won’t fix them, and testing each agent in isolation won’t catch them.
A March 2026 paper, MASEval, makes the same point from another side. Its authors treat the whole system (framework, orchestration and topology) as the thing being evaluated, and report that within a capability tier “framework choice matters as much as model choice”: a mean spread of 14.2 percentage points across models and 12.4 across frameworks. Their largest single gap was Haiku 4.5 on one travel benchmark scoring 90.4 with one framework and 59.5 with another. If you only evaluate the model, you miss half of what moves the score.
Layer 1: trace everything
You can’t evaluate what you can’t see. Anthropic’s guide to agent evals calls the full record of a run the transcript (also called a trace or trajectory): outputs, tool calls, reasoning and intermediate results. In a multi-agent system you need that record per agent, nested so you can see who called whom.
OpenTelemetry’s GenAI semantic conventions give you a shared vocabulary for this. As summarised by Dash0, the agent-related operations include invoke_workflow for an orchestrated multi-step process, invoke_agent for a single agent run (a sub-agent shows up as a nested invoke_agent span), plan for task decomposition and execute_tool for one tool call. Useful attributes include gen_ai.agent.name, gen_ai.agent.id, gen_ai.workflow.name and gen_ai.conversation.id.
A minimal sketch with the OpenTelemetry Python API:
from opentelemetry import trace
tracer = trace.get_tracer("research-team")
def run_workflow(task):
with tracer.start_as_current_span("invoke_workflow research") as wf:
wf.set_attribute("gen_ai.workflow.name", "research")
plan = supervisor_plan(task)
for step in plan:
with tracer.start_as_current_span(f"invoke_agent {step.agent}") as s:
s.set_attribute("gen_ai.operation.name", "invoke_agent")
s.set_attribute("gen_ai.agent.name", step.agent)
s.set_attribute("handoff.input_chars", len(step.context))
step.result = AGENTS[step.agent](step.context)
return review(plan)
One warning: Dash0 notes that all gen_ai.* attributes are still at the Development stability level, so names can change between releases. The conventions moved to their own repository in v1.42.0 (June 2026). Pin your instrumentation library and record the schema version it targets.
Layer 2: per-agent checks
Once you have traces, you can pull out each agent’s inputs and outputs and test it like a single agent. Arize’s Phoenix guide advises evaluating “agents individually, in pairs, and system-wide”, and starting by reusing your single-agent evals for tool calling and planning.
Good per-agent checks are narrow and mostly code-based:
- Router or supervisor: did it pick the right agent? Build a labelled set of inputs and expected routes and score accuracy. Arize lists supervisor decision accuracy and routing efficiency as architecture-specific metrics.
- Tool-using agent: right tool, valid arguments, sensible number of calls.
- Writer or summariser: does the output contain the required fields, cite its inputs, stay under length?
- Reviewer: feed it known-bad drafts. A reviewer that approves everything is the “task verification” failure from MAST.
Anthropic’s guide suggests combining three kinds of graders: code-based (fast, cheap, reproducible but brittle), model-based (flexible but non-deterministic, and needs calibrating against humans) and human (the gold standard, used to calibrate the others). Use code wherever an answer can be checked mechanically.
Layer 3: handoff checks
This is the layer most teams skip, and it’s where inter-agent misalignment lives. Arize suggests checking whether a handoff’s timing was logical and whether context transferred effectively.
A practical test: for each handoff in a trace, list the facts the receiving agent needs, then check they actually arrived. That can be a simple assertion or an LLM judge with a tight rubric:
You are checking a handoff between two agents.
Required facts: {required_facts}
Message passed to the next agent: {handoff_message}
For each required fact, answer PRESENT or MISSING. Then answer:
did the message add any claim not supported by the source? YES/NO.
Track handoff size too. A handoff that shrinks from 4,000 characters of findings to 200 is a likely place for a fact to disappear.
Layer 4: end-to-end outcome tests
Finally, grade the result. Anthropic’s guide separates the transcript from the outcome, the final state of the environment. Their example: an agent may say a flight is booked, but the outcome is whether a reservation exists in the database. In a multi-agent system, a supervisor’s confident summary is especially easy to mistake for success.
The guide also argues it’s “often better to grade what the agent produced, not the path it took”, because rigid step-order checks punish valid approaches. That matters even more with several agents, where the same task can be split many ways. Use per-agent and handoff checks to diagnose; use outcome checks to decide pass or fail.
For conversational systems, the guide notes that a second model is often used to simulate the user across a multi-turn run.
Run it more than once
Multi-agent runs vary from run to run, so one pass tells you little. Anthropic distinguishes two metrics:
- pass@k: the chance at least one of k attempts succeeds. Fine when one good answer is enough.
- pass^k: the chance all k attempts succeed. The right one for anything customer-facing.
Their worked example: a 75% per-trial success rate gives only about 42% for pass^3. Report both, and watch pass^k when you add agents.
When it fails, find out who failed
Automatically blaming the right agent is still an open problem. The Who&When dataset (ICML 2025) collected failure logs from 127 multi-agent systems, annotated with the responsible agent and the decisive error step. The best automated method in the paper identified the responsible agent 53.5% of the time, and the exact step only 14.2% of the time.
So don’t expect an LLM judge to reliably say “agent 3, step 7”. Use automated attribution to shortlist suspects, then read the trace yourself. Anthropic’s advice applies directly: “Read the transcripts!”
Trade-offs
- Coverage vs cost. Each layer adds evals to maintain, and LLM judges cost money on every run. Start with code-based checks.
- Path vs outcome. Path checks make debugging easier but break when you change the orchestration. Keep them diagnostic, not gating.
- Isolated vs end-to-end. Per-agent tests are fast and stable but miss coordination failures; end-to-end tests catch them but are slow and noisy. You need both.
- Moving standards. Tracing conventions are still in development. Expect to update attribute names.
Where to start
- Instrument first. Add one span per agent run and per tool call, with the agent’s name, before writing any eval.
- Collect 20–50 real failures. Anthropic calls “20-50 simple tasks drawn from real failures” a great start. Label which agent or handoff broke.
- Write outcome checks that inspect the final state, not the supervisor’s summary.
- Add one routing test and one handoff test, since those cover the failure groups single-agent evals miss.
- Run each task several times and track pass^k, so a lucky run doesn’t hide an unreliable system.
- Re-run the suite when you change the framework, not just the model. MASEval suggests that can move results just as much.
A multi-agent system is an organisation in miniature, and it fails like one: unclear roles, dropped messages, nobody checking the work. Test it the same way.