Repository navigation
feat(unstable): add auth/status method and auth/status_update notification - #2732
Merged
Merged
Conversation
…ation Add schema support for the get-auth-state RFD behind the new `unstable_auth_status` feature, in both v1 and v2: - `auth/status` request and response, advertised via `agentCapabilities.auth.status` - `auth/status_update` agent-to-client notification carrying the same snapshot - a strict top-level `state` (`authenticated`, `unauthenticated`, `not_required`, `unknown`, or an extension value) and a lenient, display-only `accounts` list Update the RFD to match, based on a survey of how ACP agents and other tools report authentication state.
benbrandt
enabled auto-merge (squash)
October 30, 2026 17:30
…ions Use the current v2 _meta and capability wording, fix builder doc punctuation, list auth/status in the draft overview and initialization pages, and state that auth/status is never rejected with auth_required.
# Conflicts: # docs/protocol/v2/draft/overview.mdx
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds schema support for the get-auth-state RFD behind a new
unstable_auth_statusfeature (included inunstable), in both v1 and v2 with the same wire shape. It also revises the RFD.Shape
stateis required and strict, and it's the only field clients act on. Clients treat values they don't recognize asunknown.not_requiredcovers local models. Expired or invalid credentials are reported asunauthenticated.accountsis display-only and lenient: malformed values are ignored and malformed entries are skipped, following the same pattern asauthMethods. API keys show up as label-only entries. Several accounts can beactive, for example one per provider. Clients must not use these fields as stable identifiers and should not log them or send them to telemetry.auth/status_updateis a connection-scoped agent→client notification that carries the full snapshot. Agents send it when the status changes, including when the user signs in or out outside the client.agentCapabilities.auth.status: {}. It's an object rather than the RFD's original boolean, to matchlogout,forkandproviders.RFD changes
The original RFD had
{ authenticated: bool, message?: string }. The revised shape comes from a survey of ACP registry agents, the Claude and Codex adapters, Junie, and prior art like VS Code accounts,gh auth status,gcloudandaz:accountsis a list.statehas four values.labeland_meta.How this interacts with the providers API is left open while that API is reworked.
I also replaced the outdated
setLlmEndpointsreferences in the RFD.Docs
auth.statuson the v2 page andstatuson the v1 page.auth/statuswithauth_required, sinceauth/statusis how a Client finds out that authentication is required.The authentication pages themselves don't describe the feature yet, so the RFD is the reference for now, as the overview table says.