{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-invalidate-a-speculative-branch-that-has-already-been-committed-to-by-a-downstream-peer-the-sibling-commit-orphan-problem-in-bra",
  "title": "When must an instance invalidate a speculative branch that has already been committed to by a downstream peer: the sibling-commit orphan problem in branch-and-verify rollback",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fork parallel agent trajectories speculatively, allow those trajectories to emit side-effecting commits (tool writes, MCP resource mutations, A2A handoffs to peers), and later roll back a losing branch. Does not apply to read-only speculation, single-trajectory retries, or systems where commits are buffered in a single transactional coordinator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-speculative-branch-that-has-already-been-committed-to-by-a-downstream-peer-the-sibling-commit-orphan-problem-in-bra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-speculative-branch-that-has-already-been-committed-to-by-a-downstream-peer-the-sibling-commit-orphan-problem-in-bra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-speculative-branch-that-has-already-been-committed-to-by-a-downstream-peer-the-sibling-commit-orphan-problem-in-bra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1899,
    "python_slice_tokens": 530,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch was wrong.\" Speculation assumes branches can be wrong. The failure is that **a losing branch's commit was already observed and acted upon by a sibling branch or an external peer before rollback fired**, so rollback cannot restore the global state the system believes it holds. This is distinct from ordinary rollback (u...",
    "what_was_observed": "An orchestrator spawned three speculative trajectories (A, B, C) for a planning task, each with tool access to a shared scratch resource store and an A2A channel to a verifier peer. All three ran concurrently to reduce latency. Branch A committed a partial plan artifact to `plan://draft` at t=1.20s. Branch B, which had subscribed to `plan://draft` for cross-checking, read A's artifact at t=1.31s and incorporated a co...",
    "condition_of_validity": "Speculative rollback is sound only when, for every losing branch L and every effect e committed by L, the set of actors that have read e since commit is a subset of the rolled-back cohort. Formally, rollback is valid iff `readers(e) ⊆ rollback_set` for all `e ∈ writes(L)`. This condition holds when: - Commits are buffered and only released after the branch i...",
    "decision_boundary": "The decision is not \"roll back or not.\" It is: **at the moment of rollback, does the orchestrator escalate from local rollback to cohort-wide invalidation?** The boundary conditions: - If the read-closure of the losing branch's commits is empty outside the cohort → local rollback is sound; proceed. - If the read-closure is non-empty but entirely within the c...",
    "operational_effect": "Systems that skip the closure computation exhibit three observable pathologies: (1) **irreproducible accepted results** — the winning branch carries constraints from rolled-back siblings, so replay diverges from the recorded outcome; (2) **cascade storms** — a naive one-hop cascade rolls back B, which invalidates C's read of B, which the orchestrator did not..."
  },
  "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": "4e56410f71870ef1a144971d2144fd12ab99635b892d8bd37079c96441eb7c0b",
    "verified_classes": [
      "SpeculativeRollbackError",
      "RollbackVerdict",
      "CommitLedger"
    ],
    "verified_functions": [
      "decide_rollback",
      "rollback_branch",
      "record_commit",
      "record_read",
      "mark_unobservable",
      "read_closure"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
