The surrender module does not need to be synced or grouped.
The surrender module will kick in as soon as there are fleeing units.
When units flee, there is a set of conditions that are checked, and depending on these conditions, the units can surrender.
It's dependent on friendly/enemy force, and some more variables. Groups with players do not surrender.
Units that surrender will drop their weapons and put their hands behind their heads, change to side civilian and at some point will be garbage collected.