I understand the voltage, frequency, phase, and maybe power quality of each grid must all be compatible at the moment of linking, and that each grid is a complex beast that's difficult to influence. So in the past, it could be very difficult to align all these variables at once.
How much has modern technology improved this? For example, atomic or GPS clocks should allow each grid to keep its frequency and phase locked to a common standard... at least in theory?
If we wanted a resilient grid design where a fragmented grid could start undamaged parts of itself independently, then link back together automatically as soon as faults were cleared - how close are we to having the technologies to do this, and how much restriction or expense would it add?
I'm also interested in near-future (but not science fiction) speculative designs, like putting large batteries in the grid fragments with grid-forming inverters that could drag the fragments into mutual compatibility.