HTTPAPI / DISPATCH Working Group R. K. Durga Internet-Draft Microsoft Corporation Intended status: Standards Track 1 November 2026 Expires: 5 May 2027 Pre-Release Transactional Compensation Leases and CAS Fencing Receipts for Autonomous Agents Over Systems of Record draft-durga-agent-tx-compensation-lease-00 Abstract 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. Status of This Memo 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 Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Durga Expires 5 May 2027 [Page 1] Internet-Draft Agent Transactional Compensation Leases November 2026 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. Table of Contents 1. Introduction and Problem Statement . . . . . . . . . . . . . 2 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 2 3. Pre-Release Transactional Compensation Lease (PTCL) Wire Format . . . . . . . . . . . . . . . . . . . . . . . . . 3 4. Normative Fail-Closed Verification Rules . . . . . . . . . . 3 5. Security Considerations . . . . . . . . . . . . . . . . . . . 4 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 4 7. Normative References . . . . . . . . . . . . . . . . . . . . 4 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 4 1. Introduction and Problem Statement 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. 2. Conventions and Definitions 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. Durga Expires 5 May 2027 [Page 2] Internet-Draft Agent Transactional Compensation Leases November 2026 3. Pre-Release Transactional Compensation Lease (PTCL) Wire Format 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)))" } } 4. Normative Fail-Closed Verification Rules Conforming verifiers and relying-party gateways MUST enforce the following deterministic invariants before releasing any downstream side effect: 1. RECOVERY_WINDOW_INEQUALITY: The System of Record verifier MUST verify that t_req_ms <= t_granted_ms and that the current monotonic clock has not exceeded the lease expiration timestamp prior to applying the mutation. 2. MONOTONIC_CAS_FENCING: If the target resource's current state epoch is greater than or equal to cas_fence_epoch, or if the current state digest does not match pre_image_state_hash, the write MUST abort with HTTP 409 Conflict (ERR_STALE_FENCE_EPOCH). 3. FOUR_MODE_RESERVATION_MANDATE: Every lease MUST declare one of four deterministic recovery modes (COMPENSATING_ACTION, SNAPSHOT_RESTORE, DRY_RUN_SHADOW, or HUMAN_ESCROW) and pre-stage the signed inverse payload prior to lock release. Durga Expires 5 May 2027 [Page 3] Internet-Draft Agent Transactional Compensation Leases November 2026 5. Security Considerations 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. 6. IANA Considerations 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: * HTTP/MCP Header Field: Agent-Compensation-Lease * HTTP/MCP Header Field: Agent-Fence-Token * HTTP/MCP Header Field: Agent-Commit-Receipt 7. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, June 2020, . [RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, January 2017, . Author's Address Raghuvar Karthik Durga Microsoft Corporation United States of America Email: rdurga@microsoft.com Durga Expires 5 May 2027 [Page 4]