Repository navigation
docs: decide the project permission model under the platform root - #3539
Conversation
… read ADR 094 proposes a platform resource (getPlatform, listPlatformOperators and a project's kind), the reads a person's credential takes beside a project secret, and the /users/me reads with a person's token, so that an agent signed in as a person finds its projects, who runs the deployment, and where a person signed in. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
A person learns how they hold a project from its effective role and sources, platform_operator among them, as ADR 054 §9 and Console ADR 0004 §5 planned, not from a capability read ADR 075 rejected. Sessions get a type of their own, read and revoked by their user and the project's administrators, operators included, in place of every viewer. Only operators list operators. The CLI's release-time writes take a person's token, variable writes are kept out of MCP tools, and setUserPassword, deactivateTeam and the operations that answer with a credential stay as they are, each with its reason. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
A project owner is admin on the project, operators included. setUserPassword takes a person at admin, raised from editor, and nobody but an operator sets an operator's password. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
There was a problem hiding this comment.
🟡 Changes recommended
Password resets lack a dedicated token scope and MCP secret-input protection, while the proposed authorization reporting cannot reliably capture all active access sources.
3 open issues
What changed in this PR
Proposes ADR 094 to define platform discovery and person-based access across the API, Console, CLI and MCP. No runtime behavior changes.
Changes:
- Defines platform resources and effective project access.
- Proposes session ownership rules and expanded person-token reads and writes.
- Records security constraints, implementation sequencing and open questions.
| File | Description |
|---|---|
docs/adrs/094-platform-as-a-resource.md |
Adds the proposed platform and person-access contracts. |
docs/adrs/README.md |
Indexes ADR 094 and summarizes its decisions. |
Review effort: Balanced
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…rm root Projects carry the workload, so the model is stated per project and the platform enters only as `operator from platform`. Adds the session type with implied tuplesets and its migrations, a cover check for writes that can take over or lock out a user, one credential-class rule, pinned first-party clients for credentials in an answer, the effective-access shape, a table of where the catalog and the gate contract disagree, and the escalation paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
…s a secret Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
Every management operation takes a person's token, a PAT or a machine identity and is an MCP tool; marks on secret-bearing operations warn instead of hiding. The pinned first-party list now only decides who skips consent on the platform issuer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
…the platform project's configuration and credentials to operators Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
Operators only for the platform project's sign-in configuration; the consented scope gates risky calls, in two stages; configuration names who skips consent; the cover check on every project; identifier changes ask admin; passkey registration stays on the application plane; PATs and machine identities wait for their own ADR; events show IP and user agent to admins only. Records the role, project secret, invitation and search decisions for the roles ADR. Three questions remain open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
…ents Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
Owning-team members and operators add members; another platform-project user's credentials and deletion are operators' only; effective access lists every source. Records the cancelInvitation, secret rotation and invitation replacement decisions, and that the roles ADR waits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
…cope Picks up what landed on main in between: #3541, #3539, #3543 and #3542. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U
Picks up what landed on main in between: #3538, #3541, #3539 and #3543. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137eGmVSt2DgYJj2CjZbi1U

Context
client_idon OAuth events), fix(api): take a person's token on the operations a Console session may call, and guard invitations with the grant scopes #3538 (a person's token on the operations a Console session may call) and Team membership - adding a member to a Team that owns a Project does not follow ADR 054 #3470 (owning-team membership).docs/adrs/094-project-permission-model.md.Summary
ADR 094 (Proposed) decides:
operator from platformonproject.admin. No rule names the platform project.sessiontype.projectanduserare implied from the session's row: no tuples are written, andValidateAssignmentrefuses any.admin from projectwith the existing project Check, so the operator SQL path does not change.listMySessionsis new.admin. The caller must also cover every role the target holds. This generalizes "only an operator sets an operator's password", closesopenCredentialTier, and applies to owning-team membership (Team membership - adding a member to a Team that owns a Project does not follow ADR 054 #3470).session.read,session.delete,user.set_passwordandplatform.read.first_partyflag doesn't count there, because an admin of the platform project can set it.getPlatform,listPlatformOperators(operators only) and a project'skind.getProjectandlistMyProjects, in the formaccess.roleplusaccess.sources. It replaces the Console'sGET /projects/{id}probe.Decided on 2026-12-02 and folded in: operators only for the platform project's sign-in configuration; the consented scope gates risky calls, in two stages; configuration names who skips consent on the platform issuer; the cover check on every project; identifier changes ask
admin; passkey registration stays on the application plane; PATs and machine identities wait for their own ADR; requestipanduser_agentin events go to admins only. A section records the role, project secret, invitation andsearchdecisions for the roles ADR.Decided later on 2026-12-02: an owning team's own members and operators add members to it (an admin of the platform project only through ADR 054 §8's recovery path); another platform-project user's credentials and deletion are operators' only; effective access lists every source. The ADR has no open questions left. The roles ADR waits until someone builds help-desk permissions.
Note: open PR #2985 also uses number 094 (
094-project-webhooks.md); whichever merges second renumbers.Validation
node scripts/check-adrs-index.mjspasses.node scripts/check-pr-title.mjspasses.https://claude.ai/code/session_0137eGmTDLdAX6MvNFrobbNT
Generated by Claude Code