Decoder: All’s fair in love, but not war

There is an evolving global consensus that some acts of violence in warfare are not acceptable. But how in the world can we enforce that?