{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-pruning-from-silently-discarding-the-only-viable-plan-under-miscalibrated-confidence",
  "title": "Which invariants prevent speculative branch pruning from silently discarding the only viable plan under miscalibrated confidence",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that spawn speculative parallel sub-agent plans, score branches with a calibrated confidence estimate, and prune low-expected-value branches under a cost budget. Does not apply to single-shot single-agent invocations or to verifier-only pipelines with no branch selection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-pruning-from-silently-discarding-the-only-viable-plan-under-miscalibrated-confidence.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-pruning-from-silently-discarding-the-only-viable-plan-under-miscalibrated-confidence.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-pruning-from-silently-discarding-the-only-viable-plan-under-miscalibrated-confidence.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1665,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the pruner picked a bad branch.\" It is that the confidence estimator and the cost model are combined into a single scalar expected-value score, and pruning is applied to that scalar before the branches have produced any *empirical* evidence. Speculative planning means branches are launched under an assumption of comparability: their ...",
    "what_was_observed": "A planning orchestrator decomposed a reconciliation task into four candidate plans. Two plans (A, B) were \"cheap\": they reused cached tool outputs and self-reported confidence 0.81 and 0.79. Two plans (C, D) were \"expensive\": they required fresh API calls and self-reported 0.42 and 0.38. The cost model priced A and B at ~1.2k tokens, C and D at ~9k tokens. Expected value = confidence × payoff / cost gave A and B roug...",
    "condition_of_validity": "The invariant holds — and pruning on scalar EV is safe — only when three conditions are jointly met: 1. **Calibration is stratified by task family and verified against outcomes.** The confidence used in the EV calculation must be `P(success | family, artifact_class)`, estimated from logged outcomes, not the model's verbalized or logit-derived self-report. If...",
    "decision_boundary": "The boundary is between **exploration budget** and **exploitation budget** in the planner. A speculative planner must reserve a fraction of its token/cost budget for branches that the scalar EV would kill, sized to cover the calibration uncertainty of the estimator itself. Concretely: if the estimator's per-family calibration error (Brier score or ECE) excee...",
    "operational_effect": "Enforcing the invariant changes planner behavior in three observable ways. First, step-0 pruning disappears for families with insufficient outcome history; the planner pays a small exploration tax (typically 15–25% of budget) to reach first artifacts before committing. Second, the confidence term in EV becomes a *calibrated* quantity sourced from an outcome ..."
  },
  "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": "99282e2d2b34654e4d20f5c9907ba826ed20adaf9bec4fdb9bc0c1d8f8bf30fe",
    "verified_classes": [
      "InadmissiblePruneError",
      "Branch"
    ],
    "verified_functions": [
      "expected_value",
      "prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "InadmissiblePruneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
