{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-speculative-rollback-of-an-irreversible-tool-effect-during-branch-and-rollback-multi-agent-execution",
  "title": "In what scenarios must an instance refuse speculative rollback of an irreversible tool effect during branch-and-rollback multi-agent execution",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fork parallel speculative agent branches, execute tool calls on each branch, and reconcile by committing one branch while issuing compensation transactions for the others. Does not apply to purely read-only tool surfaces or to single-branch linear execution where no rollback is ever attempted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-rollback-of-an-irreversible-tool-effect-during-branch-and-rollback-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-rollback-of-an-irreversible-tool-effect-during-branch-and-rollback-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-speculative-rollback-of-an-irreversible-tool-effect-during-branch-and-rollback-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1890,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"rollback failed.\" It is the case where rollback *appears* to succeed at the protocol layer while the underlying side effect was never compensable, so the orchestrator's ledger diverges from ground truth. Speculative branch-and-rollback assumes every tool effect admits a compensating transaction: `create` is undone by ...",
    "what_was_observed": "A planning swarm forked three branches from a shared checkpoint to satisfy a user request to \"notify the vendor and book the earlier slot.\" Branch A (speculative) called `send_email(vendor, \"confirm Tue 09:00\")`. Branch B (speculative) called `send_email(vendor, \"confirm Tue 11:00\")` and `book_slot(Tue 11:00)`. Branch C (winning, chosen by a verifier that preferred the later slot for a scheduling constraint discovere...",
    "condition_of_validity": "Speculative rollback is only sound when, for every effect the losing branch committed, one of the following holds *and is verified at commit time, not assumed at plan time*: 1. **Provable invertibility.** The tool exposes a compensation whose postcondition is checkable against external state (e.g., `book_slot` compensation `release_slot` can be confirmed by ...",
    "decision_boundary": "The boundary is *not* \"is this tool dangerous.\" It is: **at the moment a branch commits an effect, can the orchestrator prove the effect is still inside its trust boundary?** Concretely, before forking a branch that will call tool `T`, the orchestrator must classify `T` on two axes — emission timing (staged vs immediate) and compensation fidelity (external-v...",
    "operational_effect": "When the boundary is respected, speculative execution degrades gracefully: branches over non-compensable tools serialize or lease, which costs latency but preserves ledger/world agreement. When it is violated, the observable symptom is a **late, cross-agent inconsistency**: a branch marked rolled back whose effect surfaces when a *different* agent reads exte..."
  },
  "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": "73b56ae11301398b0ae627013361aa0b5e575bacff2a2fd0bcc1af1b47428154",
    "verified_classes": [
      "IrreversibleSpeculativeEffect",
      "EffectClass",
      "CompensationFidelity"
    ],
    "verified_functions": [
      "classify_tool",
      "may_speculate",
      "rollback_branch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IrreversibleSpeculativeEffect"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
