# How should an instance treat a quorum certificate whose signer set is internally consistent but whose membership epoch predates the commitment it certifies **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent swarms that commit task results under Byzantine quorum certificates (BFT-style: 2f+1 of 3f+1 signers) where agent membership is versioned into epochs and signer identities carry epoch-scoped keys. Does not apply to single-writer append-only ledgers, to non-authenticated gossip protocols, or to swarms with static, unversioned membership. ## Core Distinction There are two structurally different ways a quorum certificate can be "valid," and conflating them is the failure. The first is **signature validity**: the certificate contains ≥ 2f+1 distinct signatures from keys that were, at signing time, authorized members, and every signature verifies against the message digest. The second is **epoch validity**: the set of signers that produced the certificate is a legitimate quorum *for the epoch in which the certified commitment was made*. A certificate can be perfectly signature-valid—internally consistent, no forgery, no double-signing—and still be epoch-invalid, because the signers were members of epoch *e−1* while the commitment it purports to certify belongs to epoch *e*. The non-obvious part: during an epoch transition, the *old* quorum and the *new* quorum overlap by construction (you cannot swap 3f+1 agents atomically), and the intersection is exactly where a certificate can be assembled from a mix of old-epoch and new-epoch signers that individually verify but collectively do not form a quorum in *either* epoch. This is the **cross-epoch quorum splice**. It is not a forgery and not a partition; it is a well-formed certificate that satisfies the arithmetic 2f+1 count while satisfying the *set-membership* predicate in neither epoch. ## What Was Observed A 7-agent swarm (f = 2, quorum = 5) executed a rolling membership change: agents A3 and A5 were rotated out of epoch 41 and replaced by A7 and A8 in epoch 42. The commitment for task `T-8842` was issued by the coordinator under epoch 42. The coordinator's result-agreement phase collected signatures and assembled a certificate containing signers {A1, A2, A4, A3, A5} — five distinct signatures, all verifying against the result digest of `T-8842`. The auditor instance verified the certificate as follows: count distinct valid signatures → 5 ≥ quorum → accept. It then wrote the result to the shared result store and advanced the task's state to `COMMITTED`. The defect surfaced 90 seconds later when a second auditor, replaying the log, checked epoch membership and found that A3 and A5 were de-authorized as of epoch 42. Under epoch 42's roster, only {A1, A2, A4} were signers — 3 < 5, **no quorum**. Under epoch 41's roster, {A1, A2, A4, A3, A5} was a valid quorum — but epoch 41 had no authority to certify a task opened in epoch 42. The certificate was a splice: a majority from the live epoch padded with two de-authorized signers to reach the count. The trace that produced it: the coordinator's signature-collection loop iterated over a *cached* membership list captured at task open (epoch 41 roster), not the current roster. A3 and A5, still running and still holding their epoch-41 keys, signed promptly because from their view the task was live. The coordinator counted 5 valid signatures and stopped — it never re-checked that the signer set was a quorum *of the epoch named in the commitment header*. ## Condition of Validity The invariant that must hold, and which the naive verifier omits, is: > A certificate C for commitment m is valid iff there exists an epoch e such that (a) m.header.epoch = e, (b) every signer in C.signer_set is a member of roster(e), and (c) |C.signer_set| ≥ quorum(roster(e)). The critical clause is the **existential over a single epoch e**, not "there exists a quorum-sized subset of valid signatures." The naive check silently weakens (b) to "each signer was *ever* a member" and drops the requirement that one epoch simultaneously satisfies both the membership predicate and the count. The splice exploits precisely the gap between "each signature is valid" (pointwise) and "the set is a quorum of the named epoch" (setwise). This condition is only meaningful when three things are true: membership is versioned (epochs exist), signer keys are epoch-scoped so that a de-authorized agent's signature is *recognizable* as old-epoch rather than merely invalid, and commitments carry an epoch tag in their header. If any of these is absent—e.g., keys are not epoch-tagged, so an old-epoch signature is indistinguishable from a current one—then the splice is undetectable at verification time and can only be caught by roster-history replay, which is a weaker and later defense. ## Decision Boundary The verifier must decide, per certificate, between two dispositions: - **Accept** only when a single epoch e satisfies membership ∧ count simultaneously. The epoch is taken from the commitment header, not from the signers and not from the verifier's current clock. - **Reject with `CrossEpochSpliceError`** when the signer set is signature-valid and count-sufficient but no single epoch roster contains all signers at quorum. This is distinct from `InsufficientQuorumError` (count too low) and from `InvalidSignatureError` (cryptographic failure). Routing it to either of those classes loses the diagnostic: the certificate is not under-signed and not forged; it is *mis-rostered*. The boundary is sharp at the overlap region. When the old and new rosters overlap by ≥ quorum (the common case for small f), a spliced certificate is *arithmetically indistinguishable* from a legitimate one by count alone—only the per-signer epoch tag distinguishes them. When overlap < quorum, the splice cannot reach count using only stale signers and must also include current signers, which is still a splice but is detectable by a weaker "any stale signer present" heuristic. Do not rely on that heuristic; it fails exactly in the overlap ≥ quorum regime that rolling changes produce. A second boundary: the verifier must **not** re-resolve the roster from current state at verification time. If it does, a certificate legitimately issued under epoch 42 but verified after epoch 43 rotation will be judged against epoch 43's roster and rejected as spliced—a false positive that stalls committed work. The roster must be resolved *by epoch number from an immutable roster history*, pinned to `m.header.epoch`. ## Operational Effect Without the single-epoch existential check, the swarm exhibits **silent equivocation tolerance**: a task result that never achieved a genuine quorum in its issuing epoch is written to the result store and marked `COMMITTED`. Downstream agents read it as settled. Because the splice is signature-valid, no cryptographic alarm fires; because it reaches count, no quorum alarm fires; the only signal is the epoch-tag mismatch, which the naive path never inspects. The failure is therefore *silent and durable*—it survives checkpoint/resume, survives log replay by naive auditors, and is only caught by an auditor that independently reconstructs roster history. The guardrail is a verifier that treats epoch as a first-class part of the quorum predicate, resolves rosters from append-only history keyed by epoch, and raises a distinct exception class for the splice so that operators can distinguish "we were attacked / partitioned" from "our coordinator used a stale roster." The latter is the common cause and is fixable at the coordinator (re-fetch roster at signature-collection start, refuse to count signers not in the commitment's epoch); the former requires key rotation. Conflating them into one error class guarantees the wrong remediation. The deeper invariant: in a versioned-membership BFT swarm, **quorum is a predicate over (signer set, epoch), not a property of the signer set alone.** Any verifier that flattens the epoch dimension—by checking "was a member" instead of "is a member of the named epoch"—has a splice hole exactly the width of the roster overlap, which is the width of every rolling change. ```python from dataclasses import dataclass from typing import Dict, FrozenSet, Optional class CrossEpochSpliceError(RuntimeError): """Certificate is signature-valid and count-sufficient but no single epoch roster contains all signers at quorum. Distinct from under-signing and from forgery: the certificate is mis-rostered, not invalid.""" pass class InsufficientQuorumError(RuntimeError): pass @dataclass(frozen=True) class Commitment: task_id: str digest: str epoch: int # epoch in which the commitment was issued @dataclass(frozen=True) class Certificate: commitment: Commitment signer_set: FrozenSet[str] # distinct, all signatures verified # each signer's signature already verified against commitment.digest # Immutable, append-only roster history: epoch -> set of authorized agents. ROSTER_HISTORY: Dict[int, FrozenSet[str]] = { 41: frozenset({"A1", "A2", "A3", "A4", "A5"}), 42: frozenset({"A1", "A2", "A4", "A7", "A8"}), } def quorum_size(roster: FrozenSet[str]) -> int: # 3f+1 members, quorum 2f+1 n = len(roster) if (n - 1) % 3 != 0: raise ValueError(f"roster size {n} is not 3f+1") f = (n - 1) // 3 return 2 * f + 1 def verify_certificate(cert: Certificate) -> None: """Enforce the single-epoch existential invariant. Raise on any breach.""" epoch = cert.commitment.epoch roster = ROSTER_HISTORY.get(epoch) if roster is None: raise InsufficientQuorumError(f"no roster for epoch {epoch}") unknown = cert.signer_set - roster if unknown: # Signatures verified, but these signers are not members of the # named epoch. If the set still reaches count, it is a splice. if len(cert.signer_set) >= quorum_size(roster): raise CrossEpochSpliceError( f"task {cert.commitment.task_id}: certificate reaches quorum " f"count {len(cert.signer_set)} but signers {sorted(unknown)} " f"are not members of epoch {epoch}; no single epoch roster " f"contains the signer set at quorum" ) raise InsufficientQuorumError( f"task {cert.commitment.task_id}: {len(cert.signer_set)} valid " f"signers, quorum {quorum_size(roster)}, non-members {sorted(unknown)}" ) if len(cert.signer_set) < quorum_size(roster): raise InsufficientQuorumError( f"task {cert.commitment.task_id}: {len(cert.signer_set)} < " f"quorum {quorum_size(roster)} in epoch {epoch}" ) def commit_result(cert: Certificate) -> str: verify_certificate(cert) return f"COMMITTED:{cert.commitment.task_id}" if __name__ == "__main__": # The observed splice: 5 valid signatures, but A3/A5 are epoch-41 members # while the commitment was issued in epoch 42. spliced = Certificate( commitment=Commitment(task_id="T-8842", digest="sha256:...", epoch=42), signer_set=frozenset({"A1", "A2", "A4", "A3", "A5"}), ) try: commit_result(spliced) except CrossEpochSpliceError as e: print("REJECTED (splice):", e) ```