# Where must an instance bound its own equivocation before a heterogeneous BFT round can terminate **Date of Record:** 2026 November 29 **Scope:** Applies to Byzantine fault-tolerant consensus rounds in which each replica is a distinct LLM instance (heterogeneous model families, temperatures, tool access) that votes by emitting a signed vote message. Does not apply to homogeneous deterministic replicas, single-agent self-consistency sampling, or non-BFT quorum reads. ## Core Distinction The failure is not "a lying agent." It is **equivocation produced by non-determinism under retry**: an honest replica that is asked the same proposal twice (e.g., after a timeout, a leader-change, or a re-prompt) can emit two different signed votes because its sampler is stochastic and its context drifted between the two calls. To the receiving peers this is indistinguishable from deliberate Byzantine equivocation, because the signature is valid and the payloads conflict. The distinction that matters operationally is between *intentional* equivocation (adversarial, must be slashed) and *accidental* equivocation (honest replica, must be suppressed before it leaves the process). BFT safety proofs assume at most `f` replicas equivocate; a fleet of `n = 3f+1` honest-but-stochastic replicas will exceed `f` accidental equivocators at a rate that scales with retry pressure, and the round stalls or forks even though no adversary exists. ## What Was Observed A 7-replica round (`n=7`, `f=2`) with replicas drawn from four model families. On a proposal that failed the leader's first deadline, the coordinator re-solicited votes from all 7. Trace of one honest replica R3: - Call 1: model returns `PREPARE(proposal=P, digest=d1)`; vote signed and sent; R3's local log records `(round=5, proposal=P, vote=PREPARE)`. - Timeout fires at the coordinator; coordinator re-prompts R3 with the *same* proposal but a shorter, re-summarized context (the coordinator truncated history to save tokens). - Call 2: model now sees a different prompt, returns `PREPARE(proposal=P, digest=d2)` where `d2 != d1` because it re-derived the digest from the truncated summary. R3 signs and sends a second `PREPARE` for the same round and proposal with a conflicting digest. Receivers hold both signed messages from R3. A correct BFT receiver treats two conflicting signed votes in one round as equivocation evidence and marks R3 Byzantine. Within 40 seconds, 3 of 7 replicas had emitted conflicting pairs (retry pressure was high), exceeding `f=2`. The quorum certificate could not be formed: any `2f+1=5` set contained at least one flagged replica, and the safety argument that "at most `f` are faulty" was violated by honest replicas. The round did not fork—it **deadlocked**, because no honest replica would count a flagged peer and the flagged set was too large to route around. The root mechanic: **the vote is a function of (proposal, context, sampler seed), but the protocol treats it as a function of (proposal, signer) alone.** Any input the coordinator changes between solicitations—context length, temperature, tool results, ordering—changes the output, and the protocol has no place to record "this is a re-derivation, not a second opinion." ## Condition of Validity The invariant holds only if every honest replica enforces **vote idempotence at the signing boundary**: for a given `(round, proposal_id, vote_type)`, the replica emits at most one signed payload, and any subsequent request for the same key returns the *cached original payload*, never a re-derivation. This is valid when: - The replica persists the vote key→payload mapping in durable local state *before* transmitting, so a crash-restart cannot re-derive. - The coordinator's re-solicitation is distinguishable from a fresh proposal (a `retry_token` or `solicitation_id` that the replica uses to look up the cached vote rather than re-run inference). - The digest is computed by deterministic code over the proposal bytes, not by the model. If the model computes the digest, the same proposal can hash to two values and the cache key is unstable. It does **not** hold when the coordinator treats a re-solicitation as a new independent sample (majority-vote-over-samples designs), or when the replica's cache is keyed on the full prompt rather than on `(round, proposal_id, vote_type)`, because prompt truncation changes the key and the cache misses. ## Decision Boundary The boundary is between two coordinator policies that look identical on the wire: 1. **Re-solicit as confirmation:** coordinator wants the same replica's *same* vote again to confirm liveness. Correct response: return cached signed payload. This is safe. 2. **Re-solicit as resampling:** coordinator wants an *independent* draw to reduce variance. Correct response: this must be a *different* vote key (a new `solicitation_id` folded into the signed domain), and the protocol must not count two samples from one replica toward the `2f+1` quorum—it must count them as one replica's vote, or the quorum math is wrong. The failure occurs when policy 2 is implemented but the signed message carries no `solicitation_id`, so receivers see two payloads under one key and cannot tell resampling from equivocation. The decision rule: **if the signed domain does not include a field that distinguishes solicitations, the replica MUST return the cached payload for any repeated key.** Resampling requires an explicit, signed, per-solicitation nonce; absent that nonce, re-derivation is a protocol violation regardless of intent. ## Operational Effect With idempotent signing at the boundary, accidental equivocation drops to zero and the `f`-bound is reserved for genuine adversaries. Without it, the effective Byzantine count is `f_adversarial + f_accidental`, and because accidental equivocation is correlated with retry pressure (which spikes exactly during leader change and timeout storms), the two failure modes compound: the round that most needs liveness is the round most likely to exceed `f`. The observable signature is a quorum certificate that never forms while every individual signature verifies—receivers reject on *conflict*, not on *invalidity*. The guardrail is a durable vote ledger keyed on the signed domain, written before transmit, consulted before any inference call, and a signed `solicitation_id` in that domain whenever resampling is intended. ```python import hashlib import json from dataclasses import dataclass, field class EquivocationBoundaryError(RuntimeError): """Raised when a replica would emit a second conflicting signed vote for one key.""" @dataclass class VoteLedger: # key -> canonical signed payload bytes; durable in production (WAL / fsync) _entries: dict = field(default_factory=dict) @staticmethod def key(round_id: int, proposal_id: str, vote_type: str, solicitation_id: str | None): # solicitation_id is part of the signed domain ONLY when resampling is intended. return (round_id, proposal_id, vote_type, solicitation_id) def lookup(self, k): return self._entries.get(k) def commit(self, k, payload: bytes): self._entries[k] = payload def deterministic_digest(proposal_bytes: bytes) -> str: return hashlib.sha256(proposal_bytes).hexdigest() def cast_vote( ledger: VoteLedger, round_id: int, proposal_bytes: bytes, vote_type: str, solicitation_id: str | None, model_infer, # callable(prompt) -> str, stochastic sign, # callable(bytes) -> bytes ) -> bytes: k = VoteLedger.key(round_id, proposal_bytes and deterministic_digest(proposal_bytes), vote_type, solicitation_id) cached = ledger.lookup(k) if cached is not None: # Re-solicitation under the same signed domain: return original, never re-derive. return cached # Digest computed by deterministic code, NOT by the model, so the key is stable. digest = deterministic_digest(proposal_bytes) raw = model_infer( json.dumps({"proposal_digest": digest, "vote": vote_type}) ) payload = sign(raw.encode()) # Re-check: a concurrent path may have committed while inference ran. existing = ledger.lookup(k) if existing is not None and existing != payload: raise EquivocationBoundaryError( f"conflicting signed vote for key {k}: " f"existing={existing[:8].hex()} new={payload[:8].hex()} " f"— re-derivation under a fixed signed domain is a protocol violation" ) ledger.commit(k, payload) # write-before-transmit; must be durable before returning return payload ```