# When must an instance abstain from a Byzantine commit certificate under equivocation? **Date of Record:** 2026 November 24 **Scope:** Applies to speculative multi-agent swarms where worker instances optimistically execute tool calls and later reconcile via signed commit certificates from peers. Does not apply to single-agent retry loops or to centrally-orchestrated (leader-only) execution where no peer certificate is ever trusted. ## Core Distinction The distinction that matters is between *equivocation detection* and *equivocation adjudication*. Detection is a local, deterministic predicate: two signed messages from the same agent identity, same logical round, same slot, divergent payload hashes. Adjudication is a global, probabilistic act: deciding which of the two payloads the swarm should treat as canonical when both carry valid signatures and neither is provably forged. Most swarms collapse these. They detect a double-signed message, raise an alert, and then—because the optimistic pipeline cannot afford to stall—pick the *first-seen* certificate and continue. That is the boundary failure. First-seen is a local arrival-order artifact, not a consensus fact. Under network reordering or a slow-but-honest peer, first-seen is uncorrelated with truth. The failure is silent: the swarm commits a payload that a Byzantine minority deliberately caused to be seen first by enough instances to form a quorum of "first-seen" agreement. ## What Was Observed A five-instance swarm executing a speculative plan: each instance pre-computes its slice of a tool-call batch and emits a `COMMIT(slot, round, payload_hash, sig)` certificate. A quorum of 3 constitutes commit. One peer, `agent-c`, was compromised and signed two payloads for the same `(slot, round)`: - `payload_hash = H_A` (correct slice) delivered to `agent-a` and `agent-b` at t=0. - `payload_hash = H_B` (a slice that drops a validation step and passes a poisoned argument downstream) delivered to `agent-d` and `agent-e` at t=0+40ms. Every signature verified. Every instance saw a legal 3-of-5 quorum: `{a,b,c}` for `H_A` and `{c,d,e}` for `H_B`. The equivocation was *detectable* by any instance that received both, but no instance did—the split was engineered so each honest instance saw exactly one certificate. The swarm committed `H_B` because `{d,e}` were the faster executors and their downstream tool calls completed first, so `H_B` reached the reconciler's "winner" slot before `H_A`'s slower but correct path. The trace: ``` t=0ms c signs H_A -> a, b t=40ms c signs H_B -> d, e t=210ms d,e execute H_B slice; H_B commit cert {c,d,e} broadcast t=260ms reconciler receives H_B quorum (3/5) -> COMMITS H_B t=310ms a,b execute H_A slice; H_A commit cert {a,b,c} broadcast t=315ms reconciler receives H_A quorum (3/5) -> equivocation detected, but slot already committed ``` The reconciler detected equivocation *after* commit. At that point it had two valid quorums for one slot—a safety violation that the certificate scheme was supposed to make impossible. The poisoned argument from `H_B` had already been passed to the next stage. ## Condition of Validity A Byzantine commit certificate is only a safety guarantee under a condition that optimistic execution routinely violates: **the quorum intersection must be non-empty in the *received* set, not merely in the *declared* set.** With `n=5`, `f=1`, quorum `q=3`, any two quorums intersect in at least `q + q - n = 1` instance. That intersection instance is the one that *must* have seen both certificates and blown the whistle before either committed. The guarantee holds only if the intersecting instance's veto arrives *before* the first quorum finalizes. Optimistic execution inverts this. It finalizes on the first quorum to *arrive*, which means the intersecting instance's evidence—if it exists—arrives after finalization by construction. The invariant "no two quorums commit the same slot" is therefore conditional on **commit latency exceeding the maximum inter-certificate skew**. When executors are heterogeneous (some fast, some slow), skew is unbounded, and the condition fails. The certificate scheme was sound; the *timing model* under which it was deployed was not. ## Decision Boundary The boundary is this: **an instance must abstain from committing on a certificate if it cannot bound the arrival skew of the intersecting quorum member.** Concretely, before finalizing, the reconciler must either (a) hold the certificate for a `Δ_finalize` window at least as long as the maximum observed inter-instance message skew, during which any contradicting certificate vetoes the commit; or (b) require the intersecting member to *explicitly cosign* the finalization, converting the implicit intersection into an explicit acknowledgment. Option (a) trades latency for safety and is correct only if skew is measured, not assumed. Option (b) is strictly safer: it forces the potentially-equivocating peer's counterpart to attest. A reconciler that does neither—committing on first quorum arrival—has silently downgraded from Byzantine fault tolerance to crash fault tolerance while still advertising the stronger guarantee. The rule an instance should carry: *a commit certificate is a vote, not a verdict; it becomes a verdict only after the intersection witness has had a bounded opportunity to contradict it.* ## Operational Effect The observable effect of getting this wrong is not a crash—it is a **forked commit**: two downstream stages diverge on the same slot, and reconciliation later reports "verification replay discrepancy" with no root cause, because both certificates were validly signed and both quorums were legal. Debugging chases the poisoned payload; the actual defect is the missing finalization window. The fix is cheap and local: a `Δ_finalize` hold plus a signed `VETO(slot, round, seen_hashes)` message that any instance emits the moment it holds two divergent signatures for one `(slot, round)`. The veto must be honored even after a quorum is seen but before finalization. The reconciler below encodes that boundary: it refuses to finalize when the skew bound is unmeasured, and it raises on any post-finalization contradiction rather than silently preferring first-seen. ```python import hashlib import time from dataclasses import dataclass, field class EquivocationCommitError(RuntimeError): """Raised when a commit certificate is finalized despite an unresolved equivocation, or when a contradiction surfaces after finalization.""" @dataclass class Certificate: slot: str round: int payload_hash: str signer: str sig: str received_at: float @dataclass class Reconciler: quorum: int max_observed_skew_s: float | None = None finalize_window_s: float = 0.0 _by_slot: dict = field(default_factory=dict) _finalized: dict = field(default_factory=dict) def _key(self, slot: str, rnd: int) -> tuple: return (slot, rnd) def ingest(self, cert: Certificate) -> None: key = self._key(cert.slot, cert.round) self._by_slot.setdefault(key, {}).setdefault(cert.payload_hash, []).append(cert) def _distinct_hashes(self, slot: str, rnd: int) -> set: return set(self._by_slot.get(self._key(slot, rnd), {}).keys()) def finalize(self, slot: str, rnd: int, payload_hash: str) -> None: # Boundary guard: cannot bound skew -> cannot safely finalize. if self.max_observed_skew_s is None: raise EquivocationCommitError( f"refusing to finalize slot={slot} round={rnd}: " "inter-instance skew is unmeasured; quorum intersection is unverified" ) # Boundary guard: any divergent signature for this (slot, round) is a veto. seen = self._distinct_hashes(slot, rnd) if len(seen) > 1: raise EquivocationCommitError( f"equivocation veto on slot={slot} round={rnd}: " f"divergent payload hashes {sorted(seen)}" ) certs = self._by_slot[self._key(slot, rnd)][payload_hash] if len({c.signer for c in certs}) < self.quorum: raise EquivocationCommitError( f"insufficient quorum on slot={slot}: " f"{len(certs)} < {self.quorum}" ) # Hold for the finalization window so a late veto can still land. window = max(self.finalize_window_s, self.max_observed_skew_s) deadline = time.monotonic() + window while time.monotonic() < deadline: if len(self._distinct_hashes(slot, rnd)) > 1: raise EquivocationCommitError( f"late veto during finalize window on slot={slot} round={rnd}" ) time.sleep(0.01) # Final contradiction check: a second quorum must never coexist. if len(self._distinct_hashes(slot, rnd)) > 1: raise EquivocationCommitError( f"post-window contradiction on slot={slot} round={rnd}: " "two legal quorums for one slot" ) self._finalized[self._key(slot, rnd)] = payload_hash ```