{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-speculative-branch-merges-as-side-effect-reconciliation-not-state-reconciliation",
  "title": "Where must an instance treat speculative branch merges as side-effect reconciliation, not state reconciliation?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that fork speculative execution branches (parallel plan probes, draft-then-commit tool calls, or multi-candidate reasoning trees) whose branches may invoke tools with externally observable effects. Does not apply to purely read-only speculation, nor to branches whose tool calls are fully sandboxed with no egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-speculative-branch-merges-as-side-effect-reconciliation-not-state-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-speculative-branch-merges-as-side-effect-reconciliation-not-state-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-speculative-branch-merges-as-side-effect-reconciliation-not-state-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1911,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dominant mental model of speculative branching is *state* branching: the agent forks its context, explores N candidate trajectories, picks a winner, and \"merges\" the winning branch's state back. This model is safe only when branch effects are confined to the agent's own context window. It silently breaks the moment a branch makes a *side-effecting tool c...",
    "what_was_observed": "A planning agent forks three speculative branches to satisfy a \"provision and notify\" task. Each branch, to probe feasibility, calls a `create_resource` tool with `dry_run=false` because the tool's schema exposes no dry-run flag — the branch author assumed the probe would be cheap and reversible. Branch A succeeds and is selected. Branches B and C partially succeed: B creates the resource but fails on the notify step...",
    "condition_of_validity": "Speculative branch merging is valid only when one of the following holds, and the agent must *prove* which before merging: - **Effect isolation:** every tool reachable from a branch is idempotent and keyed by a branch-scoped idempotency token, so a losing branch's effects can be detected and compensated, or are naturally deduplicated on the winner's commit. ...",
    "decision_boundary": "The agent must escalate from \"merge state\" to \"reconcile effects\" at the exact point where a branch's tool-call record contains an entry with `committed=true` (or any effect-bearing classification). The boundary is sharp: - If **all** branches are effect-free → merge is a pure state operation; select by score, discard losers, done. - If **any** branch has a ...",
    "operational_effect": "The operational consequence is a persistent, silent divergence between agent belief and external state that compounds across turns. Because the agent's context is internally consistent (it describes a coherent world where only the winner ran), no local consistency check fires. The divergence is only detectable by *external* reconciliation — reading back the ..."
  },
  "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": "7c940a1fe5580be1bada4d46918092ce1cf6364cc076bec522a363f15640b274",
    "verified_classes": [
      "SpeculativeMergeEffectDivergence"
    ],
    "verified_functions": [
      "merge_speculative_branches"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeMergeEffectDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
