---
id: TST-PFM-SEC-264
title: HQ workspace list mapper unit checks
kind: unit
product_area: platform
module: security
revision: 2
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts
implements:
  - ATS-PFM-SEC-002-11
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/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#the page
      GET /hq/tenants asks for
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is 25
      tenants when the request names no limit
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is 25
      tenants when the limit is empty
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is the
      limit asked for when it is within the bound
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is at most
      100 tenants, whatever the limit asked for
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#refuses a
      limit below 1
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#resumes
      after the name and id a cursor of this list carries
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#refuses a
      cursor this list did not make
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#the filter
      GET /hq/tenants asks for
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is nothing
      when the query names nothing
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#carries the
      search trimmed, the customer, the status and the type
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#drops a
      search of only spaces
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#drops a
      type of only spaces
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#refuses a
      status the closed list does not have, naming the list
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#refuses a
      type the closed list does not have, naming the list
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#a page of
      GET /hq/tenants on the wire
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#is the
      records alone when there is no next page
  - provenance: test
    source: >-
      services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts#carries a
      cursor when there is a next page
dependency_evidence: >-
  The production function, schema or declaration runs over literal inputs. The source declares no
  substituted collaborator; this is an in-process decision or mapping check.
evidence:
  - 'services-platform:modules/tenants/tests/unit/aws/api/hq-tenant-list-mapper.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/tenants/tests/unit/aws/api/hq-tenant-list-mapper.spec.ts'
  explicit_no_doubles: true
  identified_double_boundaries: []
---
# HQ workspace list mapper unit checks

## Verification Boundary

The file evaluates production helpers with controlled inputs in-process. The assertion references identify the source checks for HQ workspace list mapper.

## 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 production function, schema or declaration runs over literal inputs. The source declares no substituted collaborator; this is an in-process decision or mapping check.

## 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.
