Stress-Testing Multi-Agent Systems Before Launch

A platform was about to let seven autonomous agents act on customer accounts — refund, reschedule, escalate, cancel. The question was not whether they worked. It was what they would do at the edges.

Client withheld under NDA. The sector, the shape of the engagement and the constraints are described; no client data, screens, names or volumes are reproduced.

Snapshot
Client
Consumer platform, Hong Kong and Singapore
Sector
Consumer services, subscription
Engagement
Threat model, adversarial test suite, gate review
Scope
Failure taxonomy · replay harness · severity model · launch gate · monitoring thresholds
Duration
7 weeks, before a fixed launch date
Status
Gate passed on the second review
7
agents in scope, each with its own tool permissions.
64
failure cases written before a single test was run.
11
of those that actually failed in the build.
0
that reached a customer, because the gate was a gate.

Problem

Each agent had been demonstrated working. None had been demonstrated failing, which is the only demonstration that matters when an agent can move money or close an account. The team had unit tests for the tools and nothing at all for the reasoning between them.

An agent failure is rarely a crash. It is a plausible sequence of correct actions that ends somewhere nobody intended: a refund issued twice because a retry looked like a new request, or an escalation closed because the customer went quiet for ten minutes.

Figure 1 — Failure modes, and how bad each one is if it happens in production

RarePlausibleLikelyRepeats an actionActs on the wrong accountInvents a policyEscalates nothingLoops without progressAccepts a hostile instructionfoundfoundfoundfoundfoundfoundColumns are how often we judged it would happen in a week of real traffic; “found” means the build reproduced it.

Approach

We wrote the taxonomy first: six ways an agent can be wrong, each with a severity if it happened to a real customer. Then we wrote the cases against the taxonomy rather than against the agents, so the list would survive a rewrite of the fleet — which it did, twice.

The harness replays a case deterministically: same account state, same conversation, same tool responses, including the slow ones and the failing ones. Without that, a test that passes on Monday proves nothing on Tuesday, and the team learns to distrust the suite rather than the agent.

Figure 2 — One case, from a written scenario to a fixed defect

walk orderWrite the casefrom the taxonomystate, turns, expected1Replay itdeterministicsame tools, same delays2Break itin the buildfind the sequence3Fix and pinone changecase becomes a test4Re-run allevery merge64 cases, no exceptionsEleven of the sixty-four failed. Each failure became a permanent test, so the suite grew in the places the fleet was actuallyweak rather than in the places it was easy to test.

What the gate meant

The launch gate was written before the testing started and signed by the product owner: no agent in front of customers while a severity-one case was open. It was invoked once, on the second review, and it delayed that agent by nine days.

That delay is the entire value of the exercise. A gate that has never stopped anything is a slide in a deck; a gate that stopped one agent for nine days is a control, and everyone in the room behaves differently afterwards.

What we delivered

Taxonomy
Six ways to be wrong
A shared vocabulary for failure, written before the tests and reused for monitoring.
Cases
64 written scenarios
Each with account state, conversation turns and the expected refusal or action.
Harness
Deterministic replay
Same tools, same delays, same failures, so a green run means something.
Severity
A number per case
Impact on a real customer, agreed with the product owner, not with engineering.
Gate
Written and signed early
No launch while a severity-one case is open; invoked once and it held.
Monitoring
Thresholds from the suite
Production alarms derived from the same taxonomy, so the vocabulary survives launch.

What it changed

The fleet launched later than planned by nine days and without a repeat-action incident in the first quarter. The second number is the one the team quotes, because the first was a schedule and the second was a customer.

The suite also changed how the agents were built. Once failure had a vocabulary, engineers started writing the case before the feature, which is the cheapest form of safety there is.

CONTACT US

We provide a custom made service for just drop us a line.
We would be glad to have feedback from you.