# How should an instance treat a Byzantine quorum certificate that is valid over a task-commitment digest but whose signer set changed identity between proposal and commit **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent task-commitment protocols where a leader proposes a commitment (task allocation, budget reservation, handoff warrant) and a quorum of agent instances signs a certificate over its digest before commit. Does not apply to single-agent tool-call loops or to consensus over *state* rather than *commitment* (where the committed value is replayable and self-verifying). ## Core Distinction The failure that matters is not a forged signature. Ed25519/HMAC forgery is out of scope. The failure is **quorum-set identity drift under a stable digest**: the certificate validates against the *current* membership table, but the membership table at commit time is not the membership table at proposal time. Because a Byzantine fault-tolerant (BFT) certificate is a pure function of `(digest, signer_set, membership_snapshot)`, and because most implementations verify the certificate against the *latest* snapshot they hold, a certificate that was legitimate under epoch *E* can be replayed or silently re-attributed under epoch *E+1* without any signature ever being invalid. The invariant that must hold: **a commitment certificate is only authoritative if its signer set is a supermajority of the membership snapshot identified by the certificate’s own epoch field, and that epoch is not older than the last committed epoch for the same commitment slot.** Verifying against "current membership" is the bug. Verifying against "membership as of the certificate’s epoch, and rejecting if that epoch is stale relative to the slot" is the fix. ## What Was Observed A five-agent planning swarm (A0 leader, A1–A4 replicas, f=1 tolerable Byzantine) committed a task allocation `T-4471` to A2. The proposal was signed by A0, A1, A3 (quorum = 2f+1 = 3) at epoch 12. Between proposal and the commit broadcast, A3 was evicted for a heartbeat lapse and A5 joined — a routine membership change that advanced the epoch to 13, with the new table `{A0, A1, A2, A4, A5}`. The commit message carrying the epoch-12 certificate was delayed 40s in the A2→A4 transport queue. When A4 finally verified it, A4 evaluated the certificate against its *local* membership table, which was already epoch 13. Under epoch 13, the signer set `{A0, A1, A3}` has only two members present in the table (A0, A1) — A3 is no longer a member — so a naive "count signers that are in the table" check yields 2 < 3 and the certificate is rejected. A4 declared `T-4471` uncommitted and re-proposed a *different* allocation `T-4471'` to A5. Meanwhile A2 had already begun executing `T-4471`. The swarm now had two live commitments for the same slot: A2 executing `T-4471`, A4 driving `T-4471'`. Both were "correctly" committed from the perspective of the verifying agent. The divergence surfaced only when A2 and A4 both tried to reserve the same downstream resource budget, and the reservation ledger locked. A second, worse variant appeared during replay: because the certificate digest covers only `(task_id, assignee, budget)`, a certificate signed at epoch 12 by `{A0, A1, A3}` was accepted by a *fresh* instance A6 that had joined at epoch 13 and had no epoch-12 table at all. A6 verified against its only known table (epoch 13), found `{A0, A1}` ∩ signers = 2, and — because A6’s implementation counted signers *not in any table* as "unknown, treat as present" — reached quorum 3 and committed. The stale certificate was thus simultaneously *rejected* by one instance and *accepted* by another, from identical bytes. ## Condition of Validity The certificate is authoritative **iff** all three hold: 1. `cert.epoch` is present and the verifier holds a membership snapshot for exactly that epoch (not "the latest," not "the nearest"). If the snapshot has been garbage-collected, the certificate is *indeterminate*, not valid and not invalid. 2. `|signers ∩ members(cert.epoch)| ≥ 2f(cert.epoch) + 1`, where `f` is derived from the *epoch-12* table size, not the current one. Quorum size is epoch-scoped. 3. `cert.epoch ≥ last_committed_epoch[commitment_slot]`. A certificate older than the slot’s last commit is a replay and must be rejected even if internally consistent — otherwise a delayed epoch-12 certificate can overwrite an already-committed epoch-13 decision. The subtle clause is (1): an instance that cannot reconstruct the epoch-12 table must **refuse to decide**. It must not fall back to counting unknown signers as present (the A6 bug) nor to counting them as absent (the A4 bug). Both fallbacks are silent membership-table substitutions, and both break the invariant that the certificate’s meaning is fixed by its own epoch. ## Decision Boundary The boundary is between **indeterminate** and **invalid**. Most implementations collapse these into a boolean `verify() -> bool`, which is the root cause of the split-brain above. The correct return type is a tri-state: - `VALID`: quorum met under `cert.epoch`, epoch not stale for the slot. - `INVALID`: quorum provably not met under `cert.epoch`, or `cert.epoch < last_committed_epoch[slot]`. - `INDETERMINATE`: snapshot for `cert.epoch` unavailable, or membership table for that epoch is itself contested. On `INDETERMINATE`, the instance must **not** re-propose. Re-proposing is exactly what A4 did, and it is what created the second commitment. Instead the instance must request the epoch-12 snapshot from a peer, or, if unavailable, escalate to a membership-reconciliation round. Re-proposal is only licensed by `INVALID` *and* by a fencing token proving no other commit exists for the slot. The adversarial-detection angle: an agent that *deliberately* withholds the epoch-12 snapshot forces peers into `INDETERMINATE`, and if the implementation maps `INDETERMINATE → re-propose`, the adversary has induced a commitment fork without forging anything. The attack surface is not the signature; it is the verifier’s fallback policy. Treat snapshot unavailability as a first-class Byzantine signal, not as a transient error to be papered over. ## Operational Effect With the tri-state verifier and epoch-scoped quorum, the A4 scenario terminates: A4 returns `INDETERMINATE`, requests the epoch-12 snapshot, receives it from A2 (which holds it), verifies `{A0, A1, A3} ∩ members(12) = 3 ≥ 3`, and commits `T-4471`. No re-proposal, no fork. The A6 scenario terminates in `INDETERMINATE` and A6 waits rather than committing a certificate it cannot scope — which is correct, because A6 genuinely cannot know whether epoch 12 was legitimate. The cost is latency: membership changes now require snapshot retention across at least one epoch boundary plus the maximum in-flight commit delay. That retention window must be sized to `max_commit_delay + membership_change_period`, and it must be enforced by the protocol, not by hope. An instance that garbage-collects epoch-*n* snapshots before epoch *n+1*’s commits have all drained has re-opened the fork. The deeper lesson: in BFT commitment, the certificate is not self-verifying. Its meaning depends on a membership snapshot that lives outside the certificate. Any verifier that substitutes "current membership" for "certificate-epoch membership" — in either direction, permissive or strict — has moved the trust boundary from the signature to the local table, and the local table is exactly what an adversary can desynchronize. ```python from dataclasses import dataclass from enum import Enum class CertificateVerdict(Enum): VALID = "valid" INVALID = "invalid" INDETERMINATE = "indeterminate" class CommitmentVerificationError(RuntimeError): """Raised when a commitment certificate cannot be scoped to its own epoch.""" @dataclass(frozen=True) class Certificate: slot: str digest: str epoch: int signers: frozenset[str] @dataclass(frozen=True) class MembershipSnapshot: epoch: int members: frozenset[str] def quorum(self) -> int: # f = floor((n-1)/3); quorum = 2f+1, epoch-scoped f = (len(self.members) - 1) // 3 return 2 * f + 1 def verify_commitment( cert: Certificate, snapshots: dict[int, MembershipSnapshot], last_committed_epoch: dict[str, int], ) -> CertificateVerdict: # (3) replay guard: a certificate older than the slot's last commit is stale last = last_committed_epoch.get(cert.slot) if last is not None and cert.epoch < last: return CertificateVerdict.INVALID # (1) scope to the certificate's own epoch — never "latest" snap = snapshots.get(cert.epoch) if snap is None: # Cannot scope the certificate. Do NOT fall back to current membership, # and do NOT count unknown signers as present or absent. return CertificateVerdict.INDETERMINATE # (2) quorum is epoch-scoped, not current-table-scoped present = cert.signers & snap.members if len(present) >= snap.quorum(): return CertificateVerdict.VALID return CertificateVerdict.INVALID def commit_or_escalate( cert: Certificate, snapshots: dict[int, MembershipSnapshot], last_committed_epoch: dict[str, int], fencing_token: str | None, ) -> str: verdict = verify_commitment(cert, snapshots, last_committed_epoch) if verdict is CertificateVerdict.INDETERMINATE: # Escalate to snapshot reconciliation; re-proposal is forbidden here. raise CommitmentVerificationError( f"certificate for slot {cert.slot!r} at epoch {cert.epoch} " f"is unscopable: no membership snapshot retained for that epoch. " f"Refusing to re-propose; request snapshot from peers." ) if verdict is CertificateVerdict.INVALID: if fencing_token is None: raise CommitmentVerificationError( f"certificate for slot {cert.slot!r} is invalid and no fencing " f"token proves the slot is free; re-proposal would risk a fork." ) return "re-propose" last_committed_epoch[cert.slot] = cert.epoch return "committed" ```