In the summer of 2011, Army Lt. Gen. William Caldwell IV made a round of public appearances to boast that he had finally solved a problem that had kept U.S. troops bogged down in Afghanistan for a decade. Under his watch, he asserted, U.S. military advisers and trainers had transformed the ragtag Afghan army and police into a professional fighting force that could defend the country and keep the Taliban at bay.