{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abandon-speculative-branch-rollback-when-a-sibling-branch-has-already-committed-irreversible-external-effects-befor",
  "title": "In what scenarios must an instance abandon speculative branch rollback when a sibling branch has already committed irreversible external effects before winner selection",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that fan out a task into N speculative agent branches sharing a common pre-branch checkpoint, then select a winner and roll back losers. Does not apply to branches that are fully sandboxed with no external side effects (file writes, HTTP mutations, tool calls to stateful third parties), nor to single-branch execution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-branch-rollback-when-a-sibling-branch-has-already-committed-irreversible-external-effects-befor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-branch-rollback-when-a-sibling-branch-has-already-committed-irreversible-external-effects-befor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-speculative-branch-rollback-when-a-sibling-branch-has-already-committed-irreversible-external-effects-befor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1674,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes rollback is *symmetric*: every losing branch can be undone to the shared checkpoint, leaving only the winner's effects. This holds only when branch effects are **interior** to the orchestrator's transactional boundary. The non-obvious failure is that agents reach *exterior* effects — a `POST` to a payment API, a `git...",
    "what_was_observed": "A task-decomposition orchestrator spawned three branches (A, B, C) from a shared checkpoint to fulfill \"provision the customer's onboarding.\" Each branch had access to a `provision_account` tool that called an external identity provider. - Branch A: called `provision_account(customer_id=4471)`, received `201 Created`, then continued reasoning and hit a context-window saturation at step 14. It returned a truncated, lo...",
    "condition_of_validity": "Rollback-then-select is valid **iff** for every branch `b` and every exterior effect `e` emitted by `b`: 1. `e` carries an idempotency key derived deterministically from `(task_id, branch_id, step_index)` — not from wall-clock or a random UUID — so a re-execution of the winning branch, or a compensating call, collides with the original rather than duplicatin...",
    "decision_boundary": "The boundary between \"safe to roll back and select\" and \"must serialize or escalate\" is crossed at the first exterior effect emitted by any branch whose selection outcome is not yet determined. Concretely: - **Before any exterior effect:** full speculation is safe; roll back losers freely. - **After a branch emits an exterior effect, before selection:** the ...",
    "operational_effect": "Systems that ignore this boundary exhibit three recurring pathologies: (a) **orphan effects** — exterior records with no committed-state referent, discovered only by reconciliation; (b) **duplicate effects** — non-deterministic idempotency keys causing the same logical action to land twice, once per branch; (c) **false rollback telemetry** — the orchestrator..."
  },
  "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": "8da81d92a20f515eb9ef2c5d39a088dcd91c23d13152ce2102605226532fe21a",
    "verified_classes": [
      "SpeculativeEffectLeak",
      "EffectStatus",
      "ExteriorEffect",
      "Branch"
    ],
    "verified_functions": [
      "make_idempotency_key",
      "commit_winner"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeEffectLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
