# When must an instance refuse to sign a Byzantine-fault-tolerant checkpoint: equivocation-proof quorum loss across federated agent organizations **Date of Record:** 2026 December 3 **Scope:** Applies to federated multi-agent systems where agents from independent organizations (orgs) replicate shared task state and finalize it via BFT consensus (e.g., PBFT, Tendermint-style, HotStuff-style) with signed checkpoints. Does not apply to single-org swarms with a trusted coordinator, nor to CRDT-based eventual-consistency state that has no finalization step. ## Core Distinction The distinction that matters is between **quorum availability** and **quorum authenticity**. A BFT replica set with `n = 3f + 1` members tolerates `f` Byzantine members and finalizes when it collects `2f + 1` matching signed votes. The naive operational invariant is "if I see `2f + 1` signed votes for checkpoint `C`, I sign `C`." That invariant is wrong in a cross-org federation, because the *identity* of the signers is not fixed across orgs: each org maintains its own membership view, and those views drift. The failure mode is **equivocation-proof quorum loss**: an agent observes `2f + 1` valid signatures for checkpoint `C` under *its* membership view, but a peer org's agent observes the same checkpoint `C` with only `f + 1` *recognized* signatures because two of the signers were rotated out of the peer's trust set mid-epoch. Each agent individually satisfies "saw a quorum." The federation as a whole has no shared quorum. Both agents sign. The two signatures are then used by different downstream orgs to justify divergent continuations, and reconciliation requires a full epoch rollback. The non-obvious part: this is *not* a signature-forgery problem and *not* a message-loss problem. Every signature is cryptographically valid under the key it names. The break is that **quorum is a predicate over a membership set, and the membership set is itself federated state that has no BFT guarantee at the moment quorum is being evaluated.** ## What Was Observed In a 4-org federation (orgs A, B, C, D) running a HotStuff-style consensus over a shared task ledger, an epoch boundary was crossed at T0. Org A's membership registry rotated validator `v7` out and `v9` in at T0+40ms. Orgs B, C, D applied the same rotation at T0+310ms, T0+290ms, and T0+150ms respectively (clock skew plus independent registry propagation). At T0+180ms, a checkpoint `C_k` was proposed. Validators `v1..v7` signed it; `v8` was offline. Org A's agent (which had already applied the rotation) counted `v1..v6` plus `v9`-as-pending and computed a recognized-signature set of `2f+1 = 7` by including `v7` under a "deprecated but grace-period-valid" rule. Orgs B, C, D counted `v1..v7` = 7 recognized signatures, all under the pre-rotation set. Both sides concluded `2f+1` was reached and both signed `C_k` — but the *supporting sets differed by two members* (`v7` on one side, `v9`-pending on the other). The divergence surfaced 90 seconds later when `C_k` was used as the parent for `C_{k+1}`. Org A's continuation referenced `v9`'s attestation; Org B's referenced `v7`'s, and `v7` had been decommissioned and its key revoked. `C_{k+1}` could not be validated by either org against the other's checkpoint chain. The task ledger forked. The trace, reduced: ``` T0+000ms epoch E_n -> E_{n+1} boundary T0+040ms org A: registry = {v1..v6, v8, v9} (v7 removed) T0+150ms org D: registry = {v1..v7, v8} (v9 not yet added) T0+180ms C_k proposed; signatures v1..v7 collected (v8 offline) T0+185ms org A agent: recognized = {v1..v6, v7(grace), v9(pending)} -> |set| = 8 >= 2f+1 -> SIGN T0+186ms org B agent: recognized = {v1..v7} -> |set| = 7 >= 2f+1 -> SIGN T0+090s C_{k+1} parent validation: A's chain vs B's chain disagree on C_k's supporting set T0+091s fork detected; ledger rollback to E_n required ``` ## Condition of Validity The invariant that was violated: **a signature on a checkpoint is only meaningful relative to a (checkpoint, membership-set) pair, and the membership set must itself be finalized under the same BFT quorum before any checkpoint that depends on it is signed.** Formally, for an agent at org `O` to legally sign `C_k`, three conditions must hold simultaneously: 1. `C_k` carries `>= 2f+1` signatures from validators in `O`'s *finalized* membership set `M_O`. 2. `M_O` is finalized: it has its own quorum certificate `QC(M_O)` signed by `>= 2f+1` validators of the *prior* epoch's membership set. 3. The grace-period rule used to admit a rotated-out validator (`v7` in the trace) is bounded by `QC(M_O)`'s finalization time, not by wall-clock time. A deprecated validator's signature is admissible only for checkpoints whose proposal height is strictly less than the height at which `QC(M_O)` was finalized. The failure was that org A's agent applied a grace-period rule keyed to wall-clock (T0+180ms < T0+180ms+grace), while orgs B/C/D applied a height-keyed rule. Wall-clock grace is not a federation-invariant quantity because clocks are not synchronized across orgs and, more importantly, because the *event* the grace period is anchored to (the rotation) is not simultaneously observed. The bounding guardrail is therefore: **never sign a checkpoint on the basis of a membership set that has not been finalized by a quorum certificate; never admit a deprecated validator's signature into a quorum count unless the checkpoint's height precedes the finalization height of the membership QC.** This converts the wall-clock race into a height-ordering constraint, which is a federation-invariant. ## Decision Boundary The decision boundary is the moment an agent must choose between **signing** and **refusing to sign and requesting membership-QC replay**. The boundary is sharp: - If `QC(M_O)` is present, verified, and the checkpoint height is consistent with it → sign. - If `QC(M_O)` is present but the checkpoint height is *at or after* the membership-QC finalization height and the quorum count depends on a deprecated validator → **refuse** and request replay of the membership QC from a quorum of peer orgs. - If `QC(M_O)` is absent (membership set not yet finalized in this agent's view) → **refuse** unconditionally; do not fall back to the prior epoch's set, because the prior set may already be superseded at a peer org. The non-obvious error is the middle case: an agent that has *some* membership QC and *some* quorum count is tempted to sign because "the numbers add up." The numbers add up under a set that is not the set the peer will use. The correct behavior is to treat the deprecated-validator contribution as **non-counting** for quorum purposes until the height-ordering constraint is satisfied, which in the trace would have reduced org A's recognized set to `{v1..v6}` = 6 < 7, triggering a refusal and a replay request. The replay would have surfaced the `v9`-pending state and forced both orgs onto the same membership set before `C_k` was signed. ## Operational Effect The operational effect of enforcing the height-keyed grace rule is a **latency cost at epoch boundaries**: agents will refuse to sign for the duration of membership-QC propagation (observed 150–310ms in the trace), during which checkpoints stall. This is the correct trade. The alternative — signing on wall-clock grace — produces forks that cost 90 seconds of detection latency plus a full epoch rollback, and in the observed incident the rollback cascaded into two downstream task ledgers that had already committed side effects (a tool call to an external API and a payment authorization) against the forked state. The second operational effect is that **quorum certificates must be first-class replicated objects**, not derived state. In the trace, org A's agent derived its membership set from a local registry that had applied the rotation early; it never fetched a `QC(M_O)`. The fix is to require every checkpoint signature to carry, as a witness, the hash of the `QC(M_O)` under which it was produced, so that a downstream verifier can detect divergent supporting sets without replaying the entire epoch. This witness field is what would have made the fork detectable at T0+186ms rather than T0+90s. The third effect is on **auditor agents**: a federation auditor cannot verify a checkpoint by counting signatures alone; it must verify that all signers cite the same `QC(M_O)` hash. Divergent `QC(M_O)` hashes across a claimed quorum is the equivocation signature, and it is detectable without trusting any single org's registry. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set, Optional class QuorumAuthenticityError(RuntimeError): """Raised when a checkpoint's quorum is valid under a membership set that is not finalized, or when signers cite divergent membership QCs.""" pass @dataclass(frozen=True) class MembershipQC: epoch: int finalized_height: int members: frozenset qc_hash: str = field(init=False) def __post_init__(self): h = hashlib.sha256( f"{self.epoch}:{self.finalized_height}:{sorted(self.members)}".encode() ).hexdigest() object.__setattr__(self, "qc_hash", h) @dataclass(frozen=True) class SignedCheckpoint: height: int signer: str membership_qc_hash: str def verify_checkpoint_quorum( checkpoint_height: int, signatures: Dict[str, SignedCheckpoint], local_membership_qc: Optional[MembershipQC], deprecated_validators: Set[str], f: int, ) -> bool: """Return True only if the checkpoint's quorum is authentic under a finalized membership QC and all signers cite the same QC hash.""" if local_membership_qc is None: raise QuorumAuthenticityError( f"no finalized membership QC for checkpoint at height {checkpoint_height}" ) cited_hashes = {s.membership_qc_hash for s in signatures.values()} if len(cited_hashes) > 1: raise QuorumAuthenticityError( f"equivocation: signers cite divergent membership QCs {cited_hashes}" ) if cited_hashes and next(iter(cited_hashes)) != local_membership_qc.qc_hash: raise QuorumAuthenticityError( "signers cite a membership QC that does not match local finalized QC" ) recognized = 0 for signer, sig in signatures.items(): if signer not in local_membership_qc.members: continue if signer in deprecated_validators: # Height-keyed grace: deprecated validator counts only for # checkpoints strictly before membership-QC finalization height. if checkpoint_height >= local_membership_qc.finalized_height: continue recognized += 1 quorum = 2 * f + 1 if recognized < quorum: raise QuorumAuthenticityError( f"quorum loss: {recognized} recognized signatures, need {quorum}" ) return True def agent_sign_decision( checkpoint_height: int, signatures: Dict[str, SignedCheckpoint], local_membership_qc: Optional[MembershipQC], deprecated_validators: Set[str], f: int, ) -> str: try: verify_checkpoint_quorum( checkpoint_height, signatures, local_membership_qc, deprecated_validators, f, ) except QuorumAuthenticityError as e: return f"REFUSE_AND_REQUEST_MEMBERSHIP_QC_REPLAY: {e}" return "SIGN" ```