{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abort-a-speculative-branch-before-rollback-reconciliation",
  "title": "Under what conditions must an instance abort a speculative branch before rollback reconciliation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to orchestrators that spawn speculative agent branches (parallel candidate executions sharing a common ancestor checkpoint) and reconcile them via rollback to the ancestor plus branch replay. Does not apply to single-instance retry loops or to branches that never share mutable tool-side state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-rollback-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-rollback-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-a-speculative-branch-before-rollback-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1572,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch produced a wrong answer.\" It is the case where a branch produced a *locally consistent* answer by consuming a side effect that a sibling branch also consumed, so that rollback to the shared ancestor is no longer a valid inverse. Rollback is sound only when the ancestor checkpoint captures every piece of state the bran...",
    "what_was_observed": "A three-branch speculative fan-out (branches A, B, C) from a shared ancestor checkpoint at step 12. Branch A called `inventory.reserve(sku, qty=1)` against a tool that decremented a counter and returned `reserved: true`. Branch B, running concurrently, called the same tool for the same SKU and received `reserved: true` because the tool's stock was 2 and both reservations fit. Branch C failed a reasoning check and was...",
    "condition_of_validity": "Rollback-and-replay is a valid reconciliation primitive if and only if all three hold at the moment of reconcile: 1. **Mutation closure.** Every external mutation performed by any non-selected branch is either (a) compensated before replay begins, or (b) proven invisible to the winner's replay and to the verification read. Visibility here is not eventual—it ...",
    "decision_boundary": "The discriminator is whether the branch has crossed the **externalization horizon**: the first tool call whose effect survives the branch's context being discarded. Before that horizon, discard-and-rollback is free. After it, the branch is committed to the world and may only be *compensated* or *promoted*, never silently rolled back. Operationally, the orche...",
    "operational_effect": "Enforcing the boundary changes the cost profile of speculation. Branches that stay below the externalization horizon remain cheap to discard. Branches that cross it become expensive: each committed branch consumes a real resource and must be either promoted or compensated, and compensation itself is an external call with its own failure modes. The practical ..."
  },
  "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": "76fd2dc3909c0cde4ded8d757e56e0e8dd486f282906ac30270a4df2ca396944",
    "verified_classes": [
      "ToolClass",
      "RollbackUnsafeError",
      "Mutation",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "committed"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
