---
id: TST-PFM-SEC-201
title: Export authority unit checks
kind: unit
product_area: platform
module: security
revision: 2
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - modules/security/tests/unit/services/catalog/export-authority.spec.ts
implements:
  - ATS-PFM-SEC-013-03
  - ATS-PFM-SEC-013-07
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: The suite owns its input fixtures and installed doubles.
assertion_evidence:
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#export
      authority among the built-ins (D-03)
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#publishes
      the four data export keys, every one admin and sensitive (premise of the cases below)
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#generates
      none of them into any tier policy of Platform
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#keeps
      the rest of Platform’s admin keys in the administrator tier policy, so the exclusion is of
      these four alone
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#grants
      the four in the declared Platform Data Exporter
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#attaches
      the Data Exporter to the Administrator role
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#attaches
      it to no other built-in role, Power User included
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts#gives
      Power User only the generated administrator tier policies, of which none carries the four
dependency_evidence: >-
  The file exercises its imported production code with controlled inputs. Source inspection
  identifies the test entry and assertions; it does not establish a live database, provider or
  deployed workflow.
evidence:
  - 'services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts'
  - >-
    Static review at the recorded source revision; executable results remain not-run and conformance
    remains not-verified.
binding_note: >-
  Each binding names the scenario to which this file contributes assertions. A binding is not a
  recorded pass and does not extend the file’s dependency boundary.
examiner: codex
examined_at: '2026-10-23'
final_text: OpenAI
dependency_review:
  provenance: test
  source: 'services-platform:modules/security/tests/unit/services/catalog/export-authority.spec.ts'
  explicit_no_doubles: false
  identified_double_boundaries: []
---
# Export authority unit checks

## Verification Boundary

The file evaluates production helpers with controlled inputs in-process. The assertion references identify the source checks for export authority.

## What This Suite Proves

The source assertions support the observations named in the bound scenarios. A scenario spanning multiple files must retain the other files’ contributions.

## What It Does Not Prove

This examination does not run the suite. Passing behavior, deployed conformance and the behavior of substituted dependencies require separate execution evidence.

## Real Dependencies and Test Doubles

The file exercises its imported production code with controlled inputs. Source inspection identifies the test entry and assertions; it does not establish a live database, provider or deployed workflow.

## Must Not Be Doubled

Keep the production helper, schema, matcher or declaration under examination real. Substituting the decision itself would remove the behavior the assertions exercise.
