Skip to content

Commit 435089b

Browse files
committed
docs(approvals): state what this head does on a failed membership read; changeset names the per-rule record pass
Claude-Session: https://claude.ai/code/session_01ADHkmS2E1xdkLMJPnabYgC Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4c34c3c commit 435089b

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎.changeset/29362-role-holders-complete.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Both expansions read `sys_member` once with a 10,000-row bound and took that rea
1818
- **Smaller roles are unchanged.** A role or tier held by fewer than 10,000 members issues one read, as before, and answers the same set.
1919
- **Loud, never short or empty.** A read that fails, or a page the driver returned without honouring the id cursor, now throws instead of answering `[]`.
2020
- Sharing: the expansion rejects, so that rule's reconcile or revoke pass fails, its callers log their existing per-rule warning, and the grants it already holds stay as they were. Before, the retired-recipient revoke compared a rule's materialised grants against that empty answer and revoked every one of them.
21-
- Approvals: the approver slot falls back to its literal (`position:NAME`, which whoever holds the position can still act on, or `org_membership_level:NAME`), and the warning now says the directory read failed and carries its `error`. Before, a `position` approver routed to its assignment-table holders alone, which looked like a complete slate, and an `org_membership_level` approver logged "expanded to nobody".
22-
- **A missing table is still no holders.** A stack that never creates `sys_member` keeps answering `[]`, judged by the shared missing-table predicate rather than by swallowing every error.
21+
- Approvals: the approver slot falls back to its literal (`position:NAME`, which whoever holds the position can still act on, or `org_membership_level:NAME`), and the warning now reads `could not be expanded — a directory or read-filter lookup failed` and carries its `error`. Before, a `position` approver routed to its assignment-table holders alone, which looked like a complete slate, and an `org_membership_level` approver logged "expanded to nobody".
22+
- **The per-record sharing pass now resolves per rule.** `SharingRuleService.evaluateAllForRecord` (the pass a record write runs) used to reject as a whole when any one rule threw. Now a rule whose recipients cannot be read is left out of the returned results, its existing grants stay, and it logs `[sharing-rule] record reconcile failed for rule` with the rule and the error. The record's other rules still reconcile. This matches what `evaluateAllRulesForObject` already did.
23+
- **A missing membership object is still no holders.** A stack that never creates or never registers `sys_member` keeps answering `[]`. That is judged by the shared missing-table predicate, or by the engine's `OBJECT_NOT_FOUND` for `sys_member`, rather than by swallowing every error.
2324

2425
**The remedy.** None is needed. A refusal means the membership table could not be read: fix that read, and the next expansion succeeds. A failed read is never cached.

‎content/docs/automation/approvals.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,11 @@ What an entry that resolves to nobody leaves on the slate depends on its kind:
455455
decide it (the admin-override callout under
456456
[Acting on requests in the console](#acting-on-requests-in-the-console)).
457457
Beside entries that do resolve, a literal is a slot like any other, so a
458-
`behavior` that needs every slot (`unanimous`) waits on it too. A group entry
459-
whose people could not be read, for example because the membership read
460-
failed, keeps its literal the same way. It logs `could not be expanded — a
461-
directory or read-filter lookup failed` with the `error`, never
462-
`expanded to nobody`, and never routes to part of the group.
458+
`behavior` that needs every slot (`unanimous`) waits on it too. A `position` or
459+
`org_membership_level` entry whose `sys_member` read failed keeps its literal
460+
the same way. It logs `could not be expanded — a directory or read-filter
461+
lookup failed` with the `error`, instead of `expanded to nobody`, and never
462+
routes to the holders that happened to read.
463463
- **A slate left empty, or holding only literals,** goes to the node's
464464
`onEmptyApprovers` policy, whose four values are listed under
465465
[Approving across organizations](#cross-org-approvers). Under the default,

0 commit comments

Comments
 (0)