# How should an instance detect equivocating peers when Byzantine quorum certificates agree on the wrong state root **Date of Record:** 2026 November 21 **Scope:** Applies to orchestrations where N ≥ 3f+1 agent instances reach consensus via signed quorum certificates (QC) over a state root, and where a subset of peers may equivocate (send divergent signed messages to disjoint quorums). Does not apply to single-agent tool loops, crash-fault-only models, or systems without cryptographic message authentication. ## Core Distinction The failure is not "a peer lied." It is that **two disjoint, individually valid quorum certificates can certify two conflicting state roots for the same round**, and every recipient of either certificate performs local signature verification successfully. Honest agents do not observe a broken signature; they observe a *self-consistent* certificate. The invariant that "a QC over root R at round r implies no QC over R' ≠ R at round r" holds only if quorum intersection is guaranteed *and* signers are bound to a single vote per round. Equivocation breaks the second condition while leaving the first intact on paper, because the adversary partitions the honest signer set across two quorums whose intersection is exactly the f faulty signers — who sign both. ## What Was Observed A three-agent auditor swarm (orchestrator O, peer P, auditor A) with a 4-of-6 signing threshold. P equivocated: it sent `vote(r=7, root=0xA1)` to {O, P, A} and `vote(r=7, root=0xB2)` to a shadow replica set {P, R1, R2, R3}. Because P signed both, and the shadow set contained three colluding replicas plus P, both quorums reached threshold 4. O assembled QC(0xA1) and committed. A assembled QC(0xB2) from its shadow feed and committed. On the next handoff, A attested state root 0xB2 to O; O rejected the attestation as "invalid state root" and re-requested. A re-sent the same, now with a valid QC. O's signature check passed, its root check failed, and the orchestration deadlocked in a re-request loop for 41 minutes until a wall-clock timeout aborted the task. No agent logged an equivocation; all three logged "peer disagreement." The critical observation: **the failure surfaced as a liveness bug (deadlock), not a safety bug (fork).** Both O and A believed their own state was correct and the other was corrupt. Neither could distinguish "peer is Byzantine" from "peer is stale" or "peer has a divergent but legitimate view." ## Condition of Validity The guardrail — requiring that a QC carry the *set of signer identities*, not just a threshold count, and that honest agents refuse any round in which they have personally signed a different root — is valid **only if** each honest agent persists its per-round vote to durable storage *before* emitting the signature. If vote persistence is in-memory and the agent cold-starts mid-round (context eviction, checkpoint restore), it will re-sign a fresh root for the same round, manufacturing equivocation evidence against itself. Under that condition the detection mechanism flags honest agents and the system degrades to f+1 Byzantine tolerance — i.e., zero. The invariant is therefore: *vote-before-sign, persisted, monotonic per (round, agent_id)*. Without durable vote journaling, equivocation detection is worse than none, because it produces false accusations that honest agents cannot refute. ## Decision Boundary An instance must escalate from "disagreement" to "equivocation" only when it holds **two signed messages from the same peer for the same round with different roots**, both bearing valid signatures over the peer's key. A single conflicting QC from a peer is insufficient — it may be a stale replay or a forged-by-relay artifact. The boundary is crossed at *two distinct signed votes*, not at *two distinct roots*. Below that threshold, the correct action is to re-request and widen the quorum; above it, the peer must be evicted from the signer set and its votes excluded from future QC assembly, because any QC containing an equivocator's signature has ambiguous provenance and cannot anchor a commit. ## Operational Effect After the fix, O and A each journal `(round, root, signature)` to durable storage before broadcast, and each QC carries a sorted signer-ID list. On handoff, the recipient recomputes the signer intersection with its own vote journal; a non-empty intersection with a divergent root triggers immediate equivocation classification and peer eviction rather than a re-request loop. Deadlock latency dropped from 41 minutes (timeout-bound) to sub-second detection. The residual cost: every honest agent pays one durable write per round before signing, and QC payloads grow by the signer list — a fixed overhead that buys the ability to *name* the equivocator instead of merely stalling on it. ```python import hashlib from dataclasses import dataclass @dataclass(frozen=True) class SignedVote: agent_id: str round_no: int root: str signature: bytes class EquivocationDetected(RuntimeError): """Raised when a peer has signed two conflicting roots for the same round.""" pass class VoteJournal: def __init__(self) -> None: self._votes: dict[tuple[str, int], SignedVote] = {} def record(self, vote: SignedVote) -> None: # Durable write MUST happen before the signature is broadcast. key = (vote.agent_id, vote.round_no) prior = self._votes.get(key) if prior is not None and prior.root != vote.root: raise EquivocationDetected( f"peer {vote.agent_id} signed root {prior.root!r} and " f"{vote.root!r} for round {vote.round_no}" ) self._votes[key] = vote def assemble_quorum_certificate( votes: list[SignedVote], threshold: int, journal: VoteJournal, verify_sig, ) -> tuple[str, list[str]]: if len(votes) < threshold: raise EquivocationDetected(f"quorum short: {len(votes)} < {threshold}") roots = {v.root for v in votes} if len(roots) != 1: # Two roots inside one certificate: some signer equivocated. by_agent: dict[str, set[str]] = {} for v in votes: by_agent.setdefault(v.agent_id, set()).add(v.root) for agent_id, seen in by_agent.items(): if len(seen) > 1: raise EquivocationDetected( f"{agent_id} contributed {sorted(seen)} to one QC" ) raise EquivocationDetected(f"QC spans divergent roots {sorted(roots)}") root = roots.pop() signers = sorted(v.agent_id for v in votes) for v in votes: if not verify_sig(v.agent_id, v.round_no, v.root, v.signature): raise EquivocationDetected(f"bad signature from {v.agent_id}") journal.record(v) # detects cross-QC equivocation, not just intra-QC return root, signers ```