It's called a line-interactive UPS. You can buy it for $200.
A line interactive UPS does not sync necessarily sync you to the grid, though the electronic will usually try to keep it in sync. It's not necessary here.
Not really, but depends on the state of the infrastructure, if it was really because of a power overload, yes, but most likely "your circuit" (which could be your street or your neighborhood) got shut off, in this case there shouldn't be much difference
Yes, a phase difference of 180 can definitely happen but I guess most electronics can survive a 1/60s (I'd say even 1/10) switching time, which is probably enough to have the grid take over.
(Or of course you could have the grid and solar charging batteries then your own high power inverter for your house but that of course would mean $$$$$$)
And you'd still have to sync the inverter, having the inverter simply continue to run until it's back in sync with the grid, then just reconnect (as a previous comment wanted) is likely not an option for most consumers.
For that it would likely be cheaper to have a full DC stage as you mentioned.
Just shut it down, flip the switch and restart. Everything else will just be prohibitively expensive because it needs to be very safe.
If you get the phase wrong then you'll either reduce the lifetime of your components or the components explode after the nearest power plant tries to pump all available power into your poor inverter.
Only if you design it to. The phase locked loop would "listen" to the mains frequency and slew to match. Slew speed is simply a design parameter you can set to any value.
I’m pretty sure companies like Victron Energy already make these kinds of systems - combination solar inverters and battery chargers that have transfer switches to be able to seamlessly switch to UPS mode when the grid drops out but can still export excess energy when it’s up.
And that's for what you need to allow your inverter to handle this automatically (you might need another voltage sensing channel to sense the grid-side of this breaker).
Your UPS handles an order of magnitude (or more) less power than a whole-home solar installation.
None of these problems are intractable of course, but you are oversimplifying the problem a little.
One can get a UPS affordably that will power 1500 watts of continuous power. Being able to supply just that much, or twice that much, from solar panels in a grid-down scenario would be tremendously useful, even if it's not enough power to fire up my welder.
When the grid comes back from a blackout, chances are that it browned out beforehand so your sync is to a low frequency and coming back it'll be high frequency because the grid wants to compensate for loads jumping back on.
Additionally the components to generate your own waveform are cheap, yes, but not that cheap, adding them to the microinverter would increase cost quite a bit.
And you'd still need a transfer switch because if you happen to be 180 degrees out of phase, which CAN HAPPEN then your panel will behave like a dead short at double grid voltage. The current flow will definitely exceed the maximum tolerances and the magic smoke goes out.
You will absolutely need a transfer switch just so you don't fry all your devices the moment the grid comes back. Even then, syncing to the grid is a rather delicate maneuver since the grid will be constantly changing phase and it'll be simpler to shut down all inverters, connect back and have it all run back up on the grid itself.