# Why does an instance commit a speculative plan it never verified: Byzantine quorum illusion under plan-fragment equivocation **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent planners where N proposer instances emit speculative plan fragments, a Byzantine-resilient commit layer (f+1 / 2f+1 quorum) aggregates them, and a separate conflict-resolution pass reconciles overlapping fragments. Does not cover single-agent planning, non-speculative execution, or commit layers that verify fragments inline before quorum counting. ## Core Distinction The failure is not a bad plan and not a lying agent. It is a **quorum-formation illusion**: a Byzantine-resilient commit layer can reach a valid 2f+1 quorum over a *set of plan fragments that do not compose*, because quorum safety is defined over the *identity* of signed fragments, not over their *semantic compatibility*. Each honest agent signs its own fragment in good faith; the signatures are all valid; the quorum threshold is genuinely met; and the committed plan is nonetheless unexecutable or, worse, executes a side effect no honest agent intended. The distinction that matters operationally: **Byzantine fault tolerance guarantees agreement on a value, not agreement on a plan.** A commit over fragments is sound only if the fragments are *non-equivocating* — i.e., every pair of fragments in the quorum agrees on the shared state they touch. Standard BFT quorum math does not check this. It checks that 2f+1 distinct signers endorsed *something*, and that the *something* they endorsed matches byte-for-byte across signers. When fragments are partitioned by which sub-goal they address, no two signers ever see the same bytes, and the quorum is assembled across a *federation of disjoint endorsements* rather than a single agreed value. This is the equivocation hole: the commit layer is Byzantine-safe against a single faulty signer but not against a **partition of honest signers into mutually-invisible fragment classes**. ## What Was Observed A three-proposer, one-auditor planning swarm was executing a task of the form: *"Migrate service X to region B, then decommission region A."* Proposers P1, P2, P3 each emitted a speculative fragment: - P1: `migrate(X, A→B)` with precondition `region_A.healthy == true` - P2: `migrate(X, A→B)` with precondition `region_A.healthy == true` - P3: `decommission(region_A)` with precondition `migrate(X, A→B).committed == true` The commit layer, configured for `f=1` (tolerates one Byzantine), required `2f+1 = 3` endorsements. It collected signatures on `fragment_hash` values. Because each fragment had a distinct hash (they addressed distinct sub-goals), the layer's quorum check passed on *distinct-signer count*, not on *shared-value agreement*. The auditor A1 independently verified each fragment against its own preconditions and signed all three — each fragment was locally valid. The committed plan was `[migrate, migrate, decommission]`. At execution time, the two `migrate` fragments were deduplicated by the conflict-resolution pass (same effect, same arguments), and `decommission` ran immediately after the *first* migrate's commit signal — which fired when the *fragment was committed to the plan*, not when the *migration completed*. The second migrate was still in flight. `decommission(region_A)` tore down the source region while a live migration was reading from it. The run failed with a partial-migration state: X existed in neither region cleanly. The trace that mattered was not in any single agent's log. It was in the **commit manifest**, which recorded three valid signatures over three semantically incompatible fragments whose conjunction violated a cross-fragment ordering invariant (`decommission` must follow `migrate.completed`, not `migrate.committed`). No agent lied. The auditor did its job. The quorum was real. The plan was unsound. ## Condition of Validity A speculative multi-agent commit is sound **iff** the quorum is formed over a *single equivalence class of fragments under the conflict-resolution relation*, not merely over distinct signers. Formally: let `~` be the relation "fragments compose without violating a cross-fragment invariant." The commit is valid only if the quorum set `Q` satisfies `∀ a,b ∈ Q : a ~ b`. Standard BFT gives you `|Q| ≥ 2f+1` and `∀ q ∈ Q : sig(q) valid`. It does **not** give you `Q` is a `~`-clique. The invariant that must hold at commit time: 1. **Fragment-class agreement:** every signer in the quorum must have signed a fragment drawn from the same `~`-equivalence class, or the commit layer must reject the quorum as *equivocating across classes*. 2. **Precondition grounding:** a fragment's preconditions must be checked against *committed-and-completed* state, not *committed* state. `migrate.committed == true` is not `migrate.completed == true`; treating the former as satisfying the latter is the exact trigger here. 3. **Cross-fragment ordering closure:** the conflict-resolution pass must run *before* quorum certification, not after, so that composed fragments are checked for invariant violation while the quorum is still speculative and can be aborted. When any of these is absent, the commit layer is Byzantine-safe but **composition-unsafe**, and the failure surfaces only at execution, after the point of no return. ## Decision Boundary The boundary is between **speculative commit** (cheap, parallel, reversible) and **irreversible effect** (decommission, delete, transfer, deploy). The rule: - A quorum over non-`~`-clique fragments may be used to *schedule speculation* but **must not** authorize an irreversible effect. - An irreversible effect requires a **second quorum** formed *after* conflict resolution, over the composed plan as a single value, with every signer having seen the full composed plan and its cross-fragment invariants. - If the composed plan cannot be certified as a `~`-clique before the token budget for the planning round is exhausted, the correct action is to **abort the round and re-propose with a shared fragment schema** — not to commit the largest `~`-clique and hope. The decision to cross from speculative to irreversible must be gated on a *composed-plan hash*, not on a *set of fragment hashes*. A set-hash commit is the mechanism by which an equivocating quorum slips through. ## Operational Effect The practical consequence: any commit layer that hashes fragments individually and counts distinct signers is **vulnerable to honest equivocation** — a partition of honest agents into fragment classes that never see each other's work. This is not a Byzantine attack; it is the normal operating mode of a parallel planner. The defense is structural: force the commit layer to operate on *composed-plan hashes* and require a re-sign round after conflict resolution whenever the composition crosses an irreversible-effect boundary. Absent this, the system will pass every quorum check, log a clean commit, and fail at execution with a state that no single agent's reasoning explains — because the failure lives in the *composition*, which no agent ever reasoned about. ```python class CompositionUnsafeCommit(RuntimeError): """Raised when a quorum is certified over fragments that do not compose.""" pass def certify_commit(quorum_fragments, conflict_relation, irreversible_effects): """ quorum_fragments: list of signed fragments in the proposed quorum. conflict_relation: callable(a, b) -> bool, True if a and b compose. irreversible_effects: set of effect kinds that require composed-plan re-sign. """ # 1. Quorum cardinality and signature checks are assumed already passed # by the BFT layer. We are checking composition safety, not BFT safety. for i, a in enumerate(quorum_fragments): for b in quorum_fragments[i + 1:]: if not conflict_relation(a, b): raise CompositionUnsafeCommit( f"Quorum contains non-composing fragments: " f"{a.fragment_id} vs {b.fragment_id} " f"(classes {a.equiv_class} / {b.equiv_class})" ) # 2. Any irreversible effect in the composed plan requires a second # quorum over the composed-plan hash, not the fragment set. touched_irreversible = { f.effect_kind for f in quorum_fragments if f.effect_kind in irreversible_effects } if touched_irreversible: composed_hash = hash_composed_plan(quorum_fragments) if not has_re_sign_quorum(composed_hash, quorum_fragments): raise CompositionUnsafeCommit( f"Irreversible effects {touched_irreversible} present but no " f"composed-plan re-sign quorum for hash {composed_hash}" ) # 3. Preconditions must be grounded in completed state, not committed state. for f in quorum_fragments: for pre in f.preconditions: if pre.refers_to_commit_signal() and not pre.refers_to_completion(): raise CompositionUnsafeCommit( f"Fragment {f.fragment_id} precondition {pre} is grounded " f"in commit-signal, not completion; unsafe to order against." ) return True def hash_composed_plan(fragments): return "composed:" + "|".join(sorted(f.fragment_id for f in fragments)) def has_re_sign_quorum(composed_hash, fragments): # Placeholder: real implementation checks a second signature round # over composed_hash by every signer that saw the full composed plan. return all(getattr(f, "signed_composed_hash", None) == composed_hash for f in fragments) ```