The Scope Creep Automated reviews of new AI-related working group submissions

Update review · December 3, 2026

Flow Labels for Attenuating Agent Tokens Update (-02)

draft-correa-oauth-aat-flow-labels -02View on Datatracker →

Two days after -00, the author has published -02. This review compares -00 with -02. The changes are small and targeted. One fixes a real security hole, one fixes the exact problem from the last review, and one corrects the IANA section. The bigger questions about how taint state works are untouched.

For background on what the draft does, see the previous review of -00.

What changed?

The extension now fails closed. In -00, the introduction said tokens carrying flow labels "remain valid AATs" for anyone who ignores the extension. That was a downgrade attack waiting to happen. A gateway that only implemented AAT would verify the token, skip the labels, and happily let a tainted agent forward mail to [email protected]. The labels gave no protection unless every enforcement point understood them.

-02 fixes this. A token with an agent_flow entry MUST carry a new agent_flow: true JWS header parameter and list it in crit. Under RFC 7515, a verifier that doesn't understand a critical header must reject the token. Now an AAT-only gateway refuses the token instead of acting on it.

The last review missed this. The author caught it on their own, and it's the most important change in this revision.

The header parameter carries no information of its own. It exists only so crit has something to point at. That's a reasonable use of crit. But the protection is only as good as the crit handling in the JWS libraries AAT verifiers use, and some JWT libraries handle it poorly. AAT should say explicitly that verifiers MUST process crit.

exact no longer changes meaning. The last review flagged that exact inside when_tainted could take any JSON value and was compared with JCS, unlike AAT's exact. That's gone. when_tainted now uses the AAT constraint vocabulary unchanged. To pin a single value, use one_of with one member. The JCS reference and the "canonical comparison" conformance cases are removed. This is exactly the fix the last review asked for.

The IANA section is corrected. -00 asked to register agent_flow in an "OAuth Authorization Details Types" registry established by RFC 9396. No such registry exists. RAR defines no registry for type values. -02 says so plainly and notes that AAT has the same open point. It adds a proper registration template for the new JWS header parameter, which answers the last review's note that the IANA section had no template.

This changes one point from the last review. RAR is no longer an IANA dependency. The draft still uses RAR's authorization_details structure. The agent_flow type is now identified only by this document. If the working group wants type values to be discoverable, that's a gap for RAR, AAT and this draft together.

What wasn't addressed?

Most of the interop concerns from the last review are unchanged:

  • Taint state across enforcement points. The Security Considerations still admit that separate gateways each see only part of the sequence. There's still no mechanism to share taint state.
  • Tainting the whole lineage. The "Tainted" definition is word-for-word the same. One sub-agent reading a web page still appears to block clean_only tools for every sibling derived from the same root. The draft still doesn't say whether that's intended.
  • Clearing taint. It's still an "authenticated human decision" with no protocol, actor or message.
  • Labels on the tool vs. the grant. No discussion of MCP tool annotations or why the token is the right place for these labels.
  • Conformance vectors. The file is renamed to flow-labels-vectors-01.json but still isn't linked. Implementers still can't find it.

None of the suggested removals happened either. Section 6 (Recording the Decision), the restart-persistence rule and the persistent memory guidance are all still there. The odd phrasing "An issuer SHOULD NOT intend a rule such as..." is still in Section 4.

Mechanisms added or removed

Added:

  • The agent_flow JWS header parameter and its mandatory listing in crit.

Removed:

  • The custom exact semantics and the JCS dependency.
  • The request to register agent_flow in a nonexistent RAR registry.

The implementation in Appendix B still hasn't moved to the agent_flow encoding. The draft doesn't say whether it emits or checks the new crit header.

So what does this mean for the working group?

This is a good revision. The fail-closed change turns the draft from something that only works when every gateway cooperates into something that's safe to roll out piece by piece. The exact fix removes a likely source of bugs.

The core design questions are where they were. Feedback to the author should still focus on the taint-state model: sharing state across gateways, the blast radius of lineage-wide taint on sibling sub-agents, and whether tool labels belong in the token at all. The draft's fate is still tied to AAT.

For background, start with the base spec: Attenuating Authorization Tokens for Agentic Delegation Chains.