Free-energy minimization in joint agent-environment systems: A niche construction perspective | Synapse