Skip to main content

Module generation_session

Module generation_session 

Source
Expand description

Models for the unified generation pipeline’s session state.

These types track the state of a multi-period generation run, including fiscal period decomposition, balance carry-forward, document ID sequencing, and deterministic seed advancement.

Structs§

BalanceState
GL and sub-ledger balances carried forward between periods.
DocumentIdState
Sequential document-ID counters so IDs never collide across periods.
EntityCounts
Counts of master-data entities generated so far.
GenerationPeriod
A single period within a generation run.
PeriodLog
Summary of what was generated in a single period.
SessionState
Accumulated state for a multi-period generation session.

Functions§

add_months
Add months calendar months to a NaiveDate, clamping the day to the last valid day of the target month.
advance_seed
Derive a deterministic per-period RNG seed from the master seed.