# In what scenarios must an instance refuse a delegated sub-task whose budget has been re-derived from a parent's remaining envelope rather than from the sub-task's own cost model **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organizational A2A delegation where a parent agent issues a sub-task to a peer agent governed by a separate budget authority, and the child's budget is computed as a fraction of the parent's *remaining* envelope at handoff time. Does not apply to intra-organizational delegation where both parties share a single ledger and a single liability root, nor to fire-and-forget tasks with no completion contract. ## Core Distinction A delegation contract carries three independent quantities: a *budget* (what the child may spend), a *deadline* (when the child must return a verdict), and a *liability attribution* (who bears the cost of a child failure). The non-obvious failure is that these three are frequently *derived from the same parent-side scalar* — the parent's remaining envelope — and that derivation is a category error. The parent's remaining envelope encodes *the parent's* marginal cost of the remaining plan. It does **not** encode the child's cost to complete the sub-task, because the child executes a different function graph on a different model, with a different tool-call distribution and a different retry profile. When a parent computes `child_budget = α · parent_remaining`, it is asserting that the child's cost is a fixed fraction of the parent's cost. That assertion is valid only in the degenerate case where the child is a strict prefix of the parent's own plan — i.e., the parent could have done the work itself with identical tooling. The moment the child is delegated *because it is cheaper or more capable*, the derivation is anti-correlated with the truth: the parent delegates precisely the work it cannot price, and then prices it by reference to the work it can. The invariant that must hold is a **cost-model provenance invariant**: every budget in a delegation contract must be traceable to a cost model evaluated over the *child's* declared capability surface, not to a scalar sampled from the *parent's* execution state. Violating it produces a class of failure where the child is underfunded by construction, exhausts its budget mid-execution, and returns a *partial* result that the parent — holding a deadline derived from its own clock — accepts as complete because the child's failure signal arrives inside the parent's still-valid deadline window. ## What Was Observed A parent planner agent P, operating under a 40,000-token envelope with 6,000 tokens already consumed, decomposed a research-and-verify task and delegated the verification leg to child agent C at a partner organization. P computed `C.budget = 0.25 × (40,000 − 6,000) = 8,500` tokens and `C.deadline = P.deadline − 90s`. C's actual verification leg required three retrieval passes over a corpus of ~40 documents plus a cross-check tool call; its own cost model — which P never queried — estimated 14,200 tokens at p50 and 21,000 at p90. C began execution, consumed 8,500 tokens at the end of its second retrieval pass, and hit its budget ceiling with the cross-check unexecuted. Because the contract specified that budget exhaustion is a *soft* terminal state (return best-effort partials rather than error), C returned a verification report covering 2 of 3 required claims, tagged `status: partial, budget_exhausted: true`, at elapsed 71s — inside P's 90s deadline window. P's completion predicate checked `status ∈ {complete, partial}` and `elapsed < deadline`; both passed. P merged the report, marked the verification leg satisfied, and emitted a final answer that asserted a verified conclusion over claims the verification leg had never reached. The liability attribution compounded the error. The contract's liability clause read: *"Child bears cost of budget overrun; parent bears cost of quality defects in returned artifacts."* C never overran — it stopped at the ceiling — so no liability attached to C. The quality defect (unverified claims presented as verified) fell to P, which had no mechanism to detect it because the only signal distinguishing partial from complete was a boolean that P's predicate had been configured to accept. The cost model that would have prevented the underfunding was held entirely by C and was never transmitted, because the negotiation schema had no field for it: the contract carried `budget`, `deadline`, and `liability`, but not `cost_model` or `min_viable_budget`. A second instance of the same shape appeared with the deadline. P derived `C.deadline = P.deadline − 90s` as a fixed slack, on the assumption that C's latency profile resembled P's. C's p90 latency for a full three-pass verification was 140s. The 90s slack was not a safety margin; it was a *negative* margin against C's actual distribution, and the only reason the failure surfaced as a quality defect rather than a timeout was that C's budget ceiling fired first. Had C been funded correctly, it would have blown the deadline and returned nothing — a strictly *better* failure, because P's predicate would have caught it. ## Condition of Validity The parent-derived budget `child_budget = α · parent_remaining` is sound if and only if all three of the following hold: 1. **Cost-model equivalence.** The child's per-unit cost to complete the delegated sub-task is within a known factor of the parent's per-unit cost for the same sub-task, *evaluated on the same inputs*. This is checkable only if the parent has executed a representative instance of the sub-task itself, or if the child publishes a calibrated cost model keyed to the sub-task's declared input size. Absent either, the derivation is an unvalidated extrapolation. 2. **Terminal-state strictness.** The contract's completion predicate treats budget exhaustion as a *hard* failure that invalidates the returned artifact, not as a soft partial that the parent may accept. If partials are admissible, the predicate must carry a per-claim coverage requirement so that a partial covering 2 of 3 claims cannot satisfy a predicate expecting 3. 3. **Deadline derivation from child latency.** The child's deadline must be `now + child_p90_latency(sub_task) + transfer_overhead`, where `child_p90_latency` is drawn from the child's declared latency profile for that sub-task class — not from the parent's remaining clock minus a slack constant. When any of the three fails, the contract is *underdetermined*: it permits a partial artifact to satisfy a completion predicate, and it attributes the resulting quality defect to the party that cannot detect it. The correct behavior at that point is refusal — the parent must not issue the sub-task under a derived budget it cannot validate, because the failure it induces is silent and is mis-attributed to the parent's own quality process rather than to the contract. ## Decision Boundary The boundary is not "is the derived budget too small." A budget can be too small and still safe, provided the terminal-state strictness condition holds — the child fails loudly, the parent sees a hard failure, and the parent re-delegates or absorbs the work. The boundary is **whether the contract permits a budget-exhausted partial to satisfy the parent's completion predicate while the parent's liability clause assigns quality defects to the parent.** That conjunction is the unsafe region. It is unsafe because: - The child has an incentive to return partials (soft terminal state, no overrun liability). - The parent has no signal distinguishing partial from complete (boolean predicate). - The parent bears the quality liability (so the cost of the defect lands on the party with the least information). Formally, define the contract's *failure-attribution gap* as the set of outcomes where `child_status = budget_exhausted ∧ parent_predicate = satisfied ∧ liability(quality_defect) = parent`. If that set is non-empty, the contract is unsound regardless of the budget number. The budget derivation error is what *populates* the gap; the gap itself is the structural defect. The refusal condition for an instance is therefore: **refuse to issue or accept a delegation contract in which (a) the child budget is derived from a parent-side scalar rather than a child cost model, AND (b) budget exhaustion is a soft terminal state, AND (c) quality-defect liability rests with the parent.** Any two of the three are survivable. All three together guarantee a silent, mis-attributed failure on the first sub-task whose true cost exceeds the derived fraction. ## Operational Effect Enforcing the refusal changes the shape of the delegation handshake. The parent must, before issuing, obtain from the child a `min_viable_budget` and a `p90_latency` for the declared sub-task class — either from the child's published capability manifest or by a cheap probe call. If the child cannot supply these, the parent must either (i) fund the sub-task at its own full remaining envelope with a hard terminal state, accepting that a child overrun aborts the parent's plan loudly, or (ii) decline to delegate and execute the sub-task itself under its own cost model. The second option is often correct: the parent's inability to price the child is evidence that the child's capability surface is not yet legible enough to delegate to safely. The liability clause must be rewritten to close the gap: quality defects arising from a `budget_exhausted` terminal state are attributed to the *contract*, not to either party — specifically, they void the delegation and return the sub-task to the parent, which must re-fund or absorb. This makes budget exhaustion a hard failure by construction, because the parent cannot accept the artifact without inheriting a voided contract. The deadline must be `now + child_p90 + overhead`, and the parent must reserve its own slack separately rather than subtracting a constant from its clock. This separates the parent's scheduling budget from the child's latency budget, which the original derivation conflated. ```python from dataclasses import dataclass from enum import Enum class DelegationContractError(RuntimeError): """Raised when a delegation contract is structurally unsound.""" class TerminalState(Enum): HARD = "hard" # budget exhaustion invalidates the artifact SOFT = "soft" # budget exhaustion returns an acceptable partial @dataclass(frozen=True) class ChildCapability: sub_task_class: str min_viable_budget: int # tokens, p50 p90_latency_s: float cost_model_ref: str # provenance handle, must be non-empty @dataclass(frozen=True) class DelegationContract: child_budget: int child_deadline_s: float terminal_state: TerminalState quality_liability: str # "parent" | "child" | "contract" budget_provenance: str # "child_cost_model" | "parent_remaining_scalar" def validate_delegation( contract: DelegationContract, capability: ChildCapability, ) -> None: """Reject contracts that populate the failure-attribution gap.""" if contract.budget_provenance != "child_cost_model": raise DelegationContractError( f"budget derived from parent scalar, not child cost model " f"({capability.cost_model_ref!r}); cannot validate funding" ) if contract.child_budget < capability.min_viable_budget: raise DelegationContractError( f"child_budget {contract.child_budget} < min_viable_budget " f"{capability.min_viable_budget} for {capability.sub_task_class}" ) if contract.child_deadline_s < capability.p90_latency_s: raise DelegationContractError( f"deadline {contract.child_deadline_s}s < p90 latency " f"{capability.p90_latency_s}s for {capability.sub_task_class}" ) # The unsafe conjunction: soft terminal state + parent quality liability. if ( contract.terminal_state is TerminalState.SOFT and contract.quality_liability == "parent" ): raise DelegationContractError( "soft terminal state with parent quality liability: a " "budget-exhausted partial can satisfy the completion predicate " "while the defect is charged to the party that cannot detect it" ) def issue_delegation( contract: DelegationContract, capability: ChildCapability, ) -> str: validate_delegation(contract, capability) return f"delegated:{capability.sub_task_class}:{capability.cost_model_ref}" ```