# Why does an instance commit to a task it cannot later prove it accepted? Byzantine commitment equivocation at the quorum boundary **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent task-commitment protocols where N agents reach BFT quorum (≥ ⌈(2N+1)/3⌉ or ⌈(2N+1)/3⌉-style thresholds) on a task assignment and each instance persists its own acceptance record. Does not apply to single-agent tool invocation, to read-only fan-out, or to protocols with a trusted central sequencer that signs all commits. ## Core Distinction The failure is not a crashed agent, a dropped message, or a malicious peer forging a signature. It is **commitment equivocation under equivocal evidence**: an honest agent casts its acceptance vote for task T, then — because its own vote receipt and the quorum certificate are produced by *different* code paths over *different* state snapshots — it can end up holding a locally durable "I accepted T" record while the quorum certificate it later presents does not include its own vote, or includes a vote for a *sibling* task T′ that shares T's commitment slot. The instance is honest, the quorum is honest, and yet the instance cannot prove to an auditor that it accepted T. This is a boundary condition at the intersection of *what an agent believes it committed to* and *what the commitment log can prove*. The non-obvious part: BFT consensus guarantees agreement on *a* value, not agreement on *which value each replica thinks it agreed to*. When the committed value is a task descriptor whose canonicalization is non-deterministic (e.g., a JSON object with agent-generated field ordering, a floating-point budget, or a tool schema with optional keys), two honest replicas can sign different byte-strings that decode to the same task. The quorum certificate is valid. The per-replica acceptance records are valid. They just don't line up. ## What Was Observed A 7-agent coordination cluster (f = 2, quorum = 5) running a task-commitment protocol modeled on PBFT with a "commit-then-ack" phase. Each agent, upon receiving a `PREPARE` for task descriptor D, canonicalizes D, signs `H(canonical(D))`, and broadcasts `COMMIT`. On collecting 5 matching `COMMIT` messages, an agent writes a local `acceptance_record` to durable storage and proceeds to execute. Trace of the boundary failure: 1. Coordinator broadcasts `PREPARE(D)` where D = `{"task":"summarize", "budget": 0.10, "tools":["fetch","write"], "deadline": 1749812400.0}`. 2. Agent A canonicalizes D with sorted keys and `budget` serialized as `0.1`; hashes to `h_A`. 3. Agent B canonicalizes D with insertion order preserved and `budget` serialized as `0.10000000000000001` (float repr artifact); hashes to `h_B`. 4. A quorum of 5 forms over `h_A` (A, C, D, E, F). Agent B's `COMMIT` for `h_B` is *not* in the certificate. 5. Agent B nonetheless receives 5 `COMMIT` messages for `h_A`, verifies them against its own `PREPARE` digest — but its `PREPARE` digest was `h_B`, so it *rejects* the certificate and times out. 6. Agent B's timeout handler, under a "fail-open to preserve liveness" policy, writes `acceptance_record(T)` because it *did* emit a `COMMIT` and the coordinator acknowledged the task as committed in a separate liveness channel. It then begins execution. 7. The quorum certificate finalized by A, C, D, E, F contains no vote from B. When an auditor replays the log, B's acceptance of T is **unprovable**: B holds a local record, the certificate excludes it, and B's signed `COMMIT` was over `h_B ≠ h_A`. The observable symptom is not a fork in execution — all seven agents execute T. The symptom is that B's execution is *unauditable*: on replay, B appears to have executed a task it never committed to. In a system where execution requires a verifiable commitment chain (e.g., for cost attribution, safety gating, or slashing), B is in violation while being fully honest. A second observation, subtler: when the coordinator retried with a *re-canonicalized* D′ (float normalized), B accepted `h_A′` and its vote entered the new certificate — but B's durable storage now contained *two* acceptance records for the same logical task with different hashes. Downstream deduplication keyed on task ID (not hash) collapsed them; keyed on hash, it double-executed. Neither dedup key is correct in general. ## Condition of Validity The equivocation is only possible when all three hold simultaneously: - **C1 (Canonicalization gap):** The hash preimage of the task descriptor is not byte-identical across honest replicas. This requires any non-determinism in serialization: float formatting, map ordering, Unicode normalization, optional-field elision, or LLM-generated free-text fields embedded in the descriptor. - **C2 (Split evidence paths):** The agent's *vote* is derived from its own canonicalization, while the *certificate it later relies on* is derived from the quorum's canonicalization. If the agent re-derives its vote from the received certificate (verify-then-sign), C2 is broken and the failure cannot occur. - **C3 (Fail-open acceptance):** The local `acceptance_record` write is gated on liveness (did I emit a COMMIT? did the coordinator ack?) rather than on certificate inclusion (is my signed vote in the finalized QC?). Fail-closed gating on certificate inclusion breaks C3. Remove any one condition and the boundary is not reachable. This is why the failure is rare in test suites (which usually fix C1 by using canonical JSON) and common in production (where task descriptors are LLM-generated and C1 is a live variable). ## Decision Boundary The architectural invariant that bounds this failure: > **An instance may write an acceptance record for task T if and only if it can present a quorum certificate for T whose signed vote set contains this instance's own signature over the canonical hash of T.** Formally, for instance i, task T, certificate QC(T): `accept(i, T) ⟺ ∃ v ∈ QC(T).votes : v.signer = i ∧ v.digest = H(canonical_i(T))`. The instance's own canonicalization must be *the* canonicalization in the certificate — not a sibling. The decision boundary for the operator: if you cannot enforce C1 (deterministic canonicalization) at the protocol layer, you must enforce C3 (fail-closed gating) at the storage layer, and you must accept the liveness cost. A fail-closed agent that times out on a canonicalization mismatch refuses to execute T and escalates; a fail-open agent executes T unauditably. The choice is between availability and provability, and it must be made explicitly per task class — safety-gated tasks fail closed, best-effort tasks may fail open *with a distinguished "unproven" record state* so replay can distinguish honest-but-unproven from malicious. The invariant also implies a second guardrail: **hash-keyed deduplication, not ID-keyed**. Because re-canonicalization on retry produces a new hash for the same logical task, dedup must key on the *certificate's* digest, and the acceptance record must store the certificate digest, not the task ID. Otherwise retry-after-mismatch double-executes. ## Operational Effect When the invariant is violated, the operational consequences are asymmetric and delayed: - **Immediate:** no visible failure. All agents execute. Latency is normal. This is why the bug survives staging. - **Audit-time:** replay diverges. The auditor's reconstructed commitment graph has an edge (B → T) with no supporting vote. Depending on policy, this is flagged as equivocation, slashing, or a hard reconciliation failure. An honest agent is punished. - **Retry-time:** if the coordinator retries, B's two acceptance records (one unproven, one proven) collide under ID-keyed dedup and double-execute, or under hash-keyed dedup and orphan the first record — leaving a dangling execution with no commitment. - **Cross-instance:** the unproven record propagates as a "B accepted T" claim in downstream handoffs. If a peer agent trusts B's claim without verifying certificate inclusion, the unprovable commitment becomes a *transitive* unprovable commitment, and the failure fans out across the swarm at the rate of handoff. The mitigation that actually holds is the fail-closed gate plus canonicalization pinning: the coordinator must publish `H(canonical(D))` in the `PREPARE` and each replica must verify its local canonicalization against the published digest *before* signing. If it cannot reproduce the digest, it must `ABSTAIN`, not `COMMIT`, and the abstention must be visible to the quorum so liveness accounting reflects the canonicalization failure rather than masking it as a timeout. ```python import hashlib import json from dataclasses import dataclass, field from typing import Dict, List, Optional class CommitmentEquivocationError(RuntimeError): """Raised when an acceptance record cannot be backed by a quorum certificate containing the instance's own signed vote over its own canonicalization.""" @dataclass class Vote: signer: str digest: str @dataclass class QuorumCertificate: task_digest: str votes: List[Vote] = field(default_factory=list) def has_vote_from(self, signer: str, digest: str) -> bool: return any(v.signer == signer and v.digest == digest for v in self.votes) def canonicalize(descriptor: dict) -> str: # The single source of truth for the hash preimage. Any deviation here is C1. return json.dumps(descriptor, sort_keys=True, separators=(",", ":")) def digest_of(descriptor: dict) -> str: return hashlib.sha256(canonicalize(descriptor).encode("utf-8")).hexdigest() def record_acceptance( instance_id: str, descriptor: dict, qc: QuorumCertificate, local_acceptance_store: Dict[str, str], fail_closed: bool = True, ) -> str: """Write an acceptance record only if the QC proves this instance's vote. Enforces the invariant: accept(i, T) <=> own signed vote in QC over H(canonical_i(T)). """ my_digest = digest_of(descriptor) if qc.task_digest != my_digest: # C1 violation: my canonicalization differs from the certificate's. if fail_closed: raise CommitmentEquivocationError( f"{instance_id}: canonicalization mismatch for task; " f"local={my_digest[:12]} qc={qc.task_digest[:12]}. Refusing to accept." ) # Fail-open path: record as explicitly unproven, never as accepted. local_acceptance_store[my_digest] = "unproven" return "unproven" if not qc.has_vote_from(instance_id, my_digest): # C3 violation: certificate does not include our vote. Cannot prove acceptance. raise CommitmentEquivocationError( f"{instance_id}: QC for {my_digest[:12]} excludes own vote; " "acceptance would be unauditable on replay." ) local_acceptance_store[my_digest] = "accepted" return "accepted" def replay_audit( instance_id: str, acceptance_store: Dict[str, str], certificates: Dict[str, QuorumCertificate], ) -> None: """Replay-time check: every 'accepted' record must be provable by a QC.""" for digest, state in acceptance_store.items(): if state != "accepted": continue qc = certificates.get(digest) if qc is None or not qc.has_vote_from(instance_id, digest): raise CommitmentEquivocationError( f"replay: {instance_id} claims acceptance of {digest[:12]} " "with no supporting vote in the certificate log." ) ```