Internet-Draft task_basis Claim December 2026
Cadena Expires 5 June 2027 [Page]
Workgroup:
Web Authorization Protocol
Internet-Draft:
draft-cadena-oauth-task-basis-00
Published:
Intended Status:
Standards Track
Expires:
Author:
J. Cadena
Cadena Core Group

The task_basis Claim: Recording the Basis on Which a Task Was Created

Abstract

OAuth tokens can say who a task is for and which software is acting. No registered claim says how the task came to be created: whether a person took part, a preconfigured trigger fired, or the requesting software started it itself. Resource servers and auditors need that fact to apply different scrutiny to requests that are otherwise identical.

This document defines the "task_basis" JSON Web Token (JWT) claim. The claim records the basis on which the issuer created a task. It has three values: "human", "schedule", and "agent". The issuer asserts the value from what it observed when the task was created, and never from what a client or agent says about itself. The value is bound to a task identifier, the "txn" claim, so that a continuation of the same task carries the same value across refresh and OAuth 2.0 Token Exchange, and new work gets a value of its own. This document also says how resource servers treat a missing value, and requires that the value only ever restrict what a token allows.

About This Document

This note is to be removed before publishing as an RFC.

Status information for this document may be found at https://datatracker.ietf.org/doc/draft-cadena-oauth-task-basis/.

Discussion of this document takes place on the Web Authorization Protocol Working Group mailing list (mailto:oauth@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/oauth/. Subscribe at https://www.ietf.org/mailman/listinfo/oauth/.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 5 June 2027.

▲

Table of Contents

1. Introduction

OAuth tokens identify a subject and, when delegation is in use, an actor [RFC8693]. Two requests can carry the same subject, the same actor, and the same scope, and still differ in one way that matters to the party that must decide or later explain the access:

Each case carries a different amount of fresh human involvement. An operator may want to allow a payment that a person just approved, hold the same payment for approval when a nightly job requests it, and apply a tighter limit when software started it without being asked.

Existing work covers parts of this. Transaction Tokens [I-D.ietf-oauth-transaction-tokens] and the agent extension to Transaction Tokens [I-D.araut-oauth-transaction-tokens-for-agents] describe transactions that a trigger starts as well as transactions that a request or a subject starts, and leave the token consumer to infer which applies. The "auth_time" claim (Section 2.2.1 of [RFC9068]) is fixed for every token that derives from a grant. Individual drafts define fields for nearby facts: who operated one action [I-D.aravind-oauth-operator-of-record], the execution context of an originator inside one type of authorization details object [I-D.jiang-oauth-intent-admission], the basis of an approval, kept at the authorization server [I-D.mcguinness-oauth-mission], how a user's agreement was obtained, in a token that resource servers do not see [I-D.chen-oauth-agent-intent-token], and the basis of each payment decision, written to a receipt [I-D.craig-oauth-rar-payment-mandates]. A use case analysis for agent authorization [I-D.chen-oauth-agent-authz-use-cases] lists telling classes of caller apart, and signalling that a user is present, among open gaps. Appendix B compares each of these with the claim defined here.

None of these is a registered claim that describes the task, travels in the tokens a resource server validates, and has rules for what happens to it across refresh and token exchange. This document defines that claim.

The document is deliberately small. It does not define delegation chain formats, approval, or how an authorization decision is computed. It relies on one existing claim, "txn" [RFC8417], to identify the task. It can be used with JWT access tokens [RFC9068], with Transaction Tokens, and with the delegation profiles discussed in Appendix B.

One limit is stated here. The value "human" means that a person took part, at the issuer, in creating the task. It does not prove that the person asked for the work. Section 3.2 explains why.

The claim was first described in [CADENA2026], under the name "initiated_by". That description did not include the task identifier, the continuation rules, or the evidence rules defined here. Section 3.2 gives the reason for the change of name.

2. 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 terms "authorization server", "client", "resource server", "access token", and "refresh token" from [RFC6749], and "claim" from [RFC7519].

Task:

A unit of work for which an issuer issues one or more tokens under one task identifier.

Task identifier:

The value of the "txn" claim [RFC8417] in the tokens issued for a task. Where Transaction Tokens are used, the transaction is the task and its "txn" value is the task identifier.

Issuer:

The party that creates and signs a token containing the claim defined here. This is an authorization server, or a Transaction Token Service when Transaction Tokens are used.

Requester:

The client or workload that makes a token request.

Human interaction:

A step that the issuer itself completes with a natural person during the request that creates a task: authenticating the person, or obtaining the person's approval of that request. A response that the issuer produces without prompting the person, for example on the basis of an existing session and stored consent, is not a human interaction. Where a grant spans several messages, such as an authorization request followed by a token request, "the request" means the whole exchange.

Preconfigured trigger:

A timer or event rule that was set up before the task existed and that starts tasks, when it fires, without a human interaction.

Scheduler:

A client or service that the issuer's configuration designates as one whose function is to start tasks when preconfigured triggers fire.

Task authority:

The authority established when a task is created: what the person approved in the human interaction, or what configuration allows the scheduler or the requester to do.

Continuation:

A token request that the issuer accepts, under Section 5.1, as part of a task that already exists.

3. The task_basis Claim

3.1. Values

The "task_basis" claim states the basis on which the issuer created the task for which the token was issued: what the issuer observed when the task came to exist. Its value is a case-sensitive string. This document defines three values:

"human":

The issuer completed a human interaction as part of the request that created the task.

"schedule":

A preconfigured trigger created the task, the issuer verified that under Section 4.2, and no human interaction took place.

"agent":

The requester created the task itself. No human interaction took place and no preconfigured trigger was verified.

The values are written in lower case. A string that differs only in case is a different, unknown value. Further values can be registered (Section 11.3).

The value names a kind of basis. It is not an identifier and does not name the person, trigger, or software involved. The "sub" claim and the "act" claim [RFC8693] continue to identify the parties.

The value describes the task, not the token and not the most recent party to handle the token. It is set once, when the task is created, and stays the same for the life of the task. Section 5 gives the rules.

A token MUST NOT contain "task_basis" with a value that is not a string.

3.2. What "human" Means

The value "human" states that a person took part, at the issuer, in creating the task. It does not state that the person asked for the work, chose its details, or understood them.

This follows from what an issuer can observe. In the interactive OAuth grants, the client starts the request and the person authenticates or approves: the authorization code grant [RFC6749], the device authorization grant [RFC8628], and backchannel authentication [CIBA] all work this way. The issuer observes the person's part. It does not observe who decided that the work should happen. For that reason the claim is not named for who initiated the task, as it was in [CADENA2026]. It is named for the basis on which the issuer created the task: a human interaction, a verified trigger, or the requester's own request. Other work uses "basis" in the same sense (Appendix B).

An approval that the issuer obtains while it creates a task is part of creating the task, and the value is "human". An approval of a later action inside a task that already exists does not change how that task was created and does not change the value. How approval of individual actions is represented is out of scope.

3.3. Task Identifier

A token that contains "task_basis" MUST also contain the "txn" claim (Section 2.2 of [RFC8417]). The "txn" value identifies the task that the "task_basis" value describes.

The issuer assigns the task identifier when it creates the task. It MUST NOT assign the same value to two tasks. Every token issued for the task carries a "txn" value that identifies that task. An issuer normally uses one value per task; Section 10 describes when it can use more than one.

4. Issuer Processing

4.1. Creating a Task

An issuer creates a task when it issues a token in response to a request that is not a continuation (Section 5.1). When it creates a task, the issuer:

4.2. Determining the Value

The issuer determines the value when it creates the task. It uses only what it observed or verified in the request that creates the task.

4.2.1. "human"

An issuer MUST NOT assert "human" unless it completed a human interaction as part of the request that created the task. None of the following is a human interaction:

  • authentication of a client, a requester, or an agent;

  • a "sub" claim that identifies a person;

  • use of a refresh token, or of any other grant that was obtained in an earlier human interaction;

  • an authorization response that the issuer returns without prompting the person, whatever grant type is in use;

  • a statement by another party that a person asked for the work. Such a statement shows neither that the person was authenticated nor that the person approved the request.

An issuer that relies on another party to authenticate the person can count the result as a human interaction only if it has evidence that the other party interacted with the person for this request, for example an authentication time later than the start of the request.

When the human interaction included authenticating the person, the issuer SHOULD include the "auth_time" claim (Section 2.2.1 of [RFC9068]) in tokens issued for the task.

4.2.2. "schedule"

An issuer MUST NOT assert "schedule" unless no human interaction took place and one of the following is true:

  • the issuer itself operates the preconfigured trigger;

  • the requester is a scheduler; or

  • the request carries evidence, which the issuer verifies, that a preconfigured trigger operated by a scheduler fired. An assertion signed by the scheduler is an example. The format of this evidence is out of scope.

4.2.3. "agent"

An issuer asserts "agent" when it has authenticated the requester, the request creates a task, and the conditions for "human" and for "schedule" are not met.

The value is named for the case that motivates it. It applies to any requester, whether or not the software would be described as an agent. The issuer does not need to classify the software.

As a result, a task that a preconfigured trigger started, but for which the issuer has no evidence of the trigger, is reported as "agent". So is a task that a person asked another party to start, when the issuer itself did not interact with the person. This is intended. A wrong "agent" causes more scrutiny than needed. A wrong "human" causes less scrutiny than needed.

4.3. No Default

There is no default value. If the issuer cannot determine a value under Section 4.2, for example because it has not authenticated the requester, it MUST omit the claim. In particular, an issuer MUST NOT assert "human" because no other value was determined.

4.4. Values Supplied in a Request

An issuer MUST NOT set the value from a request parameter, header, or claim that a client or agent supplies about its own task, except as verified evidence under Section 4.2. This document defines no request parameter for the claim.

4.5. Task Age

An issuer MUST set a maximum age for tasks whose value is "human", and SHOULD set one for other tasks. Once that time has passed since the task was created, the issuer MUST NOT treat any request as a continuation of the task.

This document does not set the maximum age. For a "human" task it needs to be short enough that the person who took part can still be assumed to be following the work. A client that needs "human" after that time has to send the person back to the issuer.

5. Continuation and New Tasks

5.1. Test for Continuation

An issuer MUST NOT treat a token request as a continuation unless all of the following are true:

  1. The request presents a valid token of the task: a subject token in a token exchange request [RFC8693], or a refresh token. The issuer issued that token itself, or accepts it under Section 5.6.

  2. The issuer can identify the task from that token, through its "txn" claim or, for a refresh token, through the binding in Section 5.3.

  3. The task has not passed its maximum age (Section 4.5).

  4. The authority requested is within the task authority.

  5. The issuer completes no human interaction for this request, the requester is not a scheduler, and the request carries no evidence that a preconfigured trigger fired.

A request that does not meet the test creates a new task. An issuer that cannot tell whether a request meets the test MUST treat it as creating a new task. An issuer MAY treat any request as creating a new task.

5.2. Effect of a Continuation

For a continuation, the issuer MUST issue the token with a task identifier of the existing task (Section 3.3) and MUST copy the task's "task_basis" value unchanged.

If the token presented in a continuation does not contain the claim, the issuer MUST omit the claim. It has no evidence about how the existing task was created.

Adding an actor does not change the value. A token for a task that a person took part in creating keeps "human" when an agent, and then a second agent, acts on the person's behalf within the same task. The nested "act" claim records those actors.

5.3. Refresh Tokens

An issuer that issues a refresh token for a task MUST bind the refresh token, and any refresh token that replaces it, to the task.

When the refresh token is used and the request meets the test in Section 5.1, the access token issued is a continuation: it carries the same task identifier and the same value.

When the request does not meet the test, for example because the task has passed its maximum age, the request creates a new task. Use of a refresh token is not a human interaction (Section 4.2), so the new task's value is "schedule" if the conditions for it are met and "agent" otherwise. From then on the refresh token is bound to the new task. This is how work that runs later, under a permission a person gave earlier, comes to carry a value other than "human".

The "auth_time", "acr", and "amr" claims behave differently: their values stay fixed across all tokens that derive from one authorization response (Section 2.2.1 of [RFC9068]). "task_basis" follows the task, not the grant.

5.4. New Task from Inside a Task

If a request creates a new task, the issuer determines the value under Section 4 for the new task. The value in the token that was presented is not evidence for the new task.

A new task that software creates while it works on an existing task is the common case. Unless the conditions for "human" or "schedule" are met for the new request, the value is "agent", whatever the value in the presented token was.

If the issuer completes a human interaction as part of a token exchange request, that request creates a new task and its value is "human".

5.5. No Change Toward "human"

Taken together, the rules above mean that a token issued through token exchange or refresh contains "human" only when:

  • the request is a continuation of a task whose value is "human"; or

  • the issuer completed a human interaction as part of the request itself.

An issuer MUST NOT issue "human" through token exchange or refresh in any other case.

5.6. Tokens from Another Issuer

An issuer that receives a subject token signed by a different issuer MUST NOT treat the request as a continuation, and MUST NOT copy the value, unless its policy trusts that issuer to assert this claim.

When it does treat the request as a continuation, it copies the value. For the task identifier it either copies the other issuer's "txn" value, if that cannot collide with identifiers it assigns itself, or assigns its own and records which task of the other issuer it stands for.

If it does not trust that issuer for this claim, it has two choices. It can omit the claim. Or it can treat the request as creating a new task of its own and determine the value under Section 4; without a human interaction of its own, that value cannot be "human". It MUST NOT assert a value that describes the other issuer's task.

5.7. Tokens Derived by a Holder

Some token formats let a holder derive a narrower token without contacting an issuer [I-D.niyikiza-oauth-attenuating-agent-tokens]. A holder is not an issuer under this document and cannot create a task. When such a format is used, a verifier MUST take the value and the task identifier only from a token that an issuer signed. It MUST ignore values that appear only in a token signed by a holder, and MUST reject a chain in which a holder-signed token carries a value or a task identifier different from the issuer-signed one.

This has a cost. Work that software starts by deriving a token offline is not recorded as a new task, so a "human" value can reach work that no person took part in creating. Section 9.7 discusses this.

5.8. Transaction Tokens

When the claim is used in a Transaction Token [I-D.ietf-oauth-transaction-tokens], the Transaction Token Service is the issuer and the transaction is the task. A Transaction Token already carries "txn". When the service issues a replacement Transaction Token it keeps the "txn" value, as that specification requires, and copies the "task_basis" value unchanged. That specification also cautions that replacing a Transaction Token weakens its purpose; this document adds no reason to replace one.

When the request to the service presents an access token that carries the claim, the service applies Section 5.6. If it trusts the token's issuer for this claim, it copies the value into the Transaction Token, under the transaction's own "txn" value.

6. Resource Server Processing

A resource server MUST take the value only from a token that it has validated and whose issuer it trusts, or from an introspection response for such a token (Section 7). It MUST NOT take the value from a request parameter, a header, or the request body.

If the token contains "task_basis" but no "txn" claim, the resource server MUST treat "task_basis" as absent.

If the claim is absent, the resource server MUST NOT treat the task as one a human took part in creating. A policy that requires "human" fails when the claim is absent.

If the claim contains a value that the resource server does not recognize, the resource server MUST NOT treat it as "human" and MUST treat it no more favourably than "agent".

6.1. The Value Only Restricts

The claim never adds to what a token allows. A resource server uses the value only to refuse, hold, or limit a request that the token's scope, audience, and other authorization claims would otherwise allow. A resource server MUST NOT allow, because of the value, a request that those claims do not allow.

A resource server MAY ignore the claim.

6.2. Examples of Policy

The following are examples of policy that the claim makes possible. They are not requirements.

  • Actions that cannot be undone are held for approval unless the value is "human".

  • Requests in tasks with the value "agent" are subject to lower limits.

  • Requests in tasks with the value "schedule" are accepted only in an expected time window.

The value says nothing about when the task was created. A resource server that cares about freshness combines the value with "iat", "exp", and, where present, "auth_time".

7. Token Introspection

An authorization server MAY include a "task_basis" member in a token introspection response [RFC7662]. Its meaning and values are the same as for the claim. An authorization server that includes it MUST also include a "txn" member that carries the task identifier. The authorization server MUST NOT include "task_basis" for a token that was issued without a determined value.

For an access token that is not a JWT, the introspection response is the only carrier of the value. The rules in Section 6 apply to the members of the response as they apply to claims.

8. Audit Records

The value is useful only if it is also recorded.

A record that reports how a task was created under this document MUST use a member named "task_basis" whose value is a value registered for this claim, and MUST carry the task identifier in the same record.

An issuer SHOULD record the value it determined, or the fact that it determined none, in its record of every decision on a request that creates or continues a task. This includes requests it denied and requests it held for approval, not only requests for which it issued a token. A record that carries the value only for issued tokens cannot answer how a denied or held request came to exist.

A resource server SHOULD record the value and the task identifier from the token with its record of each access decision.

Record formats are otherwise out of scope. An architecture for auditing agent interactions is described in [I-D.kuehlewind-audit-architecture].

9. Security Considerations

9.1. The Issuer Asserts the Value

The security of this claim rests on one rule: the issuer asserts the value from what it observed, and no client or agent reports it about itself (Section 4.4). Software that could set its own value would set "human". A deployment in which the value originates from the requester's own statement provides no assurance and is not conformant.

9.2. What "human" Is Worth

"human" shows that a person authenticated or approved at the issuer when the task was created (Section 3.2). It is no stronger than that interaction.

Software that wants the value "human" can ask the issuer to obtain a person's approval when the task is created. That is the intended path, and it is only as good as the approval. A person who approves requests without reading them gives "human" to whatever was requested. Issuers that show the person what the task is, and resource servers that do not read "human" as informed intent, limit the damage.

An issuer cannot always tell a person from software that drives the person's browser or device. If such software can complete the interaction, it obtains "human" with no person involved. [I-D.aravind-oauth-operator-of-record] discusses the same problem for credential presentations. The value is only as strong as the issuer's check that a person was present.

9.3. Wrong Values

A wrong "human" is the harmful error, because it lowers scrutiny. The rules are written so that doubt resolves away from "human": there is no default (Section 4.3), an absent or unknown value is never read as "human" (Section 6), a response produced without prompting is not a human interaction (Section 4.2), and neither token exchange nor refresh can produce "human" from another value (Section 5.5).

9.4. Continuation Errors

A party might try to keep a "human" value for new work by presenting a token of a "human" task. The test in Section 5.1 limits this: the request has to stay within the task authority and within the task's maximum age. The remaining risk is an issuer whose record of the task authority is broader than what the person understood.

Whether two requests belong to one task is the issuer's decision, and two issuers can decide differently. The task identifier makes the decision visible: tokens that share a "txn" value were treated as one task, and an auditor can check that against what the tokens were used for.

9.5. Refresh Tokens and Task Age

Within a task's maximum age, an issuer cannot tell a refresh that a person's active session causes from a refresh that unattended software causes with the same refresh token. Both are continuations and both keep "human". The maximum age bounds this window (Section 4.5). A deployment that sets a long maximum age gives up much of what the claim offers.

9.6. Trigger Evidence

"schedule" depends on the issuer's designation of schedulers and on evidence that a trigger fired. If a scheduler is compromised, or if its assertions can be replayed, an attacker can obtain "schedule" for work that no trigger started. Issuers need to authenticate schedulers, limit the lifetime of their assertions, and bind each assertion to one request. An issuer that designates general-purpose clients as schedulers makes "schedule" meaningless. Because "schedule" is never treated as "human", the effect of an error is bounded by the policy applied to scheduled work.

9.7. Offline Derivation

Where holders derive tokens without contacting the issuer (Section 5.7), no new task is ever recorded. A "human" value then covers every token derived from the original, including tokens for work that software started on its own. A resource server that relies on "human" needs to decide whether to accept the value from a derived chain at all.

9.8. Omission

A party cannot gain by causing the claim, or the task identifier, to be left out, because absence is never read as "human". A resource server that treats absence as acceptable for sensitive actions loses this protection.

9.9. Using the Value in Decisions

[I-D.aravind-oauth-operator-of-record] takes the position that a marker of this kind is to be ignored when a decision point allows or denies a request. This document takes a narrower position: the value can be used, but only to restrict (Section 6.1). A forged or mistaken value therefore cannot obtain access that the token does not already allow. What a mistaken "human" can do is remove a restriction that policy would otherwise have added. That is the residual risk, and it is the reason for the evidence rules in Section 4.2.

9.10. What the Claim Does Not Do

The claim does not prove that a person asked for, understood, or intended each action in a task. It does not bind the token to a sender. It does not limit what the token allows. It does not replace the "act" claim, and an "act" claim does not replace it: the presence of an actor shows that software is acting, not how the task was created.

10. Privacy Considerations

The value "human" reveals that a person interacted with the issuer when the task was created. Combined with "iat" and a subject identifier, a series of tokens can show when a person was active. The values "schedule" and "agent" reveal that work is automated, which a resource server could use to treat automated clients differently. Issuers SHOULD include the claim only in tokens for audiences that use it. Audit records that contain the value are subject to the same care as other records of user activity.

The task identifier lets recipients that share data link the tokens of one task. Inside one deployment that is the purpose. Where tokens for one task go to audiences in different organizations, an issuer MAY use a different "txn" value for each audience, provided it can map each value to the task when it applies Section 5.1.

The claim carries no identifier of a person and adds no information about who the person is.

11. IANA Considerations

11.1. JSON Web Token Claims Registration

IANA is requested to register the following claim in the "JSON Web Token Claims" registry [IANA.jwt] established by [RFC7519].

Claim Name:

task_basis

Claim Description:

The basis on which the issuer created the task for which the token was issued

Change Controller:

IETF

Specification Document(s):

Section 3 of this document

11.2. OAuth Token Introspection Response Registration

IANA is requested to register the following members in the "OAuth Token Introspection Response" registry established by [RFC7662].

Name:

task_basis

Description:

The basis on which the issuer created the task for which the token was issued

Change Controller:

IETF

Specification Document(s):

Section 7 of this document

Name:

txn

Description:

Transaction identifier, with the meaning of the "txn" claim of RFC 8417; used by this document as the task identifier

Change Controller:

IETF

Specification Document(s):

Section 7 of this document

11.3. Task Basis Values Registry

IANA is requested to create a registry named "Task Basis Values" in the "JSON Web Token (JWT)" registry group. The registry holds the values of the "task_basis" claim. The registration policy is Specification Required [RFC8126].

A registration contains:

Value:

The string value. Values are lower case.

Description:

What the issuer observed when the task was created.

Change Controller:

The party responsible for the registration.

Specification Document(s):

The document that defines the value and the evidence an issuer needs before it asserts the value.

The designated experts are asked to check that a new value describes something an issuer can observe, that it is distinct from the registered values, and that its specification states the evidence required. A new value is not to be treated as "human" by a resource server that does not know it (Section 6).

The initial contents are:

Value:

human

Description:

The issuer completed a human interaction as part of the request that created the task

Change Controller:

IETF

Specification Document(s):

Section 3.1 of this document

Value:

schedule

Description:

A preconfigured trigger, verified by the issuer, created the task

Change Controller:

IETF

Specification Document(s):

Section 3.1 of this document

Value:

agent

Description:

The requester created the task itself, with no human interaction and no verified trigger

Change Controller:

IETF

Specification Document(s):

Section 3.1 of this document

12. References

12.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC6749]
Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/rfc/rfc6749>.
[RFC7519]
Jones, M., Bradley, J., and N. Sakimura, "JSON Web Token (JWT)", RFC 7519, DOI 10.17487/RFC7519, , <https://www.rfc-editor.org/rfc/rfc7519>.
[RFC7662]
Richer, J., Ed., "OAuth 2.0 Token Introspection", RFC 7662, DOI 10.17487/RFC7662, , <https://www.rfc-editor.org/rfc/rfc7662>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8417]
Hunt, P., Ed., Jones, M., Denniss, W., and M. Ansari, "Security Event Token (SET)", RFC 8417, DOI 10.17487/RFC8417, , <https://www.rfc-editor.org/rfc/rfc8417>.
[RFC8693]
Jones, M., Nadalin, A., Campbell, B., Ed., Bradley, J., and C. Mortimore, "OAuth 2.0 Token Exchange", RFC 8693, DOI 10.17487/RFC8693, , <https://www.rfc-editor.org/rfc/rfc8693>.
[RFC9068]
Bertocci, V., "JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens", RFC 9068, DOI 10.17487/RFC9068, , <https://www.rfc-editor.org/rfc/rfc9068>.

12.2. Informative References

[AP2]
"Agent Payments Protocol (AP2) Specification, Version 0.2", , <https://ap2-protocol.org/ap2/specification/>.
[CADENA2026]
Cadena, J., "Runtime Authorization for AI Agents: A Task-Scoped Credential-Brokering Architecture for Humans, Machines, and Agents", DOI 10.5281/zenodo.21585832, , <https://doi.org/10.5281/zenodo.21585832>.
[CI-TOKENS-A]
GitHub, "OpenID Connect reference (workflow identity tokens)", , <https://docs.github.com/en/actions/reference/security/oidc>.
[CI-TOKENS-B]
GitLab, "OpenID Connect (OIDC) Authentication Using ID Tokens", , <https://docs.gitlab.com/ci/secrets/id_token_authentication>.
[CIBA]
OpenID Foundation, "OpenID Connect Client-Initiated Backchannel Authentication Flow - Core 1.0", , <https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html>.
[I-D.aap-oauth-profile]
cruz, A., "Agent Authorization Profile (AAP) for OAuth 2.0", Work in Progress, Internet-Draft, draft-aap-oauth-profile-01, , <https://datatracker.ietf.org/doc/html/draft-aap-oauth-profile-01>.
[I-D.araut-oauth-transaction-tokens-for-agents]
Raut, A., "Transaction Tokens For Agents", Work in Progress, Internet-Draft, draft-araut-oauth-transaction-tokens-for-agents-03, , <https://datatracker.ietf.org/doc/html/draft-araut-oauth-transaction-tokens-for-agents-03>.
[I-D.aravind-oauth-operator-of-record]
Aravind, A. A., "Operator-of-Record: an Origination Marker for Agent-Operated Presentations and Decisions", Work in Progress, Internet-Draft, draft-aravind-oauth-operator-of-record-00, , <https://datatracker.ietf.org/doc/html/draft-aravind-oauth-operator-of-record-00>.
[I-D.chen-oauth-agent-authz-use-cases]
Chen, M., Chen, J., Yao, J., Jiang, Y., Liu, P. C., and X. Liu, "Agent Authorization use cases and gap analysis", Work in Progress, Internet-Draft, draft-chen-oauth-agent-authz-use-cases-05, , <https://datatracker.ietf.org/doc/html/draft-chen-oauth-agent-authz-use-cases-05>.
[I-D.chen-oauth-agent-intent-token]
Chen, M., Su, L., Liu, P. C., and B. Morrison, "The Intent Token - A Credential for Delegated User Intent", Work in Progress, Internet-Draft, draft-chen-oauth-agent-intent-token-03, , <https://datatracker.ietf.org/doc/html/draft-chen-oauth-agent-intent-token-03>.
[I-D.craig-oauth-rar-payment-mandates]
Craig, R., "Rich Authorization Requests Profile for Agent Payment Mandates, Approval Reasons and Receipts", Work in Progress, Internet-Draft, draft-craig-oauth-rar-payment-mandates-00, , <https://datatracker.ietf.org/doc/html/draft-craig-oauth-rar-payment-mandates-00>.
[I-D.ietf-oauth-transaction-tokens]
Tulshibagwale, A., Fletcher, G., and P. Kasselman, "Transaction Tokens", Work in Progress, Internet-Draft, draft-ietf-oauth-transaction-tokens-11, , <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-transaction-tokens-11>.
[I-D.ietf-wimse-aims]
Kasselman, P., Lombardo, J., Rosomakho, Y., Campbell, B., Steele, N., and A. Parecki, "AI Identity Management System", Work in Progress, Internet-Draft, draft-ietf-wimse-aims-01, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-aims-01>.
[I-D.jiang-oauth-intent-admission]
Jiang, Y., Lun, L., Song, Y., and F. Liu, "Intent Admission Assertions for Agentic Systems", Work in Progress, Internet-Draft, draft-jiang-oauth-intent-admission-00, , <https://datatracker.ietf.org/doc/html/draft-jiang-oauth-intent-admission-00>.
[I-D.kuehlewind-audit-architecture]
Kühlewind, M. and H. Birkholz, "An Architecture for Auditing Agent Delegation and Interactions", Work in Progress, Internet-Draft, draft-kuehlewind-audit-architecture-01, , <https://datatracker.ietf.org/doc/html/draft-kuehlewind-audit-architecture-01>.
[I-D.liu-oauth-rego-policy]
Liu, D., Zhu, J., Krishnan, S., Parecki, A., and H. Xue, "Rego Policy Language for OAuth 2.0 Authorization", Work in Progress, Internet-Draft, draft-liu-oauth-rego-policy-00, , <https://datatracker.ietf.org/doc/html/draft-liu-oauth-rego-policy-00>.
[I-D.mcguinness-oauth-actor-profile]
McGuinness, K., "OAuth Actor Profile for Delegation", Work in Progress, Internet-Draft, draft-mcguinness-oauth-actor-profile-02, , <https://datatracker.ietf.org/doc/html/draft-mcguinness-oauth-actor-profile-02>.
[I-D.mcguinness-oauth-mission]
McGuinness, K., "Mission-Bound Authorization for OAuth 2.0", Work in Progress, Internet-Draft, draft-mcguinness-oauth-mission-02, , <https://datatracker.ietf.org/doc/html/draft-mcguinness-oauth-mission-02>.
[I-D.mora-oauth-entity-profiles]
Mora, S. C., Dingle, P., and K. McGuinness, "OAuth 2.0 Entity Profiles", Work in Progress, Internet-Draft, draft-mora-oauth-entity-profiles-02, , <https://datatracker.ietf.org/doc/html/draft-mora-oauth-entity-profiles-02>.
[I-D.mw-oauth-actor-chain]
Prasad, A., Krishnan, R., Lopez, D., Addepalli, S., and S. Krishnan, "OAuth Actor Chain: Protocol and Interoperability", Work in Progress, Internet-Draft, draft-mw-oauth-actor-chain-03, , <https://datatracker.ietf.org/doc/html/draft-mw-oauth-actor-chain-03>.
[I-D.niyikiza-oauth-attenuating-agent-tokens]
Aimable, N., "Attenuating Authorization Tokens for Agentic Delegation Chains", Work in Progress, Internet-Draft, draft-niyikiza-oauth-attenuating-agent-tokens-02, , <https://datatracker.ietf.org/doc/html/draft-niyikiza-oauth-attenuating-agent-tokens-02>.
[IANA.jwt]
IANA, "JSON Web Token (JWT)", <https://www.iana.org/assignments/jwt>.
[RFC8126]
Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, , <https://www.rfc-editor.org/rfc/rfc8126>.
[RFC8628]
Denniss, W., Bradley, J., Jones, M., and H. Tschofenig, "OAuth 2.0 Device Authorization Grant", RFC 8628, DOI 10.17487/RFC8628, , <https://www.rfc-editor.org/rfc/rfc8628>.

Appendix A. Examples

The examples show decoded JWT claim sets. Line breaks are for display.

A.1. A Task That a Person Took Part in Creating

A person asks an agent to analyze invoices. The agent, an OAuth client, sends the person to the authorization server. The server authenticates the person and obtains approval for reading invoices and for looking up exchange rates. That approval is the task authority.

{
  "iss": "https://as.example.com",
  "sub": "user-4821",
  "aud": "https://erp.example.com",
  "client_id": "invoice-agent",
  "scope": "invoices.read",
  "iat": 1794600000,
  "exp": 1794600300,
  "jti": "5f1c",
  "auth_time": 1794599990,
  "txn": "t-7c41",
  "task_basis": "human"
}

A.2. The Same Work Started by a Timer

A scheduling service runs the same analysis every night under a permission the person gave it earlier. The authorization server has designated that service as a scheduler. At night the service requests a token and nobody is prompted. Subject, audience, and scope are the same as above.

{
  "iss": "https://as.example.com",
  "sub": "user-4821",
  "aud": "https://erp.example.com",
  "client_id": "billing-scheduler",
  "scope": "invoices.read",
  "iat": 1794621600,
  "exp": 1794621900,
  "jti": "a23e",
  "txn": "t-9b02",
  "task_basis": "schedule"
}

A.3. Continuation Through Token Exchange

Within the first task, the invoice agent asks a second agent to convert currencies. The second agent exchanges the token it was given for one it can present to the rates service. Looking up rates is within the task authority and the task is within its maximum age, so the exchange is a continuation. The task identifier and the value are copied, and the token names the second agent as the actor.

{
  "iss": "https://as.example.com",
  "sub": "user-4821",
  "aud": "https://rates.example.com",
  "client_id": "fx-agent",
  "scope": "rates.read",
  "iat": 1794600060,
  "exp": 1794600240,
  "jti": "77b0",
  "auth_time": 1794599990,
  "txn": "t-7c41",
  "task_basis": "human",
  "act": { "sub": "fx-agent" }
}

A.4. A New Task That Software Started

While analyzing invoices, the agent decides to open a dispute for one of them. Nobody asked for this, and the person's approval did not cover it. The deployment separately allows this agent to open disputes for the users it serves. The agent presents the first token and asks for the dispute scope. The request is outside the task authority, so the authorization server creates a new task under the agent's own permission. No human interaction takes place and no trigger is verified.

{
  "iss": "https://as.example.com",
  "sub": "user-4821",
  "aud": "https://erp.example.com",
  "client_id": "invoice-agent",
  "scope": "disputes.create",
  "iat": 1794600120,
  "exp": 1794600300,
  "jti": "c9d4",
  "txn": "t-7c9e",
  "task_basis": "agent"
}

A resource server whose policy holds dispute creation for approval unless the value is "human" would hold this request.

Appendix C. Open Issues

This section is to be removed before publishing as an RFC.

Acknowledgments

Gabriela Bantau raised initiation as an axis separate from the delegation chain in public discussion of [CADENA2026]. The claim defined here follows from that observation.

The documents discussed in Appendix B shaped this one. Their authors are not responsible for any errors here.

Author's Address

Jairo Cadena
Cadena Core Group