A team of robots is inspecting a building. Some are checking rooms, others are moving through corridors, and one is helping coordinate the work: collecting updates, tracking assignments and pointing teammates toward unfinished areas.

Then that robot stops responding.

Maybe its battery died. Maybe it broke down. Maybe it simply moved somewhere its radio could no longer reach the others.

The remaining robots have to decide what happens next. Can they keep working? Who takes over? And what happens if the missing coordinator comes back?

Those questions show how much a team depends on any single member. They are also questions we have had to answer in ECITON, where robots elect temporary coordinators that are designed to be replaceable. This post walks through the problem, then explains how our current simulator handles it.

The first problem is uncertainty

A missing message does not explain why it went missing.

From another robot's point of view, a failed coordinator and a delayed connection can look the same. Replacing the coordinator too quickly could create competing leaders. Waiting too long could leave the team without useful coordination.

One approach is to expect regular signs of contact, often called heartbeats. If enough time passes without one, the team starts a recovery process. The timeout is a practical decision about when to act under uncertainty. It cannot prove that the missing robot has failed.

Leader-election protocols such as Raft are built around this gap between suspecting a failure and replacing a leader. A robot team needs its own rules, suited to its communication conditions and to the cost of conflicting decisions.

What can the robots still do?

Imagine that every assignment, discovery and progress report lives only inside the coordinator.

When it disappears, the team loses its shared picture of the mission. A robot may remember its own job but have no way to find out whether another room was already inspected.

Now imagine that each robot keeps a record of its own observations and current commitments, while useful updates are shared among teammates.

The loss still matters. Some information may be missing or out of date. But the team has something to recover from.

A robot inspecting a room might finish that inspection and save the result locally. Another might continue along a route that was already approved. Work that needs a fresh shared decision could wait.

That boundary has to be designed in advance. Permission to continue an existing task does not automatically mean permission to make new commitments on behalf of the whole team.

Choosing someone to take over

A replacement needs more than the ability to announce, "I'm in charge."

The team needs a common process for deciding who can coordinate, how that decision is recognized and when that authority ends. Otherwise several robots could take over independently and issue conflicting assignments.

Depending on the system, candidates might be weighed by communication quality, available resources or access to recent task information. The selection rule also has to break ties and account for robots that hear different parts of the conversation.

Distributed protocols often use numbered terms to tell successive leadership periods apart. In Raft, terms let participants recognize outdated leadership information. Raft also requires a majority of the whole group to elect a leader, which limits which separated groups can proceed (Ongaro and Ousterhout).

That shows a real tradeoff: a team may have to pause some shared decisions when too few members can communicate.

The old coordinator returns

Now suppose the missing robot reconnects.

It still remembers unfinished jobs and assignments. While it was away, some of those jobs may have been completed, reassigned or cancelled.

Its return should start with reconciliation. Which of its updates are still valid? Which decisions have been superseded? Does it still have any authority to coordinate?

Simply accepting its old instructions could send robots back to finished work or overwrite newer assignments.

The returning robot may still carry valuable observations. Those observations need to be checked and folded in without automatically restoring its previous role.

How ECITON handles it today

What follows describes a deterministic simulation baseline in Swarm Lab. It has not run on robots or real radios, and no performance result is claimed.

Our rule from the start of the project has been that a coordinator can help, but it can never be the only source of truth. The current implementation follows that rule in four ways.

Five-stage timeline. R1 coordinates term 4 with regular heartbeats. Heartbeats stop; after a timeout robots drop R1 and withdraw its term. R2, the lowest ID left, proposes term 5 and needs majority votes. R2 coordinates term 5 until a fixed end. R1 returns, its old role is not restored, and a fresh election starts.The recovery sequence in our simulator, simplified. Timeouts and term lengths are experiment settings, not measured values.

Silence is treated as missing evidence, not as failure. A robot counts a teammate as part of its group only while it keeps receiving that teammate's heartbeats directly. When they stop for long enough, the teammate drops out of the group. Our design notes describe this as "no recent evidence, not proven failure."

Authority comes with an end date. A coordinator is elected for a numbered term with a fixed end time. Heartbeats, repeated messages and late votes cannot extend it. To stay in charge, a robot has to win a new term with fresh votes. A candidate only takes office after it has directly received votes from a majority of its current group; one robot claiming to have won is not enough.

Work does not wait for the coordinator. Each robot keeps its own observations and task claims. A claim is a lease: the robot that holds it keeps working, and if that robot goes quiet, teammates wait for the lease to expire before taking the task themselves. The coordinator only provides advisory context, such as forwarding summaries, so losing it slows the team's sharing rather than erasing what the team knows.

A return starts a new election, not a restoration. When the old coordinator is heard again, the group has changed. Every robot withdraws its current coordinator and a fresh election begins. The returning robot's old term is not revived, and its records are compared against newer versions before they are accepted. A robot that reboots comes back with a new session, so messages from before the reboot are rejected.

There is one deliberate difference from Raft. Our majority is counted within the group each robot can currently hear, not the whole fleet. So two separated groups can each elect their own coordinator. We accept that because coordinators in ECITON don't own task decisions. The harder problem is duplicate work: until claims reach each other, two robots in separated groups can work on the same task. When the groups reconnect and exchange claims, the lowest robot ID keeps the task and the other releases it.

The baseline also has limits we have written down rather than hidden. It is conservative: if robots see different sets of neighbours, a group can stay without a coordinator. It assumes a shared simulator clock and trusted identities, and it doesn't yet handle clock drift or authenticate messages cryptographically. Those are open problems for hardware.

Recovery starts before the failure

Replacing a coordinator is only one part of recovery.

The team also needs enough retained information to resume useful work, clear limits on what robots can do while disconnected, and rules for resolving differences when communication returns.

A useful test is to remove the coordinator during a mission and watch what follows. Which tasks continue? Which pause? Does work get duplicated? Can the team explain how it reached its new assignments?

Our current tests cover small, fixed cases like these. A larger version, where the coordinator is removed at different points in a full mission and the results are kept alongside the runs where nothing goes wrong, is the kind of experiment we want Swarm Lab to support. We haven't run it yet.

A team may slow down or temporarily lose the ability to make certain decisions. The important question is whether that behavior is understood and controlled.

The coordinator's disappearance tests the whole team's design: what each robot knows, what it is allowed to decide, and how the robots find agreement again.

If you have built leader election or failover for mobile robots, we would like to hear what broke first.

Sources

Follow the build

Stay updated.

Follow the work as we connect the simulator, hardware and real robot teams.

Follow Anish on LinkedIn

Get the next update by email.

Project updates only. Unsubscribe at any time. How we use your email.

Explore Swarm Lab →