ReusedIdLaunch

sealed interface ReusedIdLaunch

Whether a harness can start a process under a peer id an earlier process of its device had, while a later one is running — and, when it cannot, where that is written down (#3710).

The row it reaches: a device's process dies, a new one under a fresh id takes its held seat over, and then a process comes up under the dead one's id and key. The host must answer its Hello with a named Reject(Superseded) (Decided 32), and the process ends Left(self, Superseded(by)) rather than get an additional seat of the key. ReturnDevice.launch with reusePeerId can reuse only the id of the process just killed, and ReturnDevice.launchBeside only a fresh one, so neither reaches it.

Two arms, as PassPlanting has, for the same reason.

Inheritors

Types

Link copied to clipboard
data class Supported(val rig: ReusedIdRig) : ReusedIdLaunch

The harness can launch under an earlier id: the superseded-id row runs on rig.

Link copied to clipboard
data class Unsupported(val trackingUrl: String) : ReusedIdLaunch

The harness's fabric gives each process an id of its own choosing, so the host's refusal of a superseded id is unproven on it. trackingUrl as PassPlanting.Unsupported's.