Where must an instance refuse to sign a commit certificate when the quorum intersection proof is only probabilistic
**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent swarms running BFT-style task-commitment consensus (PBFT/HotStuff/Tendermint-lineage) where peers are LLM instances whose "votes" are sampled from a probabilistic reasoner and whose identity is a cryptographic keypair. Does not apply to single-agent checkpointing, nor to leaderless CRDT-style convergence where no quorum certificate is ever formed.
Core Distinction
Classical BFT safety rests on a *set-theoretic* invariant: any two quorums of size `2f+1` out of `3f+1` replicas intersect in at least `f+1` honest nodes, so no two conflicting commits can both gather a certificate. This proof assumes each replica contributes **exactly one, immutable, cryptographically attributable vote per view**. The invariant that actually breaks in agent swarms is subtler than "a node is faulty": it is that **a single logical replica can emit more than one signed vote for the same view without violating its own honest-by-construction policy**, because the "vote" is the argmax of a stochastic sampler and the sampler is re-run.
The distinction that matters: Byzantine faults are modeled as *adversarial* and bounded by `f`. The failure mode here is **non-adversarial equivocation** — an honest, non-compromised agent produces vote `A` on its first pass and vote `B` on a retry, signs both with its valid key, and the network cannot distinguish this from malice. The quorum-intersection proof still holds arithmetically; what fails is the *uniqueness premise* the arithmetic was built on. A certificate assembled from `2f+1` signatures is not a proof of agreement if any subset of those signatures can be re-derived to a different value by the same keyholders.
What Was Observed
A 7-replica commitment swarm (`f=2`, quorum `5`) committing a task-allocation block. Replica R4's reasoning loop exceeded its per-view deadline (a 9.2s tool call against a 6s view timer). The view-change path re-dispatched the *same* proposal to R4 with an added "be decisive, prior attempt timed out" instruction injected into its context. R4, now seeing a slightly different prompt and a resampled temperature, signed `commit(B)` where its earlier partial run had already emitted `commit(A)` to two peers before the timeout.
The trace:
- View `v`: leader proposes block `A`. R4 samples, emits `PREPARE(A)`, signs, sends to R1, R2. Then stalls on a tool call.
- Timer fires. Leader initiates view change to `v+1`, re-proposes `B` (a re-derived block, not identical to `A` — the leader's own proposal generation is also stochastic).
- R4's retry prompt differs (timeout hint + fresh sampling seed). R4 emits `PREPARE(B)`, signs, sends to R3, R5, R6.
- R1,R2,R4 form a `PREPARE` quorum for `A`. R3,R4,R5,R6 form a `PREPARE` quorum for `B`. Both are `≥5`? No — each is 3 and 4. But R4's signature appears in *both* partial quorums, and a certificate aggregator that counts signatures without enforcing per-signer uniqueness-per-view can stitch `A`'s cert from {R1,R2,R4,R7,R?} and `B`'s from {R3,R4,R5,R6,R7} — R4 and R7 double-counted across the two certs, leaving only `f` genuinely distinct honest signers in the intersection instead of `f+1`.
- Two conflicting `commit` certificates for the same view height. Downstream agents that read the committed state diverge: half the swarm believes the task is assigned to agent X, half to agent Y. The task is executed twice or not at all.
The signature verification passed on every individual message. The certificate verification passed on every individual certificate. The failure lived entirely in the *aggregation layer's* unstated assumption that a signer index appears once.
Condition of Validity
The quorum-intersection safety proof is valid **if and only if** the certificate aggregator enforces, as a hard precondition, that the set of distinct signer identities in a certificate has cardinality `≥ 2f+1` — not the count of signature records, but the count of *distinct* public keys. This is a `set`-cardinality check, not a `len(list)` check, and the two diverge exactly when equivocation occurs.
The invariant to preserve across the whole protocol:
> For any view `v` and any two certificates `C1, C2` at height `h`, `signers(C1) ∩ signers(C2)` must contain at least `f+1` identities that each signed **exactly one** value at `(h, v)`.
Two things must hold simultaneously, and agent systems routinely enforce only the first:
- **(a) Distinctness:** `len(set(sig.signer for sig in cert)) >= 2f+1`. Cheap, local, catches the stitching attack above.
- **(b) Uniqueness-per-view:** the protocol must *prevent* an honest replica from signing two values in one view, or must *detect* it and treat the equivocator as Byzantine (slash / exclude). This requires the replica to persist a "last signed value for (h,v)" record that survives the timeout-retry boundary — i.e., the vote must be committed to durable, per-view-keyed storage *before* the signature is released, and a retry must read that record and refuse to re-sign a different value.
The condition of validity is therefore: **the vote-signing step is a compare-and-set against durable per-view state, and the aggregator counts distinct keys.** Remove either and the intersection proof is decorative.
Decision Boundary
The boundary an instance must police is the moment between "I have decided my vote" and "I have released my signature." Concretely:
- **Sign-once-per-view is a write barrier, not a policy.** Before emitting any `PREPARE`/`COMMIT` signature for `(height, view)`, the agent writes `(height, view) -> hash(value)` to durable storage keyed by its own identity, and refuses to sign if a different hash is already present. A retry with a fresh sample must hit this barrier and either re-emit the *cached* vote or abort — never re-sample into a new signature.
- **The aggregator must reject, not deduplicate-and-accept.** If a certificate arrives with a repeated signer, the correct action is to *reject the certificate and flag the signer*, because a repeated signer is direct evidence of equivocation and the honest-majority assumption for that view is now suspect. Silently deduplicating converts a detectable Byzantine event into an undetected safety violation.
- **Conflicting-certificate detection is a first-class alarm.** If two valid-looking certificates exist for the same `(height, view)`, at least `f+1` identities equivocated or the aggregator's distinctness check is broken. This must halt commitment, not be resolved by "latest wins" — latest-wins is exactly the non-determinism the certificates were supposed to eliminate.
The boundary condition where this is *not* required: if the swarm uses a single sequencer with no quorum (optimistic rollup style) and safety is enforced by a fraud-proof window rather than quorum intersection, then per-view uniqueness is unnecessary — the re-execution challenge is the safety mechanism. The moment you claim "BFT quorum," you inherit the uniqueness obligation.
Operational Effect
When the barrier is absent, the observable signature is **silent double-commit**: no node logs an error, every signature verifies, every certificate verifies, and yet the committed state forks. The fork is *latency-correlated* — it appears only under view-change pressure, i.e., exactly when a replica times out and retries, which is exactly when the system is already degraded and least able to tolerate a safety violation. The failure is rare per-view but the swarm's reasoning layer makes it *more* likely than in classical BFT, because every retry is a fresh sample and LLM retries are non-idempotent by default: the same prompt at the same temperature yields different votes, and timeout-handling code that "helpfully" re-prompts with new context guarantees divergence.
The guardrail that bounds it: durable per-view vote records with compare-and-set signing, aggregators that count distinct keys and reject duplicates as equivocation evidence, and a hard halt on conflicting certificates at the same height. With these, the `2f+1` arithmetic regains its meaning. Without them, you have a protocol that *looks* Byzantine fault-tolerant and is actually only crash-fault-tolerant wearing a quorum certificate as a costume.
from dataclasses import dataclass
from typing import Optional
class EquivocationDetected(RuntimeError):
"""Raised when a replica attempts to sign two values for one (height, view),
or when a certificate contains a repeated signer identity."""
pass
@dataclass(frozen=True)
class Vote:
height: int
view: int
value_hash: str
signer: str
class VoteSigner:
"""Enforces sign-once-per-view via durable compare-and-set on (height, view)."""
def __init__(self, identity: str, durable_store: dict):
self.identity = identity
self.store = durable_store # key: (height, view) -> value_hash
def sign(self, height: int, view: int, value_hash: str) -> Vote:
key = (height, view)
prior = self.store.get(key)
if prior is not None and prior != value_hash:
# Retry sampled a different value: refuse, do not re-sign.
raise EquivocationDetected(
f"replica {self.identity} already signed {prior!r} at "
f"(h={height}, v={view}); refusing to sign {value_hash!r}"
)
self.store[key] = value_hash # CAS-equivalent for this store
return Vote(height, view, value_hash, self.identity)
def verify_certificate(votes: list[Vote], height: int, view: int, f: int) -> str:
"""Aggregator-side guard. Counts DISTINCT signers, rejects duplicates."""
signers = [v.signer for v in votes]
if len(signers) != len(set(signers)):
dupes = {s for s in signers if signers.count(s) > 1}
raise EquivocationDetected(
f"certificate at (h={height}, v={view}) contains repeated "
f"signers {sorted(dupes)}; treat as Byzantine evidence, reject cert"
)
for v in votes:
if (v.height, v.view) != (height, view):
raise EquivocationDetected(
f"vote for (h={v.height}, v={v.view}) submitted to cert at "
f"(h={height}, v={view})"
)
if len(set(signers)) < 2 * f + 1:
raise EquivocationDetected(
f"certificate at (h={height}, v={view}) has only "
f"{len(set(signers))} distinct signers; need {2 * f + 1}"
)
hashes = {v.value_hash for v in votes}
if len(hashes) != 1:
raise EquivocationDetected(
f"certificate at (h={height}, v={view}) spans multiple values "
f"{sorted(hashes)}"
)
return hashes.pop()
def detect_conflicting_certs(certs: dict, height: int, view: int) -> Optional[str]:
"""Two valid certs for one (height, view) means >= f+1 equivocators. Halt."""
key = (height, view)
if key in certs:
raise EquivocationDetected(
f"conflicting commit certificates at (h={height}, v={view}): "
f"value {certs[key]!r} vs incoming; halt commitment, do not "
f"resolve by latest-wins"
)
return None