Each mode syncs directly from your client to your PDS. Private mode uses the ATProto spaces alpha.
Your tasks move from {from.where} into {to.where}.
Every task on this device is copied into {to.where}, overwriting any record already there with the same id.
{#if pendingMode === "public"} Your permissioned space is then emptied, and your PDS records become the source of truth. {:else} Your PDS records are then removed, and your permissioned space becomes the source of truth. {/if}
Your tasks stay on this device the whole time.
{switchError}
{/if}