Network Working Group P. Saurabh Internet-Draft Independent Intended status: Standards Track 27 November 2026 Expires: 31 May 2027 Agent Settlement Protocol (ASP) draft-saurabh-asp-framework-00 Abstract This document specifies the Agent Settlement Protocol (ASP), an HTTPS and JSON-RPC application protocol for authorized execution of tasks by software agents in different administrative domains. ASP defines agent service discovery, certificate-bound task authorization, budget-limited recursive delegation, asynchronous execution, cryptographically signed usage records, and clearinghouse reconciliation. An Agent Clearinghouse (ACR) issues short-lived authorization tokens, reserves delegated budgets, receives Agent Detail Records (ADRs), and computes net obligations within a settlement window. ASP does not define a new URI scheme, a universal agent registry, or a payment rail. Its purpose is to make cross- domain agent execution and accounting interoperable while leaving the agents' internal models, tools, and business arrangements outside the protocol. 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 31 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Saurabh Expires 31 May 2027 [Page 1] Internet-Draft Agent Settlement Protocol 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 . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Relationship to Existing Work . . . . . . . . . . . . . . 4 1.2. Requirements Language . . . . . . . . . . . . . . . . . . 4 2. Terminology and Conformance . . . . . . . . . . . . . . . . . 5 3. Architecture and Trust Model . . . . . . . . . . . . . . . . 6 3.1. Participant Enrollment . . . . . . . . . . . . . . . . . 7 4. Agent Identification and Discovery . . . . . . . . . . . . . 8 4.1. Agent Identifiers . . . . . . . . . . . . . . . . . . . . 8 4.2. Agent Service Manifest . . . . . . . . . . . . . . . . . 8 4.3. Manifest Members . . . . . . . . . . . . . . . . . . . . 9 4.4. DNS Optimization . . . . . . . . . . . . . . . . . . . . 10 4.5. Compatibility with the Agent URI Identity Draft . . . . . 11 5. Transport and RPC Methods . . . . . . . . . . . . . . . . . . 11 5.1. HTTP and JSON-RPC Profile . . . . . . . . . . . . . . . . 12 5.2. Method Registry . . . . . . . . . . . . . . . . . . . . . 12 5.3. Request Identity and Idempotency . . . . . . . . . . . . 13 5.4. Common Task Parameters . . . . . . . . . . . . . . . . . 14 6. Authorization, Authentication and Delegation . . . . . . . . 15 6.1. Mutual TLS and Issuer Trust . . . . . . . . . . . . . . . 15 6.2. Leg Authorization Token . . . . . . . . . . . . . . . . . 15 6.3. Initial Authorization . . . . . . . . . . . . . . . . . . 17 6.4. Child Delegation . . . . . . . . . . . . . . . . . . . . 18 6.5. Control Tokens for Long-Lived Tasks . . . . . . . . . . . 20 6.6. Budget Enforcement . . . . . . . . . . . . . . . . . . . 20 7. Execution State Machine . . . . . . . . . . . . . . . . . . . 20 7.1. State Definitions and Transitions . . . . . . . . . . . . 20 7.2. Execute and Poll . . . . . . . . . . . . . . . . . . . . 21 7.3. Cancellation and Deadlines . . . . . . . . . . . . . . . 22 7.4. Redirects and Endpoint Moves . . . . . . . . . . . . . . 22 8. Agent Detail Records and Usage Metering . . . . . . . . . . . 22 8.1. ADR Data Model . . . . . . . . . . . . . . . . . . . . . 22 8.2. Exact Charge Calculation . . . . . . . . . . . . . . . . 24 8.3. Signature Format . . . . . . . . . . . . . . . . . . . . 24 8.4. Example ADR . . . . . . . . . . . . . . . . . . . . . . . 25 8.5. ADR Submission and Receipts . . . . . . . . . . . . . . . 26 9. Clearing, Settlement and Reconciliation . . . . . . . . . . . 26 9.1. Funding and Obligations . . . . . . . . . . . . . . . . . 26 Saurabh Expires 31 May 2027 [Page 2] Internet-Draft Agent Settlement Protocol November 2026 9.2. Settlement Windows and Netting . . . . . . . . . . . . . 26 9.3. Adjustments and Disputes . . . . . . . . . . . . . . . . 27 10. Errors and Recovery . . . . . . . . . . . . . . . . . . . . . 27 11. Security Considerations . . . . . . . . . . . . . . . . . . . 28 11.1. Threat Model . . . . . . . . . . . . . . . . . . . . . . 28 11.2. Authorization and Replay Resistance . . . . . . . . . . 29 11.3. Cycles, Resource Exhaustion and SSRF . . . . . . . . . . 29 11.4. Audit and Metering Fraud . . . . . . . . . . . . . . . . 30 11.5. Key Compromise and Federation Failure . . . . . . . . . 30 12. Privacy Considerations . . . . . . . . . . . . . . . . . . . 30 13. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 30 13.1. Well-Known URI Registration . . . . . . . . . . . . . . 30 13.2. JSON Web Token Claims Registration . . . . . . . . . . . 31 13.3. Registrations Not Requested . . . . . . . . . . . . . . 31 14. Operational and Implementation Considerations . . . . . . . . 31 14.1. Interoperability Test Cases . . . . . . . . . . . . . . 31 14.2. Version Negotiation and Extensibility . . . . . . . . . 32 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 32 15.1. Normative References . . . . . . . . . . . . . . . . . . 33 15.2. Informative References . . . . . . . . . . . . . . . . . 34 Appendix A. Illustrative Message Exchange . . . . . . . . . . . 35 A.1. Authorize One Execution Leg . . . . . . . . . . . . . . . 35 A.2. Execute and Poll . . . . . . . . . . . . . . . . . . . . 36 A.3. Completion and Accounting . . . . . . . . . . . . . . . . 37 Appendix B. Changes Relative to the Unsubmitted ASP Framework Draft . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Appendix C. JSON Schema Guidance . . . . . . . . . . . . . . . . 38 C.1. Manifest Schema . . . . . . . . . . . . . . . . . . . . . 38 C.2. Execute-Task Parameters Schema . . . . . . . . . . . . . 40 C.3. Agent Detail Record Schema . . . . . . . . . . . . . . . 40 Appendix D. Open Issues . . . . . . . . . . . . . . . . . . . . 42 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 43 1. Introduction An originating software agent may require processing by independent agents with different capabilities, ownership, pricing, and execution policies. In a cross-domain task, the caller needs to discover an endpoint, determine which authority may authorize a purchase, cap the funds exposed to transitive delegation, and obtain a durable record of work and charges. Ordinary HTTPS supplies transport security but does not establish a shared representation of delegated spend authorization or usage evidence. The Agent Settlement Protocol (ASP) defines one interoperable transaction profile in which a trusted Agent Clearinghouse (ACR) issues authorization for an execution leg, the executing agent performs the task, and a signed Agent Detail Record (ADR) accounts Saurabh Expires 31 May 2027 [Page 3] Internet-Draft Agent Settlement Protocol November 2026 for that leg. An execution leg may delegate child legs through the same ACR. The ACR atomically reserves portions of the parent budget and reconciles the resulting records. ASP intentionally does not standardize models, tool calling semantics internal to an agent, marketplace ranking, discovery across all Internet domains, commercial terms, credit underwriting, or the actual movement of funds. ACR trust and membership are established by deployment policy, not by a purported IANA-operated root authority. 1.1. Relationship to Existing Work ASP uses HTTPS URIs as its mandatory transport-facing agent identifiers and does not register or redefine an agent URI scheme. For agent identity aliases, ASP references the syntax, normalization, and Agent Identity Document (AID) discovery model proposed in [I-D.agent-uri]. An ASP service MAY advertise an agent: URI in addition to its HTTPS agent_id, subject to the compatibility rules in Section 4.5. This separate Internet-Draft remains a work in progress, and ASP's core behavior does not depend on its eventual approval. ASP's service manifest is distinct from an Agent2Agent (A2A) Agent Card [A2A]; a deployment may publish an A2A Agent Card without treating it as an ASP authorization credential. ASP differs from agent interaction protocols by defining the authorization, budget reservation, usage evidence, and clearinghouse contract that accompanies a task. Two related proposals address adjacent problems. [I-D.usage-accounting] defines a common model for recording, exporting, verifying, correcting, and disputing usage across agents, gateways, and domains, and excludes pricing, charging, and settlement. [I-D.agent-settlement] defines settlement records in which payer and payee each sign only what their own systems observed. ASP instead specifies how a live, possibly delegated execution obtains spending authority in advance, how that budget is partitioned across delegation, and how an executor-signed usage record is priced against a pre-agreed tariff and recomputed by the clearinghouse. Mappings between ASP records and those formats can be defined in future documents. 1.2. Requirements Language 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. Saurabh Expires 31 May 2027 [Page 4] Internet-Draft Agent Settlement Protocol November 2026 Some examples in this document contain lines too long for the format. They are wrapped using the single backslash strategy defined in [RFC8792]. 2. Terminology and Conformance Agent: A service that receives or initiates an ASP task. Its internal use of artificial intelligence is not visible to the protocol. Originating Agent: The agent that starts a transaction on behalf of a user, service, or organization. Executing Agent: The agent that accepts and executes one authorized task leg. Transiting Agent: An executing agent that requests one or more child legs. Agent Clearinghouse (ACR): A configured authority that authenticates participants, authorizes individual legs, atomically reserves budgets, accepts ADRs, and reconciles charges. Transaction: The set of one or more causally linked execution legs identified by a transaction_id. Call Leg: One authorized invocation, identified by call_leg_id, potentially linked to parent_leg_id. ADR: An Agent Detail Record, the signed statement of usage and charges for one completed, failed, or canceled leg. Tariff: A price schedule accepted by the ACR and identified by a cryptographic digest before execution. Micro-unit: One millionth of one major currency unit. The monetary representation defined here is independent of a currency's conventional minor-unit exponent. An ASP implementation claiming conformance to this version MUST support HTTPS transport, JSON-RPC 2.0, the methods in Section 5, ES256 JWT validation, the basic ACR authorization and reservation protocol, the task state model, ADR signing and verification, and one settlement currency per transaction. Implementations MAY provide additional capabilities as long as an ASP peer can decline them without affecting the mandatory protocol. Saurabh Expires 31 May 2027 [Page 5] Internet-Draft Agent Settlement Protocol November 2026 3. Architecture and Trust Model An ASP transaction has one governing ACR, one originating agent, and one or more executing agents. Different administrative domains may be members of the same ACR federation. The ACR is chosen by the initiating organization's configured trust policy, not by an arbitrary DNS record. Before starting a transaction, a participant's administrative configuration MUST associate each trusted ACR issuer identifier with an HTTPS RPC endpoint, a set of accepted issuer verification keys or a securely authenticated key-discovery procedure, supported currencies, and a mapping of registered agents to funding and provider accounts. These are administrative trust inputs, not statements learned from a target agent's unauthenticated manifest. +-------------------+ 1. authorize (budget) +-------------+ | Originating |-------------------------->| | | Agent A |<--------------------------| | +-------------------+ execute token | | | | | | 2. executeTask | | v | | +-------------------+ 3. reserveDelegation | ACR | | Transit |-------------------------->| | | Agent B |<--------------------------| | +-------------------+ child token | | | | | | 4. executeTask | | v | | +-------------------+ 5. submitADR | | | Executing Agent C |-------------------------->| | +-------------------+ (B submits its own ADR) +-------------+ The ACR MUST authenticate a caller before issuing authority, MUST validate registered executors and tariff records, MUST serialize concurrent reservations for a transaction, and MUST maintain an append-only logical ledger of reservations, charges, reversals, and receipts. Physical storage may use any durable architecture providing these properties. An executor MUST NOT treat the mere presence of an ACR URL in an Agent Service Manifest as evidence that the ACR is trusted. Each participant MUST configure a trusted issuer set or obtain issuer trust through an independently established administrative process. ACR issuer keys MUST be bound to the configured issuer identifier, and key revocation MUST take effect before a revoked issuer can authorize further task starts. Saurabh Expires 31 May 2027 [Page 6] Internet-Draft Agent Settlement Protocol November 2026 Multiple independent ACRs settling obligations with each other are outside the scope of version 1. This scope restriction does not prevent participating agents from belonging to different administrative domains. 3.1. Participant Enrollment An ACR MUST hold an enrollment record for every provider, executing agent, and funding account that participates in transactions it governs. ASP version 1 does not define an enrollment protocol; enrollment is an administrative process operated by the ACR. This section specifies what an enrollment record MUST contain and the checks an ACR MUST perform before relying on it. A provider enrollment record MUST identify the provider's settlement account and the HTTPS origins under which the provider's agent_ids are published. For each enrolled agent, the record MUST contain the agent_id; the client certificate, or certificate-matching policy, that authenticates the agent in mutual TLS (Section 6.1); the public keys and kid values the agent uses to sign ADRs (Section 8.3); the capabilities the agent may perform; and the tariff_sha256 values the ACR has accepted for it. Before enrolling an agent, the ACR MUST verify that the provider controls the agent_id's HTTPS origin, for example by retrieving that origin's service manifest over certificate-validated HTTPS and confirming that the manifest lists the agent_id. An ACR operator MAY instead assign an agent_id under an HTTPS origin that the operator controls, for a provider that does not operate its own origin. In that case the operator acts as the domain owner for the purposes of Section 4 and MUST publish the corresponding manifest entry. In either case, the agent's rpc_endpoint MAY be operated by the provider at a different origin. A tariff change produces a new tariff_sha256. The ACR MUST record each accepted digest with the time from which it may be used, and MUST NOT apply a new digest to a leg authorized under an earlier one. A funding account enrollment record MUST identify the account, its currency, its credit limit or prepaid balance, and the originating agent_ids permitted to draw on it. The ACR MUST be able to suspend a provider, an agent, a signing key, or a funding account. A suspended agent or account MUST NOT be named in a new authorization or delegation. Legs authorized before the suspension MAY complete and settle under the ACR's published suspension policy. Saurabh Expires 31 May 2027 [Page 7] Internet-Draft Agent Settlement Protocol November 2026 End users are not ASP peers. An originating agent MAY act on behalf of end users who authenticate to it, or to the ACR operator, by means outside this protocol. Such user authentication does not replace the originating agent's own mutual TLS identity and enrollment. 4. Agent Identification and Discovery 4.1. Agent Identifiers An ASP agent_id is an absolute HTTPS URI identifying one agent under a domain owner's control, for example https://analytics.example/agents/data-processor. The identifier MUST contain a DNS host name and an absolute path. It MUST NOT contain userinfo, a query, a fragment, an IP-literal host, an empty host, or dot segments in the path. The default HTTPS port 443 MUST be omitted from its normalized representation. Scheme and host comparisons are case-insensitive; path comparisons are case-sensitive after percent- encoding normalization as defined in [RFC3986]. Internationalized host names MUST use their DNS A-label representation. The agent_id identifies an agent for ASP authorization and routing; it is not automatically an RPC endpoint. One manifest can advertise multiple agent identifiers and their HTTPS RPC endpoints. An agent_uri MAY additionally identify an agent using the external agent: URI proposal [I-D.agent-uri], but MUST NOT replace agent_id in an ASP JWT audience or RPC request in this version. A party MUST NOT infer agent authority from a human-readable identifier alone. 4.2. Agent Service Manifest To discover the ASP endpoint for a known agent_id, a client obtains the HTTPS origin of the identifier and retrieves: GET /.well-known/asp.json HTTP/1.1 Host: analytics.example Accept: application/json The server MUST return a JSON object according to Section 4.3 with Content-Type application/json. The manifest MUST be fetched using certificate-validated HTTPS. The client MUST select an agent entry whose agent_id matches the requested normalized identifier. The indicated rpc_endpoint MUST use HTTPS. A client MUST enforce local rules for accepted origins, ports, and IP address classes to prevent server-side request forgery and unintended access to private services. Saurabh Expires 31 May 2027 [Page 8] Internet-Draft Agent Settlement Protocol November 2026 The manifest MAY be cached according to HTTP cache metadata [RFC9111]; clients MUST revalidate it after expiry and MUST NOT allow a stale manifest to override trust policy. A redirect while fetching a manifest MUST be followed only if it conforms to the client's explicit redirect and origin policy. The document located at /.well- known/asp.json is an ASP service manifest, not an A2A Agent Card. 4.3. Manifest Members The root object has the following REQUIRED members: * asp_version: the string "1". * provider: the HTTPS origin controlling the manifest. * agents: a nonempty array of advertised agent objects. Each agent object MUST contain agent_id, rpc_endpoint, capabilities, capability_schemas, and tariff. The first two are HTTPS URIs. The OPTIONAL agent_uri is an agent: URI alias as described in Section 4.5. capabilities is an array of nonempty, unique capability identifiers consisting of lowercase ASCII letters, digits, dots, hyphens, and underscores. capability_schemas maps every advertised capability name to an object containing an input_schema and output_schema conforming to JSON Schema Draft 2020-12. An executor MUST validate input_data against the advertised input_schema, and MUST ensure completed output_data satisfies the corresponding output_schema. Missing schemas, inconsistent advertised names, or invalid schemas MUST make a manifest unacceptable. tariff MUST contain currency, input_rate_per_1k, output_rate_per_1k, and tool_rates. A currency is a three-letter uppercase ISO 4217 code [ISO4217]. Each rate MUST be a nonnegative decimal integer encoded as a JSON string and denotes micro-units per 1,000 tokens or per tool invocation. tool_rates maps tool identifiers to rates. The ACR and client MUST bind the tariff used for billing to the lowercase hexadecimal SHA-256 digest of its RFC 8785 canonical JSON encoding. The OPTIONAL acr_issuers member is an array of HTTPS issuer identifiers offered as discovery hints. It MUST NOT be used to bootstrap trust automatically. The OPTIONAL extensions object may contain vendor-specific keys that do not change the interpretation of mandatory members. Example: Saurabh Expires 31 May 2027 [Page 9] Internet-Draft Agent Settlement Protocol November 2026 { "asp_version": "1", "provider": "https://analytics.example", "agents": [ { "agent_id": "https://analytics.example/agents/data-processor", "agent_uri": "agent://analytics.example/data-processor", "rpc_endpoint": "https://analytics.example/asp/v1/rpc", "capabilities": ["data_transform", "summarize"], "capability_schemas": { "data_transform": { "input_schema": { "type": "object", "required": ["text"], "properties": {"text": {"type": "string"}} }, "output_schema": {"type": "object"} }, "summarize": { "input_schema": {"type": "object"}, "output_schema": {"type": "object"} } }, "tariff": { "currency": "USD", "input_rate_per_1k": "1200", "output_rate_per_1k": "3600", "tool_rates": {"database_lookup": "5000"} } } ], "acr_issuers": ["https://acr.example"] } 4.4. DNS Optimization Clients MAY use ordinary HTTPS resource records as specified in [RFC9460] to optimize connection establishment for the HTTPS origin. ASP does not require new SVCB parameter keys, does not change RFC 9460 owner-name construction, and does not encode application- specific ACR or path claims in DNS. TLS certificate validation MUST use the original HTTPS origin regardless of DNS hints. Saurabh Expires 31 May 2027 [Page 10] Internet-Draft Agent Settlement Protocol November 2026 4.5. Compatibility with the Agent URI Identity Draft This section depends on [I-D.agent-uri], an individual Internet-Draft that is still changing. It is aligned with revision -04 of that document; its references to that draft's section numbers and mapping rules may need revision as that draft evolves. The external [I-D.agent-uri] defines agent: URI syntax and canonical comparison, together with a deterministic HTTPS mapping to an Agent Identity Document (AID). ASP does not duplicate those definitions. When an ASP manifest includes agent_uri, a client implementing this optional alias profile MUST parse and canonicalize it according to that draft's Section 4 and MUST reject an invalid URI, including disallowed userinfo, query strings, or noncanonical name paths. A client that only implements core ASP MAY ignore agent_uri. An identity URI is not an RPC transport address or a substitute for ASP spending authorization. For example, the externally proposed mapping is: agent://analytics.example/data-processor -> https://analytics.example/.well-known/agent/data-processor An ASP implementation using this optional alias MUST retrieve and validate the AID according to [I-D.agent-uri], verify that its canonical id corresponds to agent_uri, and reject a suspended or retired identity. This version restricts such aliases to AIDs whose HTTPS origin equals the origin hosting the ASP service manifest. Implementations MUST also apply their configured identity and key trust policy; a self-asserted AID operator name does not confer ACR membership or credit authority. An AID and the ASP service manifest have different purposes: the AID identifies an agent and its identity keys, whereas /.well-known/ asp.json advertises execution endpoints, capability schemas, and tariffs. ACR-issued ASP tokens continue to bind to the HTTPS agent_id until a future interoperable identity-binding profile is standardized. 5. Transport and RPC Methods Saurabh Expires 31 May 2027 [Page 11] Internet-Draft Agent Settlement Protocol November 2026 5.1. HTTP and JSON-RPC Profile ASP uses HTTP over TLS 1.3 [RFC9846] on port 443 unless an explicit HTTPS endpoint uses another port permitted by local policy. Each ASP RPC request MUST be a UTF-8 JSON-RPC 2.0 object [JSON-RPC] sent with HTTP POST to the advertised RPC endpoint with Content-Type application/json and Accept application/json. Batch JSON-RPC requests and JSON-RPC notifications MUST NOT be used in ASP version 1. All ACR and executor RPC endpoints MUST authenticate clients using mutual TLS. The initial asp.authorize method authenticates with the registered client certificate and does not require a pre- existing task token; execution and task control methods additionally require an ASP token bound to the calling certificate, as specified in Section 6. Every ASP request params object MUST include asp_version with string value "1". Every successful response MUST contain a JSON-RPC result object and an id that matches the request. Every application-level error MUST contain a JSON-RPC error object with the same id when it is available. HTTP status codes in this document have the semantics defined in [RFC9110]. Except for asynchronous execution acceptance, successful RPCs use HTTP 200. An accepted asynchronous asp.executeTask request MAY use HTTP 202 and MUST still contain a complete JSON-RPC response object. HTTP 400 is used for malformed JSON or invalid JSON-RPC envelope, HTTP 401 for missing authentication, HTTP 403 for authorization denial, HTTP 429 for throttling, and HTTP 503 for temporary unavailability. These HTTP statuses do not replace the JSON-RPC error object when a valid request id can be recovered. Clients MUST NOT assume an HTTP 500 response means that an execution was not started; they MUST retry idempotently as specified in Section 5.3. Servers MUST limit request sizes and recursion according to documented policy. For this profile, a client MUST NOT send a body exceeding 1 MiB unless the server explicitly advertises a larger supported limit out of band. Large inputs and outputs MAY be conveyed through separately authorized, integrity-checked HTTPS objects, but a transfer-object profile is not specified here. 5.2. Method Registry The following JSON-RPC method names and purposes are mandatory: * asp.authorize: request execution or control authorization from the governing ACR. Saurabh Expires 31 May 2027 [Page 12] Internet-Draft Agent Settlement Protocol November 2026 * asp.reserveDelegation: atomically reserve budget and authorize one child leg at the governing ACR. * asp.executeTask: invoke an agent capability at an executor. * asp.getTask: obtain task status and result from an executor. * asp.cancelTask: request cancellation from an executor. * asp.submitADR: submit a signed accounting record to the ACR. Unknown asp.* methods MUST produce JSON-RPC "Method not found" (-32601). Implementations MUST NOT silently reinterpret one standard method as another. Future standard methods require a compatible extension specification. 5.3. Request Identity and Idempotency Every invocation has a UUID version 4 transaction_id and call_leg_id according to [RFC9562]. Each asp.executeTask request carries a request_id UUID chosen by the caller for that call leg. The executor MUST compute SHA-256 over the RFC 8785 canonical encoding of the JSON-RPC params object excluding jwt_asp and request_id. It MUST durably associate the tuple (transaction_id, call_leg_id, request_id) with this digest and the task outcome for at least the applicable task retention interval. An executor MUST start at most one task for a given transaction_id and call_leg_id. A repeat request with the same tuple and digest MUST return the existing task state or result without starting new work or producing a second charge. A request for a leg that already has a task, but with a different request_id or a different digest, MUST fail with ASP_IDEMPOTENCY_CONFLICT (-32008). A token for one leg MUST NOT authorize a different leg. If the client loses the initial response, it MUST retry using the original tuple and body rather than mint a new leg. Because jwt_asp is excluded from the digest, a retry MAY carry a different token for the same leg. The executor MUST validate that token completely, including its exp claim, before returning any task state; an expired token MUST NOT be accepted for a retry. When the original execute token has expired, the caller recovers as follows: 1. The caller sends asp.authorize to the ACR with purpose="execute" and the original transaction_id, call_leg_id, and other parameters (Section 6.3). Saurabh Expires 31 May 2027 [Page 13] Internet-Draft Agent Settlement Protocol November 2026 2. If the leg's reservation is still open, the ACR returns a fresh execute token bound to the existing reservation. The caller resends asp.executeTask with the original params, including the original request_id, and the fresh token. The executor returns the existing task if it has one, or starts the task if it never received the original request. 3. If the leg's reservation is closed, the ACR fails with ASP_LEG_CLOSED (-32011), and the error data contains the adr_id and outcome of the ADR that closed the leg. If the outcome is NOT_STARTED, the caller MAY authorize a replacement leg. Otherwise the leg was executed, and the caller retrieves the outcome with a control token and asp.getTask (Section 7.2), or retrieves the ADR and receipt from the ACR (Section 9.3). Recovery never creates a second reservation, a second task, or a second charge for the same leg. ASP_TASK_NOT_FOUND from an executor is not evidence that a leg was never executed: the task's retention period may have ended, or the caller may lack access to it. A caller MUST NOT authorize a replacement leg on the basis of ASP_TASK_NOT_FOUND alone. Non- execution is established only by an accepted ADR for the leg with outcome NOT_STARTED. An executor MAY submit such an ADR only if its durable records show that it never started a task for the leg. The ADR MUST carry charged_micro "0", zero metrics, and a start_time and end_time equal to the time of the statement. After submitting it, the executor MUST reject any asp.executeTask for that leg. Because the ACR accepts at most one ADR per call leg (Section 8.3), a NOT_STARTED ADR also prevents the leg from being billed later. A caller SHOULD NOT replace a leg while its reservation is open, because both legs could then be executed and charged. A leg whose executor never submits an ADR is resolved under the ACR's reconciliation and dispute policy (Section 9.3). 5.4. Common Task Parameters The asp.executeTask params object MUST contain asp_version, transaction_id, call_leg_id, request_id, jwt_asp, capability, input_data, and constraints. input_data is a JSON value validated by the selected agent's advertised capability input_schema; the common protocol imposes no particular domain-specific fields. constraints contains deadline ([RFC3339] UTC timestamp) and max_spend_micro (nonnegative decimal integer string). The executing agent MUST reject an unknown capability and MUST NOT authorize execution when the requested maximum exceeds its signed token's remaining budget. Saurabh Expires 31 May 2027 [Page 14] Internet-Draft Agent Settlement Protocol November 2026 The executing response result MUST contain task_id (UUID), status (Section 7), settlement_status when the task is terminal (Section 7.1), and either output_data for a completed synchronous task or a status object without output_data for an active asynchronous task. A server MUST NOT place sensitive model output in a redirect. 6. Authorization, Authentication and Delegation 6.1. Mutual TLS and Issuer Trust All ASP peers MUST negotiate TLS 1.3 and use mutual client certificate authentication. The server MUST validate the client's certificate chain against locally configured trusted roots and MUST validate server DNS identity according to the HTTPS URI. An ACR MUST bind each authorized agent_id to a registered client certificate or equivalent policy-controlled identity; mere possession of any valid Web PKI certificate is insufficient. The ACR issues a JSON Web Token (JWT) [RFC7519] signed with ES256 [RFC7518] for a particular leg, as profiled in Section 6.2. Recipients MUST enforce the JWT best-current practices in [RFC8725]. Key selection MUST be restricted to keys associated with the configured trusted issuer; an x5c header, jwk header, or untrusted key-discovery URL supplied in the token MUST NOT determine trust. ACRs SHOULD publish an HTTPS JWKS [RFC7517] for rotation, but the recipient MUST independently authenticate its issuer binding. JWT bearer forwarding is insufficient for ASP. The JWT MUST contain a cnf member with x5t#S256 as defined in [RFC8705], binding it to the SHA-256 thumbprint of the DER-encoded client certificate used on the executor-facing mutual TLS connection. The executing agent MUST verify this binding before executing work. 6.2. Leg Authorization Token Each JWT has protected header alg=ES256, typ=asp-leg+jwt, and an issuer-controlled kid. Explicit typing follows [RFC8725], Section 3.11. To compare a typ value, a recipient first prepends "application/" to a value that contains no "/", as specified in [RFC7515], Section 4.1.9, and then compares the result case- insensitively. A recipient MUST reject a leg token whose typ is absent or does not equal application/asp-leg+jwt under this comparison, and MUST NOT accept an ADR or receipt JWS (Sections 8.3 and 8.5) as a leg token. Its claims MUST include iss, sub, aud, iat, nbf, exp, jti, cnf, and asp. The sub claim is the invoking agent_id, aud is the destination agent_id, and iss is the configured ACR HTTPS issuer. iat, nbf, and exp are integer NumericDate values. exp - iat Saurabh Expires 31 May 2027 [Page 15] Internet-Draft Agent Settlement Protocol November 2026 MUST NOT exceed 300 seconds. The token's exp constrains when a task may be started, not how long an already accepted task may execute. The asp object MUST include transaction_id, call_leg_id, parent_leg_id (null for a root leg), capability, purpose, currency, funding_domain, max_spend_micro, tariff_sha256, hops_remaining, and visited. The ACR MUST derive funding_domain from the enrolled funding account (Section 3.1) that it charges for the root leg, and MUST NOT take the value from caller-supplied parameters. It MUST include the same funding_domain in every token for the transaction, including control tokens, re-authorized tokens, and the tokens of all child legs. purpose MUST be "execute" or "control". An executor MUST accept an execute token only for asp.executeTask and a control token only for asp.getTask or asp.cancelTask. visited is the ordered list of previously authorized agent_ids and MUST contain no duplicates. The ACR MUST reject issuance of a child leg if the child destination is already in visited. hops_remaining is a nonnegative integer and MUST decrease by one for every child leg. A caller MUST NOT alter these signed values. Illustrative decoded claims (the certificate digest and signature are omitted here and MUST be supplied in real tokens): Saurabh Expires 31 May 2027 [Page 16] Internet-Draft Agent Settlement Protocol November 2026 =============== NOTE: '\' line wrapping per RFC 8792 ================ { "iss": "https://acr.example", "sub": "https://origin.example/agents/caller", "aud": "https://analytics.example/agents/data-processor", "iat": 1795780800, "nbf": 1795780800, "exp": 1795781100, "jti": "550e8400-e29b-41d4-a716-446655440000", "cnf": {"x5t#S256": "BASE64URL_CERT_SHA256_PLACEHOLDER"}, "asp": { "transaction_id": "8d3a3bda-e895-46f0-af0a-fb48a991cd83", "call_leg_id": "2f3c8bc6-36e7-4b35-912b-4d134cf6c80a", "parent_leg_id": null, "capability": "data_transform", "purpose": "execute", "currency": "USD", "funding_domain": "origin.example", "max_spend_micro": "2500000", "tariff_sha256": "8ed5e79c97413fcc1f2279aaaea3fe9bd7c4709fccff\ 1257fdaa684690f469a3", "hops_remaining": 3, "visited": ["https://origin.example/agents/caller"] } } The placeholder values in this explanatory example are not valid cryptographic evidence. A recipient MUST reject tokens lacking a valid digest, signature, certificate binding, audience, or issuer. 6.3. Initial Authorization The originating agent sends asp.authorize to the ACR over mutual TLS with params containing asp_version, transaction_id, call_leg_id, caller_agent_id, target_agent_id, capability, currency, max_spend_micro, tariff_sha256, hops_remaining, and purpose="execute". The ACR MUST confirm that the caller controls the specified caller_agent_id, that the target and tariff are registered and permitted, and that the requested exposure fits the originating account's available credit. On success the ACR MUST reserve max_spend_micro for the root leg and return jwt_asp, reservation_id, and token_expires_at. The ACR MUST use a transactionally consistent reservation record so two concurrent authorize calls cannot spend the same credit. On failure it returns a defined ASP error; it MUST NOT grant a token with a larger cap than requested. For an existing leg, asp.authorize with purpose="control" Saurabh Expires 31 May 2027 [Page 17] Internet-Draft Agent Settlement Protocol November 2026 and its original transaction_id and call_leg_id MUST return a fresh zero-budget control token only to the authenticated original caller; it MUST NOT create a second reservation. For an existing leg whose reservation is still open, asp.authorize with purpose="execute" and the original transaction_id and call_leg_id is a re-authorization (Section 5.3). The ACR MUST return a fresh execute token only to the authenticated original caller, bound to the same reservation, with identical asp claims and new jti, iat, nbf, and exp values. It MUST NOT create or enlarge a reservation. If the other parameters differ from those recorded for the leg, the ACR MUST fail with ASP_IDEMPOTENCY_CONFLICT. If the leg's reservation is closed (Section 6.4), the ACR MUST fail with ASP_LEG_CLOSED. 6.4. Child Delegation An executing agent may create a child leg only when the accepted parent authorization permits hops_remaining greater than zero. It calls asp.reserveDelegation at the same ACR with parent transaction_id, parent call_leg_id, new child call_leg_id, child agent_id, capability, tariff_sha256, currency, max_spend_micro, accrued_local_micro, and the caller certificate identity. The ACR MUST authenticate the transit agent over mutual TLS, verify that this agent is the executing agent recorded for the active parent reservation, and verify the signed parent authorization retained in its own ledger. A received parent JWT is not to be treated as a bearer credential for delegation at the ACR. Successful response members are jwt_asp, reservation_id, and token_expires_at, with the same meanings as asp.authorize. The ACR MUST verify the active parent leg, ownership of the transit agent, remaining hop count, allowed capability, trust policy and absence of a visited-loop. It MUST atomically move no more than the requested amount from the parent's available reservation into a child reservation. The child JWT is bound to the transit agent's client certificate, names the child agent as aud, and includes a parent_leg_id matching the parent. Budget limits are enforced at every leg, not only at the root. For a leg L, let R(L) be its reservation, C(L) the charge for L's own work as stated in L's ADR, and D(L) the sum over L's children M of R(M) while M is open, or C(M) + D(M) after M has closed. The following invariant MUST hold for every leg at all times: C(L) + D(L) <= R(L) Saurabh Expires 31 May 2027 [Page 18] Internet-Draft Agent Settlement Protocol November 2026 The ACR enforces this invariant when reserving. Each asp.reserveDelegation request carries accrued_local_micro, a nonnegative decimal integer string giving the parent's own charges incurred so far on the leg. An executor MUST report a value no lower than its actual accrued local charges, and MAY report a higher value to hold budget for local work it still intends to perform. The ACR records H(P), the largest accrued_local_micro value P has reported, and MUST reject a child reservation of amount X with ASP_BUDGET_EXCEEDED unless H(P) + D(P) + X <= R(P). Because the ACR serializes reservations for a transaction (Section 3), two concurrent requests from the same parent cannot both rely on the same available amount. The executor of P enforces the invariant while working. From the moment it sends an asp.reserveDelegation request until the ACR answers, it MUST treat the requested amount as reserved, and it MUST NOT incur local charges that would make C(P), plus D(P), plus any outstanding requested amounts exceed R(P) (Section 6.6). The ACR verifies the invariant again when accepting P's ADR and MUST reject an ADR whose charge would violate it. This final check bounds the funding account's liability even if an executor under-reports accrued_local_micro. In that case the loss falls on the misreporting executor, whose ADR is rejected, and not on the funder or on child executors, whose reservations were already granted. Because each child reservation is carved out of its parent's reservation, applying the invariant at every leg also bounds the whole transaction by the root reservation. A leg closes when its own ADR has been accepted and all of its children have closed. When a leg closes, R(L) - C(L) - D(L) is released to its parent's available amount; for a root leg, it is released to the funding account. The ACR MUST maintain an immutable parent-child reservation tree. A child that fails before spending any budget MAY release its unused reservation, but only through an accepted ADR, such as a zero-charge TERMINATED or NOT_STARTED ADR. A child that reports partial usage releases the remaining reservation after an ADR is accepted or an authorized dispute/timeout process closes it. Parent funds MUST NOT be released solely because a client stopped polling. Saurabh Expires 31 May 2027 [Page 19] Internet-Draft Agent Settlement Protocol November 2026 6.5. Control Tokens for Long-Lived Tasks When a task continues beyond the original short-lived JWT, its prior acceptance remains valid until the task deadline or cancellation. Subsequent asp.getTask and asp.cancelTask requests MUST present a fresh ACR token with purpose="control", matching transaction_id, call_leg_id and caller agent_id, with max_spend_micro="0". A control token does not authorize a new execution or delegation. 6.6. Budget Enforcement Executors MUST monitor accumulated local charges against the leg's available amount, which is the accepted cap minus D(L) as defined in Section 6.4 and minus the amounts of any outstanding asp.reserveDelegation requests, and MUST terminate or cease billable operations before a new operation could exceed it. A pricing decision is bound to the tariff_sha256 in the token. The executing agent MUST reject mismatched tariffs and MUST NOT change rates within an authorized leg. If actual work cannot be metered reliably enough to respect the cap, the executor MUST reject the task before starting it. 7. Execution State Machine 7.1. State Definitions and Transitions SETUP and AUTHORIZED are local authorization phases that precede a server task. An accepted server task starts in ACCEPTED and transitions to EXECUTING, then COMPLETED. A synchronous task MAY perform execution before returning its initial response. A task MAY transition to TERMINATED from ACCEPTED or EXECUTING because of a failure or deadline. A task may enter CANCEL_REQUESTED from ACCEPTED or EXECUTING, then transition to CANCELED after the executor acknowledges cancellation, or to COMPLETED or TERMINATED if work finished or failed first. COMPLETED, TERMINATED, and CANCELED are terminal. SETUP -> AUTHORIZED | v ACCEPTED -> EXECUTING -> COMPLETED | | +-----------+--> TERMINATED | | +-----------+--> CANCEL_REQUESTED --> CANCELED Saurabh Expires 31 May 2027 [Page 20] Internet-Draft Agent Settlement Protocol November 2026 A task MUST have a single immutable terminal outcome. Execution state and settlement state are separate. Reaching a terminal execution state does not depend on the ACR: when a task reaches COMPLETED, the executor MUST make its output_data available to the authorized caller without waiting for an ACR receipt. A task that reaches TERMINATED or CANCELED MUST still produce an ADR describing any authorized consumption already incurred. Once a task is in a terminal state, it also has a settlement_status, reported alongside status: * PENDING: the ADR has not yet been acknowledged by the ACR, including while the ACR is unavailable. * RECORDED: the ACR has accepted the ADR and returned a signed receipt (Section 8.5). * REJECTED: the ACR rejected the ADR; resolution follows Section 9.3. settlement_status is absent while a task is ACCEPTED, EXECUTING, or CANCEL_REQUESTED. An executor MUST NOT report RECORDED before it holds the ACR's signed receipt. A change in settlement_status never changes the task's execution outcome or the output already made available. 7.2. Execute and Poll For an asynchronous execution, the executor returns HTTP 202 with a JSON-RPC result containing task_id, status="ACCEPTED", and poll_after_seconds. Clients MUST poll by sending asp.getTask to the same trusted RPC endpoint with transaction_id, call_leg_id, a current control authorization token, and task_id when known. Because an executor starts at most one task per leg (Section 5.3), it MUST resolve a request without task_id by transaction_id and call_leg_id. The response MUST include status and updated_at, and, when the task is terminal, settlement_status and either output_data or an error description. poll_after_seconds is an integer between 1 and 300; clients MUST honor Retry-After when present and MUST apply exponential backoff for transient 429 or 503 responses. An executor MUST authenticate every poll. A task identifier is not a bearer credential. A completed result MUST be retrievable for at least the retention period advertised to the caller when the task was accepted; absent a bilateral retention agreement, this period MUST be at least 24 hours. A requester MUST NOT assume the underlying computation continues merely because a poll times out. Saurabh Expires 31 May 2027 [Page 21] Internet-Draft Agent Settlement Protocol November 2026 7.3. Cancellation and Deadlines asp.cancelTask requests cancellation of one task. The server returns status="CANCEL_REQUESTED" while termination is pending, followed by CANCELED when processing has actually stopped, or by an already terminal state if work finished first. The client MUST NOT assume cancellation is immediate or free of charges. The ADR MUST record costs accrued until processing stopped. The executor MUST compare its current UTC time with the accepted deadline before starting new billable work. When the deadline expires, it MUST cease billable work and transition the task to TERMINATED with reason DEADLINE_EXCEEDED. Bounded clock skew MAY be configured, but any extension that increases possible spend requires a new authorization. 7.4. Redirects and Endpoint Moves An executor MAY return HTTP 307 or 308 with a Location header containing an HTTPS URI. Clients MUST NOT automatically forward an authorization token across origins. Before retrying, the client MUST verify that the target endpoint belongs to the same authorized agent_id through the manifest, that the redirected endpoint is permitted by local policy, and that the token audience remains valid. Redirect chains MUST be limited to three hops. The new endpoint MUST preserve idempotency using the original call_leg_id and request_id. ASP does not put an agent: URI in the HTTP Location header. An implementation that recognizes another identity URI scheme MAY provide a separate identity-to-HTTPS mapping, but that mapping is not part of the core ASP protocol. 8. Agent Detail Records and Usage Metering 8.1. ADR Data Model An ADR MUST represent one call leg and MUST be generated when that leg completes, terminates, or is canceled, including when its billable amount is zero. An executor MAY also generate an ADR with outcome NOT_STARTED for a leg it never started, under the conditions in Section 5.3. Its required fields are: * adr_version: string "1". * adr_id: UUID version 4 unique within the ACR. * transaction_id, call_leg_id, parent_leg_id: identifiers matching the authorization; parent_leg_id is null for a root leg. Saurabh Expires 31 May 2027 [Page 22] Internet-Draft Agent Settlement Protocol November 2026 * originating_agent_id: the agent that invoked this leg. * executing_agent_id: the agent that performed the leg. * funding_domain: the administrative account that originally funded the transaction. The executor MUST copy this value from the asp claims of its validated authorization token (Section 6.2). The ACR MUST reject, with ASP_ADR_INVALID, an ADR whose funding_domain differs from the funding domain it recorded for the transaction. * acr_issuer: trusted ACR HTTPS issuer. * start_time and end_time: RFC 3339 UTC timestamps; end_time MUST NOT precede start_time. * outcome: COMPLETED, TERMINATED, CANCELED, or NOT_STARTED. * capability and tariff_sha256: values bound by authorization. * currency: the tariff currency. * metrics: nonnegative input_tokens and output_tokens integers, an array of tool_invocations with tool_name and count, and wall_clock_latency_ms. * charged_micro: nonnegative decimal integer string representing the calculated local charge. * token_jti: the authorization token's jti. * evidence_sha256: OPTIONAL lowercase hexadecimal digest of separately retained execution evidence; absence MUST NOT be interpreted as independent verification. Input and output token counts MUST be measured with the provider's declared meter definition. All JSON integer metrics MUST fall between zero and 9007199254740991 inclusive. For this version, the executor is the measurement source; the ADR's signature proves its origin and integrity, not that its measurements are correct. Consumers MUST distinguish executor assertions from independently verified observations. Saurabh Expires 31 May 2027 [Page 23] Internet-Draft Agent Settlement Protocol November 2026 8.2. Exact Charge Calculation All monetary values in protocol messages MUST use decimal integer strings expressing micro-units; JSON floating-point numbers MUST NOT be used for monetary values. One major currency unit equals 1000000 micro-units. A tariff declares nonnegative micro-units per thousand input tokens, per thousand output tokens, and per named tool invocation. The local charge for one leg MUST be calculated as: input_fee = CEIL(input_tokens * input_rate_per_1k / 1000) output_fee = CEIL(output_tokens * output_rate_per_1k / 1000) tool_fee = SUM(count(tool) * rate(tool)) charged_micro = input_fee + output_fee + tool_fee Here CEIL means rounding up to the next whole micro-unit. Calculations MUST use exact integer arithmetic and MUST detect integer overflow. Tools not named in the bound tariff MUST NOT be billed unless a separate tariff has been authorized for the same leg before invocation. Wall-clock latency is recorded for auditing and MUST NOT be billed by this version unless a future tariff extension explicitly defines a time-based fee. A charge MUST NOT exceed the amount available to the leg under Section 6.4, which is never more than the signed leg maximum. The ACR MUST recalculate charged_micro from the accepted tariff and metrics before accepting the record. 8.3. Signature Format The executor MUST produce an ADR envelope with members adr and signature. The adr object MUST omit any signature field. To sign, the executor MUST canonicalize the adr object according to [RFC8785], UTF-8 encode the result, and produce a compact JWS [RFC7515] with the canonical bytes as its payload, alg=ES256, typ=asp-adr+jws, and a trusted kid identifying its registered signing key. The signature member is that complete compact JWS string. A verifier MUST decode the JWS payload and compare its bytes with the RFC 8785 canonical serialization of the received adr object before accepting it. A verifier MUST reject an ADR JWS whose typ does not equal application/ asp-adr+jws under the comparison rule of Section 6.2. The ACR MUST verify the executor's key ownership, signature, authorization binding, pricing digest, measurements, budget, and uniqueness. It MUST reject a second ADR with the same call_leg_id but a different payload digest, unless the second is an explicit adjustment record as defined in Section 9.3. It MUST NOT allow an executor-provided x5c or jwk header to establish its signing trust. Saurabh Expires 31 May 2027 [Page 24] Internet-Draft Agent Settlement Protocol November 2026 8.4. Example ADR The following example illustrates the ADR object without a valid JWS signature. Its tariff digest, charge, and evidence fields are illustrative only; an operational submission MUST contain verified values. =============== NOTE: '\' line wrapping per RFC 8792 ================ { "adr_version": "1", "adr_id": "f17f71e2-82e6-49ce-81a7-256e4f771cb9", "transaction_id": "8d3a3bda-e895-46f0-af0a-fb48a991cd83", "call_leg_id": "2f3c8bc6-36e7-4b35-912b-4d134cf6c80a", "parent_leg_id": null, "originating_agent_id": "https://origin.example/agents/caller", "executing_agent_id":\ "https://analytics.example/agents/data-processor", "funding_domain": "origin.example", "acr_issuer": "https://acr.example", "start_time": "2026-11-27T12:00:00Z", "end_time": "2026-11-27T12:00:03Z", "outcome": "COMPLETED", "capability": "data_transform", "tariff_sha256": "8ed5e79c97413fcc1f2279aaaea3fe9bd7c4709fccff\ 1257fdaa684690f469a3", "currency": "USD", "metrics": { "input_tokens": 1420, "output_tokens": 850, "tool_invocations": [ {"tool_name": "database_lookup", "count": 2} ], "wall_clock_latency_ms": 3000 }, "charged_micro": "14764", "token_jti": "550e8400-e29b-41d4-a716-446655440000" } Under the tariff in Section 4.3, input_fee is CEIL(1420 * 1200 / 1000) = 1704 micro-units; output_fee is CEIL(850 * 3600 / 1000) = 3060; two database lookups cost 10000. The resulting charged_micro is 14764. ACR validators MUST reject an ADR whose charged amount does not match their independently recomputed result. Saurabh Expires 31 May 2027 [Page 25] Internet-Draft Agent Settlement Protocol November 2026 8.5. ADR Submission and Receipts The executor sends asp.submitADR to the ACR with asp_version, the ADR envelope, and the submitting agent's authenticated certificate identity. On success, the ACR returns an acceptance receipt containing adr_id, canonical ADR SHA-256 digest, accepted charge, reservation_id, settlement_window_id, and a signed UTC acceptance timestamp. The ACR MUST sign the canonical receipt object using the same JWS mechanism as Section 8.3 with typ=asp-receipt+jws. A recipient MUST reject a receipt whose typ does not equal application/ asp-receipt+jws under the comparison rule of Section 6.2. Receipts MUST be idempotent for identical ADRs. An executor MUST persist the ADR until an ACR receipt is durably stored. If the ACR is unavailable, the executor SHOULD retry with bounded exponential backoff and MUST NOT create a new billable leg as a consequence of retrying submission. A delay or failure in obtaining a receipt MUST NOT delay or withhold the task's output (Section 7.1). This document does not mandate retention of raw prompts, private model weights, or tool results in the ADR. 9. Clearing, Settlement and Reconciliation 9.1. Funding and Obligations Each transaction has one funding_domain and one governing ACR. The funding domain's balance is reserved for the maximum possible consumption across all descendant legs. Each accepted ADR credits the executing agent's registered provider domain and debits the funding domain for the charged amount. Transit agents receive only their own independently metered local fees; fees for child work are not charged twice. The ACR MUST maintain immutable ledger entries linking ADR digest, charge, funding account, provider account, currency, and settlement window. It MUST distinguish an accepted billable ADR from an actual payment confirmation. An ADR or ACR receipt is evidence of a recorded obligation, not evidence that money moved or that the requested service was useful. 9.2. Settlement Windows and Netting An ACR MUST identify each settlement window by a stable identifier, inclusive UTC start time, exclusive UTC end time, and currency. No window may mix currencies. Let G(A,B,C,T) be the sum of accepted, non-reversed charges in currency C during window T funded by domain A and provided by domain B. Saurabh Expires 31 May 2027 [Page 26] Internet-Draft Agent Settlement Protocol November 2026 Net(A,B,C,T) = G(A,B,C,T) - G(B,A,C,T) A positive net is the amount A owes B; a negative net is the amount B owes A. ACR service fees MUST be recorded as separate obligations to the ACR and MUST NOT be silently subtracted from either direction of provider gross amounts. All netting uses exact integer micro-unit arithmetic. ACRs MUST publish the calculation inputs and signed settlement summaries to authorized participants and MUST allow participants to verify that each ADR appears at most once in a settlement window. The use of bank transfers, card settlement, stablecoins, credit lines, and exchange-rate conversion is out of scope. Deployments MUST arrange the legal and operational settlement method separately. ACRs MUST NOT claim that a provider has been paid until payment completion is evidenced independently of this protocol. 9.3. Adjustments and Disputes An accepted ADR MUST NOT be modified in place. Corrections MUST be a new signed adjustment record citing the original adr_id and ADR SHA-256 digest, stating a reason code, and carrying a signed decimal amount_micro with an explicit credit or debit direction. The ACR MUST verify that adjustments cannot cause unauthorized net charges beyond the original bound or previously authorized dispute resolution. An adjustment MUST be applied exactly once and included in the settlement window where the ACR accepts it. Clients and providers MUST be able to retrieve their own ADRs, receipts, adjustment references, and settlement summaries. The evidence and dispute policy, retention period, and adjudication process MUST be agreed by the participants before funds are reserved. This document intentionally does not specify a legal arbitration service. 10. Errors and Recovery ASP uses the implementation-defined JSON-RPC server-error range -32099 through -32000 within the ASP application profile only. These codes are not a global allocation of that range. For ASP method responses, the following meanings are mandatory: * -32001: ASP_AUTHORIZATION_FAILED: invalid issuer, audience, expiry, typ, certificate binding, or absent authorization. * -32002: ASP_BUDGET_EXCEEDED: insufficient reservation or attempted charge above the leg's available amount. Saurabh Expires 31 May 2027 [Page 27] Internet-Draft Agent Settlement Protocol November 2026 * -32003: ASP_CAPABILITY_UNSUPPORTED: capability absent from the authorized manifest. * -32004: ASP_ACR_UNAVAILABLE: required ACR operation cannot currently complete. * -32005: ASP_MAX_HOPS_EXCEEDED: no delegation depth remains. * -32006: ASP_ADR_INVALID: invalid accounting record, tariff, signature, or charge. * -32007: ASP_POLICY_DENIED: local policy forbids an action or destination. * -32008: ASP_IDEMPOTENCY_CONFLICT: a request conflicts with the task or parameters already recorded for the same leg. * -32009: ASP_RATE_LIMITED: execution or polling rate limit exceeded. * -32010: ASP_TASK_NOT_FOUND: unknown, expired, or inaccessible task identifier. This error is not evidence that a leg was never executed (Section 5.3). * -32011: ASP_LEG_CLOSED: the leg's reservation is closed, so no new execute token can be issued. The error data contains the adr_id and outcome of the ADR that closed the leg. The error data object SHOULD contain retryable (boolean), request_id when available, and an opaque diagnostic_id. It MUST NOT expose secrets, certificates, prompt content, internal account balances, or signing material. Errors that may be retried MUST NOT cause a second charge when the same request identifiers are reused. JSON-RPC standard error codes -32700 and -32600 through -32603 retain their standard meanings. 11. Security Considerations 11.1. Threat Model ASP assumes that an agent, a domain, an executor, or an ACR may be faulty or malicious. Threats include unauthorized execution, stolen credentials, false usage reports, excessive delegation, replay and double billing, denial of service, malicious manifests, DNS redirection, arbitrary URL fetching, signer-key substitution, and disclosure of task inputs or financial relationships. Saurabh Expires 31 May 2027 [Page 28] Internet-Draft Agent Settlement Protocol November 2026 Mutual TLS and certificate-bound JWTs reduce credential replay at unrelated endpoints, but neither proves that execution results are correct. Operators MUST separately assess the trustworthiness of software agents, model outputs, and the ACR's measurement and credit decisions. 11.2. Authorization and Replay Resistance Recipients MUST check JWT signature, typ, algorithm, issuer, audience, time bounds, jti, certificate binding, capability, tariff, transaction, leg, and delegated path before accepting work. JWTs MUST NOT be accepted with alg=none or symmetric algorithms. Leg tokens, ADRs, and receipts carry distinct typ values so that a signed object of one kind cannot be substituted for another, even when the same key could have signed both. ACRs MUST bind issuance to authenticated subjects and MUST reject attempts to allocate credit not owned by the funder. Task idempotency MUST be atomic and durable across executor replicas. Multiple concurrent requests with the same identifiers MUST NOT start parallel billable work. Revoked issuer and executor keys MUST be rejected for new authorizations. Retroactive disputes regarding work performed before a key revocation are governed by the ACR's incident policy. 11.3. Cycles, Resource Exhaustion and SSRF ACRs MUST enforce signed hops_remaining and visited arrays when issuing delegation tokens. Executors MUST separately enforce bounded local depth, concurrency and time. Clients and servers MUST restrict outbound HTTPS requests to approved address classes and deployment policy, and MUST NOT connect to loopback, link-local, or private network endpoints based solely on untrusted manifest or redirect content. Manifest host names and endpoints MUST be re-resolved safely and checked against destination policy at connection time to reduce DNS rebinding attacks. An executor MUST NOT transfer a token to a destination whose audience or certificate binding differs from the authorized target. Saurabh Expires 31 May 2027 [Page 29] Internet-Draft Agent Settlement Protocol November 2026 11.4. Audit and Metering Fraud An ADR signature detects tampering after the executor signs; it cannot independently prove accurate model metering. An ACR SHOULD compare reported metrics with independently available evidence, platform telemetry, or sampling audits where possible. Participants SHOULD retain cryptographic digests and non-sensitive evidence sufficient for charge disputes while avoiding unnecessary storage of personally sensitive task data. 11.5. Key Compromise and Federation Failure An ACR compromise can authorize unauthorized spend and accept false records. Operators MUST provide incident-response procedures, key rollover, account freezes, issuer revocation, credit exposure limits, backup reconciliation and durable audit logs. Deployments SHOULD use separate authorization-signing and settlement-signing keys. Clients MUST reject untrusted ACR issuer substitution even if presented in an otherwise valid agent manifest. 12. Privacy Considerations Agent identities, call graphs, timing information, tool invocation names, and transaction prices may reveal confidential organizational relationships. ASP implementations MUST minimize personal data in ADRs, MUST protect ADRs and settlement summaries in transit and at rest, and MUST enforce access control so participants receive only records they are entitled to inspect. Implementations SHOULD avoid storing raw user prompts, personal messages, and model output in the clearinghouse unless separately justified and authorized. Service manifests may be public, but ACR membership, credit balances, customer-specific prices, and private capabilities SHOULD NOT be published in an unauthenticated manifest. Deployment policies MUST establish retention, deletion, lawful disclosure, and data localization rules. An ADR digest alone is not proof that its underlying data is public. 13. IANA Considerations 13.1. Well-Known URI Registration This document requests registration of the following well-known URI suffix under [RFC8615]: * URI suffix: asp.json * Change controller: IETF Saurabh Expires 31 May 2027 [Page 30] Internet-Draft Agent Settlement Protocol November 2026 * Specification document: this document, Section 4.2 * Status: permanent * Related information: HTTPS JSON service manifest for ASP version 1 13.2. JSON Web Token Claims Registration This document requests registration of the following claim in the "JSON Web Token Claims" registry established by [RFC7519]: * Claim Name: asp * Claim Description: Agent Settlement Protocol leg authorization * Change Controller: IETF * Specification Document(s): Section 6.2 of this document 13.3. Registrations Not Requested This document does not request registration of the agent URI scheme, any DNS SVCB Service Parameter Keys, or any HTTP field names. It uses HTTPS identifiers and standard HTTPS DNS mechanisms. It does not allocate JSON-RPC error codes in an IANA registry. The typ values asp-leg+jwt, asp-adr+jws, and asp-receipt+jws identify object types inside JWS protected headers for explicit typing ([RFC8725], Section 3.11). ASP does not exchange these objects as standalone HTTP message content, and this version does not request media type registrations for them. Whether registration is nevertheless needed is recorded as an open issue in Appendix D. 14. Operational and Implementation Considerations 14.1. Interoperability Test Cases Two independent implementations SHOULD demonstrate at least these outcomes before this document advances for Standards Track approval: 1. Manifest discovery and exact agent_id selection across different domains. 2. Successful root authorization and certificate-bound execution. Saurabh Expires 31 May 2027 [Page 31] Internet-Draft Agent Settlement Protocol November 2026 3. A repeated or re-authorized invocation of the same leg yielding no second task, reservation, or charge, including a retry after the original token expired and a lookup after the executor's retention period ended. 4. Concurrent child and grandchild reservations never exceeding their own parent's available amount, including when the parent has already accrued local charges. 5. Loop rejection and hop-limit exhaustion. 6. Asynchronous acceptance, polling, cancellation, and terminal result retention. 7. Result retrieval while the ACR is unavailable, with settlement_status PENDING until a receipt is obtained. 8. Valid ADR submission and rejection of a tampered signature or incorrect charge. 9. Signed ACR receipt generation and deterministic pairwise net settlement. 10. Correct handling of key rotation, ACR unavailability, and currency mismatch. No independently verified implementation or interoperation results are claimed in this version. This section is informational and should be updated with evidence before the document is sent for publication review. 14.2. Version Negotiation and Extensibility ASP version 1 requires asp_version="1" in the manifest and every method's params. A recipient that does not support the requested version MUST fail with ASP_POLICY_DENIED and an error description identifying its supported major versions. A deployment MUST NOT silently apply version 1 billing or authorization semantics to an unrecognized version. An extension MUST specify the affected method, its new members, error behavior, security implications, and whether unaware implementations can safely ignore it. Fields required for spend, signature, certificate binding or state correctness MUST NOT be introduced as optional ignorable extensions. 15. References Saurabh Expires 31 May 2027 [Page 32] Internet-Draft Agent Settlement Protocol November 2026 15.1. Normative References [ISO4217] International Organization for Standardization, "Codes for the representation of currencies", ISO 4217:2015, 2015, . [JSON-RPC] JSON-RPC Working Group, "JSON-RPC 2.0 Specification", January 2013, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, . [RFC3339] Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, July 2002, . [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, January 2005, . [RFC7515] Jones, M., Bradley, J., and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, May 2015, . [RFC7517] Jones, M., "JSON Web Key (JWK)", RFC 7517, May 2015, . [RFC7518] Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, May 2015, . [RFC7519] Jones, M., Bradley, J., and N. Sakimura, "JSON Web Token (JWT)", RFC 7519, May 2015, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . [RFC8615] Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, May 2019, . [RFC8705] Campbell, B., Bradley, J., Sakimura, N., and T. Lodderstedt, "OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens", RFC 8705, February 2020, . Saurabh Expires 31 May 2027 [Page 33] Internet-Draft Agent Settlement Protocol November 2026 [RFC8725] Sheffer, Y., Hardt, D., and M. Jones, "JSON Web Token Best Current Practices", BCP 225, RFC 8725, February 2020, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, June 2020, . [RFC9110] Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, June 2022, . [RFC9111] Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Caching", STD 98, RFC 9111, June 2022, . [RFC9460] Schwartz, B., Bishop, M., and E. Nygren, "Service Binding and Parameter Specification via the DNS (SVCB and HTTPS Resource Records)", RFC 9460, November 2023, . [RFC9562] Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, May 2024, . [RFC9846] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 9846, July 2026, . 15.2. Informative References [A2A] Linux Foundation A2A Project, "Agent2Agent (A2A) Protocol Specification", 2026, . [I-D.agent-settlement] Mih, S., "Two-Party Settlement Records for Agent Payments", Work in Progress, Internet-Draft, draft-mih- agent-settlement-records-01, 24 November 2026, . [I-D.agent-uri] Narvaneni, Y. and S. P. Ravi, "The agent URI Scheme and Verifiable Agent Identity", Work in Progress, Internet- Draft, draft-narvaneni-agent-uri-04, 20 October 2026, . Saurabh Expires 31 May 2027 [Page 34] Internet-Draft Agent Settlement Protocol November 2026 [I-D.usage-accounting] Zhang, L., Qiao, W., Zhang, W., Yang, H., and Y. Li, "Verifiable Usage Accounting for Internet of Agents", Work in Progress, Internet-Draft, draft-zhang-ioa-usage- accounting-01, 2 November 2026, . [RFC8792] Watsen, K., Auerswald, E., Farrel, A., and Q. Wu, "Handling Long Lines in Content of Internet-Drafts and RFCs", RFC 8792, June 2020, . Appendix A. Illustrative Message Exchange This example uses placeholder JWT strings and does not constitute an executable cryptographic test vector. Every production request MUST contain a valid signed JWT and a matching mutual TLS client certificate. A.1. Authorize One Execution Leg =============== NOTE: '\' line wrapping per RFC 8792 ================ { "jsonrpc": "2.0", "id": "authorize-1", "method": "asp.authorize", "params": { "asp_version": "1", "transaction_id": "8d3a3bda-e895-46f0-af0a-fb48a991cd83", "call_leg_id": "2f3c8bc6-36e7-4b35-912b-4d134cf6c80a", "caller_agent_id": "https://origin.example/agents/caller", "target_agent_id":\ "https://analytics.example/agents/data-processor", "capability": "data_transform", "currency": "USD", "max_spend_micro": "2500000", "tariff_sha256": "8ed5e79c97413fcc1f2279aaaea3fe9bd7c4709fccff\ 1257fdaa684690f469a3", "hops_remaining": 3, "purpose": "execute" } } An ACR response has the following shape: Saurabh Expires 31 May 2027 [Page 35] Internet-Draft Agent Settlement Protocol November 2026 { "jsonrpc": "2.0", "id": "authorize-1", "result": { "jwt_asp": "SIGNED_JWT_COMPACT_PLACEHOLDER", "reservation_id": "ac705514-5a65-4d4d-a46a-34a35f917005", "token_expires_at": "2026-11-27T12:05:00Z" } } A.2. Execute and Poll { "jsonrpc": "2.0", "id": "execute-1", "method": "asp.executeTask", "params": { "asp_version": "1", "transaction_id": "8d3a3bda-e895-46f0-af0a-fb48a991cd83", "call_leg_id": "2f3c8bc6-36e7-4b35-912b-4d134cf6c80a", "request_id": "4fa19197-01df-4ee3-9285-15cba1b26a27", "jwt_asp": "SIGNED_JWT_COMPACT_PLACEHOLDER", "capability": "data_transform", "input_data": {"text": "Summarize the dataset."}, "constraints": { "deadline": "2026-11-27T12:15:00Z", "max_spend_micro": "2500000" } } } The executor can return this asynchronous acceptance result: { "jsonrpc": "2.0", "id": "execute-1", "result": { "task_id": "7ff728df-43d3-4b58-812b-4aec087d40fa", "status": "ACCEPTED", "poll_after_seconds": 5 } } A later asp.getTask response for the completed task, returned before the ACR has acknowledged the ADR: Saurabh Expires 31 May 2027 [Page 36] Internet-Draft Agent Settlement Protocol November 2026 { "jsonrpc": "2.0", "id": "poll-2", "result": { "task_id": "7ff728df-43d3-4b58-812b-4aec087d40fa", "status": "COMPLETED", "settlement_status": "PENDING", "updated_at": "2026-11-27T12:00:03Z", "output_data": {"summary": "12 rows; 2 duplicate keys removed."} } } A.3. Completion and Accounting After processing, the executor makes the COMPLETED result available to the original caller immediately, with settlement_status PENDING. It calculates its charge using the authorized tariff, signs an ADR, and submits it through asp.submitADR. The ACR verifies the ADR and returns a signed receipt, after which the executor reports settlement_status RECORDED. If the ACR is unavailable, the result remains available and settlement_status remains PENDING until a receipt is obtained. Appendix B. Changes Relative to the Unsubmitted ASP Framework Draft This appendix is informational and intended to be removed by the RFC Editor if the document is published. * Preserved the original ACR, recursive delegation, ADR, and net settlement architecture. * Replaced ASP's proposed independent agent: URI registration with mandatory HTTPS identifiers and an ASP-specific service manifest, avoiding conflict with active agent identity proposals. * Added optional agent: identity aliases that explicitly reference the syntax and AID resolution procedures of draft-narvaneni-agent- uri-04, while retaining independent HTTPS execution and settlement semantics. * Replaced custom DNS HTTPS/SVCB parameters with unmodified RFC 9460 HTTPS service optimization. * Defined one ACR per transaction and configured issuer trust instead of an undefined global IANA root. * Specified exact mandatory JSON-RPC methods, idempotency, task lifecycle, control tokens, and redirect handling. Saurabh Expires 31 May 2027 [Page 37] Internet-Draft Agent Settlement Protocol November 2026 * Defined certificate-bound short-lived authorization and atomic child budget reservations. * Specified integer micro-unit rates, deterministic charge calculation, canonical signed ADRs, ACR receipts, and auditable settlement windows. * Defined per-leg budget enforcement for multi-level delegation, recovery from expired tokens through ACR re-authorization with signed NOT_STARTED records as the only evidence of non-execution, and separation of task completion from settlement acknowledgment. * Added participant enrollment requirements, a signed funding_domain claim in every leg token, and explicit typing for leg tokens, ADRs, and receipts. * Expanded security, privacy, IANA, conformance, and implementation considerations, and added an open-issues appendix. Appendix C. JSON Schema Guidance These schemas are informative, machine-checkable structural aids to implementation. All normative cross-field and security requirements in the numbered sections remain mandatory even when a value satisfies its structural schema. JSON Schema format annotations alone do not provide security validation. C.1. Manifest Schema { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ASP Service Manifest v1", "type": "object", "additionalProperties": false, "required": ["asp_version", "provider", "agents"], "properties": { "asp_version": {"const": "1"}, "provider": {"type": "string", "format": "uri"}, "acr_issuers": { "type": "array", "uniqueItems": true, "items": {"type": "string", "format": "uri"} }, "extensions": {"type": "object"}, "agents": { "type": "array", "minItems": 1, "items": { Saurabh Expires 31 May 2027 [Page 38] Internet-Draft Agent Settlement Protocol November 2026 "type": "object", "additionalProperties": false, "required": [ "agent_id", "rpc_endpoint", "capabilities", "capability_schemas", "tariff" ], "properties": { "agent_id": {"type": "string", "format": "uri"}, "agent_uri": { "type": "string", "format": "uri", "pattern": "^agent://" }, "rpc_endpoint": {"type": "string", "format": "uri"}, "capabilities": { "type": "array", "uniqueItems": true, "items": {"type": "string", "pattern": "^[a-z0-9._-]+$"} }, "capability_schemas": { "type": "object", "propertyNames": {"pattern": "^[a-z0-9._-]+$"}, "additionalProperties": { "type": "object", "additionalProperties": false, "required": ["input_schema", "output_schema"], "properties": { "input_schema": {"type": "object"}, "output_schema": {"type": "object"} } } }, "tariff": { "type": "object", "additionalProperties": false, "required": [ "currency", "input_rate_per_1k", "output_rate_per_1k", "tool_rates" ], "properties": { "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "input_rate_per_1k": {"$ref": "#/$defs/micro"}, "output_rate_per_1k": {"$ref": "#/$defs/micro"}, "tool_rates": { "type": "object", "propertyNames": {"pattern": "^[a-z0-9._-]+$"}, "additionalProperties": {"$ref": "#/$defs/micro"} } Saurabh Expires 31 May 2027 [Page 39] Internet-Draft Agent Settlement Protocol November 2026 } } } } } }, "$defs": { "micro": {"type": "string", "pattern": "^(0|[1-9][0-9]*)$"} } } C.2. Execute-Task Parameters Schema { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ASP ExecuteTask Params v1", "type": "object", "additionalProperties": false, "required": [ "asp_version", "transaction_id", "call_leg_id", "request_id", "jwt_asp", "capability", "input_data", "constraints" ], "properties": { "asp_version": {"const": "1"}, "transaction_id": {"type": "string", "format": "uuid"}, "call_leg_id": {"type": "string", "format": "uuid"}, "request_id": {"type": "string", "format": "uuid"}, "jwt_asp": {"type": "string", "minLength": 1}, "capability": {"type": "string", "pattern": "^[a-z0-9._-]+$"}, "input_data": {}, "constraints": { "type": "object", "additionalProperties": false, "required": ["deadline", "max_spend_micro"], "properties": { "deadline": {"type": "string", "format": "date-time"}, "max_spend_micro": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$" } } } } } C.3. Agent Detail Record Schema Saurabh Expires 31 May 2027 [Page 40] Internet-Draft Agent Settlement Protocol November 2026 { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ASP ADR v1", "type": "object", "additionalProperties": false, "required": [ "adr_version", "adr_id", "transaction_id", "call_leg_id", "parent_leg_id", "originating_agent_id", "executing_agent_id", "funding_domain", "acr_issuer", "start_time", "end_time", "outcome", "capability", "tariff_sha256", "currency", "metrics", "charged_micro", "token_jti" ], "properties": { "adr_version": {"const": "1"}, "adr_id": {"type": "string", "format": "uuid"}, "transaction_id": {"type": "string", "format": "uuid"}, "call_leg_id": {"type": "string", "format": "uuid"}, "parent_leg_id": {"oneOf": [ {"type": "null"}, {"type": "string", "format": "uuid"} ]}, "originating_agent_id": {"type": "string", "format": "uri"}, "executing_agent_id": {"type": "string", "format": "uri"}, "funding_domain": {"type": "string", "minLength": 1}, "acr_issuer": {"type": "string", "format": "uri"}, "start_time": {"type": "string", "format": "date-time"}, "end_time": {"type": "string", "format": "date-time"}, "outcome": { "enum": ["COMPLETED", "TERMINATED", "CANCELED", "NOT_STARTED"] }, "capability": {"type": "string", "pattern": "^[a-z0-9._-]+$"}, "tariff_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "currency": {"type": "string", "pattern": "^[A-Z]{3}$"}, "metrics": { "type": "object", "additionalProperties": false, "required": [ "input_tokens", "output_tokens", "tool_invocations", "wall_clock_latency_ms" ], "properties": { "input_tokens": {"$ref": "#/$defs/meter"}, "output_tokens": {"$ref": "#/$defs/meter"}, "wall_clock_latency_ms": {"$ref": "#/$defs/meter"}, "tool_invocations": { "type": "array", "items": { "type": "object", "additionalProperties": false, Saurabh Expires 31 May 2027 [Page 41] Internet-Draft Agent Settlement Protocol November 2026 "required": ["tool_name", "count"], "properties": { "tool_name": { "type": "string", "pattern": "^[a-z0-9._-]+$" }, "count": {"$ref": "#/$defs/meter"} } } } } }, "charged_micro": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$" }, "token_jti": {"type": "string", "minLength": 1}, "evidence_sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" } }, "$defs": { "meter": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } } } Appendix D. Open Issues This appendix lists questions on which the author seeks community input. It is to be removed before publication. * Publication path: The intended status is Standards Track. Until implementation and interoperability evidence exists, publication first as an Experimental RFC may be more appropriate. * Media types: Section 13.3 does not register media types for asp- leg+jwt, asp-adr+jws, and asp-receipt+jws. Other specifications that use explicit typing have registered such media types; reviewers' views on whether ASP needs them are requested. * Identity dependency: Section 4.5 tracks draft-narvaneni-agent-uri- 04, which is still changing. * Enrollment: Version 1 defines enrollment records (Section 3.1) but not an enrollment protocol. ACRs with many providers may need an interoperable enrollment method. Saurabh Expires 31 May 2027 [Page 42] Internet-Draft Agent Settlement Protocol November 2026 * Reservation lifetime: How long an open reservation may remain unused before release, and how release interacts with retries (Section 5.3), is not yet specified. * JSON canonicalization: [RFC8785] is an Informational RFC published on the Independent Submission stream and is referenced normatively, which requires a downward reference for a Standards Track document. * JWT claim name: The short claim name "asp" may draw expert-review comments; a longer, collision-resistant name is an alternative. * Usage verification: An ADR's signature proves its origin, not the accuracy of its metrics (Sections 8.1 and 11.4). An executor can over-report token or tool counts up to the leg's available amount. Candidate mitigations include fixed-price quotes that the caller accepts before execution, metering by an ACR that relays the traffic, and a caller dispute window. Input on which of these, if any, belongs in the protocol is requested. * Mid-task extension: Section 7.3 requires a new authorization for any extension that increases possible spend, but ASP does not define how to raise a running leg's budget or extend its deadline. A caller must currently let the leg end and authorize a new one, and partial progress at the executor may be lost. A future version may need an extension exchange among the caller, the ACR, and the executor. Author's Address Pratham Saurabh Independent United States of America Email: saurabhpratham@gmail.com Saurabh Expires 31 May 2027 [Page 43]