Skip to content

review follow-ups of PR #37591 #37613

Backlog
Backlog

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

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

  1. added
    bug
    priority:p2
    domain:spec
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugdomain:specpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions