Repository navigation
Conversation
…he broker output check The per-call authorization_details entry moves from the step (8) redemption request to the step (7) ID-JAG request. AS-1 checks its shape and signs it into the ID-JAG; AS-2 copies the signed entry into V and may only narrow it. The broker checks that V carries the entry it sent before it uses V (step 8a). The vMCP must enforce that a V serves only the call its entry names, and only once, for Mecatl's clients first. The mechanism is not part of this design. The operation ID now travels only inside the entry. The separate mecatl_operation parameter is removed. Attempt IDs stay with the broker's own records, joined on the ID-JAG (iss, jti). Standards: the entry on the ID-JAG request is permitted by ID-JAG draft-06 section 4.3; signing the granted entries is required by section 4.3.3; processing the signed claim is required by section 4.4.1. Refusing an empty grant, refusing a whole request on an unknown type (RFC 9396 section 5), and refusing a redemption that still carries the parameter are our policy. Not built yet: the AS-1 and AS-2 changes, the broker check, the vMCP check, and the pin. See the ToolHive work list in implementation.md. Co-Authored-By: mecatl <noreply@mecatl.dev>
The broker reads the token response member, not V's claim, and treats V as opaque. The call type's hook refusals are invalid_authorization_details, not access_denied. A repeated JSON member name is invalid_grant; the same entry listed twice is invalid_authorization_details. The rollout wording says phase 1 keeps its current shortcut until the call-binding change merges with the pin bump. Co-Authored-By: mecatl <noreply@mecatl.dev>
This branch has not been deployed
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
Design for binding each gateway call to its approval. The per-call
authorization_detailsentry moves from the redemption request to the ID-JAG request. AS-1 signs it into the ID-JAG, AS-2 copies the signed entry into the access tokenVand may only narrow it, and the broker checks that the token response carries the entry it sent before it usesV.This PR changes design documents only, under
docs/drafts/agent-identity/. Nothing is built yet.What changes in the design
authorization_detailsparameter. A redemption that still carries one is refused withinvalid_authorization_details. AS-2 processes the signed claim, copies the granted entries intoV, and refuses an empty grant or an unknown type.authorization_detailsmember against the entry it sent, before it usesV. It treatsVas opaque. The check is the broker's, not the gateway's.mecatl_operationparameter is removed. Attempt IDs stay in the broker's own records, joined on the ID-JAG(iss, jti).Vis single use once the vMCP records each token'sjtiand refuses a second call. The vMCP enforces that aVserves only the call its entry names, and only once, for Mecatl's clients first. The widening to all clients is later, behind an embedder setting.Fallout requirements
These are the work items the design needs. Owners are by role.
Vfrom the signed entry, refuses a redemption that still carries the parameter, and refuses an empty or unknown-type grant. Same rescoped issue (#7061).invalid_authorization_detailsrow to the reason-code table. Authorization server: reason codes in error_description for ID-JAG redemption refusals (#7030).Vserves only the call its entry names, and only once, for Mecatl's clients first. Covers batches and methods the call gate does not wire. vMCP: accept an access token for the one call its authorization_details names, once (#7062), rescoped.Replay-revoke is tracked by Revoke the grant a reused subject token created (#6973).
Open items
Not decided in this design, and not yet tracked:
Review notes
🤖 Generated with Claude Code