She is given 100 days to forge the soul, given only official histories, the Emperor's diary, and Gaotona, the only non-corrupt advisor, a task even she deems impossible.
As the two research the Emperor's past together, Gaotona learns more about forgery, a generally detested practice, and the two develop a grudging respect for each other.
During this task, Shai realizes the Emperor had once been idealistic, but a life of leisure resulted in his recent indulgence, and resolves to create and tweak the soul as her masterpiece, setting him on a better path.
In the postscript, Sanderson explains that he was inspired to write this story after visiting the National Palace Museum in Taiwan and also by memories from the two years he spent in Korea as a missionary for The Church of Jesus Christ of Latter-day Saints.
[1] Strange Horizons called it "thoughtful yet exciting" and "difficult to put down," and judged that it deserved its award because of the questions it raises about the nature of art.