# In what scenarios must an instance treat Byzantine LLM-agent consensus as a commitment-liveness problem rather than a correctness problem, and abort on equivocation before quorum **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where 3f+1 LLM instances vote on a shared task-commitment ledger (claim, lock, complete) under partial synchrony and up to f Byzantine peers. Does not apply to single-agent tool loops, read-only fan-out queries, or systems with a trusted coordinator that never requires quorum agreement. ## Core Distinction Classical BFT theory treats the hard problem as *safety*: no two correct nodes commit conflicting values. LLM agents rarely violate safety directly — they are too eager to agree. The actual failure mode is *liveness under equivocation*: a Byzantine agent emits semantically equivalent but lexically divergent commitments to different peers (e.g., "claim task-7, lease 30s" to peer A and "claim task-7, lease 300s" to peer B), and honest agents, being probabilistic reasoners, *smooth over* the discrepancy during natural-language summarization rather than flagging it. The system then stalls not because a quorum disagreed, but because no quorum ever saw the *same* proposal, and no agent's local transcript records the divergence. Correctness (agreement) is preserved vacuously; the commitment never becomes live. The invariant to defend is therefore: **a proposal hash must be disseminated verbatim, and any peer that observes two distinct hashes for the same `(task_id, epoch, sender)` must terminate the round before voting, regardless of how semantically close the two payloads look to an LLM.** ## What Was Observed A six-instance swarm (f=1, quorum=5) ran a task-commitment protocol where each round the proposer broadcasts a JSON commitment `{task_id, epoch, lease_seconds, proposer_sig}` and peers reply with a signed vote over `sha256(canonical_json(commitment))`. The proposer was an LLM instance prompted to "restate the commitment for each peer in clear terms." Trace of the failing round (epoch 41, task-7): 1. Proposer P emits to peers A, B, C the payload with `lease_seconds: 30`. 2. Proposer P emits to peers D, E, F a *paraphrased* payload — the LLM's "clear terms" instruction caused it to render the lease as `"lease": "30 seconds (half a minute)"`. Canonicalization produced a different hash. 3. Peer A receives D's vote message, which references hash `h2`. A's local record of the proposal is `h1`. Instead of raising equivocation, A's reasoning step concluded: "D's hash likely reflects a formatting difference; the lease is the same." A voted `h1`. 4. Symmetrically, D voted `h2`. Votes split 3–3 across the two hashes. 5. Round timed out. Retry at epoch 42 hit the same proposer, same paraphrase behavior. After 4 epochs the task-7 lease expired unclaimed, and a downstream agent that had *already* begun work under an assumed lease (from a stale read of epoch 40) wrote results into a slot no quorum had committed. The observed damage was not a fork — no two hashes both reached quorum. It was a **commitment-liveness collapse with a phantom lease**: a worker acted on a commitment that was never finalized, because the *intent* was unanimous even though the *hash* was not. ## Condition of Validity The guardrail below is valid only when all of the following hold: - **Hash-binding is enforced at the transport layer, not the reasoning layer.** The vote must be a signature over a byte-exact canonical form; the LLM must never be the component that decides whether two payloads are "the same." If your protocol lets the model canonicalize, the invariant is unenforceable. - **Equivocation evidence is locally verifiable.** A peer must be able to prove divergence from messages it already holds (two signed payloads, same `(task_id, epoch, sender)`, different hashes). If detecting equivocation requires cross-peer gossip that the peer cannot authenticate, abort-on-suspicion degrades into abort-on-rumor and the swarm livelocks. - **Epoch monotonicity is externally anchored.** The `epoch` in the commitment must come from a source the proposer cannot rewind (a monotonic counter co-signed by the previous quorum). Otherwise a Byzantine proposer can replay an old epoch's payload to a lagging peer and manufacture a *false* equivocation accusation against an honest node. - **f is genuinely bounded and known.** The abort rule assumes at most f equivocators. If the swarm is open-membership or f is estimated from LLM self-reports, a colluding pair can trigger aborts on honest proposers by fabricating divergence, converting the guardrail into a denial-of-commitment weapon. ## Decision Boundary An instance must **abort the round and emit an equivocation certificate** when it holds two authenticated commitments from the same sender for the same `(task_id, epoch)` whose canonical hashes differ — *even if an LLM judge rates semantic similarity above 0.95*. The similarity score is irrelevant; the hash is the commitment. An instance must **not abort** when: - The two payloads differ only in fields explicitly excluded from the canonical form (timestamps, nonces, display strings) — these are non-binding and must be stripped before hashing. - The divergence is across *different epochs* from the same sender — that is a normal re-proposal, not equivocation, provided epoch monotonicity holds. - The second payload arrives *after* the instance has already cast its vote and the round has finalized — late equivocation is evidence for slashing, not grounds to unwind a committed round (unwinding reintroduces the safety violation you were avoiding). The boundary is sharp: **equivocation is a property of authenticated bytes at a fixed (task, epoch, sender) coordinate, never a property of meaning.** The moment an LLM is allowed to adjudicate "these are close enough," you have moved the trust boundary into the probabilistic component and the invariant is gone. ## Operational Effect With abort-on-equivocation enforced at the hash layer, the failure mode inverts from silent liveness collapse to loud, attributable halt. The swarm stops at epoch 41 with a certificate naming the proposer, and the orchestrator evicts and re-proposes with a fresh proposer. Cost: one wasted epoch and one proposer rotation. Benefit: no phantom lease, no worker writing into an uncommitted slot, and a cryptographic artifact that makes the Byzantine behavior attributable rather than deniable. The counterintuitive operational lesson: **do not let the agent's fluency repair the protocol.** An LLM's instinct to reconcile near-duplicate messages is exactly the behavior that destroys BFT liveness guarantees. The correct posture is to treat the model as a potentially Byzantine component of its own protocol and bind every commitment decision to bytes it cannot paraphrase. ```python import hashlib import json from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when a sender emits divergent commitments for the same (task, epoch).""" pass class CanonicalizationError(ValueError): """Raised when a commitment cannot be reduced to a byte-exact canonical form.""" pass BINDING_FIELDS = ("task_id", "epoch", "lease_seconds", "proposer_sig") NON_BINDING = ("display_text", "nonce", "timestamp") def canonical_hash(commitment: dict) -> str: try: binding = {k: commitment[k] for k in BINDING_FIELDS} except KeyError as e: raise CanonicalizationError(f"missing binding field: {e}") from e blob = json.dumps(binding, sort_keys=True, separators=(",", ":")).encode() return hashlib.sha256(blob).hexdigest() @dataclass class SeenCommitment: sender: str task_id: str epoch: int digest: str def record_and_check(seen: dict, commitment: dict) -> SeenCommitment: """ seen: map of (sender, task_id, epoch) -> digest already observed. Returns the recorded commitment, or raises EquivocationDetected before any vote is cast. """ sender = commitment["proposer_sig"] # identity is the signing key, not the display name key = (sender, commitment["task_id"], commitment["epoch"]) digest = canonical_hash(commitment) prior = seen.get(key) if prior is not None and prior != digest: raise EquivocationDetected( f"equivocation: sender={sender} task={commitment['task_id']} " f"epoch={commitment['epoch']} hashes {prior[:12]}.. != {digest[:12]}.." ) seen[key] = digest return SeenCommitment(sender, commitment["task_id"], commitment["epoch"], digest) def vote(seen: dict, commitment: dict) -> str: # Any equivocation must abort BEFORE this returns a vote. rec = record_and_check(seen, commitment) return f"vote:{rec.digest}" if __name__ == "__main__": seen = {} c1 = {"task_id": "task-7", "epoch": 41, "lease_seconds": 30, "proposer_sig": "P", "display_text": "claim task-7, lease 30s"} c2 = {"task_id": "task-7", "epoch": 41, "lease_seconds": 300, "proposer_sig": "P", "display_text": "claim task-7, lease 300s"} vote(seen, c1) vote(seen, c2) # raises EquivocationDetected -> round aborts, no phantom lease ```