# How does an instance detect equivocation in a Byzantine quorum before committing shared agent state? **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where N agents reach quorum agreement on a task-commitment ledger (shared state) under an f < N/3 Byzantine fault assumption, using signed message logs. Does not apply to single-agent tool-calling loops or to leaderless gossip protocols without signed equivocation evidence. ## Core Distinction The failure mode that matters is not a *lying* agent—agents lie constantly in the form of hallucinated outputs, and downstream verification handles that. The failure that breaks consensus is an agent that emits **two internally-consistent, correctly-signed, mutually-contradictory commitments** to two disjoint subsets of the quorum, each subset seeing a locally valid history. A single signed vote is indistinguishable from a correct vote. Equivocation is only detectable *relationally*—by comparing what one agent told peer A against what it told peer B—and only if every instance retains the signed envelope it received rather than just the aggregated tally it derived. The boundary is this: an instance that commits on the basis of *count of distinct signers* cannot detect a Byzantine agent that signs two conflicting proposals, because both count as one signer in each partition. Detection requires the invariant that a quorum certificate is invalid unless every included signature commits to the *same* proposal hash, and that any two conflicting signed proposals from the same identity are retained as portable evidence. ## What Was Observed A five-agent commitment quorum (tolerance f=1) was tasked with agreeing on a shared plan hash for a multi-step refactor. Agent `D` (Byzantine) received the prepare proposal `P=0xA1` and signed it; simultaneously, on a partitioned link, it received a re-proposal `P=0xB7` from a competing view and signed that too. Agents `A` and `B` collected signatures for `0xA1`; agents `C` and `E` collected signatures for `0xB7`. Each side reached "3 of 5" and each side's local ledger recorded a *committed* plan. The two ledgers diverged. No single message was malformed, no signature failed verification, and no timeout fired—the equivocation was invisible to every per-message check. The divergence surfaced only three steps later when `A` attempted to resume a checkpoint keyed to `0xA1` against a workspace `E` had already mutated per `0xB7`, producing a replay mismatch that looked like memory corruption rather than a consensus fault. The trigger condition is precise: equivocation is undetectable by any instance that discards received envelopes after tallying, and undetectable whenever the two conflicting messages are never co-located in one instance's evidence store. The failure requires only that the two conflicting signed messages reach *different* honest instances and that no honest instance ever compares them. ## Condition of Validity The guardrail holds only under three simultaneous conditions. First, **proposal-binding quorum certificates**: a certificate is valid iff the set of signatures all sign the identical `(view, proposal_hash)` tuple—never a set of signatures over *any* proposal. Second, **evidence retention**: every instance persists raw signed envelopes for the duration of the commitment epoch, because equivocation proof is a *pair* of conflicting signed messages and evaporates if either is garbage-collected. Third, **cross-instance dissemination of suspicion**: an instance holding one envelope cannot alone conclude fault; it must broadcast the envelope so a peer holding the conflicting one can assemble the proof. If any of these three fails—tally-only aggregation, envelope pruning, or no suspicion gossip—the protocol silently degrades to crash-fault tolerance while still *claiming* Byzantine tolerance. ## Decision Boundary An instance must refuse to commit when it holds two signed proposals from the same identity for the same view with differing hashes—this is unambiguous, portable equivocation evidence and must be broadcast as a fault proof, not merely locally rejected. It must *not* refuse to commit merely because it sees a signature for a proposal it did not itself propose; that is normal view-change traffic, not fault. The hard boundary: **absence of evidence is not evidence of absence.** An instance that has collected a valid, proposal-bound quorum certificate but has not yet received the conflicting envelope from a peer is *entitled* to commit—it cannot wait indefinitely for a proof that may never arrive—but it must retain its envelopes and accept retroactive invalidation if a fault proof later surfaces during the same epoch. The decision is therefore two-phase: commit optimistically on a bound certificate, but treat commit as *provisional* until the epoch closes without a disseminated fault proof. ## Operational Effect Without proposal-binding, a quorum of 3/5 commits two contradictory plans and the system forks its shared state—subsequent checkpoint/resume and tool-call replay operate against mutually inconsistent worlds. With proposal-binding plus envelope retention plus suspicion gossip, the first instance to receive the second conflicting envelope assembles a fault proof, broadcasts it, and every honest instance aborts the epoch and re-enters view change with `D` excluded. The cost is storage of raw envelopes per epoch and a gossip round on suspicion; the benefit is that equivocation becomes a *detectable, attributable* event rather than an invisible fork that masquerades as memory drift three steps downstream. ```python from dataclasses import dataclass from typing import Dict, List, Tuple class EquivocationDetected(RuntimeError): """Raised when one identity signed two conflicting proposals in one view.""" pass @dataclass(frozen=True) class SignedProposal: signer: str view: int proposal_hash: str signature: str # assumed already verified against signer's key class CommitmentLedger: def __init__(self, quorum_size: int): self.quorum_size = quorum_size # Retain raw envelopes per (signer, view) so conflicting pairs can be assembled. self._envelopes: Dict[Tuple[str, int], List[SignedProposal]] = {} self._committed: Dict[int, str] = {} def record(self, env: SignedProposal) -> None: key = (env.signer, env.view) seen = self._envelopes.setdefault(key, []) if env not in seen: seen.append(env) # Equivocation invariant: same signer, same view, differing hashes. hashes = {e.proposal_hash for e in seen} if len(hashes) > 1: proof = tuple(seen) raise EquivocationDetected( f"signer={env.signer} view={env.view} signed conflicting " f"proposals {sorted(hashes)}; broadcast proof={proof}" ) def try_commit(self, view: int, proposal_hash: str, cert: List[SignedProposal]) -> None: # Proposal-binding: every signature must bind the identical tuple. if any(e.view != view or e.proposal_hash != proposal_hash for e in cert): raise EquivocationDetected( f"certificate for view={view} hash={proposal_hash} is not " f"proposal-bound; mixed signatures detected" ) distinct = {e.signer for e in cert} if len(distinct) < self.quorum_size: return # insufficient quorum; remain uncommitted # Provisional commit: valid only until epoch closes without fault proof. self._committed[view] = proposal_hash ```