Skip to content

Phase s tokens#6

Merged
RamiAltai merged 2 commits into
mainfrom
phase-s-tokens
Jun 13, 2026
Merged

Phase s tokens#6
RamiAltai merged 2 commits into
mainfrom
phase-s-tokens

Conversation

@RamiAltai

Copy link
Copy Markdown
Owner

No description provided.

RamiAltai and others added 2 commits June 13, 2026 07:22
Mint scope-bound bearer tokens that the server resolves to a scope,
turning Phase Q's client-asserted scope into an enforced boundary.

- tokens table (CREATE TABLE IF NOT EXISTS, no migration; sha256 hash
  only, plaintext shown once)
- am token new/ls/revoke; identity-file token field + AGENTMAN_TOKEN
- Authorization: Bearer transport; token scope overrides X-Agent-Scope
- mint requires an unscoped caller (all three admin endpoints)
- invalid/revoked token -> ErrInvalidToken -> 401 -> new exit code 9

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@RamiAltai RamiAltai merged commit 1d262a3 into main Jun 13, 2026
1 check passed
@RamiAltai RamiAltai deleted the phase-s-tokens branch June 13, 2026 12:22
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.

1 participant