Hegseth’s plan to livestream an execution was not without precedent — it tapped into a dark and forgotten U.S. tradition.