Conrad's Fate by Diana Wynne Jones

An orphaned boy is apprenticed to a secretive household of magic where duties, rivalries, and hidden plans collide; as he uncovers the truth about his past and the strange rules that govern the enchanter he serves, he must contend with dangerous intrigues, shifting loyalties, and a fateful choice that will shape his identity and the balance of power around him.

Purchase from Bookshop.org