The “AI-first” Pentagon almost tried to seize a Chinese ship after an AI chatbot convinced an analyst it was carrying nuclear components.