Bridging the gap: Consistent modeling of protoplanetary disk heating and gap formation by planet-induced spiral shocks | Synapse