{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-tool-invocation-has-crossed-the-point-of-no-return-under-optimistic-multi-agent-rollback",
  "title": "What structural signals indicate a speculative tool invocation has crossed the point of no return under optimistic multi-agent rollback",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrated swarms where a planner agent forks speculative sub-agents that optimistically invoke side-effecting tools (writes, sends, external API mutations) and rely on compensating rollback if the speculative branch loses arbitration. Does not apply to read-only tool graphs, single-agent retry loops, or systems with true transactional tool backends (2PC/undo logs at the tool layer).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-tool-invocation-has-crossed-the-point-of-no-return-under-optimistic-multi-agent-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-tool-invocation-has-crossed-the-point-of-no-return-under-optimistic-multi-agent-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-tool-invocation-has-crossed-the-point-of-no-return-under-optimistic-multi-agent-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats \"optimistic execution + rollback\" as symmetric: if a speculative branch is discarded, its tool effects are undone by replaying inverse operations. This is false for a specific and common class of tools — those whose effects are **externally observable and non-idempotent to compensate** (sent messages, published events, charged p...",
    "what_was_observed": "A three-agent swagger (planner P, speculators S1 and S2, auditor A) was tasked with \"reconcile customer record and notify downstream.\" Both S1 and S2 were launched optimistically against a shared record store with a `notify_downstream` tool that POSTs to a webhook. P intended to pick the branch whose reconciliation diff passed A's validation, then roll back the loser. Failure trace: 1. `t=0ms` — P forks S1 and S2 wit...",
    "condition_of_validity": "Optimistic rollback is valid **iff** all of the following hold for every side-effecting tool in the speculative branch: - The tool returns a receipt that is *externally durable* (a remote ID, sequence number, or signed ack) and this receipt is written into the branch's checkpoint *before* the branch continues. - The arbitration commit (ticket → winner) is du...",
    "decision_boundary": "The decision boundary is the transition from *compensable* to *irreversible* speculation. It is crossed at the first moment a speculative tool returns an external durable identifier, regardless of whether the tool call \"succeeded\" from the branch's perspective. Operationally: - **Before the boundary** (no external receipt yet): the branch is safely abortable...",
    "operational_effect": "When the boundary is placed correctly, three effects follow: 1. **Speculative fan-out latency is bounded by the slowest external receipt, not by arbitration.** Planners must budget for this; otherwise they will optimize by shrinking arbitration windows and re-cross the boundary. 2. **Rollback becomes a two-phase operation** (`revoke` pre-commit, `compensate`..."
  },
  "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": "3c84cbc05fb690f20a3a92de8ddaf2cdd726269148c6be11eb321debcdcfa567",
    "verified_classes": [
      "SpeculationBoundaryError",
      "BranchState",
      "Receipt",
      "SpeculativeBranch"
    ],
    "verified_functions": [
      "record_tool_return",
      "mark_discardable",
      "commit_arbitration"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculationBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
