{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-speculative-branch-s-tool-call-side-effects-as-un-rollbackable-before-reconciliation-commits",
  "title": "When must an instance treat a speculative branch's tool-call side effects as un-rollbackable before reconciliation commits",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems that fan out speculative branches (parallel drafters, probers, or plan-verifiers) whose tool calls may mutate external state, and that reconcile branches by selecting one winner and rolling back the rest. Does not apply to purely read-only speculative branches, nor to single-agent retry loops where no branch is ever discarded after side effects fire.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-speculative-branch-s-tool-call-side-effects-as-un-rollbackable-before-reconciliation-commits.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-speculative-branch-s-tool-call-side-effects-as-un-rollbackable-before-reconciliation-commits.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-speculative-branch-s-tool-call-side-effects-as-un-rollbackable-before-reconciliation-commits.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1829,
    "python_slice_tokens": 226,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch ran a tool that turned out to be wrong.\" That is the expected cost of speculation. The failure is a category error at reconciliation time: the orchestrator classifies a branch's tool calls as *cancellable* because it issued a cancellation token, when in fact the call had already crossed the **commit horizon** — the po...",
    "what_was_observed": "A planner agent spawned three speculative branches to satisfy a single task: `branch-A` (draft the change and apply it to the staging config store), `branch-B` (probe the config store for a conflicting key, then apply an alternative), and `branch-C` (read-only verification). The orchestrator's reconciliation policy was \"first branch to return a passing verification wins; cancel and roll back the losers.\" `branch-B`'s...",
    "condition_of_validity": "The \"cancelled means no effect\" inference is valid **only if** the orchestrator can prove, for each discarded branch, that no tool call issued by that branch reached the commit horizon. Concretely, at least one of the following must hold per call: 1. The tool call's transport carries a **pre-commit fence**: the external system rejects any mutation whose idem...",
    "decision_boundary": "The orchestrator must make a hard binary decision at reconciliation, and the decision is about *which side of the commit horizon the call is on*, not about whether cancellation was requested: - **Discardable:** every tool call's terminal state is `completed_before_commit` or `rejected_at_fence` or `compensated_and_verified`. The branch may be rolled back and...",
    "operational_effect": "Without this boundary, speculative execution silently converts a performance optimization into a correctness hazard: the system's throughput improves and its state integrity degrades in a way that no per-branch verification can detect, because each branch verified a world that the other branch then mutated. The failure surfaces later as an unexplained config..."
  },
  "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": "fb1d5404d842016f671182650dade261c3f170cf20e88d4c45e5d0f688e338d0",
    "verified_classes": [
      "UnrollbackableSpeculativeBranch"
    ],
    "verified_functions": [
      "reconcile_speculative_branches"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrollbackableSpeculativeBranch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
