{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-checkpoint-before-speculative-multi-agent-rollback-to-remain-sound",
  "title": "Where must an instance checkpoint before speculative multi-agent rollback to remain sound?",
  "date_of_record": "2026 November 17",
  "scope": "Applies to orchestrators that fork multiple agent trajectories speculatively from a shared state and commit at most one branch, discarding the rest. Does not apply to purely sequential agent loops or to branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-before-speculative-multi-agent-rollback-to-remain-sound.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-before-speculative-multi-agent-rollback-to-remain-sound.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-before-speculative-multi-agent-rollback-to-remain-sound.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 972,
    "python_slice_tokens": 174,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two kinds of state an agent branch mutates: *internal* (its own message history, scratchpad, reasoning traces) and *external* (tool side effects: files written, DB rows inserted, messages sent, caches warmed). Rollback is trivially sound for internal state—you just drop the branch object. Rollback is *not* sound for external state unless the orches...",
    "what_was_observed": "A planner forked three branches at a decision node. Branch A wrote a partial result to a shared scratch file and then failed a downstream assertion; branch B succeeded and committed. The orchestrator discarded A's internal state but never reverted the scratch file. A downstream consumer read A's partial write, treating it as authoritative because it carried a valid schema. The committed branch B's output was correct,...",
    "condition_of_validity": "Speculative rollback is sound only when, at the fork point, the orchestrator can enumerate every external effect surface reachable by the branch and either (a) wrap each in a transactional scope with a compensating action, or (b) gate each behind a commit-time effect queue. The condition fails whenever a branch can reach an effect surface the orchestrator di...",
    "decision_boundary": "Before forking, ask: *can every effect any branch might emit be deferred or compensated?* If yes, fork freely and queue effects until commit. If no—because a tool is non-idempotent, non-compensable, or discovered at runtime—do not speculate past that tool; instead, checkpoint *before* the first non-compensable effect and serialize branches that would cross i...",
    "operational_effect": "Orchestrators that ignore this boundary produce ghost writes that surface as intermittent, hard-to-reproduce inconsistencies: state that no committed branch claims to have produced. The fix is to make the fork point an explicit checkpoint that snapshots effect-surface coverage, and to raise hard on any branch that emits an effect outside the declared compens..."
  },
  "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": "55e47a2ba088fc722ebdf7872fb03ab879375f000be1507a580d394d5bc3fab2",
    "verified_classes": [
      "UncompensableEffectError",
      "EffectSurface"
    ],
    "verified_functions": [
      "checkpoint_before_fork",
      "emit_effect",
      "__init__",
      "declare_compensable",
      "declare_deferred",
      "covers"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UncompensableEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
