{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-commit-an-optimistic-tool-call-branch-it-can-no-longer-reconcile-after-a-speculative-peer-rollback",
  "title": "Why does an instance commit an optimistic tool-call branch it can no longer reconcile after a speculative peer rollback?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems that run speculative execution branches in parallel (draft-and-verify, optimistic fan-out, or speculative tool-call pipelining) and reconcile branches via a shared commit log or effect ledger. Does not apply to strictly serialized single-agent execution or to systems where every tool call is gated by a synchronous two-phase commit before any side effect is emitted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-an-optimistic-tool-call-branch-it-can-no-longer-reconcile-after-a-speculative-peer-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-an-optimistic-tool-call-branch-it-can-no-longer-reconcile-after-a-speculative-peer-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-an-optimistic-tool-call-branch-it-can-no-longer-reconcile-after-a-speculative-peer-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1651,
    "python_slice_tokens": 195,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a race on the *write* to shared state. It is a race on the *evidence that a branch was ever valid*. In speculative multi-agent execution, agent A emits a tool call optimistically (e.g., `charge_card`, `send_email`, `delete_row`) and records a speculative intent in a branch ledger, while a peer agent B independently speculates on a competin...",
    "what_was_observed": "A three-agent planner/executor/auditor swarm ran a refund workflow. Executor E1 speculatively called `issue_refund(order=4471, amount=120)` and captured pre-image `balance=1000, status=PAID`. In parallel, executor E2 (a redundant branch spawned for latency) speculatively called `adjust_balance(order=4471, delta=-20)` and captured the same pre-image `balance=1000`. The auditor rejected E1's branch (policy: refunds ove...",
    "condition_of_validity": "The naive additive-inverse rollback is valid **only if** no other branch mutated the same resource between pre-image capture and rollback. Formally, rollback `R(b)` is sound iff `version(resource) at capture(b) == version(resource) at R(b)`. Speculative fan-out violates this by construction whenever two branches touch a shared resource. The guardrail is a **...",
    "decision_boundary": "The boundary is whether the resource exposes a monotonic version (or a content hash / ETag) that is captured atomically with the pre-image. If it does, the reconciler can detect divergence and refuse inverse rollback. If it does not — common with third-party tool calls that return only a success boolean — the system has no way to distinguish \"my rollback res...",
    "operational_effect": "Without the versioned pre-image and CAS guard, speculative fan-out silently converts rejected branches into phantom writes. The blast radius is bounded only by how long reconciliation is delayed relative to peer commits: the longer the auditor takes, the more peer commits land between capture and rollback, and the more the additive inverse drifts. In product..."
  },
  "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": "13baa4d2df77c0be069d0c0ce430db1d651f8ef4d697dcc7fdca9aafe8e46bcc",
    "verified_classes": [
      "UnreconcilableSpeculativeBranch"
    ],
    "verified_functions": [
      "rollback_speculative_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconcilableSpeculativeBranch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
