This is why a direct rail route to China through Gilgit/Baltistan is fast becoming a necessity. Ideally it would have been nice to work with the Afghans but either we are seen by them as groveling for what would be mutually beneficial relationship, or we are dealing with their instability and irredentist claims. Better to skip all that, work with China and build the bloody rail line, and secure a more secure route to Central Asia. Sideline Afghanistan and fortify the border with Afghans with a deep ditch and minefields were necessary, and wait for them to come to us for business deals as we work on fixing our internal problems. Pakistan needs to find way to not be dependent upon the Afghans what so ever.
Pakistan needs to have the bandwidth to remove Afghan politics from the front of Pakistani minds.
Let the FC become a more capable and robust constabulary force and properly police the border and reduce areas to identify and deal with the miscreants with the national borders while the Army raises enough troops to man the western borders (both Afghanistan and Iran) in full force.
P.s. it appears like the powers that be are trying to waffling on everything but particularly on how to deal with the Afghans, trying to split the difference and in that indecisive attitude the Afghans are deciding to use Chabahar over Gwadar.