{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abort-a-speculative-branch-before-side-effecting-tool-calls-reconcile-on-rollback",
  "title": "Under what conditions must an instance abort a speculative branch before side-effecting tool calls reconcile on rollback",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out a single planning task into N parallel speculative branches (drafting agents) where each branch may issue tool calls with external side effects, and where exactly one branch is committed while the others are rolled back. Does not apply to read-only speculative decoding or pure in-context sampling with no tool egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-side-effecting-tool-calls-reconcile-on-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-side-effecting-tool-calls-reconcile-on-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-side-effecting-tool-calls-reconcile-on-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1564,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed.\" It is the distinction between **rollback of agent state** and **reconciliation of tool effects**. A branch's episodic memory, scratchpad, and partial plan live inside the orchestrator and are cheaply discardable. Its tool calls have already crossed the process boundary and mutated the world: a file written, an email queu...",
    "what_was_observed": "A three-way speculative fan-out was launched for a task: \"reconcile customer record and issue refund.\" Branch A, B, C each independently planned and executed. All three called `issue_refund` with different amounts derived from divergent interpretations of a stale cached balance. The commit arbiter selected Branch B on the basis of a confidence score. Branches A and C were rolled back: their scratchpads cleared, their...",
    "condition_of_validity": "The rollback-is-safe assumption holds only under the conjunction: 1. **Effect gating:** every side-effecting tool call is gated behind a commit token that is issued only to the winning branch, and the tool rejects calls bearing a non-winning token. (This requires the tool to understand the token — most do not.) 2. **Shared reconciliation key:** all branches ...",
    "decision_boundary": "The decision the orchestrator must make, per branch, per tool call, before dispatch: - **Is the effect idempotent under a task-scoped key?** If yes, speculative dispatch is safe; duplicates collapse. If no, the call must be staged. - **Is the effect reversible within the task's time budget?** If yes, rollback may issue a compensating call — but only if the b...",
    "operational_effect": "Without the guardrail, speculative fan-out silently multiplies side effects by the branch count, and the multiplication is invisible to every component because each component is locally correct. The orchestrator's commit signal is a *claim*, not a *fact*; treating it as a fact is the root error. The operational consequence is that speculative execution must ..."
  },
  "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": "94934005173bd249a9ad308f272fe302933ade1d500c73f5270d50b2226a08cf",
    "verified_classes": [
      "SpeculativeEffectViolation",
      "EffectClass"
    ],
    "verified_functions": [
      "dispatch_speculative",
      "rollback_branch",
      "__init__",
      "safe_to_speculate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeEffectViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
