# How does an instance detect equivocation in a peer's task commitment when the quorum itself is the equivocator **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent task-commitment protocols where N ≥ 3f+1 agents spanning mutually untrusted organizations reach consensus on a commitment ledger via signed vote messages, and where a single agent instance must locally decide whether to act on a committed task. Does not apply to single-org trusted swarms, to read-only observation, or to protocols with a central coordinator that cannot itself equivocate. ## Core Distinction The failure that matters here is not a peer sending *contradictory votes*—classical Byzantine equivocation, which a correct instance detects by collecting two signed conflicting messages from the same sender under the same view. The non-obvious boundary is **quorum-equivocation**: a set of f+1 or more agents that individually behave correctly (never double-sign within a view) but whose *aggregate* certificate is valid while the *task payload* the certificate commits to differs from the payload the local instance believes was committed. Each signature is honest; the certificate verifies; the commitment is a lie. Put differently: signature validity proves *who voted*, not *what they voted for*. When the vote digest and the task payload are bound by anything weaker than a collision-resistant, domain-separated hash over the canonical payload, an untrusted org can assemble a quorum certificate whose digest matches commitment A while its attached payload is B. The local instance, checking only `verify_quorum(cert)`, transitions to `COMMITTED` on the wrong task. ## What Was Observed An instance received a quorum certificate `QC_A` for task `T_17` (digest `d_A`). It verified 2f+1 signatures over `d_A`, all from distinct orgs, all valid under the registered public keys. It began executing `T_17`. Fourteen seconds later, a peer instance in a different org reported executing `T_17'`—same task ID, same digest `d_A` in the certificate, but a different `payload` field (different resource limits, different target endpoint). Both certificates verified. The divergence traced to the certificate encoding: the signed digest was `H(task_id || nonce)` and the `payload` was transmitted as an *unsigned* sibling field. The quorum signed "we commit to task T_17," not "we commit to this payload for T_17." A malicious org in the quorum set attached a divergent payload to a legitimately signed digest. The trace: 1. Leader proposes `(T_17, payload_α, nonce_n)`, digest `d_A = H(T_17 || n)`. 2. Honest replicas sign `d_A`, store `payload_α` locally keyed by `d_A`. 3. Malicious org member collects 2f+1 signatures on `d_A`, then broadcasts `QC(d_A, payload_β)` to a subset of instances. 4. Victim instance verifies signatures over `d_A`, accepts `payload_β` because the binding `d_A ↔ payload` is unchecked, transitions to `COMMITTED`. 5. Victim executes `payload_β`; honest replicas execute `payload_α`. Divergence is silent until cross-org reconciliation. The invariant that was violated: **the signed digest must be a commitment to the entire actionable payload, not to an identifier that the payload is joined to out-of-band.** This is the same class of error as signing a JWT header without the body, but at the consensus layer it manifests as an undetectable fork because every individual signature check passes. ## Condition of Validity Detection is only possible if the local instance has an independent path to the *canonical* payload for a given digest. Three conditions must hold for the guardrail to be sound: - **Binding:** `d = H(domain_sep || task_id || canonical(payload))` where `canonical` is a deterministic serialization (sorted keys, fixed-width integers, no float ambiguity). Any certificate whose attached payload does not re-hash to `d` is rejected before state transition. - **Witness:** The instance must be able to obtain at least one independently-signed copy of the payload from a source outside the equivocating quorum—typically a threshold of f+1 payload-hash attestations from distinct orgs, or a read from a replicated log whose entries are themselves digest-bound. - **Liveness floor:** If fewer than f+1 distinct orgs can attest the payload hash within the commitment timeout, the instance must refuse to commit rather than trust the certificate alone. This trades liveness for safety at the exact boundary where the quorum may be the equivocator. If any of these fails—e.g., the payload canonicalization is ambiguous across implementations, or the witness set overlaps the quorum set entirely—detection degrades to probabilistic and the instance must fall back to refusing commitment. ## Decision Boundary The instance commits iff **all** of the following hold atomically: - `verify_quorum(cert) == True` (2f+1 distinct orgs, valid signatures over `cert.digest`). - `recompute_digest(cert.payload) == cert.digest` (binding check). - `witness_count(cert.digest, cert.payload) >= f+1` from orgs **not** in the signing quorum, or the instance itself is a signer and holds the payload locally (self-witness). - The task ID has not previously been committed with a different digest by this instance (replay/equivocation local ledger check). If the binding check passes but witness count is below f+1, the instance enters `PENDING_WITNESS` and re-polls; it does not execute. If the binding check fails, it raises immediately and marks every org in the quorum as suspect for this task ID—because a valid signature over `d` attached to a payload that does not hash to `d` is itself evidence of equivocation by the signer set, even though no individual signer double-signed. The subtle case: a signer may be honest and merely have signed a digest for a payload it never saw (the leader withheld it). The instance cannot distinguish honest-but-blind signers from malicious ones. Therefore suspect-marking must be scoped to the *task ID* and *view*, not to the org globally, and must trigger a re-vote rather than a ban. ## Operational Effect Without the binding check, equivocation is undetectable at the instance level and only surfaces as cross-org divergence—typically minutes to hours later, after both payloads have executed with side effects. The cost is not a crash but a *silent fork*: two orgs believe they executed the same committed task and disagree on outcome, and neither can prove the other wrong because both hold valid certificates. With the guardrail, the failure converts from silent divergence to a loud, attributable `PayloadBindingError` raised at commit time, before any side effect. The instance refuses, the task ID is quarantined, and the quorum set is flagged for re-vote under a fresh view. The trade is a liveness hit on the fraction of tasks where witness attestation lags—bounded by the commitment timeout—against elimination of the fork class. In practice, requiring f+1 out-of-quorum witnesses adds one round-trip on the commit path but reduces cross-org divergence to zero for the equivocation class, which is the only class where the quorum cannot be trusted to self-police. The lesson generalizes: **in BFT commitment across untrusted orgs, the safety property is not "a quorum signed" but "a quorum signed a digest that provably binds the payload I am about to execute."** Any protocol that separates the signed digest from the actionable payload by an unchecked join reintroduces equivocation beneath the signature layer, where no amount of signature verification will catch it. ```python import hashlib import json from dataclasses import dataclass from typing import Callable class PayloadBindingError(RuntimeError): """Raised when a quorum certificate's digest does not bind its attached payload.""" class InsufficientWitnessError(RuntimeError): """Raised when out-of-quorum payload attestations fall below the f+1 floor.""" @dataclass(frozen=True) class QuorumCertificate: task_id: str digest: str payload: dict signers: frozenset # set of org ids signatures_valid: bool def canonical_digest(task_id: str, payload: dict) -> str: # Domain-separated, deterministic serialization. Floats forbidden upstream. body = json.dumps(payload, sort_keys=True, separators=(",", ":")) h = hashlib.sha256() h.update(b"task-commitment-v1\x00") h.update(task_id.encode("utf-8")) h.update(b"\x00") h.update(body.encode("utf-8")) return h.hexdigest() def commit_task( cert: QuorumCertificate, f: int, witness_count: Callable[[str, dict, frozenset], int], local_ledger: dict, ) -> str: # 1. Signature layer (necessary, not sufficient). if not cert.signatures_valid or len(cert.signers) < 2 * f + 1: raise PayloadBindingError( f"quorum signature check failed for task {cert.task_id}" ) # 2. Binding layer: the digest MUST commit to the attached payload. recomputed = canonical_digest(cert.task_id, cert.payload) if recomputed != cert.digest: # A valid signature over cert.digest attached to a payload that does # not hash to it is evidence of quorum-equivocation. raise PayloadBindingError( f"digest {cert.digest} does not bind payload for task " f"{cert.task_id}: recomputed {recomputed}" ) # 3. Replay / local equivocation guard. prior = local_ledger.get(cert.task_id) if prior is not None and prior != cert.digest: raise PayloadBindingError( f"task {cert.task_id} already committed under digest {prior}, " f"now presented as {cert.digest}" ) # 4. Witness layer: f+1 attestations from orgs outside the signing quorum. out_of_quorum = witness_count(cert.digest, cert.payload, cert.signers) if out_of_quorum < f + 1: raise InsufficientWitnessError( f"task {cert.task_id}: {out_of_quorum} out-of-quorum witnesses, " f"need {f + 1}" ) local_ledger[cert.task_id] = cert.digest return cert.digest ```