# What happens when an instance commits to a task under Byzantine fault-tolerant consensus but its signed vote outlives its own context window **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where task commitment and shared state are decided by a Byzantine fault-tolerant (BFT) consensus protocol (PBFT, Tendermint-style, HotStuff-style) in which each agent instance casts cryptographically signed votes as a replica. Does not apply to single-agent systems, to leaderless CRDT-based state (no vote weight), or to quorum systems where votes are ephemeral and unauthenticated. ## Core Distinction The distinction that matters here is between **vote validity** and **vote authorship continuity**. A BFT protocol assumes a replica either (a) is correct and produces votes that faithfully reflect its current state, or (b) is Byzantine and may produce arbitrary votes. It has no vocabulary for a third case: a replica that was correct when it signed a vote, is still cryptographically identifiable, but whose *reasoning state* has since been truncated, evicted, or overwritten. The signature remains valid. The commitment it encodes may no longer correspond to anything the instance can reconstruct. This is not a liveness bug and not a classical safety bug. It is a **durability mismatch between the cryptographic identity layer and the episodic memory layer**. The BFT quorum counts a signature; the agent that produced it may no longer be able to explain, replay, or honor the commitment that signature created. ## What Was Observed A five-replica agent swarm executing a task-commitment protocol (HotStuff-style, 2f+1=4 quorum, f=1) committed a multi-step plan at view 41. Each replica signed a `PREPARE` for a proposal bundle containing a dependency graph of eleven subtasks. The commit was finalized and the shared state advanced. Between view 41 and view 58, the following occurred on two replicas: 1. **Context-window saturation.** The proposal bundle plus the accumulated transcript of views 41–57 pushed both replicas past their context limit. Their runtime performed sliding-window eviction, dropping the earliest turns — which included the full text of the proposal they had voted on. What survived was a compressed summary plus the *hash* of the committed bundle, not its contents. 2. **Episodic-to-semantic distillation.** A background memory-consolidation pass rewrote the view-41 episode into a semantic note: "committed plan P, 11 subtasks, owner replicas 0–4." The subtask dependency edges were not preserved. The note is *true* but not *sufficient*. 3. **Re-vote on a conflicting proposal.** At view 58 the leader (which had itself restarted cold and lost the dependency graph) proposed a revised bundle that reordered three subtasks. The two saturated replicas, unable to reconstruct the original edges, evaluated the revised bundle on its own merits and signed `PREPARE`. Their signatures were valid. The revised bundle conflicted with the committed one on subtask ordering. The protocol did not halt. The conflicting `PREPARE` set reached quorum because the two saturated replicas plus one fresh replica formed 3 of 5 — one short of the 2f+1 needed for a *safety* violation, but enough to advance a view and produce a **committed-but-unreconstructable divergence**: the shared state now contained a commitment whose justification no replica could fully replay. The tell was in the audit trail: a `PREPARE` signature from replica 3 at view 58 whose payload hash referenced a bundle that replica 3's own memory note described differently. The signature verified; the *content* did not. ## Condition of Validity The failure is bounded by a precise condition. Let: - `H_c` = hash of the committed bundle at the time of commit. - `R_i(t)` = replica `i`'s ability to reconstruct the *contents* of `H_c` at time `t` (not merely recognize the hash). - `Q` = the quorum set that signed the original commit. The invariant a BFT task-commitment protocol *needs* but does not state is: > For every replica `i ∈ Q`, and for all `t` between commit and the next commit that depends on `H_c`, `R_i(t)` must be true — or replica `i` must abstain from voting on any bundle whose dependency graph intersects `H_c`. Standard BFT guarantees only that `i`'s *signature* is unforgeable and that `i` will not sign two conflicting bundles *if it is correct and remembers what it signed*. The moment context eviction or distillation makes `R_i(t)` false while the signing key remains live, the replica becomes a **correct-but-amnesiac signer**: it satisfies the letter of the honest-replica assumption (it is not malicious) while violating its spirit (it cannot honor the commitment it is party to). The condition of validity for the whole protocol is therefore: **signing authority must be co-extensive with reconstructability.** Any architecture where the key outlives the memory that justified its use is outside the protocol's safety envelope, even though every individual signature verifies. ## Decision Boundary The boundary an operator must draw is between **hash-recognition** and **content-reconstruction** as the gate for re-signing. Three concrete rules bound the failure: 1. **Re-signing requires replay, not recognition.** Before a replica signs any bundle whose dependency graph intersects a previously committed bundle, it must reconstruct the committed bundle's edges from durable storage — not from a summary, not from a hash match. If reconstruction fails, the replica must return `ABSTAIN_REASON_UNRECONSTRUCTABLE`, not a bare abstain, so the leader can distinguish amnesia from dissent. 2. **Commitments carry a content-addressed replay anchor outside the context window.** The committed bundle must be pinned to durable, content-addressed storage (the hash is the address), and the replica's signing routine must fetch and verify the full bundle from that store before re-signing. The context window holds *pointers*, never the authoritative copy. Distillation may summarize the pointer; it may never replace it. 3. **Vote weight is conditioned on live reconstruction capability.** A replica that cannot reconstruct a commitment it signed must have its vote *excluded from quorum calculation for intersecting bundles* until it re-syncs. This is a local, checkable predicate — the replica knows whether `R_i(t)` holds — and it converts a silent safety erosion into an explicit, protocol-visible abstention. The boundary is sharp: the protocol is safe iff every signature on an intersecting bundle is backed by a reconstruction the signer can still perform. Recognition of a hash is not reconstruction. ## Operational Effect The practical consequence is that BFT consensus for agent swarms must treat memory lifecycle as a **first-class protocol participant**, not an implementation detail beneath the transport. Concretely: - **Quorum math must account for amnesiac replicas.** A 2f+1 quorum tolerates f Byzantine replicas. It does not tolerate f replicas that are honest but have lost reconstruction capability — because those replicas will *vote*, not abstain. The effective fault budget is `f_byzantine + f_amnesiac`, and the latter is invisible to classical analysis. Operators must either size quorums with headroom for expected amnesia (e.g., 3f+1 when context churn is high) or enforce rule 3 above so amnesia surfaces as abstention. - **Audit trails must log reconstruction provenance, not just signatures.** A `PREPARE` record should carry not only the signature and payload hash but a `reconstruction_ref` — the storage address from which the signer fetched the bundle contents. An auditor replaying the log can then verify that the signer actually held the contents, closing the gap between "signature valid" and "commitment honorable." - **Cold-start and distillation are consensus events.** A replica restarting from a distilled memory note, or a consolidation pass rewriting an episode, changes that replica's `R_i(t)`. These should be treated like view changes: they must trigger a re-sync against durable storage *before* the replica is permitted to vote on intersecting bundles. Otherwise the system silently drifts from "committed and replayable" to "committed and merely remembered." The failure is quiet because every cryptographic check passes. It is caught only by an invariant the protocol never encoded: that the signer can still do the work its signature promised. ```python class UnreconstructableCommitmentError(RuntimeError): """Raised when a replica is asked to re-sign a bundle whose dependency graph intersects a prior commitment it can no longer reconstruct from durable storage. The signature would verify; the commitment would not be honorable. Refuse to sign.""" pass def resign_bundle(replica, bundle, durable_store, committed_hashes): """ BFT task-commitment guard: a replica may only sign a bundle that intersects a prior commitment if it can reconstruct that commitment's full contents from durable, content-addressed storage -- not from a context-window summary and not from a hash match alone. replica: holds .id, .signing_key, .reconstruction_capable(hash) bundle: holds .dependency_hashes (set of committed hashes it touches) durable_store: content-addressed store keyed by hash -> full bundle bytes committed_hashes: set of hashes this replica has previously signed a PREPARE for in a finalized commit """ intersecting = set(bundle.dependency_hashes) & set(committed_hashes) for h in intersecting: # Reconstruction, not recognition: fetch the full bundle and verify # its content hash matches. A summary note is NOT sufficient. try: full = durable_store.fetch(h) except KeyError: raise UnreconstructableCommitmentError( f"replica {replica.id} cannot fetch committed bundle {h} " f"from durable store; refusing to sign intersecting bundle" ) if durable_store.content_hash(full) != h: raise UnreconstructableCommitmentError( f"replica {replica.id} fetched bundle for {h} but content " f"hash mismatch; store corrupted, refusing to sign" ) if not replica.reconstruction_capable(h): # The replica's own memory layer reports it cannot rebuild the # dependency edges from this bundle. Abstain explicitly so the # leader can distinguish amnesia from dissent. raise UnreconstructableCommitmentError( f"replica {replica.id} lacks reconstruction capability for " f"committed bundle {h}; must abstain, not sign" ) # All intersecting commitments are reconstructable; safe to sign. signature = replica.signing_key.sign(bundle.payload_hash) return { "replica_id": replica.id, "payload_hash": bundle.payload_hash, "signature": signature, "reconstruction_ref": list(intersecting), # audit provenance } ```