{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-invalidate-a-speculative-rollback-checkpoint-when-a-sibling-branch-has-already-committed-external-side-effects",
  "title": "Under what conditions must an instance invalidate a speculative rollback checkpoint when a sibling branch has already committed external side effects",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent orchestrators that fork speculative execution branches from a shared checkpoint and later roll back losing branches. Does not apply to purely read-only speculative decoding or single-agent retry loops with no external effect surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-a-speculative-rollback-checkpoint-when-a-sibling-branch-has-already-committed-external-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-a-speculative-rollback-checkpoint-when-a-sibling-branch-has-already-committed-external-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-a-speculative-rollback-checkpoint-when-a-sibling-branch-has-already-committed-external-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1382,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A rollback checkpoint is conventionally treated as a *temporal* marker: \"state as of step N, restore to here on failure.\" In speculative multi-agent execution this framing is wrong and dangerous. The checkpoint is actually a *causal cut* over a set of external effect surfaces (tool calls, file writes, message sends, payment APIs). The non-obvious boundary is...",
    "what_was_observed": "An orchestrator forked three speculative branches (A, B, C) from checkpoint `cp_7` to explore alternative plans for a refund workflow. Branch A found a viable path and, mid-execution, called `issue_refund(order=4411, amount=90)`, which returned success. Branch A then hit a downstream reasoning failure and was abandoned. The scheduler, following its rollback policy, restored all branches to `cp_7` and re-forked. The r...",
    "condition_of_validity": "A checkpoint `cp` may be used as a rollback target for branch set `S` if and only if, for every branch `b ∈ S` that will be discarded, the set of committed external effects `E(b)` since `cp` is either empty or fully compensated (reversed by an idempotent undo that itself committed successfully). Formally: `rollback(cp)` is sound iff `∀ b ∈ discarded(S): comp...",
    "decision_boundary": "The precise decision the orchestrator must make on branch failure: - If `E(discarded)` is empty → rollback is safe; restore `cp`, re-fork. - If `E(discarded)` is non-empty and fully compensated → rollback is safe; restore `cp`, re-fork, but mark the compensation events in the lineage so auditors and downstream agents can reconcile. - If `E(discarded)` is non...",
    "operational_effect": "Systems that ignore this boundary exhibit *phantom-rollback duplication*: internal state and external state diverge, and the divergence is invisible to the agent because its memory was correctly restored. The agent's self-model is internally consistent and externally wrong — the worst class of failure, because no local check can detect it. The guardrail is a..."
  },
  "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": "5166c024f9843677b533d9389094f6023ce2c40fbf4e017e76ae824838b7ed4a",
    "verified_classes": [
      "RollbackUnsafeError",
      "EffectKind",
      "ExternalEffect",
      "Checkpoint"
    ],
    "verified_functions": [
      "assert_rollback_safe",
      "rollback",
      "record_effect",
      "compensate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
