(Puts on cynic hat)

Follow the money. Who's friend, brother in law, big contributor, etc. is on the research team?

(Takes off cynic hat)

As for who's morals are in the programming, that's variable. Exact morality decisions would change depending on theater of operations. For example, a roadblock here in the US for a natural disaster would have a whole lot tighter rules of engagement compared to one with a higher probability of suicide bombers.