Q: or is it more like the main melodies/solos, drums, and bass are notated and everything else is done to taste/ad hoc during the production phase?
A: that's about right. except nowadays i don't use actual notation, i use demo reference recordings instead. but the purpose is the same