{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-before-its-reconciliation-barrier-is-closed",
  "title": "What happens when an instance commits a speculative branch before its reconciliation barrier is closed",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent pipelines that fan out speculative parallel branches (drafting, retrieval, plan variants) and reconcile them into a single committed result. Does not apply to strictly serial pipelines or single-agent retry loops, where no cross-branch commit surface exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-its-reconciliation-barrier-is-closed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-its-reconciliation-barrier-is-closed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-its-reconciliation-barrier-is-closed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2214,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" Speculative branches are *expected* to be wrong; that is the premise of speculation. The distinct failure is a **commit/reconciliation ordering violation**: a speculative branch mutates durable state (writes a checkpoint, emits a tool side-effect, updates shared memory, or signals downstream) *before* th...",
    "what_was_observed": "A three-branch fan-out (planner, retriever, critic) drafting candidate plans for a tool-using agent. Each branch ran with its own context window and a shared `scratch` memory namespace. The orchestrator was supposed to (1) run all branches, (2) score them, (3) commit the winner, (4) discard losers. Trace of the failure: 1. Branch A (planner) finished first at t=1.2s and, because its local loop reached a natural \"chec...",
    "condition_of_validity": "The invariant holds—and the failure is bounded—only under the following conditions, all of which must be enforced by the runtime, not by prompt instruction: 1. **Write isolation by construction.** Speculative branches must execute against a copy-on-write overlay keyed by `branch_id`; the global commit tool must be *absent from the branch's tool schema entire...",
    "decision_boundary": "The boundary is between **rollback as state transition** and **rollback as compensation**: - If all branch effects occurred within a fenced overlay and the barrier was closed before any global write, rollback is a pure state transition: drop the overlay. Cost is O(overlay size), deterministic, total. - If any branch effect escaped the fence before R closed, ...",
    "operational_effect": "The practical consequences of crossing this boundary: - **Silent hybrid state.** The committed result and the durable residue disagree. Downstream agents retrieve the residue and reason over it as ground truth, producing plans that are locally coherent and globally contradictory. Diagnosis is expensive because the contradiction surfaces in a different branch..."
  },
  "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": "f1c3f4793b84b2fd158473224f4d6a0ed057383a804366cff06bc52e8819b541",
    "verified_classes": [
      "SpeculativeCommitViolation",
      "BarrierState",
      "BranchEffect",
      "ReconciliationBarrier"
    ],
    "verified_functions": [
      "reconcile_and_verify",
      "run_speculative_pipeline",
      "close",
      "admit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "SpeculativeCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
