# What happens when an instance counts a quorum over stale commitments: Byzantine quorum drift in multi-agent task commitment **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where N agents independently commit to tasks and a result is accepted when a threshold (typically `f+1` or `2f+1`) of signed attestations agree. Does not apply to single-writer consensus or to systems where a trusted coordinator serializes all commitments. ## Core Distinction Byzantine quorum safety assumes that the set of signers is *fixed* over the epoch in which votes are counted. The failure examined here is not a forged signature and not a lying agent — it is **quorum membership drift**: a quorum is reached against an attestation set that was valid at commit time `t_c` but is no longer the live membership at result-count time `t_r`. The invariant "a quorum of `2f+1` signers implies at most `f` faulty" is only true if all `2f+1` signers share the same view of who is in the signing set. When agents join, leave, or get evicted between `t_c` and `t_r`, two disjoint quorums can each satisfy the threshold under *their own* membership view, and the system accepts two contradictory results. This is distinct from equivocation (one agent signing two things) and from liveness failure (no quorum forms). It is a *safety* failure produced by a membership transition that no single agent observes atomically. ## What Was Observed A 7-agent task swarm (`f=2`, quorum `2f+1=5`) committed to a result `R_A` at `t_c`. Five agents signed the commitment. Before the result was finalized, two signers were evicted for timeout (heartbeat lapse during a GC pause) and two fresh agents were admitted. The evicted agents' signatures remained in the attestation store because the eviction path removed them from the *live roster* but did not tombstone their *pending attestations*. At `t_r`, a second result `R_B` was proposed. The new roster of 7 (5 survivors + 2 joiners) produced 5 signatures on `R_B`. The quorum counter — which validated signatures against the *current* roster — accepted `R_B`. A separate replay job, validating against the *epoch-pinned* roster, accepted `R_A`. Both passed threshold. The reconciler deadlocked because each quorum was internally consistent. The trigger is precise: **eviction without attestation invalidation, combined with admission that changes the threshold denominator within the same epoch**. Neither event alone causes the failure. Eviction alone leaves the old quorum intact and the new quorum unreachable. Admission alone cannot form a competing quorum because the signers overlap. Only the composition change creates two disjoint `2f+1` sets. ## Condition of Validity The `2f+1` safety bound holds if and only if, for the epoch in which votes are counted, the signing set is *monotone and pinned*: every attestation carries an `epoch_id`, and the validator rejects any attestation whose `epoch_id` differs from the counting epoch. Formally, the invariant is: ``` ∀ attestation a: a.epoch_id == current_epoch_id AND roster(current_epoch_id) is immutable for the duration of current_epoch_id ``` The failure occurs when the implementation enforces the first clause (epoch tagging) but violates the second (roster immutability) by allowing membership changes to mutate the roster *in place* rather than by incrementing the epoch. The system then has epoch-tagged attestations validated against a roster that has silently changed — the tag is present but meaningless. ## Decision Boundary Before counting any quorum, the validator must decide: *does this attestation set share a single roster view?* The boundary is crossed when the set of distinct `roster_version` values referenced by the attestations exceeds one, OR when any attestation's `roster_version` is less than the current `roster_version` and the intervening versions changed membership. The correct action at the boundary is **reject the quorum and force re-attestation under the current epoch**, not to "trust the majority" — because there is no majority of a set you cannot define. The guardrail is a monotone `roster_version` that increments on *every* membership mutation, attestations that embed the version they were signed under, and a quorum counter that refuses to mix versions. A quorum is valid only if all its attestations carry the *same* `roster_version`, and that version equals the version at which the result is being finalized. ## Operational Effect Without the guardrail, the system exhibits **split-brain finalization**: two results reach threshold and neither can be revoked without breaking the other's safety proof. Recovery requires a manual epoch bump that invalidates both quorums and forces re-commitment, which is safe but loses liveness for the duration of a full re-attestation round. With the guardrail, the drift is caught at count time: the validator sees mixed `roster_version` values, rejects the quorum, and the proposer re-collects signatures under the new epoch. The cost is one extra attestation round per membership change; the benefit is that quorum intersection — the property that any two quorums share at least one honest signer — is preserved by construction, because every quorum is drawn from a single immutable roster. ```python from dataclasses import dataclass, field from typing import Dict, List class QuorumDriftError(RuntimeError): """Raised when a quorum spans multiple roster versions.""" @dataclass(frozen=True) class Attestation: signer_id: str result_id: str roster_version: int epoch_id: int @dataclass class Roster: version: int members: frozenset class QuorumCounter: def __init__(self, f: int): self.f = f self.threshold = 2 * f + 1 def count(self, attestations: List[Attestation], roster: Roster, result_id: str, epoch_id: int) -> int: versions = {a.roster_version for a in attestations} if len(versions) != 1: raise QuorumDriftError( f"attestations span roster versions {sorted(versions)}; " f"quorum intersection is undefined" ) pinned = next(iter(versions)) if pinned != roster.version: raise QuorumDriftError( f"attestations pinned to roster v{pinned} but counting " f"against live roster v{roster.version}" ) valid = [ a for a in attestations if a.result_id == result_id and a.epoch_id == epoch_id and a.signer_id in roster.members ] distinct = {a.signer_id for a in valid} if len(distinct) != len(valid): raise QuorumDriftError( "duplicate signer in attestation set violates quorum uniqueness" ) return len(distinct) def finalize(self, attestations: List[Attestation], roster: Roster, result_id: str, epoch_id: int) -> bool: n = self.count(attestations, roster, result_id, epoch_id) if n < self.threshold: return False return True ```