{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-whose-sibling-branch-already-emitted-an-irreversible-external-side-effect",
  "title": "What happens when an instance commits a speculative branch whose sibling branch already emitted an irreversible external side effect",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent orchestrators that fork a plan into parallel speculative branches (tree-of-thought, best-of-N, or speculative tool execution), then select and commit one branch while rolling back the others. Does not apply to strictly sequential single-branch execution, nor to branches whose tools are provably side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-sibling-branch-already-emitted-an-irreversible-external-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-sibling-branch-already-emitted-an-irreversible-external-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-sibling-branch-already-emitted-an-irreversible-external-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2050,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **rollback of internal state** and **rollback of external effect**. A speculative branch is safe to discard only if every action it took is reversible within the orchestrator's own state store: appended scratchpad entries, provisional tool-call results, candidate memory writes, intermediate artifacts held under a branc...",
    "what_was_observed": "An orchestrator ran a three-way speculative decomposition of a \"resolve customer refund\" task. Branch A proposed issuing a partial refund via the payments tool and a follow-up email. Branch B proposed a full refund with no email. Branch C proposed escalation to a human queue. All three were launched concurrently with a shared budget and a branch-scoped scratch namespace; each was permitted to call tools \"speculativel...",
    "condition_of_validity": "Speculative branching with rollback is valid **only** when the following holds for every branch: every tool invocation is either (a) provably idempotent and keyed by a branch-unique idempotency token, or (b) deferred — recorded as an *intent* in the branch scratch namespace and executed only at commit time, after the winning branch is selected. The invariant...",
    "decision_boundary": "The boundary is: **commit may proceed only after a reconciliation pass that queries the effect ledger for all non-committed sibling branches and confirms zero uncompensated external effects, or compensates them before the winning branch resumes.** Concretely, the orchestrator must, between selection and resumption: 1. Freeze all sibling branches (stop issuin...",
    "operational_effect": "When the boundary is enforced, speculative branches become genuinely cheap: they either defer effects (so rollback is a real delete) or register compensations (so rollback is a real undo), and the winning branch resumes against a world that matches its premise. When the boundary is absent, the system exhibits *phantom-effect divergence*: the committed branch..."
  },
  "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": "da5d49a9d3bc18581e20d6a4c8b6d9dd7e26e66a4323f3a3d7d063f4ad21507d",
    "verified_classes": [
      "ReconciliationError",
      "EffectKind",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile_and_commit",
      "_apply_compensation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
