A Unified Framework to Enforce, Discover, and Promote Symmetry in Machine Learning (JMLR, 2026)