Narrative Devices
Deus Ex Machina
A resolution supplied by an outside intervention insufficiently established by the preceding story.
Read
A deus ex machina resolves an apparently intractable conflict through an unexpected external force, power, or arrival. The term comes from theatrical devices used to introduce a god onto the stage.
It differs from an earned surprise because the resolution depends less on established choices and conditions. When revising, examine whether an intervention has been prepared and whether the characters' earlier actions remain consequential.