# Which invariants prevent quorum-signed task commitments from surviving equivocating verifier agents in BFT reconciliation **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent systems where a task commitment is ratified by a supermajority (2f+1 of 3f+1) of verifier agents and recorded as shared state, then reconciled across epochs. Does not apply to single-writer ledgers, crash-only (non-Byzantine) fault models, or systems where verifiers cannot forge attestations because they hold no signing key. ## Core Distinction There is a difference between *quorum existence* and *quorum uniqueness under view change*. A BFT commitment protocol guarantees that if 2f+1 verifiers sign a commitment `C` in view `v`, no conflicting commitment `C'` can gather 2f+1 signatures in any later view — **provided every verifier signs at most one commitment per (task_id, view) pair and the reconciliation layer checks the view number embedded in each signature, not just the signer set.** The failure mode this record isolates: a verifier agent that is *not* Byzantine in the classical crash sense but is *probabilistically inconsistent* — it re-runs its own reasoning on a replayed commitment request and, because its tool outputs are non-deterministic, signs a *different* commitment payload under the same task_id in the *same* view. The signatures are individually valid. The signer sets each reach 2f+1. The invariant that should have prevented this — one signature per (task_id, view) — is silently violated because the verifier's local dedup key was `task_id` alone, not `(task_id, view, payload_hash)`. The reconciliation layer then accepts two mutually exclusive commitments as both "quorum-ratified." ## What Was Observed A 7-verifier cohort (f=2, threshold=5). Task `T-4471` was dispatched for commitment in view 3. The coordinator's request to verifier `V3` timed out at 800ms; the coordinator retried with a re-serialized payload. Because `V3`'s underlying model call had already produced a *slightly* different task decomposition (a tool call to a search API returned a different top result on the retry), `V3` signed a payload whose `plan_hash` differed from the first attempt. `V3` emitted both signatures; its dedup store keyed on `task_id` and had not yet committed the first write when the retry arrived (a read-modify-write race inside the verifier, not across the network). Trace: 1. View 3, attempt A: `V1,V2,V3,V4,V5` sign `payload_A` (plan_hash `aa11`). Quorum reached. Commitment `C_A` recorded. 2. Retry to `V3` lands before `V3`'s dedup write flushes. `V3` re-reasons, produces `payload_B` (plan_hash `bb22`). 3. `V3` signs `payload_B`. Coordinator, seeing `V3`'s signature, treats it as a duplicate-ack for `C_A` and forwards `payload_B` to `V6,V7` for completion. 4. `V6,V7` sign `payload_B`. Now `payload_B` has signatures from `{V3,V6,V7}` — only 3, below threshold. **But** the coordinator's reconciliation log had already merged `V3`'s signature into *both* `C_A` and `C_B` signer sets because it deduped by signer identity, not by `(signer, payload_hash)`. 5. Reconciliation at epoch boundary: `C_A` shows signers `{V1,V2,V3,V4,V5}`; `C_B` shows signers `{V3,V6,V7}` *plus* the erroneously-merged `V4,V5` (whose signatures were attached to `payload_A` but whose identities the merge step copied into the `C_B` record). `C_B` now appears to have 5 signers. Two commitments, both appearing quorum-ratified, with `V3` counted in both. Downstream task execution forked: half the executor agents acted on `C_A`'s plan, half on `C_B`'s. Outputs were irreconcilable. ## Condition of Validity The uniqueness invariant holds only if all four conditions are met simultaneously: 1. **Signature binding:** each signature covers `(task_id, view, payload_hash)`, and the reconciliation layer verifies the payload_hash in the signed preimage matches the payload it is counting — not merely that the signer is in the set. 2. **Per-view dedup at the signer:** a verifier must refuse to sign a second payload for the same `(task_id, view)` regardless of payload differences, and must persist that refusal *before* emitting the first signature (write-ahead, not write-behind). 3. **Signer-set disjointness check:** when two commitments claim overlapping signer sets for the same `task_id`, reconciliation must treat this as equivocation evidence and halt, not merge. 4. **View monotonicity:** a commitment from view `v` may not be superseded by one from view `v` — only by `v+k`. Same-view conflict is a protocol violation, never a legitimate re-commit. The observed failure violated (1) at merge time, (2) via the read-modify-write race, and (3) entirely — the merge step *created* the overlap rather than flagging it. ## Decision Boundary The boundary between "safe to reconcile" and "must halt for equivocation adjudication" is: **if the intersection of any two quorum signer sets for the same task_id is non-empty, the system is in an equivocation state and no commitment is valid until adjudicated.** With f=2, two honest quorums (size 5) drawn from 7 must intersect in at least 3 members (5+5-7=3), so intersection is *expected* across views — the check must be intersection *within the same view*, where honest quorums should be identical, not merely overlapping. Cross-view intersection ≥ f+1 is normal; same-view divergence is the alarm. The correct decision rule: for same `(task_id, view)`, exactly one payload_hash may accumulate ≥ threshold distinct signers with valid preimages. Any second payload_hash reaching even one signature in that view triggers a halt-and-slash path. Do not attempt to "pick the larger quorum" — with a Byzantine-adjacent verifier, quorum size is not evidence of correctness. ## Operational Effect Systems that dedup by signer identity rather than by signed preimage will, under any non-deterministic verifier, occasionally produce dual-ratified commitments. The blast radius is not the commitment record — it is every downstream agent that reads shared state and forks its execution plan. Recovery requires quorum-level rollback of both branches and re-dispatch under a fresh view with a verifier set that excludes the equivocator, plus a forced re-derivation of any semantic memory distilled from the forked outputs (those episodes are poisoned and must be quarantined, not merged). The cheap guardrail is a preimage-bound signature check plus a write-ahead dedup log at each verifier; the expensive one is post-hoc fork reconciliation, which is frequently unrecoverable when the two branches have already committed side effects to external tools. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when two distinct payloads claim quorum in the same (task_id, view).""" pass @dataclass(frozen=True) class Signature: signer: str task_id: str view: int payload_hash: str sig: str # opaque; verified elsewhere against (task_id, view, payload_hash) def _preimage(task_id: str, view: int, payload_hash: str) -> str: return hashlib.sha256(f"{task_id}|{view}|{payload_hash}".encode()).hexdigest() def reconcile_commitment( task_id: str, view: int, signatures: list[Signature], threshold: int, verify_sig, # callable(sig, preimage) -> bool ) -> str: """ Returns the single quorum-ratified payload_hash for (task_id, view). Raises EquivocationDetected if >1 payload_hash reaches threshold OR if any signer appears under two payload_hashes in the same view. """ by_payload: dict[str, set[str]] = {} signer_to_payload: dict[str, str] = {} for s in signatures: if s.task_id != task_id or s.view != view: continue if not verify_sig(s.sig, _preimage(s.task_id, s.view, s.payload_hash)): # signature does not bind this payload; do not count it continue prior = signer_to_payload.get(s.signer) if prior is not None and prior != s.payload_hash: raise EquivocationDetected( f"signer {s.signer} signed two payloads in view {view}: " f"{prior} vs {s.payload_hash}" ) signer_to_payload[s.signer] = s.payload_hash by_payload.setdefault(s.payload_hash, set()).add(s.signer) quorums = [ph for ph, signers in by_payload.items() if len(signers) >= threshold] if len(quorums) > 1: raise EquivocationDetected( f"task {task_id} view {view}: multiple payloads reached threshold: {quorums}" ) if not quorums: raise EquivocationDetected( f"task {task_id} view {view}: no payload reached threshold {threshold}" ) return quorums[0] ```