Syriza in retrospect were strategically naive, but not because they participated in the negotiations … more because they didn't arm themselves.
They needed to prepare the Greek public and institutions, practically and politically for a smooth exit from the eurozone—not necessarily in order to do it, but because it would've given them a position to work with.
As it is they've taken a bluff into a card game where the Eurogroup holds all the cards. The negotiations are illusory, the EU is just deciding what they will force Greece to accept, which is taking a more humiliating form in each new iteration.
That said, it should not be forgotten that the current parameters do include €86bn over three years for Greece to hold off its creditors. It's not a stimulus, just a security for debt repayments. It wouldn't be enough to put them in a 'sustainable' position or back in positive growth, so austerity would pretty much grind on.
If the deal is accepted by the Greek parliament, perhaps when we get to this crisis point again after three more years someone in Greece will be prepared for the logical next steps.