Skip to content

Commit 0d4e36e

Browse files
os-zhuangclaude
andauthored
docs(sharing-service): name the federated phantom-anchor case in the SHARING_NOT_ENABLED list (#8119) (#8217)
The "Typical Errors" list enumerates the exact conditions that produce a 422, and #8209 added a fifth: a FEDERATED (ADR-0015 `external`) object whose `owner_id` is the platform's injected anchor rather than a real remote column. Leaving it out is the enforced-but-undocumented inverse of a declared-but-unenforced gap — the runtime now refuses more than the page says. Docs-only; the behaviour itself shipped in #8209. Claude-Session: https://claude.ai/code/session_01PEVB6w7D7uCszR9Mw1BL73 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5d712c3 commit 0d4e36e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎content/docs/kernel/runtime-services/sharing-service.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ mask AND-ed with object CRUD, not a fourth `access_level`.
6060
- `PERMISSION_DENIED` (403) — the caller does not hold `canManageShares` on the record (ADR-0111 D1).
6161
- `NOT_FOUND` (404) — the record is missing **or not visible to the caller** (indistinguishable by design), or a `revoke` share id does not exist / does not belong to the `scope` record.
6262
- `CONFLICT` (409) — `revoke` on a rule-materialised share (`source != 'manual'`); the next rule reconciliation would silently re-grant it. Deactivate or edit the sharing rule instead.
63-
- `SHARING_NOT_ENABLED` (422) — `grant` on an object the sharing gates never consult (public sharing model, no `owner_id` field, a bypass object, or `controlled_by_parent`).
63+
- `SHARING_NOT_ENABLED` (422) — `grant` on an object the sharing gates never consult (public sharing model, no `owner_id` field, a bypass object, `controlled_by_parent`, or a **federated** object whose `owner_id` is the platform's injected anchor rather than a real remote column — the platform provisions no storage for a federated object, so the gates read that column off a table that has not got it and can never admit).
6464

6565
## Enforcement is automatic — do not re-check it in a hook
6666

0 commit comments

Comments
 (0)