Restore clears the upload queue and queues all local data again. Four laws
state that no local entity is left unqueued and none is invented, and a test
runs the real restore SQL on every subset of already-queued entities.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>