Commit 23502e3
docs(permissions,protocol): owner-type sharing rules are rejected at parse, not skipped (#9904)
`type: 'owner'` / `ownedBy` were removed from `SharingRuleSchema` in v17
(#1878) rather than left declared-but-skipped (ADR-0049/ADR-0078). Two pages
still taught them as authorable, and the protocol reference still described
the pre-v17 "seed bootstrap skips them (logged)" state — a materially
different instruction to an author than "does not parse".
permissions-matrix.mdx
- the intro claimed a discriminated union with two `type` values; `SharingRuleType`
is a one-member enum and `SharingRuleSchema` IS `CriteriaSharingRuleSchema`
- dropped the "Owner-Based / [experimental — not enforced] / skipped at seed time"
table row, which contradicted the page's own enforcement callout four lines below
- the Configuration Example's second rule is now the enforced `criteria` form
- added an OWD-posture callout: a rule on a `public_read_write` object parses and
grants nothing
protocol/objectql/security.mdx
- the recipient enum comment listed the removed `group`/`guest` and omitted the
enforced `team`/`business_unit`
- replaced the "Owner-Based Sharing" section and its `OwnerSharingRuleSchema`
reference (no such export exists) with the removal note and a criteria-form
rewrite of the same rule
- repaired the enforcement callout, keeping the still-accurate half (an unlowerable
`condition` is skipped and logged, never seeded as a match-all)
Wording converges on content/docs/permissions/sharing-rules.mdx:234.
Claude-Session: https://claude.ai/code/session_01XqDQYVU5smx29ts9pAErja
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 88a9e63 commit 23502e3
2 files changed
Lines changed: 47 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
194 | 207 | | |
195 | 208 | | |
196 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
384 | 402 | | |
385 | 403 | | |
| 404 | + | |
386 | 405 | | |
387 | | - | |
388 | | - | |
| 406 | + | |
| 407 | + | |
389 | 408 | | |
390 | | - | |
391 | | - | |
392 | | - | |
| 409 | + | |
393 | 410 | | |
394 | 411 | | |
395 | 412 | | |
396 | 413 | | |
397 | 414 | | |
398 | | - | |
| 415 | + | |
399 | 416 | | |
400 | 417 | | |
401 | 418 | | |
| |||
0 commit comments