Active inference and agency: optimal control without cost functions | Synapse