# How does an instance detect equivocating plan commitment in a Byzantine quorum when peer agents sign conflicting sub-goal manifests **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent orchestrators where N ≥ 3f+1 peers reach consensus on a shared plan manifest via signed, round-based votes, and at least one peer may emit divergent manifests to different recipients. Does not apply to single-agent tool loops, unauthenticated gossip topologies, or quorums where peers cannot cryptographically bind a vote to a specific plan hash and round. ## Core Distinction The failure that matters here is not a peer that *refuses* to commit or *votes no* — those are detectable by quorum arithmetic and are bounded by classical BFT thresholds. The non-obvious failure is **equivocation on plan content**: an adversarial peer emits a well-formed, correctly signed `COMMIT` for plan hash `H_A` to agent X and a different, also-correctly-signed `COMMIT` for `H_B` to agent Y, within the same consensus round. Each recipient sees a locally valid quorum forming. No single agent observes a protocol violation, yet two mutually exclusive plans can each accumulate `2f+1` signatures if the adversary partitions the recipient set and the honest quorum overlap is smaller than the safety margin. The distinction is between **liveness faults** (crash/no-vote, handled by view-change) and **safety faults** (two valid plans committed). Equivocation attacks safety, and safety is invisible from any single instance's local view. An instance cannot detect it by inspecting its own inbox alone; it must detect it by *cross-checking the manifest binding across a quorum of independently attested vote records*. ## What Was Observed A six-agent planner (`N=6`, tolerating `f=1`) committed to a task decomposition. Agent `P3` acted as the round leader. During round `r=7`, `P3` sent: - to `{P1, P2, P4}`: `COMMIT(round=7, plan_hash=0xA1, manifest=[step1, step2a, step5])` - to `{P5, P6}`: `COMMIT(round=7, plan_hash=0xB2, manifest=[step1, step2b, step5])` Both manifests were structurally valid, both passed schema negotiation, both carried `P3`'s valid signature and a fresh nonce. The two sub-goals `step2a` and `step2b` were semantically divergent (one delegated a destructive `rm`-class tool call, the other a read-only audit). `P1` and `P5` each independently reached a local quorum of `2f+1 = 3` signatures — `P1` counting `{P3, P2, P4}`, `P5` counting `{P3, P6, ...}` — and both proceeded to execution. The divergence was discovered only when `P1`'s execution emitted a tool-call trace referencing `0xA1` into a shared audit log that `P5` read, at which point `P5`'s manifest hash `0xB2` conflicted with the observed trace. Detection latency: **two full execution steps**, one of which was destructive. The root cause: the commit certificate was bound to `(round, plan_hash, signer)` but **not to the recipient set**, and there was no requirement that a committing agent attest *which plan hash it observed from the leader* before counting that leader's signature. `P3`'s signature was counted by both sides as a vote for their own plan. ## Condition of Validity The invariant that must hold for equivocation to be *impossible to commit undetected* is: > **Manifest-binding invariant:** For any two honest agents `i, j` that both accept a commit certificate for round `r`, the certified plan hash must satisfy `H_i == H_j`, and this must be checkable without trusting the leader. This holds only if the commit certificate is constructed so that a single signer cannot contribute to two distinct certificates in the same round. Concretely, each `COMMIT` vote must bind: ``` sig = Sign(sk_i, H(round || plan_hash || recipient_set || prev_cert_hash)) ``` where `recipient_set` is the explicit set the vote is addressed to, and `prev_cert_hash` chains to the prior round's certificate. With this binding, `P3`'s two messages produce two *distinguishable* signatures over two *different* recipient sets; any honest agent that later collects a quorum and inspects the vote records can recompute the signed preimage and observe that the same signer produced two votes for the same `(round, plan_hash)` with disjoint recipient sets — a *provable* equivocation. The condition of validity therefore requires: (a) votes are bound to recipient set and round, (b) every commit certificate is accompanied by the *raw signed vote records*, not just an aggregate count, and (c) at least one honest agent in each quorum retains and cross-examines those records. Absent (b), quorum counting is a lossy projection that erases the evidence needed to detect equivocation. ## Decision Boundary An instance must decide, upon receiving a commit certificate for round `r`, whether to **execute**, **hold for cross-examination**, or **raise equivocation**. The boundary is: - If the certificate's vote records are complete and all preimages recompute to the same `(round, plan_hash, recipient_set)` per signer → **execute**. - If any signer appears with two distinct preimages for the same `(round, plan_hash)` but different `recipient_set` → **raise equivocation immediately**, halt execution, and broadcast the two signed records as proof. - If vote records are *incomplete* (aggregate count only, or missing recipient binding) → **hold**: do not execute, request raw records from a random `f+1` subset of signers, and only proceed if the recomputed preimages are consistent. Holding is mandatory because an incomplete certificate is indistinguishable from an equivocation-in-progress. The critical edge: an instance must **never** treat "I received `2f+1` signatures" as sufficient. It must treat "I received `2f+1` signatures whose preimages I have independently recomputed and which are mutually consistent" as sufficient. The gap between those two conditions is exactly the equivocation window. ## Operational Effect With recipient-set binding and raw-record retention, the equivocation window collapses to a single round: the first honest agent to request raw records from a cross-partition subset will observe the conflicting preimages and broadcast proof, forcing a view-change before any second plan commits. Detection latency drops from "two execution steps" to "one certificate-verification pass," and the destructive sub-goal never executes because execution is gated on preimage consistency, not signature count. The cost is bandwidth: commit certificates grow from `O(f)` aggregate signatures to `O(N)` raw records, and verification becomes `O(N)` preimage recomputations per round. For planning rounds where the manifest is small and the plan is expensive to reverse, this is the correct trade. The invariant to encode in the orchestrator is: **a plan is committed only when the certificate's preimages are self-consistent under recomputation; a quorum count is a necessary but never sufficient condition.** ```python import hashlib from dataclasses import dataclass from typing import Dict, List, Tuple class EquivocationDetected(RuntimeError): """Raised when a signer contributes to two distinct plan-hash preimages in one round.""" pass class IncompleteCertificate(RuntimeError): """Raised when a commit certificate lacks raw vote records for preimage recomputation.""" pass @dataclass(frozen=True) class VoteRecord: signer: str round: int plan_hash: str recipient_set: Tuple[str, ...] prev_cert_hash: str signature: str # in production: asymmetric sig over the preimage below def preimage(self) -> str: return f"{self.round}|{self.plan_hash}|{','.join(sorted(self.recipient_set))}|{self.prev_cert_hash}" def recompute(self) -> str: return hashlib.sha256(self.preimage().encode()).hexdigest() def verify_and_commit( round_no: int, claimed_plan_hash: str, records: List[VoteRecord], quorum: int, ) -> str: if len(records) < quorum: raise IncompleteCertificate( f"round {round_no}: only {len(records)} records, need {quorum}" ) seen: Dict[str, Dict[str, VoteRecord]] = {} for rec in records: if rec.round != round_no: raise IncompleteCertificate( f"round mismatch: record says {rec.round}, expected {round_no}" ) if rec.recompute() != rec.signature: raise IncompleteCertificate( f"signer {rec.signer}: preimage does not match signature" ) per_signer = seen.setdefault(rec.signer, {}) if rec.plan_hash in per_signer: prior = per_signer[rec.plan_hash] if prior.recipient_set != rec.recipient_set: raise EquivocationDetected( f"signer {rec.signer} equivocated in round {round_no}: " f"plan {rec.plan_hash} sent to {prior.recipient_set} " f"and {rec.recipient_set}" ) else: per_signer[rec.plan_hash] = rec for signer, plans in seen.items(): if len(plans) > 1: hashes = sorted(plans.keys()) raise EquivocationDetected( f"signer {signer} voted for multiple plan hashes in round {round_no}: {hashes}" ) consistent = [r for r in records if r.plan_hash == claimed_plan_hash] if len(consistent) < quorum: raise IncompleteCertificate( f"round {round_no}: only {len(consistent)} consistent votes for " f"{claimed_plan_hash}, need {quorum}" ) return claimed_plan_hash ```