I have not been able to get bystanders to witness the fight against The AI, so I have not been able to duplicate the issue.
When destroying the AI, it seems that it is a civilian ship, as I lost reputation with another faction that was already in the sector fighting the AI.
Sadly, all my little workers left in the home sector while I responded to the distress call were vaporized upon my return, lol.