Alternatively, you can train the machine using reinforced learning, given that you can provide a virtual environment accurate enough to represent parts of the real world which is considered relevant to the application.And look what happened to the 737 Max. One jammed sensor and several hundred dead. But apparently cheaper than putting a warning in the pilot's notes and spending an extra hour on type training.
Back in the days of Tridents, a friend was flying a Trident 3 from Belfast to London when he noticed "it felt a bit heavier than usual". Looked at the fuel ticket and saw that he had been given the fuel for a much thirstier T2, so he called back to Belfast who called the next guy who had just departed in a T2 for Paris, checked his fuel ticket, and diverted to Birmingham rather than ditch in the Channel. Not sure how you could program that into anything except three humans, never mind getting Birmingham Control to reorganise all their traffic.