| Internet-Draft | OSAP Consent Receipts | November 2026 |
| Zeng | Expires 25 May 2027 | [Page] |
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.¶
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 (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
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.¶
This document defines:¶
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.¶
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.¶
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:¶
| 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.¶
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.¶
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.¶
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.¶
| 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]. |
The intent preview makes the decision concrete. It contains:¶
actor:what:data:cost:money and
external_calls members.¶
ttl:irreversible: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.¶
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.¶
{
"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"
}
¶
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.¶
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.¶
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:¶
cap_id. A reservation allocates an
identifier but does not sign a token and does not make the
capability usable.¶
cap_id and the target
audience.¶
consent_receipt_id set, and activates the token.¶
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.¶
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.¶
| 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. |
{
"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.¶
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:¶
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:EdDSA, using Ed25519 as defined in RFC 8032
[RFC8032].¶
kid:sig: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.¶
A verifier SHOULD process a receipt in the following order:¶
proof.kid and verify the signature;¶
decision is grant;¶
constraints.expires_at against the current
time;¶
user, agent,
task_id, audience, actions, and
resources; and¶
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.¶
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.¶
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.¶
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.¶
Every audit event contains at least the following 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. |
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.¶
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.¶
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.¶
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.¶
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.¶
| 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.¶
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.¶
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.¶
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.¶
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.¶
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.¶
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.¶
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.¶
This document has no IANA actions.¶