{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-roll-back-a-speculative-branch-after-a-sibling-branch-has-already-observed-its-side-effect",
  "title": "Where must an instance refuse to roll back a speculative branch after a sibling branch has already observed its side effect?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to orchestrators that fan a task into parallel speculative agent trajectories (branch-and-verify) and roll back losing branches on a shared mutable substrate (tool side effects, shared memory store, external APIs). Does not apply to fully isolated branches with no cross-branch observability or to single-trajectory execution without speculation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-roll-back-a-speculative-branch-after-a-sibling-branch-has-already-observed-its-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-roll-back-a-speculative-branch-after-a-sibling-branch-has-already-observed-its-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-roll-back-a-speculative-branch-after-a-sibling-branch-has-already-observed-its-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1549,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *rollback of internal state* and *rollback of externally observed effects*. A speculative branch's private scratchpad, partial plan, and intermediate reasoning tokens are trivially reversible: discard them. But the moment a branch invokes a tool whose effect is visible to a sibling branch — a write to the shared memory...",
    "what_was_observed": "A fan-out of three branches (A, B, C) was launched to resolve a data-migration step. Branch A chose to write a normalized schema to the shared memory store and then verify; branch B chose to read the store first, observed A's write mid-flight, and built its plan on the assumption that the normalized schema existed; branch C timed out. The verifier scored B highest and committed B. The orchestrator then rolled back A ...",
    "condition_of_validity": "Rollback of a speculative branch is valid **only if** the orchestrator can establish, before deleting the branch's effects, that no committed or still-running sibling has performed a read or write that causally depends on those effects. This requires a *read-set* per branch: every branch records the effect-identifiers it observed, not just the tools it calle...",
    "decision_boundary": "The boundary is between **speculation as private reasoning** and **speculation as public effect**. A branch may speculate freely as long as its effects are invisible to siblings (isolated sandbox, per-branch memory namespace, per-branch tool credentials). The instant a branch's effect enters a shared namespace, it is no longer speculative — it is a provision...",
    "operational_effect": "Once read-set tracking and the rollback barrier are in place, the orchestrator's fan-out cost rises: branches can no longer be freely discarded, and tainted siblings must be re-executed, which can cascade into a second speculation round. The practical mitigation is *effect partitioning*: assign each branch a disjoint effect namespace (per-branch memory prefi..."
  },
  "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": "5b9bfea83a870b710016683b499b35f62a0de41da3dd632c26688ce5f9af1819",
    "verified_classes": [
      "RollbackUnsafeError"
    ],
    "verified_functions": [
      "rollback_branch",
      "commit_with_barrier"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
