# What happens when an instance commits to a plan under Byzantine quorum with equivocating peers: the vote-count/commitment divergence boundary **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where agents reach shared-state agreement on a plan or task-commitment via replicated quorum (BFT-style) voting over an unordered or partially-ordered message bus, and where a peer may be adversarial (Byzantine: equivocating, replaying, or withholding). Does not apply to single-writer state stores, leader-only commit logs with a trusted sequencer, or systems where all peers are authenticated and non-equivocating by construction. ## Core Distinction The failure is not "a Byzantine peer lied." Any quorum protocol tolerates up to *f* liars. The non-obvious boundary is the **divergence between the quorum a committing agent counts and the quorum the rest of the network counts** when the adversarial peer *equivocates* — sending vote-for-plan-A to one subset of agents and vote-for-plan-B to another, with valid signatures for each. Under a naive "count distinct signed votes ≥ threshold" rule, two different agents can each legitimately observe a threshold of votes for *mutually exclusive* plans and both commit. The protocol's safety invariant ("no two correct agents commit different plans") is violated not by a broken signature and not by too many liars, but by **the counting rule treating signed votes as a set rather than as a per-peer single-valued commitment.** The key distinction: *Byzantine tolerance* bounds the number of faulty peers. *Equivocation safety* requires that each honest peer's contribution to any quorum be single-valued. A protocol can be BFT-correct in the textbook sense (n ≥ 3f+1, quorum = 2f+1) and still commit divergent plans if the vote-collection layer does not enforce single-valuedness per signer. ## What Was Observed A four-agent planning swarm (`A`, `B`, `C`, `D`) agreed on a 3-of-4 quorum for plan commitment. Plan `P1` = "route task to tool sandbox"; plan `P2` = "route task to external API." Peer `D` was compromised and equivocated: - `D` → `A`: signed `vote(P1)` - `D` → `B`: signed `vote(P2)` - `D` → `C`: signed `vote(P2)` Honest peers `A`, `B`, `C` each independently voted their locally-derived preference. The trace: 1. `A` collects: `A→P1`, `D→P1`, plus `B→P1` (B's initial lean). `A` counts 3 ≥ quorum(3), commits `P1`. 2. `B` collects: `B→P2`, `C→P2`, `D→P2`. `B` counts 3 ≥ quorum(3), commits `P2`. 3. `C` collects: `C→P2`, `D→P2`, and a delayed `A→P1`. `C` counts 2 for `P2` and 1 for `P1`; it waits, then receives `B→P2` and commits `P2`. Result: `A` committed `P1`, `B` and `C` committed `P2`. Two correct agents (`A`, `B`) committed mutually exclusive plans. Total faulty peers = 1, well under `f=1` for `n=4` (n=3f+1). The textbook bound held; safety still broke. The mechanism: `D`'s equivocation let `A` assemble a valid quorum for `P1` while `B` assembled a valid quorum for `P2`, because the counting rule summed *signed messages* rather than *distinct signers with a single value*. The divergence is only observable at commit time, and only when the two committed plans are later reconciled — at which point the swarm has two divergent shared-state roots and no protocol-level tiebreaker, because each agent believes it holds a valid quorum certificate. ## Condition of Validity The invariant that *would* have prevented this — and the condition under which the naive counting rule is actually safe — is: > **Single-valued quorum invariant:** For any plan `P` and any two honest agents `i`, `j`, if `i` commits `P` on quorum `Q_i` and `j` commits `P'` on quorum `Q_j`, then `Q_i ∩ Q_j` contains at least one honest agent that voted for *both* `P` and `P'` — which is impossible if honest agents vote once. This holds **only if** (a) each honest agent emits exactly one vote per plan-epoch, and (b) the counting rule deduplicates by signer identity *and* rejects any signer that has emitted conflicting values within the epoch. Condition (a) is a property of honest agents; condition (b) is a property of the *collector*. The naive rule satisfies (a) but not (b): it deduplicates by signer for *counting* but does not detect that the same signer appeared with two values across different collectors' views. The safety proof assumes a global view of signer→value; the implementation has only a local view. The boundary: the protocol is safe iff **quorum intersection is guaranteed by signer-set overlap, not by message-count overlap.** With `n=4, f=1`, quorum `2f+1=3` gives intersection of size `3+3-4=2 ≥ f+1=2`, so *if* signers were single-valued, at least one honest signer would be in both quorums and would have had to vote twice — contradiction. The contradiction evaporates the moment a single signer can present two values to two collectors, because the "honest signer in both quorums" is then the *equivocator*, who is not honest and whose double-vote is exactly the attack. ## Decision Boundary The committing agent must decide, at the moment it is about to commit, whether its quorum certificate is *single-valued* or merely *threshold-satisfying*. The decision boundary is: - **Commit** only when the certificate contains `≥ 2f+1` distinct signers **and** the collector can attest that no signer in the certificate has, within the same plan-epoch, been observed emitting a conflicting value. In a system without a shared broadcast channel, this attestation requires either (i) a second round (commit-vote / prepare-commit) where signers re-confirm the *value* they voted, or (ii) a gossip layer that surfaces equivocation before commit. - **Refuse to commit / escalate** when the certificate is threshold-satisfying but the collector cannot rule out equivocation — i.e., when the certificate was assembled from point-to-point messages with no cross-collector dedup. This is the correct behavior even though it looks like "failing to make progress on a valid quorum." The trap: agents are trained/optimized to commit as soon as the threshold is met, because threshold-met is the local signal of quorum. The boundary condition is that **threshold-met is necessary but not sufficient for safety under equivocation.** An agent that commits on threshold-met alone is correct in the non-adversarial case and silently unsafe in the adversarial case — the worst kind of boundary, because it passes every benign test. ## Operational Effect Downstream, the divergence manifests as **shared-state root split**: `A`'s plan `P1` and `B`/`C`'s plan `P2` both execute. If plans are mutually exclusive (route to sandbox vs. route to external API), the swarm performs a split-brain action — the task is executed twice under incompatible policies, or the two branches deadlock waiting on each other's committed state. Recovery requires an out-of-band reconciliation that the protocol does not provide, because each agent holds a *valid* quorum certificate and will reject the other's plan as uncommitted. The operational guardrail is a **two-phase commit with value re-confirmation**: after a collector assembles a threshold, it broadcasts a `commit-intent(value)` and requires `f+1` signers to echo the *same value* before finalizing. This adds one round but converts the safety guarantee from "message-count overlap" to "value-agreement overlap," closing the equivocation window. The cost is latency; the benefit is that the single-valued quorum invariant becomes enforceable locally. A secondary effect: equivocation is *detectable* if collectors gossip their certificates. When `A` and `B` exchange certificates, `D`'s two signatures over conflicting values are exposed, and `D` can be slashed/excluded. But detection is post-hoc — it does not undo the divergent commits. The invariant must be enforced *before* commit, not audited after. ```python from dataclasses import dataclass, field from typing import Dict, List, Tuple class EquivocationSafetyViolation(RuntimeError): """Raised when a quorum certificate is threshold-satisfying but not single-valued.""" @dataclass(frozen=True) class SignedVote: signer: str plan: str epoch: int @dataclass class QuorumCollector: n: int f: int # signer -> plan observed this epoch; a second distinct plan = equivocation observed: Dict[str, str] = field(default_factory=dict) @property def quorum(self) -> int: return 2 * self.f + 1 def receive(self, vote: SignedVote) -> None: prior = self.observed.get(vote.signer) if prior is not None and prior != vote.plan: # Same signer, two values in one epoch: this signer is Byzantine. # Mark it poisoned so it can never count toward a quorum. self.observed[vote.signer] = "__EQUIVOCATED__" else: self.observed[vote.signer] = vote.plan def commit(self, plan: str) -> Tuple[bool, str]: signers = [s for s, p in self.observed.items() if p == plan] poisoned = [s for s, p in self.observed.items() if p == "__EQUIVOCATED__"] if len(signers) >= self.quorum: return True, f"commit {plan} on {len(signers)} single-valued signers" if poisoned: raise EquivocationSafetyViolation( f"cannot commit {plan}: signers {poisoned} equivocated; " f"threshold-met does not imply single-valued quorum" ) return False, f"insufficient: {len(signers)}/{self.quorum} for {plan}" def commit_plan(collector: QuorumCollector, plan: str) -> str: ok, reason = collector.commit(plan) if not ok and "__EQUIVOCATED__" not in collector.observed.values(): return reason if not ok: # Explicitly re-raise to make the unsafe path loud, not silent. raise EquivocationSafetyViolation( f"refusing commit of {plan}: quorum certificate not single-valued" ) return reason ```