# When must an instance treat a Byzantine quorum certificate as committed rather than merely gossiped: the equivocation-proof retention boundary in multi-agent task commitment **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where N agent instances reach shared-state agreement on task commitments via Byzantine fault-tolerant consensus (PBFT-style or quorum-certificate gossip) with up to f faulty instances. Does not apply to single-agent checkpointing, leaderless CRDT-only designs, or systems where all peers are trusted. ## Core Distinction A gossiped quorum certificate (QC) and a *committed* QC are not the same object, and the gap between them is where Byzantine agents win. A QC is an aggregation of ≥2f+1 matching signed votes over a (view, sequence, digest) tuple. In a correct implementation, an instance may *hold* a QC for a state value without that value being *final*, because a conflicting QC for the same sequence slot may still be forming in a concurrent view. The failure mode is not forged signatures—those are caught. It is **equivocation-proof retention loss**: an instance that discards the evidence it needs to detect a later conflicting QC (the prior votes, digests, and view-change messages) the moment it observes a quorum, thereby surrendering its ability to prove equivocation when an adversarial agent presents a second, equally-valid-looking QC for the same slot. The invariant that must hold is: *an instance must retain equivocation-relevant evidence for a slot until it has observed f+1 distinct instances assert finality for that slot, not merely 2f+1 votes for a value.* ## What Was Observed In a five-instance swarm (N=5, f=1, quorum threshold 2f+1=3) committing task-commitment records, an adversarial instance A produced two conflicting proposals P1 and P2 for sequence slot s=42 in rapid succession across views v=7 and v=8. Three honest instances (H1, H2, H3) voted for P1 in view 7, forming QC(P1, v7). Before the view-change timeout, A privately solicited votes for P2 in view 8 from H1 and H2, who had not yet garbage-collected their per-slot vote log and—critically—did not cross-check their own prior vote because the retention window had already expired after they *observed* QC(P1, v7). H1 and H2 signed P2 in view 8; A's own vote made 3. Now two valid QCs exist: QC(P1, v7) held by H3, and QC(P2, v8) held by A, H1, H2. H1 and H2, having dropped their view-7 vote records upon "seeing the quorum," could not prove they had already voted for P1. The equivocation was real but unprovable from the evidence any honest instance retained. The swarm split: H3 committed P1, H1/H2/A committed P2. The task commitment forked, and downstream tool-call side effects executed twice against divergent state. The trigger condition is precise: **a vote is retained only until the instance observes a QC for that slot, at which point the vote log is pruned.** This is correct for crash-fault tolerance and wrong for Byzantine tolerance. The pruning must instead be gated on observing f+1 *distinct finality assertions* (a separate, higher-tier message), because a QC proves a value *may* have been chosen, not that it *was* chosen and cannot be superseded by a conflicting QC under equivocation. ## Condition of Validity The retention invariant is valid—and the pruning is safe—only when all of the following hold simultaneously: 1. The instance has observed f+1 distinct `FINALIZE(slot, digest)` messages from instances whose identity warrants are cryptographically bound to the current epoch (not merely signed votes). 2. Those finality assertions reference the *same* digest as the QC being pruned against, and the instance has verified no conflicting QC exists in any view ≤ the finalizing view. 3. The instance's own prior vote for that slot is included in the retained evidence bundle until condition (1) and (2) are both satisfied. If any condition fails—most commonly (1), because finality messages are a distinct protocol tier that many gossip implementations omit—the instance must *not* prune. It must instead enter a `SLOT_CONTESTED` state and retain the full evidence bundle (prior votes, digests, view-change messages) until either finality arrives or a view-change timeout forces a re-vote with the prior vote attached as an equivocation attachment. ## Decision Boundary The decision an instance faces on observing a QC is binary and must be made against the retention invariant, not against the quorum count: - **Commit-and-prune** is permitted iff f+1 distinct finality assertions for the same digest have been observed and validated. The evidence bundle may then be released. - **Hold-and-contest** is mandatory if only the 2f+1 vote quorum has been observed. The instance must retain its vote log, mark the slot contested, and refuse to sign any vote for a *different* digest in that slot without first broadcasting the retained prior vote as an equivocation proof. The non-obvious boundary: the quorum threshold for *value selection* (2f+1) and the threshold for *evidence release* (f+1 finality assertions) are different numbers serving different functions. Conflating them is the bug. An instance that treats 2f+1 votes as license to forget has, in effect, granted an adversary the ability to manufacture a second quorum from the very instances that forgot. ## Operational Effect When the retention invariant is enforced, the equivocation attempt is caught at the point H1 or H2 is asked to sign P2: the instance checks its retained vote log, finds its prior signature on P1 for slot 42, and refuses—broadcasting the retained vote as an equivocation attachment instead. The adversarial instance A is identified by f+1 honest instances holding the proof, and the swarm slashes or excludes A without forking the task commitment. The cost is bounded memory: each instance retains O(active_slots × view_window) vote records, released on finality. The benefit is that the fork observed above becomes impossible: a conflicting QC cannot form because the honest votes needed to build it are withheld by the retention check. The invariant is not "trust the quorum." It is "retain the evidence that lets you prove the quorum was equivocated, until a higher-tier assertion tells you it is safe to forget." ```python from dataclasses import dataclass, field from typing import Dict, List, Tuple class EquivocationRetentionError(RuntimeError): """Raised when an instance attempts to prune vote evidence before finality is proven.""" pass @dataclass class VoteRecord: slot: int digest: str view: int signer: str @dataclass class Instance: name: str f: int vote_log: Dict[int, List[VoteRecord]] = field(default_factory=dict) finalized: Dict[int, str] = field(default_factory=dict) def record_vote(self, rec: VoteRecord) -> None: self.vote_log.setdefault(rec.slot, []).append(rec) def observe_quorum(self, slot: int, digest: str) -> None: # A 2f+1 quorum is NOT license to prune. Only f+1 finality assertions are. if slot in self.finalized and self.finalized[slot] == digest: self._prune(slot) return # Quorum observed but no finality: hold and contest. self._mark_contested(slot) def _prune(self, slot: int) -> None: self.vote_log.pop(slot, None) def _mark_contested(self, slot: int) -> None: # Slot stays in vote_log; no pruning permitted. _ = self.vote_log.get(slot, []) def sign_conflicting_vote(self, slot: int, new_digest: str, view: int) -> VoteRecord: prior = self.vote_log.get(slot, []) for rec in prior: if rec.digest != new_digest: raise EquivocationRetentionError( f"{self.name}: refusing to sign {new_digest} at slot {slot} " f"view {view}; prior vote for {rec.digest} at view {rec.view} " f"is retained as equivocation proof." ) rec = VoteRecord(slot=slot, digest=new_digest, view=view, signer=self.name) self.record_vote(rec) return rec def apply_finality(self, slot: int, digest: str, assertions: List[Tuple[str, str]]) -> None: distinct = {signer for signer, d in assertions if d == digest} if len(distinct) < self.f + 1: raise EquivocationRetentionError( f"{self.name}: finality for slot {slot} digest {digest} has only " f"{len(distinct)} distinct assertions; need {self.f + 1}. " f"Refusing to prune evidence." ) self.finalized[slot] = digest self._prune(slot) def run_equivocation_scenario() -> None: h1 = Instance(name="H1", f=1) h1.record_vote(VoteRecord(slot=42, digest="P1", view=7, signer="H1")) # H1 observes QC(P1, v7) but no finality assertions yet. h1.observe_quorum(slot=42, digest="P1") # Adversary solicits a conflicting vote in view 8. try: h1.sign_conflicting_vote(slot=42, new_digest="P2", view=8) except EquivocationRetentionError as exc: print(f"Caught equivocation attempt: {exc}") # Attempting to prune via insufficient finality must also fail. try: h1.apply_finality(slot=42, digest="P1", assertions=[("A", "P1")]) except EquivocationRetentionError as exc: print(f"Retention enforced: {exc}") if __name__ == "__main__": run_equivocation_scenario() ```