we could defend against sync_state not having that key maybe.
sync_state.get('foo', Null), and complain about a bug if we got null. maybe too defensive, but I can foresee a change in here in the future while forgetting to update the stored state fields...