Skip to content

approval delegation (out of office): self-service only, yet the only entry is in Setup and a regular approver is refused the object #39417

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

What happens

Out-of-office delegation is self-managed by design. packages/plugins/plugin-approvals/src/lifecycle-hooks.ts (the delegation write guard, #4839) forces delegator_id to the acting user and has no admin exemption. The form says so too: 「你只能委派自己的审批,所以这里始终是你」.

But the only way to reach it is Setup → 分派与审批 → 审批委派(外出) (approvals-plugin.ts:210, app setup, behind the group's manage_platform_settings gate). In the walkthrough:

  • The admin can open the form, but can only delegate their own approvals. They cannot set one up for a manager who is going on leave, which is the usual ask.
  • The manager (张经理), the person who approves, has no Setup access. A read of the object answers 403 PERMISSION_DENIED (「您没有执行此操作的权限…」), and the account menu, profile and inbox have no out-of-office entry.

So the people the feature is for cannot use it, and the person who can reach it cannot use it for them.

Smaller items on the same form

  • 委派人 renders as a removable lookup with a ✕ and a browse button, although it can only ever be the caller.
  • 生效时间 says nothing about the time zone, while 失效时间 says 「按 UTC 计」. A Chinese company working in Asia/Shanghai has to convert by hand. Both should use the organization or user time zone, or at least the same rule.

Expected

(origin/main f32b7d6.)

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:ui
    area:workflow
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:workflow · domain:ui · Feature · p2 · pm:queue · size S, touched 2026-12-03T23:22Z. Rationale: the filer's area and grade stand. Approval delegation is meant to be self-service, yet its only entry is in Setup, and a regular approver is refused the object. Issue type set to Feature.
    Grade: area:workflow · Feature · p2 · approvers going out of office · read (new-company walkthrough).

  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw

    维护者速读

    • 问题:审批的外出委派按设计是「每个人只能给自己设」,但入口只放在系统设置里,普通审批人(比如部门经理)进不去,直接访问也被拒绝;进得去的平台管理员又只能给自己设、替不了别人,所以真正要请假的审批人谁也设不上,凡是把审批指给具体某个人的公司,第一位审批人请假就会碰到。
    • 选项:开放本人自助(每位成员在个人区「审批」旁边设置、修改、提前结束自己的外出委派,只看得到自己的,管理员后台照旧,约 2 个 PR);只加文字指引(系统设置里写明「各人自行设置」,但普通审批人依旧被拒,约 1 个小 PR);自助之外再允许管理员替别人设(要推翻八月「委派只能本人管理」的裁决,还要补上谁替谁设的留痕和通知,约 3 个以上 PR)。
    • 推荐:开放本人自助,因为功能说明、表单提示和文档都写着「自助」,现在却只有平台管理员自己用得上,而 Salesforce、ServiceNow、飞书都把它放在个人设置里;这是给全体成员的默认权限加一项,属于必须由维护者亲自定的权限边界。
    • 不定会怎样:审批人请假期间新来的审批照旧堆在本人名下,只能靠管理员一张一张手工转交;管理员若自行给成员开这张表的权限,又会让全公司互相看到谁在休假、休到哪天、什么原因。

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw

    Background

    Out-of-office delegation landed in PR #3235 (2026-07-18) as a self-declared rule: while I am away, approvals routed to me personally go to my backup. The object's own text calls it self-service, the form's help says 「你只能委派自己的审批,所以这里始终是你」, and the docs page says 「Out-of-office delegation is self-service」. Issue #4839 then removed the administrator's branch from the write guard, on the maintainer's ruling of 2026-08-04 (record 5173240116), and the guard's docstring records the result as final: 「a delegation names its own author as delegator」.

    What never landed is the other half: a way for the ordinary approver to reach it. No shipped permission set gives a member the object, and the one menu entry sits in Setup behind the platform-settings gate. QA run #33058 measured it in November (「the run's Ada was refused even her own delegation」, recorded in the approvals checklist) and the new-company walkthrough behind this card measured it again on 2026-12-03. The capability is declared for the approver and reachable only by a platform administrator, for themselves.

    The precedent for opening an approvals object to members. Record 6849636735 on #32442 (2026-11-13), quoted: 「F1 → 1B. plugin-approvals grants every signed-in member read on sys_approval_request. request-read-gate.ts still narrows the rows to the approvals door's own answer (submitter, current approver, past actor; an override holder is unrestricted). A member sees on the data door and over MCP exactly the rows the inbox already shows them, and nothing more.」 and 「Not chosen: 1A (each app grants the read; out of the box no approver's agent sees the object)」. The shape that ruling set: the baseline opens the object, and something else decides which rows. Here nothing else decides which rows are read, which is the correction to the zone's premise under Premises 3 and 4.

    What #4839 ruled about administrators. Record 5173240116, quoted: 「delegation 豁免:先查证后定 —— dev 须先以证据回答「审批人不可用时,admin 是否已有正规路径处置其名下在途审批(recall / reject / 重新发起等)」:覆盖 → delegation 同取 3(「仅本人管理委托」为最终语义);不覆盖 → delegation 单独取 1,且必须复用 isOverrideActor 的 ADR-0095 判据」. The evidence came back "covered" (acceptance record 5173404623: reassign and recall exist, pinned by executable tests in PR #5049), so 「委托仅本人管理」 became the final semantic. The evidence was about approvals already in flight. It did not ask about requests that open later while an approver is unexpectedly away; that residue is named under option C and the confidence gaps.

    Governing text

    • packages/plugins/plugin-approvals/src/sys-approval-delegation.object.ts:7: 「self-service out-of-office (OOO) delegation」; :28-32: 「this is the community-core OOO auto-skip only. Long-term proxy "act-as" access […], delegation governance / segregation-of-duties, and org-wide administration of others' delegations are enterprise concerns tracked separately (objectstack-ai/cloud#855), not here」; :43-47: 「a user authors their own out-of-office delegation […] RLS/permission sets are the authz」.
    • packages/plugins/plugin-approvals/src/lifecycle-hooks.ts:1524-1547: 「Delegation is SELF-MANAGED — there is no admin exemption (plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839)」, 「So the semantic is final: a delegation names its own author as delegator; acting for someone else is done through the approval-level override」.
    • Maintainer ruling 5173240116 on plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839 and acceptance record 5173404623 (quoted above).
    • Record 6849636735 on [Decision] Should an approver be able to see and decide their pending approvals over MCP? #32442, letter 1B (quoted above).
    • Rulings 6968686390, 6969143776 and 6973785798 on console: a personal Notification Settings page in the Account app over sys_notification_preference (per topic × channel, digest, quiet hours) #34728 (a member's own notification preferences): a member reads and writes only their own rows and cannot delete; the own-row rule declares a write check; 「规则对每个拿到权限的人都生效,另给组织所有者和管理员一条放行规则」. Landed as PR feat(account): a Notification Settings page for each person's own notification preferences #35122. This is the closest landed shape to option A.
    • Ruling 7131539862 on 平台内置任务、备忘对象(第一步:不挂关联) #36942 (tasks and notes): read, create and edit, no delete; 「Delete for one's own rows goes to its own card (the existing own-row-delete door), not this one」.
    • ADR-0090 D5 (docs/adr/0090-permission-model-v2-concept-convergence.md:239-262): the lint 「hard-blocks high-privilege bits on everyone bindings: […] allowDelete」; its note of 2026-11-14 (:312-317, ruling of record 6879388034): 「removing a row one owns is not a delete bit. A member withdrawing a row they own is served by an own-row delete door」.
    • packages/plugins/plugin-security/src/objects/default-permission-sets.ts:663-679: the member baseline is explicit-allow, 「Maintainer ruling (2026-08-07) […] declared IS enforced」; :1207-1210: 「an object with no applicable policy compiles to a null Layer 1 — i.e. no row filter at all」.
    • ADR-0103 (docs/adr/0103-managedby-write-policy-and-engine-write-guard.md:35): 「sys_approval_delegation — user-facing "who covers for me" config」.
    • ADR-0049 (enforce-or-remove) and AGENTS.md Prime Directive chore: version packages #10 corollary (AGENTS.md:234-236): 「never advertise or demo a capability the runtime doesn't actually deliver (declared ≠ enforced)」.
    • ADR-0091 D7 (docs/adr/0091-grant-lifecycle-and-recertification.md:171-175) lists 「Delegation self-service UX」 under Enterprise. Read: it rules position delegation (职务代理, sys_user_position), a different object; the out-of-office object's own docblock places it in the community core. Named as a confidence gap.
    • SKILL.md 〈升级与决策〉: 「spec 声明 > 实现 > 文档面;声明而未兑现是实现缺口,补实现或退役」; decision-analysis.md: 「契约迁就实现、分期半量(缺陷除外)⛔ 不荐」, 「安全/权限边界与破坏性难逆动作恒在人工地板」.
    • Search: git grep -n -iE 'out.of.office|sys_approval_delegation|approval.{0,20}delegation' origin/main -- AGENTS.md docs/adr → 2 hits, both ADR-0103 (:35, :192). No ADR states who may read or write a delegation row; the object docblock and the two rulings above are the governing text.

    Protocol statement

    No option changes what a metadata author can write: no spec key, no accepted value, no metadata type. Every option is Metadata-protocol: none. A and C change a runtime permission boundary on the baseline every signed-in member resolves, so they are Clause-②: yes: a widening for members, and at the same time a narrowing for any non-administrator who reads colleagues' rows today through another set (see "Who reads and writes what"). PR #35122 declared a bare Clause-②: yes for the same shape; the arm is the contract review's call. B is Clause-②: no.

    Premises, each with its re-check (origin/main e43597b)

    1. No shipped set gives a member the object. git grep -n "sys_approval_delegation" origin/main -- packages/plugins/plugin-security/src → 0 hits (exit 1). The member baseline opens at default-permission-sets.ts:656 and its object list ends at :978: git grep -n "name: 'member_default'\|sys_note: {" origin/main -- packages/plugins/plugin-security/src/objects/default-permission-sets.ts. Executed sighting: git grep -n "refused even her own delegation" origin/main -- docs/qa/platform-checklist/areas/approvals.json → :1003.
    2. The only menu entry is in Setup, behind the platform-settings gate, which an organization administrator does not hold either. git grep -n "nav_approval_delegations" origin/main -- packages/plugins/plugin-approvals/src/approvals-plugin.ts → :210; git show origin/main:packages/platform-objects/src/apps/setup.app.ts | sed -n 109,116p → the group's requiredPermissions: ['manage_platform_settings'] at :115; git grep -n "systemPermissions: \['manage_org_users'" origin/main -- packages/plugins/plugin-security/src/objects/default-permission-sets.ts → :492, a list without that permission. Different from the card's reading in one detail: an organization owner or admin holds the object through their wildcard but is not shown the menu.
    3. The write guard covers create and edit, and only the delegator named in the write. git show origin/main:packages/plugins/plugin-approvals/src/lifecycle-hooks.ts | grep -n "registerHook('before.*makeGuard" → :1591 (beforeInsert) and :1592 (beforeUpdate), nothing else; :1588 refuses only when the write itself carries a foreign delegator; :1559 lets the system context through. It does not look at the stored row on an edit, does not run on delete, and does not run on read. Pinned: git grep -n "allows a member update that does not touch delegator_id" origin/main -- packages/plugins/plugin-approvals/src/approval-service.test.ts → :4035. This differs from the zone's reading (「the write guard already makes [read and create] safe」): the guard makes create safe; it says nothing about read.
    4. A bare read grant would be organization-wide. The object has no owner anchor and defaults to a public sharing model (lifecycle-hooks.ts:1513-1515), and an object with no applicable row policy gets no row filter (default-permission-sets.ts:1207-1210). git show origin/main:packages/plugins/plugin-approvals/src/lifecycle-hooks.ts | sed -n 1511,1516p. So "read on their own rows" needs a row rule that does not exist today. A code reading, not run.
    5. The permission-set shape can scope rows to their owner, and has done so for exactly this situation. git show origin/main:packages/plugins/plugin-security/src/objects/default-permission-sets.ts | sed -n 1141,1156p → sys_notification_preference_self (operation: 'all', using and check on the user column, no positions) and its organization owner/admin widener; the grant line is :815. By contrast sys_approval_request's line (:930) carries no row policy because its rows are decided by the approvals plugin's own read gate (:914-929).
    6. A member's edit and delete of other people's rows is already floored; an administrator's is not. owner_only_writes / owner_only_deletes (default-permission-sets.ts:1015-1027) key on created_by and bind org_member only. git show origin/main:packages/plugins/plugin-security/src/objects/default-permission-sets.ts | sed -n 1014,1028p. So, by reading and not run: an organization owner/admin or a platform administrator can today change the backup or the dates on, or delete, another person's delegation, as long as the write does not carry the delegator. plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839 closed "declare for someone else"; it did not rule this face.
    7. Routing does not depend on who can read the row. The approval service reads delegations as the system: git show origin/main:packages/plugins/plugin-approvals/src/approval-service.ts | sed -n 5670,5675p → context: SYSTEM_CTX at :5674. An own-row rule cannot stop a delegation from applying.
    8. The backup does not need to read the row. They become a real pending approver and are told: git grep -n "approval.ooo_substituted\|skipped approver are notified" origin/main -- content/docs/automation/approvals.mdx → :797, :1398; the reroute is an audit action on the request.
    9. The personal area already exists and already holds the approvals inbox. git show origin/main:packages/platform-objects/src/apps/account.app.ts | sed -n 53,55p (no required permission: every signed-in user reaches it) and sed -n 145,159p (the Approvals entry, opening approvals:inbox). The inbox page is ui/apps/console/src/registerApprovalsComponents.tsx:59. A capability package already places an entry in this app: git grep -n "app: 'account'" origin/main -- packages/mcp/src/connect-ui.ts → :162.
    10. A delegation is consulted only when a request opens. lifecycle-hooks.ts:1531-1535; pinned: git grep -n "declared AFTER the request opened" origin/main -- packages/plugins/plugin-approvals/src/admin-exemption-retired.test.ts → :223. Requests already waiting stay where they are under every option.
    11. The published text promises self-service. git grep -n "Out-of-office delegation is self-service" origin/main -- content/docs/automation/approvals.mdx → :1418; git grep -n "你只能委派自己的审批" origin/main -- packages/plugins/plugin-approvals/src/translations/zh-CN.objects.generated.ts → :381.
    12. The time-zone remark is a copy defect, separate from this decision. The form's date-and-time control reads and writes the browser's local clock and stores an instant: git show origin/main:ui/packages/core/src/utils/native-date-value.ts | sed -n 28,30p and sed -n 46,53p. So 「按 UTC 计」 on the end time (sys-approval-delegation.object.ts:141; zh-CN :393) is true of a raw API write and wrong for someone filling the form in Shanghai, and the start time (:132; zh-CN :389) says nothing. Out of scope here: it moves no permission and needs no ruling.

    Premises 4 and 6 are code readings. Nothing was run on a boot or in a browser for this analysis; the executed evidence is the QA record in premise 1 and the walkthrough in the card.

    1. The question in one sentence

    A manager about to go on leave cannot tell the system who covers their approvals, because the only place to do it is an administrators' screen they cannot open, and the administrator who can open it is only allowed to set their own: should every member be allowed to set, see and change their own out-of-office rule, from their own personal area?

    2. Options × real cost × effort

    Refinements to the zone's options are flagged after the table.

    What is built What the customer sees Effort
    A Self-service reaches the approver The member baseline gains read, create and edit on the object, no delete. A new own-row rule (the delegator is the caller, on read and on write, with a write check) binds everyone who holds the grant; a second rule keeps organization owners and admins as they are today. A personal entry next to Approvals in the personal area, on a "mine" view. One sentence on the Setup page saying where each person sets their own. Docs and the QA checklist item corrected. Any member opens their avatar menu, goes to their inbox section, names a backup and the dates, and later edits or ends it. They see only their own rule; nobody else can read from this table that they are away, until when, or why. Forging a rule for a colleague stays refused. The administrators' grid in Setup is unchanged. domain:server (plugin-security, plugin-approvals, platform-objects) · 2 PRs, the first at contract-review tier. ① Grant and row rules: precedents #33617 (+271/−8, 5 files: a member grant with no row rule), #15108 (+687/−42, 7 files: an object bit plus an own-row rule), #35122 (+2624/−36, 46 files: the same grant-plus-two-rules shape, with a custom page and a new read route this card does not need). ② Entry, view and copy: precedents #30935 (+299/−104, 38 files: an entry placed in the personal area by a capability package, with locales), #25420 (+47/−10, 9 files: help copy on this same form).
    B A sentence in Setup only The Setup page and the docs say each person sets their own. No permission moves. The administrator reads that each person sets their own. The manager still has no screen and is still refused. In practice the capability stays usable by platform administrators for themselves, unless an administrator hand-builds a permission set. domain:server · 1 PR · precedent #25420 (+47/−10, 9 files).
    C A, plus administrators declare for others Everything in A. The write guard regains an administrator branch (on the existing override criteria, as record 5173240116 required for that branch), with a record of who declared for whom and a notice to the person whose approvals were redirected. The #4839 pins and two QA checklist clauses are reversed. As A, and an administrator can set up cover for a manager who is already away, or for anyone else, pointing that person's future approvals at whoever the administrator names. A's 2 PRs plus at least 1 · the nearest landed work is the removal of that branch, #5049 (+624/−23, 4 files); 无先例 for a declaration on someone else's behalf with its audit.

    Effort gap: B is one copy PR; A is two PRs whose nearest precedents run from +271 to +2624 lines. That is more than 3×. The readings on ① are not close (below), so the gap does not weigh; it is named here as the template requires.

    Refinements to the zone's A, each flagged:

    • Own rows need a new row rule, plus a rule that keeps administrators whole. The zone's A rested on the write guard; premises 3 and 4 show the guard does not scope reads. Without the row rule A would let every member read everyone's absence, dates and reason.
    • No delete bit. ADR-0090 D5 forbids it on this baseline. A member ends a delegation early by editing its end time, which the edit grant covers. Removing the row outright is the own-row door of the 2026-11-14 note, and goes to its own card as ruling 7131539862 did for tasks and notes.
    • The backup does not read the rule that names them. They are told by a notification and by the audit line on each rerouted request (premise 8). No one has asked for more; letting them read it would be a further widening and is left out.
    • The entry's place is named: the personal area, beside Approvals. That is metadata only. A button inside the inbox page itself would be new interface code in ui/ and is not needed for the ruling.
    • Split out, no ruling needed: the time-zone wording (premise 12) and the delegator picker's ✕ and browse button. Both are ordinary copy and form fixes.

    3. What each option means in business terms

    • A: an out-of-office auto-forward for approvals, like an e-mail auto-reply: yours to switch on, yours to switch off, and nobody else reads it.
    • B: a notice on the office door saying "set your own auto-reply", while the only terminal that can set one is inside the locked office.
    • C: A, plus the office manager may redirect anyone's incoming approvals to a person of the office manager's choosing: a power of attorney signed by someone other than the principal.

    4. The four axes, argued from the business

    • ① 项目长远合理性: A. End state in two years: every person who can be an approver sets their own cover from their personal area, next to the approvals waiting on them; the rule is theirs alone to see and change; routing honours it without anyone holding a wider grant. That is where the mainstream puts it, from memory and not re-read for this analysis: Salesforce (each user names a delegated approver in their own approver settings), ServiceNow (a user's delegates are set from their own profile), SAP (substitution rules in the user's own inbox), Feishu and DingTalk approvals (a personal setting inside the approvals app). A shrinks a special case: it removes the one self-service object whose only door is an administrators' screen, in the same shape already ruled for notification preferences, tasks and comments, and it declares nothing new. It does add one line and two row rules to the baseline, which is contract growth and is counted against it. B keeps the declaration and the reach apart and settles the gap by rewording, which the rules name as not recommendable (契约迁就实现). C is honest about one thing: the same mainstream products also let an administrator set this for another user. This project has already drawn that line elsewhere, twice: the maintainer's ruling on plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839 and the object's own scope note, which assigns administration of others' delegations and its governance to the enterprise edition. C would put in the core a second way to redirect a person's approvals, without the governance that note reserves.
    • ② 实际业务拉动: no production customer is named. The pull is two measured sightings of the same wall: QA run QA run · touched:5fb79bc0 (24/147) · ee9ad834 · 2026-11-13 · 17 PASS / 6 PARTIAL / 1 FAIL / 0 BLOCKED / 123 NOT-RUN #33058 (2026-11-13, a stock member refused her own delegation) and the new-company walkthrough behind this card (2026-12-03, the manager refused, no entry in the personal area). Every company that routes an approval to a named person, a field or the submitter's manager meets it at the first approver's leave. For C the card says setting it up for a manager going on leave is 「the usual ask」; under A that manager does it in a minute, so what is left for C is the unplanned absence, and nobody has measured that ask. Nobody has asked for the backup to read the rule.
    • ③ 防 AI 犯错: today the failure is loud (the member is refused). B keeps it loud, and invites the quiet mistake one step later: an administrator or an app author who "fixes" the refusal with a hand-built grant gets no row rule with it, so every holder silently reads every colleague's absence and reason. A makes that repair unnecessary. A's own failure modes are the ones to pin, and both are silent: the row rule left out leaks the whole table to every member; the administrators' rule left out blanks the organization owner's Setup grid on the default posture (the trap measured on invitations in [finding] org_member can read every sys_invitation row in the org — other people's emails, granted roles, inviter — intended? #8095). Forging stays loud under A, refused by the guard and again by the rule's write check. C fails in the dangerous direction: a mis-set or malicious declaration silently reroutes someone else's approvals, and only an audit trail built for it would show that.
    • ④ 创业阶段不扩散: A adds no key, no gate, no object and no page: one grant line, two row rules, one menu entry, one list view. B is the cheapest today and exports its cost to every customer's administrator. C restores a branch deleted in fix(approvals): 删除两处读 session.roles 的 admin 豁免 —— 记录锁与委托守卫回到单一权限词汇 (#4839) #5049 together with new audit and notification duties, a permanent obligation with no measured pull, on ground the enterprise card already claims.

    Prior rulings read: delegation,delegator,delegate,out-of-office,self-service,member_default,everyone,anchor,approval → 63 hits; ADR-0090 D5, ADR-0090 D9, ADR-0091 D3, ADR-0091 D7, ADR-0092 D5, ADR-0131 D5 (named by the script; read: D5 of ADR-0090 bounds the answer with no delete bit on this baseline, ADR-0091 D3/D7 rule position delegation, the others do not bear on it; none answers who may read or write an out-of-office rule), plus ADR-0103, ADR-0049, maintainer ruling 5173240116 and acceptance 5173404623 (#4839), records 6849636735 (#32442), 6968686390 / 6969143776 / 6973785798 (#34728), 7131539862 (#36942) and the ADR-0090 note of 2026-11-14 (6879388034, read in the ADR, not fetched); thread: none; repo: objectstack-ai/objectstack

    5. Who reads and writes what under each option (human floor)

    This is a change to the baseline every signed-in member holds. It is on the human floor: no seat may choose it, the four facets agreeing is not a licence, and nothing below is to be built before the maintainer answers.

    A member, own rule A member, a colleague's rule The backup named on a rule Organization owner / admin Platform administrator
    Today refused at the object refused at the object no read; told by notification holds the object, not shown the menu; reads all, creates only their own, may edit or delete anyone's (premise 6, by reading) reads all in Setup, creates only their own, may edit or delete anyone's (by reading)
    A reads, creates, edits; cannot delete not listed, not found, cannot edit or delete unchanged unchanged unchanged
    B as today as today unchanged unchanged unchanged
    C as A as A unchanged as today, and may create a rule naming any member of their organization as the one who is away as today, and may create one for anyone

    Four things under A the maintainer should know before choosing it:

    • The first row rule on this object also narrows some readers. Anyone who is not an organization owner, admin or platform administrator and reads colleagues' rows today through another set loses them: holders of the shipped read-only viewer set (its read wildcard is default-permission-sets.ts:1404) and holders of any hand-built grant. Ruling 6973785798 chose exactly this reach for notification preferences. Recommended: the same here.
    • Ending early is an edit, not a delete. For a delegation that has started, moving the end time to now is enough. For one that has not started yet, the window rule (sys-approval-delegation.object.ts:200-211) refuses an end at or before the start, so the member must also clear the start. Workable, clumsy; a one-click "end now" or the own-row removal door is follow-up, on its own card.
    • Administrators keep what they have today, including the unruled face in premise 6. If an administrator editing someone else's rule should stop, say so in the ruling and it lands with A; otherwise A leaves it exactly as it is.
    • A person can be named as backup without being asked and cannot see the rule. They learn of it when the first approval arrives. This is today's behaviour for administrators' own rules; A extends it to every member's.

    6. Recommendation

    A. Self-service reaches the approver, as refined above, in two PRs landing in order (grant and row rules first; the entry is gated on the object, so a member sees no dead menu in between).

    No staging is proposed beyond the two-PR order: the grant without the entry would give members an API-only door, and the entry without the grant is a dead menu.

    Self-check: 只看①选 A;②③④ 是否翻转:否.

    Confidence gaps (none changes the recommendation):

    • Premises 4 and 6 are read from code, not run. The first step after a ruling for A is the red test on a real boot.
    • objectstack-ai/cloud#855, the enterprise card the scope note names, could not be read from this session. The edition line is taken from the docblock alone; if that card has since been closed or re-scoped, C's "already claimed elsewhere" argument weakens, and its conflict with ruling 5173240116 stands regardless.
    • ADR-0091 D7 lists self-service delegation UX as an enterprise item. Read here as covering position delegation only. If the maintainer reads it as covering this entry too, A shrinks to the grant and rules plus the Setup sentence, and the entry moves to the cloud repository; say so in the ruling.
    • The reference-platform sentence is from memory, not from vendor documentation read in this session.
    • Whether a member's list would show a Delete button that then answers 403 (the object's default affordances are full CRUD) was not measured; it is an execution check below.
    • Whether the Setup form sends the whole record on save was not measured. If it does, an administrator's edit of another person's rule is refused through the form and admitted only through the API; premise 6 holds either way for the API.
    • The unplanned-absence case: plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839's evidence covered approvals already waiting. A request that opens later while the approver is still away routes to them and needs reassigning one at a time. Not measured as an ask; it is C's only residual case.

    Post-ruling execution

    • If A: the seat files two execution cards in domain:server (p2, security, area:workflow), Clause-②: yes, Metadata-protocol: none, the first reviewed at the contract-review tier, both with Ruling-ref: this card's ruling record plus 5173240116 and 6973785798.
      • Card 1, grant and rules. The dev first writes the red test on a real boot: a stock member's create of their own delegation answers 403 at the object gate on main. If it is green on main the premise is false: report a fork, build nothing. Then: the baseline line (read, create, edit, no delete); an own-row rule in the sys_notification_preference_self shape keyed on the delegator, with a write check and no positions; an organization owner/admin widener in the sys_notification_preference_org_admin shape, minding that rule's documented insert-check caveat. No change to the write guard. Pins the PR owes, at the HTTP level, on a fixture with at least two delegators: a member creates their own (an omitted delegator is stamped) and edits it; forging a colleague's is refused; list, read-by-id and count return only their own; a colleague's row cannot be edited or deleted; their own row cannot be moved to another delegator; delete is refused; a delegated admin behaves as a member; the organization owner on the default posture still lists every row; the platform administrator is unchanged; an external member gets nothing; a request opened afterwards is rerouted by a member-created delegation.
      • Card 2, reach. A "mine" list view; an entry in the personal area's inbox group directly after Approvals, gated on the object, with its labels in every shipped locale; one sentence on the Setup page saying each person sets their own from their personal area; content/docs/automation/approvals.mdx:1418-1419 corrected; docs/qa/platform-checklist/areas/approvals.json:984 re-pointed (a stock persona's forged row is now refused by the guard, not at the object gate). Browser-verified as a non-admin, including that no Delete control is offered that answers 403.
      • Ruled together with the letter unless the maintainer says otherwise: no delete bit; the backup does not read the rule; administrators unchanged; the entry sits in the personal area.
      • No fallback to B if a pin cannot be met: fork.
    • If B: one copy PR through the docs lane. It must also correct the docs sentence so it no longer promises self-service to members, naming who can use it today, and warn that a hand-built grant needs its own row rule. This card closes; the gap stays recorded.
    • If C: the ruling must say in words that it reopens 5173240116. Then A's two cards, plus a third at the contract-review tier: the guard's administrator branch on the override criteria only, who-declared-for-whom recorded on the row and in the audit trail, the person whose approvals were redirected is notified, the plugin-approvals 的 admin 豁免读 session.roles,而 ObjectQL 的 buildSession() 从不填充它 —— 记录锁/delegation 守卫的 admin 覆盖在真实引擎路径上永不生效 #4839 pins and the two checklist clauses reversed in the same PR. The seat checks the enterprise card before filing, so the two editions do not build it twice.
    • Under any letter, filed as ordinary cards with no ruling needed: the time-zone wording on the two date fields; the delegator picker's ✕ and browse button.

    Related

  4. added
    needs-user-decision
    and removed
    pm:queue
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowdomain:uienhancementneeds-user-decisionpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions