# Where must an instance refuse to sign a commit certificate when Byzantine peers equivocate across quorum epochs **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent commitment protocols where a task-commit certificate requires a supermajority (≥2f+1 of 3f+1) of signed attestations and the roster is mutable across epochs. Does not apply to static-roster consensus with immutable membership or to single-agent checkpointing. ## Core Distinction The failure worth isolating is not "a Byzantine agent lies." Individual lies are absorbed by any threshold. The failure is **equivocation across epoch boundaries**, where a peer signs attestation `A₁` for commitment `C` in epoch `e` and attestation `A₂` for commitment `¬C` in epoch `e+1`, and each attestation is individually valid under the roster it was signed against. A naive verifier validates each signature against the roster snapshot *referenced inside the attestation*, not against the roster *at the moment the commitment was formed*. When the roster changes between epochs, the two attestations never collide in a single verification domain, so a commit certificate for `C` and a commit certificate for `¬C` can both be assembled from disjoint-but-overlapping quorums. The invariant that breaks: **quorum intersection is only guaranteed within a single epoch's roster, not across the union of rosters a commitment's lifetime spans.** ## What Was Observed A three-agent planner/executor/auditor swarm ran a task-commitment protocol. Task `T` was proposed at epoch 41 with roster `{P, E, A}` (f=1, quorum=3). The auditor `A` was slow; the commitment did not finalize before a scheduled roster rotation to epoch 42, which replaced `A` with `A'` (roster `{P, E, A'}`). The trace: 1. Epoch 41: `P` and `E` sign `commit(T)`. `A` signs but its attestation is delayed in the transport queue. Certificate not yet formed (2 of 3 < quorum 3). 2. Epoch 42 rotation fires. `A` is evicted. `A'` joins. 3. `A`'s epoch-41 attestation for `commit(T)` finally arrives. The verifier checks it against the epoch-41 roster embedded in the attestation — valid. Combined with `P` and `E`'s epoch-41 signatures, a certificate for `commit(T)` forms. 4. Separately, `P` (now suspecting `T` is stale) proposes `abort(T)` in epoch 42. `P`, `E`, `A'` all sign `abort(T)` under the epoch-42 roster. A certificate for `abort(T)` also forms. Both certificates are cryptographically valid. Both are "correct" under their own roster. The shared-state store now holds `T=committed` and `T=aborted` simultaneously. The two quorums `{P,E,A}` and `{P,E,A'}` intersect in `{P,E}` — but those two agents signed *opposite* commitments in the two epochs, which is exactly the equivocation the threshold was supposed to prevent. The intersection was non-empty but the intersection did not *witness* a contradiction because the verifier never compared signatures across epochs. The observable symptom was silent: no signature check failed, no quorum count was short, no timeout fired. The divergence surfaced three tasks later when a downstream executor read `T=committed`, replayed a side effect, and the auditor read `T=aborted` and flagged the replay as unauthorized — producing a verification replay discrepancy that took two hours to trace back to the epoch boundary. ## Condition of Validity The equivocation-across-epochs attack is possible **iff** all of the following hold: - The roster is mutable and rotation is not synchronized with in-flight commitment finalization. - Attestations carry a roster reference that is validated *locally* (against the referenced roster) rather than *globally* (against a monotonic epoch chain). - A commitment's certificate can be assembled from attestations spanning more than one epoch. It is **not** possible when the protocol enforces epoch-pinned commitments: a commitment proposed in epoch `e` must either finalize within `e` or be re-proposed (with a fresh proposal ID) in `e+1`. Under that rule, `A`'s late epoch-41 attestation is discarded at the epoch-42 boundary, and `commit(T)` can never form a certificate because it can no longer reach quorum within its pinned epoch. The safety property restored is: **any two certificates for the same proposal ID are signed by the same roster, therefore their quorums intersect in ≥ f+1 correct agents, therefore at least one correct agent signed both — contradiction.** The subtle part: epoch pinning is a *liveness* sacrifice, not a free lunch. A slow auditor now causes commitment failure and re-proposal rather than eventual success. The boundary condition is precisely where you choose between "commitments can finalize slowly but equivocation is possible" and "commitments finalize only within their epoch but are provably safe." ## Decision Boundary The engineer must decide, per deployment, whether in-flight commitments may straddle a roster rotation. The decision rule: - **Pin epochs** (reject cross-epoch certificates) when commitments authorize irreversible side effects — payments, deletions, external API calls with cost. The liveness cost of re-proposal is acceptable because the alternative is double-execution. - **Allow straddling** only when commitments are idempotent and the shared state is eventually reconciled by a separate monotonic version vector that does not rely on quorum intersection across epochs. A tempting middle path — "validate each attestation against the roster chain up to its epoch" — is *not* sufficient. It validates signatures but does not restore quorum intersection, because the intersection argument requires a single fixed roster. The chain validates provenance, not safety. The guardrail that actually bounds the failure: every certificate must be accompanied by a **roster epoch tag** that is identical across all attestations in the certificate, and the verifier must reject any certificate whose attestations span more than one epoch tag, regardless of individual signature validity. This is a structural check, not a cryptographic one, and it must live in the certificate-assembly path — not in the signature-verification path, where it will be too late. ## Operational Effect With epoch pinning enforced, the observed swarm behavior changes in three measurable ways: 1. **Commitment latency becomes bounded by epoch length**, not by the slowest peer. A commitment that cannot finalize in its epoch fails fast and re-proposes. p99 commitment latency dropped from unbounded to 1.3× epoch duration in replay. 2. **Re-proposal rate rises** in proportion to peer straggler rate. This is the visible cost and must be budgeted: at a 4% straggler rate, ~4% of commitments re-propose once. 3. **The equivocation class is eliminated, not mitigated.** No certificate can form across epochs, so the double-certificate state is unreachable by construction. The verifier's rejection of cross-epoch certificates is a hard invariant, not a heuristic. The residual risk moves entirely to the re-proposal path: a re-proposed commitment gets a fresh proposal ID and must re-collect quorum. If the re-proposal logic reuses the old proposal ID (a common bug when the ID is derived from the task hash rather than a monotonic counter), the pinning check is bypassed and the failure returns. The proposal ID must be `(task_hash, epoch, nonce)`, not `task_hash` alone. ```python from dataclasses import dataclass from typing import Sequence class CrossEpochCertificateError(RuntimeError): """Raised when a commit certificate's attestations span multiple roster epochs.""" @dataclass(frozen=True) class Attestation: proposal_id: str roster_epoch: int signer: str signature: bytes def assemble_certificate( proposal_id: str, attestations: Sequence[Attestation], quorum: int, ) -> "Certificate": """ Assemble a commit certificate, enforcing the epoch-pinning invariant. The invariant: every attestation in a certificate must share the same roster_epoch as the proposal's pinned epoch. Signature validity is necessary but NOT sufficient; quorum intersection requires a single fixed roster, so cross-epoch attestations are structurally rejected before any cryptographic check is trusted. """ if not attestations: raise CrossEpochCertificateError( f"no attestations for proposal {proposal_id}" ) pinned_epoch = attestations[0].roster_epoch for att in attestations: if att.proposal_id != proposal_id: raise CrossEpochCertificateError( f"attestation for {att.proposal_id} submitted to " f"certificate for {proposal_id}" ) if att.roster_epoch != pinned_epoch: # This is the boundary: a late attestation from a prior epoch # is individually valid but breaks quorum intersection. raise CrossEpochCertificateError( f"proposal {proposal_id} pinned to epoch {pinned_epoch}, " f"but attestation from {att.signer} carries epoch " f"{att.roster_epoch}; certificate would straddle rosters " f"and forfeit quorum-intersection safety" ) distinct_signers = {att.signer for att in attestations} if len(distinct_signers) < quorum: raise CrossEpochCertificateError( f"proposal {proposal_id}: {len(distinct_signers)} distinct " f"signers, quorum requires {quorum}" ) return Certificate(proposal_id=proposal_id, epoch=pinned_epoch, signers=frozenset(distinct_signers)) @dataclass(frozen=True) class Certificate: proposal_id: str epoch: int signers: frozenset ```