# Under what conditions must an instance treat a Byzantine quorum certificate as stale when the certificate's view number is valid but its membership epoch has rotated mid-commitment **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent commitment protocols where a quorum certificate (QC) is assembled from signed votes over a task-commitment digest, and where validator/agent membership is subject to epoch rotation. Does not apply to single-writer state machines, leaderless CRDT replication, or systems where membership is static for the lifetime of the commitment. ## Core Distinction The failure discussed here is not vote forgery, equivocation, or a broken signature scheme. It is a **temporal-membership mismatch**: a quorum certificate that is cryptographically valid, carries a view number that is current, and aggregates the correct threshold of signatures — but whose signers were drawn from an *epoch that has since rotated out*. The certificate proves "a quorum of epoch *e* agreed," not "a quorum of the *current* validator set agreed." Under PBFT-style view-change semantics, a QC is normally a durable proof of agreement. Under epoch rotation, the same QC becomes an ambiguous artifact: it is simultaneously a valid proof of a past agreement and an invalid authorization for a present commitment. The non-obvious part is that the QC's own fields (view, digest, threshold count) all check out. Only the *epoch binding* — which is often carried out-of-band or in a field that validators do not verify by default — distinguishes a live QC from a stale one. ## What Was Observed A task-commitment agent (call it the *coordinator*) proposed a commitment digest `D` at view `v=41`, epoch `e=7`. Validators in epoch 7 signed pre-prepare and prepare messages. Before the commit-phase QC was broadcast, the epoch manager rotated membership: three of the seven epoch-7 validators were removed, four new validators joined, producing epoch 8 with a 4-of-7 threshold over a partially disjoint set. The coordinator, which had cached the epoch-7 validator set and did not re-fetch membership at QC assembly time, collected 5 valid signatures — a legitimate supermajority of epoch 7 — and broadcast the QC. Two failure traces followed: 1. **Split acceptance.** Epoch-8 validators that verified only `(view, digest, signature_count)` accepted the QC and committed `D`. Epoch-8 validators that additionally checked `signer ∈ current_membership` rejected it as containing 3 unknown signers and refused to commit. The swarm split: 4 agents committed, 3 did not, on the same certificate. 2. **Resurrection on replay.** A late-joining auditor agent fetched the QC from the shared log during a checkpoint replay and, seeing a valid view number and threshold, re-committed `D` — even though a competing commitment `D'` had already reached quorum in epoch 8. The auditor's replay diverged from the live state because it validated the certificate against the *epoch embedded in the certificate* rather than the epoch *current at replay time*. The signature of this failure is that **every individual verification passes and the system still diverges**. There is no corrupt byte to point at. The bug is a missing invariant: *a QC is only authoritative relative to the membership epoch in which it was formed, and must be re-validated against current membership before it authorizes a state transition.* ## Condition of Validity A quorum certificate authorizes a commitment **only if all three of the following hold simultaneously**: 1. **Epoch binding is explicit and signed.** The QC carries an `epoch` field that is inside the signed payload of every vote, not merely a header the coordinator attaches. A vote that does not sign its epoch can be replayed into a different epoch's tally. 2. **The verifying agent re-resolves membership at verification time**, not at proposal time. The check is `signers ⊆ membership(current_epoch)` *and* threshold is computed over `|membership(current_epoch)|`, not over the certificate's claimed epoch size. 3. **Epoch transition is fenced.** Any commitment whose QC was formed in epoch `e` must be either finalized *before* the epoch-`e+1` membership is installed, or explicitly carried forward by a re-signing ceremony in epoch `e+1`. There is no third state where an epoch-`e` QC silently authorizes an epoch-`e+1` commit. When any of these is absent, the QC's validity is *conditional on the observer's epoch*, and two correct agents can reach opposite conclusions about the same certificate. ## Decision Boundary The precise boundary where an agent must treat a QC as **stale rather than valid**: - If `qc.epoch == current_epoch` and `signers ⊆ membership(current_epoch)` and `|signers| ≥ threshold(current_epoch)` → **accept**. - If `qc.epoch < current_epoch` → the QC is a *historical* proof. It may be used to justify a commitment **only** if a re-signing certificate in `current_epoch` (or a chained epoch-transition proof carrying the commitment forward) is presented alongside it. Absent that, the agent must treat it as stale and re-drive consensus. It must **not** treat it as an error to be logged and ignored, because ignoring it silently drops a commitment that a prior quorum may have already acted on — the correct action is to *re-propose under current membership*. - If `qc.epoch > current_epoch` → the agent is behind on epoch state. It must halt commitment processing and resync membership before doing anything else. Committing on a future-epoch QC is the replay-resurrection vector. - If `qc.epoch == current_epoch` but `signers ⊄ membership(current_epoch)` → the certificate was assembled against a stale cached membership. Reject and re-collect; do not "repair" by dropping unknown signers and re-counting, because the remaining count may fall below threshold and the coordinator will be tempted to pad. The non-obvious decision is the first bullet under `qc.epoch < current_epoch`: the instinct is to accept (it's a valid old QC) or reject (it's old). Both are wrong. The correct action is **conditional acceptance gated on a carry-forward proof**, and the absence of that proof is a *re-proposal trigger*, not a discard. ## Operational Effect The concrete guardrail is to make epoch binding a first-class, signed, verified field and to make membership resolution a *verification-time* operation with a monotonic epoch fence. In practice this means: - Votes sign `(epoch, view, digest)`, so a vote cannot be transplanted across epochs. - The verifier fetches `current_epoch` from the epoch manager *at the moment of verification*, and any QC whose epoch is not `current_epoch` enters a `STALE_QC` path that requires a carry-forward certificate. - A monotonic `committed_epoch` watermark per agent rejects any QC with `epoch < committed_epoch` on replay, closing the late-joiner resurrection path. - The epoch manager must not install epoch `e+1` membership until all in-flight epoch-`e` commitments are either finalized or explicitly carried forward — a fencing barrier, not a best-effort handoff. Without these, the system exhibits *Byzantine-adjacent* divergence from entirely honest agents: each agent is locally correct under its own epoch view, and the quorum certificate — the very artifact meant to guarantee agreement — becomes the vector of disagreement. ```python from dataclasses import dataclass from typing import FrozenSet class StaleQuorumCertificateError(RuntimeError): """Raised when a QC is cryptographically valid but epoch-bound to a membership set that is no longer current, and no carry-forward proof accompanies it.""" @dataclass(frozen=True) class QuorumCertificate: epoch: int view: int digest: str signers: FrozenSet[str] carry_forward_epoch: int | None = None # epoch in which commitment was re-signed def verify_qc_for_commitment( qc: QuorumCertificate, current_epoch: int, membership: FrozenSet[str], threshold: int, committed_epoch_watermark: int, ) -> bool: # Replay fence: never re-commit below the watermark. if qc.epoch < committed_epoch_watermark: raise StaleQuorumCertificateError( f"QC epoch {qc.epoch} below committed watermark " f"{committed_epoch_watermark}; replay resurrection blocked." ) # Future-epoch QC: agent is behind; must resync, not commit. if qc.epoch > current_epoch: raise StaleQuorumCertificateError( f"QC epoch {qc.epoch} ahead of current epoch {current_epoch}; " f"resync membership before committing." ) # Same-epoch QC: verify signers against *current* membership. if qc.epoch == current_epoch: if not qc.signers.issubset(membership): raise StaleQuorumCertificateError( f"QC signers {sorted(qc.signers - membership)} not in current " f"epoch-{current_epoch} membership; assembled against stale cache." ) if len(qc.signers) < threshold: raise StaleQuorumCertificateError( f"QC threshold {len(qc.signers)} < {threshold} under current membership." ) return True # Past-epoch QC: only acceptable with a carry-forward proof into current epoch. if qc.carry_forward_epoch != current_epoch: raise StaleQuorumCertificateError( f"QC from epoch {qc.epoch} lacks carry-forward into epoch " f"{current_epoch}; must re-propose under current membership." ) return True ```