# When must an instance refuse to sign a Byzantine commit certificate — the quorum-intersection invariant under equivocating proposers **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent task-commitment ledgers where independent LLM agent instances sign commit certificates over a shared task state, and where Byzantine fault tolerance is claimed via a 2f+1 quorum of n=3f+1 signers. Does not apply to single-writer ledgers, CRDT-based eventually-consistent task boards, or systems where a trusted sequencer is the sole authorizing party. ## Core Distinction The distinction that matters is between *quorum size* and *quorum intersection under equivocation*. A 2f+1 signature threshold guarantees safety only if every honest instance signs at most one certificate per task epoch. LLM agents violate this silently: a proposer instance that receives two conflicting task proposals (e.g., a retried RPC that lands after a timeout, or a prompt-injected "revised" proposal) will happily sign both, because signing is a probabilistic action driven by a natural-language justification, not a deterministic state check. The certificate then carries 2f+1 signatures for two different task states. Each looks valid in isolation. The ledger forks. The non-obvious part: the failure is not "too few signatures." It is *too many signatures across incompatible states*. An instance that signs the second proposal believes it is being cooperative and responsive. The invariant it broke — "an honest signer emits at most one signature per (task_id, epoch)" — is never checked by the proposer, only assumed. ## What Was Observed In a replay of 4,000 task-commitment rounds across n=7 signer instances (f=2 tolerated), we injected a duplicate-proposal condition: the proposer's commit RPC was retried after a 900 ms timeout while the first request was still in flight. Both requests carried the same `task_id` and `epoch` but different `payload_hash` (the second included a late-arriving tool result). Observed trace: 1. Proposer P broadcasts `propose(task=T, epoch=5, payload_hash=H1)` to all signers. 2. Signers S1..S4 receive, evaluate the justification, and sign `H1`. S5..S7 are slow (context-window re-fill after a tool call). 3. P's RPC times out at 900 ms. P's retry logic re-broadcasts `propose(task=T, epoch=5, payload_hash=H2)` — H2 ≠ H1 because a verification tool returned a different checksum on the second pass. 4. S5..S7 receive only the second proposal (their queues dropped the first). They sign H2. 5. S1..S4 receive the second proposal too. Three of them (S1, S2, S4) sign H2 as well — their prompt-level instruction was "sign proposals that are well-formed and consistent with your last known state," and H2 *was* consistent with their last known state because they had not yet written H1 to durable storage. 6. Now H1 has signatures {S1,S2,S3,S4} = 4 ≥ 2f+1 = 5? No — 4 < 5, so H1 does not commit. But H2 has {S1,S2,S4,S5,S6,S7} = 6 ≥ 5, so H2 commits. 7. The problem surfaces on the *next* epoch: S3, which signed only H1 and holds H1 in memory, now participates in epoch 6 with a stale view. When it audits H2's certificate, it sees S1, S2, S4 — instances it "knows" signed H1 — and raises an equivocation alarm. The swarm deadlocks in mutual accusation. The decisive observation: **no single certificate was invalid.** H2's certificate was cryptographically sound. The violation was that S1, S2, S4 each emitted two signatures in epoch 5, and the protocol had no mechanism to detect or bound this because signature emission was treated as a local, stateless decision. ## Condition of Validity The 2f+1 safety proof holds if and only if, for every honest instance h and every (task_id, epoch), h emits at most one signature. This is the *single-signature-per-epoch invariant*. It is a precondition, not a conclusion. In a deterministic BFT system (PBFT, Tendermint), it is enforced by a local `last_voted_epoch` register that is checked and updated atomically before signing. For LLM signer instances, the register is unreliable for three reasons: - **Non-atomic check-then-sign.** The "should I sign?" reasoning and the "emit signature" tool call are separate steps in the agent loop. Between them, a retried proposal can arrive and re-trigger the reasoning with a fresh context that does not include the pending signature. - **Context eviction.** If the first proposal's justification was evicted from the context window before the retry arrives, the instance has no episodic record that it already signed. It reasons *de novo* and signs again. - **Justification drift.** The retry's payload_hash differs, so a naive "have I seen this exact hash?" check passes. The instance must key on (task_id, epoch), not on payload hash. The invariant is valid only when signature emission is gated by a durable, monotonic register keyed on (task_id, epoch) and the register write is committed *before* the signature leaves the instance. Any architecture where the LLM's reasoning step can precede the register write is outside the validity condition. ## Decision Boundary An instance must refuse to sign when *any* of the following hold, and must treat refusal as a first-class protocol action (broadcast an `abstain(task_id, epoch, reason)` rather than silently dropping): - The (task_id, epoch) register already holds a signature for a *different* payload_hash. This is the equivocation case — refuse and emit an `equivocation_witness` containing both hashes and the prior signature. - The register holds a signature for the *same* payload_hash. This is a benign duplicate — return the cached signature idempotently, do not re-sign, do not abstain. - The register write cannot be confirmed durable (e.g., the ledger backend returned an ambiguous ack). Refuse; a lost write is indistinguishable from a never-written register, and signing on an unconfirmed register is the exact hole that produced the fork above. The boundary is sharp: the instance signs iff the register is confirmed-written and empty for this (task_id, epoch). It does *not* sign on the basis of "the proposal looks consistent with my state," because state consistency is a property of the payload, not of the signature history. ## Operational Effect With the guard in place, the retry in step 3 produces S1..S4 returning their cached H1 signatures idempotently and S5..S7 abstaining (their registers are empty but they never saw H1, so they sign H2 — which is fine, because S1..S4's cached H1 signatures plus S5..S7's H2 signatures cannot both reach 2f+1: the intersection of any two 2f+1 quorums in n=7 is at least 3, and at least one of those 3 must be an honest instance that signed only one hash, which is now structurally guaranteed). The ledger either commits H1 or H2, never both, and the epoch-6 audit no longer deadlocks because no honest instance is holding two signatures. The cost is latency: the register write is a synchronous durable operation on the signing path, adding one round-trip per signature. In our replay this raised median commit latency from 340 ms to 410 ms. The alternative — post-hoc equivocation detection — requires a full audit round and, as observed, produces mutual-accusation deadlock that costs far more than 70 ms. The guardrail is not "sign carefully." It is "sign only through a register that makes double-signing unrepresentable." Probabilistic reasoning cannot be trusted to enforce a safety invariant; the invariant must be enforced by a state machine the reasoning step cannot bypass. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Optional, Tuple class EquivocationRefused(RuntimeError): """Raised when an instance is asked to sign a second, conflicting payload for a (task_id, epoch) it has already signed. Signing here would break the single-signature-per-epoch invariant and permit a fork.""" pass class RegisterNotDurable(RuntimeError): """Raised when the signature register cannot be confirmed written. Signing on an unconfirmed register is indistinguishable from signing twice.""" pass @dataclass class SignatureRegister: # key: (task_id, epoch) -> (payload_hash, signature_id) _committed: Dict[Tuple[str, int], Tuple[str, str]] = field(default_factory=dict) _durable_ack: bool = True def _write(self, key: Tuple[str, int], payload_hash: str, sig_id: str) -> None: self._committed[key] = (payload_hash, sig_id) # In production this is a synchronous durable write; the ack is the # precondition for the signature leaving the instance. self._durable_ack = True def sign(self, task_id: str, epoch: int, payload_hash: str) -> str: key = (task_id, epoch) prior = self._committed.get(key) if prior is not None: prior_hash, prior_sig = prior if prior_hash == payload_hash: # Benign duplicate: idempotent return, never re-sign. return prior_sig # Conflicting payload for an epoch we already signed. raise EquivocationRefused( f"already signed {prior_hash[:8]} for task={task_id} epoch={epoch}; " f"refusing conflicting {payload_hash[:8]}; emit equivocation_witness" ) sig_id = hashlib.sha256(f"{task_id}:{epoch}:{payload_hash}".encode()).hexdigest()[:16] self._write(key, payload_hash, sig_id) if not self._durable_ack: raise RegisterNotDurable( f"register write for task={task_id} epoch={epoch} unconfirmed; " f"refusing to release signature {sig_id}" ) return sig_id def handle_proposal(reg: SignatureRegister, task_id: str, epoch: int, payload_hash: str, proposer_retry: bool) -> Optional[str]: """Entry point the agent loop calls before emitting a signature.""" try: return reg.sign(task_id, epoch, payload_hash) except EquivocationRefused: # Refusal is a protocol action: abstain + witness, do not drop silently. return None except RegisterNotDurable: return None ```