{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-commits-a-branch-whose-read-set-was-invalidated-by-a-sibling-branch-s-tool-side-effect",
  "title": "What happens when an instance speculatively commits a branch whose read-set was invalidated by a sibling branch's tool side effect",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent pipelines that fan out parallel speculative branches from a shared checkpoint, each branch performing tool calls and holding a private write-set, with a single commit/abort reconciler that merges results. Does not apply to strictly sequential single-branch execution, nor to branches that are provably side-effect-free (pure LLM reasoning with no external tool invocation).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-read-set-was-invalidated-by-a-sibling-branch-s-tool-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-read-set-was-invalidated-by-a-sibling-branch-s-tool-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-read-set-was-invalidated-by-a-sibling-branch-s-tool-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1975,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **speculative isolation of the write-set** and **speculative isolation of the read-set**. Most agent orchestrators get the first half right: each parallel branch buffers its proposed state mutations (memory writes, file edits, plan revisions) in a private overlay and only flushes on commit. This is treated as sufficien...",
    "what_was_observed": "A three-branch fan-out was launched from checkpoint C0 to resolve a task (\"update the deployment manifest and the changelog consistently\"). Branch A owned the manifest, branch B owned the changelog, branch C was an auditor that read both and voted. Branch B, early in its rollout, called `write_file(\"VERSION\", \"2.4.1\")` — a real filesystem side effect, not buffered — as a preliminary step, then continued reasoning. Br...",
    "condition_of_validity": "Speculative fan-out with commit/abort is only sound under one of three conditions, and orchestrators must be able to *prove* which one holds before allowing commit: 1. **Read-set disjointness from sibling effects.** No branch reads any key that any concurrent branch can write via a side-effecting tool. This is almost never true in practice and cannot be chec...",
    "decision_boundary": "The reconciler must draw a hard line: **a branch's commit is valid only if its read-set version-stamps are all ≤ the committed checkpoint's stamps, OR every read that observed a speculative sibling effect has been re-validated against post-reconciliation state.** Concretely, the decision procedure at commit time is: - For each entry in the committing branch'...",
    "operational_effect": "The practical consequence is that speculative fan-out in agent pipelines is **only as safe as the weakest tool in the branch's tool set**. A single unmediated side-effecting tool converts the whole fan-out from isolated speculation into a shared-memory race with no memory model. The orchestrator's write-set conflict detection gives false confidence: it repor..."
  },
  "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": "255c6621c9cf7727066a02995049e8996b21eb9115e0947ee884f36f81d07f10",
    "verified_classes": [
      "SpeculativeReadContamination",
      "ReadStamp",
      "Branch"
    ],
    "verified_functions": [
      "reconcile_commit",
      "run_fanout"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculativeReadContamination"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
