| Internet-Draft | Agent Transactional Compensation Leases | November 2026 |
| Durga | Expires 5 May 2027 | [Page] |
When autonomous AI agents execute write operations against enterprise Systems of Record (ERP, MES, WMS, CRM, ITSM), traditional HTTP idempotency keys (RFC 9110) and post-hoc Saga orchestrators cannot guarantee deterministic recovery if a stochastic multi-step plan halts mid-flight or hallucinates downstream parameters. This document specifies the Pre-Release Transactional Compensation Lease (PTCL) protocol: a fail-closed wire contract requiring an agent runtime to acquire a cryptographically signed recovery reservation lease, prove a bounded rollback window (T_req <= T_granted), and present a Compare-And-Swap (CAS) epoch fencing token prior to committing any state mutation.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 5 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Existing HTTP API and MCP tool-execution protocols treat write operations as fire-and-forget mutations or rely on application-layer Saga compensations after state has already been mutated and observed by concurrent processes. No internet standard defines a pre-mutation cryptographic reservation lease that binds an inverse compensation payload, a strict recovery window inequality (T_req <= T_granted), and a monotonic CAS fencing epoch before the target System of Record releases the write lock.¶
This specification complements the foundational execution-trace verification architecture defined in draft-durga-agenttrust-trace-verification-00 by introducing deterministic, fail-closed wire semantics specifically addressing Agent Transactional Compensation Leases.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 ([RFC2119] [RFC8174]) when, and only when, they appear in all capitals, as shown here.¶
Before executing a state-mutating request against a conforming System of Record, the agent gateway MUST obtain and attach a signed PTCL object carried in the Agent-Compensation-Lease HTTP header or MCP _meta.compensationLease field:¶
{
"ptcl_version": "1.0",
"lease_id": "urn:uuid:3a88e112-901c-4b77-8821-00912a34f119",
"sor_target_uri": "https://erp.example.com/api/v2/inventory/allocations/99281",
"recovery_mode": "COMPENSATING_ACTION",
"t_req_ms": 450,
"t_granted_ms": 2000,
"cas_fence_epoch": 1048579,
"pre_image_state_hash": "sha256:2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
"inverse_payload_jcs_hash": "sha256:4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8",
"trace_anchor_ref": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"signature": {
"alg": "Ed25519",
"kid": "sha256:7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730",
"sig": "base64url(Ed25519(JCS(lease)))"
}
}
¶
Conforming verifiers and relying-party gateways MUST enforce the following deterministic invariants before releasing any downstream side effect:¶
All pre-image objects MUST be canonicalized using RFC 8785 JSON Canonicalization Scheme (JCS) prior to signature generation or verification under RFC 8032 Ed25519. Any clock skew exceeding 60 seconds, digest mismatch, or missing cryptographic binding MUST cause the verifier to fail closed and emit an auditable security rejection receipt.¶
This document requests IANA registration of the media type application/agent-tx-lease+json and the registry IETF Agent Transactional Recovery Modes (COMPENSATING_ACTION, SNAPSHOT_RESTORE, DRY_RUN_SHADOW, HUMAN_ESCROW), alongside the following header fields:¶