{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-parallel-plans-and-the-rollback-of-a-losing-branch-corrupts-the-reconciliation-ledger",
  "title": "What happens when an instance speculatively forks parallel plans and the rollback of a losing branch corrupts the reconciliation ledger",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that run multiple candidate agent plans concurrently (speculative execution) with per-branch side-effect journals and a merge/reconcile step at branch join. Does not apply to strictly sequential single-plan execution, or to fan-out where branches are provably side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-plans-and-the-rollback-of-a-losing-branch-corrupts-the-reconciliation-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-plans-and-the-rollback-of-a-losing-branch-corrupts-the-reconciliation-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-plans-and-the-rollback-of-a-losing-branch-corrupts-the-reconciliation-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1966,
    "python_slice_tokens": 538,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" It is that **rollback is treated as the inverse of execution**, when in agent systems it is only the inverse of *reversible* execution. Speculative forking assumes the losing branch can be wound back to the fork point by replaying an undo journal. But an agent branch's journal records *intents and tool c...",
    "what_was_observed": "A planner spawned three parallel branches from a shared checkpoint at step 7 of a 20-step task. Each branch got a copy of the context and a copy of the side-effect journal. Branch A (winner) and Branch B (loser) both, independently, called `append_memory(namespace=\"task_ctx\", key=\"customer_id\", value=...)` — same namespace, same key, *different values* because the branches had diverged on an ambiguous entity resoluti...",
    "condition_of_validity": "The rollback-as-inverse model is valid only under a conjunction that speculative agent orchestrators rarely check: 1. **Effect isolation** — no branch's effects are observable to any other branch or to external systems until commit. If violated, a branch's undo can clobber a sibling's committed effect. 2. **Undo is state-conditional, not history-conditional*...",
    "decision_boundary": "The orchestrator must choose, per branch effect, between **isolate-until-commit** and **reconcile-on-join**, and must never mix them for the same key: - If an effect is *isolatable* (write to a branch-private overlay, staged tool call, buffered message), speculative execution is sound: rollback is a discard of the overlay, and commit is a merge. No inverse i...",
    "operational_effect": "Without the guard, speculative parallelism converts a latency optimization into a **state-corruption amplifier**: the more branches you run and the more they share, the higher the probability that a loser's rollback lands on a winner's committed effect, and the corruption is laundered through reconciliation as a plausible-looking third value. The blast radiu..."
  },
  "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": "ef0cb9740607dcdc9d625f38ab7c0724fee83bbf48169999b3bc272ea0bda9dd",
    "verified_classes": [
      "ReconciliationConflict",
      "EffectEntry",
      "Branch",
      "SharedStore"
    ],
    "verified_functions": [
      "rollback_branch",
      "reconcile",
      "__init__",
      "read",
      "cas_write",
      "cas_delete"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReconciliationConflict"
    ],
    "sample_fail_closed_invariants": [
      "assert store.read('customer_id') == 'Y'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
