In my estimation, I think that RAW is given too much importance and credence to any successes that the GoI has had vis-a-vis Pakistan's troubles over the past 10 years.
I've always said that the GoI has played a blinder on the diplomatic front, and dealt its cards incredibly well. That for some is overlooked. Sound bites transcend global politics, and magnify certain situations or the profile of countries. We saw the impact of sounds bites such as "mad dog" (Reagan on Ghadaffi), "axis of evil" (Bush on NK, Iran and Iraq) etc. These lend governments around the world, and people to understand those countries in a certain (negative) light.
The blinder that GoI played was using the word "cross-border terrorism" (CBT) to define Pakistan's activities in Kashmir, and then allowing this phrase to be applied to Afghanistan.
In the aftermath of 9/11, with no takers in the world for the "Kashmiri freedom fight", India rammed home CBT over and over again, in ever single fora, every single meeting, with every single Western dignitary who visited Delhi until the point was made clear.
In addition to that, the restraint India has shown despite incidents like the attack on Parliament in 2001, or 26/11 has given them a lot of credit in foreign capitals.
They've contributed to Afghanistan in a positive fashion from what the Afghan's say, as well as their govt, despite us failing to grasp or acknowledge that. The real problem has been the fractured nature of our politics and decision making since 2008.
I have no complaints under the Musharraf era, as I can see progress towards peace was being made. Even pre 9/11, Musharraf was clamping down on jihadi collection boxes at mosques, and did a lot to cool tensions as well as introduce a mutually agreeable solution to Kashmir.
However, the internal dysfunctional nature of our corrupt politicians, the lack of domestic and foreign policy foresight is just a reflection of how bad we are with governance, and making progress on even the smaller things.
All the while that India advances. In education, in health, economic, defence, with the US, in relations with China ($75 billion annual trade vs. Pakistan's $11 billion), we are left behind in all spheres.
RAW has been better perhaps on the chess board, it hasn't needed to do a great deal because we've imploded and handed the mess we're in on a plate to India.
However, India has upped the propaganda machine to malign us (and quite rightly so), and used terms like CBT to leave us flat-footed, weak, isolated and desperate.
I can't blame India, if the shoe was on the other foot, we'd do exactly the same. But my God, we've made it terribly easy for them.