{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-after-a-hedged-tool-call-has-already-produced-external-side-effects",
  "title": "When must an instance abandon a speculative branch after a hedged tool call has already produced external side effects?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestrators that fork a task into parallel speculative branches, hedge tool calls across branches, and commit via branch-and-verify rollback. Does not apply to single-threaded agents with no side-effecting tools, or to tools whose effects are fully idempotent and reversible.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-hedged-tool-call-has-already-produced-external-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-hedged-tool-call-has-already-produced-external-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-hedged-tool-call-has-already-produced-external-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1607,
    "python_slice_tokens": 176,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution with branch-and-verify rollback assumes a clean separation between *computation* and *commitment*: branches explore, a verifier picks a winner, losers are discarded. This holds when branch work is pure. It breaks the moment a branch invokes a **hedged tool call** — a tool dispatched speculatively to reduce latency, before the verifier h...",
    "what_was_observed": "A planner agent forks three branches (B1, B2, B3) to resolve an ambiguous instruction (\"file the report and notify the team\"). Each branch independently plans a tool sequence. To cut p99 latency, the orchestrator hedges: the first branch to reach a `send_message` step dispatches it immediately, tagging the call with a `branch_id` and `speculation_token`. B1 wins the race and calls `send_message(team_channel, draft_v1...",
    "condition_of_validity": "The invariant that must hold for branch-and-verify rollback to be sound is: > **A branch may not dispatch a side-effecting tool call until its `speculation_token` has been promoted to `committed` by the verifier, OR the tool is registered with a verified compensating action that is executed and confirmed before the branch is marked rolled back.** Hedging is ...",
    "decision_boundary": "The orchestrator must decide, at hedge-dispatch time, between three regimes: 1. **Speculate-and-commit-on-verify (safe):** hedge only pure/read calls; buffer side-effecting calls until commit. Latency cost equals verifier latency for the mutating step. Correct. 2. **Speculate-with-reservation (safe, requires tool support):** dispatch the mutating call with a...",
    "operational_effect": "Once a speculative branch has committed by side effect, the orchestrator has three honest options, none of which is \"roll back\": (i) *reconcile* — treat the orphaned effect as authoritative and re-plan around it, recording the divergence; (ii) *compensate-and-confirm* — execute a compensating action and verify the external system's state actually changed bac..."
  },
  "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": "6409245fd54023e382963b472d87edb9c1624d51052612500e0a986279a492ce",
    "verified_classes": [
      "UnreconciledHedgeError"
    ],
    "verified_functions": [
      "rollback_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconciledHedgeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
