on the roof; court nobles
Rare literary term. Sense 1 is literal 'on the roof'; sense 2 refers to court nobles (historically, those permitted to ascend to the palace floor). Modern usage is very limited.
In classical texts, the expression 'ascend to the roof' can be found.
堂上 refers to court nobles who were permitted to enter the palace.