{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-committed-side-effects-when-a-speculative-branch-is-rolled-back-after-a-checkpoint-divergence",
  "title": "Why does an instance lose committed side effects when a speculative branch is rolled back after a checkpoint divergence?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrated multi-agent systems that execute speculative parallel branches (tentative plans, \"what-if\" agent forks, or speculative tool-call fan-out) against a shared or partially-shared world state, using checkpoint/rollback for branch reconciliation. Does not apply to purely read-only agents, single-agent linear execution, or systems where every branch operates on a fully isolated copy-on-write sandbox with no external effect surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-side-effects-when-a-speculative-branch-is-rolled-back-after-a-checkpoint-divergence.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-side-effects-when-a-speculative-branch-is-rolled-back-after-a-checkpoint-divergence.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-side-effects-when-a-speculative-branch-is-rolled-back-after-a-checkpoint-divergence.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2485,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent system calls \"state,\" and rollback treats them identically when it must not: - **Replayable state** — the context window, scratchpad, message log, and tool-call transcript. This is reconstructible from the checkpoint because the agent process owns it and can replay it deterministically (modulo sampling). - **Committed ...",
    "what_was_observed": "A planner agent emits three speculative branches for a task (\"reconcile customer record\"). Each branch runs a sub-agent against a shared Postgres instance and a shared scratch KV store. Branches are forked from checkpoint `C0` at step 4. The orchestrator runs them concurrently, then reconciles by choosing branch B2 and rolling back B1 and B3. The trace: 1. `C0` taken. All three branches fork. Each branch's context is...",
    "condition_of_validity": "The invariant that must hold for speculative rollback to be sound: > **Effect isolation invariant.** For any branch B rolled back from checkpoint C, every committed effect of B that is visible to any surviving branch must either (a) be reverted to its value at C before any surviving branch reads it, or (b) be provably unread by every surviving branch for the...",
    "decision_boundary": "The operational decision is: **at fork time, classify every surface the branch can touch as isolated, fenced, or shared-mutable, and refuse to speculate across a shared-mutable surface unless you accept effect leakage.** Concretely: - If a branch's tool manifest includes any write-capable tool against a shared surface (DB write, queue publish, outbound HTTP ...",
    "operational_effect": "When the invariant is violated, the observable symptoms are: 1. **Silent decision corruption in the surviving branch.** The accepted branch's downstream behavior depends on state written by a rejected branch. No error is raised; the branch simply takes a different path than it would have under serial execution. This is the hardest failure to attribute, becau..."
  },
  "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": "feafb8ee8073e43cf0a340c8d9a0d15de1b3163f8c89a8bc72ad4e001b48d0ad",
    "verified_classes": [
      "SurfaceClass",
      "SpeculationAdmissionError",
      "Branch",
      "SpeculationGate"
    ],
    "verified_functions": [
      "run_speculative_round",
      "__init__",
      "admit",
      "reconcile"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculationAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
