---
id: TST-PFM-SEC-057
title: HQ staff detail request checks
kind: api-lifecycle
product_area: platform
module: security
revision: 2
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - modules/security/tests/e2e/hq-staff-detail.e2e.spec.js
implements:
  - ATS-PFM-SEC-017-09
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: Use the prepared test database and suite-owned fixture rows; retain shared seed records.
assertion_evidence:
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#the HQ staff-detail
      reads and the end of a member’s access (end to end)
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#GET
      /hq/staff/{userId}
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#answers the staff
      member the path names, 200, as the list answers one
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#carries the stamps
      the screen shows, and none for a sign-in that never happened
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#answers a console
      user of another customer 404, as an unknown id
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses an
      administrator of a customer 403, before any handler runs
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses an anonymous
      call 401
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#GET
      /hq/staff/{userId}/access-grants
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#answers the member’s
      open grant, 200, with every element the screen shows
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#serves a Support
      Representative, whose role reads everything in HQ
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses an
      administrator of a customer 403
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#answers the grant as
      revoked once it has been ended, naming who ended it
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#POST
      /hq/staff/{userId}/access-grants/{grantId}/end
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses a Support
      Representative 403: reading whose access is open is not ending it
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses an
      administrator of a customer 403
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#ends the grant for a
      Rhythm Administrator, 200, revoked
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses ending
      another member’s standing grant 409 staff_access_grant_standing, naming the grant
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#leaves the refused
      standing grant active on the member’s list
  - provenance: test
    source: >-
      services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js#refuses ending it
      again 409, naming the grant
dependency_evidence: >-
  The local request harness exercises the route dispatcher and the prepared database. The suite
  controls the clock, the signing key at the declared seams; those collaborators remain outside its
  live proof.
evidence:
  - 'services-platform:modules/security/tests/e2e/hq-staff-detail.e2e.spec.js'
  - >-
    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/e2e/hq-staff-detail.e2e.spec.js'
  explicit_no_doubles: false
  identified_double_boundaries:
    - the clock
    - the signing key
---
# HQ staff detail request checks

## Verification Boundary

The file exercises public request handling through the local service harness. The assertion references identify the source checks for HQ staff detail.

## 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 local request harness exercises the route dispatcher and the prepared database. The suite controls the clock, the signing key at the declared seams; those collaborators remain outside its live proof.

## Must Not Be Doubled

Keep route dispatch, signed-context verification and the exercised service decisions real. A test key can supply signatures, but replacing the authorization decision cannot prove request enforcement.
