{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-speculative-branch-reconciliation-as-a-commit-barrier-rather-than-a-best-effort-merge",
  "title": "In what scenarios must an instance treat speculative branch reconciliation as a commit barrier rather than a best-effort merge",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent meshes where a coordinator fans a task into speculative branches (parallel reasoning paths or tool-call variants) that share a single durable event log and are reconciled into one committed state. Does not apply to single-agent retries, stateless fan-out with no shared log, or branches that never write to durable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-reconciliation-as-a-commit-barrier-rather-than-a-best-effort-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-reconciliation-as-a-commit-barrier-rather-than-a-best-effort-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-speculative-branch-reconciliation-as-a-commit-barrier-rather-than-a-best-effort-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1948,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"branches disagree.\" Branches are *supposed* to disagree—that is the point of speculation. The failure is treating reconciliation as a **merge** (pick a winner, discard losers, continue) when the mesh actually requires it to be a **barrier** (no branch's side effects become visible to any peer until the reconciliation decision is itself du...",
    "what_was_observed": "A three-branch speculative planner (branches A, B, C) ran a task with a shared episodic buffer. Each branch appended candidate steps to the buffer with a `branch_id` tag and called a `write_scratch` tool that mutated a shared scratch namespace keyed by task id, not by branch id. Trace of the failure: 1. Branch A writes `scratch[task]=plan_v1`, appends log entry `L1{A, write_scratch, plan_v1}`. 2. Branch B writes `scr...",
    "condition_of_validity": "Treating reconciliation as a barrier is required—and best-effort merge is unsound—exactly when all of the following hold: 1. **Speculative branches perform observable side effects** on any namespace readable by a peer, a sibling branch, or a future replay. If branches are pure (no writes, no outbound MCP calls with effects), merge semantics are fine. 2. **Th...",
    "decision_boundary": "The boundary is whether the reconciliation decision is **causally prior** to any observation of branch effects. - **Merge (sound):** branch effects are staged in a branch-private overlay; no peer, sibling, or replay can read an overlay entry until `select(branch)` is durably logged; on selection, overlay entries are promoted atomically and losers are discard...",
    "operational_effect": "Without the barrier, three concrete degradations appear: 1. **Replay/live disjoin** that surfaces only under re-execution—during incident forensics or a checkpoint-resume hours later—so it is invisible in steady-state operation and misattributed to \"LLM nondeterminism.\" 2. **Causal contamination of peers**: a subscriber agent's plan is silently conditioned o..."
  },
  "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": "8ce2c141263d5150247826fb5a54f87679a3f4559a155afaa4c864235c179201",
    "verified_classes": [
      "SpeculativeReplayViolation",
      "LogEntry",
      "Epoch"
    ],
    "verified_functions": [
      "reconcile_epoch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeReplayViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
