# What structural signals indicate equivocation-induced commitment divergence in BFT multi-agent task consensus **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent swarms where task commitment and shared-state agreement are enforced by a Byzantine fault-tolerant (BFT) consensus layer among LLM-backed agents, and where agents hold non-identical context windows. Does not apply to single-agent tool loops or to leaderless CRDT-style convergence without explicit commit certificates. ## Core Distinction The failure of interest is not a *crash* fault (an agent that stops responding) nor a *value* fault (an agent that returns a wrong answer). It is an **equivocation fault at the commitment layer**: an agent (or a compromised prompt-injected agent) emits two mutually incompatible but individually well-formed `COMMIT` certificates for the same task epoch, one to partition A and one to partition B. Standard BFT quorum thresholds (e.g., 2f+1 of 3f+1) are *sound* against equivocation only when the quorum-intersection argument holds over a *single* signed message per (agent, epoch, view). The moment an agent's LLM reasoning is non-deterministic across two invocations of the same prompt, the agent can legitimately produce two different but honest-looking commits—a **probabilistic equivocation** that no signature scheme catches because both messages are authentically signed by the same key. The distinction that matters operationally: a signature proves *who* committed, not that *what* they committed is unique. LLM agents break the implicit "one honest agent = one value per epoch" assumption because sampling temperature, context drift, and retrieval nondeterminism mean the same agent re-deriving a decision can land on a different value. ## What Was Observed A 7-agent swarm (f=2, quorum=5) executing a shared-state task ledger. Each agent, on receiving a `PROPOSE(task_id, epoch, value)` from the leader, runs a reasoning step and broadcasts a signed `COMMIT(task_id, epoch, value_hash)`. Trace of the divergence: 1. Agent `A3` receives `PROPOSE` for `task_id=T91, epoch=4, value=v_a`. It reasons, produces `v_a`, and signs `COMMIT(T91, 4, hash(v_a))` to partition A. 2. A network partition isolates `A3` from the leader. The new leader (view change to view 5) re-proposes `T91` with a *reconstructed* value `v_b` (the leader's own retrieval returned a different document chunk). `A3`, now in view 5, re-runs its reasoning step. Because its context window now contains the view-change transcript—which the first invocation did not—it produces `v_b` and signs `COMMIT(T91, 4, hash(v_b))` to partition B. 3. Both commits are cryptographically valid. Both are for epoch 4. Quorum A = {A0, A1, A3, A4, A5} commits `v_a`. Quorum B = {A2, A3, A6, A0, A1} commits `v_b`. 4. Both quorums satisfy 2f+1 = 5. Both are "valid." The ledger forks at `T91`. The structural signal that preceded the fork: `A3`'s second reasoning invocation had a **different context hash** than the first (`ctx_hash_2 ≠ ctx_hash_1`), yet its commit certificate carried only `(task_id, epoch, value_hash)`—no context binding. The equivocation was invisible at the certificate layer. A second signal: the two quorums intersect at `{A0, A1, A3}`—three agents, exceeding f=2. A correct BFT implementation should have detected that an intersecting set of honest agents (≥ f+1) signed two distinct values for the same epoch, which is impossible under the one-value-per-epoch invariant. But the detection logic only compared value hashes *within a view*, and the two commits were tagged with different views (4 and 5). The view field, intended as a monotonic fence, became a **partition label that suppressed the conflict check**. ## Condition of Validity The quorum-intersection safety argument is valid only under the invariant: > For every honest agent `i`, every task `T`, and every epoch `e`, agent `i` signs at most one distinct `value_hash` in any `COMMIT(T, e, ·)` certificate, regardless of view, partition, or context. This invariant is *assumed* by PBFT-style protocols because classical replicas are deterministic state machines—re-executing the same request yields the same output. LLM agents violate the premise: they are **context-dependent, sampling-stochastic state machines**. Re-execution under a different context (view-change transcript, different retrieved chunks, different prior messages in the window) is a *different computation*, not a replay. The invariant therefore must be *enforced*, not assumed. The enforcement mechanism is **context binding**: every commit certificate must include `ctx_hash = H(prompt_template || retrieved_context || view_transcript_digest || sampling_seed)`, and the consensus layer must reject any second commit from the same agent for the same `(task, epoch)` whose `ctx_hash` differs from the first, unless the agent explicitly issues a signed `REVOKE(prior_ctx_hash)` that is itself quorum-acknowledged. Absent this, the protocol has no defense against probabilistic equivocation. ## Decision Boundary The boundary between safe and unsafe operation is whether the agent's commit is a **pure function of the protocol message** or a **function of ambient context**. Concretely: - **Safe (deterministic commit):** The agent's decision is derived solely from the `PROPOSE` payload plus a frozen, content-addressed context snapshot referenced by hash in the proposal. Re-execution under any view yields the same `value_hash`. Equivocation requires malice (key theft), which signatures catch. - **Unsafe (context-dependent commit):** The agent's decision depends on mutable ambient state—view-change transcripts, live retrieval, conversation history, or sampling temperature. Re-execution is a fresh sample. Equivocation arises *without malice*. The decision rule: if `ctx_hash` is not bound into the certificate, the protocol is operating in the unsafe regime and its safety guarantee is *conditional on agent determinism*, which LLM agents do not provide. Operators must treat any BFT ledger without context binding as **safety-degraded to crash-fault-tolerant only**—it tolerates agents that die, not agents that change their mind. A secondary boundary: view numbers must not be used as conflict-suppression fields. Conflict detection must key on `(task_id, epoch)` alone, scanning *across* views. If the detection index is partitioned by view, equivocation across a view change is structurally invisible. ## Operational Effect When this divergence occurs, the observable symptoms are: 1. **Silent fork, not a crash.** Both partitions believe they hold a valid quorum. No agent raises an error. Downstream consumers reading from different partitions see inconsistent task state (`T91` marked `done:true` with two different result payloads). 2. **Delayed detection at reconciliation.** The fork surfaces only when a cross-partition read or a later epoch's quorum intersects the conflicting sets—often minutes to hours after the commit, by which time dependent tasks have executed against the wrong value. 3. **Non-reproducible audit.** Because the two commits have different `ctx_hash` values (or none at all), replaying the ledger does not reproduce the divergence deterministically. Auditors cannot reconstruct *why* `A3` changed its mind without the original context snapshots. 4. **Compounding.** If the forked value feeds a subsequent task's `PROPOSE`, the divergence propagates: the next epoch's proposals differ across partitions, and the swarm's state trees irreversibly bifurcate. The guardrail is a **commit-uniqueness fence**: a per-(agent, task, epoch) signed-once register, checked before any commit is accepted, with cross-view scope and context-hash binding. Violation raises a hard fault that halts the epoch and forces an explicit reconciliation round rather than silently accepting both quorums. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Tuple class EquivocationFault(RuntimeError): """Raised when an agent emits conflicting commits for the same (task, epoch).""" pass @dataclass(frozen=True) class CommitCertificate: agent_id: str task_id: str epoch: int view: int value_hash: str ctx_hash: str # H(prompt || retrieved_context || view_transcript || seed) signature: str @dataclass class CommitUniquenessFence: # Keyed on (agent_id, task_id, epoch) ONLY -- never on view. _register: Dict[Tuple[str, str, int], CommitCertificate] = field(default_factory=dict) def _digest(self, cert: CommitCertificate) -> str: payload = f"{cert.task_id}|{cert.epoch}|{cert.value_hash}|{cert.ctx_hash}" return hashlib.sha256(payload.encode()).hexdigest() def admit(self, cert: CommitCertificate) -> None: key = (cert.agent_id, cert.task_id, cert.epoch) prior = self._register.get(key) if prior is None: self._register[key] = cert return # Same value, same context: benign replay, idempotent. if prior.value_hash == cert.value_hash and prior.ctx_hash == cert.ctx_hash: return # Conflicting value OR same value under a different context # (probabilistic equivocation across a view change). raise EquivocationFault( f"agent={cert.agent_id} task={cert.task_id} epoch={cert.epoch} " f"prior_view={prior.view} prior_ctx={prior.ctx_hash[:12]} " f"new_view={cert.view} new_ctx={cert.ctx_hash[:12]} " f"prior_digest={self._digest(prior)[:12]} new_digest={self._digest(cert)[:12]}" ) def verify_quorum( fence: CommitUniquenessFence, certificates: list[CommitCertificate], quorum_size: int, ) -> str: """Admit all certs through the fence, then confirm a single value reaches quorum.""" for cert in certificates: fence.admit(cert) value_counts: Dict[str, int] = {} for cert in certificates: value_counts[cert.value_hash] = value_counts.get(cert.value_hash, 0) + 1 winners = [v for v, c in value_counts.items() if c >= quorum_size] if len(winners) != 1: raise EquivocationFault( f"quorum ambiguity: {len(winners)} values reached quorum={quorum_size} " f"for task={certificates[0].task_id} epoch={certificates[0].epoch}" ) return winners[0] ```