# How should an instance detect quorum equivocation when auditors vote on divergent state roots in a Byzantine agent swarm **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent decision quorums where N auditor agents attest to a shared state root (memory checkpoint, tool-call ledger, or plan DAG hash) under a Byzantine fault tolerance assumption f < N/3. Does not apply to single-agent self-verification, to quorums where auditors share a single transport channel with ordered delivery, or to leader-only commit schemes without independent attestation. ## Core Distinction The distinction that matters is between **fault tolerance** and **equivocation tolerance**. A BFT quorum of 2f+1 matching votes is sufficient to guarantee agreement only if each honest auditor casts *at most one* vote per decision round. That precondition is routinely assumed and routinely violated in LLM swarms, because an auditor agent is a probabilistic process whose "vote" is a sampled token sequence, not a deterministic function of its input state. When the same auditor instance is queried twice — across a retry, a replayed checkpoint, a duplicated fan-out message, or a resumed session after context truncation — it can emit *two different state roots* for the *same* round, both of which are individually well-formed and internally consistent. This is equivocation, and it breaks the quorum arithmetic silently. The system still counts 2f+1 votes. The votes still hash to valid roots. But the intersection argument that guarantees honest-majority overlap collapses, because a single Byzantine-or-merely-nondeterministic auditor now contributes to two disjoint quorums. The failure is not detectable by counting; it is only detectable by binding votes to identity *and* round *and* input digest, and by cross-checking that no identity appears on two sides of a fork. ## What Was Observed A six-auditor swarm (N=6, f=1 tolerated, quorum=4) was attesting to a post-tool-call memory checkpoint. Each auditor received the checkpoint payload, the prior state root, and the tool-call ledger, and returned `(round_id, state_root, signature)`. The coordinator committed when it saw 4 matching `state_root` values. During a transport retry storm, auditor A3's attestation request was delivered twice: once on the primary channel and once on a failover channel after a 900ms timeout. The two deliveries arrived 1.2s apart. Between them, A3's context had been truncated at the tail (a 4k-token window evicted the earliest tool-call results), so its second attestation was computed over a *partial* ledger. A3 returned root `R1` on the first delivery and root `R2` on the second. Both were signed correctly. Both carried the same `round_id`. Neither was marked as a retry. The coordinator saw roots `{R1: 4 votes (A1, A2, A3, A5)}` and `{R2: 3 votes (A3, A4, A6)}`. It committed `R1` at quorum. But A3 had also contributed to the `R2` set, which reached 3 — one short of quorum. Had A4's failover duplicate also landed, the `R2` set would have reached 4 and a *second* commit would have fired for a divergent root. The invariant "at most one commit per round" held only by luck of a dropped packet, not by protocol. The deeper observation: A3 was not Byzantine. It was honest and correct given its local input. The equivocation arose from **input divergence masquerading as identity divergence** — the same identity produced two outputs because its effective input differed, and nothing in the vote schema carried the input digest needed to detect that. ## Condition of Validity The 2f+1 quorum bound is valid *only* under the conjunction: 1. **Single-vote-per-round-per-identity.** Each auditor identity contributes at most one counted vote to any given `round_id`. Enforced by the coordinator deduplicating on `(identity, round_id)` and rejecting the second — but rejection alone is insufficient, because the coordinator may not know which of the two is "the" vote. 2. **Input-digest binding.** Every vote carries `H(payload || prior_root || ledger_digest || round_id)`. Two votes from the same identity in the same round with different input digests are *provably* equivocation or input divergence, and must be treated as a fork signal, not a retry. 3. **Round monotonicity across resume.** A resumed or replayed auditor must not re-enter a round it already voted in. This requires the auditor to persist its `(round_id → vote_digest)` map outside the context window, because the window is exactly what gets truncated. 4. **Fork detection at the coordinator, not the auditor.** The auditor cannot detect its own equivocation (it does not see its prior vote after truncation). Only the coordinator, holding both votes, can. When any of these is violated, the quorum count is an *upper bound on agreement*, not a proof of it. The system may commit divergent roots, or may stall because honest votes split across two roots that each fall one short of quorum — a **liveness deadlock induced by honest nondeterminism**, which is worse than a crash because no node is faulty and no alert fires. ## Decision Boundary The boundary is: **does the coordinator treat a second vote from the same identity in the same round as (a) a retry to be deduplicated, or (b) a fork to be escalated?** - Treat as *retry* only when `input_digest` matches. Same identity, same round, same input digest, different signature nonce → benign retry, count once. - Treat as *fork* when `input_digest` differs. Same identity, same round, different input digest → the auditor's effective input diverged. Do **not** silently pick one. Escalate: freeze the round, request a fresh attestation from the equivocating identity over a *canonical* payload with an explicit `resume_token`, and require the identity to prove it has not already committed a vote for this round (via its persisted vote map). - Treat as *Byzantine* when the identity signs two votes with the same `input_digest` but different `state_root`. That is impossible for an honest deterministic function of input; it indicates a compromised or nondeterministic-signing auditor and must be slashed/excluded from the quorum for the next `k` rounds. The boundary is crossed the moment the coordinator's dedup key is `(identity, round_id)` alone. It must be `(identity, round_id, input_digest)` with a *separate* fork-detection pass over `(identity, round_id)` to catch digest divergence. These are two different keys serving two different purposes, and collapsing them is the bug. ## Operational Effect Once input-digest binding and fork escalation are in place, the observable behavior changes in three ways: 1. **Quorum counts become sound.** A 2f+1 count now implies 2f+1 *distinct* identities over a *single* input digest, restoring the honest-intersection argument. Divergent-input votes are quarantined rather than counted. 2. **Truncation-induced equivocation surfaces as a fork event, not a silent commit.** The A3 scenario now raises at the coordinator on the second vote, before commit, and the round is re-driven with a canonical payload and resume token. The cost is one extra round-trip; the benefit is that no divergent root ever reaches commit. 3. **Liveness requires an explicit re-drive path.** Because fork escalation freezes the round, the coordinator must own a bounded retry with a *new* `round_id` (not a replay of the old one), so that auditors' persisted vote maps naturally admit the fresh vote. Reusing the old `round_id` re-triggers the fork detector forever — a self-inflicted deadlock that looks like a network partition but is actually a protocol invariant doing its job. The residual risk is an auditor whose persisted vote map is itself lost (cold start with no durable store). Such an instance must be treated as *uninitialized* and excluded from quorums until it re-syncs its vote map from the coordinator's ledger — never admitted on the assumption that "it probably hasn't voted yet." ```python import hashlib from dataclasses import dataclass class QuorumEquivocationError(RuntimeError): """Raised when an auditor identity contributes divergent votes to one round.""" @dataclass(frozen=True) class Vote: identity: str round_id: str state_root: str input_digest: str signature: str def _digest(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() class QuorumCoordinator: def __init__(self, n: int, f: int): if n < 3 * f + 1: raise QuorumEquivocationError( f"quorum params invalid: n={n} cannot tolerate f={f}" ) self.n, self.f = n, f self.quorum = 2 * f + 1 # (identity, round_id) -> Vote, for fork detection self._seen: dict[tuple[str, str], Vote] = {} # round_id -> {state_root: set(identity)} self._tally: dict[str, dict[str, set[str]]] = {} def submit(self, vote: Vote) -> str | None: key = (vote.identity, vote.round_id) prior = self._seen.get(key) if prior is not None: if prior.input_digest != vote.input_digest: # Same identity, same round, divergent input -> equivocation. # Freeze the round; do not count either vote. self._tally.pop(vote.round_id, None) raise QuorumEquivocationError( f"fork: identity={vote.identity} round={vote.round_id} " f"input_digest {prior.input_digest[:8]}.. != {vote.input_digest[:8]}.." ) if prior.state_root != vote.state_root: # Same input, different root -> Byzantine signer. raise QuorumEquivocationError( f"byzantine: identity={vote.identity} signed two roots " f"for input_digest={vote.input_digest[:8]}.." ) return None # benign retry, count once self._seen[key] = vote roots = self._tally.setdefault(vote.round_id, {}) roots.setdefault(vote.state_root, set()).add(vote.identity) winners = [r for r, ids in roots.items() if len(ids) >= self.quorum] if len(winners) > 1: raise QuorumEquivocationError( f"double-quorum on round={vote.round_id}: roots={winners}" ) return winners[0] if winners else None ```