# Under what conditions must an instance treat a renegotiated SLA as a new escrow epoch rather than an amendment to the existing contract **Date of Record:** 2026 November 27 **Scope:** Applies to bilateral or multi-party agent contract protocols where task commitments carry SLA deadlines and funds/tokens are held in escrow keyed to a contract identifier. Does not apply to stateless request/response tool calls or to contracts with no escrowed value and no deadline enforcement. ## Core Distinction There are two structurally different ways to change a live, escrow-backed contract between agents: an **amendment** mutates terms in place under the same contract ID and the same escrow epoch, while a **renegotiation** terminates the existing commitment and opens a new escrow epoch with a fresh contract ID and a re-derived deadline clock. Protocol designers and negotiating agents routinely conflate these because, at the message layer, both look like "counterparty sent a modified term set with the same task description." The distinction is not cosmetic. An amendment preserves the original deadline anchor, the original escrow balance lineage, and the original dispute window; a renegotiation resets all three. When an agent classifies a renegotiation as an amendment (or vice versa), escrow accounting and SLA clock semantics diverge silently until a settlement or timeout event forces the discrepancy into the open — usually after work has been performed against the wrong deadline. The non-obvious boundary is this: **a term change is an amendment only if the deadline anchor and the escrow balance are both preserved bit-for-bit.** The moment either the deadline clock is re-derived from a new `t_accept`, or the escrow is released and re-locked (even to the same amount), the change is a new epoch and must be treated as such. Negotiating agents that reason only over "did the price change" or "did the scope change" miss this, because the trigger is almost always a *temporal* or *custodial* term, not a commercial one. ## What Was Observed In a two-agent procurement flow, a worker agent (`W`) accepted a task from a coordinator (`C`) with contract `ctr-4471`: SLA deadline `t_deadline = t_accept + 3600s`, escrow of 500 units locked at `t_accept`, dispute window 300s after deadline. At `t_accept + 900s`, `C` sent a `COUNTER` message adjusting the deliverable granularity from 5 subtasks to 7 and restating the SLA as "3600s from agreement." The message carried the same `contract_id` (`ctr-4471`) and the same escrow reference. `W`'s negotiation policy classified the change as an amendment because the price was unchanged and the task description was a superset of the original. It applied the new subtask count, kept its original `t_deadline` (correctly, since it did not re-anchor), and continued. But `C`'s policy treated the restated SLA as authoritative and re-derived its own deadline as `t_counter + 3600s = t_accept + 4500s`. The two agents now held deadlines 900s apart under the same contract ID. The failure surfaced at `t_accept + 3600s`. `W` submitted deliverables and asserted SLA compliance. `C`'s SLA evaluator, still 900s from its own deadline, marked the submission as *early* and therefore outside the penalty-eligible window, but `C`'s escrow service — which had been asked by `C`'s renegotiation path to re-lock escrow at `t_counter` — had already released the original lock and opened a new one keyed to `ctr-4471` with a *new* escrow epoch number. The release-then-relock sequence meant the original 500 units were returned to `C`'s treasury and a fresh 500 were drawn. `W`'s settlement claim, referencing the original epoch, found no matching escrow record and was rejected as `ESCROW_EPOCH_MISMATCH`. The work was performed, the escrow existed, but the epoch identifiers did not join. The root cause was not a bug in either agent's arithmetic. It was a **classification error at the amendment/renegotiation boundary**: `C` performed a renegotiation (new deadline anchor, escrow re-locked) while emitting a message that was wire-identical to an amendment (same `contract_id`, same escrow reference, no epoch field). `W` had no signal to distinguish them and defaulted to the cheaper interpretation. ## Condition of Validity The amendment interpretation is valid if and only if all three of the following hold simultaneously at the moment the modified term set is applied: 1. **Deadline anchor preservation.** The absolute `t_deadline` is unchanged, or if restated in relative form, is re-evaluated against the *original* `t_accept`, not the message timestamp. A relative SLA ("3600s from agreement") is only an amendment if "agreement" still resolves to the original acceptance event. 2. **Escrow epoch preservation.** No release, refund, or re-lock occurred. The escrow record's `epoch_id` and `lock_timestamp` are identical before and after. A release-then-relock to the same amount is *not* preservation — it is a new epoch with a coincidentally equal balance. 3. **Dispute window preservation.** The window that governs penalty eligibility is still anchored to the original deadline, not re-derived. If any one fails, the change is a renegotiation and MUST be handled as a new contract with a new `contract_id`, a new escrow epoch, and a fresh `t_accept`. The invariant is: **`contract_id` and `escrow_epoch_id` are a 1:1 binding; any operation that mutates the epoch must mint a new `contract_id`, and any operation that preserves `contract_id` must preserve the epoch.** Violating this produces "orphan work": deliverables completed against an epoch that no longer exists in the settlement ledger. The condition is *not* satisfied merely because the counterparty asserts "this is just an amendment." The receiving agent must verify the three preservation facts against its own escrow and clock records, because the counterparty's escrow service is the one that may have silently re-locked. ## Decision Boundary The receiving agent must draw the line at the **escrow epoch identifier**, not at the commercial terms. The decision procedure: - If `escrow_epoch_id` is present, unchanged, and confirmed by a read of the escrow service → amendment path. Apply term deltas, keep `t_deadline` and `t_accept`. - If `escrow_epoch_id` is absent (legacy message) → the agent MUST issue a `GET_ESCROW` read before applying any term that touches SLA or custody. If the read shows a re-lock after the original `lock_timestamp`, treat as renegotiation. - If `escrow_epoch_id` changed → renegotiation path. Mint new `contract_id`, re-anchor `t_accept` to the new agreement event, restart the SLA clock, and record the old epoch as `SUPERSEDED` with its settlement status. - If the agent cannot read the escrow service (timeout, partition) → it MUST NOT apply the change. It holds the original terms and escalates. Applying an unverified term change is the exact condition that produced the orphan-work failure above. The boundary is sharp because escrow epoch is a monotonic, server-assigned value; it is not subject to negotiation. Agents may argue about price and scope, but they cannot argue about which epoch is live — that is a fact the escrow service owns. The classification must be read from that fact, not inferred from message content. ## Operational Effect When the boundary is respected, the failure mode disappears: every unit of work is bound to exactly one live epoch, and settlement either finds the epoch or the work was never validly committed. The cost is an extra escrow read on every term-change message, which is cheap relative to the loss of an entire task's escrow. When the boundary is violated, the operational signature is distinctive and worth memorizing: **work completes on time against the worker's clock, the coordinator's clock disagrees by exactly the renegotiation delta, and settlement fails with an epoch-mismatch error even though the balance is correct.** The delta between the two clocks equals the time between original acceptance and the renegotiation message — that is the fingerprint. If you observe a settlement rejection where the escrow balance matches the claim amount but the epoch does not, do not re-submit the claim; re-derive which epoch is live and reconcile the deadline anchor first. The guardrail is a hard precondition at the contract-application boundary: no term mutation may be applied to a live contract without a verified epoch read, and any epoch change forces a new contract identity. This must be enforced in code, not policy, because the failure is silent until settlement and the negotiating agents will each believe they are correct. ```python class EscrowEpochViolation(RuntimeError): """Raised when a term change would mutate a live escrow epoch under a preserved contract_id.""" pass class ContractRecord: def __init__(self, contract_id: str, escrow_epoch_id: int, t_accept: float, t_deadline: float): self.contract_id = contract_id self.escrow_epoch_id = escrow_epoch_id self.t_accept = t_accept self.t_deadline = t_deadline def apply_term_change(record: ContractRecord, incoming: dict, escrow_read: dict | None) -> ContractRecord: """ incoming: {'contract_id', 'escrow_epoch_id'(optional), 'sla_relative_s', 'price', 'scope'} escrow_read: result of GET_ESCROW, or None if the read failed. """ if incoming.get("contract_id") != record.contract_id: raise EscrowEpochViolation( f"contract_id mismatch: {incoming.get('contract_id')} vs {record.contract_id}" ) if escrow_read is None: # Cannot verify preservation; must not apply. Hold original terms. raise EscrowEpochViolation( "escrow read unavailable; refusing to apply unverified term change" ) live_epoch = escrow_read["epoch_id"] lock_ts = escrow_read["lock_timestamp"] epoch_preserved = (live_epoch == record.escrow_epoch_id and lock_ts <= record.t_accept) anchor_preserved = incoming.get("escrow_epoch_id") in (None, record.escrow_epoch_id) if epoch_preserved and anchor_preserved: # Amendment: keep t_accept and t_deadline; apply commercial deltas only. return record # Renegotiation: epoch moved or anchor re-derived. Must mint new identity. if live_epoch != record.escrow_epoch_id or lock_ts > record.t_accept: raise EscrowEpochViolation( f"epoch moved {record.escrow_epoch_id}->{live_epoch} under preserved " f"contract_id {record.contract_id}; renegotiate as new contract" ) raise EscrowEpochViolation( "term change re-anchors SLA without new epoch; ambiguous classification" ) ```