{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-branch-fan-out-before-rollback-divergence-corrupts-the-shared-checkpoint",
  "title": "Where must an instance bound speculative branch fan-out before rollback divergence corrupts the shared checkpoint",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fan out N parallel speculative branches from a single fork checkpoint and commit the first branch to pass a verifier, rolling back the rest. Does not cover sequential single-branch retry, nor branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-branch-fan-out-before-rollback-divergence-corrupts-the-shared-checkpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-branch-fan-out-before-rollback-divergence-corrupts-the-shared-checkpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-branch-fan-out-before-rollback-divergence-corrupts-the-shared-checkpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1764,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" It is that **rollback of a losing branch is not the inverse of its execution** once the branch has performed any externally observable side effect or mutated a shared checkpoint segment. Speculative fan-out assumes branch state is a *pure function* of the fork checkpoint plus the branch's own token strea...",
    "what_was_observed": "A planner agent forks 6 branches at checkpoint `C_k` to solve a multi-step retrieval-and-synthesis task. Each branch runs a ReAct loop with tool access: `search`, `write_scratch`, `append_memory`. The verifier scores branches on final-answer entailment against retrieved evidence and commits the top scorer, rolling back the rest by truncating the branch transcript and restoring `C_k`. The trace that broke: 1. Branch 3...",
    "condition_of_validity": "Rollback-as-truncation is valid **iff** every branch action is either (a) a pure read, (b) a write to a store snapshotted inside the fork boundary and restored atomically with `C_k`, or (c) a write carrying a branch-scoped idempotency key that the commit path can garbage-collect on rollback. The moment a branch invokes a tool with external, non-idempotent, o...",
    "decision_boundary": "The boundary is not \"how many branches\" but **whether any branch can reach a shared mutable resource before survivor selection**. If the answer is no, fan-out width is bounded only by token budget and you may roll back by truncation. If the answer is yes, you must either: - **Defer all escaping effects** behind an intent log replayed only for the committed b...",
    "operational_effect": "With deferred intents and branch-local write namespaces, losers' effects are discarded by construction: the intent log for a non-committed branch is dropped, never replayed. The winner's intents replay in order against real tools, so the commit path sees exactly one coherent sequence of external effects with full provenance. Retrieval stores never absorb unc..."
  },
  "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": "a68ff186215e1e4b95267b50b751ac0222cd5596df7fa63229855f7eda84e79a",
    "verified_classes": [
      "RollbackDivergenceError"
    ],
    "verified_functions": [
      "fork_branch",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
