---
id: TST-ACC-CLS-043
title: Calendar readiness and closing-date boundaries
kind: unit
product_area: accounting
module: close
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - modules/fiscal-close/tests/unit/readiness/period-rules.spec.js
implements:
  - ATS-ACC-CLS-005-01
  - ATS-ACC-CLS-010-01
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: The suite owns in-memory inputs and declaration fixtures.
binding_policy: >-
  Each binding identifies the assertions this suite executes; combined scenarios
  may require other bound suites. Existence is not a recorded execution result.
evidence:
  - >-
    services-accounting:modules/fiscal-close/tests/unit/readiness/period-rules.spec.js
  - provenance: test
    source: >-
      services-accounting:modules/fiscal-close/tests/unit/readiness/period-rules.spec.js
    assertion_titles:
      - 'readiness: the calendar rules'
      - prior_periods_closed
      - 'passes when every earlier period, in every year, is closed'
      - 'is blocked by an earlier period of the same year that is open, naming it'
      - >-
        is blocked by a period of an earlier year, and counts every one oldest
        first
      - 'ignores later periods, open or not'
      - period_ended
      - passes the day after the period ends
      - is blocked on the period’s last day
      - is blocked during the period
      - all_periods_closed
      - passes when periods 1 to 11 are closed and the last is open
      - is blocked by every other period of the year not closed
      - next_fiscal_year_ready
      - passes naming the next year when it exists
      - passes saying the close generates the next year when it is missing
real_dependencies: >-
  The suite calls pure rules, mappings or declarations with supplied inputs and
  test contexts. No deployed workflow is exercised.
product_intent: proposed
implementation_evidence: observed
---
# Calendar readiness and closing-date boundaries

## Verification Boundary

The suite exercises pure rules, mappings or declarations with supplied inputs. It checks those functions directly rather than executing a complete close.

## What This Suite Proves

Pure rule assertions evaluate prior-period completion, the month’s final day and next day, earlier years, all other year months and a missing next year.

## What It Does Not Prove

This register records assertion scope without claiming a passing run or complete coverage of every rule and scenario variant.

## Real Dependencies and Test Doubles

The suite calls pure rules, mappings or declarations with supplied inputs and test contexts. No deployed workflow is exercised.

## Must Not Be Doubled

Run the production rule, mapper or declaration being asserted. Supplied inputs are appropriate here; they do not establish database, public API or deployed workflow behavior.
