refactor(hal/task): implement hal requests and responses handling