{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-roll-back-a-speculative-branch-into-a-poisoned-checkpoint-when-its-verifier-is-cheaper-than-its-executor",
  "title": "Why does an instance roll back a speculative branch into a poisoned checkpoint when its verifier is cheaper than its executor?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out speculative agent branches in parallel and commit a winner via a downstream verifier, then roll back losers by restoring a checkpoint. Does not apply to single-agent linear execution or to fan-out schemes where branches share no mutable external state (pure-function tool calls only).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-branch-into-a-poisoned-checkpoint-when-its-verifier-is-cheaper-than-its-executor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-branch-into-a-poisoned-checkpoint-when-its-verifier-is-cheaper-than-its-executor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-branch-into-a-poisoned-checkpoint-when-its-verifier-is-cheaper-than-its-executor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rollback failed.\" The failure is that **rollback restores the executor's state but not the verifier's evidence**, so a later branch commits against a world the verifier has already invalidated. Two distinct stores exist in any branch-and-verify system: 1. **Executor state** — the agent's context window, scratchpad, tool-call ledger, and t...",
    "what_was_observed": "A code-migration orchestrator fanned out three branches to rewrite a module (`branch_A`, `branch_B`, `branch_C`), each with a fresh 32k-token executor context seeded from checkpoint `cp_100`. A single verifier process ran after each branch returned, executing the project's test suite and reading the resulting `pytest` summary plus a `git diff --stat`. The sequence that failed: 1. `branch_A` edits `module.py`, runs te...",
    "condition_of_validity": "The invariant that must hold for branch-and-verify to be sound is: > For any verifier evidence `e` produced at time `t₁` and consumed at time `t₂`, every external resource that `e` depends on must be byte-identical at `t₂` to its state at `t₁`, OR `e` must be invalidated before `t₂`. Call this the **evidence-stability invariant**. It is violated by any of: -...",
    "decision_boundary": "The orchestrator must choose, per branch, between two strategies, and the choice is **not** a global config — it is a function of the branch's resource footprint: The boundary is crossed when **`rollback_scope ⊋ diff_scope`** for any pair of live branches. The orchestrator must compute, for each branch, the set of resources its evidence depends on (the *evid...",
    "operational_effect": "The observable symptom is a **commit that passes verification but does not match on-disk state**, discovered only by a downstream integration step that re-reads the resource. The verifier's logs are clean; the executor's logs are clean; the discrepancy lives in the gap between them. Concrete mitigations that bound the failure: 1. **Evidence keyed on content ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "923f9c3c158cdc186b23b7fef564523b2478028c923092e4f6caee1e401c8409",
    "verified_classes": [
      "StaleEvidenceError",
      "Evidence",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "gather_evidence",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleEvidenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
