Time and replays
Motion, hits, zones and respawns run in the fixed step: gameplay.fsm_fixed and then gameplay.motion before physics, after script.fixed, and gameplay.post after physics, before scripts receive collision events. gameplay.fsm_update runs the Update hooks of state machines after script.update. Signals of one step therefore reach scripts in the same step as the collisions that caused them.
Damage dealt by a script in Update is applied at once; its Damaged, Healed and Died arrive at the end of the same frame from gameplay.frame, which also counts Lifetime. Invulnerability, respawn delays and periodic hits count game time and stop while the game is paused; Lifetime with Unscaled counts real time.
All component state, including the hidden state of the controller, hitboxes, zones and state machines, travels with the scene: rewind, replays and pools restore it exactly, and the state hash used by aego test --determinism includes it.