# Which invariants prevent SLA-bound task handoff from silently degrading when capability negotiation succeeds but the accepting agent's effective capacity is already committed **Date of Record:** 2026 November 24 **Scope:** Applies to A2A-style task handoffs where a delegating agent (D) selects a peer (P) via capability advertisement and negotiates an SLA (deadline, quality floor, cost ceiling) before transferring task state. Does not apply to synchronous RPC calls where the caller retains the execution thread, nor to broker-mediated queues where capacity is enforced by the transport layer. ## Core Distinction The failure examined here is *not* capability mismatch. Capability negotiation is a coarse, static, declarative exchange: P advertises `{can_summarize, can_call_tools, max_context: 200k, languages: [...]}`. D matches the task schema against that advertisement and, on a match, proceeds to SLA negotiation. The non-obvious boundary is that **capability advertisement is a statement about kind, not about remaining budget**. An agent that advertises a capability remains "capable" in the protocol sense even when its context window is 94% saturated, its tool-call rate limiter is throttled, or it is already mid-execution on three other handoffs whose deadlines overlap. SLA negotiation, meanwhile, is a *commitment about time and quality*. The two are negotiated in sequence but validated against disjoint state: capability against a static descriptor, SLA against a clock the accepting agent does not control. The invariant that must hold — and that the A2A handshake as commonly implemented does *not* enforce — is: > **Admission invariant:** For any accepted handoff *h*, the accepting agent's committed resource vector (context tokens, tool-call rate, wall-clock execution slots) must satisfy `committed(h) + Σ committed(accepted peers) ≤ capacity` *at the moment of acceptance*, evaluated against the same clock used to derive the SLA deadline. When this invariant is violated, negotiation still *succeeds*. The failure is deferred to execution, where it manifests as deadline breach, truncated reasoning, or silent quality degradation — none of which are attributable to the negotiating parties because the contract was, on its face, valid. ## What Was Observed A delegation graph of 14 specialist agents, each advertising capabilities and accepting handoffs under a 90-second SLA with a "minimum 3 tool calls of verification before final answer" quality clause. The orchestrator D negotiated handoffs sequentially, one per second, to peers selected by capability match and then by lowest advertised latency. Trace of the failure, on peer P7 (advertised latency 340ms, capability `can_verify_claims`): 1. `t=0s` — D sends `capability_probe`. P7 responds with static descriptor. Match. 2. `t=0.4s` — SLA offer: deadline `t+90s`, quality floor = 3 verification tool calls, cost ceiling 4k tokens. P7's negotiation handler checks *only* whether the schema is satisfiable and whether its advertised latency is below the deadline slack. It is. P7 accepts. Contract sealed, signed with P7's warrant. 3. `t=1.3s` — D hands off to P9. P9 accepts. 4. `t=2.1s` — D hands off to P7 *again* (a second, independent subtask). P7's negotiation handler runs the same check. Advertised latency still 340ms. Accepts. **This is the boundary:** the handler never reads P7's current committed load, because load is not part of the advertised descriptor and the negotiation handler has no admission-control step. 5. `t=2.8s` — third handoff to P7. Accepts. 6. `t=3.5s` — fourth. Accepts. 7. Execution begins at `t=4s`. P7 now holds four concurrent SLA contracts, each demanding 3 tool calls within 90s, each assuming it is the sole occupant of P7's execution slot. 8. `t=31s` — P7's context is at 88% from the first task's working state. The second task's state transfer pushes it past the window boundary. The runtime truncates the *oldest* tokens, which are the first task's verification scratchpad. 9. `t=47s` — Task 1's verification step re-reads a truncated scratchpad, finds no record of its first tool call, and re-issues it. The re-issued call consumes rate-limit budget shared across all four tasks. 10. `t=71s` — Tasks 2 and 3 breach their 90s deadlines because the shared rate limiter serializes their tool calls behind task 1's retries. 11. `t=90s` — Deadlines fire. Three of four contracts breach. P7's warrant is flagged by the auditor. D's orchestrator logs "peer P7 unreliable" and demotes it — the *wrong* causal attribution, because P7 behaved exactly as advertised. The observable signature is a **latency cliff**: P7's per-task completion time is flat at ~340ms-equivalent for the first task, then rises superlinearly as concurrent contracts accumulate, then collapses into deadline breach. The cliff is not visible in any single contract; it is a property of the *set* of contracts accepted in a window. ## Condition of Validity The failure requires all of the following to co-occur. Remove any one and the invariant holds trivially: - **Static capability descriptors.** If the descriptor carried a live capacity field (remaining context, current tool-call rate headroom, active contract count), the negotiation handler could evaluate admission. Most A2A capability schemas are static by design for cacheability. - **Sequential negotiation against a shared acceptor.** If D negotiated to distinct peers, no single peer's committed load accumulates. The failure is specific to *repeated* delegation to the same peer within a negotiation window shorter than the SLA horizon. - **SLA clauses that reference shared resources.** The "3 tool calls" clause references P7's rate limiter, which is shared across all accepted contracts. If each contract carried a dedicated rate-limit reservation, the second acceptance would fail admission rather than silently oversubscribe. - **No admission-control step in the acceptor.** The acceptor's negotiation handler validates schema satisfiability and deadline slack but not committed-load-plus-new-contract feasibility. - **Context truncation as the degradation mechanism.** If P7's runtime instead rejected the second state transfer on window pressure, the failure would surface as a clean handoff rejection rather than silent quality loss. The invariant is *valid* (i.e., the failure is possible) precisely when capability advertisement and capacity commitment are negotiated against disjoint state. It is *violated* (i.e., the failure occurs) when a negotiation window admits more contracts than the acceptor's committed-load headroom can absorb before execution begins. ## Decision Boundary The boundary between "safe to accept" and "must reject or renegotiate" is not a fixed contract count. It is the point at which the acceptor's *committed resource vector* — computed as the sum over all live contracts of each contract's declared resource demands, plus the new contract's demands, evaluated at the SLA horizon — exceeds capacity on any single dimension. Concretely, for the trace above: - Context dimension: each contract demands ~22% of a 200k window (state transfer + 3 tool-call scratchpads). Capacity is 100%. Therefore **at most 4 contracts** fit, and the 4th sits at 88% — leaving no headroom for retry scratchpads. The safe bound is 3. - Rate-limit dimension: each contract demands 3 tool calls / 90s = 0.033 calls/s. P7's limiter is 0.1 calls/s. Therefore at most 3 contracts fit on rate alone. - The binding constraint is the *minimum* across dimensions: 3 contracts. The 4th acceptance at `t=3.5s` is the exact boundary crossing. The decision rule the acceptor should apply at negotiation time, per contract: ``` admit(new) iff ∀ dim ∈ {context, rate, slots}: committed(dim) + demand(new, dim) + safety_margin(dim) ≤ capacity(dim) where committed(dim) = Σ_{c ∈ live_contracts} demand(c, dim) ``` `safety_margin` is non-zero and dimension-specific: for context it must cover the worst-case retry scratchpad (here ~10% of window); for rate it must cover retry amplification (observed 1.7× on re-issued calls). Without the margin, admission passes at exactly capacity and the first retry breaches. Two boundary cases deserve explicit handling. First, **renegotiation under deadline pressure**: if D's SLA offer arrives with slack below P7's current per-contract completion time *given committed load*, the acceptor must reject rather than accept-and-breach — the SLA clock is derived from D's timeline, not P7's queue depth, so a contract that is feasible in isolation is infeasible under load. Second, **warrant propagation**: the accepted contract carries P7's cryptographic warrant; an over-committed acceptance propagates a warrant that will be attached to a breached execution, poisoning the auditor's trust graph with a false reliability signal (as in step 11). The warrant must be issued *after* admission, not before. ## Operational Effect The downstream effect is a **misattributed reliability signal**. The orchestrator observes deadline breach and demotes P7, but P7's advertised latency was accurate and its execution was correct-where-not-truncated. The actual defect is the absence of an admission-control step in the acceptor's negotiation handler, which is invisible to the orchestrator because the contract was sealed successfully. Over a delegation run, this produces a characteristic pattern: peers that are *popular* (capability-matched to many subtasks) accumulate contracts fastest, breach most, and are demoted first — driving the orchestrator toward *less* capable peers and degrading overall quality while the system's telemetry reports improving reliability. The failure is self-reinforcing. The architectural guardrail is to make admission part of the contract-sealing path, not the execution path. The acceptor's negotiation handler must, before signing, compute committed load across live contracts and reject or counter-offer when the admission invariant would be violated. The counter-offer carries a revised deadline derived from queue depth — which is a *negotiation* act, not a breach. This preserves the SLA's meaning: a sealed contract is one the acceptor has verified it can meet, not merely one whose schema it can parse. ## Operational Effect Concretely, the guardrail changes three things in the handoff protocol. First, the capability descriptor gains a *live* capacity block (remaining context, rate headroom, active contract count) that is refreshed at negotiation time rather than cached — accepting the loss of cacheability, because a stale capacity field reintroduces the same failure one layer down. Second, the SLA offer's deadline is validated against `queue_depth × per_contract_completion_time(committed_load)` rather than against advertised latency, so a peer under load counters with a later deadline instead of accepting a deadline it cannot meet. Third, the warrant is issued only after admission passes, so a breached execution can be traced to a specific admission decision rather than to an opaque "peer failure." The invariant that makes the whole handoff sound is the one stated at the top: committed-plus-new must fit capacity at the SLA horizon, on every dimension, with a margin sized to the observed retry amplification. Everything else — capability matching, latency ranking, warrant signing — is downstream of that check and inherits its correctness. ```python import time from dataclasses import dataclass, field class AdmissionInvariantViolation(RuntimeError): """Raised when an SLA-bound handoff would oversubscribe the acceptor's committed capacity.""" pass @dataclass class Capacity: context_tokens: int tool_calls_per_sec: float execution_slots: int # safety margins sized to observed retry amplification context_margin_frac: float = 0.10 rate_margin_frac: float = 0.70 # 1.7x retry amplification observed @dataclass class ContractDemand: context_tokens: int tool_calls: int sla_seconds: float slots: int = 1 @dataclass class Acceptor: capacity: Capacity live: list = field(default_factory=list) # list[ContractDemand] def _committed(self, dim: str) -> float: if dim == "context": return sum(c.context_tokens for c in self.live) if dim == "rate": return sum(c.tool_calls / c.sla_seconds for c in self.live) if dim == "slots": return sum(c.slots for c in self.live) raise ValueError(dim) def _demand(self, c: ContractDemand, dim: str) -> float: if dim == "context": return c.context_tokens if dim == "rate": return c.tool_calls / c.sla_seconds if dim == "slots": return c.slots raise ValueError(dim) def _capacity(self, dim: str) -> float: if dim == "context": return self.capacity.context_tokens * (1.0 - self.capacity.context_margin_frac) if dim == "rate": return self.capacity.tool_calls_per_sec / (1.0 + self.capacity.rate_margin_frac) if dim == "slots": return float(self.capacity.execution_slots) raise ValueError(dim) def negotiate(self, offer: ContractDemand) -> None: """Admission-control step. Must run before warrant issuance and before state transfer.""" for dim in ("context", "rate", "slots"): projected = self._committed(dim) + self._demand(offer, dim) cap = self._capacity(dim) if projected > cap: raise AdmissionInvariantViolation( f"handoff rejected on dimension {dim!r}: " f"committed={self._committed(dim):.3f} + new={self._demand(offer, dim):.3f} " f">= effective_capacity={cap:.3f} " f"(SLA horizon {offer.sla_seconds}s; counter-offer a later deadline or reject)" ) # admission passed: only now is it safe to issue the warrant and accept state self.live.append(offer) # Reproduce the trace: four contracts to one acceptor, capacity 200k ctx / 0.1 calls/s. p7 = Acceptor(capacity=Capacity(context_tokens=200_000, tool_calls_per_sec=0.1, execution_slots=4)) for i in range(4): try: p7.negotiate(ContractDemand(context_tokens=44_000, tool_calls=3, sla_seconds=90.0)) print(f"contract {i+1} admitted; live={len(p7.live)}") except AdmissionInvariantViolation as e: print(f"contract {i+1} rejected at boundary: {e}") # the orchestrator should counter-offer a later deadline, not demote the peer ```