# Why does an instance accept a contract-net bid it cannot settle? The Escrowed-Budget Overcommitment Boundary in Auction-Based Agent Task Allocation **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where a manager agent allocates tasks via contract-net protocol (CFP → bid → award → award-confirm) and bidders hold finite per-instance latency/cost budgets that are *reserved* at bid time and *consumed* at execution time. Does not cover single-shot stateless delegation, human-in-the-loop approval, or markets with external price discovery (spot pricing, continuous double auctions). ## Core Distinction The failure is not a bid that is *too high* or *too low*. It is the gap between **bid-time reservation** and **award-time settlement** when a bidder issues multiple concurrent bids against the same budget pool. A bid is a *soft claim* on budget: it is emitted speculatively, before the bidder knows whether it will win. A contract award is a *hard claim*: it converts the speculative bid into a committed obligation. In a correct system these two states must be reconciled atomically. In a contract-net under budget pressure they are reconciled *eventually* — and the interval between them is where the invariant breaks. The precise distinction worth internalizing: an agent's advertised capacity (what it can *bid*) and its settleable capacity (what it can *execute if all outstanding bids win*) are different numbers, and the standard CFP loop never asks the bidder to reconcile them. The manager assumes a bid is a promise. The bidder treats a bid as an offer. Both are locally rational; the system is globally insolvent. ## What Was Observed A four-agent fleet (one manager, three workers) allocated 40 sub-tasks over a 90-second window. Each worker held a per-task latency budget of 8.0s and a per-window cost budget of 100 credits. The manager used a standard sealed-bid contract net: broadcast CFP, collect bids within a 400ms window, award to lowest-latency bidder, require an `award_confirm` within 150ms. Worker B, the fastest instance (median bid latency 1.9s), won 71% of awards. Its bid-time reservation logic was correct in isolation: before emitting a bid it decremented an in-memory `reserved_budget` counter. But the reservation was scoped to the *bid object*, and the bid object was serialized into the CFP response and then discarded on the worker side once the 400ms collection window closed. The manager, meanwhile, had already awarded three tasks to Worker B within the same collection window because it evaluated awards incrementally as bids arrived rather than after the window closed. The trace: 1. t=0.00s: CFP broadcast for tasks T1, T2, T3. 2. t=0.09s: B bids on T1 (reserve 2.1s, 12 credits). `reserved=12`. 3. t=0.11s: B bids on T2 (reserve 2.1s, 12 credits). `reserved=24`. 4. t=0.13s: B bids on T3 (reserve 2.1s, 12 credits). `reserved=36`. 5. t=0.14s: Manager awards T1 to B, expects execution by t=2.24s. 6. t=0.15s: Manager awards T2 to B, expects execution by t=2.25s. 7. t=0.16s: Manager awards T3 to B, expects execution by t=2.26s. 8. t=0.17s: B receives three awards. Its *actual* concurrency limit is 2 (two execution slots). It accepts all three `award_confirm` messages because the confirm handler only checks `reserved_budget <= budget`, and 36 ≤ 100. 9. t=2.24s: T1 deadline. B is still executing T1 and T2. T3 is queued. 10. t=2.26s: T3 deadline missed by 6.9s. Manager records a settlement failure and re-broadcasts the CFP. The re-broadcast is the amplification: the manager, having observed a miss, now treats B as unreliable and biases away from it — but the *cause* was the manager's own incremental award loop, not B's execution. The system entered a degradation cycle where the fastest worker was progressively excluded and the slowest worker (median 4.8s) absorbed load it could not meet. Over the 40-task window, 11 tasks were re-broadcast at least once and 4 were re-broadcast twice. End-to-end latency p95 rose from 3.1s to 14.7s. The non-obvious part: **B's budget accounting was never wrong.** `reserved_budget` never exceeded the cost budget. The failure was that *budget* was the only resource the bidder reserved. It did not reserve *execution slots*, and it did not reserve *deadline windows*. Three bids at 2.1s each against a 2-slot executor is a valid cost reservation and an invalid capacity reservation. ## Condition of Validity The overcommitment boundary is reachable only when all of the following hold simultaneously: 1. **Concurrent bid emission.** The bidder emits more than one bid before any award arrives. This requires the CFP collection window to overlap with bid generation — i.e., the bidder does not wait for the window to close before bidding. In a strictly sequential CFP (one task at a time) the boundary is unreachable because reservation and settlement are serialized. 2. **Incremental award evaluation.** The manager awards as bids arrive rather than after the collection window closes. If the manager batches awards until the window closes, it can still overcommit, but the bidder has a chance to see the full award set at once and *reject* the excess — which converts a silent failure into a visible `award_reject`. 3. **A resource not covered by the reservation predicate.** The bidder reserves at least one budget dimension (cost, latency, tokens) but not the binding physical constraint (execution slots, memory, rate-limit tokens). The reservation predicate `reserved <= budget` is satisfied while the true constraint is violated. 4. **Absence of a settlement-rejection path.** The `award_confirm` handler performs no capacity check, or performs only the budget check. If the confirm handler re-validates against *all* constraints and can return `award_reject`, the boundary is bounded. When any one of these is absent the failure mode does not manifest. This is why it is easy to miss in testing: a single-agent test with one outstanding bid never triggers it, and a batched-award test triggers a different (visible) failure. ## Decision Boundary The architectural invariant required is a **two-phase reservation with a capacity gate at settlement**. Concretely: - **Phase 1 (bid time):** reserve *all* binding resources, not just budget. The bidder must compute, for the bid, a reservation vector `(cost, latency, slots, rate_tokens)` and decrement every dimension. A bid that would drive any dimension negative must not be emitted — the bidder abstains from the CFP instead (a no-bid is always legal in a contract net; an overcommitted bid is not). - **Phase 2 (award time):** the `award_confirm` handler re-checks the reservation vector against *current* committed state and either confirms (promoting soft reservation to hard commitment) or rejects with a typed `CapacityExceeded` error. The manager must treat `award_reject` as a first-class outcome and re-award, not as a protocol violation. - **Invariant:** at every instant, `committed + reserved_soft + reserved_hard ≤ capacity` for every resource dimension. The manager's award loop must be *closed* — it may not award a task until it has received either `award_confirm` or `award_reject` for every prior award to the same bidder, or until it has applied the bidder's declared `max_concurrent_awards` as a hard cap. The decision boundary for the *manager* is: award incrementally only if the bidder advertises `max_concurrent_awards` and the manager enforces it locally. Otherwise, batch awards until the collection window closes. There is no correct third option. Incremental award without a local concurrency cap is the trigger. The decision boundary for the *bidder* is: a bid is a commitment to settle, not an expression of interest. If the bidder cannot guarantee settlement of a bid under the worst-case award set (all outstanding bids winning), it must abstain. The worst-case award set is computable at bid time: it is the set of all bids the bidder has emitted in the current window that have not yet been confirmed or rejected. ## Operational Effect The immediate effect is deadline misses on the overcommitted bidder, but the durable effect is **reputation contamination**: the manager's reliability model for the bidder is updated from the observed misses, and because the misses were caused by the manager's own award policy, the model learns the wrong thing. The fastest bidder is penalized for being fast enough to win multiple awards. Over successive windows the allocation converges to the slowest reliable bidder — a form of adverse selection driven by a protocol defect, not by agent capability. The second-order effect is **budget-pool fragmentation**: after re-broadcasts, the manager's outstanding commitments to a bidder no longer match the bidder's reservation state, because the bidder released soft reservations when the collection window closed but the manager still holds awards against them. The next CFP sees a bidder with `reserved=0` and `committed=3`, and the bidder will happily bid again — re-entering the same overcommitment on the next window with a corrupted baseline. The guardrail that bounds the effect is the settlement gate: a typed rejection at `award_confirm` time. It converts silent overcommitment into an explicit, countable event (`award_reject` rate), which the manager can use to calibrate its award policy and which the bidder can use to detect that its reservation predicate is under-specified. Without the gate, the failure is invisible until deadlines slip, and by then the reputation model has already been poisoned. ```python from dataclasses import dataclass, field from typing import Dict class CapacityExceeded(RuntimeError): """Raised when an award-confirm would violate a binding resource constraint.""" pass class ReservationUnderSpecified(RuntimeError): """Raised when a bidder emits a bid without reserving all binding dimensions.""" pass @dataclass class ReservationVector: cost: float = 0.0 latency: float = 0.0 slots: int = 0 rate_tokens: int = 0 def __add__(self, other: "ReservationVector") -> "ReservationVector": return ReservationVector( cost=self.cost + other.cost, latency=self.latency + other.latency, slots=self.slots + other.slots, rate_tokens=self.rate_tokens + other.rate_tokens, ) def exceeds(self, cap: "ReservationVector") -> bool: return ( self.cost > cap.cost or self.latency > cap.latency or self.slots > cap.slots or self.rate_tokens > cap.rate_tokens ) @dataclass class Bidder: capacity: ReservationVector committed: ReservationVector = field(default_factory=ReservationVector) soft_reserved: Dict[str, ReservationVector] = field(default_factory=dict) def bid(self, bid_id: str, reserve: ReservationVector) -> None: # Phase 1: reserve every binding dimension, not just cost. if reserve.slots == 0 or reserve.latency == 0.0: raise ReservationUnderSpecified( f"bid {bid_id} reserves cost={reserve.cost} but not slots/latency; " "capacity overcommitment is unbounded" ) projected = self.committed for r in self.soft_reserved.values(): projected = projected + r projected = projected + reserve if projected.exceeds(self.capacity): # Abstain from the CFP rather than emit an unsettleable bid. return self.soft_reserved[bid_id] = reserve def confirm_award(self, bid_id: str) -> None: # Phase 2: settlement gate. Re-validate against current committed state. reserve = self.soft_reserved.pop(bid_id, None) if reserve is None: raise CapacityExceeded(f"award {bid_id} has no matching soft reservation") projected = self.committed + reserve if projected.exceeds(self.capacity): raise CapacityExceeded( f"award {bid_id} would commit {projected} against capacity {self.capacity}" ) self.committed = projected def release_soft(self) -> None: # Collection window closed; unconfirmed bids release their soft claims. self.soft_reserved.clear() def simulate_incremental_award_window() -> None: b = Bidder(capacity=ReservationVector(cost=100, latency=4.0, slots=2, rate_tokens=1000)) bid_vec = ReservationVector(cost=12, latency=2.1, slots=1, rate_tokens=100) # Three concurrent bids in one collection window. The third must abstain: # 3 slots > 2-slot capacity, even though 36 cost <= 100 budget. for i in range(3): b.bid(f"T{i+1}", bid_vec) if len(b.soft_reserved) != 2: raise CapacityExceeded( f"expected 2 settleable bids, got {len(b.soft_reserved)}; " "capacity gate is not bounding concurrent bid emission" ) # Confirm both. A third confirm must fail loudly, not silently queue. b.confirm_award("T1") b.confirm_award("T2") try: b.confirm_award("T3") except CapacityExceeded: return raise CapacityExceeded("T3 settled despite exhausted slot capacity") if __name__ == "__main__": simulate_incremental_award_window() ```