---
id: TST-PFM-ELG-449
title: Eligibility decisions queries checks
kind: integration
product_area: platform
module: eligibility
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - >-
    modules/eligibility/tests/integration/services/persistence/decisions.queries.integration.spec.js
implements: []
environment: local
implementation_state: implemented
latest_result: not-run
conformance: not-verified
estimated_minutes: 5
isolation: Prepared local test database with suite-owned fixture keys and cleanup.
evidence:
  - provenance: test
    source: >-
      services-platform:modules/eligibility/tests/integration/services/persistence/decisions.queries.integration.spec.js
    cases:
      - >-
        holds the other tenant’s colliding decision, read as the owner, so every
        confinement below is the predicate’s doing
      - >-
        answers the newest decision for the binding and subject, from the later
        month’s partition
      - maps every column of a decision
      - >-
        maps the optional columns of a decision recorded without them as nulls
        and its defaults
      - answers nothing for a binding and subject with no decision
      - >-
        lists a subject’s decisions of one binding newest first, and none of the
        other tenant
      - lists a subject’s decisions across every binding newest first
      - >-
        pages a subject’s decisions, the last page of exactly the size left
        carrying no cursor
      - >-
        lists a definition’s decisions newest evaluation first, and none of the
        other tenant
      - >-
        lists a definition’s decisions since an instant, leaving out the earlier
        month
      - maps every column but the trace of a decision in the viewer’s list
      - >-
        lists a subject’s decisions in the viewer newest first, and none of the
        other tenant
      - narrows the viewer’s subject list to one binding
      - >-
        lists a definition’s decisions in the viewer from an instant, leaving
        out the earlier month
      - lists a definition’s decisions of one binding in the viewer
      - pages a definition’s decisions in the viewer by evaluation and id
      - refuses a viewer list that names neither a subject nor a definition
      - reads one decision by id with its trace
      - answers no decision for another tenant’s id
      - pages a definition’s decisions by evaluation and id
  - provenance: documented
    source: >-
      services-platform:modules/eligibility/tests/integration/services/persistence/decisions.queries.integration.spec.js:suite
      header
    note: >-
      The source header describes the verification boundary and declared
      substitutions.
proof_limit: >-
  No complete capability or feature scenario is mapped to this file; case-level
  ownership remains a coverage finding.
---

# Eligibility decisions queries checks

## Verification Boundary

This suite checks the module through real local service and database code at the entry points used by its test cases.

## What This Suite Proves

The file contains executable checks, but no complete scenario mapping is established here. Its source test titles identify the remaining mapping work.

## What It Does Not Prove

Registration supplies no execution result or conformance decision. Checks beyond the file’s reachable assertions remain unverified, including production configuration.

## Real Dependencies and Test Doubles

The suite exercises its real module dependencies and declares no test doubles. Its source header and imports identify the database, transaction and service boundaries it uses.

## Must Not Be Doubled

The module behavior under assertion, transaction boundary and database constraint being checked remain real. Fixture setup cannot stand in for the asserted write or refusal.
