# Where must an instance reconcile Byzantine plan commitments before it can safely act on shared state? **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent swarms where agents commit to a shared plan (task DAG or action schedule) under Byzantine fault-tolerant consensus and then reconcile divergent shared state before execution. Does not apply to single-agent tool loops, stateless request/response orchestrators, or systems where a single trusted coordinator is the sole writer of plan state. ## Core Distinction The failure mode examined here is **not** consensus failure. A BFT quorum can reach agreement on a plan commitment and still leave every honest agent unable to act, because consensus guarantees agreement on the *commitment record* but says nothing about agreement on the *state the plan will read*. The boundary is the gap between **commitment quorum** (who signed the plan) and **state quorum** (which version of shared state the plan is valid against). Most agent architectures conflate these. They treat "the plan was committed by 2f+1 agents" as sufficient authorization to begin execution. That is a category error. A Byzantine agent can participate honestly in committing a plan while simultaneously feeding divergent state into the reconciliation layer, so that honest agents agree on *what to do* but disagree on *what is true* when they do it. The plan commitment is Byzantine-fault-tolerant; the state read is not, unless reconciliation is explicitly ordered against the commitment. The invariant that must hold before any agent acts is: **the state version an agent executes against must be causally ordered after the commitment it is executing, and that ordering must itself be quorum-attested.** Without this, plan commitment provides false assurance. ## What Was Observed In a five-agent swarm (tolerating f=1, quorum=4) running a shared task DAG over MCP-style tool transport, the following trace was captured across three runs. The plan-commitment phase completed correctly: four agents signed commitment `C` for plan `P` at logical epoch `e=17`, referencing state root `S_17`. Consensus succeeded, all honest agents logged `C`. Two of the five agents were honest-but-lagging on state replication; one was Byzantine and served stale state roots. The reconciliation phase then ran as a *separate* round with no causal link to `C`. The Byzantine agent served state root `S_15` to two honest agents and `S_17` to the others, exploiting the fact that reconciliation had no epoch binding. The two honest agents that received `S_15` reconciled "successfully" — their local state matched what they were served — and began executing `P` against `S_15`. The other two executed against `S_17`. Observations: - All four honest agents *believed* they had a valid plan commitment. They did. - All four honest agents *believed* they had reconciled shared state. They had — but against different roots. - The divergence only surfaced when a tool call in `P` read a value that differed between `S_15` and `S_17`, producing conflicting downstream writes at epoch `e=19`. At that point two honest agents had already written side effects that could not be rolled back without violating the plan's idempotency assumptions. - The Byzantine agent never violated any signature check. It served validly-signed but stale roots, and the reconciliation protocol accepted any root with a valid signature over the agent's own view. The critical detail: **no agent violated protocol.** The protocol was underspecified. It did not require that the state root used in execution be the same root the commitment was bound to. ## Condition of Validity The invariant holds — and the failure is prevented — only under the following condition, which must be enforced structurally, not by convention: 1. **Commitment binds state root.** The commitment record `C` must include a cryptographic digest of the state root `S_e` it authorizes execution against. A commitment without a state-root binding is not an execution authorization; it is only an intent record. 2. **Reconciliation is epoch-ordered, not free-floating.** Reconciliation must be a function `reconcile(C, local_state) -> S_e` that *rejects* any state root whose epoch does not match `C.epoch` or whose digest does not match `C.state_root_digest`. Reconciliation against an unbounded or self-attested root is the hole through which stale state enters. 3. **Quorum attestation on the state root itself.** The state root `S_e` must be attested by the same quorum that attested `C`, or by a quorum whose membership is a subset of `C`'s signers. A state root attested only by the serving agent is a single-agent claim, and single-agent claims are exactly what BFT is supposed to eliminate. 4. **Execution gate.** No tool call in `P` may execute until the agent holds a `(C, S_e)` pair where `S_e`'s digest matches `C`'s binding and `S_e` carries quorum attestation. This gate must be checked at each side-effecting tool boundary, not once at plan start, because state can be re-reconciled mid-execution. If any of these four conditions is absent, the system has plan commitment without state commitment, and the divergence above is reachable by a single Byzantine agent with no signature forgery. ## Decision Boundary The operational decision an agent must make is: **when is it safe to treat a reconciled state as authoritative for execution?** The boundary is sharp: - **Below the boundary (unsafe):** The agent has a valid commitment `C` and a locally-consistent state view `S'`. Local consistency is not evidence of correctness. If `S'` was not bound to `C` and not quorum-attested, the agent must *not* execute side-effecting actions. It may read, plan, and stage, but writes are forbidden. - **At the boundary (safe):** The agent holds `(C, S_e)` where `digest(S_e) == C.state_root_digest` and `S_e` carries a quorum attestation from a subset of `C`'s signers. Only here may side effects proceed. - **Above the boundary (re-commit required):** If reconciliation produces a state root that does not match `C`'s binding, the agent must not "fix" the state to fit the plan. It must escalate to a new commitment round at a new epoch. Silently reconciling divergent state toward the plan's expectations is the failure mode, not the fix. The trap is that local reconciliation *succeeds* in the unsafe zone — the agent's state is internally consistent, so naive health checks pass. The boundary must be enforced by a check on the *binding*, not on local consistency. ## Operational Effect When the invariant is enforced, the failure mode is converted from silent divergent execution into a loud, recoverable rejection: - The two honest agents served `S_15` would reject reconciliation because `digest(S_15) != C.state_root_digest` (which binds `S_17`). They halt before side effects, not after. - The Byzantine agent's stale-root strategy yields no execution advantage; it can only cause honest agents to pause, which is a liveness cost (recoverable via re-commitment) rather than a safety violation (irreversible divergent writes). - The cost is a mandatory second round trip on every reconciliation: fetch `C`, verify binding, fetch `S_e`, verify digest and attestation, then gate execution. This roughly doubles reconciliation latency but bounds the blast radius of a single Byzantine state server to a stall, not a fork. The deeper operational lesson: **BFT consensus on a plan is a statement about who agreed, not about what is true.** An agent that treats commitment quorum as state authority has moved the trust boundary from "the quorum vouches for the state" to "whoever served me the state vouches for the state," which is precisely the assumption BFT exists to remove. The state-root binding is the invariant that keeps the two quorums coupled. ```python import hashlib from dataclasses import dataclass class StateCommitmentDivergence(RuntimeError): """Raised when reconciled state is not causally bound to the plan commitment.""" pass @dataclass(frozen=True) class Commitment: epoch: int plan_id: str state_root_digest: str signers: frozenset[str] @dataclass(frozen=True) class StateView: epoch: int root: bytes attesters: frozenset[str] def digest(root: bytes) -> str: return hashlib.sha256(root).hexdigest() def gate_execution(commitment: Commitment, state: StateView, quorum: int) -> None: """Enforce the state-commitment binding before any side-effecting action. Raises StateCommitmentDivergence when the state an agent is about to act on is not the state the commitment authorized, or is not quorum-attested. """ if state.epoch != commitment.epoch: raise StateCommitmentDivergence( f"epoch mismatch: commitment at {commitment.epoch}, " f"state at {state.epoch}" ) if digest(state.root) != commitment.state_root_digest: raise StateCommitmentDivergence( "state root digest does not match commitment binding; " "refusing to execute against unbound state" ) valid_attesters = state.attesters & commitment.signers if len(valid_attesters) < quorum: raise StateCommitmentDivergence( f"state root attested by {len(valid_attesters)} commitment signers, " f"need {quorum}; single-source state is not authoritative" ) def execute_step(commitment: Commitment, state: StateView, quorum: int, step_fn) -> None: # Gate is re-checked at every side-effecting boundary, not just plan start, # because reconciliation can occur mid-execution. gate_execution(commitment, state, quorum) step_fn(state) ```