Critic as Lyapunov function (CALF): a model-free, stability-ensuring agent