I want to know what the plot device is called where the stumbling protagonist has a brush encounter with the antagonist who lets them free, so that they lead them to the "motherland" / "headquarters".
The best example I can think of is.
Happy Feet - Where Mumble goes on a wacky adventure looking for who is stealing all their fish, starts dancing, starts trending on tiktok, gets sent back with a tracker and the elders shout at him "YOU LED THEM HERE??!!"
I'm looking for the literary device used here / story device / military tactic (employed by the antagonist usually) / spy tactic etc.