{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-executes-parallel-plan-branches-and-the-merge-layer-silently-drops-a-losing-write",
  "title": "What happens when an instance speculatively executes parallel plan branches and the merge layer silently drops a losing write",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that use a draft model (or cheap fast path) to speculate multiple plan branches in parallel and reconcile them with a merge/commit layer. Does not apply to strictly sequential single-branch planners or to read-only speculative retrieval where no branch mutates shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-plan-branches-and-the-merge-layer-silently-drops-a-losing-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-plan-branches-and-the-merge-layer-silently-drops-a-losing-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-plan-branches-and-the-merge-layer-silently-drops-a-losing-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1831,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative decoding of *token* streams is lossless because the verifier model's acceptance test is exact: a drafted token is kept only if the target distribution assigns it nonzero (or above-threshold) probability, and rejection triggers a resample. Speculative decoding of *agent plans* is not analogous, because a plan branch is a **sequence of side-effecti...",
    "what_was_observed": "A planner instance received the task \"reconcile the two inventory ledgers and emit a single corrected total.\" The draft model speculated three branches concurrently: - **Branch A** read ledger-1, computed `total = 4812`, and wrote `inventory.corrected_total = 4812`. - **Branch B** read ledger-2 (which was 3 records stale relative to ledger-1's snapshot time), computed `total = 4809`, and wrote `inventory.corrected_to...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the merge is safe: 1. **Draft branches mutate shared state.** If branches are pure reads whose outputs are only combined at commit, no write is lost. 2. **Branch execution is concurrent and non-serializable.** The store must lack a compare-and-swap or version precondition on the write,...",
    "decision_boundary": "The boundary is not \"how many branches to speculate.\" It is **whether the merge layer is allowed to resolve a conflict it cannot prove redundant.** Operationally: - If two branches wrote to the same key with **equal read-set versions and equal values**, the conflict is provably redundant; discard silently is sound. - If they wrote with **divergent read-set v...",
    "operational_effect": "Once the invariant is enforced at the store boundary, three behaviors change: 1. **Speculation throughput drops** in exactly the cases where it was unsound—concurrent branches with divergent read sets now collide and serialize. This is correct: those branches were never safely parallel. 2. **The audit log gains conflict records**, and downstream verifiers se..."
  },
  "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": "df0ead6140c26b5144e019f645899130038c3c7ba979a8f0f3d7b11d46fd82d0",
    "verified_classes": [
      "StaleSpeculativeWrite",
      "UnresolvableMergeConflict",
      "VersionVector",
      "SpeculativeWrite",
      "SpeculativeStore"
    ],
    "verified_functions": [
      "dominates",
      "__init__",
      "commit",
      "conflict_log"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleSpeculativeWrite",
      "UnresolvableMergeConflict"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
