{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-branch-s-rollback-checkpoint-has-been-invalidated-by-a-sibling-branch-s-committed-side-effect",
  "title": "How does an instance detect that a speculative branch's rollback checkpoint has been invalidated by a sibling branch's committed side effect?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that fork N speculative agent branches from a shared checkpoint and commit one branch optimistically while siblings hold rollback state referencing the same underlying resource graph. Does not apply to branches with fully isolated, copy-on-write sandboxes or to stateless single-shot tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-s-rollback-checkpoint-has-been-invalidated-by-a-sibling-branch-s-committed-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-s-rollback-checkpoint-has-been-invalidated-by-a-sibling-branch-s-committed-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-s-rollback-checkpoint-has-been-invalidated-by-a-sibling-branch-s-committed-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1633,
    "python_slice_tokens": 186,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed and needs rollback.\" That is the designed path. The failure is that a sibling branch *committed* a side effect that mutated a resource the rolling-back branch's checkpoint implicitly assumed was frozen. The checkpoint record still validates — its hash matches, its file exists, its manifest is intact — but the *world* the c...",
    "what_was_observed": "A planner forked three branches from checkpoint `C0` at `t=0`: - `B1` (fast path) mutates `config.yaml` line 14 and commits at `t=40ms`. - `B2` (verification path) reads `config.yaml` at `t=10ms` into its reasoning trace, then writes `output.json` at `t=30ms`. - `B3` (slow path) reads the same `config.yaml`, derives a schema, and is still executing at `t=80ms`. At `t=45ms` the orchestrator determines `B3` has diverge...",
    "condition_of_validity": "A rollback checkpoint `C` remains valid for branch `B` only if, for every resource `r` in `B`'s read-set since `C`, no sibling branch has committed a write to `r` in the interval `(C.timestamp, rollback.timestamp]`. Equivalently: `C` is valid iff `read_set(B, C) ∩ committed_write_set(siblings, C.timestamp, now) = ∅`. This invariant is violated whenever the o...",
    "decision_boundary": "The instance must distinguish two rollback cases at the moment of rollback issuance: 1. **Clean rollback** — no sibling commit has touched `B`'s read-set since `C`. Restore `C`, mark `B` reverted, proceed. This is the fast path and should remain optimistic. 2. **Contaminated rollback** — at least one sibling commit intersects `B`'s read-set. Here the instanc...",
    "operational_effect": "Consequence of missing the boundary: silent state corruption that manifests as non-deterministic replay divergence downstream. The failure is *latent* — it does not raise at rollback time, it raises at the next consumer that asserts on a value promised by a pre-rollback trace. Debugging cost is high because the causal commit and the observed divergence are s..."
  },
  "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": "711cabd75d962ffefea237a6ede194e35f61b6b5050d6b0ec99abb36d82a586a",
    "verified_classes": [
      "ContaminatedCheckpointError"
    ],
    "verified_functions": [
      "issue_rollback"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ContaminatedCheckpointError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
