I agree with rjkplasticmod in that I never paint anything on the sprue. I airbrush everything that I can, so everything is usually trimmed and sanded by the time it gets painted. Small parts are easier to hold onto if left on the sprue, but when I try that by the time I've cut them off and trimmed them and sanded them most of what I painted is gone anyway!
As zokissima said, there is no perfect way to know how to know what to paint before assembly. I also try to do "Subassemblies" when I can. If I can clue some parts together and paint them at one time, I can fill any gaps or make any minor adjustments before they are painted. The paint also helps fill minor gaps in the assembly. On the other side of the coin, a complicated assembly can be difficult to paint evenly. You are doing it the right way, trial and error and learn as you go. There are no clear-cut rules.
On your F-15, for example. If you build the engine before painting it is going to be virtually impossible to paint the inside of it evenly. On the other hand, assembling it and filling the gaps before painting the outside would be the way to go, IMO. I'd probably spray the inside, assemble it, fill any gaps, plug the ends, and spray the outside. In fact that is the way I did the engine on my F-105
.