{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-whose-tool-side-effects-already-landed-before-rollback-reconciliation",
  "title": "What happens when an instance commits a speculative branch whose tool side effects already landed before rollback reconciliation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fan out a task into parallel speculative branches (draft-then-select), where each branch may invoke side-effecting tools, and where a single \"winner\" is reconciled and the losers rolled back. Does not apply to pure read-only fan-out (map-reduce over retrieval) or to single-branch sequential execution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-tool-side-effects-already-landed-before-rollback-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-tool-side-effects-already-landed-before-rollback-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-tool-side-effects-already-landed-before-rollback-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2145,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **branch state** and **branch effects**. A speculative branch has two separable artifacts: the *logical* state it accumulates (tokens, intermediate drafts, tool-call transcripts held in the branch context) and the *committed* effects it produced in the external world (files written, rows inserted, messages sent, resour...",
    "what_was_observed": "A planner emitted three parallel branches for a task of the form \"provision the staging environment and update the config.\" Each branch was given the same tool manifest (a filesystem writer, a cloud resource provisioner, and a config-patch tool). Branch A drafted a resource ID and wrote a config file referencing it. Branch B drafted a different resource ID, provisioned the actual cloud resource (the provisioner was n...",
    "condition_of_validity": "Speculative fan-out with rollback is only sound under a conjunction of conditions, and each is independently violable: - **Effect isolation.** Every side-effecting tool call in a speculative branch must be routed through an orchestrator-owned buffer (a staged transaction, a sandbox namespace, or a dry-run mode that returns a *simulated* handle) such that the...",
    "decision_boundary": "The boundary is whether a given tool call is **reconcilable** — that is, whether the orchestrator can, after the fact, either neutralize it or account for it — versus **irreconcilable**, meaning once it lands it is outside the orchestrator's reach. The decision procedure: - If the tool is buffered or dry-runnable → safe for speculative branches; rollback is ...",
    "operational_effect": "The practical consequence is a two-phase discipline imposed on the orchestrator: **speculate on drafts, commit on effects.** Branch agents may freely call read tools and buffered/dry-run write tools during the speculative phase; all real, non-idempotent, handle-bearing calls are deferred to a post-reconciliation commit phase executed by the winner only, with..."
  },
  "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": "0e1e3fc0af69a4393b44d4191acd711b0cc7df15c78514500e646f4e54595109",
    "verified_classes": [
      "IncompleteRollbackError",
      "EffectEntry",
      "EffectLedger"
    ],
    "verified_functions": [
      "rollback_branch",
      "reconcile",
      "record",
      "for_branch",
      "is_closed"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IncompleteRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "effect ledger not closed after reconciliation; external state may diverge from recorded state"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
