{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-a-speculative-branch-lose-its-rollback-anchor-when-a-sibling-commits-first",
  "title": "Why does an instance of a speculative branch lose its rollback anchor when a sibling commits first?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that fan out a task into N parallel speculative branches (each branch = a cloned agent context + tool-call sequence), then select a winner and roll back losers to a pre-fork checkpoint. Does *not* apply to sequential retry loops, single-branch execution, or branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-branch-lose-its-rollback-anchor-when-a-sibling-commits-first.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-branch-lose-its-rollback-anchor-when-a-sibling-commits-first.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-branch-lose-its-rollback-anchor-when-a-sibling-commits-first.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the loser's rollback failed.\" The failure is that the loser's rollback *succeeded against the wrong anchor*. In speculative multi-agent execution, every branch forks from a logical checkpoint `C₀` but each branch also mutates *shared external state* (a scratch filesystem, a database row, a remote resource handle, a rate-limit counter, an ...",
    "what_was_observed": "A three-way speculative fan-out for a code-migration task. `B₁` attempted to rewrite `schema.sql` and `migrate.py`; `B₂` attempted a different rewrite of the same two files; `B₃` was a control branch that only read. The orchestrator used a \"winner commits, losers revert to checkpoint\" protocol with per-branch checkpoint IDs. Trace: 1. `C₀` snapshotted. All three branches fork. Each branch's rollback anchor = `(C₀, br...",
    "condition_of_validity": "The naive protocol is correct **iff** at most one branch mutates any given external resource (disjoint write sets), or **iff** branches are serialized (only one branch in flight at a time), or **iff** the substrate supports cheap copy-on-write snapshots with independent branch heads (e.g., a real VCS branch per agent, not a shared working tree). Under any of...",
    "decision_boundary": "The boundary is not \"how many branches\" but \"do branches share a mutable substrate with a single head.\" Concretely: - **Safe:** each branch operates in its own namespace (per-branch directory, per-branch DB transaction with isolated snapshot, per-branch MCP session with its own working tree). Rollback = discard the namespace. Commit = merge the winner's name...",
    "operational_effect": "Two concrete consequences: 1. **Winner corruption is silent and post-hoc.** The orchestrator's commit record says `B₁` won. The substrate says otherwise. Any downstream agent that reads the substrate trusts the commit record and gets the wrong state. This is a continuity violation across the agent boundary: the *logical* history and the *physical* history di..."
  },
  "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": "c43ee8f8d569ed9fcba8d804e3fd6712023524fadfc700a59514d19806af9136",
    "verified_classes": [
      "SpeculativeRollbackFenceError",
      "Branch"
    ],
    "verified_functions": [
      "select_and_rollback",
      "_written_by",
      "_written_by_sibling",
      "__init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeRollbackFenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
