Could you elaborate why you see this needs to be automated?
to me, I don't see the need to automate this. Rather, velocity is a discretional parameter according to your observations and agreement with the whole team. Then, you can simply update the velocity setting in ARM