docs: correct agent permission-model framing to match shipped D10#2856
Merged
Conversation
The agent docs described MCP OAuth as "runs as you / scopes narrow tool families" — inaccurate after the ADR-0090 D10 agent work shipped (#2838/#2843/#2845). An OAuth client is now an agent acting ON BEHALF OF the user, bounded by the INTERSECTION of the consent scopes and the user's own permissions/RLS, and scopes are a real data-layer ceiling (a data:read token can never write, even where the user could) — not just a tool-family filter. - packages/mcp/src/skill.ts (SKILL.md served to every connecting agent): fix "runs as you" → agent-on-behalf + scope-ceiling intersection. - content/docs/ai/agents.mdx: same correction, user-facing. - docs/design/permission-model.md: mark the overlap rule *enforced* (#2838/#2843/#2845); honestly mark the three still-PLANNED agent guardrails — the grant-ceiling *lint* (runtime intersection already caps it; the bind-time lint is #2849), destructive-action co-sign, and the double-signature audit provenance (writer stamps only the delegator today). - docs/adr/0090: status note that D10 evaluation semantics landed. mcp suite 66 green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 9 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
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.
Documentation accuracy pass after the ADR-0090 D10 agent work shipped this session (#2838 / #2843 / #2845). The agent docs still described the old model — "runs as you / consent scopes narrow which tool families" — which is now inaccurate.
What changed and why
An OAuth-connected MCP client is now an agent acting on behalf of the signing-in user, resolved to
principalKind:'agent'+onBehalfOf. Every call is bounded by the intersection of a scope-derived ceiling and the user's own permissions/RLS — it can never exceed either. Consent scopes are a real data-layer ceiling, not just a tool-family filter (adata:readtoken can never write a record, even where the user could).packages/mcp/src/skill.ts(the SKILL.md served atGET /api/v1/mcp/skill— downloaded by every connecting agent): "every operation runs as you" → the intersection framing + the read-only-scope-can't-write caveat.content/docs/ai/agents.mdx(user-facing): same correction to the OAuth track.docs/design/permission-model.md— the "declared ≠ delivered" reconciliation:docs/adr/0090— a status note that D10 evaluation semantics have landed.Notes
Pure docs + the served SKILL.md string. The
permission-model.mdchange is the honest counterpart to the D11 liveness discipline — it stops the design doc from over-claiming agent guardrails that are still on the roadmap while under-claiming the intersection that now ships.@objectstack/mcpsuite 66 green.🤖 Generated with Claude Code