so you have you dynamicly recompilable functions and your wondering i've got the ai optimal but how can i get it to be creative. Well lets first realise that being creative isnt always logical but that underlying emotional states can easily be mimicked with todays games mimicking such just to do logic set tasks.
What if instead you had an evolutionary emotion superfunction which based on emotions felt for what ever reason could do things to these dynamically recompilable functions especially when in their full general default state.
For example it maybe taking you ages searching some problem and your convergent isnt look to usful and your evolutionary emotion function might stop the process in mid flight and change the setting of your search function a few times and get really fustrated call it quits and run optimize on the meta data.
All you did was set the emotion function a little relative to its evolved abilities list into your search function and emotion did the rest then went back to your loop.
Could this issue help with creativity hell yes. It could also end with the computer deciding it doesnt like your music collection because when your playing music all the time your not challenging it enough for it to carry on learning due to some evolved coding it ended up with and delete your music collection. Who needs malware when your ai gets fustrated hey.