Even as the war in Afghanistan becomes America’s Longest War, there is an end in sight.