docs(permissions): rewrite content/docs/permissions/* to the Permission Model v2 vocabulary (ADR-0090)#2717
Merged
Merged
Conversation
…on Model v2 vocabulary (ADR-0090) - roles.mdx → positions.mdx: flat positions (岗位), assignment BU anchor, built-in identity positions, everyone/guest audience anchors; the hierarchy narrative moves to business units. - profiles.mdx → migration tombstone: the Profile concept was removed (D2); maps each former use to everyone-anchor bindings, isDefault suggestions, and position-bound sets. - permission-sets.mdx: rewritten as the single capability container — union semantics, access depth (moved here from profiles), capabilities, built-in sets (additive member_default baseline), governed assignment tables, isDefault suggestion, adminScope delegated administration, package provenance. - sharing-rules.mdx: OWD default corrected to fail-closed private (D1 — the page previously documented the pre-v2 fail-open default), canonical four values only, externalSharingModel dial (D11), recipient types position / unit_and_subordinates / team. - authorization.mdx: position vocabulary, D1/D11 in the enforcement chain, delegated-admin gate in anti-escalation, new explain-engine section (D6), D7 linter + access-matrix snapshot added to governance, ADR-0090 in the index. - permissions-matrix.mdx: role-hierarchy section replaced with business-unit hierarchy & positions; isProfile removed from samples; position recipients. - permission-metadata.mdx: isProfile → isDefault/adminScope in the field table; union-semantics section replaces Profile-vs-Set; current_user.positions. - index.mdx: five-concepts overview, v2 implementation-status callout, best practices and example updated. - access-recipes.mdx / field-level-security.mdx: link + heading fixes. Authoritative reference: docs/design/permission-model.md; decision record: ADR-0090 (P1 #2697, P2 #2708, P3 #2711, P4 #2716). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012oLzaP8n7A3YKFmgaHWC8H
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
os-zhuang
marked this pull request as ready for review
July 9, 2026 08:35
This was referenced Jul 10, 2026
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
Brings the hand-written permission docs in line with Permission Model v2 (ADR-0090, landed across #2697/#2708/#2711/#2716). This closes the highest-value slice of the docs-drift list those PRs flagged — the pages that actively documented the old model, including one documented fail-open default that P1 inverted.
Page-by-page
roles.mdx→positions.mdx— flat positions (岗位), no parent tree; the hierarchy narrative moves to business units; assignment BU anchor; built-in identity positions;everyone/guestaudience anchors and their binding tier.profiles.mdx— migration tombstone: the Profile concept was removed (D2); a table maps each former use toeveryone-anchor bindings,isDefaultsuggestions, and position-bound sets.permission-sets.mdx— rewritten as the single capability container: union semantics, access depth (moved here from the old profiles page), capabilities, built-in sets with the additivemember_defaultbaseline (D5), the governed assignment tables (D12),isDefault,adminScopewith a worked 华东 example, package provenance.sharing-rules.mdx— corrects the documented OWD default: the page said "the default is open, not private"; since D1 an unset/unknownsharingModelfails closed toprivateand the D7 linter makes it a build error. Also: canonical four values only,externalSharingModeldial (D11), recipient typesposition/unit_and_subordinates/team.authorization.mdx— position vocabulary in the three-way separation; D1/D11 in the enforcement chain; delegated-admin gate in the anti-escalation paragraph; new Explaining a decision section (D6security.explain); the D7 publish linter and the access-matrix snapshot added to the governance section; ADR-0090 in the index.permissions-matrix.mdx— role-hierarchy section replaced with business-unit hierarchy & positions (mermaid updated);isProfileremoved from all samples;positionrecipients; evaluation-order step 1 reworded.permission-metadata.mdx—isProfile→isDefault/adminScopein the schema table; "Profile vs Permission Set" replaced with union semantics;current_user.positions.index.mdx— five-concepts overview paragraph, v2 implementation-status callout, best-practice sections (permission sets / positions / BU depth), checklist and real-world example updated.access-recipes.mdx/field-level-security.mdx— link and heading fixes.meta.json):roles→positions; no dangling/docs/permissions/roleslinks remain incontent/.Authoritative reference:
docs/design/permission-model.md· decision record: ADR-0090.Verification
pnpm turbo build --filter=docsgreen (full docs-site build over the rewritten pages)grepsweeps: no remainingisProfile(outside the migration note),role_and_subordinates,sys_role*,type: 'role', orcurrent_user.rolesincontent/docs/permissions/🤖 Generated with Claude Code
https://claude.ai/code/session_012oLzaP8n7A3YKFmgaHWC8H
Generated by Claude Code