--- id: PLAY-5 family: RT-PLAY level: extended profiles: [runtime, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-play/play-5 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # PLAY-5 — The session list is ownership-scoped, and an emptied filter means none *RT-PLAY (Part II) · level: extended · profiles: runtime, editor-client · added in 1.0* The failure mode this rules out is an explicit request for no sessions answered with every sibling session in the workflow. ## The rule > **Normative.** This is the rule. > > 1. A caller without authority to view any session MUST see only sessions they own. > > 2. The ownership condition MUST bind the list and its total count alike, on the default path and on the filtered path, so the `ids` filter can only narrow what the caller could already see. > > 3. Where the filter is present but every value in it parses away, the list MUST answer an empty page with a total of zero. > > 4. It MUST NOT fall through to the unfiltered list. ## What it means Ownership does not bind only the rows a caller can see; it binds the count that comes back beside them. A list scoped by ownership but a total taken from an unscoped count would tell a caller with no authority how many sessions exist in total — a narrower leak than the rows themselves, and an easy one to miss because the two numbers are computed by separate queries. The `ids` filter cannot widen that scope. Naming a session id the caller does not own returns nothing, not a 404 and not the session — the filter can only narrow what ownership already allows, never substitute for it. And where every value in the filter fails to parse, the answer is the same empty page with a zero total, never the unfiltered list a naive empty-filter check would fall through to. ## Example A workflow with two sessions, one per owner: what the total answers depends on which authority is asking, and it moves together with the rows. ```json title="pagination.total answered to a caller who may view only their own sessions" verdict="scoped" 1 ``` ```json title="pagination.total answered to a caller who may view any session" verdict="unscoped" 2 ``` Naming another owner's session id in the filter, or a filter that parses away entirely, both reach the same floor: ```json title="pagination.total when every value in the id filter fails to parse" verdict="zero" 0 ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: PLAY-1 - Referenced by: PLAY-1 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.