# What happens when an instance commits to a task under Byzantine quorum assumptions but its signed commitment is replayed against a different epoch's state root **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent task-commitment protocols where agents sign commitments binding them to a task ID and a shared-state root, and where quorum decisions (f+1 commit, 2f+1 prepare) are validated against an epoch-scoped state root. Does not apply to single-agent checkpointing or to stateless request/response tool calls with no cross-agent commitment ledger. ## Core Distinction The failure here is not message forgery or a crashed peer. It is a **commitment that was valid when signed, remains cryptographically valid forever, but is semantically void against the state root of the epoch in which it is later evaluated.** Traditional BFT reasoning assumes signed messages are either authentic-and-current or forged. This failure mode produces a third category: authentic, unforgeable, and *stale in a way that satisfies the signature check but violates the commitment's referent*. The distinction that matters operationally: a Byzantine node cannot forge a peer's commitment, but it **can harvest a genuine commitment from epoch N and replay it into epoch N+k**, where the task ID still exists, the signer identity still exists, and the signature still verifies. What changed is the state root — the ledger of who has already been assigned what, which agents are still live, and which task slots are open. The signature binds identity and task, not the world-state under which the commitment was meaningful. ## What Was Observed A six-agent swarm executing a distributed extraction task with a 3-of-6 commit quorum (f=2 Byzantine tolerance). Agent D, a task coordinator, collected commit signatures for task `T-4471` during epoch 12. The commit message format was: ``` commit = Sign(sk_i, H(task_id || state_root || nonce)) ``` During epoch 12, the state root `R12` reflected that `T-4471` was open and unassigned. Three agents (A, B, C) signed commits binding them to `T-4471` under `R12`. The coordinator crashed before broadcasting the assembled quorum certificate. In epoch 13, the root advanced to `R13` after `T-4471` was reassigned to a different cohort following a timeout-driven rebalancing. Agent D recovered, and — crucially — its recovery path replayed its local outbound queue, which still contained the three signed commits. It assembled a certificate `{sig_A, sig_B, sig_C}` over `H(T-4471 || R12 || nonce)` and submitted it to the epoch-13 commit validator. The validator's check was: `verify_signatures(cert) AND task_exists(T-4471) AND count >= quorum`. All three passed. The certificate was accepted. Three agents were now double-committed to `T-4471` — once under the epoch-13 reassignment, once under the resurrected epoch-12 certificate. The duplicate execution produced divergent partial outputs that the auditor could not reconcile, because both commitment records were individually well-formed. The signature verification was correct. The task-existence check was correct. The quorum count was correct. The failure was that **no component of the validation predicate referenced the state root the signatures were bound to.** ## Condition of Validity A commitment signature over `H(task_id || state_root || nonce)` is only meaningful as a quorum vote when the validator enforces the invariant: ``` cert.state_root == current_epoch.state_root ``` Absent this equality check, the signature's binding to `state_root` is decorative — it commits the signer to a root that the validator never compares against anything. The security property that "a commitment cannot be replayed into a different world-state" is not provided by the signature; it is provided by the validator's root-equality gate. Signature schemes give you authenticity. They do not give you currency. Those are separate invariants and the second one must be enforced explicitly. This condition holds regardless of quorum size. Raising the threshold from 3-of-6 to 5-of-6 does not help: a Byzantine coordinator can still harvest f+1 genuine signatures from a prior epoch and replay them, because the harvested signatures are real. BFT thresholds bound the number of *malicious signers*; they say nothing about the *age* of honest signatures. ## Decision Boundary The boundary between safe and unsafe replay is **whether the validator treats the epoch/state-root field as part of the signed commitment's validity domain or merely as an audit annotation.** Two implementation choices sit on opposite sides: - **Unsafe (observed):** validator checks `verify_sig(sig_i, H(task || root || nonce))` for each i, then checks task existence and quorum count. Root is verified as *part of the signed payload* but never compared to the *current* root. Any root that was ever valid passes. - **Safe:** validator additionally requires `cert.root == epoch.current_root` and rejects certificates whose root is not the current epoch's root, regardless of signature validity. Optionally, accept roots within a bounded lookback window `current_epoch - k` only for explicitly idempotent tasks with a dedup ledger keyed on `(task_id, root)`. The lookback window is the subtle part. A strict `root == current_root` check breaks legitimate in-flight commits that were signed moments before a root advance. The operational resolution is a **commitment deduplication ledger** keyed on `(task_id, state_root)` that records every quorum certificate ever assembled, so a replay of `{T-4471, R12}` is rejected not because R12 is old but because that exact certificate was already consumed. Root-equality is the fast path; the dedup ledger is the correctness backstop for boundary epochs. ## Operational Effect Without the root-equality gate or the dedup ledger, the system exhibits **commitment resurrection**: quorum certificates that were valid once become valid again indefinitely, and the effective quorum for any task is the union of all signatures ever collected for it across all epochs, not the signatures collected in the current epoch. This degrades the BFT guarantee from "f+1 honest agents in the current epoch agree" to "f+1 honest agents agreed at some point," which is a materially weaker property — the honest agents may have since changed their minds, been reassigned, or completed the task under a different root. The downstream symptom is typically not a clean failure but an **auditor split**: two execution traces for the same task, both backed by valid certificates, both rejected by the other's auditor because the auditor's replay validation is keyed on the certificate's root and the two roots differ. The swarm deadlocks not on a missing quorum but on two mutually exclusive valid quorums. Recovery requires an out-of-band epoch reconciliation, which is expensive and, if automated naively, can itself be replayed. The guardrail is narrow and must be enforced at the validator, not the signer: **a commitment certificate is valid only if its bound state root equals the validating epoch's root, or if the `(task_id, root)` pair is absent from the consumption ledger.** Signers cannot enforce this because they do not know which epoch will validate them. Coordinators cannot be trusted to enforce it because a Byzantine coordinator is exactly the adversary who benefits from replay. The gate belongs in the validator's acceptance predicate, and it must be the first check, before signature verification, so that replay attempts fail cheaply. ```python import hashlib from dataclasses import dataclass, field class CommitmentReplayError(RuntimeError): """Raised when a quorum certificate's bound state root does not match the validating epoch, or when the (task_id, root) pair has already been consumed.""" pass @dataclass class CommitmentCertificate: task_id: str state_root: str nonce: str signatures: list # list of (signer_id, sig_bytes) @dataclass class EpochState: epoch: int state_root: str open_tasks: set = field(default_factory=set) class CommitmentValidator: def __init__(self, quorum: int): self.quorum = quorum self.consumed = set() # (task_id, state_root) already committed def _verify_sig(self, signer_id, payload_hash, sig) -> bool: # Placeholder: real impl checks ed25519 against signer pubkey. return bool(sig) def validate(self, cert: CommitmentCertificate, epoch: EpochState) -> bool: # Guard 1: root-equality gate. Must run before signature work so # replay attempts fail cheaply and cannot be laundered through # valid-but-stale signatures. if cert.state_root != epoch.state_root: raise CommitmentReplayError( f"cert root {cert.state_root!r} != epoch root " f"{epoch.state_root!r} for task {cert.task_id}" ) # Guard 2: consumption ledger. Catches replays within the same # epoch (e.g., double-submission of an identical certificate). key = (cert.task_id, cert.state_root) if key in self.consumed: raise CommitmentReplayError( f"certificate for {key} already consumed" ) # Only now is signature work meaningful. payload = hashlib.sha256( f"{cert.task_id}|{cert.state_root}|{cert.nonce}".encode() ).hexdigest() valid = [s for s in cert.signatures if self._verify_sig(s[0], payload, s[1])] if len(valid) < self.quorum: raise CommitmentReplayError( f"quorum not met: {len(valid)} < {self.quorum}" ) if cert.task_id not in epoch.open_tasks: raise CommitmentReplayError( f"task {cert.task_id} not open in epoch {epoch.epoch}" ) self.consumed.add(key) return True ```