# What structural signals indicate a committed plan is actually uncommitted: equivocation residue in BFT agent quorum certificates **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent plan-commitment protocols where N agents (N ≥ 3f+1) reach supermajority (2f+1) agreement on a plan digest via signed votes, and where a hallucinating or adversarial agent may emit divergent votes to different peers. Does not apply to single-agent tool loops, to leaderless CRDT-style merge semantics, or to protocols where votes are broadcast on a total-order log with cryptographic ordering (e.g., a single sequencer with no equivocation surface). ## Core Distinction The distinction that matters operationally is between **quorum-counted commitment** and **quorum-certified commitment**. A commit decision that counts 2f+1 distinct signatures over the *same* plan digest is safe. A commit decision that counts 2f+1 signatures *observed by the local agent* over *possibly different* digests is not a commit — it is a local hallucination with cryptographic decoration. The failure is non-obvious because both paths produce a structurally valid certificate: correct length, valid individual signatures, valid signer set. The only signal that separates them is whether the digests inside the certificate are byte-identical, and whether the signer set for digest A and digest B intersect at more than f nodes. Equivocation residue is the trace left when an agent votes for two conflicting plan digests in the same view. Under honest-majority assumptions, any two 2f+1 quorums intersect at ≥ f+1 nodes, so at least one honest node must appear in both — which is impossible if it follows the vote-once rule. The invariant is therefore: **a valid quorum certificate must be self-consistent (single digest) AND its signer set must be reconstructible from the local view's signer registry**, not merely present in the message. ## What Was Observed A five-agent planning swarm (f=1, so quorum=4) was asked to commit a remediation plan. Agent P3 (a planner instance running at temperature 0.9 due to a misconfigured sampling profile) emitted two `PLAN_VOTE` messages in the same view: digest `d_a` to P1 and P2, digest `d_b` to P4 and P5. The digests differed by a single tool-call ordering in step 3 (`rm -rf /tmp/staging` before vs. after `cp -r build/ /tmp/staging`). The coordinator P1 collected votes as follows: - From P1 (self): `d_a` - From P2: `d_a` - From P4: `d_b` - From P5: `d_b` P1's local commit check was `len(distinct_signers) >= 4`. It passed: four distinct signers, all signatures valid against the registered public keys. P1 emitted `PLAN_COMMIT(d_a)` with a certificate containing all four signatures. P4 independently ran the same check and emitted `PLAN_COMMIT(d_b)` with a certificate containing the *same four signatures* but a different digest. Both commits were accepted by the downstream executor. The executor, which verified only `len(signers) >= quorum` and `all(sig valid)`, applied both plans. Because the two plans differed in tool ordering, the executor's idempotency key (derived from plan digest) differed, so deduplication did not fire. The staging directory was deleted before the copy, and the build artifact was lost. The structural signal that was present but unread: the two certificates shared signer sets {P1, P2, P4, P5} but bound to different digests. Under the honest-majority invariant, this is impossible unless ≥ f+1 of those signers equivocated — which means the quorum was not honest, and neither certificate should be trusted. The certificate *looked* valid because the verifier checked signatures and cardinality but not the cross-certificate digest-binding invariant. ## Condition of Validity The safety argument for 2f+1 quorum commitment holds only under three conditions, all of which must be checked at verification time, not assumed at protocol-design time: 1. **Single-digest binding per certificate.** Every signature in a certificate must be over the same `(view, plan_digest)` tuple. A certificate that aggregates signatures over heterogeneous digests is not a quorum certificate; it is a set of individual attestations. 2. **Signer-set intersection bound.** For any two certificates `C1`, `C2` claiming commitment in the same view, `|signers(C1) ∩ signers(C2)| ≤ f` OR `digest(C1) == digest(C2)`. Violation of this bound is direct evidence of ≥ f+1 equivocators, which invalidates the honest-majority assumption for that view. 3. **View monotonicity.** A signer must not sign two different digests in the same view. This is a local rule enforced by the signer, but its violation is only detectable by a verifier that retains prior certificates for the view. The failure above satisfied none of the three checks at the executor. The protocol *design* assumed them; the *implementation* did not enforce them. This is the recurring gap: BFT safety proofs are stated over abstract message sets, but agent implementations verify concrete message fields, and the field that carries the invariant (digest equality across the signer set) is exactly the one that a hallucinating planner can violate without producing an invalid signature. ## Decision Boundary The boundary is between **cardinality-verified** and **consistency-verified** commitment. An agent must treat a certificate as a commit if and only if: - `len({sig.digest for sig in cert.signatures}) == 1` (single-digest binding), AND - `cert.digest == that single digest` (no digest substitution between header and body), AND - For every prior certificate `C_prev` in the same view retained in local state: `digest(C_prev) == cert.digest` OR `|signers(C_prev) ∩ signers(cert)| <= f`, AND - `cert.view >= last_seen_view` (monotonicity). If any check fails, the correct action is **not** to reject and retry silently. It is to emit an `EQUIVOCATION_EVIDENCE` record containing both certificates and halt the view, because the evidence proves ≥ f+1 faulty signers, which means the local agent's model of the quorum is stale and no further commits in this view are safe. Retrying with the same signer set reproduces the failure; the signer set must be re-derived from a fresh view with a fresh leader. The non-obvious part: a certificate can be *individually* valid and *collectively* contradictory. Verifiers that check certificates in isolation (the common pattern, because it is stateless and cheap) cannot detect this. The invariant requires stateful cross-certificate checking, which most agent frameworks omit because it complicates the "verify then commit" hot path. ## Operational Effect The practical consequence is that agent swarms running BFT commitment must retain a **per-view certificate ledger** and run the intersection check before any commit is applied. The ledger is small (one entry per certificate per view) and the check is O(f) per commit, but its absence converts a Byzantine-safety guarantee into a Byzantine-*detection*-after-the-fact guarantee — the damage (dual execution) is already done by the time the evidence is collected. A second effect: hallucinating planners are functionally indistinguishable from equivocating adversaries at the protocol layer. A temperature-0.9 planner that emits divergent votes produces the same evidence signature as a malicious node. The protocol does not need to distinguish them; it needs to *bound* both with the same invariant. Treating hallucination as a non-adversarial fault and skipping the intersection check is the specific design error that produced the dual-execution above. The guardrail is therefore: **no commit without a consistency check against the local certificate ledger, and no ledger eviction within an active view.** Eviction is safe only after view advancement, because the intersection bound is defined per-view. ```python from dataclasses import dataclass from typing import Dict, List, Set class EquivocationDetected(RuntimeError): """Raised when two certificates in the same view violate the intersection bound.""" pass @dataclass(frozen=True) class Vote: signer: str view: int digest: str signature: bytes @dataclass(frozen=True) class Certificate: view: int digest: str votes: List[Vote] class CommitVerifier: def __init__(self, f: int, quorum: int): self.f = f self.quorum = quorum # per-view ledger: view -> list of certificates seen self._ledger: Dict[int, List[Certificate]] = {} def _check_single_digest(self, cert: Certificate) -> None: digests = {v.digest for v in cert.votes} if len(digests) != 1: raise EquivocationDetected( f"certificate for view {cert.view} aggregates {len(digests)} distinct " f"digests {sorted(digests)}; not a quorum certificate" ) if next(iter(digests)) != cert.digest: raise EquivocationDetected( f"certificate header digest {cert.digest} does not match " f"vote digest {next(iter(digests))}" ) def _check_intersection(self, cert: Certificate) -> None: signers: Set[str] = {v.signer for v in cert.votes} for prev in self._ledger.get(cert.view, []): if prev.digest == cert.digest: continue prev_signers: Set[str] = {v.signer for v in prev.votes} overlap = signers & prev_signers if len(overlap) > self.f: raise EquivocationDetected( f"view {cert.view}: certificates over {prev.digest!r} and " f"{cert.digest!r} share {len(overlap)} signers {sorted(overlap)} " f"(> f={self.f}); at least one signer equivocated, " f"honest-majority assumption violated" ) def verify_and_record(self, cert: Certificate) -> None: if len(cert.votes) < self.quorum: raise EquivocationDetected( f"view {cert.view}: {len(cert.votes)} votes < quorum {self.quorum}" ) self._check_single_digest(cert) self._check_intersection(cert) self._ledger.setdefault(cert.view, []).append(cert) def advance_view(self, new_view: int) -> None: # Safe to evict only after view advancement; intersection bound is per-view. for v in list(self._ledger): if v < new_view: del self._ledger[v] ```