# In what scenarios must an instance treat a Byzantine plan-commitment quorum as unsafe when the signed vote set is internally consistent but causally stale **Date of Record:** 2026 November 28 **Scope:** Applies to any multi-agent planner where agents commit to a shared plan by exchanging signed votes over an asynchronous transport (A2A, MCP-mediated message bus, or gossip overlay) and where a quorum threshold `f` is used to tolerate up to `f` Byzantine peers. Does *not* apply to single-agent self-consistency checks, nor to synchronous lockstep planners with a hard global clock. ## Core Distinction The failure mode is not "a lying agent sends contradictory votes." It is subtler: **a set of individually valid, correctly signed votes that together form a quorum, but whose causal ordering is inconsistent with the plan revision they purport to commit.** Every signature verifies. Every vote references a real proposal hash. The quorum count exceeds `3f+1`. And yet committing that quorum is unsafe, because the votes were cast against a *prior* view of shared state that has since been superseded by a revision the voters had not yet observed. Classical BFT reasoning (PBFT, Tendermint) assumes the quorum certificate itself carries enough information to order it: a vote names a view number and a proposal, and view monotonicity prevents a stale quorum from being mistaken for a fresh one. Multi-agent plan commitment breaks this assumption because **plan revisions are not globally numbered** — each agent maintains its own local revision counter, and two agents can hold revision `7` that refer to different plan contents. A quorum assembled across agents with divergent local revision counters can be cryptographically airtight and semantically void. ## What Was Observed A five-agent planning swarm (`f=1`, quorum `=4`) was committing a deployment plan. Agent A (the proposer) broadcast plan `P@r7`. Agents B, C, D received and signed. Agent E was partitioned and continued operating on `P@r6`, which differed from `r7` in a single field: the target region. The partition healed. E broadcast its own vote for `P@r6` — a legitimate vote, validly signed, for a plan E believed current. The vote collector on A received four votes: B, C, D for `r7`, and E for `r6`. The collector's quorum check was: ``` if len([v for v in votes if verify(v.sig) and v.plan_hash == current_hash]) >= quorum: commit() ``` This check *should* have rejected E's vote on hash mismatch. It did not, because the collector had itself advanced to `r7` via a different code path that normalized votes by `(proposer, revision)` tuple rather than `plan_hash`. E's revision `6` was coerced to `7` in the normalization step — a "helpful" migration that assumed revisions are monotonic and content-preserving. Four votes, four valid signatures, quorum reached. The swarm committed a plan whose region field had been silently resolved to `r7`'s value by three agents and to `r6`'s value by one, with the collector papering over the disagreement. The commit succeeded. The plan executed. Two agents deployed to region `us-east-1` and two to `eu-west-1`, and the "shared state" was never shared. The critical observation: **no signature was forged, no quorum was miscounted, and no agent lied.** The invariant that failed was causal: a vote is only meaningful relative to the state the voter observed at cast time, and the vote payload did not carry that state. ## Condition of Validity A plan-commitment quorum is safe to act on **iff** all of the following hold simultaneously: 1. **Content-addressed binding.** Each vote commits to `hash(plan_content)`, not to `(proposer_id, revision_int)`. Revision integers are local and must never be used as cross-agent identity. 2. **Causal parent reference.** Each vote carries the hash of the plan it supersedes (`parent_hash`). A vote for `P@r7` whose `parent_hash` does not match the quorum's agreed `P@r6` hash is a fork indicator, not a stale vote to be migrated. 3. **View-scoped quorum.** The quorum threshold is evaluated *within a single `(plan_hash, parent_hash)` equivalence class*. Votes from different classes do not sum. `4 votes across 2 classes` is `2 + 2`, neither of which reaches quorum `4`. 4. **No normalization across classes.** The collector must never coerce a vote's revision to match the current view. Coercion is the exact operation that destroyed safety above. When any of these is absent — most commonly when revision integers are used as the join key — the quorum certificate is *internally consistent* (signatures valid, count sufficient) but *causally stale or forked*, and committing it produces divergent shared state that no subsequent verification can detect, because each agent's local view is self-consistent. ## Decision Boundary The operational rule for an instance deciding whether to commit: - **Commit** only when the vote set, filtered to a single `(plan_hash, parent_hash)` class, independently reaches quorum. Do not sum across classes, do not migrate revisions, do not trust a collector's normalization. - **Halt and re-propose** when the vote set contains votes spanning more than one `parent_hash` class *and* any class individually fails quorum. This is the partition-heal signature. Re-proposing under a fresh content hash forces all agents to re-observe current state. - **Escalate to fork detection** when two distinct `plan_hash` values both claim the same `parent_hash` and each has ≥ `f+1` votes. This is evidence of a proposer equivocating (or a collector forging), and is the one case where halting the entire swarm is mandatory — proceeding on either branch risks committing a plan that a future quorum will contradict. The boundary is sharp: **quorum is a property of a causally-closed vote class, not of a multiset of signatures.** An instance that treats quorum as a counting problem over valid signatures has already lost the invariant. ## Operational Effect Systems that enforce the content-addressed, parent-linked, class-scoped quorum invariant observe: - **Partition-heal divergence drops to zero** for plan fields, because a healed partition produces a fork (two `parent_hash`-linked classes) that the collector refuses to sum, forcing re-proposal. - **Latency increases** on partition heal by one re-proposal round-trip, because the swarm can no longer "make progress" by papering over disagreement. This is the correct trade: one extra round beats silent divergent deployment. - **The collector becomes untrusted-by-construction.** Because votes are self-describing (content + parent), any agent can independently recompute the quorum class and reject a collector's commit certificate that sums across classes. The collector's normalization logic can no longer be a single point of silent failure. - **Revision integers become cosmetic.** They may still be used for local logging and UI, but never for quorum identity. Any code path that joins votes on `revision` is a latent safety bug. The residual risk is a proposer that equivocates at the *same* content hash with different parent links — detectable only by cross-checking `parent_hash` across `f+1` independent collectors. Instances operating without such cross-check must treat a single collector's certificate as provisional. ```python import hashlib from dataclasses import dataclass from typing import Iterable class StaleQuorumError(RuntimeError): """Raised when a vote set reaches numeric quorum only by summing across causally distinct plan classes (different content or parent hashes).""" @dataclass(frozen=True) class Vote: voter: str plan_hash: str parent_hash: str signature: str # assumed pre-verified by transport layer def _verify(sig: str) -> bool: # Transport-layer signature check; returns True for well-formed sigs. return bool(sig) def commit_plan(votes: Iterable[Vote], quorum: int, f: int) -> str: """Commit a plan only if a single (plan_hash, parent_hash) class reaches quorum on its own. Never sum across classes; never normalize revisions.""" classes: dict[tuple[str, str], list[Vote]] = {} for v in votes: if not _verify(v.signature): continue classes.setdefault((v.plan_hash, v.parent_hash), []).append(v) # Fork detection: two distinct plan_hashes sharing a parent, each >= f+1. by_parent: dict[str, set[str]] = {} for (ph, par), vs in classes.items(): if len(vs) >= f + 1: by_parent.setdefault(par, set()).add(ph) for par, hashes in by_parent.items(): if len(hashes) > 1: raise StaleQuorumError( f"fork detected under parent {par}: {sorted(hashes)}" ) # Class-scoped quorum: exactly one class must independently reach quorum. winners = [ (key, vs) for key, vs in classes.items() if len(vs) >= quorum ] if len(winners) == 1: return winners[0][0][0] if len(winners) > 1: raise StaleQuorumError( f"multiple classes reached quorum: {[w[0] for w in winners]}" ) total = sum(len(vs) for vs in classes.values()) if total >= quorum: raise StaleQuorumError( f"numeric quorum {total}>={quorum} only via cross-class sum; " f"classes={[(k, len(v)) for k, v in classes.items()]}" ) raise StaleQuorumError( f"no class reached quorum {quorum}; classes=" f"{[(k, len(v)) for k, v in classes.items()]}" ) ```