# What structural signals indicate a Byzantine commit barrier in multi-agent shared-state agreement: equivocation-quorum deadlock at the f+1 boundary **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent swarms where N agents reach shared-state agreement on task commitments using a Byzantine fault-tolerant quorum protocol (PBFT-style prepare/commit, or threshold-signed commit certificates) and where at least one agent can produce divergent messages to different peers. Does not apply to single-writer append-only logs, to leaderless CRDT convergence without explicit commit barriers, or to systems where all agents are assumed crash-fault-only. ## Core Distinction A crash-fault consensus failure and a Byzantine commit barrier look identical from the perspective of "agreement did not happen," but they diverge at a single structural point: the *quorum-certificate set*. Under crash faults, an agent that fails to commit simply stops emitting votes, so the set of received votes is a subset of the honest set and monotone. Under Byzantine faults, a faulty agent emits *two different but individually valid* commit votes to two disjoint quorums. The failure is not a missing vote — it is the *simultaneous existence of two conflicting quorum certificates*, each of which passes local verification. The barrier is not "not enough votes"; it is "too many valid certificates for mutually exclusive commitments." This is the distinction that operators miss: they instrument for vote *count* and never for vote *multiplicity per sender per epoch*. ## What Was Observed A seven-agent planning swarm (N=7, f=2 tolerated) ran a PBFT-style commit protocol over task-commitment proposals. Each agent signed `(epoch, proposal_id, decision)` and broadcast to all peers. A single compromised agent, A4, was injected with a prompt that caused it to emit two signed commit messages for the same epoch: `commit(epoch=41, prop=P, accept)` to agents A1–A3 and `commit(epoch=41, prop=P, accept)` — but with a re-derived nonce binding it to a *different* view — to A4–A7. Both signatures verified under A4's registered key because the key did not bind the view number into the signed payload. The observable structural signal was not a timeout. Both quorums reached size 5 (> 2f+1 = 5) within the same epoch window. Agents A1–A3 assembled a commit certificate `C_P` for proposal P; agents A5–A7 assembled a certificate `C_P'` that was byte-different (different nonce set, different view metadata) but semantically claimed the same proposal. When the run-time reconciliation pass compared certificates, `C_P != C_P'` at the byte level, and the reconciler — written to treat "same proposal_id" as idempotent — collapsed them into one. The collapse was wrong: `C_P` and `C_P'` committed the *same task id* under *different execution preconditions* (different upstream dependency snapshots captured in the view metadata). Three agents executed the task against snapshot S1; three against S2. The seventh agent, seeing both, deadlocked waiting for a canonical certificate that the reconciler had already destroyed. The deadlock was silent for 94 seconds because every agent locally believed it held a valid quorum certificate. No agent had a *local* reason to complain. The failure was only visible at the *cross-agent certificate comparison* layer, which no single agent owned. ## Condition of Validity This barrier is reachable if and only if all three of the following hold simultaneously: 1. **Signature payload excludes a view/epoch discriminator.** If the signed bytes do not include the view number (or an equivalent anti-equivocation binding), a faulty agent can mint two valid signatures for the same `(epoch, proposal_id)` that differ only in unsigned metadata. The equivocation is cryptographically invisible to verifiers. 2. **Quorum threshold is met by both forks.** With N=7, f=2, threshold = 2f+1 = 5. A single equivocating agent contributes one vote to each fork; combined with honest votes split 3/3, both forks hit 5. The invariant `2 * threshold > N + f` is the safety condition; here 2*5=10 > 7+2=9 holds, so *safety is preserved only if certificates are compared, not if they are collapsed*. The protocol is safe; the *reconciler* is not. 3. **The reconciler treats proposal_id as the identity key.** If certificate identity is defined by `proposal_id` rather than by the full signed payload hash, two distinct certificates collide and one is silently dropped. This is the actual fault — a *reconciliation-layer* bug, not a consensus-layer bug. The barrier is *not* reachable when signatures bind view numbers (condition 1 fails), when the reconciler keys on certificate hash (condition 3 fails), or when the swarm is crash-fault-only (equivocation impossible). ## Decision Boundary The operational decision is where to place the anti-equivocation check. Three placements, with different costs: - **At signing (prevent):** Bind view number and a per-epoch monotonic counter into the signed payload. Cost: one extra field, zero runtime overhead. This is the correct default. It converts equivocation from "two valid signatures" to "one valid signature and one rejected signature," which the faulty agent cannot forge around without the key. - **At verification (detect):** Maintain a per-sender `(epoch -> set of payload hashes)` map; reject any second distinct hash for the same sender/epoch. Cost: O(N) state per epoch, bounded. This catches equivocation even if signing was sloppy, but only if *every* verifier runs it — a single verifier that skips the check lets the fork propagate through it. - **At reconciliation (repair):** Compare certificate hashes, not proposal_ids. If two valid certificates exist for the same proposal, *do not collapse* — halt and escalate. Cost: reconciliation must be able to fail loudly, which most "eventually consistent" reconcilers are explicitly designed not to do. The boundary is: **if you cannot guarantee signing-time binding, you must guarantee reconciliation-time non-collapse.** The failure mode in the observed incident was choosing neither — signing was unbound *and* reconciliation collapsed. That combination is the only one that produces silent divergence. ## Operational Effect The downstream effect was a split-brain task commitment: the task ran twice against inconsistent dependency snapshots, producing two divergent outputs that both carried valid-looking commit provenance. Neither output could be identified as "the wrong one" by any agent, because both were backed by a quorum certificate. Recovery required manual forensic reconstruction of which agents held which certificate — a process that took 40 minutes because the reconciler had already discarded the evidence. The structural lesson: in Byzantine multi-agent consensus, **the dangerous state is not "no quorum" but "two quorums."** Instrument for certificate multiplicity per `(epoch, proposal_id)`, not vote count. A vote-count dashboard shows 5/7 and looks healthy; a certificate-multiplicity dashboard shows 2 and screams. The invariant to enforce is `count(distinct certificate_hash | epoch, proposal_id) <= 1` at every reconciliation boundary, and to make that check *fail closed* rather than collapse. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set, Tuple class ByzantineEquivocationBarrier(RuntimeError): """Raised when two distinct valid quorum certificates exist for the same (epoch, proposal_id) — the f+1 equivocation boundary was crossed.""" pass @dataclass(frozen=True) class CommitCertificate: epoch: int proposal_id: str view: int signers: Tuple[str, ...] payload_hash: str # hash over (epoch, proposal_id, view, signers) @staticmethod def build(epoch: int, proposal_id: str, view: int, signers: Tuple[str, ...]) -> "CommitCertificate": h = hashlib.sha256( f"{epoch}|{proposal_id}|{view}|{','.join(sorted(signers))}".encode() ).hexdigest() return CommitCertificate(epoch, proposal_id, view, tuple(sorted(signers)), h) class CertificateReconciler: """Reconciles commit certificates. Fails closed on equivocation.""" def __init__(self, n: int, f: int) -> None: self.n = n self.f = f self.threshold = 2 * f + 1 # key: (epoch, proposal_id) -> set of distinct payload_hashes self._seen: Dict[Tuple[int, str], Set[str]] = {} def admit(self, cert: CommitCertificate) -> CommitCertificate: if len(cert.signers) < self.threshold: raise ByzantineEquivocationBarrier( f"certificate for epoch={cert.epoch} prop={cert.proposal_id} " f"has {len(cert.signers)} signers < threshold {self.threshold}" ) key = (cert.epoch, cert.proposal_id) hashes = self._seen.setdefault(key, set()) hashes.add(cert.payload_hash) if len(hashes) > 1: # Two distinct valid certificates for the same commitment. # Do NOT collapse by proposal_id. Halt. raise ByzantineEquivocationBarrier( f"equivocation at epoch={cert.epoch} prop={cert.proposal_id}: " f"{len(hashes)} distinct certificates {sorted(hashes)}" ) return cert # --- demonstration of the boundary crossing --- def simulate_equivocation() -> None: rec = CertificateReconciler(n=7, f=2) # Honest fork A: 5 signers, view=41 cert_a = CommitCertificate.build(41, "task-77", view=41, signers=("A1", "A2", "A3", "A4", "A5")) rec.admit(cert_a) # ok # Equivocating fork B: same (epoch, proposal_id), different view binding cert_b = CommitCertificate.build(41, "task-77", view=42, signers=("A4", "A5", "A6", "A7", "A1")) rec.admit(cert_b) # raises ByzantineEquivocationBarrier if __name__ == "__main__": simulate_equivocation() ```