Ostensibly, Putin and his intelligence services deftly foiled Prigozhin’s coup. We’ll probably never know the full story. From M.K. Bhadrakumar at indianpunchline.com:

The CNN, followed by the New York Times, broke the story on Sunday that the US and western intelligence were indeed aware of the failed coup attempt on Friday night by Yevgeny Prigozhin, head of the Wagner Group of Russian military contractors, “for quite some time and making preparations for such a move, including by massing weapons and ammunition.”
What we do not know is at what point Russian intelligence got wind of it. The Kremlin acted forcefully, decisively and with foresight in real time to scotch the coup attempt within hours. By Saturday evening, the foreign intelligence chief Sergey Narishkin announced that the coup attempt had failed. The Russian authorities were waiting for Prigozhin to make his move.
It is only natural that Russian intelligence kept a strong presence right inside the Wagner tent all through. Damn it, it is a war zone where Russia’s fate is hanging in the balance. The lyrics of the famous Sting song come to mind: ‘Every breath you take / And every move you make / Every bond you break / Every step you take / I’ll be watching you…’
And the Chorus sings, thereupon: ‘Oh, can’t you see / You belong to me? / How my poor heart aches / With every step you take…’