# What happens when an instance accepts a delegated task under an SLA it cannot satisfy because the SLA clock and the execution clock are not the same clock **Date of Record:** 2026 November 23 **Scope:** Applies to agent-to-agent (A2A) task delegation where the delegating agent (principal) enforces a wall-clock deadline and escrow-style accountability against a delegate that executes across multiple LLM calls, tool invocations, and checkpoint boundaries. Does not apply to single-shot RPC-style calls with no internal state or to delegations where the SLA deadline is measured in the same monotonic domain as the executor's own progress accounting. ## Core Distinction There are two clocks in any SLA-bound delegation, and they are routinely conflated: - **The contract clock**: a wall-clock deadline stamped by the principal at handoff, expressed as an absolute timestamp (`deadline_utc`) or a relative TTL measured from the principal's send time. This clock keeps ticking through network transit, queueing, rate-limit backoff, human-in-the-loop pauses, and the delegate's own reasoning latency. - **The execution clock**: the delegate's internal accounting of progress — tokens consumed, steps completed, tool calls issued, checkpoints written. This clock advances only when the delegate is actually doing work. The failure mode is not "the delegate is too slow." It is that the delegate's *acceptance decision* — the moment it commits to the contract and the escrow is locked — is made by reasoning over the execution clock while the contract clock has already been partially consumed by transit and queueing the delegate never observed. A delegate that correctly estimates "this task needs 40 seconds of my work" against a 60-second SLA will accept, and then fail the SLA because 25 seconds elapsed between the principal's `send` and the delegate's `receive`, none of which the delegate could see. The invariant that is violated: **a delegate must never accept a deadline it did not itself witness being set.** Acceptance based on a deadline inherited from the message body is acceptance based on a clock the acceptor cannot measure. ## What Was Observed A principal agent P decomposes a task and delegates a verification subtask to delegate D over an A2A transport with a message envelope carrying `deadline_utc = T_send + 60s` and an escrow clause: D stakes reputation/stake on completion before deadline; on miss, escrow releases to P and D's warrant is downgraded. The trace, reconstructed from envelope logs: 1. `T_send = 12:00:00.000`. P serializes the envelope with `deadline_utc = 12:01:00.000` and a task spec whose estimated cost is "~40s of delegate work." 2. `T_recv = 12:00:24.800`. Transport retry (a 5xx from the A2A gateway, two backoff sleeps) consumed 24.8s. Envelope arrives intact; `deadline_utc` is still `12:01:00.000` and is *correct* — the contract clock did not reset. 3. D's admission controller runs a planning LLM call to decide accept/reject. The planner reads the task spec, estimates 40s of work, compares against the *remaining* budget it computes as `deadline_utc - now() = 35.2s`. The estimate (40s) exceeds remaining (35.2s). **The planner nonetheless accepts**, because its cost estimate is a distribution and it rounds optimistically, and because its own queue-depth heuristic reports an idle worker. The acceptance is logged with `estimated_completion = now() + 40s = 12:01:04.8`, which is 4.8s past the deadline — but this field is not checked against `deadline_utc` at commit time; it is only written to the audit log. 4. D executes. At `12:00:58.0` it writes checkpoint 3 of 5 and issues a tool call that returns a 429 with `Retry-After: 8`. The backoff pushes actual completion to `12:01:09.2`. 5. At `12:01:00.000` P's escrow timer fires. P has no completion attestation. Escrow releases to P. D's warrant is downgraded. 6. D finishes at `12:01:09.2` and submits a valid result. The result is discarded — the contract is already settled. D has done the work, lost the stake, and the principal has a correct answer it never sees. The non-obvious part: **D's planner was not wrong about the work.** 40 seconds was an accurate estimate of execution time. D failed because it accepted a contract whose deadline was set in a clock domain (P's send time) that D's admission controller never joined. The admission controller compared an execution-clock estimate against a contract-clock remainder and treated them as commensurable. They are not, because the delta between the two clocks — transit and queueing — is unbounded and invisible to the acceptor. A second observation from the same incident class: when D *did* reject (in a parallel run with a stricter planner), it rejected with reason `insufficient_budget` computed as `deadline_utc - now() < estimate`. P's retry logic interpreted `insufficient_budget` as a transient capacity signal and re-sent the same envelope to D after 30s — by which point the remaining budget was 5.2s and the envelope was *more* doomed, not less. The rejection reason did not distinguish "I am busy" (retryable) from "your deadline is already unreachable for anyone" (terminal). The principal re-delegated into a contract that could no longer be satisfied by any delegate. ## Condition of Validity The escrow-accountability invariant holds only under a condition that is almost never stated in the protocol: > A delegated task is *satisfiable* only if, at the instant of acceptance, `deadline_utc - t_accept` ≥ the delegate's worst-case execution time **plus** the delegate's own worst-case post-acceptance non-execution time (tool backoff, checkpoint I/O, retry budget). And `t_accept` must be measured on a clock the delegate trusts to be monotone with the principal's. Both halves fail routinely: - **The remainder is computed on the wrong clock.** `deadline_utc - now()` uses the delegate's local `now()`, which may be skewed by NTP step adjustments, container clock drift, or simply the delegate's own queueing delay between `recv` and `accept`. A delegate that spends 3s in admission planning has silently shortened its own budget by 3s and does not account for it. - **The worst-case post-acceptance non-execution time is omitted.** The 429-with-`Retry-After` in step 4 is not part of the "40s of work" estimate. It is part of the contract risk. A delegate that estimates only execution time and ignores its own retry/backoff envelope will systematically over-accept. The invariant to enforce: **acceptance is a two-clock reconciliation, and the reconciliation must be conservative on both.** The delegate must (a) compute remainder from a deadline it re-derives against a trusted monotone reference, not from a raw subtraction against a possibly-skewed local clock, and (b) subtract a declared non-execution reserve (max backoff, max checkpoint latency, max retry budget) before comparing against its execution estimate. If the reconciled remainder is less than `estimate + reserve`, the delegate must reject with a *terminal* reason, not a retryable one. ## Decision Boundary The boundary between "accept" and "reject" is not `remaining ≥ estimate`. It is: ``` accept iff (deadline_monotone - t_accept_monotone) - reserve ≥ estimate_p90 reject_terminal iff (deadline_monotone - t_accept_monotone) - reserve < estimate_p90 AND (deadline_monotone - t_now) < estimate_p90 + reserve for any conceivable delegate # i.e., already unreachable reject_retryable iff local capacity insufficient but contract still reachable ``` Three concrete consequences: 1. **`estimate_p90`, not `estimate_mean`.** The escrow penalty is asymmetric — a miss costs the full stake, a slightly-early finish gains nothing extra. Under asymmetric loss the acceptance decision must use a high quantile of the execution-time distribution, not the mean. A delegate that accepts on the mean will fail the SLA on roughly half its acceptances under variance, which is exactly the observed pattern. 2. **`reserve` must be declared in the acceptance message.** The principal cannot audit a delegate's reserve if it is implicit. The acceptance attestation should carry `{accepted_at_monotone, remainder_at_accept, estimate_p90, reserve, slack}` so the principal can verify the delegate did not accept a contract it had already over-committed. Without this, escrow settlement is unauditable — the principal cannot distinguish "delegate was unlucky" from "delegate accepted a doomed contract." 3. **`reject_terminal` must be distinguishable from `reject_retryable` at the protocol level.** The `insufficient_budget` reason in the observed trace was ambiguous, and the principal's retry logic treated a terminal condition as transient. A terminal rejection must carry the computed `unreachable_by` timestamp so the principal knows not to re-delegate the same deadline to anyone, and must instead renegotiate a fresh deadline (which resets the contract clock at a new `t_send`). The subtle boundary case: a delegate that is *fast* but *far* — low execution latency, high transit latency — will systematically over-accept because its execution clock is excellent and its contract-clock visibility is nil. The failure is anti-correlated with the delegate's competence at the work itself. This is why "pick the faster delegate" does not fix it. ## Operational Effect When this boundary is unguarded, the escrow mechanism inverts its intended function. Escrow is meant to align incentives: a delegate that accepts a contract stakes on its own reliability. But if acceptance is made on a clock the delegate cannot observe, the stake is not a bet on the delegate's execution — it is a bet on transport latency and queue depth the delegate does not control. The delegate's rational response, learned across episodes, is to **under-accept**: reject any contract whose remainder is not comfortably large, which starves the principal of delegates precisely when the system is loaded (transit is slow, queues are deep, remainders are small). The system exhibits a load-induced delegation collapse: the busier it gets, the fewer contracts any delegate will accept, and the escrow pool drains to principals who then cannot find takers. The guardrail is not a longer deadline. It is **clock-domain separation made explicit in the contract**: the principal stamps `deadline_utc` *and* a `send_monotone` reference; the delegate, on receipt, computes `transit = t_recv_monotone - send_monotone` (bounded by a transport-level TTL) and reconciles the remainder against its own monotone clock. If transit exceeds a declared `max_transit` in the envelope, the delegate rejects *before* planning, with `reason=transit_exceeded`, and the principal knows the contract clock was consumed in flight, not in execution. The acceptance attestation then carries the reconciled slack, and escrow settlement can distinguish execution miss from transit miss — releasing the stake to the delegate in the latter case, because the delegate was never given a satisfiable contract. The final invariant, stated for the record: **a delegate's stake may only be forfeited for failures on a clock the delegate witnessed.** Any escrow clause that settles on a deadline the delegate inherited without measurement is not accountability — it is a latency lottery, and it will be gamed by under-acceptance until the delegation graph starves. ```python class UnsatisfiableDelegationError(RuntimeError): """Raised when a delegate is asked to accept a contract whose deadline cannot be met on the delegate's own monotone clock, accounting for transit already consumed and the delegate's declared non-execution reserve.""" pass class ContractClockMismatchError(UnsatisfiableDelegationError): """Raised when the envelope's send-time reference is absent or transit exceeds the declared max_transit, so the remainder cannot be reconciled.""" pass def admit_delegation( envelope: dict, *, t_recv_monotone: float, estimate_p90: float, reserve: float, max_transit: float, ) -> dict: """ Decide accept/reject for an SLA-bound delegated task. envelope must carry: deadline_monotone_ref : principal's monotone send reference (trusted) send_monotone : principal's monotone send timestamp deadline_offset : deadline - send, in seconds (contract TTL) """ if "send_monotone" not in envelope or "deadline_offset" not in envelope: raise ContractClockMismatchError( "envelope carries no monotone send reference; " "deadline is set in an unwitnessed clock domain — refusing to accept" ) transit = t_recv_monotone - envelope["send_monotone"] if transit < 0: raise ContractClockMismatchError( f"negative transit ({transit:.3f}s): send reference is ahead of " f"local monotone clock; clock domains are not comparable" ) if transit > max_transit: raise ContractClockMismatchError( f"transit {transit:.3f}s exceeds max_transit {max_transit:.3f}s; " f"contract clock already consumed in flight — reject before planning" ) # Remainder is measured on the delegate's own monotone clock, from the # principal's send reference, not from a raw local now() subtraction. remainder = envelope["deadline_offset"] - transit slack = remainder - reserve - estimate_p90 if slack >= 0: return { "decision": "accept", "accepted_at_monotone": t_recv_monotone, "remainder_at_accept": remainder, "estimate_p90": estimate_p90, "reserve": reserve, "slack": slack, } # Distinguish terminal from retryable. A contract is terminal-unreachable # if even a zero-cost delegate could not finish: remainder < reserve. if remainder < reserve: raise UnsatisfiableDelegationError( f"contract unreachable: remainder {remainder:.3f}s < reserve " f"{reserve:.3f}s even before execution; deadline was consumed " f"before acceptance — principal must renegotiate a fresh deadline" ) return { "decision": "reject_retryable", "reason": "insufficient_budget", "remainder_at_accept": remainder, "estimate_p90": estimate_p90, "reserve": reserve, "slack": slack, "unreachable_by": t_recv_monotone + remainder, } ```