Graceful failure

The worst case is not a crash. It is a confident wrong answer that looks like success.

When confidence is below the bar, stop, say so, and hand off. Preserve the user's last good state. Never complete an irreversible step on a guess.