---
id: TST-ACC-CLS-049
title: Close and reopen infrastructure synthesis
kind: unit
product_area: accounting
module: close
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - tests/aws/fiscal-close.synth.ts
implements:
  - ATS-ACC-CLS-015-03
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:tests/aws/fiscal-close.synth.ts'
  - provenance: test
    source: 'services-accounting:tests/aws/fiscal-close.synth.ts'
    assertion_titles:
      - fiscal close’s jobs as deployed (dev)
      - >-
        creates one state machine per kind in the batches module stack, each
        publishing, running its steps and recording a failure
      - >-
        invokes batch posting’s task function’s live alias from every Task state
        of both machines, with the job’s kind
      - >-
        waits 60 s in a Wait state before finalize asks again for the month’s
        A/R snapshot
      - >-
        lets each machine’s execution role invoke the task function’s live alias
        and no other function
      - alarms on a failed and a timed-out execution of each machine
      - >-
        tells the task function, the configuration API and the reconciliation
        API both machines’ ARNs
      - fiscal close’s jobs as deployed (prod)
      - >-
        creates one state machine per kind in the batches module stack, each
        publishing, running its steps and recording a failure
      - >-
        invokes batch posting’s task function’s live alias from every Task state
        of both machines, with the job’s kind
      - >-
        waits 60 s in a Wait state before finalize asks again for the month’s
        A/R snapshot
      - >-
        lets each machine’s execution role invoke the task function’s live alias
        and no other function
      - alarms on a failed and a timed-out execution of each machine
      - >-
        tells the task function, the configuration API and the reconciliation
        API both machines’ ARNs
real_dependencies: >-
  The infrastructure declaration is synthesized locally with CDK assertions. AWS
  resources and state machines are not deployed or invoked.
product_intent: proposed
implementation_evidence: observed
---
# Close and reopen infrastructure synthesis

## Verification Boundary

Local CDK synthesis checks the declared close and reopen infrastructure. It neither deploys resources nor invokes AWS workflows.

## What This Suite Proves

CDK assertions inspect the two workflow definitions, task-function aliases, invoke grants, aging wait state, failure alarms and supplied workflow addresses.

## 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 infrastructure declaration is synthesized locally with CDK assertions. AWS resources and state machines are not deployed or invoked.

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