As Saturday night entertainment goes, a profund exploration of grief, fear, suffering and captivity is hardly on a par with pizza and wine. But Heaven Sent wasn't just an all-time classic, with a performance from Peter Capaldi that rivets you to your seat, some of the best direction seen on the series and Steven Moffat's redemption all rolled into one. It was a triumphant return for a show that has frequently lost sight of its own possibilities over the last ten years.
Doctor Who is the only show on television that could do something like Heaven Sent: to command sufficient money and audience attention to get away with it; to play with form and convention as much as it did; to explore the reaches of outer and inner space; dread, loss and despair; moving castles, a sea of skulls and a remorseless wraith. A Grimm fairytale, an MR James short story, a PC puzzle game and a Hollywood blockbuster. It even lifted straight from its own stablemate - the Doctor's mind palace a clear nod to Sherlock.
Doctor Who's magpie tendencies were on full display here - and the show has never felt so confident, so right in its unique ability to do thumb its nose at convention, to write its own script. To go the long way around.
At its most banal these past ten years, Doctor Who has felt like a pastiche of pop-culture references - it hasn't seemed especially different from other programmes and, perhaps, more importantly, from itself. You can draw a straight line between The Shakespeare Code and Root Of Sherwood - or The Lodger and The Caretaker. Modern-day Earth invasion stories and time-travel cats cradles and historical pastiches. Doctor Who has spent a lot of the last decade sending itself up - or serving up warm reheats. But Heaven Sent didn't simply feel like nothing else on television; it felt like no other Doctor Who.
Estates and flat and chips and fleets of flying Daleks and BBC newsreaders and Murray Gold's awful kidult Hollywood music have become a rut for Doctor Who over the last decade: a comfort zone that has become not only a default setting, but a received wisdom: you can't defy the template, they say; you can't put off the casual viewers.
But this sort of thinking is a trap. It forces Doctor Who - that programme of limitless possibilities - into ever-decreasing circles, a room whose walls will only keep closing in. The overall trend of the series has been one of diminishing returns, with adventures into the surreal, uncomfortable or odd - the very things that Doctor Who is known for - more scarce than a two-handed Dapol Davros.
Both of Doctor Who's showrunners have lapsed into these ruts and they are evident in episodes including - but not limited to - New Earth, The Shakespeare Code, Vampires Of Venice, The Poison Sky, Cold War, The Caretaker. Episodes whose only aspiration seems to be to last 45 minutes. Or the patented end-of-series, kitchen-sink gangbangs. Episodes where every last gimmick and lampshade will be deployed to paper over the cracks of a plot that doesn't really make any sense.
Steven Moffat has virtually admitted that his primary motivation when writing Doctor Who is to maintain the attention of people who might be inlined to switch over - an approach that puts me in mind of Magnus Greel having to absorb the life essences of more and more young girls, just to stay alive.
But in supplicating before an audience - serving up the same old tropes, the ones that are familiar and palatable - can never be a sustainable approach. Doctor Who has always succeeded by playing by its own rules, changing, reinventing itself and kicking against expectations. When it's good and daring and different it turns casual viewers into dedicated viewers, into fans. The very people who resurrected the series. How many programmes have the power to do that?
Heaven Sent certainly did. It currently has a 100% rating on Rotten Tomatoes and has been routinely described as one of the best episodes in the show's 52-year history. And it did this in spite of the fact that featured The Doctor alone in an incomprehensible castle, bereft at the death of his friend, in a bespoke torture-chamber. Perhaps because of it. Its audience was good for the slot and Twitter has buzzing for hours afterwards. Heaven Sent was a success by any metric.
It's a modern paradigm that means trying to woo viewers, those viewers who will never like Doctor Who through the modern curse of relatability, is a fool's errand. Russell T Davies' famous aside about the planet Zog is perhaps the most unfortunate observation in modern television and has cast a long shadow over the programme. It's a received wisdom that has closed many doors to the programme and it's based on a whim, a funny soundbite.
The outcome of this is most obvious in David Tennant shouting and Matt Smith waving his arms around and companions fancying the Doctor and Moffat's speechifying and Murray Gold's schmaltz. It's led Doctor Who's makers to only try to make programmes like Doctor Who.
You couldn't have something like Heaven Sent every week. It's a gruelling watch that requires - albeit rewards - attention; it's upsetting, horrifying and slow and features no audience identification figure. Its music is offbeat, weird, dissonant - surely a deliberate echo of the classic show's Radiophonic Workshop synths and it's startling how successful they are in freeing the show of its familiar ambiance. Its direction occasionally reminiscent of Tarkovsky; its chiaroscuro cinematography. A 57-minute one-hander with a 57-year-old lead actor.
All things that have been thought impossible in the modern Doctor Who. No, you couldn't have it every week - but you could have something as different as Heaven Sent every week. It's a story that demands rewatching. Its sheer quality deserves it; as a lesson in what makes Doctor Who vital, it commands it.
Mark Gatiss' latest script struck me as 40 minutes in search of its admittedly impressive final minute. In that regard it was cut from the same cloth as many of Gatiss' other episodes of Doctor Who: a cute notion, a striking visual sell or - in one case - a smart-arse title.
The polymath writer has tended to produce rather shoddy episodes that have strong concepts at their core but either devolve into pastiche or simply fizzle out. Of his eight scripts for the series few would suggest that, beyond The Unquiet Dead and The Crimson Horror, there's much to commend them.
I quite enjoyed Sleep No More, though I wasn't giving it my undivided attention. In its own right it was a very average runaround (the word 'romp' is forbidden in these parts) with a found-footage device, Moffatian monster and nonsensical twist. At times it reminded me of Night Terrors - in that it was the only other time since Doctor Who returned when the production felt lacking.
From the blank-slate supporting characters (making someone say 'man' and 'pet' every other word is not characterisation), some very wobbly acting and some confusing direction, Sleep No More felt decidedly wonky at times. The plot, if described, is hardly convoluted yet it wasn't always clear what was going on during the episode and some of the dialogue was wince-worthy.
Worst of all, though the final reveal was the most atmospheric part - and was of a sufficiently Vine-able, GIF-able nature to send a few chills around social media and watching kiddies - there seemed to be absolutely no point whatsoever to it, as Reece Shearsmith's Gagan Rasmussen admits.
To have the Doctor repeatedly stating that nothing in the narrative made any sense - something known as lampshading - only adds to the suspicion that the episode was written around the very same conceit that ends Ghostwatch. Lose it and the whole thing was, by definition, pointless.
Does that mean there were not moments to enjoy? No, but it does make Sleep No More once of the shonkier, more disposable episodes this season. An unreliable narrator, a first-person shooter directorial style, a enormous twist that almost takes a pot-shot at our predilection for watching things we shouldn't and a very bad Geordie accent (literally no-one in the north-east calls everyone 'pet' - in fact I'm one of the view few who calls anyone pet) and it's all a bit of mess.
Throw in two of Steven Moffat's greatest hits - the corner of your eye trick from The Eleventh Hour and the angel is Amy's eye in The Time Of Angels - plus a handful of sci-fi and horror tropes and Sleep No More adds up to a very odd episode that, like most of Mark Gatiss' efforts, really doesn't quite feel finished.
This is the third time in one year where the title sequence has been messed with for reasons that don't feel like much more than desperately trying to do something different with the damn show. It's a touchstone in an episode where a shedload of ingredients are hurled at the wall in the hope that no-one notices the paucity of whole.
And that - of the most part - is Mark Gatiss' contributions to television Doctor Who summed up. He really should adapt Nightshade.