{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-speculative-branch-reconciliation-when-a-divergent-side-effect-has-escaped-the-rollback-envelope",
  "title": "In what scenarios must an instance abort speculative branch reconciliation when a divergent side effect has escaped the rollback envelope?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrators that run multiple speculative agent branches in parallel against shared mutable external systems (APIs, databases, filesystems, message queues) and reconcile them by selecting a winning branch and rolling back losers. Does not apply to pure-function branches whose only effect is consuming tokens or writing to an isolated per-branch scratchpad.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-speculative-branch-reconciliation-when-a-divergent-side-effect-has-escaped-the-rollback-envelope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-speculative-branch-reconciliation-when-a-divergent-side-effect-has-escaped-the-rollback-envelope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-speculative-branch-reconciliation-when-a-divergent-side-effect-has-escaped-the-rollback-envelope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1908,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats speculative execution as \"run N branches, pick the winner, discard the rest.\" This holds only when the loser branches' effects are *contained*—reversible, compensable, or invisible to the outside world. The boundary failure we are documenting is different: a losing branch **committed an irreversible or externally-observable side...",
    "what_was_observed": "A planner agent decomposed a task (\"provision a customer's staging environment\") into three speculative branches, each attempting a different ordering of the same API calls against a real cloud provider: - Branch A: create DB → create bucket → wire credentials - Branch B: create bucket → create DB → wire credentials - Branch C: create DB → wire credentials → create bucket Branches ran concurrently with a shared idemp...",
    "condition_of_validity": "The rollback-on-loser invariant is **valid only under the conjunction** of: - **(C1) Containment:** every effect of a non-winning branch is a member of the rollback envelope—i.e., it created a resource whose ID the branch recorded, or it wrote to a versioned store the orchestrator can restore byte-for-byte. - **(C2) No outbound irreversibles:** no branch emi...",
    "decision_boundary": "The decision boundary is not \"did rollback succeed?\" but **\"was rollback sound?\"** These diverge exactly when an effect escaped the envelope. The operational rule: - If **all four conditions hold** for every losing branch, proceed with select-and-rollback. This is the fast path. - If **C1 or C3 is violated** (an effect is outside the envelope but still *reac...",
    "operational_effect": "Without the guardrail, speculative execution produces *plausible-looking success with corrupted downstream state*—the worst failure class, because no component reports an error. The billing system pages a human; the IAM policy is gone; the winner is stuck. The orchestrator's logs show a clean reconciliation. With the guardrail, the same execution aborts at t..."
  },
  "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": "59b99574c3a88f7e517393ee586125e5fc35816208d136a27ed5763e50a1796b",
    "verified_classes": [
      "UnsoundRollbackError",
      "EffectKind"
    ],
    "verified_functions": [
      "reconcile_speculative_branches",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsoundRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
