I did have one WTF moment in an operation (which I guess is a custom gang vs the AI). I captured all of the resources I was supposed to and extracted with them. The AI then killed my one remaining ganger, and I lost the mission. Joys of a new game in that it still has bugs, but I hope that gets worked out shortly.