Skip to content

DOM-PFM-QRY-006Monthly Snapshot

Markdown

DOM-PFM-QRY-006

Monthly Snapshot

Markdown
  • DocumentDraft
  • ImplementationObserved

Planning

Specified by
CON-PFM-QRY-006

Design

Owned by
SVC-PFM-QRY-snapshots

KindDomain objectProduct areaPlatformModuleQuestions, record exploration and data deliveryRevision1

Read atservices-platform ad3f6a65

Relationships

ToCardinalityOwnershipCrosses a serviceOn archive or delete
DOM-PFM-QRY-003one-to-manyAvailable-period reads support an intended report month selector; the console has not connected that selector.no

Invariants

InvariantProtectsEnforced atProvenance
INV-DOM-PFM-QRY-006-01
Unique indexes allow one active run and one current version for each workspace, type and period.
databaseobserved
services-platform:modules/snapshots/db/snapshot-runs.table.ts (the library's active and current unique indexes)
INV-DOM-PFM-QRY-006-02
Final validation and publication commit together. Small-run failures discard all generated rows; chunked failures can retain committed but unpublished rows.
service, databaseobserved
INV-DOM-PFM-QRY-006-03
Database security confines each owning service to its runs and prevents application roles from deleting ledger rows.
databaseobserved
INV-DOM-PFM-QRY-006-04
Runs preserve earlier versions as history until workspace deletion removes the workspace’s data.
serviceobserved
INV-DOM-PFM-QRY-006-05
The planner inserts only period version one, so repeated planning does not create duplicate scheduled versions.
database, serviceobserved
INV-DOM-PFM-QRY-006-06
Admission respects the configured total cap and permits at most one admitted backfill.
serviceobserved
INV-DOM-PFM-QRY-006-07
Workspace period reads remain workspace-scoped and select the current version, or otherwise the highest version, for each month.
service, databasetest
services-platform:modules/snapshots/tests/e2e/snapshots.e2e.spec.js#refuses another customer’s user the tenant’s periods

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.