Commit ee4a59b
docs(spec): the block-level publicSharing TSDoc states the standing policy, not just the mint half (#16964)
The block comment above `ObjectSchema.publicSharing` said that with the block
omitted or `enabled:false` "the platform refuses to create share-link rows for
this object — independent of any permission the caller holds". Literally true,
and the mint half only.
`publicSharing.enabled` is a STANDING policy held again at every redemption:
`resolveToken` re-reads the object's CURRENT block before it probes the record
or stamps the counters, so a block that is off refuses every token on it —
those minted while it was on, and those minted through the system-context /
`permissive` mint bypass alike. The `permissive` option is documented and
implemented as MINT-only; the redemption gate takes no bypass.
That correction already reached the `enabled` property comment thirty lines
below, `IShareLinkService.resolveToken`'s `null`-cause list and design note 7
of `contracts/share-link-service.ts`. This carrier was left behind, so the same
file stated one fact two ways with nothing telling a reader which was current,
and the block doc is the more likely landing site of the two: it is what a
reader scanning the object schema for the sharing policy meets first, and it
carries the `@see` pointers that make it read as the block's orientation text.
The sentence now names both halves and points at `enabled` for the full
statement rather than restating the mechanism a third time. Comment text only:
no schema arm, bound, default, `.describe()` string or runtime behaviour moves,
and no generated artefact changes.
Claude-Session: https://claude.ai/code/session_016N6xmWt5hYm94ffVEwGH8x
Co-authored-by: Claude <noreply@anthropic.com>1 parent efd6b43 commit ee4a59b
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2231 | 2231 | | |
2232 | 2232 | | |
2233 | 2233 | | |
2234 | | - | |
2235 | | - | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
2236 | 2241 | | |
2237 | 2242 | | |
2238 | 2243 | | |
| |||
0 commit comments