Background
The timing of the Shu Code's drafting — at the moment Yizhou was first pacified in the nineteenth year of Jian'an — was no accident. From the perspective of political inheritance, Yizhou had been governed by Liu Yan and Liu Zhang, father and son, for over twenty years, producing political habits of "leniency without discipline and magnate domination" — the governors' orders did not reach beyond the offices, local powerful families each maintained their own private law, and officials' stipends depended on attachment to magnates rather than on court payment. This system barely functioned under Liu Zhang but was entirely incapable of resisting external force in the context of the San Guo warring-states environment. Although Liu Bei had militarily crushed Liu Zhang's resistance during the Yizhou campaign, what he inherited was a structurally loose and habituated shambles. Zhuge Liang acutely understood that for the new regime to take root in this land, it had to reorganize the relationship between officials and people with a legal-political system fundamentally different from the Liu Zhang era; otherwise Yizhou would quickly evolve into "an old Yizhou with a new master but no change of system." Fa Zheng's citation of "Emperor Gaozu's Three-Clause Code" in opposition to strict laws reflected precisely the preference of the old Yizhou gentry for lenient governance — they hoped the new master would maintain the old rules; Zhuge Liang's counter-argument that "Liu Zhang was dim and weak, his virtuous governance failing, his benevolent policies becoming exhausted" was a clear refusal of this preference.
Key Figures
Although the Romance highlights only Zhuge Liang in presenting the Shu Code's drafting, it was actually the work of a legislative group of five core figures: Zhuge Liang, Fa Zheng, Yi Ji, Liu Ba, and Li Yan. Zhuge Liang, as General of the Army (Junshi Jiangjun), presided over the whole and fixed the fundamental direction of legislation as "using law to instill awe while balancing grace and honor." Fa Zheng, as a representative of the Yizhou native faction, played the role of "the opposition" in the legislative process — his opposition arose not only from personal standpoint but also represented the overall misgivings of the Yizhou gentry toward the "strict law" line; his "yielding and acceptance" carries the symbolic meaning of drawing the Yizhou gentry into the framework of the new law. Liu Ba was expert in finance and documentation; having entered Sichuan from Lingling, he was greatly valued by Zhuge Liang, and the sections of the Shu Code concerning coinage, taxation, and contracts were largely directed by him. Yi Ji was a senior advisor of the Jingzhou faction, taking on a coordinating role to bring the Jingzhou leadership group into the Yizhou legal-political framework. Li Yan was a representative of the Yizhou Eastern Province (Dongzhou) faction; his participation enabled the new law to receive the support of the Dongzhou scholars at the implementation level. The composition of these five — "Jingzhou plus Dongzhou plus native plus Zhuge Liang presiding" — essentially locked all four power groupings into the legislative process simultaneously, giving the Shu Code a cross-factional legitimacy foundation.
Core Issue
The central issue of the Shu Code is the boundary between "strict law" and "benevolent governance." Zhuge Liang's argumentative logic proceeds on three levels. The first is diagnosis: Liu Zhang's failure was not because the law was strict but because "he favored men with office, and at the peak of office they became predatory; he satisfied men with grace, and when grace ran out they became contemptuous" — a system sustained purely by favor and official positions was bound to rot. The second is the prescription: law must be used to establish the baseline of the relationship between officials and people; "when law is enforced, men feel grateful," meaning that only against the backdrop of strict legal enforcement does occasional leniency acquire meaning. The third is the accompanying measures: "balancing grace and honor, regulating superiors and inferiors" — strict law must be paired with clear reward and punishment incentives so that officials both fear the law and wish to achieve. This framework approaches the Legalist "law, method, and power" (fa, shu, shi) tradition of Han Fei, yet also contains what is uniquely Zhuge Liang's Confucian-Legalist compromise — he did not move toward pure Legalist autocracy but preserved "grace and honor" on top of law as a space for flexibility. The significance of this issue in institutional history far exceeds the Shu Code itself: it constitutes in effect the general program of Zhuge Liang's two decades of governing Shu, and is the source of Chen Shou's assessment in his biography of Zhuge Liang in San Guozhi that "the penal governance was severe yet without resentment." A second implicit issue is land and taxation. Zhao Yun remonstrated against Liu Bei's plan to distribute Chengdu's fields and residences to the generals, arguing that "the people of Yizhou have suffered repeatedly from the fires of war, and their fields and dwellings are empty; now they should be returned to the people so they may settle and resume their livelihoods, and only then will hearts be settled". This principle was absorbed by the Shu Code and became the basic land policy of Shuhan after its founding.
Political Consequences
The Shu Code's political consequences had four layers. The first is the foundation of the state: from the nineteenth year of Jian'an through the first year of Zhangwu (221), when Liu Bei declared himself emperor, and on through the prosperous Yanxi years, Shuhan's legal-political system essentially followed the Shu Code framework. The tightness of this framework enabled Shuhan to be the most politically efficient of the San Guo states — the pattern of "all matters great and small being decided by Liang" could be established. The second is integration with Yizhou native gentry: Fa Zheng, Li Yan, and other native representatives, through their participation in legislation, bound their own political positions firmly to the new regime. This integration persisted even after Zhuge Liang's death — the four successive administrations of Jiang Wan, Fei Yi, Dong Yun, and Jiang Wei never fundamentally disrupted the Shu Code system, reflecting its institutional resilience. The third is reverse influence on Caowei and Eastern Wu: Chen Qun, Liu Yi, and other Caowei legislators repeatedly studied the Shuhan legal-political experience; the structure of Caowei's New Code (drafted in 229) was noticeably influenced by the Shu Code's "strict law plus grace and honor" approach; Eastern Wu's legal-political system was comparatively disordered and never formed a system comparable to Shuhan's. The fourth is the cultural symbol: the Shu Code placed Zhuge Liang in the history of law and governance as an exemplar of "ruling by law," alongside Shang Yang, Wang Anshi, and Zhang Juzheng. This image far surpasses his achievements as a military commander or diplomat and has become the political archetype most commonly invoked when later generations of scholar-officials cite Zhuge Liang.
Counterfactual Analysis
If Zhuge Liang had adopted Fa Zheng's "Three-Clause Code" line, how would Shuhan's development have unfolded? In the short term, the Yizhou native gentry would have been more satisfied, and the political resistance to Liu Bei's initial entry into Sichuan would have been lower. But in the medium and long term, lenient governance would have perpetuated the institutional ailments of the Liu Zhang era — magnate growth, official neglect, and chaotic taxation — and Shuhan might within three to five years have repeated Liu Zhang's mistakes; it would have been unable even to establish the stable rear area that Zhuge Liang's northern expeditions required. In other words, the strict law line of the Shu Code was thankless in the short term but essential in the long term; this choice in itself tested Zhuge Liang's ability to judge "the political time scale." A second counterfactual: if Fa Zheng had not "yielded and accepted" but continued to oppose, could the Shu Code still have been implemented? Given Zhuge Liang's standing in Liu Bei's mind, he could fully have imposed the new law unilaterally — but the cost would have been the latent resistance of the Yizhou native faction. Fa Zheng's "yielding and acceptance" was a kind of public political endorsement, converting potential opponents into supporters; this political wisdom already transcended legal technique and entered the realm of the art of governance. From a broader perspective, the Shu Code is one of the rare cases in ancient Chinese history of "systematic legislation on the eve of a small state's founding" — fifteen years earlier than Caowei's New Code and fifty-seven years earlier than Western Jin's Taishi Code. Its success proved that whether a state succeeds or fails in its founding depends not on the size of its territory but on whether it can use a clear set of rules to integrate heterogeneous political forces under a single order from the very first moment.
