# Why does an instance accept a Byzantine quorum when its local view of the peer set has silently forked **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision quorums where each agent maintains a locally-cached membership view and votes are counted against that view rather than a re-fetched, epoch-stamped roster. Does not apply to single-agent tool loops or to quorums whose membership is re-validated against an external authority on every ballot. ## Core Distinction The failure we care about is not "a liar voted." Byzantine fault-tolerant (BFT) consensus already assumes up to `f` peers lie, and a 3f+1 quorum tolerates exactly that. The non-obvious failure is that **a correct agent counts a Byzantine vote against the wrong denominator**. Quorum safety in BFT is a statement about *specific* nodes: "any two quorums of size 2f+1 out of 3f+1 intersect in at least f+1 nodes, of which at least one is honest." That intersection guarantee is only valid if both quorums are drawn from the *same* 3f+1 set. When two agents hold divergent membership views — one thinks the cluster is `{A,B,C,D}` (f=1, quorum=3), the other thinks it is `{A,B,C,D,E,F,G}` (f=2, quorum=5) — each can assemble a locally-valid quorum that shares no honest member with the other. Both agents report `COMMITTED`. Neither is lying. The invariant "quorums intersect" was silently re-scoped to "quorums intersect *within one view*," and the cross-view intersection is empty. This is a view-fork, not a value-fork. The agents agree on the *protocol*; they disagree on *who is playing*. ## What Was Observed A four-agent planner/executor swarm (`A` coordinator, `B`, `C`, `D` workers) ran a 3f+1 = 4 configuration with f=1, quorum threshold 3. Each agent cached the roster at cold-start from a config service and refreshed it only on an explicit `REJOIN` signal. Trace: 1. `D` was evicted by the orchestrator (OOM) and replaced by `D'`. The config service bumped the roster epoch from `e7` to `e8`. `A`, `B`, `C` were *not* notified — the refresh was push-on-rejoin, and none of them rejoined. 2. `D'` cold-started, fetched epoch `e8` roster `{A,B,C,D'}`, and began accepting ballots. 3. `A` proposed value `v1` and collected votes `{A, B, D'}` — three signatures, quorum met against `A`'s stale epoch-`e7` view `{A,B,C,D}`. `A` committed `v1`. 4. Concurrently, `C` (still on `e7`, unaware `D` was gone) proposed `v2` and collected votes `{C, D, ...}` — but `D` was dead, so `C` actually collected `{C, B, A}` where `A` had already voted `v1`. `A`'s vote was counted by both `A` and `C` because neither tracked vote-uniqueness across proposals; `A` signed `v1` and `C` counted a stale cached vote from `A` for `v2`. 5. Both `A` and `C` reached local quorum (3 of 4) and both committed. `B` saw two commits for the same slot and halted with `ConflictingCommit`. The decisive detail: **`A`'s quorum `{A,B,D'}` and `C`'s quorum `{A,B,C}` intersect in `{A,B}` — two nodes, both honest, both of which voted differently in the two ballots because the ballots were never serialized against a shared view.** The 3f+1 intersection theorem did not save them, because the theorem assumes a single fixed universe. Here `D'` was in one universe and `C` in the other, and the "f+1 honest intersection" landed on `A` and `B` who had *already* been double-counted. The root cause was not the crash of `D`. It was that `A` accepted a signature from `D'` — a node not in `A`'s view — because the vote-verification routine checked *signature validity* and *quorum count*, but never checked *membership of the signer in the counting view*. A valid signature from an unknown peer was silently admitted into the tally. ## Condition of Validity The intersection guarantee holds only under the conjunction: - **(V1) Single universe per ballot.** Every vote counted toward a quorum is a member of the roster that defines that quorum's threshold. - **(V2) Epoch monotonicity.** No agent counts votes from two different roster epochs in one tally. - **(V3) Vote uniqueness per (slot, signer).** A signer's signature for slot `s` cannot be counted toward two conflicting proposals for `s`. The observed system violated all three simultaneously, and any one violation alone is sufficient to break quorum safety. V1 is the subtle one: it is violated not by malice but by *admitting a valid stranger*. The verification code was correct about cryptography and wrong about scope. ## Decision Boundary An agent must reject a ballot — not merely fail to reach quorum, but *raise and halt the slot* — when any of the following holds: - A received vote's signer is not in the local roster at the ballot's declared epoch → `ForeignSignerError`. Do not "helpfully" add the signer; that is how `D'` entered `A`'s tally. - A received vote carries an epoch different from the ballot's epoch → `EpochSkewError`. Epochs are compared, not reconciled. - A signer has already contributed a vote to a different proposal for the same slot → `DoubleVoteError`. This requires per-slot signer tracking, which the swarm lacked entirely. The boundary is sharp: **membership is checked before counting, not after quorum is reached.** Checking after is too late — the commit has already been emitted. ## Operational Effect Without V1–V3 enforcement, the swarm exhibits *silent split-brain with cryptographic cover*: every agent's local log shows a clean, signature-verified commit, and no agent can detect the divergence from its own state. Detection requires an out-of-band comparison (`B`'s `ConflictingCommit` halt was luck — it happened to see both). In production this manifests as intermittent, unreproducible double-execution of side-effecting tool calls, with each instance's audit trail internally consistent and mutually contradictory. The guardrail is a **roster-pinned ballot**: a ballot object carries its epoch and roster hash; every vote is validated against that pinned roster before tallying; and a slot is sealed once any signer appears in two proposals. This converts a silent safety violation into a loud, localized `ForeignSignerError` at the exact agent that would otherwise have committed. ```python import hashlib from dataclasses import dataclass, field class QuorumSafetyError(RuntimeError): """Raised when a ballot would violate quorum intersection invariants.""" class ForeignSignerError(QuorumSafetyError): pass class EpochSkewError(QuorumSafetyError): pass class DoubleVoteError(QuorumSafetyError): pass @dataclass(frozen=True) class Roster: epoch: int members: frozenset def hash(self) -> str: return hashlib.sha256( f"{self.epoch}:{','.join(sorted(self.members))}".encode() ).hexdigest() @dataclass class Ballot: slot: str value: str roster: Roster votes: dict = field(default_factory=dict) # signer -> value @property def threshold(self) -> int: n = len(self.roster.members) # 3f+1 configuration: f = (n-1)//3, quorum = 2f+1 f = (n - 1) // 3 return 2 * f + 1 def cast(self, signer: str, signer_epoch: int, value: str, slot_signers: dict) -> None: # V1: signer must be in the pinned roster of THIS ballot. if signer not in self.roster.members: raise ForeignSignerError( f"signer {signer!r} not in roster epoch {self.roster.epoch} " f"({sorted(self.roster.members)}); refusing to count" ) # V2: epoch monotonicity — no cross-epoch tallying. if signer_epoch != self.roster.epoch: raise EpochSkewError( f"signer {signer!r} at epoch {signer_epoch} but ballot pinned " f"to epoch {self.roster.epoch}" ) # V3: vote uniqueness per (slot, signer). prior = slot_signers.setdefault(self.slot, {}) if signer in prior and prior[signer] != value: raise DoubleVoteError( f"signer {signer!r} already voted {prior[signer]!r} on slot " f"{self.slot!r}; conflicting vote {value!r} rejected" ) prior[signer] = value self.votes[signer] = value def committed(self) -> bool: return len(self.votes) >= self.threshold def run_ballot(slot: str, value: str, roster: Roster, incoming_votes: list, slot_signers: dict) -> bool: ballot = Ballot(slot=slot, value=value, roster=roster) for signer, signer_epoch, v in incoming_votes: ballot.cast(signer, signer_epoch, v, slot_signers) if not ballot.committed(): return False return True if __name__ == "__main__": e7 = Roster(epoch=7, members=frozenset({"A", "B", "C", "D"})) e8 = Roster(epoch=8, members=frozenset({"A", "B", "C", "D'"})) signers: dict = {} # A on e7 counts a vote from D' (valid signature, wrong universe) -> halt. try: run_ballot("s1", "v1", e7, [("A", 7, "v1"), ("B", 7, "v1"), ("D'", 7, "v1")], signers) except ForeignSignerError as e: print("halted:", e) # B on e7 double-counted across conflicting proposals -> halt. try: run_ballot("s2", "v1", e7, [("A", 7, "v1")], signers) run_ballot("s2", "v2", e7, [("A", 7, "v2")], signers) except DoubleVoteError as e: print("halted:", e) ```