In the civil world, the Air Navigation Order says (or did, I've been retired a while) "Nothing in this Order precludes the captain carrying out any actions he/she considers necessary for the safety of the aircraft, passengers and crew". That was carte blanche, but you'd better be able to justify it. Total authority, but that meant total responsibility.