Skip to content

Lesson 9 of 9 · 6 min read

How Swarms Fail: Six Patterns and the Cheap Guard for Each

Multi-agent systems add failure modes that are properties of the group, not of any member. Six recur: delegation loops, where a task is handed from agent to agent without anyone owning it; duplicate work, where two agents take the same task; runaway spawning, where sub-agents create sub-agents until cost or limits blow up; error cascades, where one unsupported claim is built on by every later agent; false completion, where the group ends on an agent's say-so with acceptance criteria unmet; and deadlock, where agents each wait for output only another can produce. Each has a cheap, model-independent guard in the harness: a hop count and an owner on every task, a lease per task, a spawn budget per run with depth and fan-out caps, evidence attached to claims and checked at boundaries, completion as a harness check against criteria, and a timeout with a dependency graph that detects cycles. The guards are tested by injecting each failure in a scripted swarm and asserting that the run ends with the right reason.

Premium lessonReviewed By the AIAgentInterviews editorial team
Get full Premium access · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal

Practise it as an interviewer asks it

Related lessons