Skip to content

requirement=agent-token cannot say which claim the agent token must carry #145

In review

Description

@dickhardt

Problem

§Agent Token Required says:

The header carries no additional parameters: the agent already holds its agent token and need only present it.

That premise fails as soon as a resource requires the agent token to carry something an agent provider vouches for. The agent does hold an agent token; it holds the wrong one, and the challenge gives it no way to learn that.

The concrete case is the CSA Verifiable Agent Summit demo. An agent provider issues an ordinary aa-agent+jwt carrying an extension claim, https://agentictrustframework.ai/atf, in which it asserts a trust grade an evaluator assigned to that agent's runtime evidence. A resource requires a minimum grade. Today that resource can only answer:

HTTP/1.1 401 Unauthorized
AAuth-Requirement: requirement=agent-token

to an agent that already presented a valid agent token. The agent has no way to distinguish "you sent nothing" from "your token lacks a claim I need," and re-presenting the same token loops.

ATF is the first instance, not a special case. Any framework in which an AP vouches for a property of the agent — an assurance level, a jurisdiction, a certification, an operator binding — lands in the same place.

Proposal

Define one parameter on the requirement member of requirement=agent-token:

HTTP/1.1 401 Unauthorized
AAuth-Requirement: requirement=agent-token; agent-claims="https://agentictrustframework.ai/atf"
  • Type: String. Requirement-specific data are parameters on the requirement member (§AAuth-Requirement Header Structure), and RFC 8941 parameter values are bare items, so an Inner List is not available.
  • Value: one or more claim names the agent token must carry, space-delimited. Claim names here are URIs, which cannot contain a space, so the delimiter is unambiguous — same construction as OAuth scope.
  • Semantics: the resource requires an agent token carrying each named claim. It says nothing about the claim's contents.
  • Recipients MUST ignore unknown parameters already, so this is backward compatible: an agent that does not implement it sees today's bare challenge.

The parameter names the claim and stops there. What acceptable values look like is the claim's own specification's business, and which of them this resource wants belongs in its aauth-resource.json — under the same URI, e.g.:

{
  "issuer": "https://atf-demo.aauth.dev",
  "access_mode": "agent-token",
  "https://agentictrustframework.ai/policy": {
    "profiles": ["csa-atf:0.9.1"],
    "minimum_level": "senior"
  }
}

So AAuth learns exactly one framework-neutral fact — the agent token must carry claim X — and acquires no vocabulary from, and no opinion about, any particular framework.

§Agent Token Required's sentence changes from "carries no additional parameters" to permitting parameters, with agent-claims the one defined.

Naming

Not claims: that is already a requirement value (requirement=claims, 202, identity claims at an AS). Distinct slot, so no grammar collision, but two unrelated meanings for one word in one header field is not worth it. agent-claims names the token that is short.

Alternatives considered

A second top-level dictionary member — requirement=agent-token, agent-claims=("https://a/x" "https://b/y"). Legal RFC 8941, gives a real Inner List with per-item parameters, no space-delimiting. Rejected because §AAuth-Requirement Header Structure establishes that requirement-specific data hang off the requirement member, and a receiver iterating members would need a second shape. Worth reopening if per-claim parameters are ever needed.

Framework-specific parameters — atf-profile="csa-atf:0.9.1"; atf-level="senior". One round trip instead of two, but parameter keys cannot hold a URI (lcalpha / digit / _ - . *), so every framework takes a prefix out of one flat space and AAuth needs a parameter registry and an opinion about who gets one. A durable obligation for one round trip.

A separate ATF-Required header — no AAuth change at all, but an unregistered field name in the global HTTP namespace, and undiscoverable: an agent that does not know the field sees a bare 401 and cannot find out why.

Nothing; put it only in aauth-resource.json — zero spec change, and sufficient when the requirement is a static property of the resource. It cannot express a per-endpoint or per-request requirement, and it leaves the agent to guess that metadata is where the answer is. This is what the summit demo ships in the meantime.

Related

  • §Agent Token Required
  • §AAuth-Requirement Header Structure
  • §Resource Metadata — where the acceptable values live

Activity

  1. added
    protocol
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    protocol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions