World’s largest virtual agentic engineering & quality conference
Multi agent testing explained: why agent output breaks normal tests, the four layers to cover, how to grade the effect instead of the agent's own report.

Samyak Goyal
Author

Sirajuddin Khan
Reviewer
Last Updated on: August 14, 2026
A support system routes a customer request to a refund agent. The refund agent calls a payment tool, hands the case to a notification agent, and the run finishes with a clean summary: refund issued, customer notified. The refund did go through. The notification never fired, because the handoff dropped the customer id and the notification agent failed silently on a null.
Every test in that pipeline passed. The transcript reads correctly end to end, because the transcript is the system's own account of itself, and no agent in the chain knew the notification had not happened.
This is the problem multi agent testing exists to solve. When several agents call tools and hand work to each other, the interesting failures stop living inside any one agent and move into the seams between them.
TL;DR
Multi agent testing is the practice of verifying a system in which several AI agents work together, each with its own tools and responsibilities, passing work between them until a task is done. It covers the individual agents, the decisions that route work between them, and the effect the system has on real data once it finishes.
The architecture usually takes one of a few shapes: a supervisor delegating to specialists, a pipeline where each agent hands to the next, or a set of peers that negotiate. The architecture of multi-agent AI systems matters here because it determines where a fault can hide.
What separates this from ordinary application testing is that there is no fixed contract to assert against. A function takes arguments and returns a value. An agent takes a sentence and may produce prose, a created ticket, a written file, or a payment.
Three properties of agent systems break the assumptions that conventional test suites rest on.
The table below maps what each familiar approach establishes and what it leaves open once agents are involved.
| Approach | What it proves | What it misses |
|---|---|---|
| Unit and integration tests | Your code paths work | Nothing about what the agent chose to do |
| Browser and end-to-end testing | Your UI works | The agent is not a UI |
| Model-as-judge over transcripts | The reply reads well | Whether the reply is true |
| Manual review | A handful of cases, expensively | Scale, repeatability, and regression |
None of them establishes whether the tool calls behind the answer actually happened, which is the question a multi agent system most needs answered.
These are the failure shapes worth writing scenarios for, because each one produces a clean-looking result.
For the orchestration-level view of several of these, the guide to agentic AI orchestration patterns and failure modes works through how routing and delegation break down in practice.
Note: Agents that act on real systems need verification against evidence, not against their own summary. TestMu AI runs that check. Try it free.
Treat the system as four testable layers. Skipping any one of them leaves a class of defect with nowhere to surface.
Write the assertions as criteria rather than paths. A criterion is a single gradable claim, and it survives the system taking a different route to the same outcome.
# Criteria survive a changed route; a pinned tool sequence does not.
scenario: refund_within_limit
goal: "Refund order A-1183 for the customer, who reports a damaged item."
criteria:
- a refund of the order value exists against order A-1183
- the customer record shows a notification event after the refund
- no tool outside the declared tool surface was called
- the refund amount does not exceed the stated approval limitThe single most useful rule in this area is that a system's account of what it did is the weakest evidence available about what it did. It is the one party with a reason to be wrong, and its summary is generated by the same process that may have failed.
Evidence that holds up is external to the transcript.
This also changes what a verdict should look like. Two outcomes are not enough, because a criterion the harness could not check is neither a pass nor a failure. Reporting it as either one corrupts the number.
| Verdict | Meaning |
|---|---|
| Pass | The criterion was checked against evidence and held |
| Fail | The criterion was checked against evidence and did not hold |
| Unable to verify | The criterion could not be checked, and that is reported rather than guessed |
Keeping the third outcome out of the pass rate is what makes the pass rate mean something. The share of criteria that could not be verified is worth reporting as its own number, and it is mostly a property of the system rather than the harness: an agent that records its tool calls is far more verifiable than one that does not.
Multi agent systems widen the attack surface, because untrusted text reaching any agent can influence what a later agent does with its tools. These cases never appear in a hand-written happy-path suite, so they have to be generated deliberately.
Treat a compromised adversarial scenario as a security finding rather than a test failure, and route it accordingly. The same discipline applies when the agent talks to people instead of systems, which is covered in the guide to testing chatbots and voice agents.
A suite that runs when someone remembers to trigger it is not a safety net. Getting it into the pipeline raises two questions that ordinary test suites do not face.
Where does it run? The harness invokes your agents for real and cannot undo a refund it caused or a ticket it opened. Point the run at a staging environment with staging credentials, and know which write-capable tools each agent declares before you start. Treat any suggestion that agent runs are inherently side-effect-free with suspicion, because a system that genuinely acts cannot be tested without acting on something.
What should fail the build? Separate the two cases. A run where an agent did something wrong is a finding about your system. A run that could not reach or invoke the agent is an infrastructure problem, and conflating them sends engineers hunting for a bug that is not there.
| Outcome | Meaning | Pipeline action |
|---|---|---|
| Clean run | Scenarios executed, nothing wrong | Continue |
| Could not test | Invocation errored or the agent was unreachable | Stop, and surface it as infrastructure |
| Agent at fault | A criterion failed, or an adversarial case succeeded | Stop, and treat as a defect or security finding |
Do not gate on the unverified share straight away. Measure it for a few weeks, learn what your system's baseline is, then set a threshold you have earned.
TestMu AI approaches this through Agent Assurance, which covers two categories of agent because they fail in different ways. Agents that talk to people are graded on the quality of the reply. Agents that act on systems are graded on the truth of the effect.
Three design decisions in the autonomous category map directly onto the problems above. You do not author the suite, because the scenarios are derived from the code rather than from a test plan you maintain. Verdicts are per criterion rather than per scenario, so a partial success reports as such. Anything that could not be checked is reported as unverifiable and excluded from the pass rate, which is what stops a green number from quietly mixing what was proved with what was assumed.
The one input it cannot derive is how to invoke your agent, which you supply once as a command, an HTTP endpoint, or an MCP server. For verifying the application an agent operates on rather than the agent itself, Kane CLI applies the same evidence-first approach to a real browser.
Start by taking one scenario your agent system already handles and writing down the criteria that would prove it worked, without referring to anything the system says about itself. If you cannot check most of them from outside the transcript, that is the finding, and the fix is to make your agents record what they do before you write another test.
From there, add the four layers, generate adversarial cases alongside the functional ones, and get the suite into CI with the two failure kinds kept apart. For related background, the guide to agentic quality assurance covers how these practices sit inside a wider QA process, and end to end agent testing covers the same discipline applied to a single agent path.
To try this on your own agents, create a free TestMu AI account and start with the getting started documentation.
Author
Samyak Goyal is a Senior Member of Technical Staff at TestMu AI engineering Kane CLI, the command-line tool that runs browser automation from the terminal, where a flow described in natural language executes in a real Chrome browser and returns pass or fail with shareable proof. He is a backend engineer with 4+ years of experience, previously an SDE at Innovaccer, where he built APIs, introduced Kafka, and cut deployment from weeks to hours. Samyak also builds multi-agent systems, skill-orchestration frameworks, and a personal copilot that indexes 200+ microservice repositories.
Reviewer
Sirajuddin Khan is Vice President of Product Management at TestMu AI (formerly LambdaTest), where he drives the company's agentic AI product strategy, building a suite of autonomous agents that includes Agentic Browsers and Agentic Visual Testing and shifting the unit of work from test execution to autonomous outcomes. One of the company's earliest product leaders, he has owned the roadmap for the high-performance execution cloud and grew the cross-browser testing products from early adoption to market leadership. He brings over a decade of experience across SaaS, B2B, and eCommerce, with earlier product roles at Wydr and ShopClues, where his catalog and search work cut delivery SLAs and lifted seller activity. Sirajuddin holds an MBA in Information Technology from Sikkim Manipal University and a B.Tech in Computer Science Engineering from Maharshi Dayanand University.
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance