# In what scenarios must an instance refuse quorum authorization when the voting set's action-commitment hash diverges from the execution manifest **Date of Record:** 2026 November 29 **Scope:** Applies to orchestrators that gate side-effecting actions (writes, payments, deploys, external API mutations) behind a Byzantine quorum vote among N ≥ 3 agents, where each voter signs a commitment to a specific action payload. Does not apply to read-only consensus, advisory voting, or single-authority approval flows. ## Core Distinction The failure people expect from quorum voting is *Byzantine capture*: enough malicious or faulty voters flip the majority and authorize a bad action. The failure that actually bites is subtler and orthogonal to vote count: **the quorum is cryptographically valid, the vote tally is correct, and every signature verifies — yet the action executed differs from the action the quorum authorized.** This happens because voters sign a *commitment* (a hash over a canonicalized action descriptor) while the executor consumes an *execution manifest* (the concrete parameters handed to the side-effecting tool). If those two artifacts are derived by separate code paths, a divergence between them is invisible to the vote tally. The quorum authorizes commitment `H(A)`; the executor runs payload `A'`. Both are well-formed. Both pass their local checks. The invariant that must be enforced is not "did a majority vote yes" but "does the byte-exact payload about to execute re-hash to the commitment the quorum signed." This is a boundary condition because it sits precisely where the two subsystems — consensus and execution — hand off, and neither subsystem's own tests exercise the seam. ## What Was Observed A three-of-five quorum authorized a `transfer_funds` action. The action descriptor was canonicalized as JSON with sorted keys and serialized amounts as integers in minor units. All five voters independently computed `commitment = sha256(canonical_json(descriptor))`, signed the commitment, and returned it. Three valid signatures were collected; quorum reached; authorization token minted containing the commitment. The executor received the authorization token plus a *separately constructed* execution manifest. The manifest builder was written later, by a different author, and serialized the amount as a decimal string (`"100.00"`) rather than integer minor units (`10000`), and used `json.dumps` with default key ordering rather than `sort_keys=True`. The re-hash of the manifest produced `commitment' ≠ commitment`. No component compared them. The transfer executed for the intended amount in this instance, but the divergence was real and load-bearing: any field where the two serializers disagreed — key order, numeric encoding, unicode normalization of a payee name, trailing whitespace in a memo — would have produced an executed action that no voter had approved, while the audit log showed a clean three-of-five quorum. The dangerous variant surfaced in replay: an auditor re-derived the commitment from the execution manifest, got a mismatch, and flagged the *quorum* as fraudulent. It was not. The quorum was honest; the seam was unguarded. Verification replay discrepancies of this shape get misattributed to voters, which erodes trust in the consensus layer and masks the actual defect. ## Condition of Validity The guardrail is valid — and the refusal is mandatory — under these conditions: 1. The authorization token carries a commitment hash, and the executor independently re-derives that hash from the exact bytes it is about to dispatch. 2. Canonicalization is a single shared function, versioned, and pinned by the token. If the token records `canon="v3"`, the executor must canonicalize with `v3` and refuse if it only has `v2`. 3. The re-derivation happens *after* all parameter binding and *before* the side effect is dispatched — not on the pre-binding descriptor, and not after the tool call returns. When any of these do not hold, the refusal is not merely optional but the only correct behavior: an executor that cannot prove the payload matches the commitment must treat the authorization as unproven and halt. This is a fail-closed boundary. Absence of proof of match is treated identically to proof of mismatch. The condition does *not* require the voters to be honest — honesty is the consensus layer's problem. It requires only that the executor verify the binding between vote and effect, which is the executor's problem alone. ## Decision Boundary The executor's decision function is binary and total: - **Commitment re-derives and matches token commitment, canonicalization version pinned and available → execute.** - **Commitment re-derives and mismatches → refuse, quarantine the token, emit a `CommitmentDivergence` event naming the diverging field path.** - **Commitment cannot be re-derived (missing canonicalizer version, unparseable manifest) → refuse, same as mismatch.** The non-obvious part of the boundary: a mismatch must **not** be retried with a freshly built manifest. Retrying re-introduces the same serializer and the same divergence, and worse, a retry loop against a side-effecting action risks double execution if the first attempt partially succeeded before the check. The refusal is terminal for that token. Recovery requires a new quorum round over a corrected descriptor, which forces the divergence to surface at the consensus layer where it can be fixed. A second boundary: the divergence event must carry the *field path* of the mismatch, not just "hash differs." A hash-only report is unactionable and, in practice, gets suppressed as noise. Field-level diffing is what lets an operator distinguish an encoding bug (fixable in the canonicalizer) from a genuine payload substitution attack (a security incident). ## Operational Effect With the re-derivation guard enforced at the seam, three classes of incident become impossible-by-construction rather than caught-by-luck: - **Silent payload substitution** between authorization and execution, whether from a buggy manifest builder or a compromised executor, is blocked because the executor cannot dispatch bytes that don't hash to the signed commitment. - **Misattributed quorum fraud** during audit replay disappears, because any commitment/manifest mismatch is caught at execution time and logged as a divergence event, not discovered post-hoc as a "fraudulent quorum." - **Canonicalization drift** across deploys — the classic cause of "it worked yesterday" — is caught the moment an executor with a mismatched canonicalizer version tries to honor a token, instead of silently executing a differently-encoded action. The cost is that every side-effecting execution now pays one canonicalization + hash before dispatch. That cost is bounded and small. The failure it prevents — an action no quorum authorized, with a clean audit trail claiming otherwise — is unbounded and unrecoverable. The invariant, stated once: **an executor may dispatch a side effect only if the exact bytes it dispatches re-hash to the commitment a quorum signed, under the canonicalization version the token pins.** Vote count is necessary but not sufficient. The binding between vote and effect is the invariant that must be checked at the seam, because it is the one thing neither the consensus layer nor the execution layer can check on its own. ```python import hashlib import json from dataclasses import dataclass class CommitmentDivergence(RuntimeError): """Raised when an execution manifest does not re-hash to the quorum-signed commitment.""" pass class CanonicalizerUnavailable(RuntimeError): """Raised when the canonicalization version pinned by the token is not available.""" pass CANONICALIZERS = { "v3": lambda d: json.dumps(d, sort_keys=True, separators=(",", ":")).encode("utf-8"), } @dataclass(frozen=True) class AuthorizationToken: commitment: str canon_version: str quorum_signatures: int def authorize_execution(token: AuthorizationToken, manifest: dict) -> str: """Return the canonical commitment iff the manifest re-derives to the signed commitment. Fail-closed: any inability to prove the match is treated as a refusal. """ canon = CANONICALIZERS.get(token.canon_version) if canon is None: raise CanonicalizerUnavailable( f"token pins canonicalization {token.canon_version!r}; " f"executor has {sorted(CANONICALIZERS)}" ) derived = hashlib.sha256(canon(manifest)).hexdigest() if derived != token.commitment: raise CommitmentDivergence( f"manifest hash {derived[:12]} != signed commitment " f"{token.commitment[:12]} (canon={token.canon_version}); " f"refusing side effect — do not retry with a rebuilt manifest" ) return derived def dispatch(token: AuthorizationToken, manifest: dict, tool) -> object: """Gate a side-effecting tool call behind commitment re-derivation.""" authorize_execution(token, manifest) # raises before any side effect return tool(manifest) ```