Skip to main content

Module ledger

Module ledger 

Source
Expand description

ResourceLedger — per-instance resource accounting — a StepStage bucket.

Tracks entity count, per-entity total bytes (sum of attached components’ approx_size), per-component-type counts (observability), and global totals. Production mutations flow only through runtime::apply::apply_stage; the API is pub(crate) so unit tests and the apply pipeline both reach it directly.