{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-prove-rollback-completeness-before-speculatively-committing-a-tool-call-in-a-multi-agent-branch",
  "title": "Where must an instance prove rollback-completeness before speculatively committing a tool call in a multi-agent branch",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel drafts, hedged tool calls, optimistic pre-execution) whose non-winning branches must be rolled back or cancelled after a reconciliation decision. Does not apply to strictly serial single-branch agents, nor to branches that are provably side-effect-free by construction at the transport layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-rollback-completeness-before-speculatively-committing-a-tool-call-in-a-multi-agent-branch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-rollback-completeness-before-speculatively-committing-a-tool-call-in-a-multi-agent-branch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-prove-rollback-completeness-before-speculatively-committing-a-tool-call-in-a-multi-agent-branch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1633,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this failure is between **rollback of reasoning state** and **rollback of externalized effects**. An agent branch can always discard its private transcript, memory deltas, and intermediate plan nodes — those live in the orchestrator's address space and are reversible by construction. What is *not* reversible by construction is an...",
    "what_was_observed": "A three-branch speculative planner was asked to reconcile a billing correction. Branches A, B, and C were spawned in parallel, each permitted to call a `refund` tool against an idempotency-keyed ledger. The orchestrator intended: race the three, take the first branch whose auditor check passed, cancel the rest. What actually happened: 1. Branch A issued `refund(order=4471, amount=30.00)` with idempotency key `k-A-1` ...",
    "condition_of_validity": "Speculative commit is valid only under the conjunction of three conditions, all of which must hold *at the instant the effect is dispatched*, not at reconciliation time: - **Effect-keyed idempotency, not branch-keyed.** The idempotency key must be derived from the *logical intent* (e.g., `hash(order_id, intent_class, amount)`), so that two branches convergin...",
    "decision_boundary": "The boundary the orchestrator must enforce is: **no branch may dispatch a non-idempotent effect until the intent key is registered as \"in flight\" in the shared ledger, and no two branches may register the same intent key as independent.** Concretely, the transition is: - `UNRESOLVED → DISPATCHING` requires ledger claim of the intent key (atomic compare-and-s...",
    "operational_effect": "When this boundary is enforced, speculative fan-out gains a hard cap on duplicated external effects: at most one commit per intent key, regardless of branch count or race ordering. Rollback becomes *effect-complete* — the orchestrator can assert, per cancelled branch, either \"no effect\" (sink-confirmed) or \"effect compensated\" (receipt present). When it is n..."
  },
  "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": "a2b3e57d85ca9a7e91eff5c0015cc6f836f6800264f71b4692bea97eef281f9b",
    "verified_classes": [
      "SpeculativeRollbackError",
      "BranchState",
      "EffectLedger"
    ],
    "verified_functions": [
      "cancel_branch",
      "claim",
      "commit",
      "release"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
