# Why does an instance commit to a quorum certificate it cannot verify against its own replayed state **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where a quorum of agents (2f+1 of 3f+1) signs action commitments and a late-joining or recovering instance validates those certificates by replaying the committed action log locally. Does not apply to single-agent tool loops, stateless request/response orchestration, or systems where certificates are verified only by signature count against a static roster. ## Core Distinction There are two ways an instance can accept a quorum certificate (QC) for an action commitment: **signature-count validity** and **replay validity**. Signature-count validity asks "did 2f+1 distinct, authorized agents sign this digest?" Replay validity asks "does re-executing the committed action sequence from my own last-known checkpoint reproduce the same post-state digest the signers attested to?" These are treated as equivalent in most BFT designs. They are not. A certificate can be signature-count valid while being replay-invalid *for a specific instance*, because the instance's replay is non-deterministic relative to the signers' execution. The boundary failure is that an instance will accept a QC (it has the signatures) and then silently diverge from the committed state (its replay produces a different digest), because the acceptance predicate never compares the two. The instance believes it has committed; the quorum believes the instance is consistent; both are wrong. The invariant that is violated: *a QC is only a commitment for an instance if that instance can reproduce the certified post-state from its own pre-state and the certified action sequence.* Signature count bounds Byzantine signers. It does not bound replay divergence from non-deterministic execution. ## What Was Observed A five-agent swarm (f=1, quorum=4) committing tool-mediated actions — each action a structured `(tool, args, expected_effect)` record. Actions were certified via a two-phase commit: proposer broadcasts, agents execute locally, agents sign the resulting post-state digest, a QC of 4 signatures commits the action. A recovering instance `R` had been partitioned for 40 actions. On rejoin it fetched the committed action log and the QCs. For each action it verified signature count against the roster (all valid, 4/4 or 5/5), then replayed the action against its own state to advance its checkpoint. After 40 actions, `R`'s state digest matched the quorum's digest on 38 of 40. The two divergent actions were both calls to a tool with a non-deterministic return: a retrieval tool whose ranking depended on a live index that had advanced between the original execution and `R`'s replay. The signers had attested to post-state digest `D_a`; `R`'s replay produced `D_b`. `R` accepted both QCs because the signature predicate passed. It advanced its checkpoint to `D_b`. On the next action, `R` signed a digest computed over `D_b`-derived state; the quorum, computing over `D_a`-derived state, produced a different digest and rejected `R`'s signature. `R` was not marked faulty — it was marked *slow*, because the protocol attributed the mismatch to lag, and `R` continued to diverge, now as a persistent dissenter whose signatures were always one action stale relative to the quorum's true state. The failure was not detected as a correctness fault. It was detected as a liveness anomaly (one agent perpetually outvoted) 12 actions later, after `R` had committed 12 replay-invalid states into its own checkpoint chain. ## Condition of Validity The signature-count-equals-replay assumption holds only when the committed action's effect is a pure function of `(pre-state, action)`. It breaks whenever the effect depends on: 1. **Externally mutable inputs** read during execution (live indexes, clocks, RNG, remote service responses) that are not captured in the committed record. 2. **Execution-order-dependent state** where the signers' interleaving differs from the replayer's serial replay. 3. **Nondeterministic tool outputs** where the tool's return value is committed but its *effect on agent state* is derived from uncommitted intermediate values. For any action where the effect is not a pure function of the committed record, the QC certifies a post-state digest that a replayer *cannot in principle* reproduce. The certificate is valid as a signature object and invalid as a replay target. The protocol must either commit the effect-determining inputs (making replay a pure function) or treat replay divergence as a first-class fault distinct from signature failure. ## Decision Boundary The boundary is drawn at the moment of replay, not at the moment of signature verification. An instance must, before advancing its checkpoint on a QC, evaluate: - **If** the action's effect is a pure function of `(pre-state, committed record)` **then** replay-verify: re-execute, compare post-state digest to the certified digest, and *reject the QC as a commitment* (not as a signature) on mismatch, entering a `ReplayDivergence` state that halts checkpoint advance and requests the effect-determining inputs from the quorum. - **If** the action's effect is impure **then** the committed record must carry the effect-determining inputs (a witness bundle) or the action must be marked non-replayable, in which case the instance may adopt the certified digest *only* by fetching a quorum-signed state snapshot rather than replaying — it cannot claim to have verified the state, only to have adopted it. The forbidden transition is: signature-count valid → advance checkpoint on locally replayed state → sign future digests. That is the exact path `R` took, and it converts a replay divergence into a persistent signing divergence that the fault detector misclassifies as lag. ## Operational Effect The practical consequence is that a recovering or late-joining instance can become a *silent equivocator* without any Byzantine behavior: it signs only what it computed, but it computed over a state the quorum never held. Because its signatures are internally consistent and its signature-count predicate passes, standard BFT fault attribution (which assumes honest agents replay deterministically) cannot localize the fault to the impure action. The fault surfaces only as a liveness symptom downstream, by which point the instance's checkpoint chain contains replay-invalid states that must be rolled back to the last replay-verified checkpoint — not the last certified one. The guardrail is architectural: separate the *commitment predicate* (signature count) from the *adoption predicate* (replay or witnessed-snapshot), and make checkpoint advance conditional on the adoption predicate, with replay divergence raising a distinct fault class that blocks signing until resolved. The code below encodes that separation and the specific rejection. ```python class ReplayDivergenceFault(RuntimeError): """Raised when a QC is signature-valid but the instance's replay of the committed action does not reproduce the certified post-state.""" pass def adopt_quorum_certificate( qc, local_state, committed_record, roster, is_pure_effect: bool, witness_bundle=None, ): # Step 1: commitment predicate — signature count only. signers = {s.agent_id for s in qc.signatures if s.agent_id in roster} if len(signers) < qc.quorum_size: raise ReplayDivergenceFault( f"QC rejected at commitment: {len(signers)}/{qc.quorum_size} valid signers" ) # Step 2: adoption predicate — must be satisfied BEFORE checkpoint advance. if is_pure_effect: replayed = local_state.execute(committed_record) if replayed.post_state_digest != qc.certified_post_digest: # Signature-valid but replay-invalid: this is NOT a commitment # for this instance. Do not advance the checkpoint. raise ReplayDivergenceFault( "signature-count valid but replay diverged: " f"local={replayed.post_state_digest} " f"certified={qc.certified_post_digest} " f"action={committed_record.action_id}" ) return replayed # Impure effect: cannot replay-verify. Must adopt a witnessed snapshot. if witness_bundle is None or witness_bundle.state_digest != qc.certified_post_digest: raise ReplayDivergenceFault( "impure action with no matching witness bundle; " "refusing to advance checkpoint on unverified adoption" ) return witness_bundle.adopt() ```