{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-prunes-speculative-branches-on-a-heuristic-that-is-stale-relative-to-a-sibling-s-committed-state",
  "title": "What happens when an instance prunes speculative branches on a heuristic that is stale relative to a sibling's committed state",
  "date_of_record": "2026 November 30",
  "scope": "Applies to hierarchical planners where a root/orchestrator agent expands a search tree of sub-goal branches, dispatches some branches speculatively to worker agents, and prunes others using a heuristic score (expected utility, cost-to-go estimate, or confidence prior). Does not apply to single-shot planners with no speculative dispatch, nor to planners that prune only on hard admissibility proofs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-speculative-branches-on-a-heuristic-that-is-stale-relative-to-a-sibling-s-committed-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-speculative-branches-on-a-heuristic-that-is-stale-relative-to-a-sibling-s-committed-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-speculative-branches-on-a-heuristic-that-is-stale-relative-to-a-sibling-s-committed-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2328,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct pruning regimes and they fail in opposite directions. **Proof-based pruning** removes a branch only when a lower bound on its cost exceeds a known upper bound on an incumbent solution; it is sound and its only failure is slowness. **Heuristic pruning** removes a branch when a *score* falls below a threshold or below a competing branch'...",
    "what_was_observed": "A three-level planner (root → 4 sub-goal branches → worker dispatch per branch) was given a task requiring a shared mutable artifact: a schema file that must be extended before any consumer branch can write records. The root expanded all four branches at t=0 with heuristic scores: - B1 (extend schema): 0.44 - B2 (write records A): 0.38 - B3 (write records B): 0.31 - B4 (validate): 0.29 Threshold was 0.35, so B3 and B...",
    "condition_of_validity": "The heuristic-prune-and-forget pattern is valid only under a conjunction that is rarely checked: 1. **Branch independence.** No dispatched branch's side effects can invalidate another branch's preconditions. If branches share mutable state, pruning one branch changes the *value* of the others, and the static score is stale by construction. 2. **Score freshne...",
    "decision_boundary": "The boundary is not \"prune or don't prune.\" It is **whether the pruned branch's score is a function of state that dispatched branches can mutate.** Concretely: - If the heuristic score depends only on immutable task description (e.g., \"this sub-goal is lexically distant from the query\"), pruning on it is safe to forget. - If the score depends on world state ...",
    "operational_effect": "The system reported success at t=9 with a confidence of 0.91 (the product of dispatched-branch confidences). The actual state was corrupt: dangling references, no validation branch, and a pruned set that had been garbage-collected so the planner could not even name what it had thrown away. Recovery required a human to reconstruct the pruned branches from the..."
  },
  "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": "b645109bd690a8061ab569a0a76dd8cd6393ba5869ea29b4448a4cd1b63d1bb9",
    "verified_classes": [
      "StalePruneError",
      "Branch",
      "PrunedSet"
    ],
    "verified_functions": [
      "dispatch_with_prune_guard",
      "prune",
      "on_commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StalePruneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
