On the march to Baghdad in 2003, back when many Americans expected the Iraq war to last weeks and not years, a little-known two-star Army general named David H. Petraeus posed a question to a reporter accompanying him that would come to define the grueling U.S. combat mission there: “Tell me how this ends.”