"In the Doghouse" is a science fiction short story by American writers Orson Scott Card and Jay A. Parry.
Card originally published this story in the December 1978 issue of Analog Science Fiction and Fact.
Since killing another sentient species is against their moral code, their agent decides that the most common and widely beloved non-sentient species on the planet, dogs, are to serve as the new vessels for his fellow aliens' minds.
This he arranges for them by designing and selling a small solar power plant—disguised as a doghouse—that produces enough energy to serve the needs of an entire household with plenty to spare.
As such, he has doomed them all to the horrible fate of never being allowed to be anything but servants to the dogs' owners, since the humans are not aware of the aliens' intellectual superiority.