That business where the AI declares war on you for leaving a Regional Capital unguarded is really lazy programming. What it ought to do is consider the relative strengths and weaknesses, and make a assessment as to whether it can win the war, before it actually plunges in like an idiot.