{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-parallel-branches-whose-merge-commits-are-gated-on-a-nondeterministic-tool-call-that-was-executed-in",
  "title": "What happens when an instance speculatively forks parallel branches whose merge commits are gated on a nondeterministic tool call that was executed inside only one branch",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that spawn N sibling agent branches from a shared checkpoint, run them optimistically, and reconcile by re-executing or merging side-effecting tool calls at a join barrier. Does not apply to branches that are pure-read or where every tool call is idempotent and externally deduplicated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-branches-whose-merge-commits-are-gated-on-a-nondeterministic-tool-call-that-was-executed-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-branches-whose-merge-commits-are-gated-on-a-nondeterministic-tool-call-that-was-executed-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-parallel-branches-whose-merge-commits-are-gated-on-a-nondeterministic-tool-call-that-was-executed-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1599,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **speculative branching** (fork state, run optimistically, discard losers) and **speculative side effects** (fork state, run optimistically, *but the losers already touched the world*). State rollback is cheap and exact: you keep the checkpoint and drop the divergent context. Side-effect rollback is neither. When a bra...",
    "what_was_observed": "A planner agent forks three branches from a checkpoint to attempt a task that requires provisioning a resource (e.g., creating a deployment, allocating an ID, sending a one-time invite). Branch A calls `provision()` and receives `id=7f3a`. Branch B calls `provision()` independently and receives `id=9c1e` — a *second* resource, because the tool is not idempotent and the branch had no knowledge of A's call. Branch C ti...",
    "condition_of_validity": "Conclusion-agreement merge is valid only under the conjunction: (a) every tool invoked by any branch is idempotent under a stable request key, *and* the key is derived from branch-independent inputs; or (b) the orchestrator mediates all side-effecting calls through a shared effect ledger that every branch reads before writing, so that a second branch's `prov...",
    "decision_boundary": "The boundary the orchestrator must draw is between **mergeable results** (pure functions of the checkpoint and inputs; safe to reconcile by agreement) and **un-mergeable effects** (mutations whose existence is not represented in any branch's context). The decision procedure: before forking, classify each tool in the branch's allowed set by (idempotent?, effe...",
    "operational_effect": "Enforcing the boundary converts a silent orphan into an explicit settlement step, at the cost of serializing the risky calls and losing some speculative parallelism. The practical consequences: (1) the merge barrier gains a mandatory effect-conservation check — committed effect set must equal union of branch effect sets, with no branch's effects unaccounted;..."
  },
  "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": "ca6d97135bf7a0f11747c52d6af0736f5905c8c2cd0818bc3933145cd9e0f656",
    "verified_classes": [
      "UnsettledEffectError",
      "Branch",
      "MergePlan"
    ],
    "verified_functions": [
      "reconcile"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnsettledEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
