Skip to content

Protocol -12: resolve open issues - #298

Open
dickhardt wants to merge 50 commits into
mainfrom
protocol-12-issues
Open

dickhardt wants to merge 50 commits into
mainfrom
protocol-12-issues

Conversation

@dickhardt

@dickhardt dickhardt commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

This is the draft-hardt-oauth-aauth-protocol-12 editor's copy. It is not being submitted to the datatracker.

Adds upgrade-11-to-12/, per-role update guides.

Closes #49: Mission Log says the log is the PS's record of what reached it, not an account of what the agent did while it could not reach the PS. The Audit Endpoint and the Agent-Person Binding Audit bullet no longer claim a complete record. No sequence contract or counter.
Closes #199: PS-to-AS Token Request: the AS verifies agent_token per Agent Token Verification with step 1 replaced (cnf.jwk matches agent_jkt for a direct request). For a sub-agent, agent_token is the parent's: the AS checks parent_agent and iss against it, compares agent_jkt with the subagent_token's key, and verifies the subagent_token's signature and exp with the *_subagent_token codes. Added invalid_agent_token and expired_agent_token, AS only. Parent-Mediated Authorization and the person token endpoint verify subagent_token without step 1. The AS upgrade guide's -12 sentence carries the parent-mediated exception.
Closes #201: the R3 and Events references point at the datatracker; added I-D.hardt-aauth-budgets.
Closes #202: informative reference to OpenID Federation Well-Known Binding 1.0, and a sentence in Metadata Documents: the issuer check and JWKS discovery trust the origin, and a deployment MAY bind its metadata and JWKS to an OpenID Federation Trust Chain.
Closes #203: new §1.5 Related Specifications after Built On, using the issue's table, with Supervision pointing at its editor's copy and mission control as a planned row. The Roles and Minimal PS sentences point at AAuth Supervision; the Mission Management and PS Metadata notes point at §1.5.
Closes #208: Why Agents Are Under an Agent Provider keeps scale and policy enforcement, drops "distinct AP, not self-signed", and says an agent's operator is the enforcement point when the agent is its own AP.
Closes #209: Requirement Values gives auth-token as 401 or 202, citing Deferred Delivery.
Closes #210: Trust Posture identifies the person by (ps, sub), and tenant is not part of the identifier. Shares the #215 commit.
Closes #211: the endpoint URL rule covers every metadata member whose name ends in _endpoint, including extension members. The loopback callback exception stays.
Closes #212: the introduction says an agent token binds the identifier to the key, verifiable against the AP's published keys.
Closes #213: authorization endpoint scope is REQUIRED unless a companion specification defines a replacement parameter, such as R3's r3_operations.
Closes #214: deleted JWT Type Registrations; Media Type Registrations says AAuth Events registers aa-subscribe+jwt and aa-event+jwt. Events -00 already dropped its copy of the section.
Closes #215: the person is identified by (ps, sub) in every token, across the issue's "Text to change" list. Auth Token Verification step 4 says a resource MUST NOT key on (iss, sub) for an AS-issued token and states the PS-to-AS check that ps relies on. interop-demo-profile.md Surface 4 uses (ps, sub).
Closes #217: the server jwks_uri rule covers the requests this document defines (PS-to-AS token request, revocation, and requests to the pending URLs they return); a companion specification MAY define the scheme for its own, as Events does with self-jwt. Verification step 4's "scheme this profile does not use" applies at this document's endpoints.
Closes #218: Auth Token Usage: the agent presents the auth token where the resource authorizes on it, and the token an endpoint's requirement names where that differs, with requirement=agent-token as the signal.
Closes #225: Auth Token Delivery step 4 and Auth Token Response Verification step 4 compare cnf.jwk with the subagent_token's in the parent-mediated case. The sub-agent the token is bound to verifies aud and cnf on the token the parent relays.
Closes #227: the interaction decision is recorded at the server that hosts the interaction URL (PS, resource, or AS), not necessarily at a relaying PS.
Closes #228: person token and auth token exp are capped at the earliest exp of the agent tokens the request carried (the Signature-Key token and subagent_token).
Closes #230: Covered Components adds the resource authorization endpoint; the Core /authorize example shows Content-Digest, Signature-Input, and Signature. Why These Covered Components gives the reason.
Closes #232: body components named in additional_signature_components apply only to requests that carry a body.
Closes #237: an accepted mission update returns its persisted bytes as update with s256, and the PS serves those bytes wherever it exposes the update.
Closes #239: Polling with GET lists updated_request as a POST exception, and Updated Request points at the deferred response state machine.
Closes #240: both Resource Metadata sentences give resource tokens with 401 or deferred 202, and interaction requirements with 202.
Closes #241: Resource Adoption Path step 2 calls authorization-endpoint access resource-local authorization that follows PS-issued identity, not two-party.
Closes #242: approved_at no longer claims to make s256 unique; a PS MAY add a member to distinguish otherwise identical approvals.
Closes #252: an agent identifier is stable across rotation of the request-signing key while the enrolled durable key is unchanged; in AAuth Bootstrap, replacing the durable key makes a new agent.
Closes #253: interop-demo-profile.md Surfaces 3 and 4 locate keys through the metadata's jwks_uri.
Closes #254: interop-demo-profile.md Surface 5 says the resource verifies the auth token against the issuer's JWKS and that cnf.jwk, the sub-agent's key, matches the request signer.
Closes #272: Resource-Initiated Interaction: in four-party access the PS resolves the resource's interaction before its PS-to-AS token request, and the AS issues the auth token.
Closes #273: Pending URL Security: a poll is signed under the same agent identity, and presents the same type of credential, as the request that received the 202.
Closes #274: polling revoked and Presenting a Revoked Token cover presented_token, subagent_token, and the agent-person binding.
Closes #276: the PS MUST NOT redirect the person to a loopback, private, or link-local interaction.url unless its deployment allows it, in place of egress admission.
Closes #277: an interaction host accepts only a callback on the requesting agent's callback_endpoint origin, a loopback URL when localhost_callback_allowed is true, or the relaying PS's origin, and ignores any other.
Closes #278: the Missions overview says the PS or the person decides.
Closes #279: Verification step 5 drops "and is unexpired" from revoked_jwt.
Closes #290: Metadata Documents: "A reader MUST ignore members of a metadata document it does not recognize." No registry.
Closes #145: Agent Token Required: requirement=agent-token takes an OPTIONAL agent-claims parameter, a space-delimited String of claim names the agent token must carry; acceptable values go in resource metadata under the claim's name.
Closes #222: OPTIONAL nonce signature parameter as proposed; @query is covered when the target has a query; the replay cache key adds nonce and @query, and "This profile defines no nonce mechanism" is gone.
Closes #229: denied (403) is a token endpoint error for an immediate refusal on policy at the PS and AS, relayed by the PS; the state machine has a 403 branch for the initial request.
Closes #231: a 202 without Location is not a pending response; it is the result, such as a held invocation's, and ends polling.
Closes #233: an agent token revocation of a parent cascades to the person tokens and auth tokens the PS issued in the parent's parent-mediated requests.
Closes #234: an AP MUST NOT issue a sub-agent token with the parent's key; the PS rejects a subagent_token whose cnf.jwk is the signing key with invalid_subagent_token.
Closes #235: the PS rejects a token request signed by a sub-agent with denied.
Closes #236: denied at the mission endpoint for a refused proposal, update, or completion; at a mission's URL it leaves the mission active, including a completion the person declines without a question.
Closes #238: for every mission termination reason the PS SHOULD revoke the person tokens and auth tokens it issued under the mission and terminate what it federated; the bullet uses the #238 comment's wording, generalized.
Closes #226: Mission Status Errors states the nondisclosure rule for every PS endpoint that accepts a mission (person token, auth token via the resource token, interaction, permission, audit): ownership is checked before status, so a non-owner gets mission_not_found (404), never mission_terminated; call chaining is exempt. Adds PS-20 and AG-14 to the update guides.
Refs #265: Implementation Status keeps the removal note and points at https://github.com/openid/aauth/blob/main/resources.md#implementations; the RFC 7942 paragraph and the inline list are gone. Budgets PR #293 carries the closing reference.

Choices made

🤖 Generated with Claude Code

https://claude.ai/code/session_01B91DroedWPJV8MyDV41YWX

dickhardt and others added 30 commits November 20, 2026 12:12
A resource MUST NOT key on (iss, sub) for an AS-issued token. Trust
Posture no longer treats tenant as part of the person's identifier.
The interop demo profile's Surface 4 uses (ps, sub).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DroedWPJV8MyDV41YWX
dickhardt and others added 10 commits November 20, 2026 12:22
dickhardt and others added 10 commits December 4, 2026 17:20
`denied` (403) is a token endpoint and mission endpoint error for a
refusal on policy, at the PS and AS token endpoints (relayed by the PS)
and at the mission endpoint. The PS rejects a token request signed by a
sub-agent with it. At a mission's URL a `denied` leaves the mission
active, including a completion the person declines without a question.
The deferred response state machine gains a 403 branch for the initial
request, and the polling `denied` row points at the same code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
Pending Response, Deferred Delivery, Interaction Required, and the
deferred response state machine: a 202 without Location is not a
pending response. It is the response to the request, such as a held
invocation's result, and ends polling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
…d tokens (#233)

The Revocation Cascade for an agent token revoked by its agent provider
includes, for a parent agent, the person tokens and auth tokens the PS
issued in the parent's parent-mediated requests, although they are bound
to sub-agent keys: the parent requested them. The PS records the
parent's sub with each such token. Parent-Mediated Authorization points
at the cascade.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
Sub-Agent Identity: an agent provider MUST NOT issue a sub-agent token
whose cnf.jwk is the parent's current signing key, and a PS MUST reject
with invalid_subagent_token a subagent_token whose cnf.jwk is the key
that signed the request. The person token endpoint, Parent-Mediated
Authorization, and the invalid_subagent_token row carry the check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
Revocation Cascade: the mission bullet becomes "PS terminates a
mission", worded per the #238 comment: the mission is terminated with a
reason, requests naming it get mission_terminated, and for every reason
the PS SHOULD revoke the person tokens and auth tokens it issued under
the mission and terminate what it federated. Only tokens carrying the
mission's s256 are affected. Mission Management points at the cascade,
and the PS records mission_s256 with each token.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
Signature Parameters adds an OPTIONAL nonce, as proposed in the issue.
Covered Components requires @query when the request target has a query.
Freshness and Replay keys the cache on (signing-key-thumbprint,
created, nonce, @method, @authority, @path, @query) and drops "This
profile defines no nonce mechanism." Why These Covered Components gives
the reason for @query.

Reported by Dasith Wijesiriwardena; @query from the #222 comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
Agent Token Required: the requirement member takes an OPTIONAL
agent-claims parameter, a space-delimited String of claim names the
agent token must carry. It says nothing about values; a resource says
which values it accepts in its metadata, in a member named by the
claim. A resource also uses requirement=agent-token when the presented
agent token lacks a required claim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
A resource calling downstream acts as an agent, so AG-10 to AG-13 apply
to it as well.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B91DrjQa4GnH8ZXbJiFPYi
…ission (#226)

The PS checks that the signing agent owns the mission before checking
that it is active, at the person token, auth token, interaction,
permission, and audit endpoints, so a non-owner gets mission_not_found
and never mission_terminated. mission_not_found and mission_terminated
are listed as token endpoint errors. Call chaining is exempt from the
ownership check. Adds PS-20 and AG-14 to the -11 to -12 guides.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment