---
id: TST-ACC-BAT-082
title: Batch integration batch attention items
kind: integration
product_area: accounting
module: batches
revision: 1
status: draft
product_intent: proposed
implementation_evidence: observed
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - >-
    modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js
implements:
  - ATS-ACC-BAT-008-02
  - ATS-ACC-BAT-008-03
  - ATS-ACC-BAT-008-04
  - ATS-ACC-BAT-008-05
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: >-
  The suite owns its test workspace or fixed integration fixtures in the
  prepared local database.
assertion_sources:
  - scenario: ATS-ACC-BAT-008-02
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#publishes
      one open item of the batch with every element mapped
  - scenario: ATS-ACC-BAT-008-02
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#has
      no item
  - scenario: ATS-ACC-BAT-008-03
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#resolves
      a posted batch posted, after its posting kept it open
  - scenario: ATS-ACC-BAT-008-03
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#resolves
      a reopened batch reopened, and its next close opens the second generation
  - scenario: ATS-ACC-BAT-008-03
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#resolves
      an archived batch archived
  - scenario: ATS-ACC-BAT-008-03
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#resolves
      a deleted batch record_deleted
  - scenario: ATS-ACC-BAT-008-04
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#dues
      the item five days after the close
  - scenario: ATS-ACC-BAT-008-05
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#publishes
      the batch whose item was lost
  - scenario: ATS-ACC-BAT-008-05
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#resolves
      the item of the batch that no longer awaits posting, cleared
  - scenario: ATS-ACC-BAT-008-05
    provenance: test
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#refreshes
      the due instant of every item it published from the close
evidence:
  - provenance: observed
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js
    note: >-
      The executable file is inspected at the pinned revision; duration is an
      unmeasured planning estimate.
  - provenance: documented
    source: >-
      services-accounting:modules/batches/tests/integration/services/persistence/batch-attention-items.integration.spec.js#suite
      header
    note: >-
      Real: PostgreSQL, the migrations, the persistence services, the attention
      publisher and its SQL, the sweep runtime. Doubled:
unbound_scope: null
---

# Batch integration batch attention items

## Verification Boundary

This suite exercises the imported batch services or storage against the prepared local database. It does not imply that a deployed workflow is contacted.

## What This Suite Proves

Waiting-item publication, refresh, resolution and sweep repair are checked against the stored attention facts. The assertion anchors identify the supported portions of the bound scenarios.

## What It Does Not Prove

Local assertions do not establish deployment configuration, remote delivery guarantees, or unasserted lifecycle and concurrency paths.

## Real Dependencies and Test Doubles

PostgreSQL and the exercised persistence or accounting functions are real. Controlled clocks, imported test fixtures and any suite-specific doubles delimit the asserted behavior.

## Must Not Be Doubled

The database constraints, transaction boundaries and exercised accounting functions must remain real when qualifying the asserted persistence or generation behavior.
