{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abandon-a-speculative-branch-before-its-reconciliation-window-closes",
  "title": "Under what conditions must an instance abandon a speculative branch before its reconciliation window closes",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that dispatch speculative parallel branches of a multi-agent plan against a shared, mutable world-state (filesystem, database, external API ledger) and defer reconciliation to a merge/replay phase. Does not apply to read-only fan-out (map/reduce over immutable inputs) or to branches that execute in fully isolated, disposable sandboxes whose side effects are never committed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-before-its-reconciliation-window-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-before-its-reconciliation-window-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-before-its-reconciliation-window-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in multi-agent plans is routinely modeled as \"run N branches, pick the winner, discard losers.\" That model is wrong whenever branches can produce *committed side effects* before the winner is known. The real invariant is not \"losers are free to discard.\" It is: > A speculative branch is only safely discardable while the cost of unwindin...",
    "what_was_observed": "A planning orchestrator dispatched three speculative branches (A, B, C) of a five-step remediation plan against a shared incident-response environment. Branch A was the \"cheap\" branch: a single LLM call plus a schema-validated config patch. Branches B and C were \"expensive\": multi-tool reconciliation loops. The scheduler assigned budgets proportional to estimated compute — A got a small budget, B and C got large ones...",
    "condition_of_validity": "The \"discard losers freely\" model is valid **iff** every branch is one of: - **Pure-reasoning branches** — no tool side effects, or all tool calls carry a registered compensating action (idempotency key + inverse op) that the orchestrator can invoke at discard time; or - **Sandboxed branches** — effects are staged in a per-branch overlay that is atomically c...",
    "decision_boundary": "The orchestrator must, at every termination event for a speculative branch, evaluate: If `abandon_safely` is false, the branch is **not discardable**. It enters a `QUARANTINE` state: it may not be terminated by budget or preemption, its dirty resources are locked against sibling reads until it either completes cleanly or its compensators are driven to comple...",
    "operational_effect": "With the `abandon_safely` gate and `QUARANTINE` state enforced on all termination paths (not just clean completion), the observed failure mode disappears: preemption of branch A blocks until A's compensator runs, B and C read a baseline consistent with the planner's model, and the barrier merge is over a state some branch actually reasoned about. The tradeof..."
  },
  "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": "91dc10943c78450f139016ad3eb5f26fc6d63d21a965866f1f2640c3ae9c1544",
    "verified_classes": [
      "SpeculationAbandonError",
      "BranchState",
      "Resource",
      "Branch"
    ],
    "verified_functions": [
      "abandon_safely",
      "terminate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculationAbandonError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
