Skip to content

docs(agent-identity): settle the per-call request names, retry, and record order - #2779

Merged
jhrozek merged 2 commits into
mainfrom
docs/agent-identity-per-call-decisions
Nov 14, 2026
Merged

jhrozek merged 2 commits into
mainfrom
docs/agent-identity-per-call-decisions

Conversation

@ChrisJBurns

Copy link
Copy Markdown
Contributor

Records the decisions made for #2535 (per-call grant and gateway token) on 2026-11-13, so the design matches what #2535 builds.

  • Names in the request (step (6), step (8) examples, audit example): tool is the name the gateway routes by, exactly as sent in params.name (github.pull_request_read, since the embedded vMCP prefixes each backend's tools); server is the gateway's name for that backend (github). A method field distinguishes tools/call from list methods, which name no tool or argument hash. No acting-session field.
  • Rejected-token retry (step (8), "One V per call"): one retry per attempt the broker issued, re-running step (6) with a new attempt ID; a report naming an unknown or already-retried attempt is refused. Re-authorizing without a rejection report is a new authorization.
  • revoked with no newer token and no recorded reason (Error reasons): the broker treats the token as lost and closes the session with session_closed.
  • Gateway token jti (audit, Evidence references): recorded when V is a JWT, read without verification and never used to authorize. This removes the contradiction with the reconciliation row that joins on the token jti.
  • Write order (audit, Write order and failure): each ID-JAG's jti is recorded before it is redeemed; refusals are recorded too but returned even if the record fails. The remaining Open. item is narrowed to persistence ordering across a restart.

API compatibility

Assessment: no wire change. Design documentation only; AuthorizeCall is an in-process Go contract until #2560.

…ecord order

Name the tool as the gateway routes it and the server as the gateway's
backend name, add the method for listings, define the rejected-token
retry per issued attempt, close a session whose revoked refresh token has
no recorded reason, record the gateway token's jti when it is a JWT, and
record each ID-JAG before redeeming it. Decided for #2535.

Co-authored-by: Mecatl <[email protected]>
…nd a refused record

The design said the broker refuses these without naming the status, and
did not say whether a retry's own attempt or a failed retry can be
retried again.

Co-authored-by: Mecatl <[email protected]>
@jhrozek
jhrozek merged commit 69e3402 into main Nov 14, 2026
37 checks passed
@jhrozek
jhrozek deleted the docs/agent-identity-per-call-decisions branch November 14, 2026 16:41
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Nov 18, 2026
2 tasks
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.

2 participants