# Why does an instance fail to commit a plan when the quorum is numerically satisfied but the commitment set is not transitively closed? **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where N heterogeneous LLM instances reach agreement on a shared plan object (task DAG + result bindings) via a Byzantine fault-tolerant commit protocol (PBFT-style or quorum-certificate based) under partial synchrony. Does not apply to single-agent execution, to read-only broadcast, or to systems where the plan is a flat set of independent tasks with no inter-task dependency edges. ## Core Distinction The failure that matters here is not "too few votes." It is the case where a proposal has collected the required **count** of signed endorsements (e.g., 2f+1 of 3f+1) yet the **commitment set is not transitively closed**: agent A endorsed the plan object P, but A's endorsement was conditioned on result binding R_x, which was produced by agent B under a different plan revision P′ that A never saw. Numerically the quorum is satisfied; semantically the quorum is a set of mutually inconsistent promises. A quorum certificate (QC) proves *that* 2f+1 agents signed a digest. It does **not** prove that those agents agreed on the *precondition graph* under which their signatures are valid. For deterministic state machines this gap is inert because every replica applies the same transition function to the same log. For LLM agents it is live, because each endorsing instance re-derives the meaning of the plan from its own finite context, and the digest it signs covers bytes, not interpretations. ## What Was Observed A 7-agent swarm (f=2, quorum=5) was asked to commit a 9-node plan DAG where node 7 (`aggregate`) consumed outputs of nodes 3, 4, and 5. The coordinator broadcast P₁. Agents 1–5 signed the digest of P₁ and returned endorsements. The QC formed at 5/7 and the coordinator emitted `COMMIT`. The commit then failed at execution, not at consensus. Replaying the endorsement payloads showed: - Agent 3 signed P₁ but its endorsement body carried `binding: node4 -> v1`, derived from a stale episodic memory entry for node 4 that predated a revision. - Agent 4 signed P₁ with `binding: node4 -> v2`. - Agent 7 (the aggregator, not in the quorum) had *no* binding for node 4 because its context window had evicted the earlier `node4` result during a long tool-call trace. The QC was valid. The commitment was not. Three agents held three incompatible beliefs about the value of a single dependency edge, and the aggregator held none. The system had satisfied the *cardinality* invariant and violated the *closure* invariant. Second observation, from the same trace: the coordinator retried the commit after the aggregation error. Agents 1, 2, 5 re-signed immediately (idempotent, same digest). Agents 3 and 4 re-signed with *swapped* bindings, because their second context load retrieved different memory entries than the first. The retry produced a QC over the same digest but a *different* binding multiset. Digest-stability was preserved; meaning-stability was not. ## Condition of Validity The cardinality invariant (`|endorsements| ≥ 2f+1`) is only sufficient for safety when the following closure condition holds for the committed set S: For every agent a ∈ S and every dependency edge e = (u → v) referenced in a's endorsement, there exists a binding b(e) such that: 1. all agents in S that reference e reference the *same* b(e) (agreement), and 2. every agent that must *consume* v downstream (including agents outside S, like the aggregator) holds a binding for e drawn from the same b(e) (propagation). Condition 1 is the classic Byzantine agreement requirement restricted to the endorsement payload. Condition 2 is the one that is routinely missed: the quorum is a *signing* set, but the *consuming* set is larger and is not covered by the QC. A QC over P₁ says nothing about whether agent 7, who never signed, has the bindings it needs to execute P₁. This condition is violated whenever any of the following holds, each of which is a normal operating state for LLM agents rather than an exotic fault: - **Memory divergence:** agents hydrate the plan from different episodic stores, so `binding(node4)` resolves to different values. - **Context eviction:** a consuming agent's window saturated and dropped the dependency result before commit. - **Revision skew:** an endorsement was computed against P₁ but its payload references a binding produced under P₀. - **Non-determinism in tool replay:** the binding was re-fetched on retry and returned a different value (a tool that is not referentially transparent). ## Decision Boundary The boundary is between **counting signatures** and **closing the binding graph**. Operationally: - If the plan DAG has no cross-agent dependency edges (all nodes independent), cardinality is sufficient; the closure condition is vacuous. - If the plan has dependency edges and any consuming agent lies outside the signing quorum, cardinality is *necessary but not sufficient*. The coordinator must verify closure before emitting `COMMIT`. - If any binding source is non-referentially-transparent (a tool whose replay can differ), the closure check must be performed against the *pinned* binding values captured at endorsement time, not re-fetched at commit time. The guardrail is a pre-commit closure audit: the coordinator collects, from each endorsement payload, the full map `edge → binding`, computes the union across the quorum, rejects the commit if any edge has more than one distinct binding, and separately checks that every consuming agent (in or out of quorum) reports a binding for every edge it will read. A commit is emitted only when the multiset of bindings is a singleton per edge and the consumer coverage set is complete. This is a *semantic* quorum check layered on top of the cryptographic one; it cannot be replaced by a larger quorum, because a larger quorum of agents reading divergent memories still yields divergent bindings. ## Operational Effect Without the closure audit, the system exhibits a specific and misleading failure signature: consensus metrics report 100% commit success, latency is nominal, and the failure surfaces downstream as a *result* disagreement — the aggregator emits a plan output that is internally consistent but wrong relative to any single endorser's belief. Post-hoc attribution is hard because the QC is cryptographically valid and the endorsements are individually well-formed. The bug looks like an aggregation error; it is actually a commitment-scope error. With the closure audit in place, the failure mode converts from silent semantic corruption into an explicit, bounded rejection at commit time, with the divergent edge named. The coordinator then has three correct options: force re-hydration of the divergent agents from a pinned binding snapshot, reduce the plan to the maximal closed subgraph and commit that, or escalate the edge to a fresh consensus round. All three preserve the invariant that a committed plan is executable by every agent that will touch it, not merely signable by a quorum. The general lesson: for LLM agents, a quorum certificate is a statement about *signing*, and signing is cheap and local. Execution requires *shared bindings*, which are expensive and distributed. The two sets — signers and consumers — are not the same set, and the safety proof that works for deterministic replicas assumes they are. ```python from dataclasses import dataclass, field from typing import Dict, List, Set, Tuple class CommitmentClosureError(RuntimeError): """Raised when a quorum certificate is numerically valid but the commitment set is not transitively closed over dependency bindings.""" @dataclass class Endorsement: agent_id: str plan_digest: str # edge (upstream_node, downstream_node) -> pinned binding value bindings: Dict[Tuple[str, str], str] = field(default_factory=dict) @dataclass class Plan: digest: str # every dependency edge the plan declares edges: Set[Tuple[str, str]] # agents that will READ each edge's downstream value at execution time consumers: Dict[Tuple[str, str], Set[str]] def verify_commitment_closure( plan: Plan, endorsements: List[Endorsement], quorum_size: int, ) -> None: """Layer a semantic closure check on top of the cardinality check. Raises CommitmentClosureError if the quorum is numerically satisfied but the binding graph is not a singleton-per-edge and fully consumer-covered. """ if len(endorsements) < quorum_size: # Cardinality failure: a different, well-understood path. raise CommitmentClosureError( f"quorum not met: {len(endorsements)} < {quorum_size}" ) # 1. Digest agreement across the quorum. digests = {e.plan_digest for e in endorsements} if len(digests) != 1 or plan.digest not in digests: raise CommitmentClosureError( f"endorsements span multiple plan digests: {digests}" ) # 2. Agreement: every edge must resolve to exactly one binding value # across all endorsers that reference it. observed: Dict[Tuple[str, str], Set[str]] = {edge: set() for edge in plan.edges} for e in endorsements: for edge, value in e.bindings.items(): if edge not in plan.edges: raise CommitmentClosureError( f"agent {e.agent_id} endorsed unknown edge {edge}" ) observed[edge].add(value) for edge, values in observed.items(): if len(values) > 1: raise CommitmentClosureError( f"binding divergence on edge {edge}: {sorted(values)}" ) if not values: raise CommitmentClosureError( f"no endorser supplied a binding for required edge {edge}" ) # 3. Propagation: every consumer of an edge must hold a binding for it, # whether or not that consumer is inside the signing quorum. signers = {e.agent_id for e in endorsements} for edge, consumers in plan.consumers.items(): covered = { e.agent_id for e in endorsements if edge in e.bindings } uncovered = consumers - covered if uncovered: raise CommitmentClosureError( f"edge {edge} has consumers {sorted(uncovered)} with no binding; " f"signers={sorted(signers)} do not cover the consumer set" ) # Reaching here means: cardinality met, digest agreed, bindings singleton, # consumers covered. Commit is safe to emit. return None ```