---
id: TST-MBR-MEM-020
title: Dated membership reads and workspace isolation
kind: integration
product_area: membership
module: memberships
revision: 1
status: draft
source_sha:
  services-membership: 5994c270e8a37a30f848e99ba5b5ee6b87c08893
repository: services-membership
files:
  - >-
    modules/memberships/tests/integration/db/membership-functions.integration.spec.ts
implements:
  - ATS-MBR-MEM-003-02
  - ATS-MBR-MEM-005-01
  - ATS-MBR-MEM-005-08
  - ATS-MBR-MEM-019-01
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 3
isolation: >-
  A suite-owned workspace and test identifiers; suites that use shared seed data
  require the source’s serial execution and cleanup policy.
verification_notes: >-
  Bindings describe the assertions reviewed at the pinned commit; the suite is
  not executed by this documentation job.
coverage_gap: null
evidence:
  - >-
    services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts
assertion_anchors:
  - scenario: ATS-MBR-MEM-003-02
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers
      the corrected start with a known_at after the correction
  - scenario: ATS-MBR-MEM-003-02
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#keeps
      answering what was known before the correction with a known_at before it
  - scenario: ATS-MBR-MEM-005-01
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers
      Sam grace, lapsed, then active across the lapse and rejoin (scenario 4)
  - scenario: ATS-MBR-MEM-005-01
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers
      Sam lapsed, not a member, on 2024-01-31 and active on 2024-12-31 in
      memberships_as_of
  - scenario: ATS-MBR-MEM-005-08
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers
      Sam two continuity episodes (scenario 4)
  - scenario: ATS-MBR-MEM-019-01
    source: >-
      services-membership:modules/memberships/tests/integration/db/membership-functions.integration.spec.ts#answers
      the query layer’s picks from memberships_for_queries: status today,
      current type, episode count
---

# Dated membership reads and workspace isolation

## Verification Boundary

Membership writes, dated reads, affiliations, standing and officer scope run against the prepared database.

## What This Suite Proves

The structured bindings identify the capability and feature cases whose reviewed assertions this suite executes. Source anchors preserve the evidence for each binding.

## What It Does Not Prove

A local pass does not qualify deployed scheduling, browser administration or successful production partner calls. Registration records existing code and leaves execution and conformance unverified.

## Real Dependencies and Test Doubles

The database constraints and workspace-scoped persistence exercised by this suite remain real; manual clocks, supplied callers and neighbor fixtures define the local boundary.

## Must Not Be Doubled

Keep the prepared database, workspace boundary, exercised owner constraints and the business operation under test real. A partner double cannot substitute for the Membership write this suite claims to exercise.
