One sweeping supervisor per mesh

Measured 2026-11-23 on the control instance (three portal replicas). ThreadSupervisor is a hosted service, so every replica ran its own sweep clock over the same thread set and wrote the one Admin/Threads node. Two consequences:

The rule

The sweeper is whoever holds a lease recorded on the status node (leaseHolder, leaseToken, leaseRenewedAt, leaseReleasedAt; SweepLease is the pure rule, the same as the babysitter's).

State Decision
no lease take it, token 1
held by this process renew, WRITTEN only every third of the lifetime (a renewal that is not due is not a version)
released, or no renewal for the lifetime take over, token + 1 (the failover)
held by another process stand by

The lifetime is five minutes, or three sweep intervals when the operator slows the sweep.

SweepOnce() stays the un-gated test seam; only the clock is gated.

Evidence

SweepLeaseTest (the pure rule, including the expiry boundary and the negative control that a replaced owner stands by) and ThreadSupervisorSingleOwnerTest (two supervisors on one mesh: the standby sweeps and writes nothing across its ticks, takes over when the holder's lease lapses with token 2, and the old holder then stands by).

Not covered

The pool's census still describes only the owner's process. A thread queued in another replica's pool is protected by the queuedUntil stamp on its node, not by the owner's pool. Making the census fleet-wide is a separate change.