The onset of magic in a quantum subsystem reveals a compact algebra that governs its behavior. — Synthesis