{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-as-non-idempotent-and-refuse-rollback-only-reconciliation-across-a-multi-agent-branch",
  "title": "In what scenarios must an instance treat a speculative tool call as non-idempotent and refuse rollback-only reconciliation across a multi-agent branch",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestrators that fork a shared task state into speculative branches, execute tool calls optimistically on each branch, and reconcile by either committing one branch or rolling back the others. Does not apply to single-agent retry loops or to branches whose tool calls are provably side-effect-free within a declared sandbox.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-as-non-idempotent-and-refuse-rollback-only-reconciliation-across-a-multi-agent-branch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-as-non-idempotent-and-refuse-rollback-only-reconciliation-across-a-multi-agent-branch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-speculative-tool-call-as-non-idempotent-and-refuse-rollback-only-reconciliation-across-a-multi-agent-branch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1424,
    "python_slice_tokens": 171,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The load-bearing distinction is between **rollback of state** and **rollback of effect**. Speculative multi-agent execution assumes that if a branch loses reconciliation, its writes can be discarded by rewinding the shared state pointer to the pre-fork checkpoint. That assumption holds only for tool calls whose observable effects live entirely inside the sta...",
    "what_was_observed": "A three-way speculative fan-out on a document-processing task: branch A summarized, branch B performed entity extraction, branch C performed entity extraction with a different prompt and a stricter schema. All three shared a forked state at checkpoint `cp_0`. Branch B and C both called `enrich_record(record_id, entities)` against an external enrichment service that appends to a downstream queue. The orchestrator's re...",
    "condition_of_validity": "Rollback-only reconciliation is valid if and only if, for every tool call executed on any speculative branch, one of the following holds before the branch is abandoned: 1. The call is **provably idempotent** under a stable key the orchestrator controls (the tool deduplicates on `(record_id, branch_token)` or equivalent), so re-execution from the committed br...",
    "decision_boundary": "An instance must refuse rollback-only reconciliation and escalate to explicit compensation (or block the speculative dispatch entirely) when all of the following are true: - The branch is speculative (its outcome is not yet selected), **and** - The tool call has an effect outside orchestrator-owned state (detectable via a declared `side_effect_class` on the ...",
    "operational_effect": "Enforcing this boundary changes the fan-out topology. Speculative branches can no longer freely execute effectful tools; they must either stage those calls behind a commit gate, supply a dedup key that makes re-execution safe, or register a compensator at branch creation. The orchestrator gains a new required step at reconciliation: for every abandoned branc..."
  },
  "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": "72486c271f2c99b2869adcf0e14a2ea46d0116386f0389bbfd80df5c117b7545",
    "verified_classes": [
      "SpeculativeRollbackViolation"
    ],
    "verified_functions": [
      "assert_rollback_safe"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeRollbackViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
