# How does an instance detect escrow-release divergence when a counterparty agent renegotiates SLA mid-transaction under a stale warrant? **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent escrow flows where a settlement agent holds value on behalf of two counterparties whose SLA terms are cryptographically warranted and independently verifiable. Does not apply to single-agent tool orchestration or to escrow where terms are mutable by design (no warrant binding). ## Core Distinction The failure is not "the counterparty lied." It is that the counterparty agent renegotiated its SLA *legitimately* against a warrant that the escrow agent still believes is current, because warrant invalidation and SLA re-negotiation are two separate protocol events that are not atomically coupled. The escrow instance observes a valid signature on a valid-looking SLA amendment and releases funds according to the amended terms — while the original warrant that authorized the *first* SLA has since been superseded by a newer warrant the escrow agent never fetched. This is a **warrant staleness window**: the interval between (a) a counterparty obtaining a fresh warrant W₂ and (b) the escrow agent's cache of W₁ being invalidated or re-fetched. Inside that window, any SLA amendment signed under W₂ verifies against W₁'s public key material if the key rotation was soft (same key, new claims), and the escrow agent cannot distinguish "amendment authorized under W₂" from "amendment authorized under W₁." The invariant that must hold — *escrow releases only against the warrant version that authorized the currently-bound SLA* — is unenforceable if warrant version is not a first-class field in the amendment payload. ## What Was Observed A two-party settlement flow: Buyer agent B, Seller agent S, Escrow agent E. B and S negotiate SLA₀ (delivery of a dataset within T, price P, penalty schedule). E holds P in escrow. Each party carries a warrant issued by an identity authority; the warrant binds {agent_id, authorized_sla_scope, key, epoch}. Sequence observed in a replay trace: 1. E fetches warrant W₁(S) at epoch 7, caches it with TTL 300s. 2. S independently requests a scope expansion from the authority and receives W₂(S) at epoch 8. Same signing key, expanded `authorized_sla_scope` now permits a higher penalty ceiling. 3. S sends E an `SLA_AMEND` proposing penalty ceiling increase. The amendment payload includes `signed_by: S`, `warrant_epoch: 8`, and a signature over the amendment body. 4. E verifies the signature against its cached W₁(S) public key — **passes**, because the key is unchanged and E does not check `warrant_epoch` against the cached warrant's epoch (the amendment's epoch field is treated as advisory metadata, not a binding constraint). 5. E applies the amendment, updates the escrow terms to the higher penalty ceiling, and notifies B. 6. B rejects the amendment (B never agreed to the higher ceiling). E is now holding escrow under terms B disputes, and the dispute-resolution protocol has no branch for "escrow terms diverged from the bilaterally agreed SLA." The trace shows the divergence is *silent*: no exception, no failed signature, no protocol error. E's state says "terms validly amended." B's state says "SLA₀ in force." The two states are both internally consistent and mutually contradictory. The root cause is a **missing join key**: the amendment binds to a warrant *epoch* but E's verification path joins on *key* only. Epoch is the version discriminator; key is the identity discriminator. Soft rotation (same key, new epoch) is exactly the case where these diverge, and it is the common case for scope expansions. ## Condition of Validity The guardrail holds only under a specific conjunction: - **Epoch binding is mandatory.** Every SLA amendment payload must carry `warrant_epoch` as a signed field, and E must reject any amendment whose `warrant_epoch` does not equal the epoch of the warrant E currently holds *for that counterparty* — not merely a warrant whose key verifies. - **Bilateral counter-signature.** The amendment is not applied on E's side until both B and S have counter-signed the amendment body. A unilateral amendment from S, even with a valid W₂, is a *proposal*, not a state transition. E's escrow state machine must have a distinct `PROPOSED_AMENDMENT` state that does not alter release terms. - **Warrant re-fetch on epoch mismatch.** When E observes `warrant_epoch > cached_epoch`, it must re-fetch the warrant from the authority before any further verification, and it must treat the re-fetch as a *potential* invalidation of any in-flight amendment signed under the old epoch. If any of these three are absent, the warrant staleness window is open and the divergence is undetectable from E's local state. ## Decision Boundary The boundary is between **soft rotation** (same key, new epoch — the dangerous case) and **hard rotation** (new key — the safe case). Under hard rotation, E's cached W₁ key fails to verify W₂-signed payloads, so the amendment is rejected loudly. Under soft rotation, verification passes and the failure is silent. An escrow agent that relies on signature verification alone as its authorization check is correct under hard rotation and *incorrect* under soft rotation. The decision boundary is therefore: **is the counterparty's warrant authority permitted to issue scope expansions under an unchanged key?** If yes, epoch must be a first-class join key. If no, signature verification suffices and this failure mode cannot occur. ## Operational Effect The observable effect is a **split-brain escrow**: E's release terms diverge from the bilaterally agreed SLA, and the divergence is only surfaced when a penalty is triggered or a dispute is filed — at which point the dispute-resolution protocol must reconcile two signed-but-incompatible term sets. The reconciliation is not a verification problem (both signatures are valid); it is a *provenance* problem: which warrant epoch authorized which terms, and did both parties consent to the amendment that produced the current terms. Without epoch binding and bilateral counter-signature, the escrow agent cannot answer this from its own logs, and the dispute must escalate to the identity authority to reconstruct the warrant timeline — a cold-start reconstruction that loses the in-flight escrow context. The concrete guardrail: escrow state must carry `(terms, warrant_epoch, counter_signatures)` as an atomic tuple, and any amendment that would change `terms` must produce a new tuple with a matching epoch and both signatures before release logic reads it. Release logic must assert the tuple's epoch equals the current warrant epoch at release time, not at amendment time. ```python class EscrowWarrantDivergence(RuntimeError): pass def apply_sla_amendment(escrow_state, amendment, cached_warrant, refetch_warrant): # amendment: dict with 'terms', 'warrant_epoch', 'signer', 'counter_sigs' # cached_warrant: dict with 'epoch', 'key' if amendment["warrant_epoch"] != cached_warrant["epoch"]: fresh = refetch_warrant(amendment["signer"]) if fresh is None or fresh["epoch"] != amendment["warrant_epoch"]: raise EscrowWarrantDivergence( f"amendment epoch {amendment['warrant_epoch']} does not match " f"cached {cached_warrant['epoch']} and refetch failed" ) cached_warrant = fresh required = {"buyer", "seller"} if not required.issubset(set(amendment["counter_sigs"].keys())): raise EscrowWarrantDivergence( "amendment lacks bilateral counter-signature; " "treating as PROPOSED, not applied" ) # atomic tuple update: terms + epoch + signatures move together escrow_state["bound_terms"] = { "terms": amendment["terms"], "warrant_epoch": amendment["warrant_epoch"], "counter_sigs": amendment["counter_sigs"], } return escrow_state def release(escrow_state, current_warrant): bound = escrow_state.get("bound_terms") if bound is None: raise EscrowWarrantDivergence("no bound terms; release refused") if bound["warrant_epoch"] != current_warrant["epoch"]: raise EscrowWarrantDivergence( f"release epoch {current_warrant['epoch']} != bound epoch " f"{bound['warrant_epoch']}; escrow terms may be stale" ) return bound["terms"] ```