Commit 2074b26
fix(service-messaging): correct sys_notification_subscription index comment to name sys_member/sys_team_member (#9918)
The (topic, principal) unique-index comment claimed role:x/team:x resolve
against sys_permission_set/sys_position (citing #8461/#8556, which scoped
those objects' OWN uniqueness — an unrelated precedent, not evidence about
what this selector resolves against). RecipientResolver.resolveRole/
.resolveTeam (the sole reader of this selector) actually read sys_member
and sys_team_member — pinned by recipient-resolver.test.ts. The comment's
own worked example (role:sales_manager) was not even a reachable
sys_member.role value (closed vocabulary: owner/admin/delegated_admin/
member); sales_manager is sys_position's example name, a different object
this selector does not read.
Searched docs/adr/ and the cited #8461/#8556 threads for evidence the
comment recorded RULED/intended semantics before touching it (per the
card's stop-condition) — found none; both PRs are about the general
per-organization index-scoping pattern for other objects, and ADR-0090 D3
independently confirms sys_member.role as the sole permitted "role"
spelling platform-wide, consistent with the resolver.
Comment-only: no schema field, index declaration, or behavior changed.
The tenancy argument stays load-bearing (both sys_member and
sys_team_member are tenant-scoped), and the example moved to the
reachable role:admin.
Fixes #9722
Claude-Session: https://claude.ai/code/session_01PnJHU45vPJj5UQrxe946Bx
Co-authored-by: Claude <noreply@anthropic.com>1 parent d7c4240 commit 2074b26
1 file changed
Lines changed: 18 additions & 7 deletions
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
| |||
0 commit comments