Individual Submission ZY. Zeng Internet-Draft Independent Intended status: Informational 21 November 2026 Expires: 25 May 2027 Consent Receipt Binding for Task-Scoped Authorization draft-zeng-osap-consent-receipts-00 Abstract This document defines a signed consent receipt for task-scoped authorization between local agents. A receipt records a user's decision to allow or deny a described action, binds that decision to a task, an agent, an audience, an action set, and a resource set, and can be verified offline. The document also defines the consent request, the reservation ordering that avoids a circular dependency between a receipt and a capability token, the audit events that accompany consent and side effects, and an informative mapping to ISO/IEC 27560. It does not define a user interface, a transport, or a capability token format. 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 25 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights Zeng Expires 25 May 2027 [Page 1] Internet-Draft OSAP Consent Receipts November 2026 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. Scope . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2. Relation to Other Work . . . . . . . . . . . . . . . . . 4 1.3. Conventions and Terminology . . . . . . . . . . . . . . . 4 2. Consent Model . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1. Risk Classes . . . . . . . . . . . . . . . . . . . . . . 5 2.2. Task Scope . . . . . . . . . . . . . . . . . . . . . . . 6 2.3. Consent Fatigue . . . . . . . . . . . . . . . . . . . . . 6 3. Consent Request . . . . . . . . . . . . . . . . . . . . . . . 6 3.1. Request Object . . . . . . . . . . . . . . . . . . . . . 6 3.2. Intent Preview . . . . . . . . . . . . . . . . . . . . . 8 3.3. Options . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.4. Example Request . . . . . . . . . . . . . . . . . . . . . 8 4. Decision and Issuance Ordering . . . . . . . . . . . . . . . 9 4.1. Grant . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.2. Deny . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.3. Reservation Protocol . . . . . . . . . . . . . . . . . . 10 4.4. Revocation . . . . . . . . . . . . . . . . . . . . . . . 11 5. Consent Receipt . . . . . . . . . . . . . . . . . . . . . . . 11 5.1. Receipt Members . . . . . . . . . . . . . . . . . . . . . 11 5.2. Example Receipt . . . . . . . . . . . . . . . . . . . . . 12 5.3. Canonicalization and Proof . . . . . . . . . . . . . . . 13 5.4. Validation Order . . . . . . . . . . . . . . . . . . . . 14 5.5. Expiry and Scope . . . . . . . . . . . . . . . . . . . . 15 5.6. Offline Verification . . . . . . . . . . . . . . . . . . 15 6. Binding to Capability Tokens . . . . . . . . . . . . . . . . 15 7. Audit and Trace . . . . . . . . . . . . . . . . . . . . . . . 15 7.1. Event Shape . . . . . . . . . . . . . . . . . . . . . . . 16 7.2. Required Event Types . . . . . . . . . . . . . . . . . . 18 7.3. Two-Phase Effects . . . . . . . . . . . . . . . . . . . . 18 7.4. Hash Chain . . . . . . . . . . . . . . . . . . . . . . . 19 7.5. Trace and Redaction . . . . . . . . . . . . . . . . . . . 19 8. Informative Mapping to ISO/IEC 27560 . . . . . . . . . . . . 19 9. Security Considerations . . . . . . . . . . . . . . . . . . . 20 9.1. Forged Receipts . . . . . . . . . . . . . . . . . . . . . 21 9.2. Consent Phishing and Misleading Requests . . . . . . . . 21 9.3. Replay . . . . . . . . . . . . . . . . . . . . . . . . . 21 9.4. Reservation and Activation Race . . . . . . . . . . . . . 21 9.5. Audit Integrity . . . . . . . . . . . . . . . . . . . . . 21 9.6. Revocation . . . . . . . . . . . . . . . . . . . . . . . 22 10. Privacy Considerations . . . . . . . . . . . . . . . . . . . 22 Zeng Expires 25 May 2027 [Page 2] Internet-Draft OSAP Consent Receipts November 2026 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 22 12. Normative References . . . . . . . . . . . . . . . . . . . . 22 13. Informative References . . . . . . . . . . . . . . . . . . . 23 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 23 1. Introduction Local agents can perform actions that leave the device, change shared state, or are difficult to reverse. A user needs a way to approve such an action for a specific task, with a clear description of who is acting, what will happen, which data will be used, and how long the approval lasts. The approval must be verifiable by an agent that did not observe the user interface, and it must not silently become a general permission for the agent. This document defines a consent receipt for that purpose. A Policy and Consent Service (PCS) constructs a consent request from a capability descriptor and from policy. The user, or an operating- system consent surface acting for the user, grants or denies the request. A grant produces a signed receipt. The receipt is bound to the task, the agent, the audience, the requested actions and resources, the risk class, and a validity window. A Capability Authority (CA) verifies the receipt before issuing the capability token that the agent will present to its audience. The receipt is not a general-purpose access token. It is an authorization artifact for one task-scoped decision. It can be audited, exported, and redacted, but it cannot be reused for another task or another audience. 1.1. Scope This document defines: * the structure of a consent request and its intent preview; * the structure of a consent receipt; * the signature and canonicalization rules for a receipt; * the ordering that lets a receipt reference a capability identifier before the capability is active; * the binding rules between a receipt and a capability token; * the audit events for consent, effects, and revocation; and * an informative mapping to ISO/IEC 27560. Zeng Expires 25 May 2027 [Page 3] Internet-Draft OSAP Consent Receipts November 2026 This document does not define a user-interface layout, a transport binding, a capability token format, a discovery protocol, or an audit storage engine. The capability token format is defined in a companion document. 1.2. Relation to Other Work ISO/IEC 27560 specifies a consent record information structure. It is useful for interoperability with privacy-management systems, but it is not an authorization protocol for local agents. This document defines a task-scoped authorization receipt and provides an informative mapping to the ISO structure in Section 8. The Kantara Initiative's consent receipt work [KANTARA] provides a human-readable and machine-readable record of a consent decision. This document shares the goal of a verifiable record but adds the binding to a local task, audience, capability identifier, and audit chain that multi-agent execution requires. OAuth 2.0 Rich Authorization Requests [RFC9396] describes structured authorization details. A consent receipt can be carried as an authorization detail in an OAuth deployment, but this document does not define an OAuth grant type. 1.3. Conventions and Terminology 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. This document uses the following terms: Agent: An addressable software component that requests or performs an action. An agent is identified by an agent URI. Audience: The agent that will perform the approved action. Capability Authority (CA): The component that issues and revokes capability tokens. It verifies a consent receipt before activating a token that needs one. Policy and Consent Service (PCS): The component that evaluates policy, computes the effective risk class, constructs consent requests, and records the user's decision. Consent request: A structured description of the action for which Zeng Expires 25 May 2027 [Page 4] Internet-Draft OSAP Consent Receipts November 2026 consent is sought. Consent receipt: A signed record of a grant or denial for one consent request. Reservation: An allocated but inactive capability identifier. A receipt can reference a reservation before the capability is issued. Task: A unit of work with an identifier, a root, and an optional parent. A receipt is bound to exactly one task. Risk class: One of L0 through L4. L3 and L4 actions require a receipt. 2. Consent Model 2.1. Risk Classes +=======+=============+====================+=======================+ | Class | Name | Example | Default consent | +=======+=============+====================+=======================+ | L0 | Public read | Public weather or | Automatic | | | | directory | | +-------+-------------+--------------------+-----------------------+ | L1 | Personal | Calendar, | First use or task- | | | read | contacts, notes | level | +-------+-------------+--------------------+-----------------------+ | L2 | Local write | Create a local | Automatic with | | | | draft | notification | +-------+-------------+--------------------+-----------------------+ | L3 | External | Send a message or | Per use, with batch | | | side effect | submit a form | or time limits | +-------+-------------+--------------------+-----------------------+ | L4 | High impact | Payment, deletion, | Strong confirmation | | | | public posting | and re-authentication | +-------+-------------+--------------------+-----------------------+ Table 1: Risk classes and default consent The capability descriptor declares a risk class. The PCS computes the effective class from the descriptor, the data labels, the target, and the context. The PCS MAY raise the class but MUST NOT lower it. A consent request MUST carry the effective class that the PCS used. Zeng Expires 25 May 2027 [Page 5] Internet-Draft OSAP Consent Receipts November 2026 2.2. Task Scope Every receipt is bound to one task identifier. A task-level grant may cover multiple uses within that task, but it MUST NOT extend to a sibling task, a child task, or a later task by implication. A child task that needs an L3 or L4 action needs a receipt whose task_id is the child task, or a receipt whose scope explicitly covers the child task and whose audience matches the child's audience. A batch grant MUST state its action set, resource set, task scope, and time window. A user interface that offers "allow for this task" MUST show the resulting scope before the decision is recorded. 2.3. Consent Fatigue Asking for every low-risk action causes users to approve without reading. This document therefore separates the default treatment by risk class, as shown in Section 2.1. L3 actions may use a bounded task-level grant, and L4 actions require a strong confirmation. A deployment SHOULD measure how often users deny or revoke grants; a high denial rate is evidence that the request text or the scope is not useful. 3. Consent Request A consent request is a message from the PCS to the user or to the operating-system consent surface. It describes one decision. The request is not itself an authorization; only a grant receipt is. 3.1. Request Object +==========================+==========+==========================+ | Member | Presence | Description | +==========================+==========+==========================+ | osap | MUST | Protocol version. The | | | | value is 0.1. | +--------------------------+----------+--------------------------+ | type | MUST | The string | | | | consent.request. | +--------------------------+----------+--------------------------+ | id | MUST | A unique message | | | | identifier. | +--------------------------+----------+--------------------------+ | from | MUST | The PCS agent URI. | +--------------------------+----------+--------------------------+ | to | MUST | The user principal URI. | +--------------------------+----------+--------------------------+ | body.schema | MUST | The value | Zeng Expires 25 May 2027 [Page 6] Internet-Draft OSAP Consent Receipts November 2026 | | | osap.consent.request/v1. | +--------------------------+----------+--------------------------+ | body.data.request_id | MUST | An opaque identifier for | | | | this request. It is | | | | distinct from the | | | | message identifier and | | | | is used by the decision. | +--------------------------+----------+--------------------------+ | body.data.task_id | MUST | The task to which the | | | | decision will be bound. | +--------------------------+----------+--------------------------+ | body.data.agent | MUST | The agent that will | | | | exercise the resulting | | | | capability. | +--------------------------+----------+--------------------------+ | body.data.audience | MUST | The agent that will | | | | perform the action. | +--------------------------+----------+--------------------------+ | body.data.actions | MUST | The action set for which | | | | consent is sought. | +--------------------------+----------+--------------------------+ | body.data.resources | MUST | The resource set for | | | | which consent is sought. | +--------------------------+----------+--------------------------+ | body.data.risk | MUST | The effective risk class | | | | computed by the PCS. | +--------------------------+----------+--------------------------+ | body.data.summary | MUST | A short human-readable | | | | description of the | | | | action. | +--------------------------+----------+--------------------------+ | body.data.intent_preview | MUST | The structured preview | | | | described in | | | | Section 3.2. | +--------------------------+----------+--------------------------+ | body.data.options | MUST | The offered decisions. | | | | This document defines | | | | allow_once, allow_task, | | | | and deny. | +--------------------------+----------+--------------------------+ | body.data.expires_at | SHOULD | An RFC 3339 [RFC3339] | | | | timestamp after which | | | | the request is no longer | | | | actionable. | +--------------------------+----------+--------------------------+ | ts | MUST | The request timestamp in | | | | RFC 3339 format | | | | [RFC3339]. | Zeng Expires 25 May 2027 [Page 7] Internet-Draft OSAP Consent Receipts November 2026 +--------------------------+----------+--------------------------+ Table 2: Consent request members 3.2. Intent Preview The intent preview makes the decision concrete. It contains: actor: A human-readable name of the agent that will act. what: A one-sentence description of the action. data: An array of data categories or opaque references that will be used. It SHOULD NOT contain raw personal data. cost: An object with optional money and external_calls members. ttl: An ISO 8601 duration describing the proposed validity. irreversible: A boolean indicating whether the action cannot be undone. The PCS MUST derive the preview from the capability descriptor and from policy, not only from text supplied by the requesting agent. If the agent supplies a summary, the PCS MUST treat it as untrusted input. 3.3. Options The options array tells the consent surface which decisions it may return: * allow_once grants a single use. The resulting receipt MUST have max_uses equal to one. * allow_task grants a bounded number of uses within the task. The receipt MUST carry a positive max_uses and an expiry. * deny records a refusal. A denial is terminal for the request. A consent surface MUST NOT return an option that the request did not offer. 3.4. Example Request Zeng Expires 25 May 2027 [Page 8] Internet-Draft OSAP Consent Receipts November 2026 { "osap": "0.1", "type": "consent.request", "id": "msg_03", "from": "agent://system/policy#0", "to": { "user": "user://local/example-user" }, "body": { "schema": "osap.consent.request/v1", "data": { "request_id": "creq_01J8Z3K4M5N6P7Q8R9S0T1V2W3", "task_id": "task_01J8Z3K4M5N6P7Q8R9S0T1V2W3", "agent": "agent://com.example.orchestrator/main#1a2b", "audience": "agent://com.example.messaging/agent#4d", "actions": ["messaging.send"], "resources": ["contact://directory/example-contact"], "risk": "L3", "summary": "Send one meeting summary message", "intent_preview": { "actor": "Orchestrator Agent", "what": "Send 1 message", "data": [ "meeting summary (reference)", "contact: example contact" ], "cost": { "money": 0, "external_calls": 1 }, "ttl": "PT10M", "irreversible": false }, "options": ["allow_once", "allow_task", "deny"], "expires_at": "2026-11-10T10:24:45Z" } }, "ts": "2026-11-10T10:14:45Z" } 4. Decision and Issuance Ordering 4.1. Grant A grant decision produces a receipt and, when the request is part of a capability issuance, the identifiers needed to activate the capability. The grant response MUST contain: * receipt_id: the identifier of the signed receipt; * cap_id: the reserved capability identifier that the receipt authorizes; Zeng Expires 25 May 2027 [Page 9] Internet-Draft OSAP Consent Receipts November 2026 * expires_at: the receipt expiry; and * constraints: the effective constraints, including max_uses. The receipt MUST bind the user, the agent, the task, the action set, the resource set, the audience, the risk class, and the validity window. A grant for allow_once MUST set max_uses to one. A grant MUST NOT have an expiry later than the request's expires_at when that member is present. 4.2. Deny A denial MUST produce a structured response with a reason code and, when available, one or more alternatives. A denial is terminal for the request. A denied request MUST NOT be silently retried with a broader scope. A new request requires a new identifier and, when the policy requires it, a new user decision. 4.3. Reservation Protocol A capability token that needs a receipt must carry consent_receipt_id, and a receipt must reference the cap_id that it authorizes. This creates a circular dependency. The following order breaks it: 1. The receiver, through the PCS, evaluates the action and decides that consent is required. 2. The CA reserves a cap_id. A reservation allocates an identifier but does not sign a token and does not make the capability usable. 3. The user or operating-system consent surface issues a receipt that references the reserved cap_id and the target audience. 4. The CA verifies the receipt, issues the capability token with consent_receipt_id set, and activates the token. 5. If the request is denied, expires, or is revoked before activation, the reserved cap_id MUST NOT become usable. An unactivated reservation MUST NOT pass any routing or authorization check. A reservation SHOULD expire on the same schedule as its consent request. Zeng Expires 25 May 2027 [Page 10] Internet-Draft OSAP Consent Receipts November 2026 4.4. Revocation Revoking a receipt MUST invalidate every capability token that references it, including descendants that inherited the receipt. A revocation MUST be recorded in the audit log and communicated to affected agents. Revocation is terminal for that receipt: a later decision requires a new request and a new receipt. A receiver MUST check receipt status before executing an L3 or L4 action. If the receiver cannot check status, it MUST deny the action. 5. Consent Receipt 5.1. Receipt Members +==============+=============+====================================+ | Member | Presence | Description | +==============+=============+====================================+ | osap_receipt | MUST | Receipt format version. The value | | | | is 0.1. | +--------------+-------------+------------------------------------+ | receipt_id | MUST | An opaque, globally unique | | | | identifier for this receipt. | +--------------+-------------+------------------------------------+ | user | MUST | The user principal that made the | | | | decision. | +--------------+-------------+------------------------------------+ | agent | MUST | The agent that will exercise the | | | | resulting capability. | +--------------+-------------+------------------------------------+ | task_id | MUST | The task to which the decision is | | | | bound. | +--------------+-------------+------------------------------------+ | cap_id | MUST | The reserved or issued capability | | | | identifier that this receipt | | | | authorizes. | +--------------+-------------+------------------------------------+ | audience | MUST | The agent that will perform the | | | | action. | +--------------+-------------+------------------------------------+ | actions | MUST | The approved action set. | +--------------+-------------+------------------------------------+ | resources | MUST | The approved resource set. | +--------------+-------------+------------------------------------+ | risk | MUST | The effective risk class for the | | | | decision. | +--------------+-------------+------------------------------------+ Zeng Expires 25 May 2027 [Page 11] Internet-Draft OSAP Consent Receipts November 2026 | decision | MUST | Either grant or deny. | +--------------+-------------+------------------------------------+ | constraints | CONDITIONAL | An object with max_uses and | | | | expires_at. It MUST be present | | | | for a grant. | +--------------+-------------+------------------------------------+ | policy_hash | SHOULD | An opaque digest of the policy or | | | | notice that the user saw. It lets | | | | an auditor check that the decision | | | | was made against a known policy | | | | without embedding the policy text. | +--------------+-------------+------------------------------------+ | issued_at | MUST | The decision time in RFC 3339 | | | | format. | +--------------+-------------+------------------------------------+ | proof | MUST | The signature object described in | | | | Section 5.3. | +--------------+-------------+------------------------------------+ | extensions | MAY | A namespaced extension object. It | | | | participates in the signed bytes. | +--------------+-------------+------------------------------------+ Table 3: Consent receipt members 5.2. Example Receipt Zeng Expires 25 May 2027 [Page 12] Internet-Draft OSAP Consent Receipts November 2026 { "osap_receipt": "0.1", "receipt_id": "consent_01J8Z3K4M5N6P7Q8R9S0T1V2W3", "user": "user://local/example-user", "agent": "agent://com.example.orchestrator/main#1a2b", "task_id": "task_01J8Z3K4M5N6P7Q8R9S0T1V2W3", "cap_id": "cap_01J8Z3K4M5N6P7Q8R9S0T1V2W3", "audience": "agent://com.example.messaging/agent#4d", "actions": ["messaging.send"], "resources": ["contact://directory/example-contact"], "risk": "L3", "decision": "grant", "constraints": { "max_uses": 1, "expires_at": "2026-11-10T10:24:45Z" }, "policy_hash": "sha256:example-digest", "issued_at": "2026-11-10T10:14:46Z", "proof": { "alg": "EdDSA", "kid": "os-consent-key-1", "sig": "c2lnbmF0dXJlLWV4YW1wbGUtbm90LXZhbGlk" } } The signature value and the policy hash in this example are illustrative and are not valid values. 5.3. Canonicalization and Proof A receipt is serialized as UTF-8 JSON. The signature covers the canonical byte sequence of the receipt with the proof member removed. The canonicalization rules are the same as for a capability token: 1. the value is a JSON object; 2. members are sorted by the Unicode code point order of their names; 3. arrays preserve their order; 4. there is no insignificant whitespace; 5. strings use the shortest RFC 8259 [RFC8259] escape, with non- ASCII characters emitted as UTF-8; and 6. all numbers are integers; floating-point numbers are rejected. Zeng Expires 25 May 2027 [Page 13] Internet-Draft OSAP Consent Receipts November 2026 These rules are a profile of the JSON Canonicalization Scheme [RFC8785] that is deterministic for receipts because the format restricts numeric values to integers. A parser MUST reject duplicate member names. A verifier MUST NOT accept a receipt whose signature was computed over a different serialization. The proof object has three members: alg: The value EdDSA, using Ed25519 as defined in RFC 8032 [RFC8032]. kid: The identifier of the user or operating-system key that signed the receipt. sig: The signature encoded with base64url as defined in Section 5 of RFC 4648 [RFC4648], without padding. A receipt MUST be signed by the user or by an operating-system consent service acting for the user. An agent MUST NOT sign its own receipt. A verifier MUST resolve kid through a trusted key registry and MUST reject an unknown, revoked, or expired key. 5.4. Validation Order A verifier SHOULD process a receipt in the following order: 1. check the syntax, version, and required members; 2. resolve proof.kid and verify the signature; 3. check that decision is grant; 4. check constraints.expires_at against the current time; 5. check the binding to the request: user, agent, task_id, audience, actions, and resources; and 6. check that max_uses has not been exhausted. A denial receipt is not an authorization. A verifier that expects an authorization MUST reject a receipt whose decision is deny. Zeng Expires 25 May 2027 [Page 14] Internet-Draft OSAP Consent Receipts November 2026 5.5. Expiry and Scope A receipt MUST have an expiry. An expired receipt MUST NOT be used, even if the associated capability token has not expired. A receipt's action and resource sets MUST exactly cover the request; a prefix match, a case-insensitive match, or an implicit wildcard is not sufficient. If a capability needs a narrower scope than the receipt, the CA MAY issue a narrower token, but it MUST NOT issue a broader one. A task-level grant SHOULD have a short validity window and a finite max_uses. A receipt with no finite use count is not defined by this document. 5.6. Offline Verification A receipt is designed to be verifiable offline: the verifier needs the receipt, the public key identified by kid, and the canonicalization rules. Offline verification proves that the user or consent service signed the stated decision. It does not prove that the receipt has not been revoked since the verifier last fetched status. A verifier that requires freshness MUST obtain a current status or rely on a short expiry. 6. Binding to Capability Tokens A capability token that requires consent MUST carry consent_receipt_id. The receipt and the token MUST agree on task_id, audience, actions, and resources. The receipt's agent MUST equal the token's subject. The receipt's user MUST be the principal on whose behalf the token is issued. If the token's scope is a subset of the receipt's scope, the token is valid. If the token asks for an action or resource that the receipt does not cover, the CA MUST reject the issuance with POLICY_CONSENT_SCOPE_MISMATCH. If the receipt is expired or revoked, the token MUST be treated as unusable and the receiver MUST reject it with POLICY_CONSENT_EXPIRED. A child token may reference the same receipt only when the receipt still covers the child's task, audience, actions, and resources. A delegation to a new audience normally requires a new receipt because the original receipt's audience does not match the child's audience. 7. Audit and Trace Zeng Expires 25 May 2027 [Page 15] Internet-Draft OSAP Consent Receipts November 2026 7.1. Event Shape Every audit event contains at least the following members: Zeng Expires 25 May 2027 [Page 16] Internet-Draft OSAP Consent Receipts November 2026 +====================+=======================================+ | Member | Description | +====================+=======================================+ | audit_id | A unique event identifier. | +--------------------+---------------------------------------+ | trace_id | The identifier of the user intent | | | that caused the event. | +--------------------+---------------------------------------+ | task_id | The task associated with the event. | +--------------------+---------------------------------------+ | session_id | The session associated with the | | | event. | +--------------------+---------------------------------------+ | actor | The agent or service that produced | | | the event. | +--------------------+---------------------------------------+ | action | The event type, such as | | | consent.granted or effect.executed. | +--------------------+---------------------------------------+ | phase | intent or outcome for effect.* | | | events; absent for every other event. | +--------------------+---------------------------------------+ | target | The target of the action, expressed | | | as a resource identifier. | +--------------------+---------------------------------------+ | decision | allow, deny, or another deployment- | | | defined decision. | +--------------------+---------------------------------------+ | policy | The policy or notice reference used | | | for the decision. | +--------------------+---------------------------------------+ | consent_receipt_id | The receipt that authorized the | | | action, when one applies. | +--------------------+---------------------------------------+ | context_refs | Opaque references to context handles | | | or objects used. | +--------------------+---------------------------------------+ | ts | The event time in RFC 3339 format. | +--------------------+---------------------------------------+ | prev_hash | The hash of the previous event in the | | | same trace. | +--------------------+---------------------------------------+ | hash | The hash of this event. | +--------------------+---------------------------------------+ Table 4: Audit event members Zeng Expires 25 May 2027 [Page 17] Internet-Draft OSAP Consent Receipts November 2026 7.2. Required Event Types An implementation that records the consent and effect lifecycle MUST use the following event types: * agent.registered and agent.registration_denied; * capability.issued, capability.attenuated, capability.attenuation_denied, capability.exercised, and capability.revoked; * discovery.query and discovery.result; * message.sent and message.delivered; * task.created, task.delegated, task.handoff, task.cancelled, task.completed, and task.failed; * context.resolve and context.denied; * consent.requested, consent.granted, and consent.denied; * effect.intent, effect.executed, and effect.reconciled; * egress.blocked; and * error. 7.3. Two-Phase Effects An L3 or L4 side effect uses two audit records. Before the side effect, the implementation writes effect.intent with phase equal to intent, including the target, a digest of the parameters, the consent receipt, and an idempotency key. After the side effect, it writes effect.executed with phase equal to outcome and a reference to the intent record. If a restart finds an intent with no outcome, the effect state is unknown. The implementation MUST require reconciliation before replaying the action. Reconciliation records an outcome of executed or not_executed; it does not re-execute the side effect. Zeng Expires 25 May 2027 [Page 18] Internet-Draft OSAP Consent Receipts November 2026 7.4. Hash Chain Each event's hash is computed over the canonical event body with the hash member removed. The body includes prev_hash. The first event in a trace uses a fixed genesis value. A verifier recomputes the hash chain and checks that every prev_hash matches the previous event's hash. A mismatch, a missing event, or a duplicate audit_id is an integrity failure. The hash chain proves that the recorded sequence was not modified without detection. It does not prove that every real-world action was recorded, and it does not make an audit record confidential. 7.5. Trace and Redaction A user intent has one trace_id. Every agent hop records a causation identifier, so a user can view the cross-application chain. An export MUST preserve hash and prev_hash. Sensitive fields MAY be replaced by a commitment using a salt that is unique to the export. A verifier of a redacted export can check the chain and the commitments, but cannot recover the clear text. A verifier MUST be told that the export is redacted and MUST NOT treat it as a full record. 8. Informative Mapping to ISO/IEC 27560 ISO/IEC 27560 [ISO27560] specifies a consent record information structure. The following table maps the receipt members in this document to the concepts in that structure. The mapping is informative. It does not claim that a receipt alone is an ISO- conformant consent record, because a complete record also needs notice, controller, purpose, and jurisdiction information that a local authorization artifact may not carry. Zeng Expires 25 May 2027 [Page 19] Internet-Draft OSAP Consent Receipts November 2026 +==========================+=============================+ | OSAP receipt member | ISO/IEC 27560 concept | +==========================+=============================+ | receipt_id | Consent record identifier | +--------------------------+-----------------------------+ | user | PII principal | +--------------------------+-----------------------------+ | agent | Recipient or processor | | | acting for the principal | +--------------------------+-----------------------------+ | audience | Recipient of the processing | | | operation | +--------------------------+-----------------------------+ | actions and resources | Processing purpose and | | | processing operation | +--------------------------+-----------------------------+ | risk | Risk or impact description | +--------------------------+-----------------------------+ | decision | Consent decision | +--------------------------+-----------------------------+ | constraints.max_uses and | Restrictions and validity | | constraints.expires_at | period | +--------------------------+-----------------------------+ | policy_hash | Reference to the notice or | | | policy | +--------------------------+-----------------------------+ | proof | Assurance or signature | | | information | +--------------------------+-----------------------------+ | task_id | Task scope, as an extension | | | for local authorization | +--------------------------+-----------------------------+ Table 5: Informative mapping to ISO/IEC 27560 concepts An implementation that exports a receipt into a 27560-compatible record SHOULD keep the original receipt identifier and signature so that the exported record can be traced back to the authorization decision. 9. Security Considerations Zeng Expires 25 May 2027 [Page 20] Internet-Draft OSAP Consent Receipts November 2026 9.1. Forged Receipts An agent might try to create its own receipt. A verifier MUST require a signature by a key that is trusted for the user or for the operating-system consent service. A receipt signed by the requesting agent's key MUST be rejected, even if the agent is otherwise trusted for the action. 9.2. Consent Phishing and Misleading Requests A malicious agent can describe an action inaccurately. The PCS MUST derive the preview from the capability descriptor and from policy, and the consent surface MUST display the effective action, resource, risk, cost, and duration. The user's decision applies to the scope shown in the receipt, not to the agent's prose. A mismatch between the preview and the receipt scope is a security failure. 9.3. Replay A receipt is bound to a task, an audience, an action set, a resource set, and a capability identifier. Reusing it for another task or audience fails the binding check. A receipt with a finite max_uses must be counted atomically, or the use count can be exceeded by concurrent requests. 9.4. Reservation and Activation Race The reservation protocol separates allocation from activation. An attacker that learns a reserved cap_id must not be able to activate it without a valid receipt. Activation MUST verify the receipt's signature, decision, expiry, and scope before changing the reservation to active. A denied, expired, or revoked reservation MUST remain unusable. 9.5. Audit Integrity The hash chain detects modification of recorded events but not omission of events that were never written. An implementation that requires an audit record before an L3 or L4 side effect must make the write durable before the effect. A redacted export proves integrity and commitment consistency, not the original content. Zeng Expires 25 May 2027 [Page 21] Internet-Draft OSAP Consent Receipts November 2026 9.6. Revocation A revoked receipt must invalidate every capability that references it. A receiver that cannot check receipt status must deny an L3 or L4 action. Cached status must have a bounded freshness interval. A revocation notification is advisory; it is not a substitute for the execution-time status check. 10. Privacy Considerations Consent receipts contain a user identifier, an agent identifier, a task identifier, and resource identifiers. They should carry the minimum information needed to prove the decision. Resource identifiers should be opaque handles rather than paths or personal data. The policy_hash should commit to the notice the user saw without embedding the notice text. Audit exports should support redaction with per-export salts. Retention should be limited to the period needed for user review, dispute resolution, and legal obligations. A task identifier should not become a stable cross-application tracking identifier. When a receipt is exported into an ISO/IEC 27560 record, the exporter should apply the same data-minimization rules and should not add personal data that the local authorization did not need. 11. IANA Considerations This document has no IANA actions. 12. Normative References [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, . [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, October 2006, . [RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, January 2017, . Zeng Expires 25 May 2027 [Page 22] Internet-Draft OSAP Consent Receipts November 2026 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . [RFC8259] Bray, T., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, December 2017, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, June 2020, . 13. Informative References [ISO27560] ISO/IEC, "Information technology - Privacy framework - Part 1: Consent record information structure", ISO/ IEC 27560:2023, July 2023. [KANTARA] Kantara Initiative, "Consent Receipt Specification, Version 2.0", March 2020. [RFC9396] Lodderstedt, T., Richer, J., and M. B. Jones, "OAuth 2.0 Rich Authorization Requests", RFC 9396, August 2023, . Author's Address Zeng Zhiyong Independent Email: 272577337@qq.com Zeng Expires 25 May 2027 [Page 23]