Remember one thing, Zia passed away, and Pak Officer Corps failed to carry out the plan which was to create a government after the war that was Pro-Pakistan and create strategic depth for us. Zia was also a proponent of a Pak-Afghan Federation like system. He knew both nations secruity lied with each other. So yes there is failure but this time around Pak Army can correct it's historical mistake; goal right now should be to get rid of any Indian influence in the region completely, and the current Afghan Govt and ANA is standing in the way.Helping the Taliban come to power was the greatest mistake Pak military made in 40 years and I guarantee you they will make this very mistake again and the rest of the country will suffer.
Right now we're getting news of a Talib surge in parts of Afghanistan and ANA troops surrendering. What a great time to embolden and strengthen Talibs! By the time the U.S. leaves the country, they won't even need to be worried about dealing with a credible opposition! They can just take over the country and start sidestepping us! Brilliant 5D chess by the Pak Fauj.