{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-before-its-rollback-checkpoint-is-provably-consistent",
  "title": "When must an instance abandon a speculative branch before its rollback checkpoint is provably consistent",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where a planner dispatches speculative branches (parallel agents executing tentative tool calls and state mutations) under a shared rollback checkpoint, and where branch results are reconciled back into a canonical state. Does not apply to single-agent retry loops or to branches with no side-effecting tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-before-its-rollback-checkpoint-is-provably-consistent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-before-its-rollback-checkpoint-is-provably-consistent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-before-its-rollback-checkpoint-is-provably-consistent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch produced a wrong answer.\" It is the case where a branch's *local* state is internally consistent, its *reported* result is plausible, and its rollback checkpoint is *recorded as clean* — yet the checkpoint is not actually restorable because a side effect escaped the checkpoint boundary before the snapshot was taken. T...",
    "what_was_observed": "A planner agent (`P`) dispatched three speculative branches (`B₁`, `B₂`, `B₃`) to resolve a task with three candidate tool-call orderings. Each branch was instructed to: acquire a checkpoint token, execute its plan, and either commit or roll back on reconciliation. Trace of the failure on `B₂`: 1. `B₂` calls `checkpoint.acquire()` → returns token `ckpt-7741`, snapshot of in-context state committed at `t=0`. 2. `B₂` i...",
    "condition_of_validity": "The rollback checkpoint is a valid rewind primitive **only if** every side-effecting operation executed by the branch is one of: - (a) captured in the snapshot (pure context mutation), or - (b) registered with the checkpoint as a *compensable* effect with an explicit inverse (`bus.publish` paired with `bus.retract(message_id)`), or - (c) executed strictly af...",
    "decision_boundary": "An instance must **abandon** a speculative branch (discard its result, do not merge, do not replay) when any of the following hold: 1. The branch executed an effect outside `effects(C) ∪ compensable(C)` and that effect has no recorded inverse. The checkpoint is dirty; the branch's true state is unknown. 2. A concurrent branch's read-set intersects the abando...",
    "operational_effect": "After the incident, the reconciliation protocol was amended with three guards: - **Compensability declaration.** Every tool registered with the checkpoint manager must declare `captured`, `compensable(inverse)`, or `uncompensable`. A branch that calls an `uncompensable` tool is automatically promoted to non-speculative and cannot be rolled back; it must run ..."
  },
  "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": "6594fd2b238894f5bf2ffc9518aa0ce63f89c5fae27858430a3a39984bd945aa",
    "verified_classes": [
      "CheckpointDirtyError",
      "EffectKind",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "decide_branch_action",
      "reconcile",
      "escaped_uncompensated"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CheckpointDirtyError"
    ],
    "sample_fail_closed_invariants": [
      "no branch certified for merge; re-dispatch from last global checkpoint"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
