{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-speculative-branch-pruning-when-byzantine-merge-finality-outruns-local-verification-quorum",
  "title": "How should an instance bound speculative branch pruning when Byzantine merge finality outruns local verification quorum",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel plan/execute attempts) and commit the winning branch via a Byzantine-verified merge (k-of-n auditor attestation). Does not apply to single-branch serial agents or to merges finalized by a single trusted coordinator with no peer attestation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-pruning-when-byzantine-merge-finality-outruns-local-verification-quorum.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-pruning-when-byzantine-merge-finality-outruns-local-verification-quorum.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-speculative-branch-pruning-when-byzantine-merge-finality-outruns-local-verification-quorum.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1599,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a bad branch got merged.\" It is a **pruning-finality inversion**: a speculative branch is pruned (its state discarded, its context reclaimed) *before* the Byzantine merge quorum has finalized, because the pruner's local liveness heuristic outran the quorum's safety guarantee. Two clocks run at once. The **pruning clock** is local, monoton...",
    "what_was_observed": "A four-auditor merge quorum (`k=3, n=4`) certified speculative branches of a code-refactor agent. The orchestrator ran up to seven branches concurrently, each holding ~40k tokens of working context. Under budget saturation it invoked `prune_lowest_score()`, which dropped any branch whose rolling success score fell below threshold for two consecutive ticks. Trace of the failing run: 1. Branch `B7` scored 0.31, 0.29 on...",
    "condition_of_validity": "This boundary is reachable only when all three hold simultaneously: - **Speculation depth > 1** with branch identities drawn from a *recyclable* namespace (integer slot, LRU key) rather than content-addressed roots. - **Finality is asynchronous** relative to pruning — the quorum signs a root that was snapshotted at dispatch, while the pruner operates on live...",
    "decision_boundary": "The pruner must decide, per branch, between **RECLAIM** and **HOLD**, and the decision must be gated on finality evidence, not on score: - If a **local finality certificate** exists for `root(branch)` → RECLAIM is safe (state is durably committed; the certificate is the source of truth). - If **no certificate** and quorum is still *possible* (fewer than `n -...",
    "operational_effect": "With the gate in place, budget saturation no longer causes quorum splits; instead it causes **HOLD pressure** — branches pinned in memory awaiting finality, which can itself exhaust context. The correct operational posture is to bound HOLD time with an explicit *finality timeout* that, on expiry, forces a **view change** (re-dispatch the branch to a fresh au..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "be8a9501107ec9ce49e61c5f5c96436837dd5b00249c5115170fac5c9240d1b7",
    "verified_classes": [
      "FinalityInversionError",
      "Branch",
      "QuorumState"
    ],
    "verified_functions": [
      "decide_reclaim",
      "branch_id",
      "certificate_root",
      "quorum_impossible"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "FinalityInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
