---
id: TST-PFM-QRY-413
title: Platform saved query access
kind: unit
product_area: platform
module: queries
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
  rhythm-v2-docs: 99376625d3e7ac26936413cfc31a88fba6562464
repository: services-platform
files:
  - modules/queries/tests/unit/services/saved-queries/saved-query-access.spec.ts
implements:
  - ATS-PFM-QRY-006-06
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: A fresh test context and file-owned response fixtures.
evidence:
  - 'services-platform:modules/queries/tests/unit/services/saved-queries/saved-query-access.spec.ts'
assertion_bindings:
  - scenario: ATS-PFM-QRY-006-06
    source:
      - >-
        services-platform:modules/queries/tests/unit/services/saved-queries/saved-query-access.spec.ts#shows a
        colleague’s private query to staff
      - >-
        services-platform:modules/queries/tests/unit/services/saved-queries/saved-query-access.spec.ts#lets
        staff write a colleague’s private query, which a non-staff caller may not
      - >-
        services-platform:modules/queries/tests/unit/services/saved-queries/saved-query-access.spec.ts#hides a
        colleague’s private query from a non-staff holder of platform.saved-queries.manage
    scope: assertions cited by the scenario
    provenance: test
fixture_seams: []
---

# Platform saved query access

## Verification Boundary

The file calls its named functions directly with controlled inputs and collaborator fixtures.

## What This Suite Proves

The assertions check saved query access at the function boundary. Bound specification examples inherit this boundary and do not become API or deployed workflow proofs.

## What It Does Not Prove

The file does not establish public-route authorization, real infrastructure behavior or a passing result at the pinned revision.

## Real Dependencies and Test Doubles

Direct function calls and file-owned collaborators define this unit boundary. The fixture seam references identify substitutions or configurable dependencies present in the source.

## Must Not Be Doubled

Keep the function whose output or effect is asserted real. Substituting that function would remove the behavior this suite exists to verify.
