So the first several times I had a weapons research finish at the same time as a battle, the weapons counted towards the battle.
The last two times not so. The weapons research event came before the battle, but was not counted in calculating the battle. I bought science specifically to finish before that battle and bought economy on that star while planning on keeping it.
I get screwed for the game./