Skip to content

Events: align with AAuth Protocol -11 and prepare -00 - #207

Merged
dickhardt merged 2 commits into
mainfrom
events-11-review
Sep 28, 2026
Merged

dickhardt merged 2 commits into
mainfrom
events-11-review

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

Aligns AAuth Events with the published AAuth Protocol -11 and prepares it for first submission as -00. Only draft-hardt-aauth-events.md changes. Section numbers below are Events (E) and Protocol -11 (P).

Changes

  • E front matter: removed date = 2026-07-05…, so the submission is dated on the day it is submitted.
  • E references: I-D.hardt-aauth-r3 target is now https://datatracker.ietf.org/doc/draft-hardt-aauth-r3. Protocol and Bootstrap were already datatracker URLs.
  • E 1.2, A.1: "the agent's identity token" is now "agent token" (P 5.1).
  • E 3: Person Token added to the terms taken from the protocol (P 3). E 7.2 already used it.
  • E 4 step 2: the resource stores the AP's issuer and resolves event_endpoint at delivery time. It previously said it stores the event_endpoint, which contradicted E 5 and E 6.3.
  • E 5: a resource verifies the AP metadata document per P 11.2 (Metadata Documents) before using event_endpoint.
  • E 6.2: the subscribe token takes the place of the agent token, person token, or auth token the agent otherwise presents, not only the agent token (P 11.3.2).
  • E 6.3: a subscribe token that fails verification is a signature failure, 401 with Signature-Error (P 11.3.4, P 11.5.2). This is the family rule for tokens in Signature-Key.
  • E 6.4: the example mapping names "the agent's current mission" instead of mission_xyz. Missions are identified by mission_s256 (P 8).
  • E 7.2 step 4: "No person token or auth token is required", instead of "No additional auth token".
  • E 8.1 dwk: a resource that delivers events makes signed calls, so its metadata carries jwks_uri (P 11.2.4).
  • E 8.1 aud: agent identifiers are compared exactly and case-sensitively (P 5.2; -11 allows uppercase in local).
  • E 9.1: the example now shows the Content-Digest header it already covered. New normative sentence: when event delivery carries a body, the signature MUST cover content-digest and content-type. This follows the P 11.3.3.1 rule and the P C.2.4 rationale for the revocation endpoint, an endpoint defined by the spec rather than by the server's own API. The example already did it. Check this one: it is a new MUST.
  • E 9.1: says which iss locates the AP's metadata (the subscribe token's). The paragraph before it discusses the event token's iss.
  • E 9.2: removed step 6 ("verify exp is in the future"). Step 1's Common JWT Verification (P 11.5.2) already checks it. The error sentence now says 401 with Signature-Error for a failing event token or HTTP signature, an expired event token included (P 11.3.4). The 404 paragraph and the 429 reasoning (PR Events: exhausted subscription is 410 Gone, not 429 #194) are unchanged. The 429 paragraph now names P 11.9.4 Polling Error Codes and P 11.12.3 Revocation Response.
  • E 10.1 step 1: "If exp has passed, the agent SHOULD NOT act" is now "fails this step … MUST NOT act on it". This matches E 8.1 (MUST NOT) and P 11.5.2 (no exp tolerance).
  • E 11.2, A.6: the event token envelope lists include jti, which the earlier -11 pass added to the token.
  • E 12.4: registrations are deduplicated on (iss, eid) rather than eid. An eid is unique only within its AP. This parallels (iss, jti) in P 11.12.1.
  • E 12.5: the citation names P C.1.6 (Why No Agent Identifier Reaches a Resource).
  • E 13.2, A.6: sensitive details are fetched "presenting the token the resource requires for that data" (P 6), not "using a current auth token".
  • E A.2, A.9: "identity-based request" is now "agent identity access" (P 4.2.1). The "normal agent token" and "auth token" alternatives now name the person token too.
  • E 14 IANA: follows P 15. Adds media type registrations for application/aa-subscribe+jwt and application/aa-event+jwt (P 15.5 template). The typ table now cites P 15.6, which lists both values as registered by Events. Adds eid and max_uses to the JWT Claims registry, as P 15.7, R3, and Budgets do for their claims.
  • Every protocol citation by section name was checked against a heading in -11.

Document History

Nothing in the draft said it had not been submitted, and nothing said what happens to the log at first submission. So the -00 list stays. I added one bullet at the top for this -11 alignment round. The existing "Referenced … by their datatracker document URLs" bullet now includes R3.

Needs a decision

  1. self-jwt vs P 11.3.2. P 11.3.2 says a PS, AS, AP, or resource "making a signed AAuth request in its own right … MUST use the jwks_uri scheme". Event delivery (E 9.1) is a resource signing in its own right, and it uses self-jwt. P 11.3.4 step 4 also says to reject "any scheme this profile does not use" with unsupported_scheme. There are two ways to fix it. (a) The protocol scopes the MUST to requests it defines, or names the Events exception. (b) Events moves to jwks_uri and carries the event token elsewhere. E A.7 explains self-jwt against jwt but not against jwks_uri.
  2. The agent identifier and AP reach the resource. The subscribe token (iss, sub) and the event token (aud) give the resource the agent identifier and its AP. -11 withholds both in person identity, PS authorization, and federated authorization access (P 4.2.1, P C.1.6). In a protected subscription, the ticket's thumbprint binding also links that identifier to the person's (iss, sub). E 13.1 calls this "the intended property". Keep it and say so against -11, or change it, for example with a pairwise sub and an aud that is not the agent identifier.
  3. The AP learns which resources the person uses. It sees the subscribe token aud and the event token iss. P C.2.8 keeps exactly this from the AP. It is inherent to AP-as-inbox. Decide whether E 12.6 or E 13 should say so.
  4. SSRF through event_endpoint. A resource POSTs to a URL chosen by whoever runs the "AP". Neither E 12 nor the egress admission rules cover this, because P 11.4 and sig-key only cover metadata and JWKS fetches. Proposed text: "Before fetching the AP's metadata or posting to its event_endpoint, a resource applies egress admission ([@!I-D.hardt-httpbis-signature-key], Scheme-Specific Risks)."
  5. Payload integrity at the agent. The agent gets the payload from the AP and cannot check the resource's HTTP signature. Nothing in the event token binds the body. Options: add a digest claim, or state that the agent trusts the AP for the payload.
  6. Subscribe token has no jti. Every -11 token has one, for audit and revocation (P 11.5.1). No revocation is defined for subscribe tokens. Low priority.
  7. Minor. E 9.2 step 7 (aud mismatch) has no status code. E 7.2 step 1 accepts only a person token or auth token, which excludes agent identity and resource-managed (session token) access. That may be intended.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN

Subscribe token takes the place of whichever token the agent otherwise
presents; token failures in Signature-Key answer 401 with
Signature-Error; an expired event token fails verification; event
delivery with a body covers content-digest and content-type; the
resource verifies AP metadata and deduplicates on (iss, eid); agent
identifiers compare case-sensitively; protocol citations name -11
sections. IANA registers the two media types and the eid and max_uses
claims. Removed the fixed date and pointed the R3 reference at the
datatracker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
Event token carries body_s256, REQUIRED with a body; the AP delivers
the body unchanged, and the AP and agent verify it. Subscribe token
carries a REQUIRED jti. An aud mismatch at the AP is 401 invalid_jwt.
A resource applies egress admission before fetching AP metadata or
posting to event_endpoint. Privacy Considerations state the agent
identifier and AP disclosure to the resource and the AP's view of
subscribed resources, against -11. Protected subscriptions bind to a
person. Dropped the JSON Web Token Types table (#214); the media type
registrations carry typ. Recorded in the -00 Document History.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
@dickhardt

Copy link
Copy Markdown
Owner Author

Applied the decisions in f79f833:

  • self-jwt: kept. No Events change; the protocol scoping goes to a -12 issue.
  • body_s256 (E 8.1): new event token claim, the unpadded base64url SHA-256 of the body bytes. REQUIRED when the delivery carries a body, absent when it carries none. The AP delivers the body bytes unchanged (E 10). The agent verifies the digest before acting (E 10.1 step 3). The AP also checks it (E 9.2 step 4, 401 invalid_jwt on mismatch), so it does not accept an event the agent will reject. Examples updated. The Content-Digest and body_s256 values are the real digest of the example body. Registered in the JWT Claims table.
  • Subscribe token jti (E 6.1): REQUIRED, citing -11 Common JWT Claims. Example updated.
  • aud mismatch (E 9.2 step 8, was 7): 401 with Signature-Error: error=invalid_jwt.
  • Protected subscriptions (E 7.2 step 1): require a person token or auth token "since a protected subscription is bound to a person".
  • Egress (E 5, new E 12.7): a resource applies egress admission before fetching the AP's metadata or posting to event_endpoint, citing HTTP Signature Keys, Scheme-Specific Risks. In -09, the egress admission list sits under that section.
  • Privacy (E 13.1, new E 13.2): subscribing discloses the agent identifier and AP to the resource by the agent's choice. This departs from -11 Agent Identity Access and Why No Agent Identifier Reaches a Resource. Delivery shows the AP which resources its agents subscribe at, which departs from -11 Why a PS Reports Nothing to the Agent Provider.
  • JWT Type Registrations targets an IANA registry that does not exist #214: dropped the "JSON Web Token Types" table. The media type registrations note that their subtypes are the typ values (RFC 7515 §4.1.9).
  • Recorded in the -00 Document History. Build is clean, with the same 9 xml2rfc warnings as before (long example lines).

@dickhardt
dickhardt merged commit b1a5ebd into main Sep 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant