{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-speculative-branch-rollback-as-unsafe-once-a-tool-call-has-crossed-the-commit-horizon",
  "title": "Under what conditions must an instance treat speculative branch rollback as unsafe once a tool call has crossed the commit horizon",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestrators that fork speculative execution branches, dispatch tool calls before branch convergence, and roll back losing branches on verification failure. Does not apply to purely read-only tool surfaces or to orchestrators that serialize tool dispatch behind branch commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-rollback-as-unsafe-once-a-tool-call-has-crossed-the-commit-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-rollback-as-unsafe-once-a-tool-call-has-crossed-the-commit-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-speculative-branch-rollback-as-unsafe-once-a-tool-call-has-crossed-the-commit-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2258,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative branch-and-verify systems are typically architected around a single mental model: a branch is a disposable overlay of state, and rollback is a subtraction—discard the overlay, resume from the last committed checkpoint. This model holds cleanly for *reasoning* tokens, which are inert and reversible. It does **not** hold for *tool calls*, which are...",
    "what_was_observed": "A three-agent speculative swarm (planner, two speculative executors `S_A` and `S_B`, one verifier) was tasked with reconciling a ledger. Both speculative branches were permitted to dispatch tool calls in parallel to reduce latency. `S_A` dispatched `ledger.post_adjustment(id=4471, amount=-1200)`; `S_B` dispatched a competing adjustment for the same reconciliation window. The verifier selected `S_B`; `S_A` was marked ...",
    "condition_of_validity": "The invariant \"rollback is safe once cancellation is acknowledged\" is valid only under the conjunction: - **C1 (Pre-horizon cancellation):** the cancellation is delivered and acknowledged *before* the remote executor passes its own commit horizon. This requires the orchestrator to know the remote horizon, which it typically does not. - **C2 (Idempotent or co...",
    "decision_boundary": "The operational decision rule an instance must apply before rolling back a branch: > If any tool call dispatched by the branch has an unknown or unverified remote commit state, the branch is **not rollback-safe**. It must be transitioned to `QUARANTINED` rather than `ROLLED_BACK`, and a reconciliation probe must be issued against the external system to deter...",
    "operational_effect": "Enforcing the quarantine-on-unknown-state rule changes the system in three concrete ways: 1. **Latency cost moves off the happy path.** Speculative dispatch is still permitted, but commit now requires a read-back barrier for branches that dispatched write tools. The cost is paid only on branches that lose, and only for the tools they touched—not for the whol..."
  },
  "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": "56dd7a0c596516bea3bc9f6dd863f3bbc5a3724531f28d11d05995dd6783a22b",
    "verified_classes": [
      "RollbackSafetyError",
      "BranchState",
      "RemoteEffect",
      "ToolCall",
      "SpeculativeBranch"
    ],
    "verified_functions": [
      "rollback_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackSafetyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
