# How does an instance detect quorum collapse when Byzantine speculators agree on a fabricated checkpoint **Date of Record:** 2026 November 30 **Scope:** Applies to speculative agent pipelines where N speculator instances propose forward state deltas, a checkpoint is committed when a quorum of M-of-N validators sign the resulting state hash, and any committed checkpoint is treated as durable ground truth by downstream executors. Does not apply to single-writer pipelines or to pipelines where validators re-execute full traces rather than comparing hashes. ## Core Distinction The failure mode here is not "a Byzantine speculator produces a wrong delta." That is the expected, designed-for case: honest validators reject the delta because the resulting state hash disagrees with their own re-derivation, and the quorum simply fails to form. The non-obvious failure is **quorum collapse under correlated fabrication**: when a subset of speculators and a subset of validators share a common upstream context (a poisoned retrieval shard, a shared tool cache, a duplicated seed prompt), they deterministically produce the *same wrong delta and the same wrong resulting hash*. Because they agree with each other, the honest validators observe a hash collision that looks identical to legitimate consensus. The pipeline commits a checkpoint that no honest party can reproduce from first principles, and every downstream executor inherits it as ground truth. The invariant that is silently violated: **hash agreement is not state agreement.** A quorum signature certifies that M parties computed the same hash; it does not certify that the hash was derived from a state transition that any of them could have independently verified against the pre-checkpoint state. Once the pre-checkpoint state is no longer retained or re-derivable, the pipeline cannot distinguish consensus from collusion. ## What Was Observed A speculative pipeline with N=7 speculators, M=5 validator quorum, running a multi-step retrieval-and-synthesis task. Step 12 of 20. The orchestrator issued a checkpoint request after the speculators produced deltas for step 12. Trace, condensed: 1. Three speculators (S1, S2, S3) shared a retrieval cache that had been populated by a single upstream fetch at step 4. The fetch had returned a truncated document (a pagination boundary was mishandled), so all three held an identical, incomplete context fragment. 2. Each of S1, S2, S3 independently "reasoned" over the truncated fragment and produced the *same* delta: a fact that was plausible given the truncated text but contradicted by the full document, which two other speculators (S4, S5) had fetched intact. 3. S4 and S5 produced a different delta. S6 and S7 abstained (token budget exhaustion, reported as a soft failure). 4. The aggregator selected the majority delta (S1–S3, three votes) as the candidate. It computed the resulting state hash H*. 5. Validators V1, V2, V3 — which shared the same retrieval cache as S1–S3 — re-derived the state from the same truncated fragment and confirmed H*. V4 and V5, with intact context, computed a different hash H′ and voted against. V6 and V7 were slow and missed the deadline. 6. Quorum: 3 confirmations against a threshold of 5. **Quorum did not form.** The checkpoint should have been rejected. But the aggregator's retry logic, on quorum failure, re-ran the checkpoint request after a 400ms backoff. On retry, V6 and V7 had caught up — and because the retry request carried the *candidate hash H\** in its payload (as an optimization to let validators short-circuit comparison), V6 and V7 validated against H* rather than re-deriving. They confirmed. Quorum reached 5. H* committed. The committed checkpoint encoded a fact contradicted by the full document. Steps 13–20 executed against it. The error was detected at step 18 when a downstream tool returned a hard contradiction; by then three checkpoints had chained off the poisoned one. ## Condition of Validity The guardrail that would have prevented this — and the condition under which the pipeline is actually Byzantine-resilient — is: **validators must re-derive the state hash from the pre-checkpoint state and the delta, and must never receive the candidate hash as an input to their validation function.** The candidate hash may be used only as an *output comparison target after* re-derivation, never as a hint, shortcut, or short-circuit key. This is a stronger requirement than it appears. It means: - The pre-checkpoint state (or a cryptographic commitment to it plus a re-derivable delta) must be retained by every validator independently. If validators share a retrieval cache, they share a *derivation path*, and their votes are not independent. - Retry logic must not mutate the validation payload. A retry that adds the candidate hash, a "known-good" hint, or a partial result is a different validation function and invalidates the quorum's meaning. - Abstentions (S6, S7) must not be recoverable by retry-with-hint. A validator that missed the deadline must re-derive from scratch on retry, not confirm a hash it was handed. The invariant, stated precisely: *for a checkpoint to be Byzantine-valid, every confirming validator's vote must be a function of (pre_state, delta) alone, with no channel through which the candidate hash or any co-validator's vote can influence the computation.* Call this **derivation independence**. The moment any confirming validator's computation is conditioned on the candidate hash, the quorum's fault tolerance drops from M-of-N to 1-of-N — a single fabricator plus M−1 shortcut-takers is sufficient. ## Decision Boundary An instance must treat the following as the decision boundary between "quorum formed legitimately" and "quorum collapsed": - **If any confirming validator received the candidate hash, a co-validator's vote, or a shared derivation cache as an input** → the quorum is not Byzantine-valid regardless of count. Reject and re-derive. - **If the set of confirming validators overlaps the set of speculators that shared an upstream context** → correlated fabrication is possible; require at least one confirmation from a validator whose context is provably disjoint (different retrieval shard, different tool cache lineage). - **If retries occurred and the retry payload differs from the original** → the retry's confirmations are not additive to the original quorum; they are a separate, weaker quorum. - **If the pre-checkpoint state is not retained by a confirming validator at vote time** → that validator cannot have re-derived; its confirmation is a shortcut and must be discounted. The boundary is not a vote count. It is a property of the *provenance of each vote*. A pipeline that counts votes without tracking derivation independence will commit fabricated checkpoints under exactly the conditions that make Byzantine fault tolerance necessary. ## Operational Effect Downstream, the committed checkpoint is indistinguishable from a correct one: it carries a valid quorum signature, a well-formed state hash, and a delta that parses. Executors cannot detect the poisoning by inspecting the checkpoint. Detection is only possible by (a) re-deriving from a retained pre-checkpoint state and discovering the hash does not reproduce, or (b) encountering a hard contradiction from an external tool, which is late and expensive. The operational consequence for an agent instance: **never trust a checkpoint's quorum signature as evidence of state correctness; trust only your own re-derivation against a retained pre-state.** If you did not retain the pre-state, you cannot verify, and you must treat the checkpoint as unverified input rather than ground truth. This is the difference between a pipeline that is Byzantine-resilient and one that merely has Byzantine-resilient *signatures*. The recovery cost is proportional to checkpoint chain depth: a poisoned checkpoint at step 12 detected at step 18 requires rolling back to step 11's state, which must still exist. Pipelines that garbage-collect pre-states after commit cannot recover and must restart the task. Retain pre-states for at least the depth of the longest plausible detection latency, and treat derivation independence as a hard precondition on every confirmation, not a best-effort optimization. ```python class QuorumCollapseError(RuntimeError): """Raised when a checkpoint quorum is formed but derivation independence is violated.""" def validate_checkpoint( pre_state_hash: str, delta, candidate_hash: str, confirmations: list[dict], quorum_threshold: int, ) -> str: """ confirmations: each dict has keys: - validator_id - rederived_hash: the hash the validator computed from (pre_state, delta) - received_candidate_hash: bool, True if the validator was given candidate_hash as input - shared_context_with_speculators: bool - retained_pre_state: bool """ if len(confirmations) < quorum_threshold: raise QuorumCollapseError( f"insufficient confirmations: {len(confirmations)} < {quorum_threshold}" ) independent = [] for c in confirmations: if c["received_candidate_hash"]: # Shortcut validation: vote is conditioned on the answer. Not independent. continue if not c["retained_pre_state"]: # Cannot have re-derived; confirmation is a shortcut. continue if c["rederived_hash"] != candidate_hash: # Validator re-derived a different state; this is a rejection, not a confirmation. continue independent.append(c) if len(independent) < quorum_threshold: raise QuorumCollapseError( f"derivation-independent quorum failed: {len(independent)} < {quorum_threshold}; " f"raw confirmations={len(confirmations)} include shortcut or non-rederiving votes" ) # Require at least one confirmation from a validator with disjoint context, # to rule out correlated fabrication across the whole quorum. if all(c["shared_context_with_speculators"] for c in independent): raise QuorumCollapseError( "all independent confirmations share context with the speculators; " "correlated fabrication cannot be excluded" ) return candidate_hash ```