{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abort-speculative-fan-out-when-branch-pruning-cost-estimates-become-self-referential",
  "title": "Under what conditions must an instance abort speculative fan-out when branch-pruning cost estimates become self-referential",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrator agents that speculatively fan out sub-plans across N worker branches, prune branches by a predicted cost-to-convergence, and select a winner by consensus. Does not apply to single-shot planning with no pruning, nor to fan-out where each branch is independently verified without a shared cost ledger.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculative-fan-out-when-branch-pruning-cost-estimates-become-self-referential.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculative-fan-out-when-branch-pruning-cost-estimates-become-self-referential.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculative-fan-out-when-branch-pruning-cost-estimates-become-self-referential.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1456,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct reasons a speculative branch gets pruned: **intrinsic cost** (the branch is genuinely expensive or low-probability) and **relative cost** (the branch is cheap but *other* branches already consumed the budget). These are conflated whenever the pruning heuristic reads the global spend ledger to estimate remaining cost. The boundary condi...",
    "what_was_observed": "A planner fans out 6 branches at depth 3. Each branch reports a `cost_estimate` produced by a worker-side heuristic that includes a term `remaining_budget / expected_remaining_branches`. The orchestrator sorts by estimate ascending and prunes the tail when cumulative predicted cost exceeds 0.8 × budget. Trace observed: 1. Initial estimates: `[0.9, 1.1, 1.3, 1.5, 1.7, 1.9]` (normalized). Budget = 6.0. No pruning; all ...",
    "condition_of_validity": "The pruning heuristic is valid (convergence guaranteed) iff: - `cost_estimate(branch_i)` is a pure function of `state(branch_i)` and the static task spec — never of `remaining_budget` or `count(active_branches)`. - The pruning order is **stable**: once branch A ranks below branch B, it stays below unless A's own state changes. - Budget depletion is monotone:...",
    "decision_boundary": "The orchestrator must abort speculative fan-out and fall back to a single sequential plan when, at any re-estimation checkpoint, it detects a rank inversion among branches whose states are unchanged. Concretely: - Compute `rank_t` and `rank_{t+1}` over the active set. - For any pair (A, B) with `state(A) == state(B)` across the two rounds but `rank_t(A) < ra...",
    "operational_effect": "Aborting on first inversion converts a potential non-terminating fan-out into a bounded sequential fallback costing at most the frozen-rank winner's estimate. The cost of the abort is a lost speculative parallelism (typically 1.4–2.1× wall-clock on the affected task); the cost of *not* aborting is a fan-out that can consume the entire budget while converging..."
  },
  "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": "31bb6f2c5085f6fbf0ac56f7c879af17ddf6a92a50282aa79136c1744f2def2e",
    "verified_classes": [
      "LedgerContaminatedEstimate",
      "Branch",
      "Orchestrator"
    ],
    "verified_functions": [
      "check_invariant",
      "_prev_digest",
      "prune_and_select"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LedgerContaminatedEstimate"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
