Repository navigation
docs(agent-identity): record the session-open rules settled in code - #2616
Merged
Merged
Conversation
The design now states what the session-open implementation settled: a request presents its access token at most once and opens before any change, create/fork/clear open before saving, the broker remembers every converted access-token jti across its sessions, an undecodable answer is treated like a mismatched echo, and the session-open outcomes for owner_action_required, owner_mismatch, session_owned, and subject_invalid. The workload-isolation claim is narrowed to what an open by host session can hide, and the ToolHive work list gains the check 4 refusal without a reason. Co-authored-by: Mecatl <[email protected]>
jhrozek
approved these changes
Oct 30, 2026
The work-list row for check 4 now says ToolHive's in-progress exchange handler sends its own reason codes (and grant_invalid for an unknown grant), not prose. Check 4 no longer claims ToolHive already requires the offline_access scope; that requirement moves to its own work-list row. Co-authored-by: Mecatl <[email protected]>
jhrozek
approved these changes
Oct 30, 2026
2 of 5 tasks
…tokens Agreed with the ToolHive exchange's author: AS-1 refuses a subject token with subject_token_invalid when a fresh access token can pass, or subject_token_audience / subject_token_source_client for configuration faults, and an unknown or expired grant with grant_invalid. The broker reports subject_token_invalid as subject_invalid (refresh and retry once); an invalid_request with no reason is a broker bug or configuration fault. The ToolHive work-list row records the reasons as in progress. Co-authored-by: Mecatl <[email protected]>
3 tasks done
jhrozek
approved these changes
Oct 30, 2026
Merged
2 tasks
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.
Summary
Records in the agent identity design what the session-open implementation (#2589, #2593, #2601, #2606) settled, found in the #2492 stock take. Smallest in-place edits to
credentials-and-lifecycle.mdand one row inimplementation.md.jtiAS-1 may have converted, across its sessions, untilexpplus skew;AS-1 keepsits own record, made explicit.owner_mismatch/session_ownedfail with 403; an explicit session ID held by another owner's broker session is refused before saving;owner_action_requiredat session open is a 401 sign-in;subject_invalidfor a token without aniss_subsub_id; the 401 codesbearer_rejectedandsign_in_requiredare named.subject_token_invalidwhen a fresh access token can pass, which the broker reports assubject_invalid(refresh and retry once), orsubject_token_audience/subject_token_source_clientfor configuration faults (INTERNAL); an unknown or expired grant getsgrant_invalid(INTERNAL). Aninvalid_requestwith no reason is now a broker bug or configuration fault, not a subject problem. The ToolHive work-list row records them as in progress (toolhive#7003, #7007).offline_access, which check 4 no longer claims ToolHive already requires.Deliberately unchanged: the sentences where the broker revokes a refresh token or keeps it in shared session storage. They describe the target; the phase 1 shortcuts (discard instead of revoke, single replica) stay in the tickets (#2451, #2454, #2563, #2538, #2568).
Issue relationship
Relates to #2492
Type of change
Test plan
matlatl check docs/drafts/agent-identity --strict: same result as onmain(3 links out of the directory, 0 broken anchors)User-facing change
None. Design drafts only.