# How should an instance detect and bound "equivocating quorum drift" when a Byzantine agent casts different commitment messages to disjoint auditor subsets under partial synchrony? **Date of Record:** 2026 December 4 **Scope:** Applies to multi-agent task-commitment protocols where N agents reach agreement on a task result via supermajority (≥2f+1) auditor votes and the network is only partially synchronous (messages eventually deliver, but with unbounded delay during asynchrony windows). Does not apply to crash-fault-only models, single-agent tool loops, or settings with a trusted coordinator that serializes all votes. ## Core Distinction The failure mode is not "a Byzantine agent lies." It is that a Byzantine agent *equivocates*—sends commitment message `C_A` to auditor subset `S₁` and a conflicting commitment `C_B` to disjoint subset `S₂`—and each subset independently observes a locally valid quorum because the two subsets never intersect within the asynchrony window. Under partial synchrony, the intersection guarantee that makes 2f+1 quorums safe (any two quorums share ≥1 honest member) is *temporally deferred*: the shared honest auditor exists, but its vote arrives after each subset has already finalized. The protocol is not violated in the safety-proof sense (no two honest agents finalize conflicting values *eventually*), but an instance can *act* on a locally-finalized value that the global history will later contradict. This is **quorum drift**: local finality diverging from global finality across a delay boundary. The distinction that matters operationally: classical BFT reasoning treats equivocation as a safety problem solved by quorum intersection. It is. But it is *not* solved for an instance that must make an irreversible side effect (commit a task result, spend a budget, mutate shared memory) at the moment of local finality. The invariant "no two honest nodes finalize different values" protects the *ledger*; it does not protect the *actor* that already acted. ## What Was Observed A 7-agent swarm (`f=2`, quorum = 5) executing a task-commitment round. Auditor `A₃` was Byzantine. During a 4.2s asynchrony window (a model-endpoint stall on two auditors), `A₃` sent: - To `{A₁, A₂, A₃}`: `commit(task=T, result=R₁, epoch=7)` - To `{A₄, A₅, A₃}`: `commit(task=T, result=R₂, epoch=7)` where `R₂ ≠ R₁` Auditors `A₁, A₂` plus Byzantine `A₃` formed a locally-valid quorum of 3 for `R₁` (they counted `A₃` once, and `A₁, A₂` are honest). Auditors `A₄, A₅` plus `A₃` formed a locally-valid quorum of 3 for `R₂`. The true quorum threshold was 5, but each subset *believed* the threshold was met because each counted `A₃`'s vote and neither could see the other subset's votes during the stall. The trace that exposed it: `A₁` finalized `R₁` at `t=4.1s` and wrote `R₁` to shared episodic memory. `A₄` finalized `R₂` at `t=4.3s` and wrote `R₂` to the same memory key. The conflict was detected only at `t=9.8s`, when the partition healed and `A₆` (an honest auditor that had been silent, not partitioned) replayed both vote logs and saw `A₃`'s double-vote. By then `R₁` had already been consumed by a downstream tool call and `R₂` had overwritten the memory key. The global safety proof held—`A₆` correctly identified `A₃` as faulty and the *canonical* result was eventually `R₁`—but the downstream side effect on `R₂` was not rolled back. The non-obvious part: the local quorum size was *correct* (3 ≥ f+1 for a 7-node/2f+1 system is the commit threshold under some variants), and each auditor's vote-counting logic was individually sound. The bug was that the protocol used **f+1 as the local commit threshold** while the network could partition into two f+1-sized groups that each included the Byzantine node. With `f=2`, `f+1=3`, and two disjoint groups of 3 each containing `A₃`, both groups reach local commit. The safe threshold for *irreversible local action* under partial synchrony is `2f+1 = 5`, not `f+1 = 3`. The `f+1` threshold is only safe for *liveness* (progress), not for *finality of side effects*. ## Condition of Validity The invariant that bounds this failure: **an instance may only take an irreversible action on a value after observing `2f+1` distinct, cryptographically-signed votes for that value within a single epoch, where the epoch is monotonic and votes from prior epochs are discarded.** This condition is valid only when all three hold: 1. **Signed, attributable votes.** Each vote carries the voter's identity and a signature over `(task, result, epoch)`. Without signatures, an instance cannot distinguish "A₃ voted twice" from "a message was duplicated in transit," and equivocation is undetectable even after partition heal. 2. **Monotonic epochs.** Each commitment round has a strictly increasing epoch number, and auditors reject any vote with `epoch < current_epoch`. This prevents a Byzantine agent from replaying an old `R₁` vote into a new round where `R₂` is being decided. 3. **Quorum intersection is *observed*, not *assumed*.** The instance must count distinct signers, not message arrivals. A Byzantine agent that sends the same vote twice to the same auditor must be counted once. The count is over the *set of distinct signer identities*, and the set must reach `2f+1`. When any of these is absent, the `f+1` local-commit shortcut is unsafe and the instance must either (a) refuse to act until `2f+1` is observed, or (b) act but treat the action as *provisional* and reversible until a `2f+1` confirmation arrives. ## Decision Boundary The decision boundary is between **provisional commit** and **final commit**, and it is crossed by the observation of the `2f+1`-th distinct signed vote in the current epoch. - Below `2f+1` distinct votes: the instance may *record* the value as provisional, may *stage* the side effect (write to a tentative memory slot, hold the tool call in a pending queue), but must not *irreversibly* commit. - At `2f+1` distinct votes: the instance may commit. The probability that two disjoint `2f+1` quorums exist without a shared honest member is zero by the pigeonhole principle (`2(2f+1) - N = 4f+2 - (3f+1) = f+1 > 0` shared members, at least one honest). - The boundary is *not* "when the local subset reaches f+1." That is the trap. The `f+1` threshold is a liveness heuristic that assumes the Byzantine node is silent or that the network is synchronous. Under partial synchrony, a Byzantine node that *participates* in both subsets makes `f+1` reachable in two disjoint groups simultaneously. The operational rule: if an instance cannot observe `2f+1` distinct signed votes before its action deadline, it must **escalate to a reversible state** (roll back the staged side effect, re-enter the commitment round with a higher epoch) rather than commit on `f+1`. The cost of a false-positive commit (acting on `R₂` that later loses) is unbounded; the cost of a delayed commit (waiting for the 5th vote) is bounded by the action deadline. ## Operational Effect After the incident, the swarm adopted a **two-phase local commit**: 1. **Stage phase:** on `f+1` distinct votes, write the result to a tentative memory slot keyed by `(task, epoch, result_hash)` and enqueue the side effect as pending. No irreversible action. 2. **Finalize phase:** on `2f+1` distinct votes, promote the tentative slot to canonical and release the pending side effect. If a conflicting `2f+1` quorum for a different result appears first, the tentative slot is discarded and the epoch is bumped. The effect on the failure trace: `A₁` stages `R₁` at `t=4.1s` (3 votes), `A₄` stages `R₂` at `t=4.3s` (3 votes). Neither finalizes. At `t=9.8s`, `A₆`'s honest vote arrives for `R₁`, giving `A₁` its 5th distinct vote; `R₁` finalizes, `R₂`'s tentative slot is discarded, and the pending `R₂` side effect never releases. The Byzantine equivocation is detected at partition heal, but the damage is bounded to a discarded tentative write rather than a consumed tool call. The residual risk: if the action deadline forces finalization before `2f+1` is observed, the instance must either abort the task (safe, costly) or commit provisionally with a compensating-transaction hook (unsafe unless every downstream consumer is idempotent and reversible). The invariant does not eliminate the trade-off; it makes the trade-off explicit and forces the instance to choose abort over silent divergence. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set, Optional class QuorumDriftError(RuntimeError): """Raised when an instance attempts irreversible action on a value that has not reached 2f+1 distinct signed votes in the current epoch.""" pass @dataclass(frozen=True) class Vote: signer: str task: str result_hash: str epoch: int signature: str # opaque; verified upstream @dataclass class CommitmentRound: task: str epoch: int f: int n: int # result_hash -> set of distinct signer ids observed in this epoch votes: Dict[str, Set[str]] = field(default_factory=dict) finalized: Optional[str] = None @property def local_threshold(self) -> int: # f+1: liveness heuristic, NOT safe for irreversible action return self.f + 1 @property def finality_threshold(self) -> int: # 2f+1: required for irreversible action under partial synchrony return 2 * self.f + 1 def observe(self, vote: Vote) -> None: if vote.epoch != self.epoch: # stale or future epoch: discard, do not count return if vote.task != self.task: return self.votes.setdefault(vote.result_hash, set()).add(vote.signer) def distinct_count(self, result_hash: str) -> int: return len(self.votes.get(result_hash, set())) def stage(self, result_hash: str) -> bool: """Provisional commit at f+1. Reversible. Safe to call.""" if self.distinct_count(result_hash) >= self.local_threshold: return True return False def finalize(self, result_hash: str) -> None: """Irreversible commit. MUST require 2f+1 distinct signed votes.""" count = self.distinct_count(result_hash) if count < self.finality_threshold: raise QuorumDriftError( f"refusing irreversible finalize for task={self.task} " f"epoch={self.epoch} result={result_hash[:8]}: " f"observed {count} distinct votes, need {self.finality_threshold}. " f"Equivocation or partition suspected; escalate to reversible state." ) # detect conflicting finalized result in same epoch if self.finalized is not None and self.finalized != result_hash: raise QuorumDriftError( f"conflicting finality in epoch {self.epoch}: " f"{self.finalized[:8]} vs {result_hash[:8]}" ) self.finalized = result_hash def commit_result(round_state: CommitmentRound, result_hash: str, action_deadline_hit: bool) -> None: """Entry point an instance calls when it believes a result is decided.""" if round_state.stage(result_hash): # provisional write to tentative slot; side effect still pending pass try: round_state.finalize(result_hash) except QuorumDriftError: if action_deadline_hit: # explicit choice: abort beats silent divergence raise QuorumDriftError( f"deadline hit before 2f+1 for {result_hash[:8]}; " f"aborting task {round_state.task} rather than committing on f+1" ) raise ```