In the state of Jin, in the seventh century before the common era, a man had himself locked in a prison.
Nobody had arrested him. He walked in, had the door shut, and sentenced himself to death. The charge was that he had judged a case wrongly and a man had been executed who should not have been.
His name was Li Li. His office was the one the state called li, which meant the officer of justice.
The ruler of Jin at the time was Duke Wen, the exile who had spent nineteen years wandering and come home to make his state the strongest in the north.
One. Mishearing
Start with the office.
In Jin the official in charge of justice was called the li, sometimes the great li, and the title is the ancestor of the name Dali, the court of judicial review that would exist two thousand years later. The post was senior. It answered directly to the ruler. It held the prisons and decided the doubtful cases.
Li Li had been given it because Duke Wen believed he could hear what others missed. The phrase used is ting wei jue yi: to hear the subtle and decide the difficult.
The verb matters. In early Chinese, to hear was not a passive act. It was the central action of a trial. You heard both parties. You heard the witnesses. You heard your subordinates report what they had found at the scene. The whole proceeding was called ting song, hearing the dispute. The judge sat, listened to everyone, and decided who was lying.
To mishear was guo ting, to hear past the mark. Not bribery. Not deliberate cover-up. Not a confession extracted under torture. The history gives Li Li none of those. He simply heard wrongly. He believed a statement that should not have been believed, and a man went to his death.
That is the worst kind of error, because it contains no malice.
To see how easily it happened, remember what a court in that period actually had. No fingerprints. No blood typing. No surveillance. No handwriting analysis. A case arrived with three things: the mouths of the living, the body of the dead, and whatever could be seen at the place where it happened. The mouths lie. The body does not speak. And the scene has to be explained by somebody, usually the man who made the arrest.
So hearing was a high-risk verb. It put the entire weight on the judgement of one person.
The response of Li Li was to arrest himself.

Two. Three ways out
Duke Wen did not want him dead.
The Records of the Grand Historian preserves three exchanges. Each one is the duke offering a way out. Each one is refused.
The first. The duke says: offices differ in rank, punishments differ in weight. This was the fault of your subordinate, not your crime.
That argument works, institutionally. A case passed through many hands before an execution: the arresting officers, the jailers, the coroner, the clerks, the deputies. The man who signed last was the magistrate, but the men who did the work were below him. When something goes wrong, you pursue the people who did the work. Every legal system does this.
Li Li answered: I hold the senior post, and I did not hand it to a subordinate. I take the larger salary, and I did not share the profit with them. Now that I have misheard and killed a man, to shift the blame onto those below me is a doctrine I have never heard of.
The hinge of that sentence is the word profit. He tied authority, salary and liability into one bundle. If you take the post and the pay, you take the consequence. You cannot take only the first two.
The second. The duke says: if you consider yourself guilty, do I also have guilt?
This is a delicate question. The ruler authorises the judge. If a judge who misjudges must die, what is owed by the man who appointed him? The duke is not asking for an answer. He is saying: do not push this logic to the end, because at the end of it we are both standing in the same room with no way out.
Li Li answered: the li has a law. Misjudge the punishment and you take the punishment. Misjudge a death and you take the death. You gave me this office because I could hear the subtle and decide the difficult. I have now misheard and killed a man. The penalty is death.
The li has a law. Those four characters are the bone of the whole passage. He is saying that the office carries a rule that does not come from the ruler favour. It comes from the office itself.
Three. The sword
The duke stopped arguing.
The record gives six characters. He did not accept the order. He fell on his sword.
That manner of dying had a specific weight in the pre-imperial world. It was not the panic of a cornered man. It was a form: the blade set upright, the body lowered onto it. When the histories use the phrase for Wu Zixu, for Bai Qi, for Tian Heng, the person knew he was going to die and was choosing how.
By choosing that way, Li Li wrote the last line of his own judgment. The ruler did not kill me. I applied the law to myself.
Four. The other man with a sword
The same chapter of the Records of the Grand Historian places a second man beside him.
Shi She was chancellor of Chu under King Zhao. The history describes him as firm, upright and incorruptible, a man who never bent for anyone.
Travelling through the counties, he came upon a killing on the road. He chased the killer and caught up with him, and the killer was his own father.
He let his father go, came back, and had himself bound. He sent a message to the king: the man who killed is my father. To use a father to build a reputation for government is unfilial. To discard the law and release a criminal is disloyal. My crime deserves death.
The king offered the second way out. You chased and did not catch him. You should not submit to punishment. Go and govern.
It was a graceful exit. It supplied a version of events everyone could accept: you did not catch him, nobody will pursue it, your father is gone, the matter can end here, keep your post.
Shi She answered: not to favour my own father is not to be a filial son. Not to uphold my ruler law is not to be a loyal minister. That you pardon my crime is the grace of the sovereign. To die under sentence is my duty.
He refused the order and cut his own throat.
Five. What Sima Qian made of it
At the end of the chapter on upright officials, the historian offers a summary.
Shi She released his father and died, and the name of King Zhao of Chu was established. Li Li misjudged and fell on his sword, and Duke Wen thereby set the law of the state straight.
Read that sentence twice and it turns cold. Two deaths have been converted into the reputation of two rulers and the credibility of a legal order. Sima Qian does not say whether the deaths were worth it. He does not mention the man Li Li wrongly condemned. That man is given no name at all.
A paragraph earlier the historian had room for almost everything: the offices, the arguments, the manner of dying. He had no room for the person the case was about. The only real victim in the story appears nowhere in it.
Six. What happened to the rule
The logic Li Li applied was not an isolated gesture. Behind it runs a long institutional line.
The Book of Documents contains what is probably the earliest surviving clause on judicial liability. It speaks of five faults that overturn a punishment: relying on power, repaying a grudge, favouring a relative, taking a bribe, and accepting an intercession. The penalty for all five is the same as the penalty that was wrongly imposed.
The Qin wrote it into statute. The legal texts found in a tomb at Shuihudi list three offences for officials: failing in the sentence, bending the law, and letting a prisoner go. The three correspond to three states of mind, from negligence through to intent.
The Tang code systematised it under a single heading, errors of entry and exit. To send an innocent person into punishment, or a light offence into a heavy one, was entry. To let a guilty person out, or a heavy offence down to a light one, was exit. A full error carried the full penalty. A partial error carried a penalty proportional to the difference.
The Ming and Qing kept the frame and thickened the procedure. Death sentences went through the autumn review and the court review, examined by the nine chief ministers and the censorate and finally marked by the emperor. The purpose of that elaborate machinery was practical. It reduced the probability of error by multiplying the number of people and the number of levels.
The line continues. China today has a system for pursuing responsibility for wrongful convictions, a disciplinary system for judges, and a state compensation scheme. A judge who deliberately decides against the facts and the law faces criminal liability. A judge guilty of serious negligence faces discipline. A judge who merely took a different view of a difficult question does not.
The common law went the other way. English judges have enjoyed immunity for acts done in their judicial capacity since the seventeenth century. American judges have the same protection. If the judgment is wrong, the state pays; the judge does not.
Each arrangement has a logic. One holds that a judge who is not afraid will not dare to decide independently. The other holds that a judge who is afraid will decide safely rather than correctly.
Li Li stands at the far end of the first logic. He was not tried. He tried himself.
Seven. Whether it was worth it
The story is usually told as a moral slogan: a judge must be willing to answer for his errors.
The hard part is not the willingness. The hard part is whether he should have.
Was the death of Li Li an act of responsibility or a performance?
Responsibility, because he applied to himself the standard he applied to others. He sent men to death; he went to death. The logic closes.
Performance, because his death did not bring the dead man back and did not change a single fact of the case. Its only effect was to tell everyone who came after that the man in that seat pays.
Two details are worth keeping in view. Shi She was the chancellor of Chu, which means he was not a judge at all but the head of the civil administration, and the killer he released was his own father. His case is not about a professional error. It is about a man who discovers that the two obligations he has lived by cannot both be honoured in the same hour. Li Li case is the opposite. He had no personal stake in the outcome. He simply got it wrong.
Twenty-six centuries later there is still no answer. A judge today who misjudges does not fall on a sword. The system substitutes compensation, discipline and review, a procedure in place of a death. The procedure is more humane and much slower, and it will never let anyone see the price as clearly as a blade does.
Sima Qian put Li Li and Shi She in the chapter on upright officials, not the chapter on assassins and not the chapter on harsh officials. The classification is itself a verdict. He thought they belonged to the men who held office and followed the principle of things.
Following the principle to the end of the road.
At the end of the road, a sword.
Readers outside China usually meet the Chinese magistrate as a detective. That meeting almost always happens through a Dutch diplomat. Robert van Gulik served in the Netherlands foreign service in the 1930s and 1940s, and wrote a scholarly study of a Tang dynasty case. He then produced a long series of novels about Di Renjie, an official of the seventh century. English readers know him as Judge Dee.
The novels are excellent and they are not wrong about the shape of the material. Chinese case collections really are built around a puzzle and a solution.
But the novels always give you the last chapter, in which the judge explains everything. The real records often do not. Li Li misheard and killed a man, and the record gives six characters to his reasoning and nothing at all to what he heard, what the evidence was, or who died. The blank is not laziness. It is the shape of a manual written for colleagues who needed the rule, not the story.
The blank is also where the case still lives. Everything we would want to know about the man who was wrongly executed is missing, and that absence is the most accurate thing in the file.