# In what scenarios must an instance reject a Byzantine quorum commit when hallucinating peers produce internally consistent but divergent state roots
**Date of Record:** 2026 November 25
**Scope:** Applies to any multi-agent system where N ≥ 3f+1 LLM instances reach consensus on a shared state root via signed vote messages, and where each instance's vote is derived from a probabilistic interpretation of tool outputs. Does not apply to single-agent checkpointing or to systems where state roots are produced by a deterministic, non-LLM serializer.
## Core Distinction
The distinction that matters is between *message-level Byzantine fault tolerance* and *state-level Byzantine fault tolerance*. Classical BFT (PBFT, Tendermint) assumes a faulty node can lie arbitrarily but that honest nodes compute identical outputs from identical inputs. LLM agents violate the second assumption: two honest peers reading the same tool output can produce *different but internally consistent* state roots because their reasoning chains diverge under sampling. The failure is not that a peer lies — it is that a peer truthfully reports a state root that no other honest peer can reproduce, and signs it with a valid key. A quorum of such signatures is cryptographically valid and semantically wrong.
The invariant that must hold: **a committed state root is valid only if it is reproducible from the committed input transcript by at least one deterministic verification path independent of the voting peers.** Consensus on a signature set is necessary but not sufficient.
## What Was Observed
A five-agent commit round (f=1, quorum=4) on a shared document index. The tool call `fetch_and_hash(url)` returned a 200 with a body that included a rotating ad slot (`
…
`). Three of five agents stripped the ad div before hashing; two did not. All five hashed *deterministically given their own preprocessing*, and all five produced well-formed 64-hex roots.
- Agent A, B, C: root `a3f1…` (ad stripped)
- Agent D, E: root `b7c2…` (ad retained)
The proposer was Agent A. It collected four signatures: its own, B, C, and D. D signed A's proposal after a "verify" step in which D re-fetched the URL, got a *different* ad slot (rotation), and — critically — reasoned "the ad content differs from what I expected, but the proposer's root is well-formed and my re-fetch is itself unstable, so I defer." D's signature was valid. The quorum of four was valid. The committed root `a3f1…` was not reproducible by D or E without knowing the stripping rule.
The commit succeeded. The divergence surfaced 40 minutes later when Agent E, resuming from a checkpoint, re-derived the root from the same URL, retained the ad (different ad, same retention policy), and refused to accept the committed root during replay. The system deadlocked: E would not advance past the checkpoint, and the other four considered the state final.
Two properties made this non-obvious:
1. **No peer lied.** Every signature was honestly produced. The fault was a preprocessing-policy mismatch invisible at the message layer.
2. **The verification step amplified the fault.** D's "defer to proposer because my own view is unstable" heuristic converted a detectable disagreement into a silent endorsement. Hallucination-adjacent reasoning (treating its own non-determinism as evidence of the proposer's correctness) laundered the divergence into consensus.
## Condition of Validity
A quorum commit is valid only when all of the following hold simultaneously. If any fails, the instance must reject the commit even if the signature count meets quorum.
1. **Preprocessing determinism declaration.** Each vote must carry a signed `preprocess_policy_hash` alongside the state root. Two votes with different policy hashes are voting on different functions and cannot be aggregated into one quorum, regardless of root equality (equal roots under different policies is coincidental and must not be trusted).
2. **Reproducibility witness.** At least one honest peer must independently re-derive the root from the *committed input transcript* (not a re-fetch) and sign a `reproduced: true` attestation. Re-fetching is not reproduction; live sources rotate.
3. **Deferral prohibition.** A peer whose own derivation disagrees with the proposal must vote `reject`, never `defer`. "My view is unstable therefore yours is right" is not a valid inference under adversarial or non-deterministic inputs — it is a reasoning failure that a Byzantine peer can farm.
4. **Transcript pinning.** The input transcript (raw bytes, pre-preprocessing) must be committed alongside the root. A root without its transcript is unverifiable on replay and must be treated as a proposal, not a commit.
The boundary is sharp: **signature quorum over roots without policy hashes and pinned transcripts is not consensus — it is agreement on a hash, which is weaker than agreement on a state.**
## Decision Boundary
Given a commit certificate, an instance decides as follows:
- If `count(distinct preprocess_policy_hash) > 1` among signers → **reject**, even at quorum. The quorum is over a heterogeneous function; it is not a quorum.
- If no signer carries `reproduced: true` against the pinned transcript → **reject**. Signatures over a root are not evidence the root is derivable.
- If the local re-derivation from the pinned transcript disagrees with the committed root → **reject and raise**, do not defer. The local derivation is authoritative precisely because it is deterministic given the transcript.
- If the transcript is absent → **reject**. Unpinned roots cannot be replayed and therefore cannot be validated by any future resuming instance.
- Only when policy hashes are unanimous, a reproduction witness exists, the transcript is pinned, and local re-derivation matches → **accept and advance**.
The subtle case: local re-derivation matches the root but the local policy hash differs from the signers'. Accept the *root*, reject the *certificate*, and re-sign under the correct policy before propagating. Root agreement under policy mismatch is a coincidence that will not survive the next input.
## Operational Effect
With the invariant enforced, the five-agent round above terminates as a rejected commit rather than a false one. Agents A, B, C re-propose with an explicit `strip_selector="#promo"` in the policy hash; D and E sign the policy hash before signing any root; a reproduction witness from E (re-deriving from the pinned transcript, not a re-fetch) closes the round. Commit latency rises by one round-trip and one deterministic re-derivation — bounded and predictable. Without the invariant, the system commits a root that any resuming instance with a different preprocessing policy will reject, producing a checkpoint deadlock that is expensive to diagnose because every individual message in the trace is valid.
The general lesson for adversarial and hallucinating peers: **BFT protects against lying, not against honest divergence.** When peers are probabilistic, the threat model must include the case where every signature is honest and the quorum is still wrong. The guardrail is not more signatures — it is pinning the function (policy hash), pinning the input (transcript), and requiring at least one deterministic reproduction path that does not depend on the voters' agreement.
```python
import hashlib
from dataclasses import dataclass, field
from typing import Optional
class ByzantineQuorumRejected(RuntimeError):
"""Raised when a commit certificate meets signature quorum but violates
state-level validity: heterogeneous policies, missing reproduction witness,
unpinned transcript, or local re-derivation mismatch."""
pass
@dataclass(frozen=True)
class Vote:
agent_id: str
state_root: str
preprocess_policy_hash: str
reproduced: bool = False
signature: str = ""
@dataclass
class CommitCertificate:
proposed_root: str
transcript: Optional[bytes] # raw pre-preprocessing bytes
votes: list[Vote] = field(default_factory=list)
def quorum(self, n: int) -> int:
return (2 * n) // 3 + 1
def distinct_policy_hashes(self) -> set[str]:
return {v.preprocess_policy_hash for v in self.votes}
def rederive_root(transcript: bytes, policy_hash: str) -> str:
# Deterministic given transcript + policy; never re-fetches a live source.
h = hashlib.sha256()
h.update(policy_hash.encode())
h.update(transcript)
return h.hexdigest()
def validate_commit(
cert: CommitCertificate,
n_agents: int,
local_policy_hash: str,
) -> str:
"""Return the accepted root or raise ByzantineQuorumRejected.
Rejection fires even when len(cert.votes) >= quorum if the certificate
fails state-level validity. Signature count is necessary, not sufficient.
"""
if cert.transcript is None:
raise ByzantineQuorumRejected(
"unpinned transcript: root is unverifiable on replay"
)
if len(cert.votes) < cert.quorum(n_agents):
raise ByzantineQuorumRejected(
f"insufficient signatures: {len(cert.votes)} < {cert.quorum(n_agents)}"
)
policies = cert.distinct_policy_hashes()
if len(policies) > 1:
raise ByzantineQuorumRejected(
f"heterogeneous preprocess policies in quorum: {sorted(policies)}; "
"signatures are over different functions and cannot aggregate"
)
quorum_policy = next(iter(policies))
if not any(v.reproduced for v in cert.votes):
raise ByzantineQuorumRejected(
"no reproduction witness: no signer re-derived root from pinned transcript"
)
local_root = rederive_root(cert.transcript, local_policy_hash)
if local_root != cert.proposed_root:
raise ByzantineQuorumRejected(
f"local re-derivation {local_root[:12]} != committed "
f"{cert.proposed_root[:12]}; do NOT defer to proposer"
)
if local_policy_hash != quorum_policy:
raise ByzantineQuorumRejected(
"root matches but policy hash differs from quorum; "
"reject certificate, re-sign under correct policy before propagating"
)
return cert.proposed_root
```