A stoppage-time goal earned Livingston a 3-2 victory and consigned struggling Ross County to a fourth consecutive Premiership defeat that leaves them winless after 10 matches.
Substitute Tom Parkes’ 95th-minute header was yet another bitter blow for under-fire boss Malky Mackay after his struggling side had squandered the chance to put Livingston on the spot.
It was also the price County paid for sloppy defending when Parkes was able to rise and snatch the winner from Alan Forrest’s free-kick.
The Staggies achieved the perfect start and the one they so desperately needed to restore confidence in the ranks.
With just seven minutes on the clock, Arsenal loanee Harry Clarke delivered the opening goal when he gathered a pass from Ross Callachan and slammed a powerful right-foot drive from 25 yards beyond Max Stryjek into the left corner of the net.
Given they have been forced to try to come from behind in the majority of their matches this season, this was a different dynamic and it was immediately evident in the home side’s play they had received a major boost psychologically.
Regan Charles-Cook and Joseph Hungbo epitomised County’s spirit of adventure down the flanks and the latter unnerved Livingston with a promising run down the right side which ended with a shot across the face of goal that whistled past the far post.
But when County were presented with a gilt-edged chance to increase their advantage after 24 minutes they blew it completely.
Having been awarded a penalty by referee Euan Anderson when Charles-Cook drew a foul from Ayo Obileye, Jordan White failed to get enough power behind his effort and the goalkeeper was able to make a save to his bottom-right corner.
Things went from bad to worse seven minutes later when Livingston levelled due largely to poor defending.
Bruce Anderson was able to get on the end of Sean Kelly’s cross and steer his header from the centre of the box past Ash Maynard-Brewer.
It was Livi’s turn to be imbued with confidence and the match took on a much more balanced look.
Significantly, Livingston had also begun to stroke the ball about with some authority and, with just two minutes of the first half remaining, the balance of probability swung in their favour.
Their second goal was a thing of quality, as Odin Bailey curled a perfectly struck left-foot effort around Maynard-Brewer after being presented with the opening by Scott Pittman 20 yards out.
For a long time it looked as if Livingston had County’s measure, but fortune favoured the underdogs when they were awarded a second penalty as a consequence of Kelly putting in a reckless challenge on Hungbo in the 66th minute.
Callachan stepped up to take the kick this time and, while it was not the most convincing penalty, it had enough power and direction to beat Stryjek.
But there was a sting in the tail for County and one that may ultimately have dire consequences.
What the managers said...
Ross County boss Malky Mackay: "In all four games we have been dominant, not just in the possession of the ball because I know that doesn't matter at the end of the day. It's goals that matter, but we are actually creating chances.
"Anyone who has seen those four games has been asking how we have been beaten.
"I believe in the group of players, I believe in the chief executive and I believe in the chairman.
"I suppose all I'm trying to do is show on the pitch what myself and my staff are bringing to the club. After that, it goes outwith anything I can be involved in.
"I am really proud to be the Ross County manager. It's a great group of people and a great club, in a great part of the world.
"I will keep going and keep trying to do my best for the club. What I have seen over the piece is that we have gone toe-to-toe with every team in this division.
"It's the odd half we have been turned over, but the rest of the time we are in every game. I have clearly got that faith in myself and my team."
Livingston boss David Martindale: "I'm delighted, but I think Ross County and Malky Mackay can feel a little bit hard done by.
"To be honest, they deserved more out of the game and should feel very hard done by coming away from that game with no points.
"That's how it was - and I've been on the wrong end of that myself multiple times.
"From what I've seen there is more than enough in that Ross County team to start picking up points very soon."
Ross County travel to Dundee, while Livingston host Dundee United, with both Scottish Premiership games kicking off at 7.45pm on Wednesday.