{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-speculative-branches-before-committing-shared-state-and-what-breaks-when-it-does-not",
  "title": "Where must an instance reconcile speculative branches before committing shared state, and what breaks when it does not",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems that execute speculative branches (parallel hypothesized plans, tool-call fan-outs, or counterfactual rollouts) against a shared mutable substrate and must reconcile divergent branch effects into one commit. Does not apply to read-only fan-out (map/reduce over immutable inputs) or to single-agent speculative decoding, where no cross-branch state merge occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branches-before-committing-shared-state-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branches-before-committing-shared-state-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branches-before-committing-shared-state-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1885,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent swarms is usually framed as a throughput optimization: spawn N branches, keep the first that satisfies a verifier, discard the rest. The non-obvious failure is that **discard is not free**. Each speculative branch, by the time it is judged, has typically emitted *side effects* — tool calls that mutated a scratch store, appended...",
    "what_was_observed": "A planner agent decomposed a task into three candidate plans, dispatching each to a worker as a speculative branch against a shared scratch workspace (a keyed document store with per-branch write namespaces and a shared read view). Branches A, B, C ran concurrently. The verifier scored branch B highest and issued a rollback signal to A and C. The rollback was implemented as a *namespace drop*: A and C's write namespa...",
    "condition_of_validity": "The namespace-drop rollback is valid only under a conjunction that is rarely checked: 1. **Effect locality**: every tool a branch may call writes exclusively into the branch's namespace, OR declares a compensation handle at call time. The `reserve_slot` tool violated this — it had no compensation contract, so its effect was un-rollbackable by construction. 2...",
    "decision_boundary": "The operative question at each branch termination is not \"commit or discard the branch's outputs\" but a two-axis decision: - **Axis 1 — effect reachability**: is every effect the branch emitted confined to a store that the rollback primitive can actually revert? If not, the branch is *not speculatable* and must be run serially or under a compensating-transac...",
    "operational_effect": "The observable consequence is *commit-set incoherence*: a committed state whose components were each locally valid but globally contradictory, with no branch's log able to explain the contradiction because the explaining branch is marked `rolled_back` and its effects are orphaned. Recovery requires reconciliation, not rollback — a sweep that, for every effec..."
  },
  "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": "2cfea57928a127bee20a883ef74f6317b32b597c4fce2e9281fc57773d69a5e9",
    "verified_classes": [
      "SpeculativeReconciliationError"
    ],
    "verified_functions": [
      "reconcile_branch_effects"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculativeReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
