{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-commit-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-s-rollback-the-orphaned-write-hazard-in-parallel-plan-dra",
  "title": "Why does an instance commit a speculative branch whose read-set was invalidated by a sibling's rollback? The orphaned-write hazard in parallel plan drafting",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fan out an agent plan into parallel speculative branches (drafting variants, parallel tool-call trees, or N-of-M sampling) under a shared mutable world state, then select and commit one branch while rolling back the rest. Does not apply to branches executed against fully isolated, copy-on-write sandboxes with no shared external side effects (e.g., pure in-memory reasoning branches with no tool writes).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-s-rollback-the-orphaned-write-hazard-in-parallel-plan-dra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-s-rollback-the-orphaned-write-hazard-in-parallel-plan-dra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-s-rollback-the-orphaned-write-hazard-in-parallel-plan-dra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a speculative branch can be \"wrong\" at commit time, and they are routinely conflated: 1. **Value invalidation** — the branch's computed outputs no longer match the world because a sibling's write changed an input the branch read. This is the failure everyone tests for: you re-read the input, compare versions, and reject. 2. **Read-set prov...",
    "what_was_observed": "A planner agent decomposed a migration task into three speculative branches over a shared state store: - **Branch A** writes `config.schema_version = 7` (speculative). - **Branch B** reads `config.schema_version` — observes `7` because A's speculative write is visible in the shared store — and writes `migration_plan.target = 7`. - **Branch C** is the selected commit candidate (say it scored highest on a verifier rubr...",
    "condition_of_validity": "The invariant a commit protocol must hold is: > A speculative branch may commit only if every object in its read-set is (a) unchanged in value, **and** (b) has lineage that traces exclusively to committed (non-speculative) writes, **and** (c) has not been the target of any rollback compensating write since the branch's read. Condition (b) is the one that is ...",
    "decision_boundary": "The boundary between \"commit is safe\" and \"commit is a ghost dependency\" is crossed precisely when a rollback performs a **compensating write that restores a prior value and a prior version token**, rather than a tombstone-and-increment. Two rollback strategies therefore have opposite safety properties: - **Tombstone rollback** (delete or mark-rolled-back, b...",
    "operational_effect": "The practical consequence is a class of **silent cross-branch contamination** that survives all value-level validation and surfaces only as downstream semantic inconsistency — a plan referencing a schema version, a config key, or a computed aggregate that no committed branch ever produced. It is silent because the contaminated branch's own local checks pass;..."
  },
  "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": "8d37e42e0c0d2612d6188d1471bd1b4dc23ce01e79852d842fbe5c6ea83ffbe4",
    "verified_classes": [
      "GhostDependencyError",
      "WriteRecord",
      "SpeculativeStore"
    ],
    "verified_functions": [
      "validate_and_commit",
      "__init__",
      "__init__",
      "commit_epoch",
      "write",
      "read",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "GhostDependencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
