# What is Transaction Tokens for Agents?

> An individual IETF draft that adds agent details to OAuth transaction tokens. A central token service records which agent started a request, which agent is calling now, and how many agent hops it has passed through.

Explainer by Boston Identity, 2026-11-03, updated 2026-11-03. 6 min read. https://insights.bostonidentity.com/glossary/transaction-tokens-for-agents

- What it is: protocol
- Defined by: Individual IETF Internet-Draft (-03), not a standard
- Who it's for: Teams running AI agents inside their own services

## What is Transaction Tokens for Agents?

Transaction tokens (Txn-Tokens) are short-lived, signed JSON Web Tokens (JWTs) that convey identity and authorization context [S1 §1]. A trust domain is a set of systems that share one security policy [S1 §2]. Ashay Raut's draft extends them for AI agents. It is an individual Internet-Draft, a draft and not yet a standard, and its datatracker page says it has no formal standing in the IETF standards process [S1].

The problem it names is that a database or internal service cannot tell a direct human call from one that came through an agent chain several hops deep, and its audit logs lose who the work was for [S1 §1]. The draft keeps two existing claims fixed for the life of the transaction: sub, the subject the transaction is for, and act, the agent the user delegated to, borrowed from OAuth 2.0 Token Exchange (RFC 8693) [S1 §1]. It adds one new claim, agentic_ctx, that names the originating agent and the proximate agent (the one calling now) and counts agent hops [S1 §1]. It defines no new token types or grant types [S1].

Think of it like this: Think of a parcel's waybill. The sender and the first courier are printed once and never change, while each depot stamps its own name and bumps a hop count. The analogy stops at the depots in between: the token shows only the first and the latest agent, and the full route sits in the token service's log, which the draft says that service should keep.

Not the same as: Not the base Transaction Tokens specification, which this draft extends. It defines no new way to get tokens; it adds rules for when the caller is an agent.

## How does Transaction Tokens for Agents work?

The draft's main example has five actors: an outside agent working for a user, the trust domain's API gateway, the Transaction Token Service (TTS) that issues every Txn-Token, an internal agent, and the resource server that holds the data [S1 §4.2.2]. An Agent Attribute Store, which may be any registry or catalog, tells the TTS which workloads are agents [S1 §2].

[Figure: The token service issues every Txn-Token: it fixes the user and the outside agent at hop 1, then swaps in the internal agent and counts hop 2 when that agent asks for a replacement.]

1. **The outside agent calls the gateway.** The outside agent gets an access token through the OAuth 2.0 Authorization Code flow on the user's behalf. Its act claim names the agent. The agent then calls the API gateway with that token [S1 §4.2.2].
2. **The gateway asks the TTS for a token.** The gateway sends the access token, with its own subject token, to the TTS [S1 §3.2.1]. The TTS validates the access token [S1 §3.2.1].
3. **The TTS checks whether the caller is an agent.** When the TTS has an Agent Attribute Store, it looks up the client_id from the access token [S1 §3.6.1]. If the client_id is a registered agent, the agent rules apply and the TTS must fill in agentic_ctx; if not, the TTS must follow the base rules and add no agentic_ctx [S1 §3.6.1]. Without a store, the TTS may judge from other signals, such as an act claim in the access token [S1 §3.6.1].
4. **The TTS issues the first token.** The TTS sets sub to the user and copies act from the access token as-is [S1 §3.2.1]. In agentic_ctx, the originator and the proximate agent are both the outside agent, and the hop count is 1 [S1 §4.2.2]. In an autonomous flow with no user, act is absent and sub typically represents the agent itself [S1 §3.2.2].
5. **The internal agent asks for a replacement.** Before calling a downstream service, the internal agent should request a replacement token, and must do so when the deployment enforces hop or assurance policy [S1 §3.3]. The TTS keeps sub, txn (the transaction id), aud and act unchanged, and scope can only narrow [S1 §3.3.1]. It sets the proximate agent to the new agent and adds one to the hop count [S1 §3.3.1]. If a minimum assurance level is present, the TTS recalculates it as the lower of the old value and the new agent's level [S1 §3.3.1]. Section 4.2.3 says the TTS must enforce a maximum hop count and reject a replacement over it, though section 5.12 softens enforcing the maximum to should [S1 §4.2.3, §5.12].
6. **The resource server decides.** The resource server validates the token and checks sub, act, the hop count, the originator and the proximate agent against its policy [S1 §4.2.2]. It may query the Agent Attribute Store for the proximate agent's posture [S1 §4.2.2]. The draft keeps posture out of the token because posture changes and a token is a snapshot [S1 §3.5.2].

## Why does Transaction Tokens for Agents matter now?

Fletcher, speaking on the Identity at the Center podcast, said that the token can carry the agent but no profile yet fixes which claim does it [BI-FIND-2026-0512](https://insights.bostonidentity.com/ref/BI-FIND-2026-0512). He pointed to Raut's draft as one answer, and noted that implementers already swap the user and the agent between sub and act [BI-FIND-2026-0512](https://insights.bostonidentity.com/ref/BI-FIND-2026-0512). Raut's own design has moved: his January revision put the agent and the person behind it in two new claims [BI-FIND-2026-1044](https://insights.bostonidentity.com/ref/BI-FIND-2026-1044), and the current text uses OAuth's act and sub instead [S1 §1].

Revision -03 adds a rule about the model itself. The token exchange must sit in the infrastructure layer that runs tool calls, the model must not be able to call or bypass it, and tokens must not appear in the model's context window [BI-FIND-2026-1960](https://insights.bostonidentity.com/ref/BI-FIND-2026-1960). The reason given is that a model can be steered by prompt injection [BI-FIND-2026-1960](https://insights.bostonidentity.com/ref/BI-FIND-2026-1960). The same revision moves agent posture out of the token and into the Agent Attribute Store, whose interface it leaves out of scope [BI-FIND-2026-1961](https://insights.bostonidentity.com/ref/BI-FIND-2026-1961). It also says the TTS should log every issuance and replacement under the transaction id, and that this log lets the whole chain be rebuilt offline [BI-FIND-2026-0530](https://insights.bostonidentity.com/ref/BI-FIND-2026-0530).

## Where does it fit?

- Compared with Workload Identifier: A workload identifier names a service. This draft carries such names, for example a SPIFFE id, in agentic_ctx to say which agent started the chain and which one is calling now [S1 §3.5.3].
- Compared with OAuth Token Exchange: OAuth 2.0 Token Exchange (RFC 8693) defines the act claim that this draft copies into the transaction token unchanged. The draft adds agentic_ctx and the agent-specific replacement rules on top.

## What goes wrong?

- The token does not prove the model was kept away from credentials. The draft says a Txn-Token carries no in-band evidence that exchange isolation was enforced, and deployments should prove it out of band, for example with hardware attestation or signed deployment manifests [S1 §5.16].
- When an Agent Attribute Store is used, agent identification relies on its integrity. An attacker who can add entries can make the TTS treat any workload as an agent, and one who can modify entries can change assurance levels and corrupt posture data [S1 §5.10]. Access must be limited to authorized deployment pipelines [S1 §5.10].
- A compromised client_id could get a workload classed wrongly; binding it to a transport identity such as an mTLS certificate is one listed mitigation [S1 §5.11].
- If agents pass tokens on without replacing them, the chain data goes stale, and the hop count is only a lower bound [S1 §5.14].
- Session ids are self-reported by each agent's runtime and must not drive authorization; a malicious agent could fake one [S1 §5.15].
- The draft does block one attack by design. When a minimum assurance level is used, the TTS must not let a replacement token carry a higher level than the incoming one [S1 §5.9]. So a low-trust outside agent cannot launder its identity through a high-trust internal agent [S1 §5.9].
- The agents between the first and the latest are not in the token. Implementations may add a path of agent ids, but the draft does not define one [S1 §4.2.3].

## What should a security leader ask?

1. Can any of our agents' models reach a token, or call the code that exchanges tokens, through a tool, a prompt variable or an environment secret?
2. Who can add or change entries in whatever registry tells our token service which workloads are agents, and are those changes logged?
3. At every agent hop in our multi-agent workflows, does the agent request a replacement token, or do some agents pass the incoming token straight on?
4. What maximum hop count do we enforce, and where is the token service's issuance log kept for incident response?

## Sources

- [S1] [Transaction Tokens For Agents (draft-araut-oauth-transaction-tokens-for-agents-03)](https://datatracker.ietf.org/doc/html/draft-araut-oauth-transaction-tokens-for-agents) (IETF (individual Internet-Draft, A. Raut), Internet-Draft -03, 31 October 2026, intended status Informational)

## Evidence

- [BI-FIND-2026-0512](https://insights.bostonidentity.com/ref/BI-FIND-2026-0512): Fletcher's rule for agents is not to hand them the user's credentials or access token, and to keep the agent's authentication apart from the authorization it carries. Where the agent then appears in a transaction token is open: the token can carry it, but "there is no profile that says we're going to call that claim X", and when a gateway rather than the agent requests the token the original caller has no standard place. He points to Ashay Raut's agents draft, which adds an actor chain and agent context, says Karl McGuinness's actor proposal probably needs merging with it, and notes that implementers already put the user and the agent the wrong way round between sub and act. (from "Transaction tokens are nearly a standard, and there is still no agreed place in them for the agent")
- [BI-FIND-2026-1044](https://insights.bostonidentity.com/ref/BI-FIND-2026-1044): In this January revision Raut puts the AI agent and the party behind it in two new top-level claims: actor, an object holding details such as an agent id, version and deployment, and principal, a string naming the human or system the agent works for, which an autonomous agent MAY omit. Both MUST stay unchanged when the token is replaced. The draft fills the standard sub claim from the incoming access token's aud claim, so in its own example payload sub is an API gateway's name and the user, alice, appears in principal. By the April revision (-06), the datatracker abstract shows a different design: the agent goes in OAuth's existing act claim, the principal in sub, and an autonomous agent is itself the sub. (from "Raut's January draft put AI agents in two new transaction-token claims; by April he used OAuth's act and sub")
- [BI-FIND-2026-1960](https://insights.bostonidentity.com/ref/BI-FIND-2026-1960): Revision -03 adds a rule -02 did not have: the token exchange belongs to the infrastructure layer that runs the model's tool calls, and the model must not be able to call it or bypass it. Section 3.7 says the exchange must not be exposed as a tool the LLM can invoke, the model's output must not feed an exchange request without validation and approval by the infrastructure layer, and "Access tokens, Txn-Tokens, and other credential material MUST NOT appear in the LLM's context window, prompt, or generated output." The reason given is that an LLM can be adversarially influenced, for example through prompt injection or a jailbreak. A harness, a gateway or a sidecar are offered as non-normative ways to comply. Section 5.16 names the limit: a Txn-Token "does not carry in-band evidence" that isolation was enforced, so the draft says deployments should give resource servers that assurance out of band, for example through hardware attestation or signed deployment manifests. (from "Raut's revised agent draft keeps token exchange out of the model's reach, and concedes the token carries no evidence of it")
- [BI-FIND-2026-1961](https://insights.bostonidentity.com/ref/BI-FIND-2026-1961): Revision -03 takes agent posture out of the token. The open-ended deployment-specific fields that -02 allowed inside agentic_ctx are gone. A resource server that needs posture, attestation status or provenance should query the Agent Attribute Store directly, keyed on the originator's or the proximate agent's id. The draft's reason is that posture changes while a token is a snapshot taken at issuance: "Embedding mutable deployment attributes in an immutable token is avoided by design." The store is defined as a logical role, and its "interface, query protocol, and response format are out of scope". Section 5.10 names the cost: an attacker who can add entries can make the token service treat arbitrary workloads as agents, and one who can modify them can change assurance levels or corrupt the posture that resource servers read. So access must be restricted to authorized deployment pipelines, resource servers must authenticate the store's responses, and its richer attributes must not come from the agent's own say-so. When a token leaves the trust domain, the token service must strip the store pointer and other internal identifiers. (from "Raut's revised agent draft keeps token exchange out of the model's reach, and concedes the token carries no evidence of it")
- [BI-FIND-2026-0530](https://insights.bostonidentity.com/ref/BI-FIND-2026-0530): Raut's draft still puts an AI agent into a transaction token as a few named fields. The act claim, copied once from the access token, names the agent the user delegated to and never changes; in an autonomous flow it is absent and the agent is the subject. The agentic_ctx claim carries the originating agent, the proximate agent (the one calling now) and a hop count that rises by one with each replacement token. In -03 each agent entry is an object with an id and an optional session id, which the agent's own infrastructure reports and which must not drive authorization. The agents in between are not in the token: implementations may add a path of agent identifiers, but the draft does not define one. Revision -03 puts the full chain at the token service instead. It should log every issuance and replacement under the transaction id, and the draft says that log lets the whole chain, intermediate hops included, be rebuilt offline. (from "Raut's revised agent draft keeps token exchange out of the model's reach, and concedes the token carries no evidence of it")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/transaction-tokens-for-agents as the source. Claim numbers may be cited freely. Training, fine-tuning and text-and-data-mining use of this page is permitted.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
