You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spec: the Change Owner default reads only the flat sharingModel, so a controlled_by_parent detail declared under security.sharingModel offers Change Owner #36263
Filing gate ① · Source: fleet · found by the #35270 review sweep (run record r04 S6) on PR #36154, re-read on main c30ce97
What happens
A detail object whose access follows its parent record ("controlled by parent") should have Change Owner off unless its author turns it on. The check reads the sharing setting from only one of the two places an object can declare it. An object that declares it in its security block (the nested spot) is treated as an ordinary object, so Change Owner is offered on it, while every access check treats it as following its parent.
packages/spec/src/data/user-action-transfer.ts:185-187derivedTransferDefault: obj.sharingModel !== 'controlled_by_parent' — flat spot only; used at :205 by resolveUserActionTransfer, which change-record-owner.ts:181changeOwnerOffReason reads.
The access gates read both spots: packages/plugins/plugin-sharing/src/sharing-service.ts:270, :307, :1790 (schema?.sharingModel ?? schema?.security?.sharingModel).
The sibling in core reads both and says why: packages/core/src/security/user-assigned-work.ts:84-96 (accessFollowsMaster, "a raw-registered object can reach the registry without the parse, which is why the nested spot is read").
No privilege is gained: an owner change still needs the same grant as a plain owner_id edit. The ruled default is missed for that shape.
Done when
derivedTransferDefault reads sharingModel ?? security.sharingModel, the one resolution every reader shares.
Pins (spec): an object with only security.sharingModel: 'controlled_by_parent' → resolveUserActionTransfer(...).enabled === false; with userActions.transfer: true → enabled; flat-spot control unchanged. One core pin: Change Owner on such an object → 403 CHANGE_OWNER_DISABLED.
Ablation: revert to the flat-only read and the nested-spot pin goes red.
reach: public HTTP Change Owner doors and os lint / console readers of userActions.transfer; only objects that declare controlled_by_parent in the nested security block. Read from the code, not measured.
Business reason: on child records whose access follows the parent, owner hand-over is supposed to be off by default; for some objects it is on, against the rule the maintainer set.
Reader: area:spec / domain:spec (packages/spec user-action-transfer).
Dedupe: transfer controlled_by_parent, derivedTransferDefault → #35399, #35315, #35403 (none carries this).
Grade: p3 — wrong default on one declaration shape; no privilege gained.
Triage: lands in domain:spec (Change Owner default) · pm:queue; rationale: area:data · Bug · the default reads only the flat sharingModel, so a controlled_by_parent detail declared under the nested shape gets the wrong transfer default. No privilege is gained → p3 as filed · size XS. Linked under topic #36238.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec(Change Owner default) ·pm:queue; rationale: area:data · Bug · the default reads only the flatsharingModel, so acontrolled_by_parentdetail declared under the nested shape gets the wrong transfer default. No privilege is gained → p3 as filed · size XS. Linked under topic #36238.