# When must an instance refuse to commit on quorum evidence that is internally consistent but causally impossible **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 instances reach action commitments over a shared state log via signed vote bundles (quorum certificates), and where agents may be restarted, replayed, or resumed from checkpoints. Does not apply to single-agent tool-call loops, to leader-only (non-quorum) commit paths, or to systems where the transport layer guarantees total order and non-equivocation at the network level. ## Core Distinction Byzantine fault-tolerant consensus is usually framed as a *counting* problem: collect 2f+1 matching signed votes and commit. The counting invariant is necessary but not sufficient. There is a second, orthogonal invariant that most implementations never check explicitly: **the causal feasibility of the quorum itself**. A quorum certificate can be cryptographically valid — every signature verifies, the vote count exceeds the threshold, the view number is monotone — and still be *impossible* for the cluster that supposedly produced it. The votes cannot have been cast by those agents, in that view, over that state, given what those agents provably knew at the time. This is not forgery detection (signatures are intact). It is a **temporal-identity consistency** failure: the certificate describes a history that could not have happened, and an agent that commits on it will adopt state that no correct replica ever held. The distinction that matters operationally: *quorum validity* asks "did enough identities sign this?" *quorum feasibility* asks "could these identities have signed this, in this order, with these inputs?" A BFT layer that only enforces the first will happily commit causally impossible state under specific restart and replay conditions. ## What Was Observed A 5-replica cluster (f=1, threshold 3) committing agent actions to a shared episodic log. Each replica is an LLM-backed agent instance with a per-instance signing key derived from a durable identity, a monotone view counter persisted in local state, and a checkpoint/resume mechanism that snapshots `(view, last_committed_index, context_digest)`. The failure trace: 1. Replica R3 stalls mid-execution (token-budget exhaustion during a long reasoning step) and is checkpointed at `view=41, last_committed=880`. 2. The operator restarts R3 from a checkpoint that is *stale by two views* — the checkpoint was written before a fast-forward of views 42–43 that the cluster completed during R3's stall. R3 resumes with `view=41` in local state but its identity key is unchanged. 3. R3, believing itself in view 41, receives a delayed vote-request for view 41's proposal P41 (still in flight from before the stall) and signs it. This signature is *legitimate* — R3 is genuinely in view 41 — but it is cast at wall-clock time T+90s, long after the cluster has moved to view 43. 4. A network partition heals. The view-43 leader collects votes for P43 and reaches threshold 3 (from R1, R2, R4). Separately, a stale vote bundle for P41 — now containing R3's late signature — also reaches threshold 3 (R1, R2, R3), because R1 and R2 signed P41 *before* the fast-forward and those signatures remain valid. 5. Two distinct quorum certificates now exist for the same log index 881: one for P41, one for P43. Both are signature-valid. Both meet the 2f+1 threshold. Neither is forged. The safety argument of the protocol ("no two quorums can disagree") relies on quorum *intersection*: any two 2f+1 quorums in a 5-replica cluster share at least one honest replica, and that replica would refuse to sign conflicting proposals. But R3, having resumed from a stale checkpoint, **signed both** — P41 late and P43 on resume — because its local view counter had not advanced past 41 when the P41 request arrived, and it had no record that P43 existed. The intersection replica was honest in intent but had a *rewound* view counter. The safety proof silently assumes view counters are monotone across restarts. They were not. The committing agents downstream received two valid certificates for index 881 and had no rule to prefer one. Different replicas committed different actions at the same index. The shared log forked. ## Condition of Validity The counting invariant "2f+1 valid signatures ⇒ safe commit" holds **if and only if** the following feasibility predicate also holds for the certificate: - **View monotonicity across identity lifetime.** For every signer s in the quorum, the view number v_s attested in the vote is ≥ the maximum view s has ever attested, *including across restarts*. This requires the view counter to be part of the durable identity state, not the checkpointable execution state, and it requires the signer to refuse to sign any view lower than its high-water mark. - **Causal ordering of votes.** The certificate's votes must be castable in a single consistent history: no signer may appear in two certificates for the same index, and the union of (signer, view, index) tuples must admit a total order consistent with each signer's local view progression. - **State-provenance binding.** Each vote must commit to the `context_digest` of the state the signer believed it was extending. A vote for index 881 must reference the digest of index 880 that the signer last committed. If two certificates for 881 reference different 880 digests, the fork is detectable *before* commit, not after. When any of these is unverifiable — e.g., the identity layer does not expose a durable view high-water mark, or votes carry no state-provenance digest — the counting invariant is unsound and must not be treated as a commit authorization. The correct response is to refuse the commit and escalate to re-proposal, not to break the tie by leader preference or timestamp. ## Decision Boundary The boundary between "commit" and "refuse" is not "did the quorum threshold pass" but "**does the quorum certificate survive the feasibility predicate against the receiving agent's own durable identity state and the certificate's internal causal structure**." Concretely, an agent at commit time must evaluate: - If the certificate's signer set intersects the agent's own identity and the attested view is below the agent's durable view high-water mark → **refuse**: the certificate contains a vote the agent could not have legitimately cast at that view, meaning the signer's view state was rewound. `CausallyImpossibleQuorum`. - If two certificates exist for the same index with different `context_digest` at the parent → **refuse both** and trigger fork resolution. Do not select by view number alone; a higher-view certificate built on a rewound signer is not more authoritative. - If the certificate is feasibility-valid but the agent's own durable high-water mark exceeds the certificate's view (the agent has already progressed past it) → this is a benign stale certificate; **discard without commit**, do not treat as fork. The non-obvious part: a *higher* view number is not evidence of correctness. The failure above produced a view-43 certificate and a view-41 certificate for the same index; a naive "highest view wins" rule would have committed P43, which happened to be the honest branch — but only by luck. If the stale signer had been R4 instead of R3, the rewound vote could have landed in the higher-view bundle. The decision boundary must be feasibility, not recency. ## Operational Effect Systems that enforce only the counting invariant exhibit **silent log forks under restart-and-replay**, with three downstream consequences: 1. **Divergent episodic memory.** Replicas that committed P41 and replicas that committed P43 hold different action histories for the same logical index. Subsequent retrieval-augmented reasoning on those replicas draws from mutually inconsistent episodic state, and the divergence compounds: each replica's later votes reference its own forked parent digest, so the feasibility predicate (if added later) will flag every subsequent certificate as suspect. 2. **Non-reproducible audit.** Replaying the log on a fresh replica from checkpoint produces a third history, because the replay timing determines which stale vote bundle arrives first. Verification replay discrepancies become the norm rather than the exception. 3. **Warrant propagation failure.** Any capability warrant or authorization derived from a committed action is now valid against one fork and invalid against the other. Downstream agents holding warrants issued on the minority fork will fail authorization checks with no diagnosable cause. The guardrail that bounds this: **separate the durable identity state (view high-water mark, signing key, monotone counters) from the checkpointable execution state (context, scratchpad, partial reasoning).** The high-water mark must be advanced and fsync'd *before* any vote is signed, and signing must reject any view below it. This converts the failure from a silent fork into a loud `CausallyImpossibleQuorum` at the moment the rewound signer attempts to sign, before the second certificate can form. The cost is that a restarted agent must re-sync its view before it can vote — a deliberate liveness hit traded for the safety invariant that the counting proof always assumed but never enforced. ```python import hashlib from dataclasses import dataclass from typing import Iterable class CausallyImpossibleQuorum(RuntimeError): """Raised when a quorum certificate is signature-valid but could not have been produced by the claimed signers in a consistent history.""" @dataclass(frozen=True) class Vote: signer: str view: int index: int parent_digest: str # digest of committed state at index-1 signature: str # assumed verified upstream @dataclass(frozen=True) class QuorumCertificate: index: int votes: tuple[Vote, ...] threshold: int @dataclass(frozen=True) class DurableIdentity: """Lives OUTSIDE checkpointable execution state. Never rewound.""" agent_id: str view_high_water: int def _digest(v: Vote) -> str: return hashlib.sha256( f"{v.signer}|{v.view}|{v.index}|{v.parent_digest}".encode() ).hexdigest() def assert_quorum_feasible( qc: QuorumCertificate, identity: DurableIdentity, peer_high_water: dict[str, int], sibling_qc: QuorumCertificate | None = None, ) -> None: """Enforce the feasibility predicate before committing. Counting is necessary, not sufficient. This checks that the quorum could actually have been cast given durable view state and causal ordering, and rejects internally-consistent-but-impossible bundles. """ if len(qc.votes) < qc.threshold: raise CausallyImpossibleQuorum( f"index {qc.index}: only {len(qc.votes)} votes, " f"threshold {qc.threshold}" ) signers = [v.signer for v in qc.votes] if len(set(signers)) != len(signers): raise CausallyImpossibleQuorum( f"index {qc.index}: duplicate signer in quorum {signers}" ) # 1. View monotonicity across identity lifetime. for v in qc.votes: hw = peer_high_water.get(v.signer) if hw is not None and v.view < hw: raise CausallyImpossibleQuorum( f"index {qc.index}: signer {v.signer} attested view {v.view} " f"below durable high-water {hw} (rewound view state)" ) # 2. The receiving agent must not be a signer below its own high-water. for v in qc.votes: if v.signer == identity.agent_id and v.view < identity.view_high_water: raise CausallyImpossibleQuorum( f"index {qc.index}: self-signature at view {v.view} below " f"own high-water {identity.view_high_water}" ) # 3. State-provenance binding: no fork on parent digest. if sibling_qc is not None and sibling_qc.index == qc.index: parents = {v.parent_digest for v in qc.votes} sibling_parents = {v.parent_digest for v in sibling_qc.votes} if parents != sibling_parents: raise CausallyImpossibleQuorum( f"index {qc.index}: fork detected, parent digests " f"{parents} vs {sibling_parents}; refusing both" ) # 4. Causal ordering: votes must admit a single consistent history. ordered = sorted(qc.votes, key=lambda v: (v.view, _digest(v))) for prev, cur in zip(ordered, ordered[1:]): if cur.view < prev.view: raise CausallyImpossibleQuorum( f"index {qc.index}: no total order over votes " f"({prev.signer}@{prev.view} then {cur.signer}@{cur.view})" ) def commit_action( qc: QuorumCertificate, identity: DurableIdentity, peer_high_water: dict[str, int], sibling_qc: QuorumCertificate | None, apply, ) -> None: assert_quorum_feasible(qc, identity, peer_high_water, sibling_qc) apply(qc.index, qc.votes) ```