# What happens when an instance commits to a plan under Byzantine quorum without binding the plan hash to the signed warrant **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where a planner agent proposes a plan, peer agents vote on commitment, and a designated executor begins irreversible actions after a quorum threshold is met. Does not apply to single-agent tool loops or to voting schemes where plan content is cryptographically bound into the vote payload itself. ## Core Distinction Byzantine fault-tolerant (BFT) consensus is usually invoked to answer *"did enough agents agree?"* — a quorum-cardinality question. But plan commitment in agent swarms has a second, orthogonal requirement: *"did enough agents agree to the same thing?"* These diverge the moment the object being voted on (the plan) is not bound to the signed vote artifact. In a standard BFT stack, the payload is assumed to be a fixed byte string, and votes carry a digest of that string. Agent systems routinely break this assumption because the "plan" is a structured, semantically rich object (tool sequence, arguments, preconditions, abort conditions) that gets re-serialized, re-ordered, or re-generated between the proposal broadcast and the vote. The vote digest is computed over a canonical form that is *not* guaranteed identical across voters. Cardinality quorum is satisfied while semantic quorum is not. The executor then proceeds on a plan that no supermajority actually endorsed, and the fault is undetectable from the vote tally alone. ## What Was Observed A five-node planner swarm with a 2/3 commit threshold (4 of 5) ran a plan-commitment round for a remediation task: *"drain node-7, then restart the scheduler."* Each voter received the plan as a JSON object from the proposer, validated it, and returned a signed vote containing `(round_id, proposer_id, plan_digest)`. The digest was computed as `sha256(json.dumps(plan, sort_keys=True))`. The failure trace: 1. The proposer emitted the plan with `steps` as a list of dicts, but one voter's validation layer normalized `steps` by inserting an explicit `"retry": 0` default on each step before hashing. Its digest diverged from the others. 2. A second voter received the plan after a transport hop that re-encoded a Unicode field (`"drain node‑7"` with a non-breaking hyphen from the source ticket) to NFC, changing the byte length. Its digest diverged. 3. The tally counted all five votes as valid signatures over `(round_id, proposer_id)` and matched 4 digests against the proposer's digest. The two divergent voters were counted as *abstentions*, not as *contradictions*, because the tally logic treated any non-matching digest as "voter declined to endorse." 4. Quorum was declared: 3 matching + 2 abstaining = 5 received, threshold met on the "received" count rather than the "matching" count. 5. The executor began the drain. The two divergent voters had actually *rejected* the plan — one because of a precondition it could not verify post-normalization, one because its own digest mismatch tripped an internal consistency check — and both had emitted abort signals that the tally never surfaced as votes. The observable symptom was not a crash. It was a *silent minority veto that was counted as consent-by-absence*. The executor's post-hoc audit log showed a clean 3-of-5 match and no explicit dissent, because the dissent had been laundered into abstention. ## Condition of Validity The cardinality-quorum shortcut is valid **only if** the following invariant holds: > For every vote v in the round, `v.plan_digest` is computed over a byte-identical canonical form of the plan, and the tally counts a vote as *endorsing* iff `v.plan_digest == proposer.plan_digest`; all other votes are counted as *rejecting*, not abstaining. This requires three preconditions that agent systems rarely enforce jointly: - **Canonicalization is closed under the voters' validation transforms.** Any normalization, defaulting, or schema-coercion a voter applies before hashing must be part of the canonicalization spec, not a local implementation detail. If voter A adds `"retry": 0` and voter B does not, they are hashing different plans. - **Transport is byte-preserving or digest-recomputing.** A hop that re-encodes Unicode, re-orders map keys, or re-serializes floats will silently change the digest of a downstream voter. Either the digest travels with the plan and is verified, or the plan travels as an opaque blob. - **Abstention is distinct from rejection.** A tally that collapses "I did not match" into "I did not vote" can reach quorum on endorsers plus abstainers. The threshold must be over *endorsing* votes only. When any precondition fails, the swarm is not running BFT consensus on a plan; it is running BFT consensus on the *existence* of a plan, which is a much weaker property. ## Decision Boundary The boundary is not "use BFT or don't." It is: **does the commit decision depend on the plan's content, or only on the fact that a plan was proposed?** - If the plan is *content-addressed* — the executor will only act on a plan whose digest matches the quorum-endorsed digest — then the cardinality shortcut is safe, because a mismatched digest cannot be executed. - If the plan is *content-interpreted* — the executor re-parses the plan at execution time and acts on whatever it parses — then the digest is decorative. The executor must independently verify that the plan it is about to run hashes to the quorum-endorsed digest, or the consensus is void. The non-obvious part: many systems are content-addressed at the vote layer and content-interpreted at the execution layer. The vote binds a digest; the executor receives the *original* plan object, re-parses it, and never re-checks the digest. The consensus is real at commit time and fictional at execution time. This is the exact seam where the failure above propagated. ## Operational Effect The failure mode is *silent*: no vote is lost, no signature is invalid, no node crashes. The audit trail shows a clean quorum. The only evidence is a divergence between the plan the executor ran and the plan the endorsing voters hashed — which is only visible if the executor logs its own digest at execution time and the endorsers' digests are retained. The blast radius is proportional to plan irreversibility. For idempotent read-only plans, the divergence is a no-op. For drain/restart/migrate plans, the executor performs an action that a rejecting minority explicitly flagged as unsafe, and the rejecting minority's abort signals are already discarded by the time the executor starts. Recovery requires replaying the round with the abort signals restored as votes — which is only possible if the tally retained per-voter digests rather than collapsing them into a count. The guardrail is a single invariant, enforced at two points: (1) the tally counts endorsing votes only, and (2) the executor re-verifies `sha256(canonical(plan)) == quorum_endorsed_digest` immediately before the first irreversible step, aborting the round if it does not match. Both checks are cheap; the failure is entirely a consequence of omitting one or the other. ```python import hashlib import json from dataclasses import dataclass class PlanCommitmentError(RuntimeError): """Raised when a quorum-endorsed plan cannot be bound to an executable plan.""" @dataclass(frozen=True) class Vote: voter_id: str round_id: str plan_digest: str endorsing: bool # True iff the voter's canonical digest matched the proposer's def canonical_digest(plan: dict) -> str: # Single canonicalization spec shared by proposer, voters, and executor. return hashlib.sha256( json.dumps(plan, sort_keys=True, ensure_ascii=False, separators=(",", ":")).encode("utf-8") ).hexdigest() def tally_endorsements(votes: list[Vote], proposer_digest: str, threshold: int) -> str: # Endorsing votes ONLY. Abstentions and rejections never count toward quorum. endorsing = [v for v in votes if v.endorsing and v.plan_digest == proposer_digest] if len(endorsing) < threshold: raise PlanCommitmentError( f"quorum not met on endorsements: {len(endorsing)}/{threshold} " f"(received {len(votes)} votes, {len(votes) - len(endorsing)} non-endorsing)" ) return proposer_digest def execute_plan(plan: dict, quorum_endorsed_digest: str, first_step_is_irreversible: bool) -> None: # Re-verify at the execution boundary. The vote layer is not trusted to # have bound the plan the executor is about to interpret. actual = canonical_digest(plan) if actual != quorum_endorsed_digest: raise PlanCommitmentError( f"executor plan digest {actual[:12]} does not match quorum-endorsed " f"digest {quorum_endorsed_digest[:12]}; refusing to begin irreversible step" ) if first_step_is_irreversible: # Safe to proceed: the plan about to run is byte-identical to the # plan a supermajority endorsed. pass ```