Kaifeng, in the Northern Song. A street in the capital, some time in the middle of the eleventh century.
A young man carried a fighting quail in a small cage. He had raised the bird himself. It fought well, and a bird that fought well was worth money.
Someone his own age asked to see it. He refused. The other man, relying on the fact that they were close, took the quail out of his hand and ran.
The owner chased him, caught up, and kicked him once in the ribs.
The man dropped and died where he fell.

The case went to the prefecture of Kaifeng. Kaifeng ruled that the killer owed his life for a life.
Then the file reached a different desk. The official there was Wang Anshi, at that point a drafter of edicts and the inspector of capital prisons. He sent the judgment back with a note.
This was not homicide, he wrote. This was the arrest of a thief.
The case became known as the quail prison. It is small: one bird, one corpse. But the whole central judiciary of the Northern Song walked through it, and the record of that walk is one of the clearest windows we have into how the system actually worked.
A bird worth money
Start with the bird.
Quail fighting was ordinary entertainment in Song cities. Two trained males were put into a ring to spur and peck at each other while men around them laid money on the outcome. A good bird earned for its owner and could be sold for a price. Owners fed them carefully, walked them, rested them, and knew their tempers.
The Song History says the young man had obtained the quail, using a neutral verb. He may have bought it, trapped it or won it. It was his, and he valued it.
Kaifeng in the eleventh century was among the largest cities on earth, with a population above a million and streets that did not close at night. In a city like that, fighting birds and fighting crickets were businesses with stakes, and a good quail could cost more than a labouring family spent on food in months. There were men who trapped quail, men who trained them, men who sold them, and men who watched other people carrying good ones.
The man who took it is described as his companion, someone from the same circle. Not an enemy. That is why the sequence works: the owner refused, and the other man, trusting to familiarity, simply took the bird and walked off.
That detail matters. Between friends, taking a thing is not usually called robbery. In law, whose thing it is does not depend on how well the two men know each other.
One kick
The story survives in two Song versions, and they differ.
The Song History, in the biography of Wang Anshi, is brief: the companion took the bird, and the young man chased him and killed him.
The Continuation of the Comprehensive Mirror, in its 197th chapter, is more precise: the borrower carried the bird away, the owner caught up with him, kicked him under the ribs, and he died on the spot.
The difference between killed and kicked is the whole case.
Killed describes an outcome: he ran the man down and ended his life. Kicked describes an action: he caught up and struck, and the man died immediately.
Under the ribs is a vulnerable place. There is no thick muscle over the lower ribs, and a hard kick there can rupture the spleen or start internal bleeding that kills within minutes. The kicker may not have known how much force he was using. The result does not care.
The record does not say what the young man shouted, or what the bystanders did, or whether the other man turned to fight. That silence has to be respected.
What Kaifeng decided
Kaifeng sentenced him to death.
One version says the prefecture held that this man should die; the other says it held that his offence required life for life. It comes to the same thing.
That was not an unreasonable judgment for the time. Song law on fatal affrays looked at where the blow landed and how much force was used. A single kick under the ribs that killed a man on the spot is hard to dress up as an accident. Kaifeng was the capital court and handled more of these cases than any other in the empire.
The problem lay in the review chain.
A death sentence in Song China travelled upward: county to prefecture, prefecture to the judicial commission of the circuit, then to the capital. In the capital itself, the prefecture heard the case first, and the file then went to the Court of Judicial Review and the Bureau of Punishment Review. The system was built on the idea of caution, one more gate before an irreversible act. And Wang Anshi held one of those gates: the office of inspecting capital prisons.
The syllogism of Wang Anshi
His argument had three steps.
First, by statute, both open taking and secret taking are theft.
Second, the owner refused, and the other man carried the bird away by force. That is theft.
Third, the owner chased and struck him. That is the arrest of a thief. And when a thief dies in the course of arrest, the death is not to be punished.
Conclusion: Kaifeng had convicted an innocent man of a capital crime.
The strength of the argument is that it hangs on the words of the code. The Song code, following the Tang, divided theft into two kinds: taking openly, which is robbery, and taking secretly, which is larceny. Wang Anshi fastened on the first. The man took the bird in front of its owner. That is open taking.
So he renamed the event. It was no longer a fatal affray. It was the killing of a thief during arrest.
With a new name came a new set of rules. A fatal affray is judged by who struck first and where the blow landed. An arrest is judged by whether the pursuer had the right to use force at all.
Three offices, one emperor
Kaifeng refused to accept the objection. The officials of the prefecture would not concede the point.
The case therefore went down to the Court of Judicial Review and the Bureau of Punishment Review, the two central offices that handled serious cases: one decided law and fact, the other checked the decision. Both agreed with Kaifeng.
So three levels had now told Wang Anshi he was wrong.
His office was not a decorative one. Created under Emperor Zhenzong, it was held by two officials of high rank, and its powers were written down. Every case in the capital involving penal servitude or worse had to be reported to it at once. Where the reasoning was incomplete or a prisoner was left languishing, the inspectors could call for the file, correct it and memorialise against it. And every capital case had to be put to the accused in person.
That is a real jurisdiction. He could demand the file, reject the judgment, and report to the throne. Which is what he did.
Then the emperor issued an edict: release Wang Anshi from guilt.
The phrase deserves a pause. He had committed no crime. Why would an emperor release him from guilt? Because in the practice of that court, an official who rejected the conclusion of a higher judicial office and then refused to admit error had committed something, at least a procedural impropriety that could be pursued. The edict closed the matter.
It also carried a formality. Under the old rule, a man released from guilt went to the palace gate to offer thanks.
Wang Anshi did not go.
He said: I am not guilty.
The Censorate and the gate office sent him repeated notices. He still did not go. The Censorate memorialised against him. The chief councillors, seeing how famous he was, let it drop and simply moved him to another post.
That is where the record ends. No retrial, no exoneration. The young man died in the end. The history does not record his fate, only the judgment of Kaifeng and the agreement of the two central courts. A life went through the procedure and came out the other side.
Where the case was hard
It was hard on the word theft.
Wang Anshi called the other man a thief because he took openly. But open taking in the code meant robbery: weapons, a gang, force used to overcome resistance. Does a friend who snatches a bird and runs commit robbery, or something lighter, or merely a taking without consent?
Kaifeng and the two central courts evidently did not think it was robbery. Their reasons are not recorded, but from the conclusion one line of reasoning is available: if it was not robbery, there was no arrest of a thief to speak of; and without that, chasing a man down and kicking him to death is simply a fatal affray.
The second difficulty is timing.
The right to use force in an arrest rests on the theft being in progress, or on the thief resisting. The bird was gone and the man was running. When the owner caught up, was that still the scene of the crime? If yes, the pursuer had a right to act. If no, it was punishment after the fact.
The third is proportion.
Even granting the arrest, is a kick under the ribs that kills a man instantly within the force the law allows? The code permitted a captor to wound or kill a thief who resisted, but the measure was the danger at that moment. The record does not say whether the man struggled when he was caught.
The reasoning of the two central courts is unknown. That is the largest blank in the story. All we have is the conclusion: they thought Kaifeng was right. Which means they thought this was not an arrest. It was a killing.
I am not guilty
What stands out here is not the sentence. It is those four words.
Wang Anshi was not arguing that the young man should live. He was arguing something more basic: that an official who rejects a case on the authority of the statute, and is overruled, has not thereby committed an offence.
In Song political culture that was not a small thing. The censors could impeach and the councillors could demote, but being wrong in office and being guilty of a crime were different categories. By refusing to go to the gate, he refused to accept that the rejection itself was a fault.
The same conviction runs through his later career. In his long memorial to Emperor Renzong he argued that to follow the kings of antiquity was to follow their intent, not to copy their institutions. In the 1070s, as chief councillor, he reorganised the state on that premise. Whether the premise was right is still argued about.
There is a second reading, and it is not unfair: here is a man who would not admit error at thirty-eight, and the same temper that carried the reforms also broke a great many things.
The historian lets both stand. He records the four words, records the impeachment, and ends with the two characters that mean it was let alone. No verdict on the man, only the temper, left on the page.
The bird afterwards
No record.
The judgment is lost. The name, age and birthplace of the young man are lost. What survives is a fighting quail, a kick under the ribs, and a procedural fight that went all the way up.
For readers who know Chinese detective stories through Judge Dee, the Tang magistrate whom Robert van Gulik turned into a series of novels, this case will look unfamiliar. The same goes for readers who know Song Ci, whose 1247 manual of forensic examination is the oldest systematic work of its kind and predates anything comparable in Europe by three centuries. Those traditions are about investigation: how a body is examined, how a scene is read, how a confession is tested.
The quail case has none of that. Nobody investigates anything. The facts are agreed from the first day: a bird, a taking, a chase, a kick, a death. What is disputed is which rule the facts belong to. That is the other half of the Chinese legal tradition, the half that lives in statutes and memorials rather than in detective stories, and it was fought over by men who took words very seriously.
English law has been through the same argument. A householder who uses force against a burglar, a passer-by who detains a shoplifter: the question is always where the right to use force ends and assault begins. In England and Wales the Criminal Law Act 1967 allowed reasonable force in preventing crime and effecting arrest, and the Criminal Justice and Public Order Act 1994 went further, removing the defence of defending property from a charge of murder. The direction of travel has been to narrow the licence to kill over things.
A Song court in the eleventh century reached a similar place by a different road. Kaifeng and the two central offices held that a bird was not worth a life, and that a man who chased another down over a bird had killed, not arrested.
Wang Anshi thought otherwise, and said so, and refused to apologise.
The bird is not in the record. The case is not in the record. Only the argument is, and it is still recognisable.