{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-rollback-checkpoint-as-invalid-across-a-speculative-branch-merge",
  "title": "When must an instance treat a rollback checkpoint as invalid across a speculative branch merge",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems that speculatively fork sibling branches from a shared checkpoint, mutate overlapping state, and merge on a winning branch; does not apply to strictly linear single-agent execution or to merges where branches are provably disjoint in write-set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-rollback-checkpoint-as-invalid-across-a-speculative-branch-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-rollback-checkpoint-as-invalid-across-a-speculative-branch-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-rollback-checkpoint-as-invalid-across-a-speculative-branch-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1335,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a rollback lost data.\" It is subtler: a rollback checkpoint taken *before* a speculative fork remains syntactically valid (the snapshot deserializes, the hashes match) but is *semantically stale* because a sibling branch committed side effects into an external, non-snapshotted surface that the checkpoint never captured. The distinction th...",
    "what_was_observed": "A coordinator forked three sibling branches from checkpoint `C0` at graph node `plan.resolve`. Each branch was assigned the same subtask (\"enrich record set R with citations\") under different speculative strategies. Branch B2 executed a tool call `citations.attach(record_id, source)` that wrote to a shared vector store — an external surface outside the snapshot boundary. B2 then diverged: its reasoning loop concluded...",
    "condition_of_validity": "A checkpoint `C` is a valid rollback target for branch `B` if and only if, at the moment of rollback, no *other* branch has performed a non-idempotent external write whose effect is not represented in `C`'s write-set manifest. Formally, rollback is sound when `leaked_writes(siblings_since(C)) ⊆ reversible(C)`. This condition holds in three cases: (1) branche...",
    "decision_boundary": "The coordinator must decide, at each rollback request during speculative execution, between **honoring rollback** and **quarantining the branch**. The boundary is crossed when the branch's leaked-write set intersects any sibling's leaked-write set on a non-idempotent surface. Below the boundary (disjoint or idempotent writes), rollback is safe and cheap. Abo...",
    "operational_effect": "Systems that respect this boundary pay a manifest-tracking cost: every tool call during speculation must be logged with a `(surface, key, idempotency_token, reversible)` tuple, and rollback must consult the sibling manifests before restoring. The payoff is that branch-and-merge stops producing silent duplicate side effects and the merge stage can assert prov..."
  },
  "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": "a746021228cc8d7ebbedde9e5367e9c1fffbfe3562ece89a4183584eaa9aaa9d",
    "verified_classes": [
      "StaleCheckpointError",
      "WriteManifest",
      "Branch"
    ],
    "verified_functions": [
      "validate_rollback_target",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleCheckpointError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
