{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculates-past-its-verify-budget-and-commits-an-unverified-branch-after-rollback",
  "title": "What happens when an instance speculates past its verify budget and commits an unverified branch after rollback",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that run speculative branches (parallel agent rollouts) under a cost-aware speculation budget with branch-and-verify rollback, where verification is asynchronous and branches may commit before their verify result is known. Does not apply to single-shot agents, synchronous verify-then-commit pipelines, or systems where branch commit is gated on a hard verifier barrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-and-commits-an-unverified-branch-after-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-and-commits-an-unverified-branch-after-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculates-past-its-verify-budget-and-commits-an-unverified-branch-after-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1934,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **speculation budget** (a forward-looking cap on how much compute/tokens/dollars may be spent *launching* branches) and **verification credit** (the accounting of how many launched branches can still be *checked* before commit). Most orchestrators conflate these into one counter. They decrement a single `budget` on bra...",
    "what_was_observed": "A planner instance (`P`) received a task with a soft latency target. It decomposed the task into four subgoals and, for the two highest-uncertainty subgoals, launched speculative branches: three rollouts each (`B1a..c`, `B2a..c`), six total. The speculation budget was `$2.00` of model spend, tracked in one `budget_remaining` field. Each branch cost roughly `$0.12` to generate, so after six launches `budget_remaining ...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. **Generation and verification draw from a shared budget counter.** If verification has its own reserved pool, the failure cannot occur — launches cannot starve checks. 2. **Commit is not gated on verification completion.** The branch is written into working state on selection, and verificat...",
    "decision_boundary": "The decision boundary is the point at which the orchestrator must choose between **commit-without-verify** and **abort-the-subgoal**. It sits exactly where `verification_credit` reaches zero with unverified branches still pending commit. Below the boundary (credit available): commit the selected branch, dispatch verification, and on FAIL roll back and re-lau...",
    "operational_effect": "The downstream effect is **silent state corruption that survives the task**. The unverified branch `B1b` was committed, and because the task completed, its output was distilled into the semantic memory layer as a validated result. The auditor that would have caught its fabrication was never dispatched. On the next task that retrieved from that memory, the fa..."
  },
  "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": "2e494ab9d0747791492cbc38f54f7799cdb8f655982d564a72d12b2200a9365e",
    "verified_classes": [
      "UnverifiedCommitError",
      "SpeculationLedger"
    ],
    "verified_functions": [
      "__init__",
      "can_launch",
      "launch",
      "verify",
      "commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiedCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
