In the winter of 631, in the Eastern Market of Chang an, an official of about forty was brought to the place of execution.
His name was Zhang Yungu. His post was assistant director of the Court of Judicial Review, which meant that he decided criminal cases.
The sentence was read out. It was short, and it was death.
The histories give it four characters. Executed in the Eastern Market.
For a few days afterwards the palace was quiet.
Then the emperor regretted it.
One Judgement
Zhang Yungu was not a nobody.
He had served in the household of a prince, and he had written a memorial on government that the emperor liked so much he had it put on a screen. In it was a line that officials still quote: the sage takes power in order to rescue people from drowning, not so that the world may serve one man.
Li Shimin, the emperor Taizong, rewarded him and moved him up.
By 631 he was at the court of judicial review, handling capital cases.
Then came Li Haode.
Li Haode was a man from Xiangzhou who had said things he should not have said. He was arrested and put in the prison of the court. Seditious speech was a serious matter under the code.
Zhang Yungu examined him, talked with him, and wrote a report.
The report said that the man had a long standing mental illness, that his speech was disordered when the illness was on him, and that by law he should not be punished for it.
That was not a favour. Tang law had a provision for the insane and the gravely disabled: reduction of sentence, or redemption by payment.
Taizong read the report and was inclined to be lenient.
He also knew the man who wrote it. The memorial Zhang Yungu had produced years earlier was not flattery, and the emperor had liked it enough to have it displayed in his rooms.
A memorial like that buys a man a hearing. It does not buy him a second chance.
Then the censor Quan Wanji filed a charge.
He said three things. Zhang Yungu was from Xiangzhou, and Li Haode s older brother held office there, so this was local loyalty. The imperial decision had not yet been issued, and Zhang Yungu had already gone to the prison to tell the prisoner. And the two of them had set up a chessboard and played.
The third point was the fatal one.
A judge playing chess with his prisoner.
Taizong flew into a rage and ordered Zhang Yungu taken out and beheaded.
It took a few days.
Quan Wanji made his name on that charge. He was the kind of official who rises by informing, and the histories do not think well of him.
Years later he was appointed to the household of a prince who was planning a revolt. He remonstrated, several times, and the prince had him killed.
Three Reports
Something should be said here about how a death sentence worked.
It was not carried out because a judge pronounced it. The file went up for confirmation, again and again, to the emperor himself.
The Sui dynasty had set the number at three. The Tang kept it. The reasoning was simple. A life cannot be given back, so it is worth looking at the file more than once.
The habit was older than the Sui. The Han had restricted executions to autumn and winter, on the argument that spring is for growth. The northern dynasties wrote the rule into their codes. The Sui added the count.
By the early Tang there were other brakes too. No executions in the months of fasting and abstinence. No executions on the prohibited days. A pregnant woman could not be executed until a hundred days after the birth. A local official could not act before the reply came back.
Many rules. Whether they held is another question.
The problem was that the three reports were often done in a single day.
The file went up, the chancellery initialled it, the imperial chancery initialled it, the emperor wrote approved, and by evening it was finished. Three reports had become one formality.
That is how Zhang Yungu died.
Taizong later spoke about it to his chief ministers, and the record is in the Zhenguan Governmental Principles. He said: I consider death the heaviest penalty, and I set three reports so that men would think it over. Yet the offices now finish all three in one day. That is careless.
He issued a new order. In the capital, five reports. In the provinces, three.
He set the schedule. Two reports in the two days before execution, three on the day itself. They had to be spread out. They could not be done in one sitting.
He added a penalty for officials who skipped them.
That arrangement lasted as long as the dynasty.
One man was killed by mistake, and five gates were built.
Five gates do not stop an imperial order.
The reports went to the emperor. If the emperor wanted a man dead, five reports were five pieces of paper.
What the system actually did was slower and more useful. It made officials hesitate. It sent the file across more desks. It meant that a county magistrate could not walk a prisoner out before the autumn.
Slowness is a kind of mercy.
The Edict of 652
Twenty two years after Zhang Yungu died, there was a new emperor.
In 651 Gaozong promulgated the Yonghui Code. It followed the Zhenguan Code of his father almost article for article: twelve chapters, about five hundred articles.
The code existed. The problem was reading it.
The same article meant one thing to a judge in Chang an and another thing to a judge in Luozhou. The law examinations turned out answers that could not be marked, because there was no standard answer to mark them against.
In 652 the emperor ordered a commentary, article by article.
The commission was led by Zhangsun Wuji, the emperor s uncle, with the minister of works Li Ji and the president of the department of state affairs Yu Zhining. Under them were officials and academicians who actually knew the law.
It took more than a year.
They did not start from nothing. Chinese jurists had been glossing codes for centuries, and the notes of the Jin commentators Zhang Fei and Du Yu were still in use. The commission inherited that work and made it official.
When it was finished the emperor approved it, and the court praised it, which is what courts do.
In 653 the commentary, in thirty scrolls, was promulgated with the code, article and explanation printed together.
It ran to more than three hundred thousand characters, ten times the length of the code itself. The code was a skeleton. The commentary put flesh on it.
From then on, judges cited the commentary, candidates memorized it, and the empire had one reading instead of many.
The Old Tang History says that those who decided cases all cited the commentary and analysed with it.
That sounds ordinary now. It was not ordinary then. A judge could no longer rule on his own understanding of the words. He had to point to the sentence.
Rome had done the same thing a century earlier, and for the same reason. Justinian ordered his jurists to gather and settle the law, and the result was a body of text that outlived the empire that made it.
Every legal system eventually reaches the moment when it decides that the words must be fixed, because men will not agree about them.
How to Explain a Law
The Tang Code with its commentary has twelve chapters and five hundred and two articles.
The first chapter is the general part: the five punishments, the ten abominations, the eight deliberations, office offsetting a sentence, confession, joint offence, repeat offence. The other eleven take up particular business: palace security, official conduct, household and marriage, stables and granaries, conscription, theft and violence, assault and litigation, fraud, miscellaneous, arrest of fugitives, and prisons.
The five punishments run from light to heavy. Beatings with the light rod, beatings with the heavy rod, penal servitude, exile, death.
Death came in two forms, strangling and beheading.
The ten abominations were the worst categories of crime: plotting against the state, plotting against the ruler, plotting rebellion, violence against kin, inhuman conduct, great irreverence, unfilial conduct, discord among kin, breach of duty, and incest. These ten were not covered by an amnesty.
The eight deliberations allowed certain people to have their case reviewed rather than judged: the emperor s relatives, his old companions, the wise, the capable, the meritorious, the high in rank, the diligent, and the descendants of former dynasties. Review usually meant a reduction.
Office offsetting let an official pay part of a sentence with his rank.
These articles look cold. Behind each one there is somebody.
Take the article on intruders at night. A man who enters another man s house at night without cause is beaten forty times. If the householder kills him on the spot, it is not a crime.
That is a hard rule, and it admits something true. After dark, a man cannot tell a thief from a neighbour, and the magistrate is not there.
There is an article on foreigners. If men of the same foreign origin wrong one another, judge them by their own custom. If men of different origins wrong one another, judge them by Tang law.
Chang an held Persians, Sogdians, Sillans, Japanese. That article was written for them.
And there is a catch all at the very end. Whoever does what ought not to be done is beaten forty times; if the matter is grave, eighty.
What ought not to be done is not defined. The judgement is left to the judge.
A code that wanted to cover everything still had to leave a hole, and trust the man holding the file.
The commentary is not a dry gloss. It talks.
It parses the words: the commentary says, what is meant by this term is such and such.
It gives reasons: why the rule is drawn here, what abuse it is meant to stop.
And when a case is difficult, it asks itself a question and answers it, in the voice of a teacher in a hall. Suppose a man does this, what penalty does he deserve? Answer: he deserves this.
One sentence from the general chapter has been quoted for thirteen centuries. Ritual and propriety are the root of government; punishment is its tool.
That is not decoration. It decides how heavy many articles are.
It is why a family may conceal a member s crime, except in the three great political offences. Confucius had said that a father covers for his son. The code wrote it down.
It is why a condemned man with no other male in the house to support his parents may report the fact and have the sentence reduced.
It is why, when a fight leaves a man injured, sentence is postponed for a fixed period to see whether he lives. The period is set by the injury, ten days for a bruise, fifty for a broken limb. If he dies within it, the charge is homicide. If he recovers, it is assault.
The rule exists because a beating is not a verdict. The body is asked to give the answer.
These articles are not knives. They are rulers.
They have marks on them, and they have a temperature.

Thirteen Hundred Years
Once the commentary existed, the law of East Asia had a common source.
Japan s Taiho Code was promulgated in 701. Its chapters, its punishments, its order of articles follow the Tang. The students who wrote it had lived in Chang an.
The men who drafted it were a prince of the blood and a scholar named Awata no Mahito. Their ship went home with copies of the Tang code and a shelf of Tang legal writing.
Korea had the same inheritance. So did Vietnam, in the Le dynasty code of the fifteenth century.
The Song took the Tang code and reissued it almost unchanged. The Yuan did not abolish it. The Ming reorganized the chapters. The Qing kept the frame.
China left that system only at the very end, when Shen Jiaben was told to draft a modern code and hired Japanese jurists to help. That was 1902. From 653, that is one thousand two hundred and forty nine years.
One man s ending should be told here.
Zhangsun Wuji had led the commission that produced the commentary. In 659 an official accused him of treason.
He was tried under the Tang code.
Nobody filed five reports for him. He was stripped of rank and banished to Qianzhou, and on the road he was made to kill himself.
The code he had signed contains the eight deliberations, and the first of them covers the emperor s relatives.
He was the emperor s uncle.
The book did not save him. The book survived him.
What can be read today are fragments from the cave library at Dunhuang, page by page, with the copyist s slips still in the margin. The Japanese manuscripts are fuller, some of them copied in the eighth century.
In thirteen hundred years the dynasties changed a dozen times and the codes changed their names, and the sense of the articles stayed.
No source says whether it snowed on the day Zhang Yungu died.
It says only that afterwards, the emperor regretted it.