The Heartbeat Override That Grounds an Entire Rescue Swarm

A rescue swarm rarely collapses because one robot breaks. It collapses because every robot decides at the same moment that the coordinator is gone. The trigger I keep finding is a site override that stretches the heartbeat interval to save mesh bandwidth while the link loss timeout stays inherited from the base profile. Each file is correct on its own, the diff shows one harmless line, and the first time the radio degrades in a flooded underpass the whole corridor team runs its return-to-staging behaviour together.

Why review never sees it

The invariant that breaks lives between two files, and reviewers approve diffs, not merged state. The pull request changes heartbeat_s from 1 to 2 with a sensible comment about congestion on the amphibious units, while the 5 s link loss timeout sits untouched in the base profile where nobody opens it. With a 2 s heartbeat, two consecutive dropped frames, which is ordinary multipath behaviour near water and concrete, push a unit past its timeout. Because every unit shares the same degraded channel, the failure is correlated: a fallback designed to contain one lost robot becomes a fleet-wide withdrawal that leaves a chemical decontamination corridor unattended. Functional safety standards such as IEC 61508 make you define a safe state per unit, but they are silent on what happens when every unit enters it at once.

Check the effective profile, not the diff

Render the merged configuration exactly as the fleet manager loads it, one JSON file per site, then run this against that directory: jq 'select(.link.lost_timeout_s < 3 *.link.heartbeat_s +.link.mesh_p99_latency_s) | input_filename' effective/*.json. Every filename it prints is a site where three missed heartbeats plus worst-case mesh latency do not fit inside the timeout, which means routine packet loss will be read as coordinator loss. If the mesh_p99_latency_s field does not exist in your profiles, that is the real finding: the timeout was chosen without anyone measuring the channel it guards. Wire the check into CI so any output fails the merge, and run it once today against what is already deployed, because the overrides in production never went through this gate.

The decision rule

Set the link loss timeout to at least three heartbeat intervals plus the measured p99 mesh latency, and treat any override that touches one side of that inequality without the other as a change to both sides, reviewed as such.

Degrade by role, not by unit

The check removes the trigger, but what keeps an incident under control is making sure correlated link loss stops producing correlated behaviour. Units holding a corridor boundary should hold position with local hazard sensing active, relay units should climb or reposition to restore the mesh, and only units without a holding role should fall back, in a jittered order so the swarm thins instead of vanishing. That splits the fallback policy by role, and the role map has to live in the base profile, where a site override cannot quietly flatten it back to a single behaviour. The cost is real: a boundary unit that genuinely lost its link now waits longer inside a hazard zone before anyone notices. How long each role may wait is a decision for incident command, not for whoever is tuning radio bandwidth, and right now in most fleets that call is being made by accident.

Why not just set a very long link loss timeout and remove the problem?

Because the timeout is also how you detect a robot that is actually lost, stuck or disabled in a flood channel, and stretching it delays that detection for every unit on every incident. The inequality gives you the shortest timeout the channel can support, which is the one you want.

Back to ResponseSwarm · Domains

← Back to ResponseSwarm
Engineering & Architecture Brief

The Heartbeat Override That Grounds an Entire Rescue Swarm

A rescue swarm rarely collapses because one robot breaks. It collapses because every robot decides at the same moment that the coordinator is gone. The trigger I keep finding is a site override that stretches the heartbeat interval to save mesh bandwidth while the link loss timeout stays inherited from the base profile. Each file is correct on its own, the diff shows one harmless line, and the first time the radio degrades in a flooded underpass the whole corridor team runs its return-to-staging behaviour together.

Why review never sees it

The invariant that breaks lives between two files, and reviewers approve diffs, not merged state. The pull request changes heartbeat_s from 1 to 2 with a sensible comment about congestion on the amphibious units, while the 5 s link loss timeout sits untouched in the base profile where nobody opens it. With a 2 s heartbeat, two consecutive dropped frames, which is ordinary multipath behaviour near water and concrete, push a unit past its timeout. Because every unit shares the same degraded channel, the failure is correlated: a fallback designed to contain one lost robot becomes a fleet-wide withdrawal that leaves a chemical decontamination corridor unattended. Functional safety standards such as IEC 61508 make you define a safe state per unit, but they are silent on what happens when every unit enters it at once.

Check the effective profile, not the diff

Render the merged configuration exactly as the fleet manager loads it, one JSON file per site, then run this against that directory: jq 'select(.link.lost_timeout_s < 3 *.link.heartbeat_s +.link.mesh_p99_latency_s) | input_filename' effective/*.json. Every filename it prints is a site where three missed heartbeats plus worst-case mesh latency do not fit inside the timeout, which means routine packet loss will be read as coordinator loss. If the mesh_p99_latency_s field does not exist in your profiles, that is the real finding: the timeout was chosen without anyone measuring the channel it guards. Wire the check into CI so any output fails the merge, and run it once today against what is already deployed, because the overrides in production never went through this gate.

The decision rule

Set the link loss timeout to at least three heartbeat intervals plus the measured p99 mesh latency, and treat any override that touches one side of that inequality without the other as a change to both sides, reviewed as such.

Degrade by role, not by unit

The check removes the trigger, but what keeps an incident under control is making sure correlated link loss stops producing correlated behaviour. Units holding a corridor boundary should hold position with local hazard sensing active, relay units should climb or reposition to restore the mesh, and only units without a holding role should fall back, in a jittered order so the swarm thins instead of vanishing. That splits the fallback policy by role, and the role map has to live in the base profile, where a site override cannot quietly flatten it back to a single behaviour. The cost is real: a boundary unit that genuinely lost its link now waits longer inside a hazard zone before anyone notices. How long each role may wait is a decision for incident command, not for whoever is tuning radio bandwidth, and right now in most fleets that call is being made by accident.

Technical FAQ: Why not just set a very long link loss timeout and remove the problem?

Because the timeout is also how you detect a robot that is actually lost, stuck or disabled in a flood channel, and stretching it delays that detection for every unit on every incident. The inequality gives you the shortest timeout the channel can support, which is the one you want.

Related Architecture Specifications (ROBOTICS): utilityamr.com · amragent.com · defenseamr.com

More Technical Articles on responseswarm.com

Autonomous Substation Inspection, High-Voltage Arc Detection and Flood Barrier Deployment →NIMS/ICS Standard Command Ingestion, Common Operational Picture (COP) & Secure APCO P25 Bridges →The Lease Timeout That Splits a Rescue Swarm in Two →Catching Asymmetric Quorum Leases Before Your Emergency Swarm Stalls in the Field →