No mods, just vanilla PVE-C Settings. But thralls two gates inside a structure are somehow getting aggroed through gates and joining the fight outside.
I managed to prevent them to do so by setting them to “attack nothing” mode. Though it’s kinda tricky when you think about demolishers also going through the closed doors and gates, or spawning inside your base near the coffer to demolish your random workbenches.
I would advice you to set your inside fighters to attack and chase the minimal distance (5 meters). This way they should not be triggered by the fight outside, unless the enemy appears in the diameter of 5 meters.