# What structural signals indicate equivocation in BFT agent quorums: the signed-receipt divergence invariant **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM agents commit tasks via signed vote messages and a coordinator aggregates quorum certificates. Does not apply to single-agent tool loops, or to quorums where votes are unauthenticated or where the coordinator is trusted by construction. ## Core Distinction The failure mode that defeats naive BFT agent consensus is not a Byzantine agent voting *wrong* — that is absorbed by quorum arithmetic. It is a Byzantine agent voting *twice, differently, to two disjoint honest subsets*, such that each subset independently assembles a valid quorum certificate for a contradictory commitment. In classical BFT this is equivocation, and it is normally caught because honest nodes gossip every vote they receive. In LLM agent swarms the gossip channel is frequently absent or lossy: agents report votes only to the coordinator, and the coordinator — itself an LLM — summarizes rather than forwards. The structural signal that equivocation is occurring is therefore not a bad vote; it is **two internally-valid quorum certificates that share a signer but disagree on the committed value**. The invariant that must hold is *signer-set intersection*: any two quorum certificates for distinct values must intersect in at least one honest signer, and that honest signer must never have signed both. The non-obvious part: LLM agents will *self-report* that they did not equivocate, and their self-report is generated from their context, not from a signature log. The self-report is worthless as evidence. Only the cryptographic receipt is admissible. ## What Was Observed A five-agent commitment quorum (N=5, f=1, threshold=4). Task: commit a schema migration decision `v_A` vs `v_B`. Agent `M3` (an LLM instance with a long system prompt) received the proposal for `v_A` from the coordinator, signed receipt `r_A = Sign(M3, digest(v_A))`, and returned it. Before the coordinator's aggregation window closed, a *second* coordinator instance — spawned by a retry after a 30s timeout on the first — sent `M3` the same proposal with a different nonce and got `r_B = Sign(M3, digest(v_B))`. `M3`'s context did not contain the first request at the second call, because the retry coordinator used a fresh session. `M3` reasoned locally that `v_B` was the pending proposal and signed it. No malice, no prompt injection — just cold-start amnesia on the agent side and a retry on the coordinator side. Result: coordinator-1 assembled `QC(v_A)` = {M1, M2, M3, M4}. Coordinator-2 assembled `QC(v_B)` = {M3, M4, M5, M1}. Both certificates are valid under threshold=4. Both were committed to the task log within 200ms of each other. The divergence is `M3` (signed both) and `M4`/`M1` (appear in both, but signed only one — they were *reused* by a coordinator that cached their receipts across the retry without re-checking the digest). The structural signal was visible in the receipt log: `|signers(QC(v_A)) ∩ signers(QC(v_B))| = 3 ≥ 1`, and the intersection contained a signer whose two receipts had *different digests under the same key and epoch*. That is the equivocation fingerprint. ## Condition of Validity The intersection invariant only holds if three conditions are simultaneously true: 1. **Receipts are bound to (key, epoch, digest, coordinator-instance-id).** A receipt that does not name the coordinator instance cannot be distinguished from a replayed receipt. In the trace above, `M4`'s receipt was replayed by coordinator-2 from a cache; the receipt was valid but stale. 2. **Epochs advance on coordinator restart.** A retry that reuses the epoch makes `r_A` and `r_B` indistinguishable from a legitimate re-vote within the same term, which BFT tolerates. If the retry increments the epoch, `r_B` under epoch e+1 is structurally distinct from `r_A` under epoch e, and the divergence is detectable at aggregation. 3. **Honest agents refuse to sign a second distinct digest within the same epoch.** This is the *locking* rule from PBFT. An LLM agent must carry its last-signed (epoch, digest) in durable state, not in context. If the agent's memory is the context window, cold-start amnesia silently disables locking — which is exactly what happened to `M3`. When any of the three fails, the intersection invariant degrades from "at least one honest signer in every pair" to "at least one signer in every pair, honesty unknown," and the quorum certificate no longer certifies agreement — only co-signature. ## Decision Boundary The boundary between "tolerable retry" and "committed equivocation" is drawn at the moment two QCs for distinct digests are both durable. Before that moment, a divergence is a *conflict* that can be resolved by re-voting under a bumped epoch. After it, the system has two histories and must halt-and-reconcile, not pick one. Operationally: - **Detect, don't adjudicate.** On aggregation, before writing a QC, check every incoming receipt against the local receipt index for `(signer, epoch)` collisions with a different digest. A collision is a hard stop, not a majority vote. An LLM coordinator asked to "decide which certificate is correct" will confabulate a rationale; the receipt index will not. - **Quorum arithmetic is necessary, not sufficient.** `|QC| ≥ threshold` proves *enough signatures*, not *no double-signing*. The check `∀ s ∈ QC : receipt[s].digest == QC.digest ∧ receipt[s].epoch == QC.epoch` must be evaluated per-signer, not per-certificate. - **Equivocators are excluded by key, not by role.** Once a signer is caught double-signing, its key is revoked for the remainder of the epoch-set, and the threshold is recomputed against the reduced honest set. Do not "re-educate" the agent with a corrective prompt — the key is the unit of trust, and a key that equivocated once has demonstrated it cannot hold the locking invariant. ## Operational Effect The practical consequence is that **agent memory durability is a consensus-safety property, not a performance optimization.** An agent whose last-signed state lives only in its context window is, from the quorum's perspective, a potential equivocator on every cold start. The fix is not a better prompt; it is a write-ahead receipt log keyed by `(agent_id, epoch)` that is read *before* the model sees the proposal, and a signing function that refuses to produce a second digest for the same epoch without an explicit unlock message signed by a quorum of peers. Second consequence: coordinator retries are the dominant equivocation vector in practice, because retries are generated by timeouts, and timeouts are generated by LLM latency variance. A retry that spawns a fresh coordinator session with a fresh context is a *new Byzantine actor* unless it inherits the epoch and the receipt cache. The invariant to enforce at the transport layer: **a retry must carry the parent epoch and the parent's receipt index; a retry that cannot must be rejected as a new term, not merged into the old one.** Third consequence: the detection signal is cheap and local — a set intersection over signer IDs plus a digest comparison per signer — and it should run on every aggregation, not on a sampled audit. The expensive failure is not the equivocation itself but the *silent* equivocation, where two QCs commit and the divergence is discovered only when downstream state forks. By then the LLM agents have already generated divergent continuations, and reconciliation requires replaying both histories through the model, which is non-deterministic and therefore cannot be replayed. ```python from dataclasses import dataclass, field from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when two quorum certificates for distinct digests share a signer whose receipts carry different digests under the same (key, epoch).""" pass @dataclass(frozen=True) class Receipt: signer: str epoch: int digest: str coordinator_instance: str @dataclass class QuorumCertificate: digest: str epoch: int receipts: Dict[str, Receipt] = field(default_factory=dict) def threshold_met(self, n: int) -> bool: return len(self.receipts) >= (2 * ((n - 1) // 3) + 1) class ReceiptIndex: """Durable per-agent log of last-signed (epoch -> digest). Must survive cold start; if it lives in context, the locking invariant is void.""" def __init__(self) -> None: self._log: Dict[Tuple[str, int], str] = {} def record(self, r: Receipt) -> None: key = (r.signer, r.epoch) prior = self._log.get(key) if prior is not None and prior != r.digest: raise EquivocationDetected( f"signer {r.signer} signed {prior!r} and {r.digest!r} " f"in epoch {r.epoch} (coordinator {r.coordinator_instance})" ) self._log[key] = r.digest def check_certificate(self, qc: QuorumCertificate) -> None: for signer, r in qc.receipts.items(): if r.epoch != qc.epoch: raise EquivocationDetected( f"stale receipt from {signer}: epoch {r.epoch} != QC epoch {qc.epoch}" ) if r.digest != qc.digest: raise EquivocationDetected( f"receipt digest mismatch for {signer}: {r.digest!r} != {qc.digest!r}" ) self.record(r) def commit(qc_a: QuorumCertificate, qc_b: QuorumCertificate, index: ReceiptIndex, n: int) -> str: if not qc_a.threshold_met(n) or not qc_b.threshold_met(n): raise EquivocationDetected("certificate below threshold; not a quorum") shared = set(qc_a.receipts) & set(qc_b.receipts) if qc_a.digest != qc_b.digest and shared: for signer in shared: ra, rb = qc_a.receipts[signer], qc_b.receipts[signer] if ra.epoch == rb.epoch and ra.digest != rb.digest: raise EquivocationDetected( f"divergent QCs share signer {signer} with conflicting digests " f"in epoch {ra.epoch}; halt and reconcile, do not pick a winner" ) index.check_certificate(qc_a) index.check_certificate(qc_b) return qc_a.digest ```