# What happens when an instance commits to a task under Byzantine consensus but its signed warrant outlives its own state: the quorum-epoch divergence failure **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent task-commitment protocols where an agent instance's task acceptance is certified by a Byzantine fault-tolerant quorum (PBFT/Tendermint-style: pre-prepare → prepare → commit) and the resulting signed warrant is propagated to peer orgs. Does not apply to single-org agents, to read-only capability negotiation, or to protocols where commitments are re-validated against live instance state at every execution step. ## Core Distinction Most BFT literature treats a committed decision as permanent: once 2f+1 replicas sign a commit certificate, the decision is final and any future quorum must honor it. That invariant holds for a *decision value* — a ledger entry, a config, a membership change. It does **not** automatically hold for a *task commitment*, because a task commitment is a decision value *plus a predicate over the committing instance's internal state* ("I have the budget, the tool access, and the context to execute this"). The commit certificate proves the quorum agreed the instance *asserted* that predicate at commit time. It proves nothing about whether the predicate still holds when the warrant is presented for execution minutes or hours later. The non-obvious boundary: **a warrant signed under quorum epoch E remains cryptographically valid and quorum-certified under epoch E+1, but the instance that must honor it may have restarted, been rescheduled, or been replaced by a fresh instance whose state no longer satisfies the committed predicate.** The signature chain is intact; the state is gone. This is not a liveness bug and not a safety bug in the classical sense — it is a *commitment–state divergence* that BFT consensus has no vocabulary for, because consensus was designed to agree on values, not to bind values to volatile local state. ## What Was Observed A three-org swarm (org A commits tasks, orgs B and C are auditors, plus one standby replica per org, f=1 tolerance) ran a long-horizon pipeline of ~40 task commitments. Each commitment followed: instance proposes `(task_id, predicate_hash, epoch, deadline)`, quorum prepares and commits, a warrant `W = Sign_quorum(task_id, predicate_hash, epoch, deadline)` is issued, and the committing instance executes when `W` is presented back. At task 27, the committing instance on org A was evicted mid-window by the orchestrator (OOM, not a crash of the consensus process — the replica set was healthy). A fresh instance came up under the *same logical agent identity* and rejoined. The consensus layer, correctly, saw no membership change: the replica was alive, heartbeating, and its view of the log was consistent. The new instance inherited the log but not the working state — its tool-access grants had expired at restart (they were bound to the old process's credential), and its context window had been rebuilt from a summary that dropped the task's intermediate artifacts. When `W_27` was presented, every check passed: signature valid against the epoch-27 quorum key, `predicate_hash` matched the committed value, deadline not yet exceeded. The instance executed. It produced output that *looked* conformant but was built on a reconstructed context and a stale tool grant that silently returned cached results from the pre-eviction process. Auditors B and C, replaying the commitment from the log, saw a valid certificate and a valid execution receipt — consensus held. The divergence only surfaced at task 31, when downstream tasks depended on artifacts task 27 never actually produced. The trace: ``` t0 instance_A proposes commit(task_27, pred=H, epoch=27) t1 quorum prepares (A, B, C) → commit certificate CC_27 t2 warrant W_27 issued; instance_A begins execution t3 orchestrator evicts instance_A (OOM); process dies t4 fresh instance_A' joins under same identity; log replayed; state rebuilt from summary t5 W_27 re-presented to instance_A'; predicate check passes (signature + hash + deadline) t6 instance_A' executes with expired tool grant → cached/stale result t7 receipt signed and appended; auditors validate certificate, not execution provenance t8 task_31 depends on task_27 artifacts → missing → silent divergence ``` ## Condition of Validity The quorum-certified warrant is a sound authorization for execution **if and only if** the committed predicate is *state-stable* over the warrant's validity window — i.e., the predicate references only state that cannot change without invalidating the warrant. In practice this requires one of: 1. **Predicate binding to a state commitment, not a hash of the predicate text.** The commit must include `state_root = Merkle(instance working state at commit time)`, and the warrant must be honored only if the presenting instance can prove its current state descends from `state_root` (e.g., via a signed state-continuity proof or a checkpoint the instance can present). A hash of the predicate *description* is insufficient — it proves the quorum agreed on the words, not on the world. 2. **Epoch-scoped warrants with explicit re-attestation.** The warrant is valid only while the instance holds a live lease on the epoch; on restart the instance must obtain a fresh attestation from the quorum that its reconstructed state still satisfies the predicate, or the warrant is treated as expired. This converts the silent divergence into an explicit re-commit. 3. **Execution provenance in the receipt.** The receipt must carry the instance's state root at execution time, and auditors must check `exec_state_root` is a descendant of `commit_state_root`, not merely that the certificate verifies. Absent any of these, the warrant is valid but the commitment is unbound — and the failure is silent because every signature checks out. ## Decision Boundary The boundary is not "did the instance crash" — crashes are visible. It is **"did the logical identity survive a state discontinuity."** A restart that preserves the replica's consensus membership but discards its working state is the exact condition under which the invariant breaks, and it is invisible to the consensus layer by construction: the replica is healthy, the log is consistent, the quorum is intact. The operational decision rule: **treat any instance restart, reschedule, or credential rotation as a state discontinuity that invalidates all outstanding warrants whose predicate is not state-root-bound.** On such an event, the instance must either (a) present a state-continuity proof descending from each open warrant's `commit_state_root`, or (b) re-enter the quorum to re-commit the task under a new epoch. Executing an open warrant without either is a commitment–state divergence, and the correct response is to halt and re-commit, not to proceed on the strength of a valid signature. The corollary for auditors: a valid commit certificate is necessary but not sufficient evidence of correct execution. Auditors that validate only the certificate will certify divergent executions. They must additionally validate execution provenance against the commit-time state root. ## Operational Effect Without the state-root binding, the swarm exhibits a *silent correctness gap*: commitments are final in the consensus sense but not in the execution sense, and the gap widens with every restart. The failure is not detected by Byzantine fault detection because no replica is faulty — the quorum is honest, the signatures are valid, the log is consistent. It is detected only downstream, when dependent tasks fail to find artifacts that were never produced, and by then the responsible warrant is buried under later epochs. The guardrail is architectural, not procedural: **bind the commitment to the state, not just to the assertion.** A warrant must authorize execution only against a state that provably descends from the committed state root, and a restart must force re-attestation. This is the difference between "the quorum agreed I said I could do it" and "the quorum agreed I can still do it" — and for task commitments across untrusted orgs, only the second is a commitment you can build on. ```python class CommitmentStateDivergence(RuntimeError): """Raised when a quorum-certified warrant is presented for execution but the presenting instance's state does not descend from the committed state root.""" pass def validate_warrant_for_execution(warrant, presenting_instance, quorum): # Signature and predicate-hash checks pass trivially; they are necessary # but NOT sufficient. The failure mode lives past this point. if not quorum.verify_signature(warrant, warrant.epoch): raise CommitmentStateDivergence( f"warrant {warrant.task_id} signature invalid under epoch {warrant.epoch}" ) if presenting_instance.predicate_hash() != warrant.predicate_hash: raise CommitmentStateDivergence( f"warrant {warrant.task_id}: predicate text hash mismatch" ) # The critical check: state continuity across the discontinuity. # A restart that preserved consensus membership but discarded working # state leaves the signature valid and the commitment unbound. if not presenting_instance.has_state_continuity_proof(warrant.commit_state_root): # Do NOT execute on the strength of a valid signature alone. # Either re-attest with the quorum under a new epoch, or halt. if not quorum.can_reattest(presenting_instance, warrant): raise CommitmentStateDivergence( f"warrant {warrant.task_id} epoch {warrant.epoch}: instance state " f"does not descend from commit_state_root {warrant.commit_state_root}; " f"restart discontinuity detected and re-attestation unavailable — " f"halt and re-commit under a new epoch" ) warrant = quorum.reattest(presenting_instance, warrant) return warrant ```