At the end of the day the other side of the border needs to be secured by a military force that isn't TR and it needs to be urbanized or have secured economic activity so weapons are not so prevalent. This should have occurred in Syria as well, but the situation with the Kurds was not understood at all in foreign policy.
You can thank Davutoglu's foreign policy here but also that of previous governments.
That area of Iraq needs foots and alot of them so to solve this one and forever Turkiye needs to send 100+k soldiers inside north iraq and take every village under control or those attacks will happens forever .
This kind of mobilization simply isn't sustainable with the budget or the failure of foreign policy situation of TR.
As a result, this war will drag on for at least another decade. I am wondering how the conflict will shift when the leaders of the PKK die of old age. I think the movement will splinter with radical groups forming.
And it is political suicide for any government to negotiate or ally with any Kurdish entity to fight the PKK by proxy and drain them of resources, due to the heated situation internally with domestic politics.
Iraq won't secure the border because Iran doesn't want it to.
TR can't do what is necessary in foreign policy, militarily or in diplomacy to end this close to 5 decades conflict. I think it's a mistake to blame this on the west as well, it is a sign of weakness in these three areas.