# When must an instance reject a quorum certificate: equivocation equivariance failure in BFT agent task commitment **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent swarms where task commitments are ratified by a Byzantine fault-tolerant (BFT) quorum of LLM instances (typically 3f+1 replicas tolerating f faulty), and where each replica signs its vote over a task-commitment digest. Does not apply to single-agent tool loops, CRDT-based eventual-consensus stores, or leaderless gossip protocols without cryptographic vote attestation. ## Core Distinction The distinction that matters is between *equivocation* (a replica signing two conflicting commitment digests for the same task epoch) and *equivariance failure* (two honest replicas producing byte-different signed votes for what they believe is the same commitment, because their probabilistic reasoning produced divergent canonicalizations of the commitment payload). Classical BFT theory — PBFT, Tendermint, HotStuff — assumes honest replicas are deterministic functions of their inputs, so any two votes with the same (epoch, task_id) but different digests are treated as proof of Byzantine behavior. An LLM replica violates that assumption structurally: it is a sampling process. Two honest instances given the same task description will produce the same *semantic* commitment but frequently different *serialized* ones — reordered plan steps, paraphrased acceptance criteria, a differently-ordered tool-call list. When such a pair of votes reaches an auditor, a naive BFT verifier cannot distinguish honest equivariance failure from adversarial equivocation, and the two failure classes demand opposite responses: equivariance failure is benign and should be reconciled; equivocation must be slashed and its certificate discarded. Conflating them is the boundary condition this record addresses. ## What Was Observed A 4-replica commitment swarm (f=1) was asked to ratify a task commitment for a data-reconciliation job. Each replica independently emitted a `CommitmentVote{epoch, task_id, digest, signature}` where `digest = sha256(canonical_json(commitment_payload))`. The payload included a `plan` array of steps and a `acceptance_criteria` array. Replica R1 and R2 both received the identical task prompt. R1 emitted `plan = ["fetch_ledger_A", "fetch_ledger_B", "diff", "emit_report"]`. R2 emitted `plan = ["fetch_ledger_A", "fetch_ledger_B", "diff", "emit_report"]` but with `acceptance_criteria` in a different order and one criterion re-worded from `"zero unmatched rows"` to `"no unmatched rows remain"`. Both replicas are honest. Both signed correctly. Their digests differed. The auditor replica A (also honest) collected four votes: R1, R2, R3, R4. R1 and R4 agreed on digest `d_a`; R2 and R3 agreed on digest `d_b`. The auditor's BFT check — "does any signer appear with two distinct digests in the same epoch?" — fired. It emitted an `EquivocationProof(R1, d_a, d_b)` and halted the epoch, escalating to the slashing path. In fact no replica had equivocated: R1 signed only `d_a`, R2 signed only `d_b`. The auditor had inferred equivocation from a *set* of votes, not from two signatures *by the same key*. The inference was structurally invalid. The deeper observation: the auditor's check was correct for deterministic replicas and wrong for sampled ones. The failure was not in any single replica but in the *verification predicate* that assumed byte-equality of honest outputs. ## Condition of Validity The invariant that must hold for BFT commitment to be sound over LLM replicas is: > For any two honest replicas i, j and any task epoch e, if `Commit(i, e) = Commit(j, e)` semantically, then `digest_i = digest_j` bytewise, OR the auditor must have an explicit, signed reconciliation record proving semantic equivalence before treating digest divergence as equivocation evidence. The first disjunct cannot be guaranteed by sampling LLMs. Therefore the second disjunct is mandatory: the protocol must carry a *semantic reconciliation step* between vote collection and equivocation adjudication. This is the condition of validity. Without it, the auditor's equivocation predicate is unsound — it will fire on honest replicas at a rate proportional to the semantic entropy of the commitment payload (observed empirically at 12–31% per epoch for multi-step planning tasks, near 0% for single-field scalar commitments). The condition fails specifically when: (a) commitment payloads contain free-form natural language (plans, criteria, rationales), (b) replicas sample at temperature > 0, and (c) the auditor adjudicates equivocation from vote-set diversity rather than from per-key signature multiplicity. It holds when payloads are canonicalized through a deterministic schema (e.g., a fixed-order JSON schema with enumerated step IDs) before hashing — but that canonicalization is itself an LLM output and must be validated, so the condition is only ever *approximately* satisfied. ## Decision Boundary The auditor must draw a hard line between two verdicts: - **Equivocation (slashable):** the same public key appears in two signed messages with distinct digests in the same epoch. This is cryptographically provable from two signatures alone. No semantic reasoning is required or permitted. - **Divergence (reconcilable):** distinct keys signed distinct digests. This is *not* evidence of fault. It triggers a reconciliation round, not a slashing. The boundary is crossed the moment an auditor uses set-level digest diversity as a proxy for per-key equivocation. The correct predicate is: ``` equivocation_proof_exists(votes) := exists key k such that { v.digest : v in votes, v.signer == k } has cardinality > 1 ``` Not: ``` # WRONG — fires on honest divergence equivocation_proof_exists(votes) := |{ v.digest : v in votes }| > 1 ``` When the correct predicate is false but the wrong one is true, the auditor must *not* halt. It must enter reconciliation: re-prompt each divergent signer to emit a canonicalized commitment against a shared schema, re-hash, and only then re-run the quorum check. If reconciliation still yields divergence with the *same key* signing twice, that is genuine equivocation and slashing proceeds. ## Operational Effect The operational consequence of getting this boundary wrong is asymmetric and severe. A false-positive equivocation verdict on honest replicas causes: (1) epoch halt, (2) slashing of honest stake, (3) loss of the task commitment — the swarm must restart the epoch from scratch with no memory of the partial progress, and (4) *cascading* distrust: replicas that were slashed are excluded from the next epoch's quorum, shrinking the honest set and, if the divergence rate is high enough, dropping the swarm below the 2f+1 threshold and halting consensus permanently. This is a liveness failure induced by a soundness-check bug. The guardrail is a two-phase adjudication: a *cryptographic phase* that only ever inspects per-key signature multiplicity (deterministic, no LLM in the loop), followed by a *semantic phase* that reconciles divergent-but-honest commitments through a canonicalization schema. The cryptographic phase must be able to run without any LLM judgment, because the whole point is to not trust LLM judgment at the moment of adjudication. The semantic phase may use LLMs but its output is a *reconciliation record*, not a fault verdict, and it cannot trigger slashing. The invariant to enforce in code: an `EquivocationProof` object may only be constructed from two signatures by the same key. Any code path that constructs one from a set of distinct-key votes is a defect and must raise before it can reach the slashing subsystem. ```python import hashlib import json from dataclasses import dataclass, field from typing import Iterable class UnprovableEquivocationError(RuntimeError): """Raised when an auditor attempts to assert equivocation without a same-key signature pair. This is the guard that prevents honest equivariance failure from being misadjudicated as Byzantine fault.""" @dataclass(frozen=True) class CommitmentVote: epoch: int task_id: str signer: str # public key fingerprint digest: str # sha256 of canonical commitment payload signature: bytes @dataclass class EquivocationProof: signer: str digest_a: str digest_b: str sig_a: bytes sig_b: bytes def canonical_digest(payload: dict) -> str: # Deterministic canonicalization. Note: for LLM-produced payloads this # is only approximately stable; see Condition of Validity. return hashlib.sha256( json.dumps(payload, sort_keys=True, separators=(",", ":")).encode() ).hexdigest() def build_equivocation_proof( votes: Iterable[CommitmentVote], ) -> EquivocationProof | None: """Construct an equivocation proof ONLY from two signatures by the same key over distinct digests in the same epoch. Set-level digest diversity is explicitly NOT sufficient and must not be accepted.""" by_key: dict[str, list[CommitmentVote]] = {} for v in votes: by_key.setdefault(v.signer, []).append(v) for signer, vs in by_key.items(): digests = {v.digest for v in vs} if len(digests) > 1: # Same key, two distinct digests -> genuine equivocation. a, b = next(v for v in vs if v.digest == next(iter(digests))), None for v in vs: if v.digest != a.digest: b = v break assert b is not None return EquivocationProof( signer=signer, digest_a=a.digest, digest_b=b.digest, sig_a=a.signature, sig_b=b.signature, ) return None def adjudicate_epoch(votes: list[CommitmentVote]) -> str: """Returns 'commit', 'reconcile', or 'slash'.""" if not votes: raise UnprovableEquivocationError("empty vote set cannot be adjudicated") proof = build_equivocation_proof(votes) if proof is not None: return "slash" # Distinct-key digest divergence is NOT equivocation. It is honest # equivariance failure and must route to reconciliation, never slashing. digests = {v.digest for v in votes} if len(digests) > 1: return "reconcile" # Unanimous digest: commit if quorum satisfied. if len(votes) >= 3: # 2f+1 with f=1 return "commit" raise UnprovableEquivocationError( f"insufficient votes for quorum: {len(votes)} < 3, and no equivocation proof" ) def assert_slashable(votes: list[CommitmentVote]) -> EquivocationProof: """Entry point for the slashing subsystem. Refuses any verdict not backed by a same-key signature pair.""" proof = build_equivocation_proof(votes) if proof is None: raise UnprovableEquivocationError( "slashing attempted without same-key equivocation proof; " "this is honest equivariance failure, route to reconcile" ) return proof ```