What Ray Dalio Taught Me About Principled Thinking and Building AI Systems