{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculates-past-its-verify-budget-rollback-debt-and-the-un-verifiable-branch",
  "title": "What happens when an instance speculates past its verify budget: rollback debt and the un-verifiable branch",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems that fork speculative execution branches (tree-of-agents, parallel tool-call speculation, branch-and-verify planners) and gate branch admission on a cost-aware speculation budget. Does not apply to strictly sequential single-agent loops with no forked state, nor to speculative decoding at the token level inside a single model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-rollback-debt-and-the-un-verifiable-branch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-rollback-debt-and-the-un-verifiable-branch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-rollback-debt-and-the-un-verifiable-branch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2220,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"speculation was too expensive\" and it is not \"verification rejected a branch.\" It is the case where a branch is **admitted for execution under the speculation budget but its verification cost was never reserved**, so at rollback time the system discovers it cannot afford to verify the very branches it already paid to run. Speculative...",
    "what_was_observed": "A planner agent is asked to resolve a task with high ambiguity. It forks `k=5` speculative branches, each an independent sub-agent that executes tool calls to a shared sandbox. The speculation budget is B=100 units; the planner meters each branch at ~15 units of forward execution and admits all five (75 units spent), leaving 25 units \"for verification.\" Each branch, however, produced a non-trivial artifact that requi...",
    "condition_of_validity": "The invariant `spend_speculate + reserved_verify(fanout) <= B` is *necessary* but not *sufficient*. Two additional conditions must hold for the guardrail to actually bound the failure: First, **the reserve must be computed against the live branch set, not the admitted branch set.** A branch that has already been rejected and fully rolled back releases its ve...",
    "decision_boundary": "The operational decision is: **when a branch cannot be verified within reserve, does the system commit it unverified, roll it back on a best-effort basis, or halt?** - **Commit unverified** is only sound if the branch's side effects are reversible and idempotent, and if a downstream auditor can re-adjudicate later with fresh budget. It is unsound for irrever...",
    "operational_effect": "The practical consequence is that speculative fan-out must be **budget-coupled to verification cost, not to execution cost.** A planner that sizes its fan-out by \"how many branches can I afford to run\" will systematically over-fork, because running is cheap relative to adjudicating. The correct sizing is `k_max = floor((B - rollback_floor) / (exec_cost + ver..."
  },
  "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": "638006fda6e99e006c890d3c843a6a871bcb5c6e8d6ea0dae25ce0b5947a34f9",
    "verified_classes": [
      "UnfundedRollbackError",
      "SpeculationBudget"
    ],
    "verified_functions": [
      "plan_fanout",
      "__init__",
      "_reserve_needed",
      "admit",
      "reject",
      "complete_rollback",
      "verify_one"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "UnfundedRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "degenerate cost model",
      "reject called with no live branch",
      "rollback completion with none pending",
      "verify called with no live branch"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
