The United States military narrowly avoided an armed confrontation with China after aborting an operation to board a Chinese vessel, having discovered moments before the raid that an artificial intelligence chatbot had falsely reported the ship carried nuclear cargo.