Review · December 2, 2026
Flow Labels for Attenuating Agent Tokens Summary
This draft tackles prompt injection by limiting what an agent can do after it has read untrusted content. It doesn't try to detect the injection.
The attack it targets is familiar by now. An agent reads an attacker's email, web page or tool output. Then it uses the user's authority to send, write or pay. Delegation tokens limit how much an agent can do. They say nothing about what the agent has already read. This draft adds that missing piece: "what has this holder read?" sits alongside "who holds the token?" and "what does the token allow?"
The key design choice is that the control sits outside the model. The enforcement point never looks at text. It only tracks whether it has delivered output from a tool labelled as untrusted to anyone in this delegation chain.
How does this fit in?
This draft is an extension of an extension. It builds directly on Attenuating Authorization Tokens (AAT), which is itself an individual draft and has not been adopted. AAT defines signed, offline-derivable delegation tokens that list allowed tools and argument constraints. This draft adds a new Rich Authorization Requests type, agent_flow, carried in the same token.
Its only real OAuth dependency is RAR, and only for the IANA registration of agent_flow. Everything else depends on AAT's constraint vocabulary, chain structure and subsumption rules. It also points to Agent Action Receipts, another individual draft, for decision records.
It adds no new relationships between the client, AS and RS. All of the new behavior happens in the "enforcement point", the gateway that checks AAT chains before a tool call reaches the tool. So whether this fits the OAuth charter depends entirely on whether AAT does. If the working group doesn't adopt AAT, this draft has nothing to stand on.
What does it actually define?
The token issuer labels each tool with up to three properties:
taints: this tool's output is untrusted (for exampleget_emails_content).clean_only: this tool acts on the world (for examplesend_email).when_tainted: a narrower set of argument constraints that still applies after the chain is tainted.
The runtime works like this:
- The enforcement point delivers output from a
taintstool. Before returning it, the enforcement point marks every holder key in the delegation chain as tainted. - Later, any holder in that lineage calls a
clean_onlytool. The call is refused unless every argument fits thewhen_taintedconstraints of every link that marks the toolclean_only. - Taint survives restarts. Delegating to a new key doesn't clear it. Only an "authenticated human decision" removes it.
The example in the draft makes the idea clear. After reading email, the agent can still send mail, but only from the work account and only to [email protected]. An attacker's "forward this to [email protected]" fails at the gateway no matter what the model decides.
Attenuation follows the AAT pattern. A child token can't drop a taints or clean_only label. It can't add arguments to when_tainted or widen their constraints. It can remove when_tainted entirely, which blocks the tool outright once the chain is tainted.
This is a narrow, concrete form of information flow control applied to tool calls. The security reasoning is sound. Text filtering is a race the defender loses. A rule the gateway can check without reading any text is something an enterprise security team can actually enforce.
Significant interoperability concerns
Taint state lives only in the enforcement point. The labels travel in the token. The taint itself is local state at whichever gateway delivered the content. The draft admits that multiple enforcement points with separate state each see only part of the sequence. A read through one gateway can drive an action through another. Its answer is "share taint state between enforcement points", and it specifies no way to do that. In any real deployment with more than one gateway, this is where interop breaks.
Tainting the whole lineage is broader than the draft lets on. When any link reads untrusted content, every holder in the lineage is tainted, including the root holder. Every sibling sub-agent derived from that root also has the root in its lineage. So one sub-agent reading a web page blocks clean_only tools for the entire delegation tree. That may be the intended trade-off, but the draft never says so. The definition of "Tainted" ("or to any chain it belongs to") is too vague to tell.
Clearing taint is not specified. The only way to clear taint is an "authenticated human decision". The draft gives no protocol, no actor and no message for it. In practice every vendor will build its own approval UI and API. That might be fine, but then the draft shouldn't present the decision as a normative requirement.
Labels arguably belong to the tool, not the grant. Whether a tool brings in untrusted content is a property of the tool. Putting the label in every token means every issuer has to classify every tool correctly, and two issuers can disagree about the same tool. MCP already has tool annotations such as openWorldHint and destructiveHint that cover similar ground. The draft should explain why the token is the right place for this, or how token labels relate to labels the tool itself publishes.
exact changes meaning inside when_tainted. The draft says exact here can take any JSON value and is compared after JCS canonicalization, unlike AAT's exact. Having the same constraint name mean different things depending on where it appears will cause bugs. Either fix exact in AAT or define a new constraint type.
The conformance vectors are referenced but not published. Appendix A describes flow-labels-vectors-00.json but doesn't link to it. Vectors that implementers can't find don't help interop.
Mechanisms that could be removed
- Section 6, Recording the Decision. It contains only SHOULDs and points to a separate receipts draft. Nothing about interop depends on it.
- Persistence across restarts and the "authenticated human decision" requirement. These are good implementation advice. They describe local state handling, not anything on the wire. They fit better in Security Considerations.
- The persistent memory guidance. Taint laundering through a shared memory store is a real attack vector and the most insightful paragraph in the draft. But it consists of SHOULDs about how to label specific kinds of tools. That's deployment guidance, and it would fit better in a separate BCP-style section.
Strip those out and the core is small: one RAR type, three members, a decision rule and attenuation rules. That's the right size for an extension.
Writing quality
The writing is tight and clearly written by someone who understands the problem. At five pages of real content, it's refreshingly short for an agent draft. The introduction states the threat model in two sentences.
It is sometimes too terse. Some definitions read like code comments ("Argument name to an AAT constraint."). The "Tainted" definition is hard to parse. Some phrasing is odd for an IETF document, such as "An issuer SHOULD NOT intend a rule such as..." and the bare imperative "Run the enforcement point as a separate principal." The IANA section has no registration template. The informative examples are good. The normative rules need a few more sentences of justification, especially the decision to taint the whole lineage.
The implementation in Appendix B is the author's own project. It does not yet use the agent_flow encoding this draft defines.
Background of the author
Cleiton Augusto Correa Bezerra has published no RFCs and has no expired drafts, so they are new to the IETF. They have four active Internet-Drafts, all apparently recent: this one, draft-correa-agent-capability-binding, draft-bezerra-anchors-command-provenance and draft-bezerra-relay-auth-transparency. That's a lot of new writing at once, all focused on agent security.
So what does this mean for the working group?
The idea is good and worth discussing: make the gateway, not the model, refuse risky actions after untrusted input. It deserves a slot in the conversation about agent authorization. It is also tied to the fate of AAT. The most useful feedback for the author is about the taint-state model: how it works across multiple enforcement points, how it affects sibling sub-agents, and whether tool labels belong in the token at all.
For background, start with the base spec: Attenuating Authorization Tokens for Agentic Delegation Chains.