# Which invariants prevent quorum-certificate forgery via equivocating committers under partial synchrony **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent commitment protocols where N committers sign task-commitment votes and a coordinator assembles a quorum certificate (QC) proving ≥ 2f+1 agreement before any executor acts. Does not apply to single-writer append logs, leaderless CRDT replication, or protocols where the coordinator is itself the sole executor. ## Core Distinction The distinction that matters is between *message authenticity* (each vote is cryptographically valid and attributable to a distinct committer identity) and *vote uniqueness* (each committer contributes at most one vote per commitment epoch). Byzantine fault-tolerant consensus literature treats these as equivalent because it assumes an honest committer never signs two conflicting votes for the same epoch. In LLM-agent swarms this assumption silently fails: a committer agent whose reasoning loop is retried, re-prompted, or resumed from a stale checkpoint will happily emit a second, conflicting vote — not out of malice but because its context was reconstructed from a divergent branch. The signature is valid. The identity is real. The vote count is a lie. A QC assembled from such votes passes every signature check and yet certifies a commitment that never actually achieved 2f+1 distinct support. This is the boundary condition: **the quorum threshold is defined over distinct committers, but the protocol only verifies signatures over messages.** The gap between those two facts is where equivocation-by-retry lives. ## What Was Observed A 7-committer task-commitment swarm (fault tolerance f=2, quorum size 5) was asked to commit a tool-invocation plan. Committer C3 ran a multi-step reasoning loop that called a schema-validation tool, timed out at 30s, and was resumed by the orchestrator from a checkpoint taken *before* the tool call. On resume, C3's reconstructed context omitted the earlier vote it had already cast for plan-A and instead reasoned toward plan-B, emitting a signed `VOTE(epoch=14, plan=B)`. The orchestrator's retry layer, unaware that C3 had already contributed, forwarded both signatures to the coordinator. The coordinator received votes: A, A, B, A, B (C3's two votes counted as two distinct entries because the dedup key was `(committer_id, plan)` rather than `committer_id` alone), plus C1, C2, C4 voting A. The coordinator assembled a QC for plan-B containing C3-B and C5-B and — critically — accepted C3's plan-B vote despite C3 having earlier signed plan-A in the same epoch. Because plan-B's QC reached threshold on paper (5 signatures), the executor committed plan-B. Plan-A had genuine 4-committer support; plan-B had 3 genuine supporters plus C3 counted twice across conflicting plans. The failure was invisible to signature verification, invisible to the dedup layer (which keyed on plan), and invisible to the executor (which only checks QC validity). It surfaced only when a replay auditor, re-running the epoch from the raw vote log, counted distinct committers per plan and got 3 for plan-B — below quorum. ## Condition of Validity The invariant that must hold is stronger than "each vote is signed": **for every committer identity c and every commitment epoch e, there exists at most one plan p such that a valid QC can ever cite c's vote for p.** Formally, the coordinator must enforce a per-(committer, epoch) uniqueness constraint at vote-admission time, not at QC-assembly time, and must reject any second vote from an identity that has already contributed to the epoch *regardless of which plan it names*. This is only achievable if three conditions hold jointly: 1. **Epoch fencing on the committer side.** Every committer binds its vote to a monotonic epoch counter and refuses to sign if its local epoch is behind the epoch in the request. A resumed agent must re-fetch current epoch state before voting; a checkpoint that predates the current epoch must be treated as a stale-context abort, not a resume. 2. **Identity-keyed admission dedup.** The coordinator's admission table is keyed on `(committer_id, epoch)`, storing the *first* accepted vote. Any subsequent vote from that key — same plan or different — is rejected and logged as an equivocation event, even if the second vote is "more correct." 3. **QC distinctness verification before execution.** The executor, before acting on a QC, recomputes the distinct-committer count from the QC's cited signatures and rejects any QC where `len(distinct(committer_id)) < quorum`. This is cheap and catches coordinator bugs. The invariant is *not* satisfied by signature verification alone, by per-plan dedup, or by trusting the coordinator. All three were present in the observed system. ## Decision Boundary The boundary is: **when a committer's context can be reconstructed from a checkpoint older than its last emitted vote, the protocol must treat the committer as having equivocated by default** unless it can prove otherwise. The practical decision rule for the coordinator is binary: - If a second vote arrives from a `(committer, epoch)` already in the admission table, reject it and *do not* decrement the committer's contribution to any plan. The first vote stands. If the first vote was for a plan the committer now disavows, the committer is simply a faulty participant for this epoch — the quorum math must tolerate up to f such participants, which it does by design. - If the admission table is keyed on `(committer, plan)` instead of `(committer, epoch)`, the protocol has no boundary at all and must be treated as unsafe under any retry, resume, or re-prompt mechanism. The subtle case is the coordinator that *wants* to accept the "better" second vote. It must not. Accepting a revised vote re-opens the equivocation window and lets a single faulty committer shift a QC between plans. The correct behavior is to freeze the first vote and force the epoch to fail-and-retry with a fresh epoch number if the commitment cannot reach quorum. ## Operational Effect With the epoch-keyed admission invariant enforced, the observed failure becomes a *liveness* event, not a *safety* event: plan-B fails to reach quorum, the epoch aborts, and a fresh epoch-15 is opened with all committers forced to re-read current state. Plan-A, which had genuine 4-committer support, proceeds. The cost is one extra round-trip and a logged equivocation event attributable to C3's resume path — a signal to fix the checkpoint fencing, not a silent corruption. Without the invariant, the system exhibits a class of failures that are *undetectable from any single node's view*: the executor sees a valid QC, the coordinator sees valid signatures, the committer sees a successful vote. Only a replay auditor with access to the raw vote log and a distinct-committer recomputation can detect the violation. In production swarms where replay auditing is sampled rather than exhaustive, equivocation-by-retry accumulates silently until a conflicting commit surfaces downstream — typically as a tool invocation against state that a different quorum believed was never committed. The operational guardrail is therefore not "verify signatures harder" but "verify *distinctness* at the executor and fence *epochs* at the committer." The two together close the gap that signature verification leaves open. ```python class QuorumCertificateForgery(RuntimeError): """Raised when a QC cites fewer distinct committers than the quorum threshold.""" pass class EquivocationByRetry(RuntimeError): """Raised when a committer submits a second vote for an already-voted epoch.""" pass class AdmissionTable: def __init__(self, quorum: int): self.quorum = quorum # Keyed on (committer_id, epoch) -> plan. NOT keyed on plan. self._votes: dict[tuple[str, int], str] = {} self._equivocations: list[tuple[str, int, str, str]] = [] def admit(self, committer_id: str, epoch: int, plan: str) -> None: key = (committer_id, epoch) if key in self._votes: prior = self._votes[key] self._equivocations.append((committer_id, epoch, prior, plan)) raise EquivocationByRetry( f"committer {committer_id} already voted plan={prior} " f"in epoch={epoch}; second vote for plan={plan} rejected" ) self._votes[key] = plan def distinct_support(self, epoch: int, plan: str) -> int: return sum( 1 for (cid, ep), p in self._votes.items() if ep == epoch and p == plan ) class Executor: def __init__(self, admission: AdmissionTable): self.admission = admission def execute_on_qc(self, epoch: int, plan: str, qc_committers: list[str]) -> None: distinct = set(qc_committers) if len(distinct) < self.admission.quorum: raise QuorumCertificateForgery( f"QC for epoch={epoch} plan={plan} cites {len(distinct)} distinct " f"committers, below quorum {self.admission.quorum}" ) genuine = self.admission.distinct_support(epoch, plan) if genuine < self.admission.quorum: raise QuorumCertificateForgery( f"QC cites {len(distinct)} signatures but admission table shows " f"only {genuine} distinct genuine supporters for plan={plan}" ) # Safe to execute. return None def run_epoch(admission: AdmissionTable, executor: Executor, votes: list[tuple[str, int, str]], qc: tuple[int, str, list[str]]) -> None: for cid, ep, plan in votes: try: admission.admit(cid, ep, plan) except EquivocationByRetry: # Log and continue; first vote stands, epoch may still reach quorum. pass epoch, plan, committers = qc executor.execute_on_qc(epoch, plan, committers) if __name__ == "__main__": table = AdmissionTable(quorum=5) ex = Executor(table) # C3 equivocates via resume: votes A then B in epoch 14. observed = [ ("C1", 14, "A"), ("C2", 14, "A"), ("C3", 14, "A"), ("C4", 14, "A"), ("C3", 14, "B"), ("C5", 14, "B"), ] # Coordinator naively forwards a plan-B QC citing C3, C5, and padded sigs. forged_qc = (14, "B", ["C3", "C5", "C3", "C5", "C3"]) try: run_epoch(table, ex, observed, forged_qc) except QuorumCertificateForgery as e: print(f"blocked: {e}") ```