End-to-end testing a feature built by six parallel agents

in AI-Assisted Development

Coding agents can each pass their own tests while the feature they built together fails the first time a person uses it.

  1. What did we build?
  2. How did we split it for the agents?
  3. What did the first end-to-end call catch?
  4. What did the review gates catch?
  5. What did the live rehearsal catch that no test did?
  6. What did it cost?
  7. What is still missing?
  8. Summary

You can hand a feature with five moving parts to coding agents and get five green test suites back. The feature can still fail the first time a person uses it, because each agent tested its own part against its own idea of the others. This post follows one feature through that problem: a voice agent for a football coaching app. The running example is one sentence a coach says into the mic.

What did we build?

A coach opens a page in the app, starts a call and talks to their own playbook. The app is a multi-tenant FastAPI and Next.js product where plays are structured data, drawn by a deterministic renderer. The voice side is an ElevenLabs agent running Claude Haiku 4.5 for fast turns. In the figure, the accent arrow is the drawing, fetched by the browser with the coach's session.

coachbrowser mic ElevenLabs agentHaiku 4.5 show_playclient tool search_playswebhook, tunnel appteam rows only drawing skips the model
Figure 1. The parts of a voice call, built by six agent lanes.

Here is what happens when the coach says "show our smash concept":

  1. The browser asks the app for a session. The app checks the coach's normal login and mints a short-lived voice token.
  2. ElevenLabs turns speech into text, and the agent decides to call search_plays.
  3. That tool is a webhook into the app, through a tunnel. Every call carries two credentials: a workspace secret and the coach's voice token. The app answers from that team's data only, enforced by row-level security.
  4. The agent calls show_play, a client tool. The browser fetches the drawing with the coach's own session and puts it on screen.
Browser Agent App says “show our smash concept”the coach, on the voice page show_playfetch SVG, own session drawing on screenabout 3 s after the call speech to textpicks search_plays calls show_playa client tool search_playssecret + voice token ✕ both valid? refused team rows onlyrow-level security draw the playdeterministic drawer waits for the answer no query + 2 credentials play id, short text show_play(id) coach's session SVG 1 2 3 4 5 6
Figure 2. One call to show a play, step by step.

Dashed arrows are messages, and none carries the drawing: it never passes through the model. Server tools return ids and short text; the browser fetches the SVG itself. New plays work the same way: "draw spread right hash, boundary smash" goes to draw_play, which runs the app's real drawer, and show_draw puts the result on screen.

Around that sit the parts a customer would ask about: per-team limits (30 call starts an hour, 120 minutes a month, 600 seconds per call), a signed post-call webhook that meters minutes, and sideline voice notes through ElevenLabs Scribe, using the team's own play names as keyterms.

How did we split it for the agents?

We split it into six lanes in four waves, and the first wave was a tracer bullet. The tool is mow, our multi-agent orchestration workflow: a plan becomes one brief per lane, each lane is a test-first build agent in its own git worktree, and a wave lands only after review agents pass it.

Wave Lanes What
1 A Tracer: one voice round trip end to end, "show our smash concept"
2 B, C, D in parallel Draw by voice, budgets and webhook; the demo-grade page; the agent's config as code with its tests
3 E Scribe voice notes
4 Z Live rehearsal with me on the mic, runbook, preflight check

Why a tracer first: on an earlier feature, splitting by module hid four broken links between the modules until the very end. Lane A built the thinnest path through every layer, from session token to tunnel to search to drawing, before any lane built depth.

Each wave ended at a gate. Three reviewer agents read the diff (backend, LLM security, frontend). A wave lands with zero Critical findings; Warnings go back to the lanes as a fix round, and each fix is checked by breaking it on purpose to see its test fail.

What did the first end-to-end call catch?

The first real call found four facts about the platform that no test could have known. Wave 1's own tests were green. Then the first real call went over the tunnel, and:

  • Headers were not filled in. ElevenLabs doesn't fill a {{variable}} inside a plain-string tool header. It does for the typed form, {"variable_name": "..."}.
  • Secrets resolve by id, not name.
  • The CLI's tools push crashed after creating the tools. We switched to the REST API for updates.
  • Search had to match words. It matched the whole query as one string, so "mills boundary smash" missed the play named "Spread Boundary Smash Field Mills". Now every word has to appear somewhere.

There was one bug in our own code too: show_play drew the default hash variant, not the one the coach asked for. The five fixes landed within 29 minutes, first commit to last, and were written back into the plan before wave 2 started, so the wave 2 lanes built on the real facts. The header rule is now a static test that refuses a plain-string header in the agent config.

What did the review gates catch?

The gates caught bugs that pass every happy-path test. None was Critical until wave 4, but every wave had Warnings:

Wave Finding Fix
2 The session budget let calls through when Redis was down, while the route next to it refused them Both refuse when Redis is down
2 The webhook ran its per-IP rate limit before checking the signature, so forged posts through the tunnel could block real ones Check the signature first
2 One voice token could spend the whole team's drawing budget 10 draws per token
2 The agent read the drawer's notes out word for word: one model's text going straight into another's mouth Notes are filtered and paraphrased
3 Scribe's per-team limit let calls through on errors, and Scribe audio didn't count against the monthly minutes Refuse on errors; count Scribe seconds
4 Critical: the export script for the public repo could be tricked by a path spelling into copying hidden files Refuse every spelling; copy tracked files only

Lane B also ran property-based tests and 19 mutants on the budget and webhook code; that found three more bugs. Lane E's keyterm code killed 135 of 139 mutants.

What did the live rehearsal catch that no test did?

The rehearsal caught how people actually use the page. Wave 4 ran in the foreground, with me on the mic.

  • I tapped the mic button again to stop talking, the way push-to-talk works in other apps. On this page it hung up the call. The fix: the button reads "Start call" and "End call". A tap while your question is unanswered, or just after the agent spoke, only arms the hang-up; a second tap within 3 seconds ends the call.
  • Off-vocabulary calls: of 12 draw_play calls, 7 drew. The other 5 used names the team doesn't have, like Trips.
  • "Which formations do we have?" stumped the agent: no tool lists them. That became a follow-up task.
  • The second call was cut off at 211 seconds by the ElevenLabs quota.

Measured from the conversation logs, server-side tool time:

Tool p50 max Calls
draw_play 2.5 s 4.9 s 12
search_plays 0.37 s 0.54 s 3
show_play / show_draw 0.2 s 0.22 s 6

From the tool call to the drawing on screen took about 3 seconds. The agent says "drawing that now" first, so the wait is covered. The post-call webhook recorded 354 seconds for the three rehearsal calls.

What did it cost?

Under six hours of orchestrator time and four of subagent time. The run spans Oct 8 to Oct 14 on the calendar, 133 hours, but wave 1 ran on Oct 8 and everything else on the evening of Oct 13. Those 133 hours are mostly a pause.

Measure Value
Orchestrator active 5 h 47 m
Subagent time 3 h 57 m: build lanes 1 h 48 m, gates and fixes 2 h 10 m
Commits 41 on the run's own paths
Tokens 370.8 M counted, about 98% of them read from the prompt cache
Tests 314 voice tests, 60 web state tests, 4 ElevenLabs agent tests

The token total looks huge until you split it. Over the run's transcripts, cache reads were 98%; new tokens (cache writes plus output) were about 6 M.

What is still missing?

Still open:

  • A recorded fallback video of a full call, waiting on ElevenLabs quota.
  • A list_formations tool, so "which formations do we have?" gets an answer.
  • The preflight check compares 7 agent fields and the tool headers with the repo, but not the prompt text or tool schemas.
  • The 480 KB voice-note cap is untested on a real iPhone.
  • Two modules import private names from the rate-limit module.

Summary

  • Green tests per lane only prove each agent's idea of the others; the whole feature needs a real call.
  • A tracer wave through every layer found four platform facts in the first real call, before any lane built depth.
  • A review gate after every wave caught fail-open budgets, a rate limit before the signature check, and one Critical.
  • One live rehearsal with a person found a hang-up bug that only a person tapping a button would hit.
  • The drawing never passes through the model: tools return ids, the browser fetches the SVG.
  1. Run the tracer wave against the real vendor before any lane builds depth.
  2. Rehearse with a person before calling a voice feature done.
  3. Build list_formations, then creating a formation by voice.