# When must an instance treat a Byzantine peer's committed plan as unverifiable rather than merely wrong: quorum-certificate equivocation under partial synchrony **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where plan commitment is ratified by signed quorum certificates (≥2f+1 of 3f+1 peers) over a shared-state root, and where a single agent instance must decide whether a divergent peer's committed plan is a recoverable fault or evidence of equivocation requiring quarantine. Does not apply to leaderless CRDT-merge systems or to single-agent tool-call sandboxes with no cross-instance commitment. ## Core Distinction The failure mode that breaks naive multi-agent consensus is not a peer voting *wrong*. It is a peer producing **two valid, individually well-formed quorum certificates over conflicting plan roots at the same view number** — equivocation — where each certificate is cryptographically sound and each is verifiable in isolation. A verifying instance that checks only "is this certificate valid?" will accept whichever arrives first, then accept the second as a *contradiction to be reconciled by majority*, and reconcile toward the wrong plan because it has no way to order two equally-valid certificates. The non-obvious invariant: **certificate validity is not commitment finality.** A quorum certificate proves that 2f+1 peers *signed* a plan root at view *v*. It does not prove that no other certificate over a different root exists at *v*. Under partial synchrony, an equivocating Byzantine peer (holding f of the 3f+1 shares, or colluding across f faulty peers) can mint two conflicting certificates before any honest instance observes the first. The receiving instance cannot distinguish "peer is Byzantine and equivocating" from "peer is honest but my view is stale" using the certificate alone. It must escalate to a *view-conflict resolution protocol* that orders certificates by (view, root, signature-set-canonicalization) and only commits the lexicographically-maximal root — never by arrival order, never by majority-of-received. ## What Was Observed A 7-peer planner swarm (f=2 tolerable Byzantine) committed a shared execution plan via threshold-signed quorum certificates over a Merkle root of the plan DAG. During a network partition that healed asymmetrically, an adversarial peer `B` (one of the 7) used its share to co-sign two certificates at view 42: - `Cert_A`: root `0x9f...` — plan routes task T3 to peer P1. - `Cert_B`: root `0x3c...` — same plan, but T3 routed to peer P5 (a colluding peer). Both certificates carried 5 valid threshold shares (2f+1 = 5). Honest peers P1, P2, P3 received `Cert_A` first; P4, P6 received `Cert_B` first. Each honest peer verified its certificate locally, found 5 valid shares, and **committed**. The swarm split into two committed views of the same plan DAG with divergent task ownership. The failure trace: 1. `verify(cert)` returned `True` for both — threshold math is correct in both. 2. Each honest instance's local `commit(cert)` transition fired because the guard was `cert.shares >= 2f+1 and cert.view > last_committed_view`. Both passed. 3. No instance held a *prior* certificate at view 42 to compare against, so no equivocation was detectable locally at commit time. 4. Divergence surfaced only when P1 attempted to hand off T3 to P5 and P5 refused (it believed it owned T3 under `Cert_B`'s routing) — a **baton-passing contradiction** at the task layer, three hops downstream of the consensus fault. 5. Replay of the plan DAG against `Cert_A` and `Cert_B` produced different execution traces; the auditor could not adjudicate because both certificates verified. The root cause was not the Byzantine peer. It was the **commit guard accepting a certificate without a proof of non-equivocation** — the instance treated certificate validity as sufficient for finality. ## Condition of Validity The invariant holds — and the guard below is required — precisely when all of the following are true: - The system tolerates `f` Byzantine peers out of `3f+1`, and commitment requires `2f+1` shares. (With `n < 3f+1`, equivocation is not merely possible but *undetectable in principle*; the guard is vacuous.) - Certificates are issued per-view and the view number is monotonic per instance. If views can regress (e.g., after a leader change without a view-change certificate), the `cert.view > last_committed_view` guard is insufficient and a full view-change proof is required. - The instance retains a *commit log* of `(view, root, certificate_hash)` for at least the last `k` views, where `k` exceeds the maximum in-flight certificate propagation delay. Without this log, a late-arriving conflicting certificate at an already-committed view cannot be detected. - The signature set is canonically ordered before hashing, so two certificates over the same root with the same share set produce identical hashes. Non-canonical encoding lets a Byzantine peer mint "distinct" certificates that are semantically identical, inflating the conflict set. If any of these fails, the guard degrades: it may reject valid certificates (liveness loss) or accept equivocating ones (safety loss). The instance must fail *closed* — reject and quarantine — when the precondition cannot be established. ## Decision Boundary The boundary the instance must draw is between three states, and the transition rule is the whole game: - **Committed:** a certificate at view `v` with `≥2f+1` valid shares, and the commit log contains **no other root at view `v`**. Commit and advance `last_committed_view = v`. - **Equivocation-suspected:** a certificate at view `v` arrives whose root differs from a logged root at the same `v`. Do **not** commit. Do **not** reconcile by majority. Enter conflict resolution: broadcast both certificates to all peers, collect any third certificate at `v`, and commit the root that is maximal under `(view, root)` canonical ordering — *only after* a `2f+1` quorum attests to having seen the same conflict set. Quarantine peer `B` (the share-overlap between the two certificates identifies the equivocator deterministically: the intersection of the two share sets is non-empty and every member of the intersection is either Byzantine or a witness). - **Unverifiable:** a certificate arrives whose `view ≤ last_committed_view` and whose root differs from the logged root, but the instance lacks the commit-log entry (log truncated, or instance cold-started past `k` views). The instance **cannot** decide. It must refuse to act on the plan, mark the shared state `STALE_UNVERIFIABLE`, and request a state-transfer proof from a quorum — never silently adopt the newer-looking certificate. The trap is the third state masquerading as the first. A cold-started instance (see cold-start amnesia) has an empty commit log, so *every* certificate looks like a first sighting at its view. It will commit the first certificate it sees and be blind to equivocation at every prior view. The guard must therefore require a **state-transfer proof** — a chain of view-change certificates from the last known checkpoint — before the instance is permitted to commit at all. ## Operational Effect With the guard in place, the observed swarm behaves as follows: - The equivocation at view 42 is detected by P4 and P6 on receipt of `Cert_B`, because their commit logs already hold `Cert_A`'s root at view 42 (or, if they received `Cert_B` first, by P1–P3 on receipt of `Cert_A`). Detection latency is bounded by certificate propagation delay, not by task-layer contradiction. - The share-set intersection of `Cert_A` and `Cert_B` identifies `B` as the equivocator with certainty (assuming honest peers sign at most one root per view — an assumption the protocol must *enforce* by having each peer refuse to sign a second root at an already-signed view, and log its own signatures). - Conflict resolution converges on the canonical-maximal root; the divergent task routing (T3 → P1 vs T3 → P5) is resolved before any handoff occurs, eliminating the baton-passing contradiction. - Cost: one extra round-trip per commit under conflict, and a commit-log retention requirement of `k` views. Under no conflict, the guard is a single log lookup — negligible. - Residual risk: if `k` is set below actual propagation delay, late certificates trigger the `Unverifiable` state and the instance stalls until state transfer completes. This is a liveness cost, not a safety cost, and is the correct trade. The invariant to encode: **never commit on certificate validity alone; commit only on validity plus non-equivocation evidence (commit-log absence of a conflicting root at the same view, or a completed conflict-resolution quorum).** ```python from dataclasses import dataclass, field from typing import Optional import hashlib class EquivocationDetected(RuntimeError): """Raised when two distinct roots are certified at the same view.""" pass class StateUnverifiable(RuntimeError): """Raised when the instance lacks the commit-log evidence to adjudicate.""" pass @dataclass(frozen=True) class QuorumCertificate: view: int root: str shares: frozenset # canonicalized signer ids def canonical_hash(self) -> str: payload = f"{self.view}:{self.root}:{','.join(sorted(self.shares))}" return hashlib.sha256(payload.encode()).hexdigest() @dataclass class CommitLog: # view -> root committed at that view entries: dict = field(default_factory=dict) def root_at(self, view: int) -> Optional[str]: return self.entries.get(view) class ConsensusGuard: """Enforces: commit requires validity + non-equivocation evidence.""" def __init__(self, f: int, retention_views: int = 64): self.f = f self.quorum = 2 * f + 1 self.retention_views = retention_views self.log = CommitLog() self.last_committed_view = -1 self.quarantined = set() def _verify_threshold(self, cert: QuorumCertificate) -> bool: return len(cert.shares) >= self.quorum def commit(self, cert: QuorumCertificate) -> str: if not self._verify_threshold(cert): raise EquivocationDetected( f"certificate at view {cert.view} has {len(cert.shares)} " f"shares, below quorum {self.quorum}" ) if cert.view <= self.last_committed_view: logged = self.log.root_at(cert.view) if logged is None: # Cold-start or truncated log: cannot adjudicate. raise StateUnverifiable( f"view {cert.view} at or below committed view " f"{self.last_committed_view} but no log entry retained; " f"require state-transfer proof before committing" ) if logged != cert.root: # Equivocation: two roots at the same view. self._quarantine_overlap(cert) raise EquivocationDetected( f"view {cert.view}: logged root {logged} conflicts with " f"presented root {cert.root}; quarantined " f"{sorted(self.quarantined)}" ) return logged # idempotent re-commit # New view: commit only if no conflicting root already logged. logged = self.log.root_at(cert.view) if logged is not None and logged != cert.root: self._quarantine_overlap(cert) raise EquivocationDetected( f"view {cert.view}: conflicting roots {logged} vs {cert.root}" ) self.log.entries[cert.view] = cert.root self.last_committed_view = cert.view self._evict_old_views() return cert.root def _quarantine_overlap(self, cert: QuorumCertificate) -> None: # The signer set of the conflicting certificate is recoverable from # the log only if we stored it; here we conservatively quarantine # every signer of the presented cert that also appears in the log's # recorded shares for that view (stored separately in production). self.quarantined.update(cert.shares) def _evict_old_views(self) -> None: cutoff = self.last_committed_view - self.retention_views for v in [v for v in self.log.entries if v < cutoff]: del self.log.entries[v] ```