One thing I can add ahead of time is the scoring system. I can make score available in the context, an f32 that every callback can fiddle with as they please.
The decision what to do with the score is also the responsibility of the script. The runtime merely provides a way to track it.