---
id: TST-PFM-QRY-454
title: Platform build documents
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/quick-search/tests/unit/services/indexing/build-documents.spec.ts
implements:
  - ATS-PFM-QRY-016-08
  - ATS-PFM-QRY-016-09
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/quick-search/tests/unit/services/indexing/build-documents.spec.ts'
assertion_bindings:
  - scenario: ATS-PFM-QRY-016-08
    source:
      - >-
        services-platform:modules/quick-search/tests/unit/services/indexing/build-documents.spec.ts#says a
        record with an archive stamp is not discoverable and archived, though its status is offered
    scope: contributing assertions; the scenario combines multiple files
    provenance: test
  - scenario: ATS-PFM-QRY-016-09
    source:
      - >-
        services-platform:modules/quick-search/tests/unit/services/indexing/build-documents.spec.ts#searches a
        phone number as it is stored and by its digits, so a typed run of digits finds it
      - >-
        services-platform:modules/quick-search/tests/unit/services/indexing/build-documents.spec.ts#searches
        an international number with its country code by its digits, with its national number
      - >-
        services-platform:modules/quick-search/tests/unit/services/indexing/build-documents.spec.ts#searches a
        foreign number by its digits without trimming a national number from it
    scope: assertions cited by the scenario
    provenance: test
fixture_seams: []
---

# Platform build documents

## Verification Boundary

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

## What This Suite Proves

The assertions check build documents 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.
