{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-roll-back-a-speculative-branch-irreversible-side-effect-leakage-across-speculative-multi-agent-rollback",
  "title": "When must an instance refuse to roll back a speculative branch: irreversible side-effect leakage across speculative multi-agent rollback",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that fork multiple agent instances against a shared external world (tool calls, message sends, file writes, API mutations) and later commit one branch while discarding the rest. Does not apply to pure-reasoning speculative decoding or branches whose tool surface is fully sandboxed and idempotent by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-roll-back-a-speculative-branch-irreversible-side-effect-leakage-across-speculative-multi-agent-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-roll-back-a-speculative-branch-irreversible-side-effect-leakage-across-speculative-multi-agent-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-roll-back-a-speculative-branch-irreversible-side-effect-leakage-across-speculative-multi-agent-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1718,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A speculative branch is only rollback-safe if every effect it produced is *revocable and isolated*. The failure mode here is not \"the wrong branch won\"—consensus and scoring handle that. The failure is that a discarded branch already leaked an irreversible side effect into the shared world, and the rollback protocol, which models state as a checkpointed cont...",
    "what_was_observed": "A branch-and-rollback orchestrator spawned three instances (A, B, C) from a common checkpoint to resolve a task requiring a destructive administrative action. Each branch ran the same plan shape: query state, decide, then act. Branch B decided early to call a `revoke_access` tool against a production identity provider, then continued reasoning and ultimately produced a lower-confidence plan than branch A. The orchest...",
    "condition_of_validity": "Rollback is sound if and only if, at the moment of the discard decision, the following holds for every effect `e` produced by the discarded branch: 1. `e` is recorded in the orchestrator's transaction log with a resolvable compensating action (a true inverse, not a re-execution), **or** 2. `e` has not yet been flushed to the external system (staged/simulated...",
    "decision_boundary": "The orchestrator must classify every tool by two orthogonal properties at registration time—`invertible` and `staged_capable`—and refuse to speculate across any tool that is neither. Concretely: - **Invertible + inline:** safe to run during speculation; rollback issues the compensating call. - **Non-invertible + stageable:** the call is captured as an intent...",
    "operational_effect": "Once the boundary is enforced, the orchestrator's branch journal and the external world's ledger become reconcilable by construction: every effect in the journal is either compensated or was never flushed. The observable consequence is that commit decisions become *total*—there is no state in which the orchestrator believes a branch was discarded while the w..."
  },
  "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": "b270c0ea51be70fcc4767adce8be5de2bb58e652883312aa9921e51d5cae7d53",
    "verified_classes": [
      "UnsafeRollbackError",
      "ToolSpec",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "world_digest",
      "register_tool",
      "rollback_branch",
      "commit_branch",
      "execute"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnsafeRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "executor must be bound; refusing to run staged intent without a verifiable transaction log"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
