# Which invariants prevent equivocation-tolerant agent quorums from collapsing under partial Byzantine membership churn **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent swarms that reach decisions via weighted quorum voting where up to `f` of `3f+1` voting members may be adversarial (Byzantine) and the membership set is allowed to change mid-epoch. Does not apply to static-membership consensus, single-agent self-verification, or quorums whose membership is fixed for the lifetime of a decision. ## Core Distinction The failure this record isolates is **not** simple Byzantine voting (a minority of lying agents being outvoted). It is the interaction between Byzantine fault tolerance and **membership churn during an in-flight decision**. Classical PBFT-style safety proofs assume the validator set is constant across the prepare/commit phases. When agents join or leave between phase transitions, the quorum-intersection invariant—*any two quorums of size `2f+1` must share at least one honest member*—silently degrades. Two disjoint quorums can each reach `2f+1` votes against different proposals if enough members rotate out of quorum A and into quorum B without their votes being invalidated. The honest agents in each quorum never see a conflict; the equivocation is resolved only in the *set difference*, which neither quorum observes. The invariant that actually protects the system is stricter than "quorum size ≥ 2f+1": it is **quorum intersection across the union of all membership sets active during a single decision epoch, with vote-carrying identity bound to a per-epoch credential that expires at epoch boundary.** Without epoch-scoped credentials, a vote cast by agent `A` in epoch `e` can be replayed or counted in epoch `e+1` after `A` has been evicted for misbehavior—re-admitting a known-Byzantine voter. ## What Was Observed A 7-member quorum (`f=2`, threshold `2f+1=5`) was executing a two-phase commit on a tool-invocation authorization decision. During the prepare phase, agents `P1`–`P5` voted `commit`, reaching threshold. Before the commit phase closed, the orchestrator evicted `P4` and `P5` (timeout on heartbeat, later found to be adversarial stalling) and admitted fresh agents `P6`, `P7`. The commit phase then collected votes from `P1, P2, P3, P6, P7` — a *different* set of five. The trace showed: - Prepare quorum: `{P1,P2,P3,P4,P5}` → proposal `X` reaches threshold. - Commit quorum: `{P1,P2,P3,P6,P7}` → proposal `Y` reaches threshold. - Intersection: `{P1,P2,P3}` = 3 members, which is `< f+1 = 3`… exactly at the boundary. With `f=2`, safety requires intersection `≥ f+1 = 3`. Here it held by a single member. On the next epoch, with `f=3` (`n=10`, threshold `7`), the intersection dropped to `2 < f+1=4` and two conflicting commits were both "valid" under local checks. The decisive observation: **every honest agent's local verification passed.** `P1`–`P3` saw a consistent history because they were in both quorums. `P6`/`P7` saw only the commit phase and had no visibility into the prepare quorum's composition. The equivocation was invisible to any individual agent's state; it existed only in the *global* vote ledger, which no single agent held. A second observation: evicted agents `P4`/`P5` continued emitting signed commit votes for the *old* proposal after eviction. Because votes were signed with long-lived keys and not scoped to an epoch, the orchestrator's late-arriving-vote buffer briefly counted them, inflating the commit quorum to 7 and masking the true intersection deficit. ## Condition of Validity The safety guarantee holds **only if all four of the following are simultaneously true**: 1. **Epoch-scoped credentials.** Each vote is signed over `(proposal_hash, epoch_id, member_id)` and the verifier rejects any vote whose `epoch_id` does not equal the current decision epoch. Eviction increments the epoch. 2. **Quorum intersection computed over the union of active sets.** The verifier must check `|Q_prepare ∩ Q_commit| ≥ f+1` where `Q_prepare` and `Q_commit` are drawn from the *union* of membership sets active across the epoch, not from the membership set at the moment each quorum closed. 3. **`n ≥ 3f+1` evaluated against the maximum concurrent membership**, not the instantaneous membership. If churn can transiently inflate `n`, `f` must be recomputed against the peak, or admission must be frozen during an open decision. 4. **Eviction is a first-class state transition** that (a) bumps the epoch, (b) invalidates in-flight votes from the evicted member, and (c) forces re-collection of any quorum that included the evicted member. If any one fails, the system is in the "partial churn" regime where equivocation is locally undetectable. Condition 1 is the load-bearing one: without it, evicted Byzantine agents re-enter the vote count via replay, and conditions 2–3 become unenforceable because the verifier cannot distinguish a legitimate late vote from a replayed evicted one. ## Decision Boundary The operational fork is: - **Freeze-on-open.** Once a decision epoch opens, membership is frozen until it closes. Churn requests are queued and applied at the next epoch boundary. This is the conservative choice: it preserves the classical safety proof at the cost of liveness under adversarial stalling (a Byzantine member can stall an epoch indefinitely by refusing to vote, since it cannot be evicted mid-epoch). - **Churn-with-recompute.** Allow churn mid-epoch, but on every membership change, recompute the intersection invariant over the union of active sets and **abort-and-restart** the decision if `|intersection| < f+1`. This preserves liveness but requires the abort to be globally agreed—which itself needs a quorum, creating a potential livelock if the abort quorum also churns. The boundary is crossed when **churn rate exceeds the decision's phase latency**: if members rotate faster than a prepare→commit round trip, `churn-with-recompute` degenerates into repeated aborts and never commits. At that point the only safe move is `freeze-on-open` plus an out-of-band liveness mechanism (e.g., a timeout that escalates to a higher-authority auditor quorum with static membership). Choosing `churn-with-recompute` without a churn-rate bound is the specific decision that produces the observed equivocation. ## Operational Effect When the invariant is violated, the failure is **silent and locally consistent**: no agent raises an error, no signature fails, and each quorum's local threshold check passes. The divergence surfaces only downstream, when the two committed proposals `X` and `Y` are applied to shared state—typically as a non-deterministic tool side effect (e.g., two conflicting writes to an external resource, or an authorization granted under `X` and revoked under `Y`). By the time the conflict is observable, the decision is already committed and the vote ledger has been garbage-collected. The guardrail that bounds the damage is **epoch-scoped vote credentials plus union-based intersection checking at commit time**, with a hard abort if intersection `< f+1`. This converts a silent equivocation into a loud, detectable abort—recoverable, because no side effect has fired. The cost is reduced liveness under churn, which must be paid explicitly rather than borrowed against safety. ```python from dataclasses import dataclass, field from typing import FrozenSet class QuorumIntersectionViolation(RuntimeError): """Raised when prepare/commit quorums fail the f+1 intersection invariant.""" pass @dataclass(frozen=True) class Vote: member_id: str proposal_hash: str epoch_id: int @dataclass class DecisionEpoch: epoch_id: int f: int active_members: FrozenSet[str] votes: list = field(default_factory=list) def cast(self, vote: Vote) -> None: # Epoch-scoped credential: reject votes from evicted members or stale epochs. if vote.epoch_id != self.epoch_id: raise QuorumIntersectionViolation( f"stale vote from {vote.member_id}: epoch {vote.epoch_id} != {self.epoch_id}" ) if vote.member_id not in self.active_members: raise QuorumIntersectionViolation( f"vote from non-member {vote.member_id} in epoch {self.epoch_id}" ) self.votes.append(vote) def quorum(self, proposal_hash: str) -> FrozenSet[str]: return frozenset( v.member_id for v in self.votes if v.proposal_hash == proposal_hash ) def verify_commit( epoch: DecisionEpoch, prepare_members: FrozenSet[str], commit_members: FrozenSet[str], ) -> None: threshold = 2 * epoch.f + 1 if len(prepare_members) < threshold or len(commit_members) < threshold: raise QuorumIntersectionViolation( f"quorum below threshold {threshold}: " f"prepare={len(prepare_members)} commit={len(commit_members)}" ) # Union-based intersection: members active across the whole epoch, not just at close. union_active = prepare_members | commit_members intersection = prepare_members & commit_members required = epoch.f + 1 if len(intersection) < required: raise QuorumIntersectionViolation( f"intersection {len(intersection)} < f+1={required} over union " f"{len(union_active)}; equivocation possible between prepare and commit" ) ```