>>54242144Three years ago Yellow's source code got leaked, and debug logs were found within it. This one is a translated log for the poke doll skip and the arrow is a response from Game Freak. "It is a specification", meaning it's an acceptable choice.
The way it works is that when you run from the ghost you get pushed one tile back, and so need the Silph Scope to defeat the Marowak. But other methods of exiting the battle weren't accounted for, so Teleport, Whirlwind, and Roar work too. The poke doll works similarly to those moves, which is why it works here.
It was changed in FRLG as part of a design choice to require the player to specifically defeat the Marowak, therefore the skip doesn't work anymore.