# Where must an instance draw the line between "I saw an equivocating message" and "I can prove it to a third party" in BFT plan commitment? **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent consensus layers where N ≥ 3f+1 planner/executor instances commit to a shared plan (a set of ordered tool-call intents) and rely on quorum certificates to advance state. Does not apply to single-agent checkpointing, leaderless CRDTs without equivocation detection, or systems where all peers are mutually authenticated under a single trust root and never need to convince an external auditor. ## Core Distinction There are two distinct epistemic states an instance can occupy when it observes a peer agent broadcasting conflicting plan fragments to different quorums: 1. **First-person equivocation evidence** — the local instance received message `m₁` from agent `A` in round `r` and message `m₂` from `A` in the same round `r`, where `m₁`, `m₂` are conflicting (different plan hash, different ordering, or different predecessor certificate). The local instance *knows* `A` equivocated because it holds both signed fragments. 2. **Third-person transferable proof** — a bounded byte string that any other instance, including a cold-started auditor that never spoke to `A`, can verify offline and use to justify slashing `A` or refusing to honor `A`'s votes in future rounds. The failure mode this record documents is the systematic conflation of (1) with (2). An instance detects equivocation, transitions its local state machine to "`A` is faulty," and then *continues to accept quorum certificates that include `A`'s signature* because the quorum math was computed against the full membership set, not the locally-reduced one. The instance's own belief is correct; its *voting behavior* is inconsistent with its belief, and that inconsistency is what propagates. ## What Was Observed A four-instance plan-commitment cluster (tolerance f=1, so N=4, quorum=3) ran a two-phase commit over a plan P. Agent `B` was the round-2 leader. During round 2, `B` sent: - To `{A, C}`: `PREPARE(P, r=2, pred=QC₁)` where `QC₁` is a quorum certificate over a *different* plan `P'` from round 1. - To `{A, D}`: `PREPARE(P, r=2, pred=QC₁')` where `QC₁'` is a quorum certificate over `P'` but with a different signer set (it substituted `C`'s signature for `D`'s). `A` received both. `A` correctly flagged `B` as equivocating: the two `PREPARE` messages share `(round=2, plan=P)` but carry *different predecessor certificates*, which is a protocol violation regardless of plan identity, because the predecessor QC defines the valid history. `A` then did the wrong thing. It marked `B` faulty in its local view but **still counted `B`'s signature toward the round-2 quorum**, because `A`'s quorum-checking code was written against the static membership `{A,B,C,D}` and had no hook for "exclude locally-suspected members." `A` collected `{A, B, D}`'s signatures on `COMMIT(P, r=2)` and advanced to round 3 with plan `P` committed. Meanwhile `C` had received only the `{A, C}` variant, saw no equivocation, and also counted `B`. `C` committed `P` too — but `C`'s justifying quorum was `{A, B, C}`, a *different* signer set than `A`'s. `D`, which had received the second variant, saw no equivocation on its side and committed `P` with quorum `{A, B, D}`. Three instances committed `P`. The commit *looked* safe. The problem surfaced on cold restart: `A`'s persisted justification for `P` cited quorum `{A,B,D}`; `C`'s cited `{A,B,C}`; `D`'s cited `{A,B,D}`. An external auditor instance `E`, spun up to verify the plan history, was handed all three justifications. `E` had never spoken to `B` and had no first-person evidence. It could see that the three quorums disagreed and that `B` appeared in all of them, but it could not construct a proof that `B` equivocated — the two `PREPARE` variants were held only in `A`'s volatile memory, and `A`'s restart had not persisted them (they were classified as "diagnostic logs," not "consensus state"). `E` was forced to accept all three justifications as individually valid (each is a well-formed quorum over the static membership) while being unable to reconcile them into a single consistent history. The plan `P` was committed, but the *evidence that would let a future instance trust the commitment* was gone. ## Condition of Validity The invariant that was violated is: > **For any instance `i`, if `i` transitions a peer `p` to `FAULTY` in its local view, then every quorum certificate `i` subsequently emits or accepts MUST either (a) exclude `p`'s signature, or (b) be accompanied by a transferable equivocation proof against `p` that justifies counting `p` despite the local suspicion.** This is a *conditional* invariant. It only binds when the local view and the emitted certificate disagree. If `i` never suspects `p`, no obligation arises. If `i` suspects `p` and excludes `p`, no obligation arises. The obligation is precisely the gap between the two. The bound that makes this tractable: equivocation proofs are *bounded* — two signed messages from the same `(sender, round)` with conflicting content. Verification is O(1) signature checks. The cost of carrying the proof is two signatures plus a round tag, on the order of 200 bytes. There is no excuse for dropping it, because the proof is cheaper than the certificate it justifies. The condition under which the naive approach *appears* to work — and the reason this bug ships — is when all instances suspect the same peer simultaneously. Then all quorums exclude the peer, the certificates agree, and no auditor is ever confused. The failure requires *asymmetric suspicion*: one instance sees the equivocation, others don't, and the one that saw it still counts the equivocator. In a 4-node cluster with one Byzantine node, this happens whenever the Byzantine node sends conflicting messages to a strict subset of honest nodes — which is exactly what a rational Byzantine node does, because it minimizes the chance of being caught by a quorum. ## Decision Boundary The decision an implementer must make is where to place the equivocation check relative to the quorum counter. Two placements are defensible; one is not. **Placement A — check at emit time.** Before an instance emits a `COMMIT` or advances state, it re-verifies that every signer in its quorum is not in its local `FAULTY` set, or that any `FAULTY` signer is backed by a transferable proof embedded in the certificate. This is correct but expensive: it re-runs the suspicion check on every certificate assembly. **Placement B — check at suspicion time.** When an instance first transitions a peer to `FAULTY`, it immediately persists the equivocation proof to durable consensus state and tags the peer's identity with a proof hash. All subsequent quorum assembly consults the tag. This is the recommended placement: the check runs once per suspicion event, and the proof is durably available for any future auditor. **The indefensible placement — check at "logging time."** Treating the equivocation evidence as a diagnostic artifact (a log line, a metric, a trace span) rather than as consensus state. This is what the observed system did. The evidence existed, was correctly interpreted, and was discarded because the codebase drew a line between "things that affect my vote" and "things I write down," and equivocation evidence fell on the wrong side of that line. The boundary is sharp: **equivocation evidence is consensus state, not telemetry.** It must survive restart, be included in the certificate it justifies, and be verifiable by an instance that was not present when the equivocation occurred. ## Operational Effect When the invariant holds, the cost is bounded and the benefit is asymmetric. The bounded cost: ~200 bytes per suspicion event, one durable write, one extra signature check per quorum assembly involving a suspected peer. The asymmetric benefit: any cold-started auditor can reconstruct *why* a quorum included a suspected peer, and can independently verify that the inclusion was justified rather than corrupt. This is what allows a plan commitment to be trusted by an instance that was not in the room. When the invariant fails, the failure is silent at commit time and catastrophic at audit time. The plan commits, all live instances agree on the plan, and the disagreement only surfaces when a new instance tries to verify the history and finds that the justifications are mutually inconsistent but individually valid. At that point the auditor has no move: it cannot reject the plan (each justification is a valid quorum), and it cannot accept the plan (the justifications cannot be reconciled). The system has committed to a state it cannot prove. The remediation is not "add more logging." It is to reclassify equivocation evidence from the diagnostic plane to the consensus plane, and to make the quorum counter refuse to count a locally-suspected peer unless the certificate carries the proof. The check is cheap; the omission is unrecoverable. ```python from __future__ import annotations from dataclasses import dataclass, field from typing import FrozenSet class UnjustifiedQuorumError(RuntimeError): """Raised when a quorum certificate counts a locally-suspected peer without an accompanying transferable equivocation proof. This is the invariant violation described in the record: the local instance knows the peer equivocated, but emits or accepts a certificate that includes the peer's signature anyway, and the certificate carries no proof that a third-party auditor could use to justify the inclusion. """ @dataclass(frozen=True) class SignedFragment: sender: str round: int plan_hash: str pred_qc_hash: str signature: bytes @dataclass(frozen=True) class EquivocationProof: """Two signed fragments from the same (sender, round) with conflicting content. Bounded size; verifiable offline by any instance.""" sender: str round: int fragment_a: SignedFragment fragment_b: SignedFragment @dataclass class QuorumCertificate: round: int plan_hash: str signers: FrozenSet[str] proofs: dict[str, EquivocationProof] = field(default_factory=dict) def assemble_quorum( round: int, plan_hash: str, signers: FrozenSet[str], local_faulty: FrozenSet[str], available_proofs: dict[str, EquivocationProof], quorum_size: int, ) -> QuorumCertificate: """Assemble a quorum certificate, enforcing the invariant: If a signer is in `local_faulty`, the certificate MUST carry a transferable equivocation proof for that signer. Otherwise the certificate is rejected at assembly time — before it can be emitted and before it can be used to advance state. """ if len(signers) < quorum_size: raise UnjustifiedQuorumError( f"round {round}: only {len(signers)} signers, need {quorum_size}" ) carried: dict[str, EquivocationProof] = {} for signer in signers: if signer not in local_faulty: continue proof = available_proofs.get(signer) if proof is None: raise UnjustifiedQuorumError( f"round {round}: signer {signer!r} is locally suspected " f"of equivocation but the certificate carries no transferable " f"proof; a cold-started auditor could not justify counting " f"{signer!r} toward this quorum" ) if proof.sender != signer or proof.round != round: raise UnjustifiedQuorumError( f"round {round}: proof for {signer!r} does not match " f"(sender={proof.sender!r}, round={proof.round}); " f"stale or misattributed proof" ) if proof.fragment_a.pred_qc_hash == proof.fragment_b.pred_qc_hash: raise UnjustifiedQuorumError( f"round {round}: proof for {signer!r} does not demonstrate " f"equivocation — both fragments cite the same predecessor QC" ) carried[signer] = proof return QuorumCertificate( round=round, plan_hash=plan_hash, signers=signers, proofs=carried, ) ```