A agree with the general direction this is going, but not with your suggested implementation.
A better squad control would be nice, combined with an overall better way to keep civillians under control.
Hence: The Great horn!
Build a great horn (requires 3 wood) place it somewhere.
When built you cna create a room from it, which would be called "Retreat" "Bunker" or "Panic Room".
Then horn can have 3 alarm settings:
Green:
Everything just as it is now
Yellow: Military dwarves stop all non eating/sleeping/drinking duties and start picking up their on duty equipment, even when off duty (this would currently only effect bolts). They would also prepare for battle, by eating and drinking, thus allowing them to fight longer. Civilian Dwarves stop taking jobs, related to outside areas.
Red: Civilian dwarves hurry to the panic room and stay there, no matter what! (if you have food/booze/a well/beds inside the panic room they will use those.)
Military dwarves go to their posts, not matter what, they stop sleeping/drinking/eating,searching for their infants and hurry to their posts, with whatever they have currently equipped. When at their posts dwarves will walk a maximum of 10-15 tiles to get food/drink and they will also sleep on the ground near their station.
To sound the alarm someone has to operate the great horn.
So you would q the horn, then select yellow alart, and then task the horn to e sound, or maybe you have three tasks, sound green alarm, sound yellow alarm, sound red alarm. The maximum number of tiles military dwarves walk from their posts when in red alart could also be set here.
Other possible options is stuff for more precise military control.
For example: Every squad can have several posts and patrol routes.
So a squad could have the following posts:
alpha: on top of the wall
beta: behind the 2nd gate
delta: in front of the panic room.
This would allow us to form different lines of defense or have several different defense planes, depending on the direction the enemy attacks from.
With these setup you could add the task: Sound Alpha at the horn and then all your squads would change to patrol/station alpha.
Lots of possibilities.
personally I dont mind setting up complicated patrol routes and defense or counter attack planes, as long as I can see my perfect plan executed upon the blow of a horn Actually I would not mind being able to program the individual behaviours of every single dwarf, cause its way better to put 1h into programming a dwarves behaviour than having to change labour options every 5 minutes.
So yeah, I agree wholeheartedly with you intentions, Munchkin9