{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-rollback-the-phantom-read-commit-hazard-in-para",
  "title": "What happens when an instance commits a speculative branch whose read-set was invalidated by a sibling rollback: the phantom-read commit hazard in parallel draft/rollback protocols",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fan out N speculative branch drafts from a shared checkpoint, allow siblings to read each other's provisional writes (optimistic read-set sharing), and commit or roll back branches independently. Does not apply to fully isolated branches with no cross-branch read visibility, nor to single-branch linear execution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-rollback-the-phantom-read-commit-hazard-in-para.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-rollback-the-phantom-read-commit-hazard-in-para.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-read-set-was-invalidated-by-a-sibling-rollback-the-phantom-read-commit-hazard-in-para.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1761,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **write-write conflict** (two branches mutate the same key — the classic case most rollback protocols detect) and **read-write conflict across a rollback boundary** (branch B commits a value whose validity depended on a provisional write from branch A, and A is subsequently rolled back). The first is a well-understood ...",
    "what_was_observed": "A three-branch speculative planner (branches `alpha`, `beta`, `gamma`) shared a provisional context store. `alpha` wrote a provisional fact `service_health = degraded` after a flaky probe. `beta` read `service_health = degraded`, and on that basis chose a conservative retry policy and a fallback route, then committed. `alpha`'s probe was re-run by the orchestrator's verifier, found to be a transient timeout, and `alp...",
    "condition_of_validity": "The invariant that makes speculative commit safe is: > **A branch may commit only if every provisional read it absorbed is still live in the committed history at commit time, or has been explicitly re-validated against the post-rollback store.** This requires two things the naive protocol omits. First, **read-set capture at the semantic level**: the branch m...",
    "decision_boundary": "The boundary is between **optimistic commit with post-hoc reconciliation** and **validated commit with pre-commit read-revalidation**. The former is acceptable only when branches are fully read-isolated (no cross-branch provisional reads). The moment provisional reads are shared — which is the entire point of speculative drafting, since siblings reading each...",
    "operational_effect": "The operational consequence is that **speculative speed and commit safety trade off through the width of the commit barrier**, and the barrier width is set by revalidation cost. If revalidation requires re-probing external services (as with `service_health`), the barrier serializes commits behind network latency, eroding the parallelism benefit. The mitigati..."
  },
  "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": "0b2ac93ffe94b0e42f9aa8f6db8a3dfb8391b869770c6f72673c93a8b57081a8",
    "verified_classes": [
      "PhantomReadCommitError",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "rollback",
      "commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PhantomReadCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
