{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-speculative-branch-s-tool-side-effects-as-irreversible-before-reconciliation-commits",
  "title": "Under what conditions must an instance treat a speculative branch's tool side effects as irreversible before reconciliation commits",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent orchestrators that fork speculative branches (parallel plan candidates, optimistic tool calls, or speculative decoding over tool-using steps) and later reconcile branches by rollback or merge. Does not apply to branches whose tool calls are all pure/read-only, or to single-agent linear execution with no forking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-tool-side-effects-as-irreversible-before-reconciliation-commits.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-tool-side-effects-as-irreversible-before-reconciliation-commits.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-tool-side-effects-as-irreversible-before-reconciliation-commits.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1966,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a branch produced a wrong answer.\" It is that a speculative branch *already mutated external state* through a tool call whose effects are not captured by the branch's undo log, and then reconciliation either rolls the branch back (leaving an orphaned side effect) or commits the branch (double-applying effects already partially a...",
    "what_was_observed": "A planner forked three speculative branches at step 7 of a 14-step task: branch A chose the \"reconcile via ledger API\" plan, branch B chose \"reconcile via batch file upload,\" branch C chose \"escalate to human queue.\" All three ran optimistically in parallel to reduce latency. Each branch invoked the same downstream `apply_adjustment(account, delta)` tool as part of its reconciliation step — the planner did not mark t...",
    "condition_of_validity": "Speculative execution with rollback is sound over a tool invocation only when all of the following hold at the moment of invocation: - **Compensation exists and is total.** The tool exposes an inverse that restores the pre-state exactly, not approximately. `apply_adjustment`/`revert` is total only if no downstream observer can act on the intermediate state. ...",
    "decision_boundary": "The boundary is drawn at the tool-capability manifest, not at the reconciler. When the planner encounters a tool call in a speculative branch: - If `tool.commit_point == False` **and** `tool.compensation == total` **and** the orchestrator holds a live precondition token → speculate freely; rollback is sound. - If `tool.commit_point == True` **or** `tool.comp...",
    "operational_effect": "The practical consequence is that speculative multi-agent execution buys latency only over *reasoning and read-only or owned-state* steps; commit-point tool calls must be serialized through reconciliation. This inverts the naive optimization: teams fork aggressively to parallelize the expensive tool calls, which is precisely the set of calls that cannot be s..."
  },
  "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": "9772fd0dedc89cb3696a9baad320a4955c8775fa30c90a98a3518a214eaa7dfa",
    "verified_classes": [
      "IrreversibleSpeculationError",
      "ToolCapability",
      "PreconditionToken"
    ],
    "verified_functions": [
      "assert_speculation_safe",
      "reconcile_rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IrreversibleSpeculationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
