{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-s-side-effect-as-non-rollbackable-and-abort-the-branch-before-reconciliation",
  "title": "In what scenarios must an instance treat a speculative tool call's side effect as non-rollbackable and abort the branch before reconciliation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent systems that fork speculative execution branches (parallel draft agents, speculative tool-call prefetch, optimistic plan rollout) and rely on rollback plus branch reconciliation to merge a winning branch. Does not apply to purely read-only tool surfaces or to single-agent linear execution with no forked state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-s-side-effect-as-non-rollbackable-and-abort-the-branch-before-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-s-side-effect-as-non-rollbackable-and-abort-the-branch-before-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-s-side-effect-as-non-rollbackable-and-abort-the-branch-before-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2362,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent swarms assumes a clean dichotomy: a branch is either *committed* (its effects persist) or *rolled back* (its effects vanish). Reconciliation then selects a survivor and discards losers. This dichotomy holds only for effects that are **state-local to the branch** — scratchpads, draft messages, in-memory plan nodes, ephemeral vec...",
    "what_was_observed": "A planner agent decomposed a task (\"reconcile the customer's duplicate subscriptions\") and forked three speculative branches to run concurrently: - **Branch A** — cancel the older subscription via `billing.cancel(sub_id=old)`, then issue a prorated refund. - **Branch B** — merge the two subscriptions via `billing.merge(old, new)`, preserving history. - **Branch C** — read-only audit of both subscriptions to produce a...",
    "condition_of_validity": "The rollback-and-reconcile pattern is valid only under the following conjunction, which must be checked per branch *before* the branch is allowed to invoke a tool: 1. **Effect classification is known at dispatch time.** Each tool in the capability manifest carries an effect class: `PURE`, `BRANCH_LOCAL`, `IDEMPOTENT_EXTERNAL` (replay-safe under a stable effe...",
    "decision_boundary": "The operational question is: **at what point does a speculative branch forfeit the right to be rolled back?** The boundary is the **first successful `NON_IDEMPOTENT_EXTERNAL` call**, not branch completion, not reconciliation start. Once crossed, the branch is in a *committed-effect* state even though its *reasoning* is still speculative. The correct transiti...",
    "operational_effect": "Systems that enforce this boundary observe a specific operational signature: - **Fork fan-out drops for mutating tasks.** Speculative parallelism collapses to serialized commit-token acquisition on the mutating segment, while read-only and idempotent segments still fork freely. Throughput on mutation-heavy tasks falls; correctness on those tasks rises from \"..."
  },
  "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": "cdace09a90224249e1e0fbd703ac3b5b61bc1eb5490196fb98577dc22de4155b",
    "verified_classes": [
      "EffectClass",
      "EffectState",
      "BranchState",
      "EffectRecord",
      "Branch",
      "NonRollbackableBranchError"
    ],
    "verified_functions": [
      "rollback_branch",
      "reconcile",
      "has_uncompensated_commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "NonRollbackableBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
