Half the production incidents that start with “but the script said it succeeded” come from the same three missing lines at the top of a bash file. Here is what set -euo pipefail actually does, the traps it has, and the deploy-script pattern that fails loudly instead of quietly succeeding.