The Mouse and the Ball - Towards a Cognitively-Based and Ontologically-Grounded Logic of Agency