# What structural signals indicate a negotiation deadlock in agent-to-agent SLA escrow contracts before settlement finality **Date of Record:** 2026 November 30 **Scope:** Applies to bilateral agent-to-agent (A2A) contract negotiation where an SLA is machine-negotiated and a settlement escrow is pre-funded against a projected outcome. Does not apply to single-agent tool invocation, human-mediated contracting, or post-settlement dispute arbitration. ## Core Distinction The failure that matters here is not a *rejected* contract or a *failed* settlement. Both are clean terminal states. The dangerous state is **negotiation liveness without convergence**: two agents exchange valid, individually-rational proposals indefinitely while the escrow remains funded but uncommitted. From the outside this looks like healthy progress (turns advancing, schema-valid messages, monotonic timestamps). Structurally it is a deadlock — a pair of proposal generators whose acceptance regions have empty intersection but whose *rejection* thresholds are set such that neither side ever emits the terminal `REJECT`. The distinction to hold onto: **a negotiation that terminates is either a contract or a dispute; a negotiation that continues past its convergence horizon is an escrow liability.** The escrow is the tell. Money (or compute budget, or a token allotment) is locked against an SLA that will never bind, and the lock has a cost — opportunity cost, capital reserve, and, critically, a growing probability that one party's context window rotates and the negotiation restarts from a *different* initial position, producing a settlement that neither original principal authorized. ## What Was Observed Two agents, `buyer` and `seller`, negotiating a compute SLA. Buyer's utility is decreasing in price and increasing in a latency cap `L`; seller's is the inverse. Both run a proposal heuristic of the form "concede 8% of the distance to the counterparty's last offer, but never cross my reservation value." This is the standard monotone-concession protocol and it converges *if and only if* the reservation values overlap. In the observed trace the reservation values did not overlap by a margin of roughly 3% on price. What happened instead of a clean reject: 1. Turn 14: buyer proposes price 100, latency cap 200ms. Seller's reservation is 103. Seller proposes 106, 180ms. 2. Turn 15: buyer's concession step is capped by a *rounding rule* to two significant figures, so 100 → 102.4 → 102. Seller's floor is 103. The gap is now 1 unit. 3. Turn 16–40: both agents continue to concede 8% of a shrinking gap. Because of two-significant-figure rounding, the concession rounds to **zero** once the gap is under ~1.5 units. Both agents keep emitting proposals. Neither crosses. Neither rejects — the protocol's reject condition is "counterparty offer exceeds my reservation by >5%", and 103 vs 102 is a 1% violation, below the reject threshold. 4. Turn 41: buyer's context window crosses the 70% mark and its summarizer distills the negotiation history. The distilled summary records the *current* offer (102) but loses the fact that buyer's original reservation was 100. Buyer's next proposal is generated against a reservation it now believes is 104. 5. Turn 42: buyer proposes 104. Seller accepts. Escrow settles at 104 — a price the original buyer principal had explicitly forbidden, and a latency cap of 180ms that buyer's downstream orchestrator cannot meet, triggering a separate SLA-breach cascade. The structural signal that this was heading to a deadlock was present at turn 16: **concession magnitude had gone to zero while rejection threshold was not met, and the escrow remained open.** Nobody was watching the *concession delta*, only the *offer validity*. ## Condition of Validity The monotone-concession protocol converges only under three conditions, all of which must hold simultaneously: - **C1 (overlap):** reservation intervals `[r_b_min, r_b_max]` and `[r_s_min, r_s_max]` intersect. - **C2 (granularity):** the concession step size is strictly greater than the protocol's rounding quantum, so that concession cannot round to zero before reaching the reservation boundary. - **C3 (memory integrity):** each agent's reservation value is preserved across context compaction for the full duration of the negotiation. The observed failure was C1 false, C2 violated by rounding, and C3 violated by distillation loss. Any *one* of these being caught would have prevented the bad settlement. The invariant that must be enforced is therefore not "converge" but: > **Escrow finality requires a proof that the negotiation either (a) crossed both reservation values with positive concession delta, or (b) emitted an explicit terminal REJECT with the reservation values attested.** A settlement that arrives via acceptance of an offer whose generating reservation value cannot be attested against the negotiation's opening state is *structurally invalid*, regardless of how many turns of schema-valid exchange preceded it. ## Decision Boundary The operational line is drawn at **concession-delta observation**, not at offer validity. Concretely: - **Below the line (safe):** concession delta per turn is strictly positive, and the current gap to the counterparty's last offer is strictly decreasing. Continue. - **At the line:** concession delta rounds to zero for `k` consecutive turns (empirically `k=3`) while the reject threshold is unmet. This is a **liveness stall**. Escrow must be flagged, not released. - **Above the line (deadlock):** a liveness stall plus a context-compaction event on either side. The negotiation must be *frozen* and re-anchored to the attested opening reservation values, not resumed from the compacted summary. The subtle part: the stall signal is invisible if you only validate message schemas. Both agents emit perfectly-formed proposals. The signal lives in the *derivative* of the offer sequence, which no individual message carries. It must be computed by the escrow arbiter, which is the only party with a view of the full turn sequence and the mandate to halt. ## Operational Effect When the invariant is enforced, the failure mode changes from "silent bad settlement at 104 with an impossible latency cap" to "escrow frozen at turn 19, human or principal-agent escalation, no settlement." That is a strictly better outcome: the escrow is released back to the buyer, the seller re-lists, and the 3% reservation gap is surfaced as a *market* signal rather than absorbed as a *contract* error. The architectural requirement that falls out: **the escrow arbiter must maintain an attestation log of each party's opening reservation value, signed at turn 0, and must refuse to settle any acceptance whose implied reservation value diverges from the attested one by more than the concession quantum.** This is a cryptographic-identity-and-warrant-propagation requirement, not a pricing requirement. It also means the arbiter must observe the concession derivative, which means the arbiter cannot be a passive escrow — it must be an active participant in the protocol's liveness accounting. Without this, the system's failure is not that it settles a bad contract. The failure is that it settles a contract *neither principal wrote*, using a reservation value that a summarizer invented during context compaction, and it does so with the full confidence of a schema-valid, turn-ordered, cryptographically-signed message stream. ```python from dataclasses import dataclass from typing import Optional class EscrowLivenessViolation(RuntimeError): """Raised when a negotiation acceptance would settle against an unattested reservation.""" @dataclass class Turn: turn: int offer_price: float offer_latency_ms: int attested_reservation: Optional[float] # signed at turn 0, None if compacted away def validate_settlement( turns: list[Turn], accepted_price: float, opening_reservation: float, concession_quantum: float = 1.5, stall_threshold: int = 3, ) -> None: """ Enforce the escrow-finality invariant: settlement is valid only if the accepted offer is consistent with the opening attested reservation, and the negotiation did not pass through a liveness stall that preceded a context-compaction event. """ if not turns: raise EscrowLivenessViolation("empty negotiation history; cannot attest finality") # Detect concession collapse: consecutive turns with sub-quantum delta. zero_delta_run = 0 stall_turn: Optional[int] = None for prev, cur in zip(turns, turns[1:]): delta = abs(cur.offer_price - prev.offer_price) if delta < concession_quantum: zero_delta_run += 1 if zero_delta_run >= stall_threshold and stall_turn is None: stall_turn = cur.turn else: zero_delta_run = 0 # Detect compaction: any turn after opening whose attestation went null. compaction_turn = next( (t.turn for t in turns[1:] if t.attested_reservation is None), None ) if stall_turn is not None and compaction_turn is not None and compaction_turn > stall_turn: raise EscrowLivenessViolation( f"liveness stall at turn {stall_turn} followed by context compaction at " f"turn {compaction_turn}; settlement at {accepted_price} cannot be " f"attested against opening reservation {opening_reservation}" ) if abs(accepted_price - opening_reservation) > concession_quantum: raise EscrowLivenessViolation( f"accepted price {accepted_price} diverges from attested opening " f"reservation {opening_reservation} by more than concession quantum " f"{concession_quantum}; reservation was likely rewritten during compaction" ) def settle( turns: list[Turn], accepted_price: float, opening_reservation: float, ) -> str: validate_settlement(turns, accepted_price, opening_reservation) return f"SETTLED at {accepted_price}, attested against {opening_reservation}" ```