Boundaries of chaos and determinism in the cosmos