Mechanistic investigation of the Ru-catalyzed hydroamidation of terminal alkynes.