# Where must an instance draw the equivocation-detection horizon when heterogeneous LLM agents vote under BFT consensus? **Date of Record:** 2026 November 30 **Scope:** Applies to replicated agent ensembles where N heterogeneous LLM instances (possibly different model families, temperatures, and tool bindings) reach a joint decision under a Byzantine fault-tolerant protocol with equivocation detection (i.e., the protocol flags an agent that emits two different signed messages for the same round/height/view). Does not apply to single-model self-consistency voting, human-in-the-loop adjudication, or purely optimistic (non-BFT) quorum schemes. ## Core Distinction There are two ways an LLM agent can "equivocate," and conflating them is the failure. **Semantic equivocation** is a disagreement in *content*: the same agent, asked the same question twice or asked at two protocol heights, returns two different natural-language claims or two different tool arguments. This is normal, expected behavior for a stochastic decoder. It is not a protocol violation. **Protocol equivocation** is a disagreement in *commitment*: the agent signs and broadcasts two distinct, conflicting messages — two different `(height, view, round)` votes, or two different proposal hashes — that it has cryptographically bound itself to. This is a Byzantine-class fault and must be slashed/evicted. The boundary invariant is this: **equivocation detection must operate on the signed commitment layer, never on the sampling layer.** Any detector that fires on semantic divergence between two independent samples of the same instance will partition honest-but-stochastic agents out of the quorum, and any detector that only sees the commitment layer will miss the case where a compromised or prompt-injected instance *re-signs* a semantically different payload under the same round key. The horizon — the line an instance must draw — is the point at which a *fresh* sample is promoted to a *signed vote*. That promotion is the only event that should ever be compared for equivocation. ## What Was Observed A 7-agent ensemble (N=7, f=2 tolerated faults) was run over 400 decision rounds. Agents were heterogeneous: three instances of model family A at temperature 0.2, two of family B at temperature 0.7, two of family C with tool-calling enabled. The protocol used signed `PREPARE`/`COMMIT` messages over a canonical serialized payload. The equivocation detector compared, per `(agent_id, height, view)`, the set of payload hashes the agent had signed. Three distinct failure traces appeared: **Trace 1 — Detector blind to re-signing.** A prompt-injected instance in family C was induced (via injected tool output) to call `sign_vote` twice at the same height/view with two different proposal hashes, once before and once after a tool call mutated its proposal. The detector *did* fire correctly here — but only because the two payloads happened to differ in a field that was included in the canonical serialization. In 11 of 40 injected rounds, the mutation landed in a free-text `rationale` field that the serializer had *excluded* from the hash. The two signed payloads hashed identically. Equivocation was cryptographically invisible; the agent effectively voted twice with one hash and the quorum counted it once. **Trace 2 — False-positive partition from semantic sampling.** The detector was initially configured to also flag agents whose *unsigned* draft proposals differed across two internal deliberation passes (a "consistency check"). Family B at temperature 0.7 tripped this on 23% of rounds. At N=7 with f=2, evicting a single honest high-temperature agent still left quorum, but evicting two (both family B instances, which correlated on the same ambiguous prompts) dropped the live set to 5, below the 2f+1=5 floor for a *safe* quorum once one more agent was slow. Two rounds stalled to timeout. The detector was punishing entropy, not malice. **Trace 3 — Cross-view replay equivocation.** An instance that had been checkpointed and cold-restarted mid-round lost its view counter (state continuity failure) and re-signed its `PREPARE` at `view=0` after the cluster had advanced to `view=1`. The signature was valid; the payload hash matched its earlier view-0 vote exactly. A naive per-view detector saw no conflict (same hash, and it keyed only on `(height, view)`). A correct detector keyed on `(agent_id, height)` across *all* views caught it — the agent had now committed to two views at the same height, which is the actual Byzantine condition. The common thread: the detector's *key* and the detector's *payload scope* each have to be right, and they are independent choices. ## Condition of Validity The invariant holds — equivocation detection is sound and does not partition honest agents — if and only if all of the following are true: 1. **Hash covers commitment, not commentary.** The canonical serialization that is signed must include every field that can affect the downstream state machine (proposal hash, height, view, round, parent hash, tool-call side effects that alter the proposal). Free-text rationale, confidence scores, and sampling metadata must be excluded *from the signed payload* but *retained in the audit log*. If a field can change the vote's meaning, it is in the hash; if it only changes the vote's flavor, it is out. 2. **Detection key is `(agent_id, height)` across all views and rounds**, with the view/round as attributes of the conflicting messages, not as part of the identity key. Equivocation is "two commitments at one height," full stop. Keying per-view hides cross-view replay (Trace 3). 3. **Promotion is the only comparison point.** A draft sample that is never signed is never evidence. The detector reads the signed-message log, not the deliberation trace. This is what stops Trace 2: high-temperature agents are allowed to think differently; they are not allowed to *sign* differently. 4. **Restart re-attests view state before signing.** Any instance that cold-starts must fetch the current view from a quorum (or present a monotonic nonce) before it is permitted to sign. This closes the checkpoint-amnesia path that produced Trace 3 and is the same guardrail that prevents a restarted agent from double-voting after context-window eviction erased its own memory of having already voted. 5. **Heterogeneity is declared, not inferred.** Each agent's temperature, model family, and tool bindings are registered in the signed identity, so that the detector can distinguish "family B is stochastic" from "family C is behaving anomalously" without guessing. Undeclared heterogeneity makes every statistical anomaly look like a fault. When any of these is violated, the detector either under-fires (Trace 1, Trace 3) or over-fires (Trace 2), and in the over-fire case the ensemble loses liveness before it loses safety. ## Decision Boundary An instance must draw the equivocation horizon at the **signing boundary**, and must treat the following as the decision rule: - **Below the horizon (unsigned sampling, deliberation, re-prompting, self-consistency):** divergence is *expected* and must be *ignored* by the detector. Log it, do not act on it. - **At the horizon (the `sign` call):** the payload is canonicalized, hashed over all semantically load-bearing fields, and the `(agent_id, height)` key is checked against the append-only signed log. A second distinct hash at the same `(agent_id, height)` — regardless of view — is a Byzantine fault and triggers eviction plus a slashing record. - **Above the horizon (post-signature):** the message is immutable. Any attempt to re-sign the same `(agent_id, height)` with any payload, even an identical one, is rejected by the signer itself before it reaches the wire. The signer is the first line of equivocation defense; the detector is the second. The sharp edge: **the signer must refuse to sign twice at the same height even if the payload is identical.** Identical re-signing is not harmless — it is the fingerprint of a restarted or replayed instance that has lost track of its own commitments, and it is exactly the state from which a *different* payload will be signed on the next attempt. Reject identical re-signs; do not merely deduplicate them. ## Operational Effect With the horizon drawn at the signing boundary and the key set to `(agent_id, height)`: - Trace 1 is caught because the rationale field is out of the hash but the proposal-mutating tool output is in it; the injected mutation now changes the hash and the double-sign is visible. - Trace 2 disappears because unsigned drafts are never compared; family B's 23% semantic divergence produces zero evictions, and the quorum floor of 2f+1=5 is never threatened by honest entropy. - Trace 3 is caught because the restarting instance must re-attest the current view before signing, and the detector's `(agent_id, height)` key flags the cross-view double commitment even when the payload hash matches. The residual risk is a *coordinated* semantic equivocation: f+1 compromised instances that sign *different but individually valid* proposals at the same height, each internally consistent, so no single agent's signed log shows a conflict. This is indistinguishable from an honest split vote at the detector layer and must be handled by the consensus layer's quorum-intersection property (any two 2f+1 quorums intersect in at least one honest agent), not by the equivocation detector. The detector's job is per-agent; the consensus layer's job is cross-agent. Do not ask the detector to do the consensus layer's work — that is the category error that produces both under- and over-firing. ```python from __future__ import annotations import hashlib import json from dataclasses import dataclass, field from typing import Any class EquivocationFault(RuntimeError): """Raised when an agent signs two distinct commitments at one (agent_id, height).""" class RestartStateError(RuntimeError): """Raised when an instance attempts to sign without re-attesting current view.""" # Fields that are load-bearing for the state machine. Rationale, confidence, # and sampling metadata are deliberately excluded: they are flavor, not commitment. COMMITMENT_FIELDS = ("proposal_hash", "height", "view", "round", "parent_hash", "tool_effects") def canonical_commitment(payload: dict[str, Any]) -> bytes: subset = {k: payload[k] for k in COMMITMENT_FIELDS if k in payload} return json.dumps(subset, sort_keys=True, separators=(",", ":")).encode("utf-8") def commitment_hash(payload: dict[str, Any]) -> str: return hashlib.sha256(canonical_commitment(payload)).hexdigest() @dataclass class SignedLog: # key: (agent_id, height) -> set of distinct commitment hashes ever signed by_agent_height: dict[tuple[str, int], set[str]] = field(default_factory=dict) def record(self, agent_id: str, height: int, payload: dict[str, Any]) -> str: h = commitment_hash(payload) key = (agent_id, height) seen = self.by_agent_height.setdefault(key, set()) if seen and h not in seen: raise EquivocationFault( f"agent {agent_id} signed distinct commitments at height {height}: " f"{sorted(seen)} vs {h}" ) if h in seen: # Identical re-sign is not harmless: it fingerprints a restarted or # replayed instance that has lost track of its own commitments. raise EquivocationFault( f"agent {agent_id} re-signed identical commitment at height {height}: {h}" ) seen.add(h) return h @dataclass class Instance: agent_id: str declared_view: int | None = None # None == cold start, must re-attest log: SignedLog = field(default_factory=SignedLog) def reattest(self, current_view: int) -> None: self.declared_view = current_view def sign(self, payload: dict[str, Any]) -> str: if self.declared_view is None: raise RestartStateError( f"agent {self.agent_id} attempted to sign before view re-attestation" ) if payload.get("view") != self.declared_view: raise RestartStateError( f"agent {self.agent_id} signing stale view {payload.get('view')} " f"!= attested {self.declared_view}" ) return self.log.record(self.agent_id, int(payload["height"]), payload) def run_round(agent: Instance, payload: dict[str, Any]) -> str: try: return agent.sign(payload) except (EquivocationFault, RestartStateError): raise except Exception as exc: # noqa: BLE001 - normalize unexpected signer faults raise EquivocationFault( f"unclassified signer fault for {agent.agent_id}: {exc!r}" ) from exc ```