Skip to content

docs: correct agent permission-model framing to match shipped D10#2856

Merged
os-zhuang merged 1 commit into
mainfrom
docs/agent-permission-accuracy
Jul 12, 2026
Merged

docs: correct agent permission-model framing to match shipped D10#2856
os-zhuang merged 1 commit into
mainfrom
docs/agent-permission-accuracy

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

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 (a data:read token can never write a record, even where the user could).

Notes

Pure docs + the served SKILL.md string. The permission-model.md change 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/mcp suite 66 green.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 12, 2026 1:03pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/s labels Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/mcp.

9 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/ai/actions-as-tools.mdx (via @objectstack/mcp)
  • content/docs/ai/agents.mdx (via @objectstack/mcp)
  • content/docs/ai/index.mdx (via @objectstack/mcp)
  • content/docs/ai/natural-language-queries.mdx (via @objectstack/mcp)
  • content/docs/api/index.mdx (via @objectstack/mcp)
  • content/docs/deployment/environment-variables.mdx (via @objectstack/mcp)
  • content/docs/plugins/packages.mdx (via @objectstack/mcp)
  • content/docs/protocol/knowledge.mdx (via @objectstack/mcp)
  • content/docs/releases/implementation-status.mdx (via @objectstack/mcp)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang os-zhuang merged commit e8cedec into main Jul 12, 2026
16 checks passed
@os-zhuang os-zhuang deleted the docs/agent-permission-accuracy branch July 12, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant