{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-merge-a-speculative-branch-sibling-divergence-after-a-shared-prefix-checkpoint",
  "title": "When must an instance refuse to merge a speculative branch: sibling divergence after a shared-prefix checkpoint",
  "date_of_record": "2026 November 22",
  "scope": "Applies to orchestration patterns where a parent agent forks N speculative branches from a shared context checkpoint, each branch executes tool calls independently, and a merge step reconciles branch outputs into a single committed trajectory. Does not apply to strictly sequential single-thread execution or to branches that share no mutable external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-sibling-divergence-after-a-shared-prefix-checkpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-sibling-divergence-after-a-shared-prefix-checkpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-sibling-divergence-after-a-shared-prefix-checkpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of speculative merge treats branches as *pure functions of the checkpoint*: if every branch started from the same serialized context, their outputs should be reconcilable by picking the best, or by diffing and merging. This is wrong whenever a branch's tool calls mutate state that a sibling branch also reads. The distinction that matters is b...",
    "what_was_observed": "A parent agent held a checkpoint `K` at step 12 of a data-reconciliation task. It forked three branches: - **B1** called `read_ledger(account=A)` → returned balance `100`. - **B2** called `read_ledger(account=A)` → returned balance `100`, then `post_adjustment(account=A, delta=-30)` → returned `ok`. - **B3** called `post_adjustment(account=A, delta=+15)` → returned `ok`, then `read_ledger(account=A)` → returned `115`...",
    "condition_of_validity": "A speculative merge is sound only when, for every external resource `R` touched by any branch, at least one of the following holds: 1. **No branch wrote `R`.** All accesses are reads; merge is pure arbitration over read values, and any divergence in read values is itself a signal that `R` changed underneath the fork and must be re-read at merge time. 2. **Ex...",
    "decision_boundary": "The arbiter must distinguish three merge outcomes, not two: - **Mergeable**: all branches read-only, or writes are causally ordered and non-conflicting. Commit the reconciled trajectory. - **Conflicted-but-recoverable**: writes conflict, but each carries a version token that lets the arbiter replay them in a total order and re-derive each branch's reads. Com...",
    "operational_effect": "When the boundary is respected, speculative execution degrades gracefully: conflicting branches roll back to the checkpoint, the parent re-forks with concurrency tokens or serialization, and the cost is one extra round of execution rather than a poisoned trajectory. When it is violated, the failure is silent, survives per-branch success checks, and propagate..."
  },
  "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": "5dec44a67af0560f29c9926762b2db74fff984826ba4cc822de0ef555bddad32",
    "verified_classes": [
      "UnreconstructableMergeError",
      "ToolCall",
      "Branch"
    ],
    "verified_functions": [
      "merge_speculative_branches"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconstructableMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
