The natural geometry of a behavioral homology