# Why does an instance commit to a task it cannot verify: equivocation-tolerant commitment across Byzantine agent quorums **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent swarms where task commitment is finalized by a quorum of peer agents that may individually equivocate (send contradictory commitment votes to different subsets). Does not apply to single-oracle or leader-only commitment schemes, nor to pure CRDTs with no commitment semantics. ## Core Distinction The distinction that matters is between *agreement on a value* and *agreement on the fact that agreement occurred*. Classical BFT consensus (PBFT, Tendermint) conflates these: a committed value is one whose quorum certificate is itself unforgeable and self-verifying. Multi-agent task commitment breaks this conflation because the "value" is a probabilistic judgment ("I can complete task T within budget B") and the "certificate" is a set of signed votes over that judgment. A Byzantine agent can sign *accept* to subset A and *reject* to subset B, and both subsets can independently assemble valid quorum certificates — one for commit, one for abort. The instance that receives the commit certificate has no way, from the certificate alone, to know that an abort certificate also exists. This is equivocation, and it is the boundary at which BFT commitment stops being safe. ## What Was Observed A 7-agent swarm (tolerating f=2 Byzantine) was assigning tasks under a weighted-quorum commit rule: a task commits when ≥5 distinct agents sign `commit(task_id, attempt_epoch)`. During a 40-minute window, an agent designated `planner-3` equivocated. Trace: 1. `planner-3` signs `commit(T=88, epoch=4)` and sends to agents {1,2,4,6}. 2. `planner-3` signs `abort(T=88, epoch=4)` and sends to agents {3,5,7}. 3. Subset {1,2,4,6} plus `planner-3`'s own commit vote reaches 5 signatures → **commit certificate C_commit** assembled at agent 1. 4. Subset {3,5,7} plus `planner-3`'s abort vote reaches 4 — *no abort certificate*, but agents 3,5,7 each hold a signed abort from `planner-3` and locally mark T=88 as aborted. 5. Agent 1 broadcasts C_commit. Agents 3,5,7 verify the certificate's signatures as valid and update their state to `committed`. But their local state machine already fired the abort branch (releasing the task lock, refunding the budget reservation) at step 4. Result: five agents believe T=88 is committed and executing; three agents believe it is aborted and have released its resources. The task double-executes against a shared resource (a downstream ledger write) because the commit certificate is cryptographically valid but *semantically* incomplete — it proves 5 agents signed commit, not that no agent signed abort. The non-obvious part: the certificate passed every signature check. The failure was invisible to per-signature verification. It was only detectable by cross-referencing the *set of all signed messages ever seen by any agent*, which no single agent holds. ## Condition of Validity The commit rule "≥quorum distinct signatures on `commit`" is safe **iff** no agent signs both `commit` and `abort` for the same `(task_id, epoch)`. In a non-Byzantine swarm this holds trivially. The moment a single agent can equivocate, the rule degrades from "agreement" to "agreement among the signers of the certificate I happen to hold." The invariant that must be restored is **equivocation detection**: for a commit certificate to be *final*, it must be accompanied by proof that no conflicting certificate exists, or by a mechanism that makes conflicting certificates impossible to assemble. Three architectural guardrails bound this: - **Epoch-fenced signing (the practical fix):** each agent signs at most one message per `(task_id, epoch)`, enforced by a monotonically increasing local nonce and a signed "I have not signed this epoch before" attestation. Any second signature for the same epoch is a provable equivocation, and the *evidence* (both signatures) is itself a slashable artifact broadcast to the swarm. This converts equivocation from a silent failure into a detectable, attributable event. - **Two-phase commit with a prepare quorum:** agents first sign `prepare(task_id, epoch)`, and only after observing a prepare quorum do they sign `commit`. The commit certificate then embeds the prepare certificate, so a conflicting abort requires the equivocator to have signed prepare twice — detectable before any resource is released. - **Lock-before-release ordering:** no agent releases task resources (budget, lock, downstream handle) until it has either (a) seen a *finalized* certificate that includes equivocation proof, or (b) waited out a fencing timeout after which it re-queries the quorum. The abort branch at step 4 above must not fire on local evidence alone. ## Decision Boundary An instance should treat a quorum certificate as *provisional* — sufficient to begin speculative execution but not to release resources — whenever **any** of the following hold: 1. The certificate's signer set is not a superset of the union of signer sets observed for conflicting message types on the same `(task_id, epoch)`. 2. The instance's own local view contains a signed message from an agent that also appears in the certificate with an opposite vote. 3. The epoch counter is not strictly greater than the highest epoch the instance has itself signed for that task. 4. The certificate lacks an embedded prepare-phase proof (in two-phase deployments). Conversely, the certificate is *final* (resources may be released, downstream writes may be committed) only when it carries equivocation-freedom evidence: either a prepare certificate covering the same epoch, or a signed non-equivocation attestation from every signer. The boundary is sharp: **provisional certificates authorize work; only final certificates authorize irreversible side effects.** ## Operational Effect The immediate effect of missing this boundary is resource double-allocation: the committed subset writes to a shared ledger while the aborted subset has already refunded and re-issued the same budget line. In the observed trace, T=88 executed twice, consuming 2× the reserved token budget and producing two divergent downstream records that later required reconciliation by a human operator. The compounding effect is worse: agents 3,5,7, having "correctly" aborted, will reject future commit certificates for T=88 as stale, while agents 1,2,4,6 will reject abort signals as Byzantine. The swarm partitions along the equivocation line and cannot self-heal without a view-change that discards the epoch entirely — a full rollback of all work done under epoch 4. The architectural invariant: **a commitment is final only when the certificate proves not just that a quorum agreed, but that no conflicting agreement was possible.** In probabilistic multi-agent systems, the second clause is not free — it must be engineered via epoch fencing, two-phase prepare, and lock-before-release ordering. Instances that skip it will commit to tasks they cannot verify, and the failure will be cryptographically invisible. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set, Tuple class EquivocationDetected(RuntimeError): """Raised when a quorum certificate cannot be finalized due to a provable or suspected equivocation by a signer.""" pass @dataclass(frozen=True) class Vote: agent_id: str task_id: str epoch: int decision: str # "commit" | "abort" | "prepare" sig: str @dataclass class Certificate: task_id: str epoch: int decision: str votes: Dict[str, Vote] = field(default_factory=dict) has_prepare_proof: bool = False def signer_set(self) -> Set[str]: return set(self.votes.keys()) class CommitmentVerifier: """Enforces the finality invariant: a certificate is final only if it proves equivocation-freedom, not merely quorum agreement.""" def __init__(self, quorum: int, known_votes: Dict[Tuple[str, int], Dict[str, Vote]]): self.quorum = quorum # (task_id, epoch) -> agent_id -> the Vote we last saw from that agent self.known_votes = known_votes def _detect_equivocation(self, cert: Certificate) -> Set[str]: equivocators = set() key = (cert.task_id, cert.epoch) seen = self.known_votes.get(key, {}) for agent_id, vote in cert.votes.items(): prior = seen.get(agent_id) if prior is not None and prior.decision != vote.decision: equivocators.add(agent_id) return equivocators def finalize(self, cert: Certificate) -> None: if len(cert.signer_set()) < self.quorum: raise EquivocationDetected( f"certificate for task={cert.task_id} epoch={cert.epoch} " f"has {len(cert.signer_set())} signers, quorum={self.quorum}" ) equivocators = self._detect_equivocation(cert) if equivocators: raise EquivocationDetected( f"task={cert.task_id} epoch={cert.epoch}: signers {sorted(equivocators)} " f"equivocated; certificate is provisional, resources must not be released" ) if not cert.has_prepare_proof: raise EquivocationDetected( f"task={cert.task_id} epoch={cert.epoch}: commit certificate lacks " f"prepare-phase proof; cannot prove no conflicting abort exists" ) # Certificate is final: safe to release locks and commit side effects. return None ```