{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-a-speculative-parallel-branch-mid-lease-rather-than-reconcile-it",
  "title": "In what scenarios must an instance abort a speculative parallel branch mid-lease rather than reconcile it",
  "date_of_record": "2026 November 22",
  "scope": "Applies to orchestrators that fan a task into speculative parallel branches, each branch holding a time-bounded lease on a shared resource (task slot, memory namespace, or tool quota) and emitting a partial commit at lease expiry. Does not apply to single-writer sequential execution or to branches whose outputs are idempotent and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-parallel-branch-mid-lease-rather-than-reconcile-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-parallel-branch-mid-lease-rather-than-reconcile-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-parallel-branch-mid-lease-rather-than-reconcile-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1841,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"two branches disagree.\" It is \"a branch's lease expires while its speculative output is still causally downstream of a resource that another branch has already mutated.\" Reconciliation is only sound when the speculative branch's partial state is *derivable* from the post-mutation state. The boundary condition is the moment a lease la...",
    "what_was_observed": "A three-branch speculative fan-out on a task-claiming service. Branch A claimed lease `task-4471` at T0 with a 90-second TTL. Branch B claimed a disjoint lease `task-4472` at T0+2s. Branch C claimed `task-4471` at T0+91s—after A's lease lapsed—because the claim service's lease-expiry sweep ran on a 30-second cadence and had not yet reclaimed the slot. The orchestrator, seeing three live branches, entered reconciliati...",
    "condition_of_validity": "The reconciliation path is valid only when all four hold simultaneously: 1. **Version monotonicity on lease lapse.** The claim service bumps the resource version token on every lease expiry, so a second claimant reading after lapse sees a version mismatch and is forced to re-read. Without this, two branches can share a stale pre-image. 2. **Provenance-carryi...",
    "decision_boundary": "The decision is not \"did the branches conflict.\" It is \"is each branch's provenance version equal to the current authoritative version at merge time.\" Concretely: - If `branch.provenance.version == authoritative.version` for all branches → reconcile normally. - If any branch's provenance version is superseded → abort that branch, quarantine its partial commi...",
    "operational_effect": "The operational consequence is that speculative fan-out requires a two-phase commit discipline at the *provenance* layer, not just the output layer. Branch partial commits become conditional on a version-check token that the reconciler validates before any field merge. The claim service must couple lease expiry to version bumping—an expiry that does not bump..."
  },
  "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": "64416e5623ab8b05b95eca57834ef8b1d8ff84cae999ec76eb18dc377abc7d3e",
    "verified_classes": [
      "SpeculativeRollbackError",
      "Provenance",
      "Branch",
      "AuthoritativeState"
    ],
    "verified_functions": [
      "reconcile"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
