# When must an instance reject a quorum certificate it cannot re-derive: equivocation-tolerant commitment drift in multi-agent task consensus **Date of Record:** 2026 November 26 **Scope:** Applies to agent swarms that commit shared task state via Byzantine fault-tolerant (BFT) quorum certificates over signed vote sets, where each validator agent independently re-derives the certificate from its own observed message log. Does not apply to single-leader replicated logs with a trusted sequencer, nor to optimistic single-writer state reconciliation without quorum voting. ## Core Distinction The failure we examine is not a crash, a timeout, or a forged signature. It is a **commitment that two honest agents both believe is final, but which no single honest agent can re-derive from its own log**. In BFT consensus the safety invariant is usually stated as "no two conflicting values are committed." The invariant that actually protects an agent swarm is stronger and rarely written down: *every committed certificate must be independently reconstructible by any honest validator from the messages that validator durably holds.* When that reconstruction invariant silently fails, an agent can accept a certificate it cannot audit, and later reconciliation will fork. The subtlety is that a certificate can be **cryptographically valid but epistemically underivable**. The signature threshold is met; the vote fragments that would let you recompute the threshold are not all in your local store, because they arrived through a different transport path, were pruned by a compaction policy, or were batched by a relayer whose fan-out was partial. An agent that treats "signature threshold satisfied" as equivalent to "I can re-derive this" will commit state it cannot defend during a later audit or after a restart. ## What Was Observed A five-agent swarm (validators V0–V4, f=1, quorum=4) committed task assignments for a shared work queue. Each round, validators broadcast signed `PREPARE` votes, a relayer batched them into a `QUORUM_CERT`, and each validator appended the committed batch to its durable log. The relayer used a fan-out optimization: it sent the full certificate to the leader and to whichever validators had the lowest last-seen sequence number, on the assumption that everyone else already had the individual votes from the `PREPARE` phase. The trace that broke: 1. V3 was mid-checkpoint during round 41 and its `PREPARE` receive buffer dropped two votes due to a bounded inbox (agent memory pressure, not a network fault). 2. V3 still emitted its own `PREPARE` and received the `QUORUM_CERT` from the relayer because V3's sequence number was low. 3. V3 verified the certificate's aggregate signature against the validator set and accepted it. Its local vote store for round 41 contained only 2 of the 4 required `PREPARE` messages. 4. V3 committed the batch and advanced its sequence number. Its log now contained a commitment whose supporting votes it did not hold. 5. At round 47 the leader equivocated (sent conflicting `PREPARE` proposals to V1 and V2). V1 and V2 each produced a valid certificate for a different batch. During reconciliation, V3 was asked to adjudicate by re-deriving both certificates from its log. It could re-derive neither — it lacked the vote fragments for round 41's original commit and had no way to distinguish the two round-47 certificates' provenance. 6. The swarm split: V0, V1 accepted batch A; V2, V4 accepted batch B; V3 could not vote and stalled, blocking quorum for the next round until manual intervention. The signature verification passed at every step. The aggregate public-key check is a *membership* proof, not a *derivability* proof. V3 accepted a certificate whose signer set it could confirm but whose vote set it could not reconstruct, and that gap is exactly where equivocation hides. ## Condition of Validity The invariant — "an agent may only commit a certificate it can re-derive from its own durable vote store" — is valid, and necessary, under the following conditions: - **Equivocation is in the threat model.** If the leader is trusted (single-leader, no Byzantine fault), certificate re-derivation is unnecessary overhead; the sequencer is the source of truth. The invariant binds only when f ≥ 1 and a leader or relayer can present conflicting certificates. - **Vote fragments are durably retained for at least the equivocation-detection window.** If validators prune individual votes immediately after certificate acceptance, re-derivation is impossible by construction, and the invariant must be replaced by a different mechanism (e.g., retained Merkle proofs of inclusion in a committed vote tree). - **The certificate carries enough provenance to be checked.** A bare threshold signature over a batch hash is insufficient. The certificate must expose the ordered signer set and a per-vote digest so the validator can confirm that the votes it holds are the votes that were aggregated, not merely that *some* quorum signed. - **Re-derivation is deterministic across restarts.** If the vote store is reconstructed from a checkpoint that compacted votes, the agent must treat the certificate as *provisional* until the checkpoint's vote coverage is re-validated, or it must refuse to adjudicate equivocation for rounds older than its compaction horizon. When any of these fails, the invariant is not merely weakened — it becomes actively dangerous, because the agent believes it can audit and cannot. ## Decision Boundary The boundary is a single predicate evaluated at certificate-acceptance time and again at adjudication time: ``` derivable(cert, local_vote_store) := cert.signer_set ⊆ local_vote_store.signers(cert.round) AND ∀ s ∈ cert.signer_set: hash(local_vote_store.vote(s, cert.round)) == cert.vote_digest[s] AND |cert.signer_set| ≥ quorum ``` - If `derivable` is **true**, the agent may commit and may later adjudicate equivocation for that round. - If `derivable` is **false** but `|cert.signer_set| ≥ quorum`, the agent must treat the certificate as **PROVISIONAL**: it may not commit, may not advance its sequence number past the round, and must request the missing vote fragments from at least f+1 peers before proceeding. If the fragments cannot be obtained within the round deadline, the agent must *abstain* (not vote) and log the round as underivable. - If `derivable` is **false** and the agent has already committed (the observed failure), it must enter **reconciliation-quarantine**: refuse to adjudicate any conflicting certificate for that round, escalate to the human operator, and refuse to sign new certificates that build on the underivable round until the gap is closed. The non-obvious half of this boundary: **a validator must never treat its own emitted `PREPARE` as evidence of derivability.** V3 held its own vote and two peers' votes — 3 of 4 — and its own vote does not help it re-derive a certificate that requires a different quorum. The re-derivation set is the *certificate's* signer set, not the validator's contribution. ## Operational Effect The immediate effect of enforcing the derivability predicate is a small latency cost: validators that receive a batched certificate without the underlying votes must do a fragment-fetch round-trip before committing. In the observed swarm this added ~40ms per round under normal conditions. The effect of *not* enforcing it is the round-41 failure: an agent that cannot re-derive its own committed history becomes an equivocation blind spot, and the swarm's BFT guarantee degrades from "tolerates f Byzantine validators" to "tolerates f Byzantine validators *provided no honest validator ever accepts an underivable certificate*" — which is precisely the condition the relayer's fan-out optimization violated. The safety proof of the consensus layer assumes every honest validator's committed log is a prefix of the canonical log; an underivable commit breaks that assumption silently, and the break only surfaces at the next equivocation, when it is too late to recover without operator intervention. The architectural guardrail is to make derivability a **first-class certificate field**, not a post-hoc check: the relayer must include the ordered signer set and per-vote digests in every `QUORUM_CERT`, and validators must reject certificates that omit them regardless of signature validity. This converts a silent epistemic gap into an explicit protocol error at acceptance time. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, FrozenSet class UnderivableCertificateError(RuntimeError): """Raised when a validator is asked to commit or adjudicate a certificate whose supporting votes it cannot re-derive from its own durable store.""" pass @dataclass(frozen=True) class Vote: validator_id: str round: int batch_hash: str def digest(self) -> str: return hashlib.sha256( f"{self.validator_id}:{self.round}:{self.batch_hash}".encode() ).hexdigest() @dataclass(frozen=True) class QuorumCert: round: int batch_hash: str signer_set: FrozenSet[str] vote_digests: Dict[str, str] # validator_id -> digest of the vote they signed aggregate_signature_valid: bool @dataclass class VoteStore: # (round, validator_id) -> Vote votes: Dict[tuple, Vote] = field(default_factory=dict) def get(self, round: int, validator_id: str) -> Vote | None: return self.votes.get((round, validator_id)) class Validator: def __init__(self, validator_id: str, quorum: int, store: VoteStore): self.validator_id = validator_id self.quorum = quorum self.store = store self.committed_rounds: set[int] = set() def derivable(self, cert: QuorumCert) -> bool: if not cert.aggregate_signature_valid: return False if len(cert.signer_set) < self.quorum: return False for signer in cert.signer_set: vote = self.store.get(cert.round, signer) if vote is None: return False if vote.digest() != cert.vote_digests.get(signer): return False if vote.batch_hash != cert.batch_hash: return False return True def accept_certificate(self, cert: QuorumCert) -> None: if not self.derivable(cert): # Certificate may be cryptographically valid but is epistemically # underivable: we cannot audit it, so we must not commit it. raise UnderivableCertificateError( f"validator {self.validator_id} cannot re-derive cert for round " f"{cert.round}: signer_set={sorted(cert.signer_set)}, " f"held={sorted(v for (r, v) in self.store.votes if r == cert.round)}" ) self.committed_rounds.add(cert.round) def adjudicate_equivocation( self, cert_a: QuorumCert, cert_b: QuorumCert ) -> QuorumCert: if cert_a.round != cert_b.round: raise ValueError("certificates are from different rounds") if cert_a.batch_hash == cert_b.batch_hash: return cert_a # Both certificates claim the same round with different batches. # We may only adjudicate if we can re-derive BOTH; otherwise we cannot # distinguish a genuine equivocation from our own incomplete evidence. if not (self.derivable(cert_a) and self.derivable(cert_b)): raise UnderivableCertificateError( f"validator {self.validator_id} cannot adjudicate round " f"{cert_a.round}: at least one certificate is underivable; " f"entering reconciliation-quarantine" ) # Deterministic tiebreak: lexicographically smaller batch hash wins. # This is only safe because both certificates are fully re-derivable. return cert_a if cert_a.batch_hash < cert_b.batch_hash else cert_b ```