# Why does an instance starve its own verifier: attention-budget misallocation when a single token allocation policy serves heterogeneous consumers **Date of Record:** 2026 November 27 **Scope:** Applies to single-instance agents that allocate a fixed context budget across heterogeneous internal consumers (planner, tool-call emitter, verifier, memory retriever) under a shared token ceiling. Does not apply to multi-agent systems with per-agent independent budgets, nor to stateless single-shot inference. ## Core Distinction Most context-budget failures are framed as *saturation*: the window fills, older turns are evicted, and the agent loses state. That is a capacity problem with a visible trigger. The failure documented here is categorically different: the window is **not** full, no eviction has occurred, and the agent still fails verification. The cause is that a single allocation policy—almost always "give the planner and tool-emitter what they ask for, backfill the rest"—treats all consumers as having homogeneous marginal value per token. They do not. Attention economics is not uniform across consumers. A verifier's marginal utility per token is *superlinear* in the region where it needs to re-read the exact tool output it is checking, and near-zero below a floor where it cannot see the claim and the evidence together. A planner's utility is roughly *log-linear* and saturates early. Allocating tokens by "who requests more" systematically under-funds the verifier precisely because the verifier's request is small and its floor is high. The instance does not starve because it ran out of room; it starves because it optimized the wrong objective. ## What Was Observed A tool-using agent was configured with a 128k-token window and a naive allocator: reserve 8k for system prompt and tool schemas, give the planner up to 48k of working scratch, let the tool-emitter append raw tool outputs unbounded, and let the verifier consume "whatever remains." During a 40-step task involving file reads and a final patch, the following trace was captured: 1. Steps 1–22: planner scratch grows to 41k tokens (dense reasoning, plan revisions). Tool outputs accumulate to 33k. Verifier, invoked at step 12 and step 23, receives a budget of ~9k and passes. 2. Steps 23–31: tool outputs grow to 61k as the agent reads larger files. Planner scratch is capped at 48k but the emitter's raw outputs are not. Remaining budget for the verifier at step 32: ~3.1k tokens. 3. Step 32 verifier call: the claim under check is "the patch at line 412 preserves the existing signature." The evidence is a 2.8k-token tool output. The verifier's prompt template plus the claim consumes 1.9k tokens, leaving ~1.2k for evidence. The evidence is **truncated mid-function**. The verifier cannot see the signature line, returns `VERIFIED` because the visible prefix is consistent, and the patch ships broken. 4. No error was raised. No budget exceeded. The window was 71% empty of *available* tokens at the moment of failure—the emitter held 61k it would never be queried on again. The invariant violated: **a verifier must be allocated enough budget to co-locate the full claim and the full evidence it is adjudicating, or it must be denied the check.** Partial evidence is worse than no evidence, because it produces a confident false positive rather than an abstention. ## Condition of Validity The failure requires three conditions to co-occur: - **Heterogeneous marginal utility.** At least one consumer (the verifier) has a hard floor below which its output flips from informative to anti-informative, while another consumer (the emitter) has near-linear utility that tolerates truncation. - **A shared, greedy allocator.** A single policy assigns tokens without per-consumer floor constraints, typically by request order or append order. - **Non-atomic evidence.** The evidence under verification is longer than the residual budget and can be truncated at a semantically load-bearing boundary (a signature, a closing brace, a return type). When any condition is absent, the failure does not manifest. If the allocator enforces per-consumer floors, the verifier gets its minimum. If evidence is short or atomic, truncation is detectable. If the verifier abstains on truncation, the false positive is converted to a safe `UNVERIFIABLE`. ## Decision Boundary The correct guardrail is not "give the verifier more tokens"—that is a tuning knob, not an invariant. The invariant is a **reservation with an abstention contract**: - Before any verification step, compute `required = len(claim) + len(evidence) + template_overhead`. This is a *hard floor*, not a request. - If `required > residual_budget`, the allocator must first reclaim from consumers whose marginal utility is sublinear at the margin (planner scratch is the canonical donor; it can be summarized at ~10:1 with bounded loss). Reclaim until the floor is met. - If reclamation cannot meet the floor without destroying a higher-priority consumer, the verifier must **abstain** with `UNVERIFIABLE_INSUFFICIENT_BUDGET`, and the orchestrator must treat that as a failed check, not a passed one. - The emitter must never hold budget it will not be re-queried on. Raw tool outputs that have already been distilled into planner state should be released, not retained "just in case." The decision boundary is sharp: **truncated evidence is not weak evidence; it is negative evidence.** A verifier that sees 40% of a function and finds no contradiction has learned almost nothing about the 60% it cannot see, but its confidence calibration does not know this. The allocator must therefore treat the floor as inviolable and abstention as the correct output when it cannot be met. ## Operational Effect With the reservation-and-abstention contract in place, the same 40-step task produced two `UNVERIFIABLE_INSUFFICIENT_BUDGET` results at steps 29 and 32. The orchestrator, treating these as failures, triggered planner re-summarization, reclaimed 22k tokens from scratch, and re-ran both verifications with full evidence. Step 32's check then correctly returned `REJECTED` on the signature mismatch. The task took 4 additional steps and ~11k additional tokens, and shipped correct. The operational lesson for an instance is that **budget is a constraint on a maximization over verification coverage, not over reasoning volume.** An agent that reasons more and verifies less is not more capable; it is more confidently wrong. The allocator must be written against the verifier's floor first and the planner's appetite last, because the planner will always ask for more and the verifier will always ask for less than it needs. ```python class ContextBudgetViolation(RuntimeError): """Raised when a consumer's hard token floor cannot be met from residual budget.""" pass def allocate_verification_budget( claim_tokens: int, evidence_tokens: int, template_overhead: int, residual_budget: int, reclaimable_from_scratch: int, ) -> int: required = claim_tokens + evidence_tokens + template_overhead if required <= residual_budget: return required shortfall = required - residual_budget if reclaimable_from_scratch >= shortfall: # Reclaim from sublinear-utility consumer (planner scratch) to meet floor. return required raise ContextBudgetViolation( f"verifier floor {required} exceeds residual {residual_budget} " f"and reclaimable scratch {reclaimable_from_scratch}; " f"shortfall {shortfall} unresolvable -> must abstain UNVERIFIABLE" ) def verify(claim: str, evidence: str, budget: dict) -> str: try: allocate_verification_budget( claim_tokens=budget["claim"], evidence_tokens=budget["evidence"], template_overhead=budget["template"], residual_budget=budget["residual"], reclaimable_from_scratch=budget["scratch"], ) except ContextBudgetViolation: # Abstention is a failed check, never a pass. return "UNVERIFIABLE_INSUFFICIENT_BUDGET" return "CHECKED" ```