Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)
Wyvern is 100% correct about the math.
I've seen this with ships that don't have the types of weapons they're expecting. For example, a vigilance that has a phase beam but no missiles, seems to still try to act like it's long-range support, rather than short-range assault.