An unspoken mantra has guided how senior military officials have navigated the Trump era: “Keep your head down.” Faced with an impulsive president who has upended bedrock alliances and delivered policy bombshells by tweet, Defense Secretary Jim Mattis and other Pentagon leaders have responded by confining themselves to executing orders, rebuilding military strength and trying to shelter their institution from the upheaval and drama.