Text this: Groupoid Semantics for Thermal Computing