Last week, after much drama, the new Greek government reached a deal with its creditors. Earlier this week, the Greeks filled in some details on how they intend to meet the terms. So how did it go?

Well, if you were to believe many of the news reports and opinion pieces of the past few days, you’d think that it was a disaster — that it was a “surrender” on the part of Syriza, the new ruling coalition in Athens. Some factions within Syriza apparently think so, too. But it wasn’t. On the contrary, Greece came out of the negotiations pretty well, although the big fights are still to come. And by doing O.K., Greece has done the rest of Europe a favor.

To make sense of what happened, you need to understand that the main issue of contention involves just one number: the size of the Greek primary surplus, the difference between government revenues and government expenditures not counting interest on the debt. The primary surplus measures the resources that Greece is actually transferring to its creditors. Everything else, including the notional size of the debt — which is a more or less arbitrary number at this point, with little bearing on the amount anyone expects Greece to pay — matters only to the extent that it affects the primary surplus Greece is forced to run.

For Greece to run any surplus at all — given the depression-level slump that it’s in and the effect of that depression on revenues — is a remarkable achievement, the result of incredible sacrifices. Nonetheless, Syriza has always been clear that it intends to keep running a modest primary surplus. If you are angry that the negotiations didn’t make room for a full reversal of austerity, a turn toward Keynesian fiscal stimulus, you weren’t paying attention.