{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-rollback-evidence-is-shadowed-by-a-non-idempotent-side-effect",
  "title": "In what scenarios must an instance abort a speculative branch when rollback evidence is shadowed by a non-idempotent side effect",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fork parallel agent branches over a shared tool surface and reconcile by rollback-and-replay. Does not apply to read-only fan-out (map/reduce over pure retrieval) or to single-branch retry loops where no speculative state is committed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-rollback-evidence-is-shadowed-by-a-non-idempotent-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-rollback-evidence-is-shadowed-by-a-non-idempotent-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-rollback-evidence-is-shadowed-by-a-non-idempotent-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1674,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes a clean dichotomy: a branch either *commits* (its effects become canonical) or *rolls back* (its effects vanish, leaving the pre-branch checkpoint intact). The boundary failure lives in the gap between *logical* rollback and *physical* rollback. An orchestrator can perfectly revert its own state ledger—delete the bra...",
    "what_was_observed": "A three-way speculative fan-out (branches A, B, C) over a shared ticket-triage agent. Each branch was given the same parent checkpoint and instructed to resolve a support ticket, with reconciliation by \"first branch to reach a verified terminal state wins; others roll back.\" Branch A emitted a tool call `send_customer_reply(ticket, body)` and, before its verification step returned, branch B reached a verified termina...",
    "condition_of_validity": "The invariant \"rollback restores pre-branch state\" holds **only if every effect the branch can produce is (a) recorded in the ledger, (b) invertible by a compensating action, or (c) confined to a sandbox the orchestrator owns.** Speculative execution is safe when the tool surface is partitioned into *reversible* (pure reads, sandboxed writes, ledger-tracked ...",
    "decision_boundary": "The orchestrator must **abort the entire speculative fan-out and escalate to a serialized path**—not merely roll back the offending branch—when the following predicate evaluates true at reconciliation time: The subtle decision is what to do with the *winner*. The instinct is to keep B's result and just annotate A's residue. That is wrong: B's plan was comput...",
    "operational_effect": "Implementing this invariant changes three things. First, the ledger must carry a per-tool `reversibility` classification and a `compensator` handle, and rollback must *emit the compensator* before it declares success—rollback success is defined as \"world restored,\" not \"rows deleted.\" Second, the reconciler must consume a `world_delta` set (irreversible effe..."
  },
  "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": "b6d76b2e34ea3b8b95c21e635956735ce9c83b47a280896a9ce56f3cd1b939ce",
    "verified_classes": [
      "Reversibility",
      "ToolCall",
      "Branch",
      "ShadowedRollbackError"
    ],
    "verified_functions": [
      "reconcile",
      "run_fanout"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ShadowedRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
