Internet-Draft OSAP Consent Receipts November 2026
Zeng Expires 25 May 2027 [Page]
Workgroup:
Individual Submission
Internet-Draft:
draft-zeng-osap-consent-receipts-00
Published:
Intended Status:
Informational
Expires:
Author:
ZY. Zeng
Independent

Consent Receipt Binding for Task-Scoped Authorization

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.

▲

Table of Contents

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.

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 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.1. Risk Classes

Table 1: Risk classes and default consent
Class Name Example Default consent
L0 Public read Public weather or directory Automatic
L1 Personal read Calendar, contacts, notes First use or task-level
L2 Local write Create a local draft Automatic with notification
L3 External side effect Send a message or submit a form Per use, with batch or time limits
L4 High impact Payment, deletion, public posting Strong confirmation and re-authentication

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.

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.

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

Table 2: Consent request members
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 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].

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

{
  "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;
  • 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.

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.1. Receipt Members

Table 3: Consent 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.
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.

5.2. Example Receipt

{
  "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.

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.

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

7.1. Event Shape

Every audit event contains at least the following members:

Table 4: Audit event members
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.

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.

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.

Table 5: Informative mapping to ISO/IEC 27560 concepts
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 constraints.expires_at Restrictions and validity period
policy_hash Reference to the notice or policy
proof Assurance or signature information
task_id Task scope, as an extension for local authorization

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

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.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.

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, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC3339]
Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, , <https://www.rfc-editor.org/info/rfc3339>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC8032]
Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, , <https://www.rfc-editor.org/info/rfc8032>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8259]
Bray, T., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, , <https://www.rfc-editor.org/info/rfc8259>.
[RFC8785]
Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, , <https://www.rfc-editor.org/info/rfc8785>.

13. Informative References

[ISO27560]
ISO/IEC, "Information technology - Privacy framework - Part 1: Consent record information structure", ISO/IEC 27560:2023, .
[KANTARA]
Kantara Initiative, "Consent Receipt Specification, Version 2.0", .
[RFC9396]
Lodderstedt, T., Richer, J., and M. B. Jones, "OAuth 2.0 Rich Authorization Requests", RFC 9396, , <https://www.rfc-editor.org/info/rfc9396>.

Author's Address

Zeng Zhiyong
Independent