1. have 2 players with ai turrets in targeting range
2. have one player faction declare war on the other
3. have the players declare peace
At this point the AI turrets will continue to fire at the target they acquired previous to the peace declaration, breaking the targeting will cause the AI to behave correctly.