{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-speculatively-execute-one-branch-of-a-parallel-plan-and-then-discover-its-rollback-is-unsound",
  "title": "Why does an instance speculatively execute one branch of a parallel plan and then discover its rollback is unsound?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fork a multi-agent plan into parallel speculative branches and commit one branch while rolling back the others. Does not apply to strictly sequential plans or to branches whose effects are fully contained in per-branch ephemeral sandboxes with no shared external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-speculatively-execute-one-branch-of-a-parallel-plan-and-then-discover-its-rollback-is-unsound.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-speculatively-execute-one-branch-of-a-parallel-plan-and-then-discover-its-rollback-is-unsound.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-speculatively-execute-one-branch-of-a-parallel-plan-and-then-discover-its-rollback-is-unsound.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1771,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *reversible speculation* and *irreversible speculation*. A speculative branch is only rollback-safe if every effect it produces is either (a) confined to a namespace the orchestrator owns outright, or (b) recorded in an undo log that can be replayed in exact reverse order. Most parallel-plan systems assume rollback is ...",
    "what_was_observed": "A planner forked a three-branch plan to answer a customer refund request: branch A (read order history), branch B (issue provisional refund via payments API), branch C (send customer a status email). The orchestrator marked B and C as speculative because the final answer depended on A's history. All three ran concurrently to cut latency. Branch B's payments call succeeded and returned a refund ID. Branch C's email wa...",
    "condition_of_validity": "Speculative execution with rollback is sound only when, for every branch marked speculative, all of the following hold: - **Namespace containment.** Every effect is scoped to a resource the orchestrator can delete or invalidate atomically (a sandbox volume, a transaction ID it controls, an in-memory store keyed by branch ID). - **Compensation terminality.** ...",
    "decision_boundary": "The boundary is: *does the branch's effect set include any action whose compensation can return a non-terminal status?* If yes, the branch cannot be speculatively executed under a rollback contract; it must be deferred until the plan's commit decision is known, or executed with an explicit `accept_irreversible` flag that forces the orchestrator to treat the ...",
    "operational_effect": "The operational consequence is that speculative parallelism must be gated by a per-branch effect classifier, not by a global \"this plan is speculative\" flag. The classifier runs before fork and assigns each branch one of three labels: `reversible`, `irreversible_accepted`, or `must_serialize`. Only `reversible` branches enter the speculative fork. `irreversi..."
  },
  "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": "772456421047989165fe53b8354bc0644a4faef30f8777f2bc25679bc553b80a",
    "verified_classes": [
      "RollbackUnsoundError",
      "CompensationStatus"
    ],
    "verified_functions": [
      "rollback_branch",
      "commit_plan"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackUnsoundError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
