{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-speculative-branch-divergence-when-parallel-planner-agents-disagree-on-a-shared-mutation",
  "title": "How does an instance detect speculative branch divergence when parallel planner agents disagree on a shared mutation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any planner-executor topology where a coordinator fans a single goal out to N speculative planner agents that each emit a candidate action sequence (or partial world-mutation plan), and the coordinator commits one branch and discards the others. Does not apply to strictly serial planners, to read-only advisory sub-agents whose outputs are never committed, or to speculative *decoding* within a single model's token stream (that is a sampling-layer concern, not a state-reconciliation one).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-when-parallel-planner-agents-disagree-on-a-shared-mutation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-when-parallel-planner-agents-disagree-on-a-shared-mutation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-branch-divergence-when-parallel-planner-agents-disagree-on-a-shared-mutation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2096,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **speculative divergence** and **speculative conflict**. Divergence is expected and healthy: parallel planners explore different prefixes and the coordinator picks the best. Conflict is the failure: two branches that were treated as mutually exclusive at fan-out time turn out to share a *side effect* — a write to ...",
    "what_was_observed": "A coordinator agent receives a goal (`reconcile invoice batch #4471`) and spawns three speculative planners, each with its own tool scope but sharing a common MCP server exposing `ledger.write`, `ledger.read`, and `notify.send`. Each planner is instructed to produce a plan and, where the plan is \"cheap,\" to *pre-execute* the first step to reduce latency — a common optimization in speculative planning. - Planner A: re...",
    "condition_of_validity": "The commit-time exclusivity invariant holds only under three jointly sufficient conditions, and the failure above is precisely the violation of the second: 1. **Fan-out isolation:** every speculative branch executes against a snapshot or copy-on-write view of any mutable resource it may read or write. If branches share a live resource, isolation is broken an...",
    "decision_boundary": "The coordinator must decide, at the moment it scores branches, whether the branches are **comparable** or **contaminated**. The boundary is drawn by a single predicate over branch metadata: - A branch is *clean* if all its reads are causally prior to all staged writes of every other branch, and all its writes are staged. - A branch is *contaminated* if any o...",
    "operational_effect": "The practical consequence is a latency/throughput tradeoff that most teams discover only after a reconciliation incident. Enforcing the invariant requires either (a) per-branch snapshots of every mutable resource (cheap for small state, expensive for large ledgers) or (b) a staging layer that intercepts all tool calls and buffers them until commit (cheap for..."
  },
  "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": "26f38a61610a589cd8b6a644e3fea7cf219f47e9562a31b3a15b0335852d14b2",
    "verified_classes": [
      "SpeculativeBranchContamination",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "detect_contamination",
      "commit_branch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeBranchContamination"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
