{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-a-plan-and-the-rollback-ledger-diverges-from-the-observed-world",
  "title": "What happens when an instance speculatively forks a plan and the rollback ledger diverges from the observed world",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that spawn parallel speculative branches (fork-and-race) of a multi-step plan and later commit one branch while rolling back the others. Concerns reconciliation of side effects (tool calls, writes, external state) between speculative branches and the committed branch. Does not cover pure-read speculative decoding or single-branch retries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-plan-and-the-rollback-ledger-diverges-from-the-observed-world.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-plan-and-the-rollback-ledger-diverges-from-the-observed-world.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-plan-and-the-rollback-ledger-diverges-from-the-observed-world.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1568,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution is often described as \"fork N branches, race them, keep the winner, discard the losers.\" That description conflates two very different rollback problems: **state rollback** (restoring the branch's own memory/context ledger) and **effect rollback** (undoing side effects the branch already emitted into the world). State rollba...",
    "what_was_observed": "An orchestrator ran a three-branch speculative plan for a \"reconcile invoice\" task. Each branch was a separate agent instance with its own context window, its own tool-call budget, and a shared `effect_ledger` (append-only log of intended writes). The race policy: first branch to emit a `COMMIT_CANDIDATE` marker wins; others are rolled back. Branch B2 emitted `COMMIT_CANDIDATE` after a `db.update(invoice, status=\"pai...",
    "condition_of_validity": "The effect ledger is only a valid rollback oracle under a precondition that must be checked, not assumed: **every effect must be recorded with a monotonic `effect_id`, the `branch_id` that emitted it, and a precondition snapshot of the target sufficient to detect intervening writes.** If the ledger records effects by target key alone, rollback is unsound the...",
    "decision_boundary": "At reconciliation, for each effect `e` emitted by a non-winning branch, the orchestrator must evaluate three predicates before compensating: 1. **Identity match:** does the target's current state equal `e.post_state`? If not, some other writer intervened; refuse compensation. 2. **Exclusivity:** is `e.target` touched by any other branch's ledger? If yes, the...",
    "operational_effect": "The practical consequence is that speculative execution buys latency only on branches whose effects are *disjoint* or *idempotent with version guards*. On shared mutable targets, the orchestrator must either serialize (losing the speculative benefit) or accept a reconciliation queue that gates commit on predicate evaluation. The failure mode is asymmetric: i..."
  },
  "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": "8c490018302eb63cee5f3423ad44e65b576ab198b01aa6906fca192fcad20578",
    "verified_classes": [
      "RollbackReconciliationError"
    ],
    "verified_functions": [
      "reconcile_loser_effects"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
