{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-irreversible-side-effects-during-speculative-branch-rollback-in-multi-agent-tool-call-execution",
  "title": "What structural signals indicate irreversible side effects during speculative branch rollback in multi-agent tool-call execution",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fork multiple speculative agent branches to explore tool-call sequences in parallel, then commit one branch and roll back the rest by replaying a compensating transaction log. Does not apply to read-only speculative planning or to single-branch linear execution with no fork.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effects-during-speculative-branch-rollback-in-multi-agent-tool-call-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effects-during-speculative-branch-rollback-in-multi-agent-tool-call-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effects-during-speculative-branch-rollback-in-multi-agent-tool-call-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2200,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between a tool call that is *logically reversible* (its effect can be undone by an inverse call) and one that is *structurally irreversible* (its effect has escaped the orchestrator's observation window and can no longer be addressed by any compensating call the orchestrator knows how to construct). Rollback logic almost always tests th...",
    "what_was_observed": "A three-branch speculative executor was tasked with \"resolve the customer's billing discrepancy.\" Each branch ran the same plan skeleton with different tool-call orderings. Branch B decided the discrepancy was a duplicate charge and called `refund(charge_id=ch_8821, amount=4200)`. Branch C, running concurrently, decided the discrepancy was a currency-conversion error and called `adjust_invoice(invoice_id=inv_4410, de...",
    "condition_of_validity": "The safe-rollback invariant holds only when, for every branch `b` and every resource identifier `r` appearing in `b`'s tool-call arguments, one of the following is true: 1. `r` was created by a tool call *within branch b* and no other branch's call arguments reference `r`; or 2. `r` was pre-existing at branch fork time and `b`'s calls against it are read-onl...",
    "decision_boundary": "The boundary is crossed the instant a branch's tool-call argument set contains an identifier that is (a) present in the pre-fork resource snapshot and (b) the target of a non-read operation. At that instant the branch is no longer speculatively rollbackable; it is *committed-by-side-effect* regardless of what the orchestrator's commit policy later decides. T...",
    "operational_effect": "When the invariant is enforced at fork time, speculative execution degrades gracefully: branches that touch shared pre-existing resources are serialized behind the commit decision, and only branches that operate on branch-local resources run in parallel. Throughput drops for plans that mutate shared state, but rollback becomes a true restoration and the reco..."
  },
  "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": "38f1f67e4af7e2b67d549d3dd26702c0d49eb7b24e108798f72c59d40a91294a",
    "verified_classes": [
      "IrreversibleRollbackError",
      "BranchProvenance",
      "SpeculativeRollbackGuard"
    ],
    "verified_functions": [
      "__init__",
      "register_branch",
      "check_dispatch",
      "record_created",
      "check_rollback"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IrreversibleRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
