The rapid integration of high tech and artificial intelligence into the armed forces presents a tricky dilemma: entrusting part of their future to private companies while risking their sovereignty.