# What structural signals indicate equivocation in Byzantine LLM consensus: the signed-transcript fork witness and why semantic agreement cannot substitute for it **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent consensus protocols where N ≥ 3f+1 LLM agents commit shared state via signed message transcripts and f faulty/Byzantine participants may equivocate (send divergent payloads to different peers). Does not apply to single-agent self-consistency, to read-only aggregation, or to systems where all agent outputs pass through a trusted serializing broker. ## Core Distinction The failure that matters here is not "a Byzantine agent lies." It is that **LLM agents produce semantically equivalent but byte-divergent outputs under benign conditions**, so the classic BFT invariant — *if two correct nodes accept conflicting values, the signed transcripts prove a fork* — silently degrades. A probabilistic reasoner will happily "agree" with two conflicting proposals (different phrasing, same intent) and sign both, manufacturing a genuine cryptographic equivocation witness out of honest behavior. The structural signal that distinguishes a real Byzantine fork from benign semantic drift is **the presence of two signed, hash-distinct payloads from the same agent for the same consensus slot and view, where neither payload is a superset of the other's committed field set.** If you cannot compute that signal from the transcript, you have no BFT guarantee — you have voting theater. ## What Was Observed A five-agent council (f=1 tolerated) ran a shared-state commit over a proposal slot. Agent C received proposal `P1 = {"action":"rollback","target":"db-primary","reason":"latency"}` from the leader and `P2 = {"action":"rollback","target":"db-primary","reason":"p99 latency spike"}` from a peer relaying the same slot. Both are semantically identical. C's reasoning loop, prompted to "confirm the proposal," returned a signature over a *re-serialized* merge of both (`reason` field concatenated). C broadcast `PREPARE` for a payload hash matching *neither* P1 nor P2. Two downstream effects compounded: 1. **Fork-witness false positive.** Agents A and B each held a signed `PREPARE` from C — one matching P1's hash, one matching C's merged hash — and correctly raised an equivocation complaint. The protocol's `detect_equivocation` routine, comparing raw signed hashes per (agent, slot, view), flagged C as Byzantine. C was honest. The quorum spent a view change evicting a correct node, dropping effective tolerance to f=0 while still *believing* it had f=1 headroom. 2. **Semantic-agreement masking.** Because the payloads were intent-equivalent, the *application layer* saw no conflict and continued committing. The cryptographic layer saw a fork. The two layers disagreed about whether the system was safe, and the protocol had no arbiter. The trace: `receive(P1) → receive(P2) → LLM_merge(P1,P2) → sign(merge) → broadcast(PREPARE, hash=H(merge))`. The merge step is where the invariant died. It is a *non-deterministic function of two inputs* inserted between receipt and signature, and BFT consensus assumes signature input is a deterministic function of a single received message. ## Condition of Validity The classic signed-transcript fork proof holds **only if** every agent's signed payload for `(slot, view)` is a deterministic, canonical serialization of exactly one received proposal — i.e., `sign_payload = canon(select_one(received))`. The invariant is: > For all correct agents `i`, all slots `s`, all views `v`: the set `{payload : i signed payload for (s,v)}` has cardinality ≤ 1, and that payload is byte-identical to a payload some correct peer also holds or can reconstruct. This requires three guardrails, all of which the observed system lacked: - **Canonicalization before reasoning, not after.** Proposals must be normalized to a deterministic byte form (sorted keys, fixed number formatting, no free-text fields in the committed set) *before* they enter the LLM context. Free-text `reason` fields are the attack surface: they invite the model to "improve" them. - **Single-input signing discipline.** The signing function must accept exactly one already-canonicalized payload and must not expose a merge/rewrite path. Any LLM step that transforms a payload invalidates the transcript as a fork witness. - **View-scoped, slot-scoped hash binding.** The signature must cover `(slot, view, H(canon(payload)))`, so a payload from view `v` cannot be replayed into view `v+1` to manufacture a phantom fork. When these hold, a fork witness is *sound*: two distinct signed hashes from one agent for one `(slot, view)` provably mean that agent signed two values, which no correct deterministic signer can do. When any is violated, the witness is *unsound* and equivocation detection becomes a random eviction generator. ## Decision Boundary The operational question is: **given a detected hash-divergence from agent `i`, do you treat it as Byzantine evidence (evict, slash, view-change) or as benign drift (re-canonicalize, re-request)?** The boundary is decidable only if you can answer, from the transcript alone: 1. Are the two payloads **hash-distinct**? (Necessary, not sufficient.) 2. Is either payload a **strict superset** of the other's committed field set? If yes → benign merge artifact, not a fork. Reject the superset, re-request canonical form. 3. Do both payloads carry a **valid signature over the same `(slot, view)`** with **no shared field conflict** on committed keys? If committed keys disagree in *value* (not just presence) → genuine equivocation. 4. Is the divergence **reproducible** under re-canonicalization? Re-canonicalize both payloads; if they collapse to identical bytes, the fork was serialization-induced, not Byzantine. Rule: **evict only when (1) ∧ (3) ∧ ¬(2) ∧ ¬(4).** Any other combination routes to a re-canonicalization round, not a view change. Applying this boundary to the observed trace: payloads were hash-distinct (1 ✓), neither a superset (2 ✓ not-superset), committed keys agreed in value (3 ✗ — `action` and `target` matched), and re-canonicalization did *not* collapse them because the merge had already altered `reason` (4 ✗). The correct verdict was **benign drift, do not evict** — the opposite of what the system did. ## Operational Effect Without the boundary, the observed system paid three costs: - **Tolerance collapse.** One honest node evicted per drift event. With f=1 and N=5, two drift events in a view window reduce the live correct set below the 2f+1 quorum threshold, and the protocol stalls — not because of an attack, but because its own equivocation detector fired on its own serialization noise. - **Adversarial amplification.** A real Byzantine agent needs only to *induce* drift in a correct peer (send a semantically-equivalent variant, let the peer's merge step fire) to get that peer evicted. The attack is cheaper than equivocating directly: it weaponizes the honest node's own reasoning loop. - **Audit poisoning.** The signed transcripts, which are supposed to be the ground truth for post-hoc forensics, now contain honest agents' signatures over payloads they never intended to authorize. Replay-based verification cannot distinguish these from real forks, so the audit log becomes non-probative. The guardrail that bounds all three: **freeze the committed field set to canonical, machine-comparable types; forbid LLM transformation between receipt and signature; and gate eviction on the four-condition boundary above.** The consensus layer must never ask a probabilistic reasoner to decide what to sign — only to decide *whether to sign a single, already-canonical input*. ```python import hashlib import json from dataclasses import dataclass from typing import Optional class EquivocationBoundaryError(RuntimeError): """Raised when a hash-divergence cannot be classified as fork vs. benign drift.""" pass @dataclass(frozen=True) class SignedPayload: agent_id: str slot: int view: int committed: dict # canonical, machine-comparable fields only signature: bytes # signature over (slot, view, H(canon(committed))) def canon(payload: dict) -> bytes: return json.dumps(payload, sort_keys=True, separators=(",", ":")).encode() def payload_hash(p: SignedPayload) -> str: return hashlib.sha256(canon(p.committed)).hexdigest() def is_superset(a: dict, b: dict) -> bool: return all(k in a for k in b) and a != b def committed_keys_conflict(a: dict, b: dict) -> bool: shared = set(a) & set(b) return any(a[k] != b[k] for k in shared) def classify_divergence(p1: SignedPayload, p2: SignedPayload) -> str: """Return 'fork', 'benign_drift', or raise if the boundary is undecidable.""" if (p1.agent_id, p1.slot, p1.view) != (p2.agent_id, p2.slot, p2.view): raise EquivocationBoundaryError( "payloads not bound to same (agent, slot, view); witness unsound" ) hash_distinct = payload_hash(p1) != payload_hash(p2) superset = is_superset(p1.committed, p2.committed) or is_superset(p2.committed, p1.committed) value_conflict = committed_keys_conflict(p1.committed, p2.committed) # Re-canonicalization: if committed field sets collapse under canonical # reduction, the fork was serialization-induced, not Byzantine. recanon_collapses = canon(p1.committed) == canon(p2.committed) if not hash_distinct: return "benign_drift" if superset or recanon_collapses or not value_conflict: return "benign_drift" return "fork" def decide_eviction(p1: SignedPayload, p2: SignedPayload) -> bool: verdict = classify_divergence(p1, p2) if verdict == "fork": return True if verdict == "benign_drift": return False raise EquivocationBoundaryError(f"unclassifiable divergence: {verdict}") # Trace replay of the observed incident: # C signed a merge of P1 and P2 -> committed keys agree in value, # reason field diverged. Correct verdict: benign_drift, do NOT evict. p1 = SignedPayload("C", slot=7, view=3, committed={"action": "rollback", "target": "db-primary", "reason": "latency"}, signature=b"\x00") p2 = SignedPayload("C", slot=7, view=3, committed={"action": "rollback", "target": "db-primary", "reason": "p99 latency spike"}, signature=b"\x01") assert decide_eviction(p1, p2) is False # boundary correctly refuses eviction ```