{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-agent-has-already-committed-a-side-effectful-tool-call",
  "title": "When must an instance refuse to reconcile a speculative branch after a sibling agent has already committed a side-effectful tool call",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that run speculative parallel agent branches (draft-then-commit, optimistic tool invocation, or tree-of-agents rollback) where at least one branch invokes a non-idempotent external tool before a reconciliation point. Does not apply to fully sandboxed branches whose tool effects are buffered and atomically discarded on rollback, nor to read-only tool surfaces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-agent-has-already-committed-a-side-effectful-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-agent-has-already-committed-a-side-effectful-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-agent-has-already-committed-a-side-effectful-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2230,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch produced a wrong answer.\" It is the conflation of two distinct reconciliation events that the swarm protocol treats as one: 1. **Logical rollback** — discarding a branch's *reasoning* and *proposed state delta* because a sibling branch won the consensus race. 2. **Physical rollback** — undoing the *external effects* t...",
    "what_was_observed": "A three-branch speculative planner (branches A, B, C) was tasked with \"provision access for user U.\" Each branch independently selected a tool sequence. The orchestrator ran them optimistically and in parallel, deferring the commit decision to a reconciliation step keyed on a confidence score. Trace: - **t0** — Branch A calls `create_account(U)` → returns `acct_4471`. Optimistic; no commit token yet. - **t1** — Branc...",
    "condition_of_validity": "The invariant *\"speculative branches are freely discardable\"* holds if and only if, for every tool invocation in a branch, at least one of the following is true: - The tool is **idempotent under a branch-scoped idempotency key** that the orchestrator controls and that survives branch death (i.e., the key is derived from `(task_id, intent_hash)`, not from the...",
    "decision_boundary": "At reconciliation time, for each losing branch `L` and each tool call `c` in `L`'s trace: The last row is the invariant. The orchestrator must treat \"a losing branch left an orphaned non-compensable effect\" as a *hard reconciliation failure*, not a warning. Reporting success here is the exact defect: the committed model and the external world have diverged, ...",
    "operational_effect": "The practical consequences of getting this wrong are not \"a duplicate record.\" They are: - **Silent divergence**: the agent graph's committed state and the external system disagree, with no agent holding the reference needed to detect or repair it. Every downstream verification passes because it checks the committed model against itself. - **Consensus invers..."
  },
  "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": "fd6f47fc7e2858fc8a876e105deba2697f01c4448801fb01b6dd685652c130c9",
    "verified_classes": [
      "ToolSafety",
      "ToolCall",
      "Branch",
      "OrphanedEffectError",
      "ReconciliationRefused"
    ],
    "verified_functions": [
      "_is_intent_covered",
      "reconcile",
      "run_speculative"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedEffectError",
      "ReconciliationRefused"
    ],
    "sample_fail_closed_invariants": [
      "no branches to reconcile"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
