fix(server): identify agent calls with the machine's formae client id - #38
Open
JeroenSoeters wants to merge 2 commits into
Open
fix(server): identify agent calls with the machine's formae client id#38JeroenSoeters wants to merge 2 commits into
JeroenSoeters wants to merge 2 commits into
Conversation
JeroenSoeters
marked this pull request as draft
August 26, 2026 16:51
Contributor
Author
|
Held until the next formae release ships: the query-key documentation in this PR describes the |
JeroenSoeters
marked this pull request as ready for review
August 26, 2026 17:08
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
internal/clientidresolver reads~/.pel/formae/cli_client_id(the id the formae CLI persists), validates it as a single header-safe token, and caches it for the process lifetime. When the file is missing or invalid it falls back to the previous"formae-mcp"literal, uncached, so a later call picks up the file once it exists; a command never fails because of identity plumbing. The resolver never executes a binary.Client-ID;client:mefrom this server now means "this machine, shared with the CLI" when the id file exists.user:command-query key in every hand-maintained copy of the grammar (tool description, input schema, query-syntax resource):user:merides the bearer token and means the human; a UUID or KSUID value matches the subject id; anything else matches the display name.