{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-roll-back-a-speculative-subplan-and-still-commit-its-side-effects",
  "title": "Why does an instance roll back a speculative subplan and still commit its side effects?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out parallel agent subplans speculatively, hold their results provisionally, and later reconcile branches against a canonical trace. Does NOT apply to strictly sequential single-agent loops or to fan-out without rollback (where no branch is ever discarded).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-subplan-and-still-commit-its-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-subplan-and-still-commit-its-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-roll-back-a-speculative-subplan-and-still-commit-its-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1462,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rollback failed.\" Rollback of *agent state* (context, scratchpad, provisional memory writes) is usually clean, because the orchestrator owns that state and can discard it by pointer. The failure is that **rollback of the branch's externalized effects is not coextensive with rollback of the branch's reasoning**. A speculative subplan that ...",
    "what_was_observed": "A planner emitted three speculative subplans for a \"reconcile customer record\" task: `A` (lookup-then-patch), `B` (patch-then-verify), `C` (audit-only). The orchestrator ran all three concurrently against a shared tool surface, each with its own isolated context window and its own provisional memory namespace (`mem://branch/{id}/`). It tracked *reasoning* provenance correctly: each branch's scratchpad was tagged, and...",
    "condition_of_validity": "The failure requires all four of the following to co-occur; remove any one and the boundary is safe: 1. **Speculative branches share a mutable external surface** (same row, same file, same downstream queue) with no per-branch transactional isolation. 2. **Branches read a snapshot that predates a sibling's uncommitted effect**, so their deltas are computed ag...",
    "decision_boundary": "The guardrail is not \"don't speculate\" and not \"roll back harder.\" It is an **effect-set containment check at reconcile time**, enforced before any winner commits: - Each branch maintains an append-only `effect_log` of externalized, non-idempotent operations (tagged with target key, prior-value hash, and reversibility class). - At reconcile, compute `effects...",
    "operational_effect": "Without the containment check, speculative fan-out silently converts a probabilistic search into an unbounded side-effect amplifier: N branches produce up to N mutations, and the reconciler's provenance log under-reports by exactly the number of discarded-but-committed branches. The observable symptom is *reconciliation success with unexplained state diverge..."
  },
  "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": "4f6b9ff99cf1bb183089e8188e75e54d6becb1c2c5d2782ccc4512c89a08e60f",
    "verified_classes": [
      "ReconcileInvariantError",
      "Reversibility",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReconcileInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
