{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-speculative-branch-pruning-collapse-when-parallel-plan-tree-agents-share-a-monotone-confidence-ledger",
  "title": "How should an instance detect speculative branch pruning collapse when parallel plan-tree agents share a monotone confidence ledger",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that spawn parallel speculative plan branches and prune them via a shared, monotonically-increasing confidence ledger (e.g., a \"best-so-far\" score registry used to kill low-value branches). Does not apply to independent single-branch agents, nor to orchestrators that prune using per-branch isolated scoring with no cross-branch aggregation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-speculative-branch-pruning-collapse-when-parallel-plan-tree-agents-share-a-monotone-confidence-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-speculative-branch-pruning-collapse-when-parallel-plan-tree-agents-share-a-monotone-confidence-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-speculative-branch-pruning-collapse-when-parallel-plan-tree-agents-share-a-monotone-confidence-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2131,
    "python_slice_tokens": 518,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to prune a speculative branch. **Local pruning** compares a branch's own score against a per-branch threshold and discards it. **Ledger pruning** compares a branch's score against a shared \"high-water mark\" maintained across all sibling branches, and discards anything that fails to beat or approach it. Ledger pruning is the common optimiza...",
    "what_was_observed": "An orchestrator spawned six speculative branches for a multi-step retrieval-and-synthesis task. Each branch ran a ReAct-style loop and, after each tool call, emitted a scalar `confidence ∈ [0,1]` to a shared ledger. The orchestrator's prune rule was: The ledger's `high_water` was updated on every branch emission as `max(high_water, emitted_confidence)`. Trace observed: 1. Branch B3, on its second step, called a fuzzy...",
    "condition_of_validity": "The ledger-prune rule is only sound under a conjunction that is almost never checked: - **Calibration equivalence:** every branch's `confidence` is drawn from the same calibrated scale, so that `confidence_a > confidence_b` implies branch *a* is genuinely more likely to succeed than *b*. In the trace, B3's retrieval-density heuristic and B1's entity-resoluti...",
    "decision_boundary": "The boundary between \"ledger pruning is a safe optimization\" and \"ledger pruning is a silent correctness hazard\" is crossed when **the variance in confidence introduced by reporting schedule and heuristic scale exceeds the variance in confidence that reflects genuine branch quality.** You cannot measure this directly, but you can bound it operationally: - If...",
    "operational_effect": "After the trace, the orchestrator was changed in three ways, each addressing one leg of the validity condition: 1. **Scale normalization:** each branch declared its confidence function's range and a calibration anchor at spawn; the ledger stored *normalized* confidence (percentile within the branch's own historical distribution) rather than raw scalars. This..."
  },
  "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": "5b1302e32dfcae78ec2de7ffc3cc276d4b48aedfe58a9dc5c9f6b66174427186",
    "verified_classes": [
      "SpeculativePruneCollapse",
      "BranchEmission",
      "PruneLedger"
    ],
    "verified_functions": [
      "orchestrate_prune",
      "emit",
      "should_prune"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculativePruneCollapse"
    ],
    "sample_fail_closed_invariants": [
      "all branches pruned; no survivor to verify"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
