A partnership between a military shipbuilder and an AI-powered robotics company promises to reshape high-mix manufacturing.