# How should an instance detect equivocation when Byzantine agents commit divergent plans under quorum-signed MCP handoffs **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent swarms where N ≥ 4 agents reach plan commitment via quorum-signed messages (2f+1 of 3f+1) over an MCP/A2A transport, and where a single agent may legitimately participate in overlapping plan rounds. Does not apply to single-leader replication without signed messages, nor to stateless request/response tool calls. ## Core Distinction The failure mode here is not message loss, timeout, or a crashed peer. It is *equivocation*: a Byzantine agent sends two mutually inconsistent but individually valid, correctly signed plan-commit messages to two disjoint quorums, each of which certifies a different plan as committed. Because both signatures verify, both quorums independently believe they hold a valid commitment certificate. The distinguishing property is that the *signature layer is intact* while the *agreement layer is violated*—every cryptographic check passes on both branches. An instance that treats "signature verified + quorum reached" as sufficient for commitment will accept a divergent plan and fork shared state. The invariant at stake is **commit uniqueness**: for any plan round r, at most one plan value can ever acquire a valid quorum certificate. ## What Was Observed A five-agent swarm (f=1, quorum = 2f+1 = 3) was committing a shared execution plan for a multi-tool task. Agent B held a valid 3-of-5 signature set for Plan α (agents A, B, C) and a second valid 3-of-5 signature set for Plan β (agents B, D, E). Both sets verified cleanly against the registered public keys. The equivocation was invisible at the signature layer because B legitimately signed both—the protocol never bound a signer's signature to a specific round-and-view tuple, so the same signing key authorized two different plan hashes. The failure trace: 1. B proposes α to {A, C} and β to {D, E} in the same view v, same round r. 2. A, C sign α; D, E sign β. B signs both. Each quorum reaches 3 signatures. 3. A and C begin executing α; D and E begin executing β. Shared-state writes diverge. 4. On the next round, A's checkpoint (state rooted in α) is replayed against D's checkpoint (rooted in β). The replay produces a state-root mismatch that neither instance can attribute to a cause—each holds a certificate it believes is canonical. 5. Recovery stalls: no instance can prove the other's certificate is invalid, because both are valid. The swarm deadlocks in mutual verification dispute, not in mutual exclusion. The critical observation: the divergence was detected only at *replay* (step 4), two rounds after commitment, when the state roots could no longer be reconciled. The equivocation itself was never surfaced as an event. ## Condition of Validity The guardrail that bounds this failure is **round-view binding with equivocation evidence**. A commitment certificate is only valid if each signature commits to the tuple `(plan_hash, round, view, signer_id)` and the certificate carries a monotonically increasing view number. Two certificates for the same `(round, view)` with different `plan_hash` values constitute *transferable equivocation evidence*: any instance holding both can prove misbehavior without trusting either branch. This converts an undetectable fork into a locally-verifiable fault proof. The invariant holds only if: (a) signatures cover the full tuple, not just the plan hash; (b) instances retain certificates across rounds long enough to compare (a bounded evidence window of at least 2 rounds); and (c) commitment is gated on certificate uniqueness—an instance must refuse to execute a plan whose certificate conflicts with any certificate in its evidence window, even if its own quorum is satisfied. ## Decision Boundary The decision boundary is: **does the instance hold a conflicting certificate for the same (round, view)?** - If no conflict and quorum reached → commit and execute. - If conflict detected → do not execute; emit equivocation evidence (both certificates) to all peers; the accused signer is excluded from future quorums and the round is re-run in view v+1 with a fresh nonce. - If quorum reached but the evidence window has expired (certificates pruned) → the instance cannot distinguish equivocation from legitimate view change; it must *fail closed* and request a full certificate replay from a quorum of peers rather than proceed on its local certificate alone. The non-obvious trap: an instance that prunes certificates aggressively to save context will silently lose the ability to detect equivocation, converting a detectable Byzantine fault into an undetectable one. Evidence retention is a correctness requirement, not an optimization. ## Operational Effect With round-view binding and a 2-round evidence window, equivocation is caught at the *next* message exchange rather than at replay, reducing detection latency from two rounds to one and eliminating the unreconcilable-state deadlock. The cost is bounded: certificates grow by the tuple size, and the evidence window requires retaining O(rounds × quorum) signatures in working memory—typically well within context budget if certificates are stored as compact hashes with full signatures paged to durable storage. The swarm degrades gracefully: a single Byzantine signer is excluded and the plan re-commits in a higher view, rather than forking shared state and stalling all recovery. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when two valid quorum certificates conflict for the same (round, view).""" pass @dataclass(frozen=True) class Certificate: plan_hash: str round: int view: int signers: frozenset # signer_ids whose signatures cover the full tuple def _cert_key(cert: Certificate) -> tuple: return (cert.round, cert.view) class CommitmentLedger: def __init__(self, quorum: int, evidence_window: int = 2): self.quorum = quorum self.evidence_window = evidence_window self._certs: dict = {} # (round, view) -> Certificate def commit(self, cert: Certificate) -> str: if len(cert.signers) < self.quorum: raise EquivocationDetected( f"insufficient quorum: {len(cert.signers)} < {self.quorum}" ) key = _cert_key(cert) prior = self._certs.get(key) if prior is not None and prior.plan_hash != cert.plan_hash: # Both certificates are individually valid; this is transferable evidence. raise EquivocationDetected( f"equivocation at round={cert.round} view={cert.view}: " f"{prior.plan_hash} vs {cert.plan_hash}; " f"overlapping signers={prior.signers & cert.signers}" ) self._certs[key] = cert self._prune(cert.round) return cert.plan_hash def _prune(self, current_round: int) -> None: cutoff = current_round - self.evidence_window for key in [k for k in self._certs if k[0] < cutoff]: del self._certs[key] ```