I believe that extending the proposal with a logical clock, rather than using LWW, would make the potential solution more robust and less complex. Without this approach, numerous edge cases could arise. For example, one might fetch the latest state from the store, then go offline for a week (e.g., by suspending the PC), and subsequently push a backup that overwrites data from other devices. By incorporating a logical clock, we only need to handle the if newClock > oldClock condition within the stateful store and ensure this clock is incremented on the clients.