“How could we have been so stupid?” asked President John F. Kennedy, after he and a group of close advisers had blundered into the Bay of Pigs invasion. Stupidity was…