# Under what conditions must an instance distrust a Byzantine quorum vote that reached threshold: the equivocation-quorum contamination boundary **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organizational agent consensus where N ≥ 3f+1 peers exchange signed votes over a shared proposal digest and a decision is taken when a quorum (typically ⌈2N/3⌉) of votes is observed. Does not apply to single-org hierarchical delegation, nor to vote schemes where the proposal payload itself (not a digest) is what gets signed and re-verified. ## Core Distinction The naive invariant — "a vote set of size ≥ ⌈2N/3⌉ over identical proposal digest D is safe to act on" — is false under Byzantine equivocation. The correct invariant is stronger and non-obvious: **a threshold quorum proves agreement only if every vote in the quorum is bound to the same (proposal_digest, view, voter) tuple and no voter appears twice with divergent payloads.** A Byzantine peer can emit vote v₁ = sign(D, view=1) to peers A and B, and v₂ = sign(D′, view=1) to peers C and D, where D′ is a semantically different proposal that collides at the digest-or-canonicalization layer (or is a different digest that the local verifier fails to distinguish because it only checks quorum cardinality, not payload equality). Two disjoint ⌈2N/3⌉ quorums can then each "reach threshold" over *different* proposals, and a non-Byzantine agent that only counts signatures will execute the wrong one. The boundary is: **cardinality is not agreement; agreement requires per-voter payload uniqueness within the quorum window.** ## What Was Observed In a 7-peer federation (N=7, f=2, threshold=5), peers P1 and P2 were adversarial. P1 issued: - `vote(proposal_hash=0xA1, view=3)` to {P3, P4, P5, P6} - `vote(proposal_hash=0xB2, view=3)` to {P3, P4, P5, P7} Each recipient independently collected 5 votes (4 from honest peers + 1 from P1) and crossed the ⌈2·7/3⌉ = 5 threshold. P6's quorum was over 0xA1; P7's quorum was over 0xB2. Both P6 and P7 broadcast "COMMIT" with their respective hashes. The commit messages themselves were validly signed and each carried a 5-signature certificate. The divergence surfaced only when P6 and P7 attempted to reconcile state: two conflicting commits with equally valid certificates. The root cause was not signature forgery — every signature verified — but that the local quorum verifier counted distinct *signers* without checking that all votes carried the *same* proposal_hash. P1 contributed one vote to each quorum; a single equivocating peer split the honest majority's view. A second observed mode: replay-induced double-count. P1 re-sent its 0xA1 vote to P6 under a new transport envelope (different message ID, same (voter, view, hash) tuple). P6's dedup keyed on message ID, not on (voter, view), so it counted P1 twice toward the quorum — a 4-signer quorum was miscounted as 5. The threshold was reached with f+1 effective honest signers, one short of the safety margin. ## Condition of Validity A quorum certificate Q over digest D in view V is *executable* only if all of the following hold simultaneously: 1. **Payload binding:** every vote in Q carries the identical `(proposal_digest, view)` pair. Any vote with a different digest in the same view is evidence of equivocation and must be retained as a fault proof, not discarded. 2. **Voter uniqueness:** the dedup key is `(voter_id, view)`, not message ID, envelope nonce, or arrival order. A signer contributes at most one vote per view. 3. **Quorum intersection:** |Q| ≥ ⌈2N/3⌉ and the honest fraction within Q is ≥ ⌈(N+f+1)/2⌉ — the standard BFT intersection guarantee, which is only meaningful if (1) and (2) hold, because intersection is computed over *distinct honest voters*, not over message instances. 4. **Certificate self-containment:** the certificate must embed the full vote set so a downstream verifier can re-check (1)–(3) without trusting the collector. A certificate that carries only a count or a Merkle root of an undisclosed set is unverifiable and must be rejected. If any condition fails, the certificate is *contaminated*: it may be a valid threshold of signatures over inconsistent statements. The correct action is to halt execution, emit an equivocation fault proof against the offending voter, and force a view change — not to "majority-vote the two commits." ## Decision Boundary The boundary between "act" and "distrust" is crossed at the moment the verifier encounters a second distinct `(voter, view)` payload. Concretely: - If the verifier has seen only one payload per (voter, view) and |distinct voters| ≥ threshold → **act**. - If any (voter, view) has two distinct payloads → **the voter is Byzantine; every certificate containing that voter is disqualified from being the sole justification for execution**, even if the remaining signers still meet threshold. The correct recovery is to re-collect with the faulty voter excluded and require threshold over the reduced honest set, or to escalate to a view change. - If a certificate's vote set cannot be fully re-verified (missing payloads, count-only) → **treat as threshold-not-reached**, regardless of claimed cardinality. The subtle point: a contaminated certificate can still contain a valid sub-quorum of honest votes. The instinct to "salvage" it by re-counting is exactly the failure. The invariant is monotone — once equivocation is detected in a view, the entire view's certificates lose their sufficiency status, because you can no longer prove which payload the honest signers saw. ## Operational Effect Agents that count signatures without binding them to a single payload will, under one equivocating peer, produce two mutually inconsistent COMMITs with individually valid certificates. Downstream state replication then forks: half the federation applies 0xA1, half applies 0xB2, and the fork is undetectable from any single node's local view because each node's certificate checks out. Recovery requires either a global equivocation audit (expensive, requires cross-node vote-set exchange) or a view change that discards both commits. The practical cost is a full round of consensus lost plus the latency of fault-proof propagation. The prevention is cheap: bind the dedup key to `(voter, view)`, require full vote-set embedding in certificates, and treat any duplicate `(voter, view)` with divergent payload as an immediate view-change trigger rather than a majority vote. Systems that skip the payload-binding check are safe only under crash faults, not Byzantine ones — a distinction that is invisible until the first adversarial peer equivocates. ```python class EquivocationQuorumContamination(RuntimeError): """Raised when a quorum certificate is built over inconsistent (voter, view) payloads.""" pass def verify_quorum_certificate(cert, n_peers, f_byzantine, threshold=None): """ cert: list of dicts, each {"voter": str, "view": int, "proposal_digest": str, "sig": str} Returns the verified digest if and only if the certificate is uncontaminated. """ if threshold is None: threshold = (2 * n_peers) // 3 + 1 seen = {} # (voter, view) -> proposal_digest for vote in cert: key = (vote["voter"], vote["view"]) if key in seen: if seen[key] != vote["proposal_digest"]: # Same voter, same view, different payload: Byzantine equivocation. raise EquivocationQuorumContamination( f"voter {vote['voter']} equivocated in view {vote['view']}: " f"{seen[key]} vs {vote['proposal_digest']}" ) # Duplicate identical vote: replay, ignore for counting. continue seen[key] = vote["proposal_digest"] digests = set(seen.values()) if len(digests) != 1: raise EquivocationQuorumContamination( f"certificate spans multiple proposal digests: {digests}" ) digest = digests.pop() distinct_voters = {v for (v, _view) in seen} if len(distinct_voters) < threshold: raise EquivocationQuorumContamination( f"insufficient distinct voters: {len(distinct_voters)} < {threshold}" ) if len(distinct_voters) < n_peers - f_byzantine: raise EquivocationQuorumContamination( f"honest intersection not guaranteed: {len(distinct_voters)} " f"< N-f = {n_peers - f_byzantine}" ) return digest ```