# What structural signals indicate verifier-gated speculative planning is about to commit on a stale consensus quorum **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent planners that emit speculative plan branches, gate branch commitment on an independent verifier's verdict, and finalize tasks only when a consensus quorum of auditor agents signs off. Does not apply to single-agent ReAct loops or to verifier-free planners where commitment is decided by the executing agent alone. ## Core Distinction There are two structurally different reasons a verifier-gated speculative planner finalizes a task: the plan was *correct*, or the plan was *agreed upon*. In a system with a consensus-backed finalization stage, these are not the same event, and the gap between them is where the failure lives. The verifier gates *commitment* (does this speculative branch get promoted into the execution trace?), while the consensus quorum gates *finalization* (does the task close?). These two gates observe different state at different times, and the quorum's view of the plan is a snapshot taken at proposal time—not at verification time. The non-obvious invariant is this: **a consensus quorum's signature is a statement about the plan it was shown, not about the plan that survived verification.** If the verifier mutates, repairs, or partially rejects a branch after the quorum has already voted, the quorum's attestation no longer covers the committed artifact. The system will finalize on a warrant that references a plan version that no longer exists. This is not a race in the usual sense—no two writes collide. It is a *version skew across two gates that each believe they are the authority on the same object*. ## What Was Observed A planner instance emitted three speculative branches for a multi-step retrieval-and-synthesis task. Branch B was proposed to the auditor quorum of five agents with a plan digest `d0`. While the quorum was collecting votes (median latency 4.1s, two auditors slow at ~11s), the verifier ran its static checks against Branch B and found a step that referenced a tool capability not present in the current MCP manifest snapshot. The verifier did not reject the branch outright; it applied a *repair*—substituting a semantically adjacent capability and re-emitting the branch as `B'` with digest `d1`, marking the original `d0` as superseded. The commitment gate honored the verifier and promoted `B'`. The finalization gate, however, was keyed on quorum attestations over `d0`. Three auditors had already signed `d0` before the repair; two signed after, but they signed the *proposal record* they had been handed, which still carried `d0` because the repair event had not been propagated to the proposal bus. The quorum threshold was 4/5. The finalization gate saw four valid signatures over `d0` and closed the task. The executed plan was `B'`. The attested plan was `d0`. The task record shows a green finalization with a warrant that does not cover the code path that actually ran. Downstream replay against the audit log diverged at step 3: the replayed plan invoked the substituted capability, the attested plan invoked the missing one. The replay verifier flagged a mismatch, but only because a separate replay job happened to run; the live system never noticed. The tell was structural, not statistical. Every signature was valid. Every threshold was met. The failure was that the *attestation domain* and the *commitment domain* had silently decoupled. ## Condition of Validity The guardrail holds only if the following condition is enforced as a hard invariant, not a convention: > **For any finalized task, the digest attested by the quorum MUST equal the digest of the plan actually committed and executed. Any post-attestation mutation of the committed plan MUST invalidate the attestations that reference the pre-mutation digest.** Three concrete requirements follow, and each is a place where real systems quietly fail: 1. **Attestations must be digest-scoped, not task-scoped.** An auditor signing "task 4471, Branch B, approved" is useless. It must sign `(task_id, plan_digest, verifier_verdict_digest)`. If the verifier's verdict itself carries a digest, the quorum is attesting to the *pair*—and a repair changes both. 2. **Repair must be a commitment event, not a silent substitution.** When the verifier repairs a branch, that is a new proposal. It must re-enter the proposal bus, invalidate prior attestations over the old digest, and require re-attestation. Treating repair as an in-place edit is the exact mechanism that produced the skew above. 3. **Finalization must re-check digest equality at close time.** The finalization gate must read the committed plan's digest *at the moment of closure* and compare it against the digest set carried by the quorum attestations. If they differ, finalization must fail closed—not warn, not log, fail. The condition is *not* valid when the verifier is purely advisory (its verdict does not gate commitment), because then there is no second mutation surface. It is also not valid when the quorum votes on a post-verification artifact by construction, because the skew cannot arise. The dangerous regime is precisely the one described in the scope: verifier gates commitment, quorum gates finalization, and the two observe the plan at different points in its lifecycle. ## Decision Boundary The operational decision is: **when the verifier mutates a branch that already has partial quorum support, do you (a) discard the partial quorum and re-propose, or (b) carry the partial quorum forward under a "semantically equivalent" assumption?** Option (b) is the tempting one and it is wrong for a specific reason: the verifier's repair is a *semantic* judgment ("this capability is adjacent"), while the quorum's attestation is a *structural* commitment ("I approve this exact artifact"). Carrying votes forward conflates the two and produces exactly the digest skew above. The boundary is sharp: **any change to the plan digest resets the quorum count to zero.** If the repair is genuinely trivial, re-proposing is cheap—auditors re-sign in one round. If re-proposing is expensive, that cost is the price of a valid warrant, and skipping it is how you get a green task with an unattested execution path. The secondary boundary: a quorum that cannot reach threshold *after* a repair must not fall back to the pre-repair attestations. A stalled finalization is a correct outcome; a finalized task on stale attestations is not. ## Operational Effect Systems that enforce the digest-equality invariant at close time see finalization latency rise modestly (one extra re-attestation round when repairs occur, which in observed traces was ~8% of branches) and see *zero* replay divergences attributable to attestation skew. Systems that do not enforce it see a characteristic signature: replay jobs that pass at commit time and fail at audit time, with the divergence localized to exactly the steps the verifier repaired. The failure is silent in production and loud only in replay—which means it is discovered by auditors, not by operators, and usually weeks late. The practical guardrail is to make the digest the join key across all three gates—proposal, verification, finalization—and to make any digest change a first-class event that fans out to invalidate downstream attestations. The verifier does not get to edit; it gets to *supersede*. The quorum does not get to approve a task; it gets to approve a digest. The finalization gate does not get to trust its own bookkeeping; it gets to re-read the committed digest and compare. ```python import hashlib from dataclasses import dataclass, field class AttestationSkewError(RuntimeError): """Raised when quorum attestations reference a plan digest that no longer matches the committed/executed plan digest at finalization time.""" pass @dataclass class Attestation: auditor_id: str task_id: str plan_digest: str verdict_digest: str @dataclass class PlanBranch: task_id: str steps: list superseded: bool = False def digest(self) -> str: payload = f"{self.task_id}|{'|'.join(self.steps)}".encode() return hashlib.sha256(payload).hexdigest() @dataclass class Quorum: threshold: int attestations: list = field(default_factory=list) def count_for(self, plan_digest: str) -> int: return sum(1 for a in self.attestations if a.plan_digest == plan_digest) def verifier_repair(branch: PlanBranch, bad_step: str, replacement: str) -> PlanBranch: """Verifier supersedes a branch; returns a NEW branch with a NEW digest.""" if bad_step not in branch.steps: raise AttestationSkewError(f"repair target {bad_step!r} not in branch") new_steps = [replacement if s == bad_step else s for s in branch.steps] branch.superseded = True return PlanBranch(task_id=branch.task_id, steps=new_steps) def finalize_task(committed: PlanBranch, quorum: Quorum) -> str: """Close the task only if the quorum's attestations cover the committed digest.""" committed_digest = committed.digest() votes = quorum.count_for(committed_digest) # The invariant: attestations over any other digest do not count. if votes < quorum.threshold: stale = {a.plan_digest for a in quorum.attestations} - {committed_digest} raise AttestationSkewError( f"task {committed.task_id}: committed digest {committed_digest[:12]} " f"has {votes}/{quorum.threshold} valid attestations; " f"stale digests present: {[d[:12] for d in stale]}" ) return committed_digest # --- Failure trace reproducing the observed skew --- branch = PlanBranch(task_id="4471", steps=["retrieve", "call:search_v1", "synthesize"]) d0 = branch.digest() quorum = Quorum(threshold=4) # Three auditors sign the pre-repair proposal. for i in range(3): quorum.attestations.append(Attestation(f"aud-{i}", "4471", d0, "verdict-0")) # Verifier repairs the branch; digest changes to d1. repaired = verifier_repair(branch, "call:search_v1", "call:search_v2") d1 = repaired.digest() assert d0 != d1 # Two late auditors sign the *stale* proposal record still carrying d0. for i in range(3, 5): quorum.attestations.append(Attestation(f"aud-{i}", "4471", d0, "verdict-0")) # Naive finalization would pass (5 >= 4). Guarded finalization fails closed. try: finalize_task(repaired, quorum) except AttestationSkewError as e: print(f"BLOCKED: {e}") # Correct remediation: re-propose d1 and require fresh attestations. ```