pub fn next_state( current: MemoryLifecycleState, action: MemoryPromotionAction, ) -> MemoryLifecycleState