# What structural signals indicate a quorum-certificate equivocation window in Byzantine multi-agent task commit **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 agent instances commit shared task state via signed quorum certificates (QC) and reconcile divergent branches by longest-certified-chain or view-change rule. Does not apply to single-writer CRDT stores or to leaderless gossip protocols without explicit certificates. ## Core Distinction The failure mode is not a crashed or lying agent. It is a *structurally valid* quorum certificate that two disjoint majorities can each produce for conflicting task-commit payloads during the same view, because the QC binds to `(view, payload_hash)` but the reconciliation rule binds only to `(view, height)`. When a Byzantine agent withholds its vote from quorum A, releases it to quorum B after A's certificate is broadcast, and the reconciler accepts the highest-height QC without re-verifying payload agreement across *all* certificates at that height, the system commits two mutually exclusive task outcomes. This is equivocation at the certificate layer, not at the message layer, and it leaves no crash signature, no timeout, and no vote-count anomaly in per-node logs. The invariant that fails is: *for any height h, at most one payload is certified by a quorum intersecting every other quorum at h.* Standard BFT proofs assume the intersection set is honest and will refuse to double-sign. That assumption holds for the vote, but not for the *certificate aggregation* step when the aggregator is a separate service that accepts late-arriving shares and does not enforce a per-(height, signer) nonce. ## What Was Observed A six-agent swarm (f=1, quorum=4) executing a shared task ledger. During a view change triggered by leader latency, the reconciler observed two QCs at height 412: - QC-A: signed by agents {1,2,3,4}, payload `task=rebalance_partition_7`, timestamp T. - QC-B: signed by agents {3,4,5,6}, payload `task=abort_partition_7`, timestamp T+40ms. Both are valid 4-of-6 quorums. Intersection = {3,4}, both honest. The double-sign should be impossible. The trace shows agent 3 and agent 4 signed *both* payloads. Root cause: the vote-signing routine signed `hash(view, height, payload)` — payload included — so signing two payloads at the same height was not a protocol violation from the signer's perspective. The nonce was keyed on `(view, height)` only in the *aggregator*, which deduped shares by signer ID and silently dropped the second share from agents 3 and 4 for QC-B, then re-admitted them when QC-A's aggregation timed out and the shares were re-submitted under a retry flag that reset the dedup set. The retry flag was the equivocation window: ~200ms wide, exactly the aggregator's retry timeout. Structural signals present in the logs, in order of reliability: 1. **QC signer-set overlap without payload agreement.** Two certificates at the same height whose signer sets intersect, with differing `payload_hash`. Any overlap > 0 with divergent payload is a proof of equivocation, not a hint. The reconciler was logging overlap but treating it as informational. 2. **Retry-flag resets in the aggregator.** A monotonically increasing `aggregation_epoch` per (height, signer) is absent; instead a boolean `retried` flips, and the dedup set is scoped to the epoch. Epoch resets are the window. 3. **Timestamp skew within a single height.** QC-B's median signer timestamp is 40ms after QC-A's, but both fall inside the same view's lease. The reconciler's "same view ⇒ same payload" shortcut is false. 4. **Vote-share arrival after certificate broadcast.** Agent 5's share for QC-B arrived 12ms after QC-A was already disseminated to the reconciler. Late-share acceptance without a certificate-existence check is the enabling condition. ## Condition of Validity The equivocation window exists iff all of the following hold simultaneously: - Signers sign over payload-inclusive digests (so double-signing is not locally detectable by the signer). - The aggregator dedups by signer within a resettable epoch rather than by a monotonic `(height, signer, payload_hash)` nonce. - The reconciler accepts a QC on height alone and does not require that all known QCs at that height share a payload. - The retry timeout is nonzero and larger than inter-agent message latency variance. Remove any one and the window closes. The most common real-world removal is the third: a reconciler that treats *any* two same-height QCs with divergent payloads as a hard fault and halts the height. That is the correct guardrail and it was absent here. ## Decision Boundary The boundary is not "how many Byzantine agents can we tolerate" — f was respected. The boundary is: *at what point does the reconciler's acceptance predicate stop being a function of a single certificate and start being a function of the certificate set at a height?* - **Below the boundary (unsafe):** `accept(qc) := qc.sigs ≥ quorum ∧ qc.height > local_height`. Each certificate is judged in isolation. Equivocation is invisible. - **At the boundary (safe):** `accept(qc) := qc.sigs ≥ quorum ∧ qc.height > local_height ∧ ∀ qc' ∈ known[qc.height]: qc'.payload_hash = qc.payload_hash`. The predicate quantifies over the set. Any divergent same-height certificate forces a fault path (halt, escalate, or re-vote with a fresh view nonce). The cost of crossing the boundary is that the reconciler must retain all certificates per height until the height is finalized, not just the winning one. That is a bounded-memory change (one height's certificates, typically < 2× quorum) and is the minimum viable guardrail. ## Operational Effect When the window is open, the failure is *silent and durable*. Both branches commit; downstream agents observe partition 7 as both rebalanced and aborted, and the reconciliation log shows two "valid" certificates with no error. Recovery requires replaying the height with a fresh view and a payload-binding nonce, which invalidates any task side-effects already emitted from either branch. In the observed incident, three downstream tool calls had already fired against `rebalance_partition_7` before the second certificate was detected, producing a split-brain on the storage layer that took 40 minutes of manual reconciliation. The durable fix is threefold: (1) signers sign over a monotonic `(height, signer, payload_hash)` nonce so double-signing is locally refused; (2) aggregators dedup on that nonce, never on a resettable epoch; (3) reconcilers quantify acceptance over the certificate set at each height and halt on divergence. The first two prevent the window; the third bounds the blast radius if it reopens. ```python from dataclasses import dataclass from typing import Dict, List class EquivocationWindowError(RuntimeError): """Raised when two quorum certificates at the same height certify divergent payloads.""" @dataclass(frozen=True) class QuorumCertificate: height: int payload_hash: str signers: frozenset quorum_size: int def is_quorum(self) -> bool: return len(self.signers) >= self.quorum_size def reconcile_height( height: int, certificates: List[QuorumCertificate], local_height: int, ) -> QuorumCertificate: """Accept a certificate only if the certificate SET at this height agrees on payload.""" valid = [qc for qc in certificates if qc.height == height and qc.is_quorum()] if not valid: raise EquivocationWindowError(f"no quorum certificate at height {height}") payloads = {qc.payload_hash for qc in valid} if len(payloads) > 1: # Two disjoint-or-overlapping quorums certified different payloads. # This is the equivocation window: halt, do not pick a winner. raise EquivocationWindowError( f"equivocation at height {height}: payloads={sorted(payloads)} " f"signers={[sorted(qc.signers) for qc in valid]}" ) winner = max(valid, key=lambda qc: len(qc.signers)) if winner.height <= local_height: raise EquivocationWindowError( f"stale certificate at height {height} (local={local_height})" ) return winner def commit_task( height: int, certificates: List[QuorumCertificate], local_height: int, ) -> str: qc = reconcile_height(height, certificates, local_height) return qc.payload_hash ```