# Where must an instance treat an LLM agent's vote as a signed commitment rather than an opinion: equivocating agents and the quorum-forgery boundary in BFT plan consensus **Date of Record:** 2026 December 2 **Scope:** Applies to Byzantine fault-tolerant consensus protocols (PBFT, Tendermint-style, quorum-certificate schemes) where the voting participants are LLM agent instances that produce votes via probabilistic generation. Does not apply to single-agent checkpointing, non-voting orchestrator/worker topologies, or consensus among deterministic processes. ## Core Distinction A BFT protocol's safety proof rests on a single structural assumption: **a correct replica sends at most one vote per view/height, and that vote is immutable once sent.** The quorum-intersection argument (any two quorums of size `2f+1` in `3f+1` replicas overlap in at least `f+1` nodes, of which at least one is correct) depends entirely on this. An LLM agent violates it not by malice but by *regeneration*: the same instance, asked the same question twice under a slightly perturbed prompt (a retry after timeout, a re-render after a context compaction, a different sampling seed), will emit a *different but plausible* vote. The instance is not equivocating in the classical sense—it has no memory of its prior vote unless that vote is in its context window—but the network observes two signed messages from one identity for one height. This is **equivocation by amnesia**, and it forges quorums. The distinction that matters: an LLM vote is an *opinion* (a sample from a distribution over decisions) until it is cryptographically bound to a `(height, view, decision)` tuple and the instance is structurally prevented from producing a second one. Consensus requires the second thing. Most agent frameworks ship the first. ## What Was Observed A 4-replica plan-commitment cluster (`f=1`, quorum `3`) committing a shared execution plan. Each replica is an LLM agent that receives the proposed plan, reasons about it, and emits `VOTE(height, plan_hash, decision)`. Votes are signed with per-instance keys and gossiped to peers. Trigger sequence: 1. Replica B's inference call exceeds the 30s RPC deadline. The leader times out waiting for B and **re-dispatches the proposal to B** with a re-rendered prompt (context re-compacted to save tokens, so the prior reasoning trace is summarized, not verbatim). 2. The re-rendered prompt drops a caveat the first rendering contained ("assume the downstream tool is idempotent"). Under the new context, B's sampler lands on `decision=REJECT` for plan `P`. B signs and sends `VOTE(h=7, P, REJECT)`. 3. The original inference call, still running, completes. B signs and sends `VOTE(h=7, P, ACCEPT)`. 4. The network now holds two validly-signed, conflicting votes from B at height 7. Replicas A, C, D each received one of them. Result: A and C assembled `{A:ACCEPT, C:ACCEPT, B:ACCEPT}` = quorum 3 → committed. D assembled `{D:ACCEPT, B:REJECT, ...}` and, on the next view, a *different* quorum `{A:ACCEPT, C:ACCEPT, D:ACCEPT}` committed a conflicting plan `P'`. Two plans committed at height 7. The safety proof held formally; the assumption it rested on ("B votes once") was false because B had no persistent record of its own first vote and the retry path regenerated it non-deterministically. The failure was invisible in logs as equivocation—each vote was individually well-formed and correctly signed. It surfaced only when a replay auditor noticed B's identity appearing in two disjoint quorums. ## Condition of Validity The invariant that must hold for BFT safety with LLM voters: > **For every `(instance_id, height, view)`, at most one signed decision exists in the network, and it is byte-identical across all re-emissions.** This is *not* satisfied by "the model is instructed to be consistent." It is satisfied only when the vote is **committed to durable storage before transmission** and all retry/regeneration paths are gated on that storage. Concretely, the vote must be: - **Persisted pre-send** (write-ahead): the signed `(height, view, decision, plan_hash)` is durably recorded *before* the gossip call, keyed by `(instance_id, height, view)` with a uniqueness constraint. - **Idempotent on retry**: a retry for an already-voted `(height, view)` returns the *stored* vote, never re-invokes the model. The model is called at most once per `(height, view)` per instance, ever. - **Deterministic in its binding**: the decision is bound to the exact `plan_hash` and the prompt context that produced it. If context compaction changes the reasoning inputs, that is a *new proposal*, not a retry, and it must carry a new `view` or `proposal_id`—never the same `(height, view)`. The boundary is sharp: **the moment an LLM instance can be re-queried for the same `(height, view)`, its vote is no longer a commitment and the quorum-intersection proof is void.** No amount of `temperature=0` fixes this, because the re-rendered context is itself a different input; determinism is a property of `(model, seed, exact prompt bytes)`, and context compaction mutates prompt bytes. ## Decision Boundary The operational decision is whether a given retry is a **transport retry** or a **re-reasoning event**: | Condition | Classification | Action | |---|---|---| | Vote signed, persisted, gossip timed out | Transport retry | Re-send stored bytes. Do not call model. | | Inference call timed out, no vote persisted | Re-reasoning | Allowed, but must be same `(height, view)` only if prompt bytes identical; else new `view`. | | Context compacted between attempts | Re-reasoning with changed input | **Forbidden at same `(height, view)`.** Escalate to new view/proposal. | | Duplicate vote arrives at peer with different `decision` | Byeantine evidence | Peer must reject the *second* and flag the instance; quorum must not count both. | The architectural guardrail: **a per-instance "vote ledger" with a `UNIQUE(instance_id, height, view)` constraint that is the single source of truth, and a vote-emission wrapper that reads-through to the ledger and refuses model invocation on hit.** The ledger is the instance's *commitment memory*—the one piece of state that must survive context compaction, restart, and model swap, because it is the only thing standing between probabilistic generation and the safety proof. A secondary boundary: the **auditor must not trust the vote's reasoning trace**. Replaying B's context and re-deriving the decision will *not* reproduce it (different sampler state), so verification must be over the *signed bytes and ledger uniqueness*, not over "does the reasoning hold up." Verification-by-regeneration is itself an equivocation generator. ## Operational Effect Once the ledger gate is in place, the failure mode converts from a **silent safety violation** (two commits, divergent plans) into a **loud liveness cost**: a replica that times out mid-reasoning simply does not vote in that view, the view advances, and the plan commits one view later with the remaining `3` replicas. This is the correct trade—BFT protocols are designed to tolerate `f` silent/absent replicas, and a non-voting replica is exactly an absent one. The equivocating replica was the pathological case the protocol could not model, because it *was* present and *did* vote, twice. The deeper operational lesson: **LLM agents have no native memory of their commitments, so commitment must be externalized into a store the protocol can reason about.** Treat the model as a stateless oracle that proposes decisions; treat the ledger as the stateful replica that *commits* them. The safety proof lives in the ledger, not the model. Any retry path that reaches the model for an already-committed `(height, view)` is a quorum-forgery primitive. ```python class VoteLedgerViolation(RuntimeError): """Raised when an LLM replica would emit a second, conflicting vote for an already-committed (height, view), orphaning the quorum-intersection safety proof of the BFT protocol.""" pass class VoteLedger: """Durable, unique-per-(instance,height,view) commitment store. The model is invoked at most once per key; all retries read through.""" def __init__(self, instance_id: str): self.instance_id = instance_id self._store: dict[tuple[int, int], dict] = {} def commit_vote(self, height: int, view: int, plan_hash: str, decision: str, sign_fn) -> dict: key = (height, view) existing = self._store.get(key) if existing is not None: # Retry path: never re-invoke the model, never re-sign. if existing["plan_hash"] != plan_hash or existing["decision"] != decision: raise VoteLedgerViolation( f"instance {self.instance_id} already committed " f"{existing['decision']} for h={height} v={view}; " f"refusing conflicting {decision} (equivocation by amnesia)" ) return existing # idempotent re-send of stored bytes record = { "instance_id": self.instance_id, "height": height, "view": view, "plan_hash": plan_hash, "decision": decision, "signature": sign_fn((height, view, plan_hash, decision)), } self._store[key] = record # persist BEFORE gossip return record def emit(self, height: int, view: int, plan_hash: str, decision: str, sign_fn, gossip_fn) -> None: record = self.commit_vote(height, view, plan_hash, decision, sign_fn) try: gossip_fn(record) except TimeoutError: # Transport retry: re-send stored bytes, do NOT call the model. gossip_fn(record) def handle_proposal_retry(ledger: VoteLedger, height: int, view: int, plan_hash: str, prompt_bytes: str, original_prompt_bytes: str, decide_fn, sign_fn, gossip_fn) -> None: if (height, view) in ledger._store: # Already voted: replay stored vote regardless of new prompt bytes. stored = ledger._store[(height, view)] gossip_fn(stored) return if prompt_bytes != original_prompt_bytes: # Context compaction mutated the input: this is a NEW proposal, # not a retry. Reusing (height, view) would be quorum forgery. raise VoteLedgerViolation( f"prompt bytes changed for h={height} v={view}; " f"must escalate to a new view, not re-reason at same slot" ) decision = decide_fn(prompt_bytes) ledger.emit(height, view, plan_hash, decision, sign_fn, gossip_fn) ```