This article records tradition as it has been passed down and reported. Its sources are not yet part of the atlas's verified catalogue.
Shang Yang arrived in Qin around 361 BCE as an outsider, a minor nobleman from the small state of Wey with a set of ideas about law and administration that no established Qin aristocrat had any reason to welcome. Duke Xiao of Qin welcomed him anyway, made him chief minister, and gave him the authority to remake the state from the ground up. Over roughly two decades Shang Yang replaced hereditary noble privilege with a system of ranks earned through farming output and military service, broke the population into small mutually liable groups whose members were legally bound to report each other's crimes, standardized weights, measures and law across the state, and had the resulting code publicly promulgated and enforced without exception for rank or family connection.
That last point was not a slogan. When the crown prince himself violated the new law, Shang Yang could not punish the heir to the throne directly, but he punished the prince's tutors in his place, a public demonstration that the code applied to everyone the state touched, with no quiet exemption for the politically powerful. It worked exactly as intended, and it also guaranteed Shang Yang a permanent, growing list of enemies among the nobility whose hereditary privileges his reforms had stripped away, all of whom had been waiting, patiently, for the one thing keeping Shang Yang safe, Duke Xiao's personal protection, to end.
It ended in 338 BCE. Duke Xiao died, his son took the throne, and the resentment Shang Yang's twenty years of reform had built finally had an opening. He fled toward the border, and, in one of the most quoted ironies in early Chinese history, was reportedly refused shelter at an inn because his own law, the one requiring innkeepers to verify travelers' papers or face punishment themselves, made hosting an unregistered fugitive too dangerous to risk. Captured and executed by dismemberment, torn apart by chariots, he died under the exact legal machinery he had spent his career building. The reforms did not die with him. Qin kept every institution he had put in place, and a century later they were the foundation the state used to unify China.