The United States has been engaging in formal talks with the Taliban, negotiating the release of imprisoned insurgents for pledges of peace.