Critical role of magnetic moments in heavy-fermion materials: revisiting mysteries of SmB
6Using the parameter-free SCAN density functional, which treats spin on an equal footing with other degrees of freedom, this study reveals that multiple competing magnetic phases lie very close in energy in the heavy-fermion insulator SmB$_6$. This indicates that spin fluctuations are key to understanding the material. The predicted electronic structure, including the Fermi surface, explains the observed bulk quantum oscillations and low electrical conductivity, while the topological Kondo state is robust across magnetic configurations.