The Ontology of Cognition: From Constraint Dynamics to Modeling Agency | Synapse