Question: Sorry if this is off topic, but this seemed to be the best site to ask.

I can think of several examples of the use of a narrative technique: a last-second change in mood, often occurring so close to the end of the work that the audience cannot respond to it, potentially forcing them to reinterpret what they've experienced up to that point.

A plot twist that doesn't change the mood of the story (such as the reveal in *The Usual Suspects* or the "Wait, the monster isn't dead!" cliche in horror) is not an example of this, nor is a plot twist necessary for this to occur (The absolute best example of this I've been able to find is in [this short animation](https://www.youtube.com/watch?v=XMv5xMwdau4)) though one can be a catalyst (for example in the 'true' ending to the game [*The Witch's House*](https://www.youtube.com/watch?v=37FWMIPvN3g)). It is distinct from Bathos, though if applied properly Bathos could be an example of this. It is perhaps the same as or at least a narrative equivalent of a similar technique in music, for example in the opening theme for the game *The Legend of Zelda: Majora's Mask* (which also uses it to a degree in the opening cinematic it plays over) or with the more commonly used Picardy Third.

My apologies for the lack of links- my reputation doesn't allow posting more than two. I'll edit this once I can, until then it shouldn't be too hard to find what I'm talking about using google.

Answer: 
Consider simply calling it a **reversal**.

> 
> A reversal is when something (character, plot) appears to be one thing, or going on way, and changes on a dime so that there’s a perspective shift and the reader (and characters) see that thing differently.
>  [- What is Reversal in Fiction Writing? by Vicki Hinze](https://vickihinze.com/what-is-reversal-in-fiction-writing/)
> 
> 
> 

The ones you cite are specifically *character* reversals, revealed at the end of each narrative.

> 
> So in short, a character reversal is when we perceive a character in one way and then discover that character is different from our perception. He can be better than we thought, or worse than we thought, but he’s definitely different than we thought. And yet when we learn his true nature, it’s plausible for him (and thus to the other characters and readers).
>  [- ibid](https://vickihinze.com/what-is-reversal-in-fiction-writing/)
> 
> 
>
The word below is NOT necessarily a narrative device ? or is it ?

but the word below comes to my mind.

> 
> [**catharsis** at Dictionary.com](http://www.dictionary.com/browse/catharsis?s=t)
> 
> 
> the purging of the emotions or relieving of emotional tensions, **especially through certain kinds of art, as tragedy or music**
> 
> 
> 

Rather than a story that resolves or sometimes returns the protagonists to a new equilibrium a story of catharsis suggests an end very different from the start, and all the struggles culminating in a shift of outlook ?

> 
> [**cathartic** from Oxford Online Dictionaries](https://en.oxforddictionaries.com/definition/cathartic)
> 
> 
> 1 Providing psychological relief through the open expression of strong emotions; causing catharsis.
> 
> 
> ‘crying is a cathartic release’
> 
> 
> ‘Today, audiences prefer big statements, cathartic effects and emotional exhibitionism.’
> 
> 
> ‘The play is supposed to build to a final cathartic spilling of secrets and emotions.’
> 
> 
> ‘I also think there is real value, cathartic release, in applying to humor to the situation and being able to openly laugh at what we once feared’
> 
> 
> 

Note those sample sentences at the online dictionary relating to fiction - perhaps they might be useful?

Both Transformation of outlook and a sudden culmination are involved.

HOWEVER, another failure with the word is that it generally means a 'growth' or 'improvement' ... if the story took a person from happy and active and left them confused and dejected, it would not be the right word at all.