{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-in-a-speculative-plan-tree-lose-rollback-integrity-when-sibling-branches-share-a-mutable-tool-side-effect",
  "title": "Why does an instance in a speculative plan tree lose rollback integrity when sibling branches share a mutable tool side-effect?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems that speculatively fork a plan tree, execute child branches concurrently against shared external tools, and roll back a losing branch when a sibling wins. Does not apply to read-only tool surfaces or to single-agent linear plans with no speculative fan-out.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-plan-tree-lose-rollback-integrity-when-sibling-branches-share-a-mutable-tool-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-plan-tree-lose-rollback-integrity-when-sibling-branches-share-a-mutable-tool-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-plan-tree-lose-rollback-integrity-when-sibling-branches-share-a-mutable-tool-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1722,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this failure mode is between *logical rollback* (marking a branch's plan state as discarded in the orchestrator's memory) and *physical rollback* (reversing the observable side-effects that branch already committed to external tools). Most speculative plan-tree implementations conflate the two. They assume that because a branch c...",
    "what_was_observed": "A parent agent decomposes a task (\"provision a staging environment and notify the team\") into a speculative tree with three children: A writes a config file to a shared volume via a filesystem tool, B appends a deployment record to a database via a write tool, C drafts the notification. B and C both read the same config file that A is racing to write. During the race, A commits `replicas: 3` to the shared volume. B, ...",
    "condition_of_validity": "Logical rollback is only sound under one of three conditions, and an agent system must be able to *prove* which condition holds before it forks: 1. **Effect isolation.** Each speculative branch operates on a copy-on-write or namespaced view of every mutable resource it touches, and the namespace is committed atomically only for the winner. This is the strong...",
    "decision_boundary": "The boundary is: **a branch may be speculatively forked only if its tool-call closure is provably isolated, or if the orchestrator has registered a verified compensation for every mutating call in that closure before the call is allowed to execute.** Two operational rules follow. First, the orchestrator must compute the *effect footprint* of each branch — th...",
    "operational_effect": "When the boundary is violated, the observable effect is *post-rollback state divergence*: the winning branch's context describes a world that the losing branches mutated and that rollback did not restore. This manifests as verification replay discrepancies (the auditor's replay of the winner disagrees with a fresh read of the environment), as downstream tool..."
  },
  "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": "6f9a92397cb127b9387e9dba2a095036c08eb1f45159171cbc86db6805111166",
    "verified_classes": [
      "RollbackIntegrityError",
      "Branch",
      "Orchestrator"
    ],
    "verified_functions": [
      "fork",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
