Build the lifecycle statistics model from a procedure corpus and their
event timelines.
Deterministic: identical input procedures and events produce identical
statistics (the model is independent of Map insertion order — only the
byTypeAndStage map's Map/Object.entries iteration order may differ,
but the per-key values are stable).
Build the lifecycle statistics model from a procedure corpus and their event timelines.
Deterministic: identical input procedures and events produce identical statistics (the model is independent of
Mapinsertion order — only thebyTypeAndStagemap'sMap/Object.entriesiteration order may differ, but the per-key values are stable).