---
id: TST-PFM-ELG-389
title: Attention attention items table checks
kind: integration
product_area: platform
module: eligibility
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - >-
    modules/attention/tests/integration/db/attention-items.table.integration.spec.js
implements:
  - ATS-PFM-ELG-017-13
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/attention/tests/integration/db/attention-items.table.integration.spec.js
    cases:
      - accepts a well-formed definition (the control)
      - refuses a key outside <application>.<snake_case>
      - refuses a class outside the three
      - refuses a required definition without required_because
      - refuses a priority adjustment outside -20..20
      - >-
        refuses a tenant adjustment outside -10..10, and accepts one inside (the
        control)
      - accepts a well-formed open item (the control)
      - 'refuses a status outside open, resolved and expired'
      - >-
        refuses an open item with a resolution instant, and a resolved one
        without
      - refuses a subject kind without its id
      - refuses a scope chain that is not an array
      - 'keys an item by its tenant, id and opened_at'
      - refuses a key naming an open item without its opened_at
      - >-
        refuses an audience whose kind lacks its column, and accepts one that
        has it (the control)
      - 'refuses an organization audience with no contact role, or more than ten'
      - refuses an audience kind outside the seven
      - declares each of 07 §3’s partial indexes on its predicate
      - >-
        partitions the items by month on opened_at, registered for the
        maintenance with thirteen months kept
      - >-
        reads none of a tenant’s attention rows for a session in no tenant,
        while the tenant reads its own
      - refuses a write into another tenant through the policy
  - provenance: documented
    source: >-
      services-platform:modules/attention/tests/integration/db/attention-items.table.integration.spec.js:suite
      header
    note: >-
      The source header describes the verification boundary and declared
      substitutions.
proof_limit: >-
  Only the named scenario checkpoints have a verified source binding; execution
  has not been attempted.
---

# Attention attention items table 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 mapped scenarios identify the capability and feature checkpoints this file exercises. The source test titles preserve the assertion-level evidence.

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