If so, the Theme role of upon percolates, and it must be identified as Agent when sit upon is merged with the Agent-assigning v. However, the Theme and the Agent cannot refer to the same object: one cannot sit upon oneself.
sit must be merged with a PP like upon the hat.