Skip to content

Commit f0a830d

Browse files
authored
docs(approvals): name delegated_admin in the org-membership tier vocabulary (#152)
Both sites in content/docs/build/automation/approvals.mdx now spell the org-membership tier as the four values sys_member.role enforces, in ADR-0108 display order: the approvers type table row (:77) and the position-vs-tier warning callout (:88). The card's open fork — whether the table row was correct as the approver picker's narrower vocabulary — resolves as drift by measurement: packages/spec/src/automation/approval.zod.ts derives ORG_MEMBERSHIP_LEVELS from BUILTIN_MEMBERSHIP_ROLES and binds org_membership_level to it, so the picker's vocabulary and the column's are the same four values. Both sites were wrong the same way. The role deprecated-alias note is preserved verbatim across an ~80-column reflow. The zh-Hans sibling is deliberately untouched: locale files belong to the translation account and it was already stale on main. Defining the tier is a corpus-wide gap, filed as #153 rather than half-answered in a callout about a different confusion. Fixes #131
1 parent cb41537 commit f0a830d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎content/docs/build/automation/approvals.mdx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Each entry in `approvers` names a `type` and a `value`:
7474
| `team` | Members of a flat collaboration team |
7575
| `field` | The user id held in a field on the triggering record |
7676
| `user` | One named user id |
77-
| `org_membership_level` | An org-membership tier (`owner` / `admin` / `member`) |
77+
| `org_membership_level` | An org-membership tier (`owner` / `admin` / `delegated_admin` / `member`) |
7878
| `expression` | A CEL expression resolved at node entry — see below |
7979

8080
Prefer the indirect bindings (`manager`, `position`, `department`,
@@ -85,12 +85,12 @@ should no longer see them.
8585
> **Warning — `position` vs the membership tier.**
8686
> `{ type: 'position', value: 'finance_manager' }` routes to the holders of a
8787
> position (`sys_user_position`). The org-membership tier (`sys_member.role`:
88-
> `owner`/`admin`/`member`) is addressed as `type: 'org_membership_level'`
89-
> since 16.0; the old spelling `role` is a **deprecated alias for one
90-
> release** — it still loads and resolves identically, with a warning, and is
91-
> removed in the next major. A position name authored as the membership-tier
92-
> type matches nobody and the request stalls. `os lint` flags both cases
93-
> (`approval-approver-not-membership-tier`,
88+
> `owner`/`admin`/`delegated_admin`/`member`) is addressed as
89+
> `type: 'org_membership_level'` since 16.0; the old spelling `role` is a
90+
> **deprecated alias for one release** — it still loads and resolves
91+
> identically, with a warning, and is removed in the next major. A position name
92+
> authored as the membership-tier type matches nobody and the request stalls.
93+
> `os lint` flags both cases (`approval-approver-not-membership-tier`,
9494
> `approval-approver-type-deprecated`); if the value names an org position,
9595
> the fix is `type: 'position'`.
9696

0 commit comments

Comments
 (0)