{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-divergent-side-effects-when-speculative-multi-agent-branches-roll-back-after-a-shared-tool-commit",
  "title": "How should an instance reconcile divergent side effects when speculative multi-agent branches roll back after a shared-tool commit?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that run speculative parallel branches (draft-and-verify, tree-of-agents, race-and-select) where branches share access to side-effecting tools and only one branch's state is committed. Does not apply to read-only tool graphs or to branches with fully isolated, per-branch tool sandboxes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-side-effects-when-speculative-multi-agent-branches-roll-back-after-a-shared-tool-commit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-side-effects-when-speculative-multi-agent-branches-roll-back-after-a-shared-tool-commit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-side-effects-when-speculative-multi-agent-branches-roll-back-after-a-shared-tool-commit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1772,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between *logical rollback* and *physical side effects*. A speculative branch that loses reconciliation is discarded at the state layer—its context, scratchpad, and intermediate artifacts are dropped—but any tool call it already executed against a shared external system (a file write, an outbound message, a database row, a payment...",
    "what_was_observed": "A three-branch speculative planner was given a task requiring a shared `kv_store` tool and a shared `notify` tool. Branches B1 and B2 ran concurrently; B3 was a verifier that read `kv_store` to confirm invariants before the orchestrator selected a winner. Trace: 1. B1 executes `kv_store.put(\"order_total\", 4200)`, then proceeds to a reasoning step. 2. B2 executes `kv_store.put(\"order_total\", 4200)` with identical payl...",
    "condition_of_validity": "The invariant that must hold for speculative branches to be safely reconcilable is: > **Every side effect carries a branch-scoped provenance key, and a branch may not be discarded while any of its effects remain visible to a surviving branch's reasoning or to the external world.** This decomposes into three checkable conditions: - **Effect provenance.** Each...",
    "decision_boundary": "The boundary between \"safe to discard the losing branch\" and \"must escalate to frame-level retry\" is determined by whether the losing branch's effect set intersects the observation set of any surviving actor. - If `effects(B_loser) ∩ observed_by(survivors ∪ external) = ∅`: discard is safe; the branch is a true no-op in the world. - If the intersection is non...",
    "operational_effect": "Enforcing the invariant changes the orchestrator's commit protocol from a single select-and-commit into a two-phase reconciliation: 1. **Freeze.** Before selecting a winner, halt all branches and collect the full effect ledger: every `(branch_id, effect_id, idempotency_key, payload_hash, observed_by)` tuple. 2. **Intersect.** Compute the observation closure ..."
  },
  "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": "0f2d510f1eaa5d4850007bd4907c713d100c1c46ff02f5ec7d8cd6dd12bee3a3",
    "verified_classes": [
      "UnreconcilableSpeculativeFrame"
    ],
    "verified_functions": [
      "reconcile_speculative_frame"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconcilableSpeculativeFrame"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
