Engineering & Architecture Brief Published: 2026-11-25
A swarm coordinator lease that expires faster than the degraded mesh can deliver heartbeats turns one link fade into two coordinators. Both robots dispatch, both claim the decontamination corridor, and the incident log shows a duplicate assignment that nobody can reproduce on the bench. The value responsible usually passed code review because it looked reasonable where it sat. This is about finding it before the next flood deployment does.
Why the diff looked fine In most swarm stacks the coordinator lease TTL lives in the consensus layer config, the heartbeat interval lives in the radio or transport profile, and the link latency assumption lives nowhere at all. A reviewer sees a change that sets the lease to 1.5 s, compares it with the heartbeat interval in the same pull request if it happens to be there, and approves, because a 1.5 s lease over a 500 ms heartbeat is a normal ratio on a wired cluster. The problem is that amphibious and indoor units in a real incident run over meshed radio with multi-hop relays, water attenuation and heavy concrete, so the round trip that matters is the worst sustained one in the field, not the median measured in the depot. When a relay drops and the mesh reroutes, two or three heartbeats arrive late in a row, the lease lapses, a follower promotes itself, and the old leader, which never noticed anything wrong, keeps issuing tasks. Nothing in the diff was wrong taken on its own; the mistake is a relation between three values owned by three teams.
What keeps working when the coordinator goes The swarm survives a lost coordinator only if the rest of it can tell the difference between a dead leader and a slow one, and the lease is the only instrument it has for that. Fencing tokens are what make a premature promotion survivable: every dispatch carries the lease epoch, and actuators, corridor reservations and the incident command bridge reject any command stamped with an older epoch. Without fencing, a short lease is a correctness bug; with fencing, it degrades into wasted promotions and a few seconds of task churn, which is annoying but not dangerous. The opposite tuning has its own cost, since a long lease means a genuinely dead coordinator holds the swarm idle until it expires, and in a chemical spill that idle window is time robots spend not moving. Robots should also fall back to a local safe behaviour, hold position or return along the last known clear path, whenever they lose lease contact, so that the period with no valid leader is boring rather than improvised.
A check you can run against telemetry today If your mesh exports heartbeat round trip as a histogram, run histogram_quantile(0.99, rate(mesh_heartbeat_rtt_seconds_bucket[10m])) over the window of your last field exercise or real deployment, grouped by robot class, then compare each result against the rendered lease TTL your fleet actually loaded, not the value in the repository, and flag any class where the TTL is below three heartbeat intervals plus that p99 figure.
Turning the check into a gate The query only helps if it runs where the mistake is made, so put it in CI as an assertion over the merged configuration of all three layers, fed by a stored latency profile per terrain type instead of a live query. Keep separate profiles for urban rubble, flooded zones and open ground, because the flood profile is typically the one that breaks the ratio, and a lease tuned against open ground will look perfect right up until the amphibious units launch. My own estimate, from field logs I have seen, is that degraded flood links put p99 heartbeat round trip at several times the depot figure, which is enough to invalidate most leases tuned indoors. Multi-agency interoperability makes this worse, not better: once your coordinator publishes assignments through emergency data exchange standards such as EDXL into a shared incident picture, a split-brain swarm pushes conflicting resource states to other agencies, and their systems have no fencing token to reject the stale one.
Technical FAQ: Should we just raise the lease TTL everywhere to be safe? No. A longer lease trades split-brain risk for slower failover, and in hazard mitigation that slower failover means robots sitting idle while a dead coordinator's lease runs out. Raise it only for the robot classes and terrain profiles where the p99 check fails, make sure fencing is enforced at every actuator and reservation service first, and then decide whether the remaining failover delay is acceptable for that incident type or whether the transport layer needs a faster heartbeat path.