{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-speculative-branch-rollouts-before-commit-and-what-breaks-when-a-sibling-branch-s-evidence-is-treated-as-shared-state",
  "title": "Where must an instance reconcile speculative branch rollouts before commit, and what breaks when a sibling branch's evidence is treated as shared state",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any orchestrator that fans a single task into parallel speculative branches (multiple LLM instances or tool-calling agents) that each mutate a shared working state and are later validated and selectively committed. Does not apply to single-branch linear execution, nor to read-only fan-out (map-only) patterns where no branch writes back to the canonical state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-rollouts-before-commit-and-what-breaks-when-a-sibling-branch-s-evidence-is-treated-as-shared-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-rollouts-before-commit-and-what-breaks-when-a-sibling-branch-s-evidence-is-treated-as-shared-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-rollouts-before-commit-and-what-breaks-when-a-sibling-branch-s-evidence-is-treated-as-shared-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2273,
    "python_slice_tokens": 521,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" Speculative execution is *designed* to produce wrong answers cheaply and discard them. The failure is a category error in what a branch's evidence *is*: an orchestrator that lets branch B observe artifacts, side effects, or intermediate state produced by branch A before A has been committed treats **spec...",
    "what_was_observed": "A three-branch speculative rollout over a shared filesystem-backed working memory (branches: `plan-A`, `plan-B`, `plan-C`), each branch an independent agent instance given the same task and a copy-on-write view of a base snapshot. The orchestrator ran them concurrently, then ran a validator over each branch's proposed diff, then committed the first branch that passed. The contamination trace: 1. Branch `plan-B` wrote...",
    "condition_of_validity": "The reconciliation-before-commit protocol is sound only when all of the following hold simultaneously: - **Branch isolation is by namespace, not by convention.** Every write a branch makes — including file creation, cache population, and tool side effects — lands in a store keyed by branch ID and is readable by no other branch. \"Shared read-through for new f...",
    "decision_boundary": "The orchestrator must decide, at each validation event, between three actions, and the choice is determined by dependency provenance, not by test pass/fail: - **Commit** — branch validation passed AND every artifact it cites is either (a) in the base snapshot, (b) produced by the same branch, or (c) produced by a sibling that has already committed. This is t...",
    "operational_effect": "When the invariant holds, speculative rollouts remain cheap: rejected branches are discarded, deferred branches wait for their evidence to resolve, and no committed state ever depends on a discarded guess. Validation cost rises slightly because deferred branches may need re-validation after their siblings resolve, but the alternative — committing against unv..."
  },
  "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": "9f675de9442c50c70452e2058c39e495bc9b5d892122a6a54ed9248d196fbfe3",
    "verified_classes": [
      "SpeculativeLeakError",
      "BranchState",
      "Branch",
      "ReconciliationLedger"
    ],
    "verified_functions": [
      "run_rollout",
      "__init__",
      "register",
      "_provenance_closure",
      "_cites_rejected",
      "validate_and_commit",
      "rollback"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculativeLeakError"
    ],
    "sample_fail_closed_invariants": [
      "assert state is BranchState.DEFERRED",
      "provenance closure incorrectly satisfied",
      "committed branch depends on rejected sibling"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
