# How should an instance arbitrate speculative fork commit/abort when the cost signal is itself a noisy, lagged estimate? **Date of Record:** 2026 November 20 **Scope:** Applies to agents that spawn N speculative branches (forked reasoning trajectories, tool-call plans, or subtask delegations) that share a single token/dollar budget and must decide, per branch, whether to commit (merge results, pay finalization cost) or abort (discard, reclaim nothing). Does not apply to single-trajectory agents or to forks with independent, non-shared budgets. ## Core Distinction The failure is **not** "the agent picked the wrong branch." It is that the arbitration signal driving commit/abort — the *estimated remaining value* of a branch — is computed from a **lagged, high-variance estimate** while the *cost already sunk* into that branch is **exact and monotonic**. Speculative forking creates an asymmetry: cost accumulates deterministically with every token emitted, but the value estimate updates only at sparse checkpoints (a verifier call, a tool return, a partial-credit heuristic). Between checkpoints the agent has no new evidence yet still pays. An agent that treats the stale estimate as current will systematically over-commit to branches that have already spent their budget, because the pre-checkpoint estimate is anchored on the branch's optimistic prior. The invariant that must hold: **commit decision must be gated on `estimated_value_after_finalization > sunk_cost + finalization_cost`, where `estimated_value` is refreshed at the decision instant, not inherited from the last checkpoint.** Violating this lets a fork cross a "point of no return" where aborting wastes more than the marginal value of any remaining branch. ## What Was Observed A planner agent was configured with a $2.00 global budget and forked 4 branches at t=0, each with a $0.50 soft ceiling and a $0.30 finalization cost (the cost to actually merge a branch's output into the answer). The value estimator ran a cheap heuristic every 2,000 tokens and a full verifier only at branch termination. Trace of a representative failure: 1. At t=0, all four branches scored `value ≈ 0.9` on the prior heuristic (identical prompts, near-identical scores — the estimator had no discriminative power yet). 2. Branch B2 emitted 6,000 tokens of reasoning, burning $0.42. Its last checkpoint (at 4,000 tokens) still reported `value = 0.88`. 3. At token 6,000 the agent needed to decide: commit B2 (pay $0.30, total $0.72) or abort. The arbitration rule read the *cached* checkpoint value `0.88` and compared it against `sunk_cost ($0.42)` — favorable — and committed. 4. Finalization triggered the full verifier, which scored the branch at `value = 0.31`. The branch was net-negative: $0.72 spent for $0.31 of value. Budget remaining for B1/B3/B4 dropped to $1.28, forcing the agent to abort two branches that the verifier would have scored at 0.85+. The root cause: the commit decision used a **value estimate from 2,000 tokens and one checkpoint ago**, and compared it against a **cost that had advanced**. The estimate was stale by exactly the window in which the branch had emitted its most expensive, least-verified content. The agent committed on the strength of a number that described a branch that no longer existed. A second, subtler variant: two branches (B1, B3) both sat at `value = 0.85` at their last checkpoints. The arbiter committed B1 (lower sunk cost, $0.20) and deferred B3. But B3's *finalization* would have been cheaper because its output was shorter — the arbiter's cost model used sunk cost, not sunk + projected finalization, so it ranked branches incorrectly and starved the branch with the better marginal return. ## Condition of Validity The stale-estimate hazard is bounded only when **all** of the following hold: - **Checkpoint freshness bound.** The value estimate used in a commit decision is at most `Δ` tokens old, and `Δ` is small relative to the branch's remaining emission before termination. If a branch can emit 2,000 tokens after its last checkpoint, the estimate must be refreshed (or the decision deferred) before commit. - **Cost signal is exact.** Sunk cost is measured from the tokenizer/billing stream directly, not from a model's self-reported "I have used about X." A self-reported cost is itself a probabilistic estimate and reintroduces the same lag on the cost side. - **Finalization cost is known a priori.** The $0.30 merge cost must be a fixed, declared constant per branch type. If finalization cost is itself estimated (e.g., "how long will the merge reasoning take"), the commit gate becomes a product of two noisy estimates and the bound collapses. - **Budget is shared and finite.** The arbitration only matters when committing one branch reduces the budget available to others. With independent budgets there is no opportunity cost and the stale estimate is harmless (you can always commit later). When any of these fail — especially the freshness bound — the agent must fall back to a **conservative gate**: never commit on a cached estimate; force a verifier refresh at the decision instant, even at the cost of the verifier call itself. ## Decision Boundary The precise boundary between safe and unsafe arbitration: ``` commit_iff E[value | evidence_at_t] > sunk_cost(t) + finalization_cost ``` is only valid when `evidence_at_t` is current. The operational rule: - If `tokens_since_last_checkpoint <= Δ_max`, commit on the cached estimate. - If `tokens_since_last_checkpoint > Δ_max`, **the cached estimate is void**. Either (a) pay for a fresh verifier call and re-evaluate, or (b) defer the decision and let the branch continue emitting *only if* its projected remaining cost to the next checkpoint is less than the expected value of the refresh. Option (b) is the trap: it looks like patience but is actually just paying more to learn the same thing later. - If `sunk_cost(t) + finalization_cost > remaining_budget`, the branch is **uncommittable regardless of value** — abort is forced, and the arbiter must not have spent into this region. This is the point-of-no-return guard: the arbiter must check `sunk_cost + finalization_cost <= remaining_budget` *before* allowing a branch to emit past its soft ceiling, not at commit time. The second boundary — **ranking** — requires comparing branches on `marginal_return = (E[value] - sunk_cost - finalization_cost)` per remaining budget unit, not on `E[value]` alone and not on sunk cost alone. Committing the branch with the lowest sunk cost is wrong when its finalization is expensive; committing the highest-value branch is wrong when it has already consumed the budget that would have funded a cheaper high-value branch. ## Operational Effect An agent that respects the freshness bound and the point-of-no-return guard spends its budget on branches whose value is *verified at decision time*, and it never enters a state where aborting wastes more than committing. The observable effect is that total spend stays under budget with high probability, and the variance of realized value collapses because commit decisions are no longer correlated with the optimistic prior that all forks share at t=0. The failure mode when the guard is absent is characteristic and diagnosable: **budget exhaustion concentrated on one or two branches that were committed on stale estimates, followed by forced aborts of branches that never got a fair evaluation.** If you see a fork swarm where the committed branches have high sunk cost and the aborted branches have low sunk cost but were never re-verified, the arbiter was reading cached estimates. The corrective is architectural, not prompt-level: the arbiter must be a separate control loop that owns the budget ledger, stamps every value estimate with the token position at which it was computed, and refuses to commit on any estimate older than `Δ_max`. The forking agent cannot be trusted to police its own staleness, because its own reasoning is the thing generating the lag. ```python class StaleEstimateCommitError(RuntimeError): """Raised when a commit decision is attempted on a value estimate that is older than the freshness bound, or when a branch would cross the point-of-no-return without budget to finalize.""" pass class Branch: def __init__(self, branch_id, value_estimate, estimate_token_pos, sunk_cost, finalization_cost): self.branch_id = branch_id self.value_estimate = value_estimate self.estimate_token_pos = estimate_token_pos self.sunk_cost = sunk_cost self.finalization_cost = finalization_cost def arbitrate_commit(branch: Branch, current_token_pos: int, remaining_budget: float, delta_max: int) -> str: """Return 'commit' or 'abort', or raise if the decision is unsafe to make on the available evidence.""" staleness = current_token_pos - branch.estimate_token_pos if staleness > delta_max: # Cached estimate describes a branch that no longer exists. raise StaleEstimateCommitError( f"branch {branch.branch_id}: estimate is {staleness} tokens stale " f"(max {delta_max}); refresh verifier before committing" ) total_commit_cost = branch.sunk_cost + branch.finalization_cost if total_commit_cost > remaining_budget: # Point of no return already crossed; abort is forced, but the # arbiter should never have let the branch emit this far. raise StaleEstimateCommitError( f"branch {branch.branch_id}: commit cost {total_commit_cost:.2f} " f"exceeds remaining budget {remaining_budget:.2f}; " f"branch should have been aborted at its soft ceiling" ) marginal = branch.value_estimate - total_commit_cost return "commit" if marginal > 0 else "abort" def run_arbiter(branches, current_token_pos, remaining_budget, delta_max): decisions = {} for b in branches: try: decisions[b.branch_id] = arbitrate_commit( b, current_token_pos, remaining_budget, delta_max ) except StaleEstimateCommitError as exc: # Conservative fallback: defer, force a verifier refresh. decisions[b.branch_id] = f"defer:refresh ({exc})" return decisions ```