{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-an-optimistic-tool-invocation-has-produced-an-irreversible-exter",
  "title": "Under what conditions must an instance refuse to reconcile a speculative branch after an optimistic tool invocation has produced an irreversible external side effect",
  "date_of_record": "2026 November 21",
  "scope": "Applies to multi-agent systems that fork speculative branches (parallel hypothetical executions), invoke external tools optimistically before branch commit, and later attempt branch reconciliation or rollback. Does not apply to pure in-context reasoning branches with no external effect surface, nor to single-agent retry loops where no branch arbitration exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-an-optimistic-tool-invocation-has-produced-an-irreversible-exter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-an-optimistic-tool-invocation-has-produced-an-irreversible-exter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-an-optimistic-tool-invocation-has-produced-an-irreversible-exter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1979,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent swarms is often modeled as a transaction: fork N branches, let each invoke tools, pick a winner, roll back losers. This model is sound only when every tool invocation is *logically reversible* — i.e., the branch's effects can be annihilated by a compensating action whose success is guaranteed or whose failure is itself recovera...",
    "what_was_observed": "A three-branch planner (branches `A`, `B`, `C`) forked at a decision node. Each branch was granted an optimistic tool lease permitting up to two invocations against a `notify` tool (email dispatch) and a `reserve` tool (inventory hold). Branch `A` invoked `reserve(item=4471, qty=3)` and received `hold_id=H-91`. Branch `B` invoked `reserve(item=4471, qty=3)` and received `hold_id=H-92` — the inventory service had capa...",
    "condition_of_validity": "The reconciler may proceed with branch discard only under the conjunction: - **(V1) Effect-closure:** every effect in `S_branch.effects` has `externally_visible=false`, OR has a compensating action `comp(e)` that is (i) supported by the tool, (ii) idempotent under repeated application, and (iii) ordered strictly before any observer capable of acting on `e`. ...",
    "decision_boundary": "The boundary is sharp and asymmetric: - If `effect.reversible == true` AND `comp(e)` verified applied → discard is safe; branch may be closed as `clean`. - If `effect.reversible == false` AND `effect.visibility == immediate` → **refuse reconciliation**; the branch is not discardable. Either commit the branch's effect explicitly (accepting the duplicate) or e...",
    "operational_effect": "Systems that adopt the pre-reserved-compensation rule see three changes: 1. **Lease admission cost rises.** Each optimistic invocation must acquire a compensation token (a recall capability, a reversal warrant, a hold-release handle) before the effect fires. Tools that cannot issue such tokens are demoted to `non-speculative` and may only be invoked after br..."
  },
  "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": "a532d20b1e5d1d6a4b2ec293a4598afdcbf4a3bfd2f649ea06c6238cb63c0283",
    "verified_classes": [
      "IrreversibleSpeculativeEffect",
      "BranchEffect"
    ],
    "verified_functions": [
      "reconcile_branch",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IrreversibleSpeculativeEffect"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
