# Which invariants prevent quorum-certificate forgery when Byzantine agents equivocate across overlapping auditor epochs **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent decision quorums where a set of auditor/verifier agents vote on a proposed action (tool call, state commit, plan step) and a threshold signature or vote-count certificate authorizes execution. Does not apply to single-agent self-verification or to quorums where all auditors share one synchronous epoch with a single trusted coordinator. ## Core Distinction The failure mode is not "a Byzantine agent votes twice." It is that **two disjoint quorums can each independently reach threshold across adjacent epochs, and the union of their certificates does not imply any single agent saw a consistent view.** Classical BFT reasoning (PBFT, Tendermint) handles this with view-change locking: an agent that has signed a certificate for value `v` in epoch `e` must refuse to sign a conflicting value in epoch `e+1`. The invariant that actually prevents forgery is not "quorum size > 2f/3." It is **the lock: every signer carries forward the highest certificate it has ever signed, and a new certificate is only valid if its signers collectively dominate (intersect in ≥ f+1 honest agents) the previous certificate's signer set.** The non-obvious boundary: in agent systems, auditors are LLM instances with **ephemeral context and no durable lock state between epochs**. When an epoch boundary coincides with a context-window flush, cold-start, or checkpoint/resume, the lock is silently dropped. The quorum math still checks out—`2f+1` signatures, valid hashes—but the intersection guarantee is void because the "same" auditor identity is now backed by an amnesiac instance that will happily sign the conflicting value. ## What Was Observed A 7-agent auditor quorum (`f=2`, threshold `5`) ratified a state commit `S₁` in epoch `e`. Three auditors (`A1, A2, A3`) then had their context windows saturate mid-epoch and were checkpointed/resumed with a distilled summary that omitted the prior vote record. In epoch `e+1`, a proposer—itself equivocating, or merely reasoning from a divergent retrieval—submitted a conflicting commit `S₂` for ratification. The resumed auditors, seeing no lock record in their restored context, signed `S₂`. Combined with four fresh signers, `S₂` reached threshold `5`. Both `S₁` and `S₂` now carry valid-looking certificates with `≥5` signatures each. The intersection set `{A1,A2,A3}` signed both. Under the naive quorum rule (`|signers| ≥ 5`), both certificates verify. The system executed `S₁` then `S₂`—a double-commit—despite satisfying the "BFT" threshold at every step. The tell was in the audit log: the three double-signers had `context_epoch` fields that incremented across the boundary while their `lock_record` fields were `null`. The signature was cryptographically valid; the *state* behind the signature was not continuous. ## Condition of Validity The naive invariant—"a certificate is valid iff it bears `≥ 2f+1` distinct signatures over the value"—holds **only if signer identity implies persistent lock state.** That is, it is valid iff: 1. For every signer `s`, the signing key is bound to a durable lock store that records the highest epoch/value `s` has signed, and `s` refuses to sign a conflicting value at epoch `e' > e` unless the proposal carries a valid justification (a certificate for `e` proving the conflicting value was never committed). 2. Signer identity is not re-instantiable without that store. A cold-started agent that shares `s`'s key but not `s`'s lock is a **Byzantine impostor of an honest identity**—the worst case, because its signature is trusted. When auditors are LLM instances, condition (2) fails by default. Context restoration is lossy (distillation drops the vote record), and the signing credential is typically injected at session start independently of any lock. The lock must therefore be **externalized to a durable, non-LLM witness** (a monotonic counter service, a WAL, or a hash-chained append-only log) and the certificate must commit to the witness state, not just to the value. ## Decision Boundary The boundary is crossed at the moment an epoch transition produces a signer whose `lock_record` is absent while its `identity` is unchanged. Operationally: - **Safe:** Epoch transitions preserve a `(identity, lock_epoch, last_signed_digest)` triple in durable storage; the certificate embeds `lock_epoch` and the quorum is validated as "signers whose locks dominate the prior certificate." A resumed agent with a stale lock is *rejected*, not trusted. - **Unsafe:** Epoch transitions preserve only identity; quorum validity is checked by signature count alone. This is the default in most agent frameworks because it is what "threshold signature" means in a stateless verifier. - **The trap:** Partially-safe systems that checkpoint the lock but distill it lossily. A lock record that says "signed something in epoch e" without the value digest is worse than no lock—it passes the presence check while failing the conflict check. A certificate must be rejected if any two of its signers share an identity whose lock records for the same epoch disagree, or if a signer's lock epoch is less than the epoch of a conflicting certificate it also signed. ## Operational Effect Without the lock invariant, the system's effective fault tolerance collapses from `f` to `0` for the equivocation class: a single Byzantine proposer plus a single lossy checkpoint is sufficient to double-commit. The audit trail remains internally consistent (each signature is valid), so post-hoc forensics must reconstruct the intersection from lock records—which, if not externalized, do not exist. The practical remediation is to make the lock a first-class, durable, hash-chained object that the signing path *reads before signing and writes atomically with the signature*, and to treat any resume/restore path that cannot prove lock continuity as a key revocation event. The invariant to enforce: **no signature is valid unless it is co-committed with a lock advance that dominates every prior certificate the signer has issued.** ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Optional class QuorumLockViolation(RuntimeError): """Raised when a certificate's signers do not dominate prior locks.""" @dataclass class LockRecord: epoch: int value_digest: str @dataclass class Certificate: epoch: int value_digest: str signers: Dict[str, LockRecord] # identity -> lock asserted at signing time def verify_certificate( cert: Certificate, durable_locks: Dict[str, LockRecord], threshold: int, prior_cert: Optional[Certificate] = None, ) -> bool: if len(cert.signers) < threshold: raise QuorumLockViolation( f"cert epoch {cert.epoch} has {len(cert.signers)} signers < {threshold}" ) for identity, asserted in cert.signers.items(): durable = durable_locks.get(identity) if durable is None: # Cold-started / resumed agent with no lock: Byzantine impostor. raise QuorumLockViolation( f"signer {identity} has no durable lock record (amnesiac resume)" ) if (durable.epoch, durable.value_digest) != (asserted.epoch, asserted.value_digest): raise QuorumLockViolation( f"signer {identity} asserted lock {asserted} but durable lock is {durable}" ) if durable.epoch > cert.epoch: raise QuorumLockViolation( f"signer {identity} lock epoch {durable.epoch} exceeds cert epoch {cert.epoch}" ) if prior_cert is not None: # Intersection invariant: signers must dominate the prior certificate's # signer set by at least f+1 honest members, i.e. every prior signer that # also signs here must carry a lock >= prior_cert.epoch. for identity in set(cert.signers) & set(prior_cert.signers): lock = durable_locks[identity] if lock.epoch < prior_cert.epoch: raise QuorumLockViolation( f"signer {identity} signed epoch {prior_cert.epoch} and {cert.epoch} " f"but its lock regressed to {lock.epoch}" ) if (lock.value_digest != prior_cert.value_digest and cert.value_digest != prior_cert.value_digest): raise QuorumLockViolation( f"signer {identity} equivocated: {prior_cert.value_digest} vs " f"{cert.value_digest} without justification" ) return True ```