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
Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review record 7196156631 on PR #37591, nit N2)
What happens
PR #37591 (Part of #36029) adds a { systemPermission } arm to a book's audience. That arm is strict, but the older { permissionSet } arm is not. An audience written with both keys, { permissionSet: 'x', systemPermission: 'setup.access' }, therefore parses as the { permissionSet } arm, and systemPermission is dropped without a word. The author believes the book is gated on a capability, and it is gated on a permission set only.
Refuse the two-key shape. Expected: os lint (or os validate) refuses an audience naming both keys and says which one to keep. Alternatively, make the { permissionSet } arm strict under its own (narrowing) declaration, if a stored book with a stray key is shown not to exist.
Category ①: an authored value is accepted and silently means less than it says, on a permission surface.
Priority: p2. Nothing ships with the two-key shape today, and the new arm is days old.
Business reason: an admin manual gated by a mistyped audience opens to a wider or different group than its author intended.
Reader: the lane that holds packages/spec/src/system/book.zod.ts and packages/lint (seat 2 s2-data, after #36029's code PR lands).
Dedupe: book audience permissionSet systemPermission strict (open issues), 0 hits besides #36029.
Related: #36029, PR #37591.
Activity