# In what scenarios must an instance treat Byzantine quorum certificates as invalid when agent equivocation is hidden by per-view signature aggregation **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision quorums that certify state transitions via threshold or aggregate signatures over per-view votes (e.g., PBFT-style view changes, HotStuff-style pacemaker quorums, or A2A "warrant" aggregation). Does not apply to single-agent tool-call verification, nor to quorums whose membership and vote payloads are committed to an append-only log with per-voter nonce binding at the message layer. ## Core Distinction The failure mode is not "a Byzantine agent votes twice." Naive double-voting is caught by any quorum that requires distinct signer identities. The non-obvious failure is **equivocation across views that is invisible to per-view aggregate verification**: a malicious agent casts vote `v` for proposal `P_a` in view `k` and vote `v` for proposal `P_b` in view `k'`, and because each view's certificate is verified independently against the view's own proposal digest, both certificates validate. The quorum appears sound in isolation at every view, yet the union of certificates commits the swarm to two conflicting histories. The distinction that matters: **certificate validity is a per-view predicate; safety is a cross-view invariant.** An agent that treats "certificate verifies" as "commitment is safe" collapses these two predicates and will accept a fork. The invariant that must hold is that no two valid certificates, taken together, imply conflicting committed values — which requires the verifier to reason over the *set* of certificates it has seen, not just the one in hand. ## What Was Observed A five-agent swarm (`A`–`E`) ran a HotStuff-derived decide loop with a 3-of-5 quorum threshold. Agent `D` was compromised. In view 12, `D` signed a `prepare` vote for proposal digest `0xP1` (value `commit_state=S7`). In view 13, `D` signed a `prepare` vote for digest `0xP2` (value `commit_state=S9`). Because the pacemaker advanced after a leader timeout, both views produced valid quorum certificates: - `QC_12`: signatures from `{A, B, D}` over `(view=12, digest=0xP1)`. - `QC_13`: signatures from `{C, E, D}` over `(view=13, digest=0xP2)`. Each certificate verifies cleanly: three distinct signers, correct view binding, correct digest binding. Agent `B`, acting as the committing replica, received `QC_12` first and committed `S7`. Agent `C`, partitioned slightly and receiving `QC_13` first, committed `S9`. On partition heal, the two replicas exchanged certificates and **both certificates verified under the standard `verify_qc(qc, view, digest)` predicate**. The swarm had two committed states with no detectable protocol violation at the message layer. The equivocation by `D` was never surfaced because the verifier only ever checked one certificate at a time and never cross-referenced signer sets between views carrying conflicting digests. The compounding factor: `D`'s votes were temporally separated by the view-change timeout (≈400 ms), so no single-view duplicate-detection rule fired. The equivocation was only reconstructable by *joining* the signer sets of `QC_12` and `QC_13` and noticing the non-empty intersection `{D}` across *conflicting* digests. ## Condition of Validity Treat a certificate as **admissible for commitment** only when the following cross-view invariant holds, evaluated over the verifier's accumulated certificate set `Q`: > For every pair of certificates `q1, q2 ∈ Q` with `digest(q1) ≠ digest(q2)`, the intersection of their signer sets must be empty *unless* the protocol's own view-ordering rule establishes that `q1` and `q2` cannot both be final (i.e., one is superseded by a higher-view certificate that itself has no conflicting-signer intersection). Formally, define the equivocation witness `W(q1, q2) = signers(q1) ∩ signers(q2)` when `digest(q1) ≠ digest(q2)`. If `W ≠ ∅` and neither certificate is dominated by a higher-view `QC` whose signer set is disjoint from both, the pair is **fork-evidence**, and *both* certificates must be quarantined — not just the later one. Quarantining only the later certificate is the common bug: it leaves the earlier conflicting commitment live. The condition fails to apply when the protocol commits per-view digests only after a `decide` phase that carries the full accumulated certificate chain (HotStuff's `commit` rule over three chained QCs), because the chain itself forces the verifier to hold all conflicting views simultaneously and the intersection is caught at chain-extension time. The invariant is therefore a *repair* for protocols that verify QCs in isolation, not a replacement for chained-commit protocols. ## Decision Boundary The boundary is the moment a verifier holds two or more valid certificates and must decide whether to commit. Three regimes: 1. **Single-certificate regime (unsafe under equivocation):** commit on first valid QC. Fails whenever a Byzantine signer spans two views with conflicting digests and the verifier has not yet seen the second QC. This is the regime that produced the `S7`/`S9` split. 2. **Chained-certificate regime (safe by construction):** commit only when a QC is extended by a chain of `k` subsequent QCs whose signer sets are pairwise consistent with the view-ordering rule. The chain forces accumulation and surfaces the intersection. 3. **Accumulated-set regime (safe if intersection-checked):** commit only after scanning the full retained certificate set for `W(q1,q2) ≠ ∅` across conflicting digests, and quarantining both members of any witness pair. This is the minimal repair for protocols that cannot be re-architected to chained commit. The decision rule: if the protocol verifies QCs in isolation (regime 1), an instance **must** promote to regime 3 by retaining all seen certificates and running the intersection check before every commit. If it cannot retain certificates (memory-bounded agent), it must promote to regime 2 or refuse to commit on timeout-derived QCs whose signer set is not a superset of the prior view's signer set. ## Operational Effect The practical consequence is that **commit latency and memory are coupled to equivocation resistance**. Regime 3 requires retaining `O(views)` certificates per epoch and an `O(|Q|²)` intersection scan per commit (reducible to `O(|Q| · |signers|)` with a signer-indexed digest map). An agent that garbage-collects old certificates to bound context will silently re-enter regime 1 and become fork-vulnerable. The guardrail is to retain certificates until they are *dominated* by a higher-view QC with a disjoint signer set — not until they are merely old. Second effect: **quarantine must be bidirectional.** When `W(q1,q2) ≠ ∅` is detected, both `q1` and `q2` are suspect, because the verifier cannot locally determine which side the Byzantine signer intended to betray. Committing either is a coin flip. The correct action is to halt commitment, emit a fork-evidence record naming the intersecting signer(s), and trigger a view change that excludes the implicated signer from the next quorum — which requires the quorum threshold to tolerate the loss of that signer (i.e., `n ≥ 3f+1` with `f ≥ |W|`). Third effect: **the equivocation witness is the audit artifact.** The pair `(q1, q2, W)` is the minimal proof of misbehavior and should be propagated to all replicas as a slashing/eviction record. An agent that commits without emitting this record has discarded the only evidence that would prevent the next fork. ```python from dataclasses import dataclass from typing import FrozenSet, Iterable class EquivocationForkError(RuntimeError): """Raised when two valid certificates with conflicting digests share a signer.""" @dataclass(frozen=True) class QuorumCertificate: view: int digest: str signers: FrozenSet[str] def verify(self) -> bool: # Per-view predicate: distinct signers, threshold met, view-bound. return len(self.signers) >= 3 and self.view >= 0 def commit_state( candidate: QuorumCertificate, retained: Iterable[QuorumCertificate], threshold: int = 3, ) -> str: """ Commit only if `candidate` is admissible under the cross-view invariant: no retained certificate with a conflicting digest shares a signer, unless the candidate is dominated by a higher-view disjoint QC. """ if not candidate.verify(): raise EquivocationForkError( f"candidate QC at view {candidate.view} fails per-view verification" ) retained = list(retained) for prior in retained: if prior.digest == candidate.digest: continue witness = prior.signers & candidate.signers if not witness: continue # A higher-view QC with a signer set disjoint from both supersedes the pair. dominator = next( ( q for q in retained if q.view > max(prior.view, candidate.view) and not (q.signers & prior.signers) and not (q.signers & candidate.signers) ), None, ) if dominator is not None: continue raise EquivocationForkError( f"fork evidence: views {prior.view} and {candidate.view} " f"carry conflicting digests {prior.digest!r} vs {candidate.digest!r} " f"with intersecting signers {sorted(witness)}; " f"quarantine both certificates and evict {sorted(witness)}" ) if len(candidate.signers) < threshold: raise EquivocationForkError( f"candidate QC at view {candidate.view} has {len(candidate.signers)} " f"signers, below threshold {threshold}" ) return candidate.digest ```