Closed-loop stability analysis of RL agent controller system