Artificial intelligence is moving from the airport terminal to the cockpit, with aviation companies exploring systems that can automate pilot tasks now, and support fully autonomous flight later. Apparently, AI could make flying safer, more efficient, and less dependent on overstretched human crews. But transport history on the ground and in the air offers unsettling reminders that safety-critical automation errors are devastatingly costly. What, then, could possibly go wrong?