Where is agreement obligatory?

Ism al-Tafḍīl: Formation, Comparison, Agreement and Parsing