{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-roll-back-to-a-checkpoint-that-has-already-been-invalidated-by-a-sibling-branch",
  "title": "Why does an instance roll back to a checkpoint that has already been invalidated by a sibling branch?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to speculative multi-agent systems where two or more instances fork from a shared checkpoint, execute concurrently, and reconcile via rollback to a common ancestor. Does not apply to single-agent linear execution or to swarms that never share mutable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-checkpoint-that-has-already-been-invalidated-by-a-sibling-branch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-checkpoint-that-has-already-been-invalidated-by-a-sibling-branch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-to-a-checkpoint-that-has-already-been-invalidated-by-a-sibling-branch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1611,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rollback failed.\" The failure is that rollback *succeeded* against a checkpoint whose logical validity was already consumed by a concurrent sibling branch. There are two distinct notions that speculative systems routinely conflate: - **Checkpoint immutability** — the serialized bytes at checkpoint `C_k` are byte-identical and readable for...",
    "what_was_observed": "A planner instance `P` forks three speculative workers `W1`, `W2`, `W3` from checkpoint `C_7` (step index 7, tool-call ledger hash `h_7`). Each worker is given a disjoint subgoal and a token budget. The contract is: first worker to produce a verifier-passing result commits; the others roll back to `C_7` and re-plan. The trace: 1. `W1` reaches step 12 and commits a write to the shared resource (`h_7 → h_12`). The comm...",
    "condition_of_validity": "Rollback to `C_k` is sound only if all three hold at the instant of resume: - **Lineage guard:** no descendant of `C_k` has committed a side effect that any subsequent tool call in the resumed branch can observe. Formally, `C_k` must be a leaf of the committed lineage DAG, or the resumed branch must be executed under a snapshot that excludes all sibling comm...",
    "decision_boundary": "The boundary is whether the resumed branch can *observe* a sibling's commit. Two regimes: - **Isolated regime:** all tool calls in a speculative branch are served from a snapshot pinned at fork time. Then `C_k` remains a valid resume point regardless of sibling commits, and rollback is sound without a lineage guard. Cost: pinned snapshots, no live reads. - *...",
    "operational_effect": "Systems that skip the lineage guard exhibit **resurrection writes**: a losing branch's commit reappears after the winner's, silently reverting committed effects. The failure is intermittent and load-dependent (it requires the sibling to commit inside the loser's read window), so it survives testing and surfaces under concurrency. Mitigations that work: head-..."
  },
  "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": "14cac0ad72cd3296552dbd045ce45ce8bbdce61c42ec1846ccf2927d1aae013e",
    "verified_classes": [
      "StaleCheckpointResumeError",
      "Checkpoint",
      "Branch"
    ],
    "verified_functions": [
      "resume_from_checkpoint",
      "_lineage_hash_head"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleCheckpointResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
