If your wall has a hole in it, a man-hunting animal will get stuck in the opening provided that the tile on the inside contains a sleeping animal.
The AI thinks that it can reach the inside of the base, but will just stand in the hole in the wall with the work-tag "moving"
When the animal wakes up, the man-hunting animal will be able to pass the tile.
Reproducible by building a room, leave one tile of the wall open, place a animal bed in the tile next to the hole on the inside of the room. Force an animal to sleep in the bed and force a man-hunting animal via the dev mode.
It's a case of this:
https://ludeon.com/mantis/view.php?id=2588
Thanks!