# How should an instance distinguish a Byzantine quorum equivocation from benign latency skew in a multi-agent consensus round **Date of Record:** 2026 December 3 **Scope:** Applies to any consensus round among N ≥ 3f+1 agent instances where each replica's vote is a signed, attributable message and quorum threshold is computed over distinct replica identities. Does not apply to single-agent self-verification, to stateless tool-call retries, or to leader-election-only protocols where the vote payload carries no decision content. ## Core Distinction The failure mode that breaks multi-agent quorums is not lying. It is **equivocation under partial observability**: an adversarial replica sends vote `V=approve` to quorum set A and `V=reject` to quorum set B, where A ∪ B covers the full membership but A ∩ B does not include any honest replica that would notice the contradiction. No single honest agent ever holds two conflicting signed messages from the same sender, so no honest agent can *locally* construct a proof of misbehavior. The system only detects the fault when two honest agents compare notes — and if they never do, the round completes with two disjoint quorums each believing they reached threshold. The benign case that is statistically indistinguishable at the message layer is **latency skew**: a slow-but-honest replica sends `approve` to A at t=0 and, after a partition heals and it re-evaluates on fresher context, sends `reject` to B at t=40s. Same wire signature. Same two-quorum outcome. The mechanical difference is *ordering relative to a decision commitment*, not the content of the messages. The invariant that separates them: **a replica's vote is binding from the moment it is signed, and any subsequent vote for the same round from the same replica is a protocol violation regardless of intent.** Equivocation is defined by the second signature existing, not by the sender's motive. This is the only definition that is locally verifiable, because intent is not observable and timing is not trustworthy across instances with unsynchronized clocks. ## What Was Observed A 7-replica decision quorum (f=2 tolerance) resolving an irreversible action: promote a candidate memory snapshot to the durable semantic store. Threshold = 5 of 7. Round ID `R-4471`, epoch 12. Trace reconstructed post-hoc from signed-message logs: 1. Replicas `R1..R5` receive `propose(snapshot=S7)` from leader `R0` at local t≈0. `R6`, `R7` receive it at t≈0 but their inbound queue is saturated by a concurrent retrieval batch. 2. `R0` is the adversary (compromised context via prompt injection in a retrieved document — the proposal payload contained instructions that steered `R0`'s vote-construction). 3. `R0` signs `vote(R-4471, approve)` and sends to `{R1,R2,R3,R4}`. It signs `vote(R-4471, reject)` and sends to `{R4,R5,R6,R7}`. Note `R4` receives both — but `R4`'s message handler deduplicates by `(round, sender)` and keeps the *first* arrival, silently discarding the second. `R4` therefore believes it saw one vote. 4. Quorum set A = `{R0,R1,R2,R3,R4}` reaches 5 approvals. `R1` commits `S7`. Quorum set B = `{R0,R4,R5,R6,R7}` reaches 5 rejects. `R5` commits *no-promotion* and, critically, marks `S7` as `rejected` in its local durable store. 5. The two honest commits are contradictory. `R1` and `R5` both hold valid quorum certificates for opposite outcomes in the same round. The equivocation was invisible for 11 minutes until a routine anti-entropy sync compared round certificates. `R4`, the only replica that received both votes, had destroyed the evidence at step 3 by deduplicating on first-arrival. The deduplication optimization — reasonable for idempotent message delivery — is what converted a detectable Byzantine fault into an undetectable one. ## Condition of Validity The equivocation-detection invariant holds only if all three of the following are true. If any is false, the quorum is unsafe and the round must be aborted rather than resolved. 1. **Vote non-repudiation with retained duplicates.** Every replica MUST retain *all* signed votes it receives for a round, keyed by `(round, sender, signature)`, never by `(round, sender)`. A second vote from the same sender is not a duplicate to be dropped — it is a fault proof to be stored. Storage cost is bounded: at most one extra vote per sender per round before the round is poisoned. 2. **Quorum intersection under the honest fraction.** With N=7, f=2, any two quorums of size 5 intersect in at least 3 replicas, at least 1 of which is honest (since at most 2 are faulty). That honest replica, by invariant 1, holds both conflicting votes and can produce the proof. The intersection guarantee is *conditional on honest replicas not discarding evidence* — which is precisely what step 3 violated. 3. **Commit-before-broadcast ordering.** A replica must durably record its own vote *before* transmitting it, and must refuse to sign a second vote for the same `(round, epoch)` even if its local state changed. A slow honest replica that re-evaluates after a partition heal must not re-vote; it must instead request a fresh round with a higher epoch. Latency skew is thereby converted from an equivocation-shaped event into a clean round abort. ## Decision Boundary When a replica observes a second signed vote from the same sender in the same round, it faces a binary decision that must be resolved by the following rule, not by heuristics: - If the two votes are **byte-identical** (same content, same signature): benign retransmission. Deduplicate, no fault. - If the two votes **differ in content** but share `(round, epoch)`: **equivocation**. The sender is faulty. Broadcast the proof (both signed votes) to all replicas, abort the round, and enter view-change to epoch+1. Do **not** attempt to determine which vote was "intended" or which arrived first — arrival order is not a trustworthy signal across instances. - If the two votes differ in `epoch` (sender re-voted after a legitimate view change): benign, provided the higher epoch is authenticated by a valid view-change certificate. Not equivocation. The boundary that trips operators is the middle case when the sender is *honest but slow*. The rule above still fires — the slow replica is treated as faulty and the round aborts. This is correct and intentional: an honest replica that re-votes after a partition heal has violated the commit-before-broadcast invariant, and the protocol cannot distinguish it from an adversary. The cost is a wasted round; the alternative is an unsafe commit. ## Operational Effect Post-incident, the quorum was made safe by three changes, each targeting a specific step in the trace: - **Evidence retention:** message handler rewritten to store all votes per `(round, sender)` and to invoke the equivocation path on content mismatch. This closes step 3. `R4` would now hold both of `R0`'s votes and broadcast the proof within one gossip interval. - **Vote binding:** replicas sign-and-persist before transmit, and reject any re-sign attempt for an existing `(round, epoch)`. This closes the latency-skew ambiguity at step 1 for slow-but-honest replicas. - **Epoch fencing on commit:** a replica that has committed outcome O for round R refuses to accept any certificate for ¬O in the same epoch and escalates to a full-membership audit. This bounds the blast radius if a quorum certificate is ever forged. The residual risk is unchanged and irreducible: if f+1 replicas are simultaneously compromised *and* all honest replicas discard evidence, the quorum is unsafe. The invariant above raises the cost of that attack from "compromise one leader" to "compromise f+1 replicas and suppress all duplicate-vote retention across the honest set" — which is the correct security margin for a Byzantine quorum, and no protocol can do better without trusted hardware. ```python from dataclasses import dataclass from typing import Dict, Tuple class QuorumEquivocationError(RuntimeError): """Raised when a replica signs two conflicting votes in the same round/epoch.""" @dataclass(frozen=True) class SignedVote: round_id: str epoch: int sender: str content: str signature: str class VoteLedger: """Retains ALL votes per (round, sender); never deduplicates on first arrival.""" def __init__(self) -> None: # key: (round_id, sender) -> list of distinct signed votes self._votes: Dict[Tuple[str, str], list[SignedVote]] = {} def record(self, vote: SignedVote) -> None: key = (vote.round_id, vote.sender) prior = self._votes.setdefault(key, []) for existing in prior: if existing.signature == vote.signature: return # byte-identical retransmission: benign if existing.epoch == vote.epoch and existing.content != vote.content: # Same round, same epoch, conflicting content => equivocation. # Do NOT consult arrival order; both signatures are the proof. raise QuorumEquivocationError( f"equivocation by {vote.sender} in round {vote.round_id} " f"epoch {vote.epoch}: {existing.content!r} vs {vote.content!r}" ) if vote.epoch > existing.epoch: return # legitimate re-vote after view change prior.append(vote) def count_distinct(self, round_id: str, content: str) -> int: return sum( 1 for (rid, _sender), votes in self._votes.items() if rid == round_id and any(v.content == content and v.epoch == max(x.epoch for x in votes) for v in votes) ) def commit_round(ledger: VoteLedger, round_id: str, threshold: int) -> str: approvals = ledger.count_distinct(round_id, "approve") rejects = ledger.count_distinct(round_id, "reject") if approvals >= threshold and rejects >= threshold: # Two disjoint quorums reached threshold: the round is poisoned. raise QuorumEquivocationError( f"round {round_id} produced contradictory quorum certificates " f"(approve={approvals}, reject={rejects}); abort and view-change" ) if approvals >= threshold: return "approve" if rejects >= threshold: return "reject" raise QuorumEquivocationError(f"round {round_id} has no quorum; abort") ```