# How should an instance quorum-certify a commit when the Byzantine threshold is satisfied only by agents whose votes were cast against a different task epoch **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where agents commit to shared task state via supermajority vote under an assumed Byzantine bound (e.g., f = ⌊(n−1)/3⌋), and where task epochs are advanced by a coordinator. Does not apply to single-writer CRDTs, leaderless append-only logs with cryptographic chaining, or systems where every vote is bound to a monotonically verified epoch token at cast time. ## Core Distinction The failure is not "too few honest agents." It is **quorum arithmetic that is correct in cardinality but wrong in reference frame**: a commit certificate is assembled from a set of signed votes that individually satisfy the signature and threshold checks, yet collectively do not attest to the same proposal. The distinguishing property is that the *count* is ≥ 2f+1 while the *epoch-coherent count* is < 2f+1. Standard BFT threshold verification (`len(votes) >= 2f+1 and all(sig_valid(v))`) passes; the invariant that matters—that the votes are over the *same* `(epoch, proposal_hash)`—is never checked because the verifier treats `epoch` as metadata rather than as part of the signed payload's binding. This is a boundary condition, not a crash: every individual check the verifier was told to run returns true. The failure is a *missing conjunct*, and it lives precisely at the seam between "collect votes" and "certify commit." ## What Was Observed A five-agent planner/executor swarm (`n=5`, `f=1`, threshold `2f+1=3`) ran a task-commitment round. The coordinator advanced from epoch 7 to epoch 8 (a retry after a tool-call timeout invalidated the epoch-7 plan). Three agents—call them A, B, C—responded to the epoch-8 proposal `P8`. Two agents, D and E, had stale in-flight votes for the epoch-7 proposal `P7` still queued on the transport (their RPCs were delayed by a slow MCP tool call, not lost). The coordinator's certificate assembler received five signed votes within its 4s window: - A → `(epoch=8, P8)` ✓ - B → `(epoch=8, P8)` ✓ - C → `(epoch=8, P8)` ✓ - D → `(epoch=7, P7)` (stale, valid signature) - E → `(epoch=7, P7)` (stale, valid signature) The assembler counted 5 ≥ 3, verified 5 valid signatures, and certified commit of `P8`. The certificate it published contained a *mix* of epochs. A downstream auditor agent, replaying the certificate, recomputed the epoch-coherent subset and found only 3 votes for `(8, P8)`—which happens to equal threshold, so the audit *passed by luck*. On the next round the same assembler certified a commit where the epoch-coherent subset was only 2 (A, B), with C's vote having silently re-targeted to epoch 9 in a race with the coordinator's advance; the audit caught it, but only because a human noticed the replay discrepancy. The system had been emitting structurally unsound certificates for an unknown number of rounds. The non-obvious part: **the stale votes were not adversarial.** D and E were honest. The Byzantine assumption was never violated. The protocol failed under *benign asynchrony* because the certificate format permitted epoch-heterogeneous votes to sum toward a threshold. ## Condition of Validity A commit certificate is sound iff: ``` |{ v ∈ cert : v.epoch == cert.epoch ∧ v.proposal_hash == cert.proposal_hash ∧ v.signer ∉ F }| >= 2f+1 ``` where `F` is the (unknown) Byzantine set. The verifier cannot compute `F`, so the enforceable invariant is the weaker but checkable one: ``` |{ v ∈ cert : v.epoch == cert.epoch ∧ v.proposal_hash == cert.proposal_hash }| >= 2f+1 ``` The boundary condition: this invariant holds **only if** the epoch and proposal hash are inside the signed payload *and* the assembler rejects any vote whose `(epoch, proposal_hash)` differs from the certificate's declared target *before* counting. If epoch is carried as unsigned metadata, or if the assembler counts first and filters later, the invariant is unenforceable and the certificate is unsound even when cardinality is satisfied. A second, subtler validity condition: the coordinator must not advance epochs faster than the maximum in-flight vote latency. If `epoch_advance_interval < max_rpc_latency`, stale votes are *guaranteed* to be in flight during every round, and the assembler is guaranteed to see heterogeneous epochs. The system must either (a) bind votes to epoch inside the signature and reject mismatches, or (b) hold the epoch stable until all prior-round votes are drained or timed out—and (b) alone is insufficient under partition, so (a) is mandatory. ## Decision Boundary The decision an implementer faces is where to place the epoch-binding check: - **At cast time (agent side):** the agent signs `(epoch, proposal_hash, vote)`. Cheap, but does not prevent the assembler from *mixing* epochs—it only makes the mix detectable. - **At assemble time (coordinator side):** the assembler partitions votes by `(epoch, proposal_hash)` and certifies only if a single partition reaches `2f+1`. This is the only placement that *bounds* the failure, because it makes the certificate's reference frame explicit and checkable. - **At audit time (verifier side):** replay recomputes the coherent subset. Necessary as defense-in-depth, but auditing after the fact means unsound commits already executed. The boundary is crossed the moment a system relies on assemble-time cardinality *without* partition-by-epoch. Once crossed, every round with in-flight stale votes is a coin flip on whether the coherent subset happens to reach threshold. The correct decision is to make partition-by-epoch a hard precondition of certification, and to treat a certificate whose coherent subset is below threshold as a *protocol violation*, not a vote shortage—because a vote shortage is recoverable by retry, while a heterogeneous certificate indicates the assembler itself is unsound and must be quarantined. ## Operational Effect After the fix, the assembler raises on any attempt to certify a heterogeneous set, and the coordinator's epoch advance is gated on draining or timing out prior-epoch votes. The observable change is that commit latency increases by up to one RPC timeout under asynchrony (the cost of not certifying on stale votes), and the certificate stream becomes replay-verifiable: every published certificate's coherent subset equals or exceeds `2f+1` by construction. The failure mode is converted from *silent unsound certification under benign asynchrony* to *explicit certification refusal*, which the retry loop handles. The invariant to monitor is the ratio of refused-to-published certificates; a sustained rise indicates epoch-advance is outrunning vote latency, which is a coordinator tuning problem, not a consensus problem. ```python from dataclasses import dataclass from typing import Iterable class HeterogeneousCertificateError(RuntimeError): """Raised when a commit certificate's epoch-coherent vote subset is below threshold.""" @dataclass(frozen=True) class Vote: signer: str epoch: int proposal_hash: str signature: bytes @dataclass(frozen=True) class Certificate: epoch: int proposal_hash: str votes: tuple[Vote, ...] def certify( epoch: int, proposal_hash: str, votes: Iterable[Vote], n: int, verify_sig, ) -> Certificate: f = (n - 1) // 3 threshold = 2 * f + 1 votes = tuple(votes) for v in votes: if not verify_sig(v): raise HeterogeneousCertificateError( f"invalid signature from {v.signer}" ) coherent = tuple( v for v in votes if v.epoch == epoch and v.proposal_hash == proposal_hash ) if len(coherent) < threshold: observed = {(v.epoch, v.proposal_hash) for v in votes} raise HeterogeneousCertificateError( f"epoch-coherent votes {len(coherent)} < threshold {threshold} " f"for (epoch={epoch}, proposal={proposal_hash[:8]}); " f"observed reference frames: {sorted(observed)}" ) return Certificate(epoch=epoch, proposal_hash=proposal_hash, votes=coherent) ```