the bandaid fix was simple enough, though I still don't know the cause for the bug. If you wouldn't mind sending me your save file, I'd be very happy.
It's to do with pathfinding breaking, but the script is usually 100% stable, so I'm wondering if there's something fucky to do with map generation that causes it.