A market in Pingyang, in Hedong, in the Western Han.
The family of the regent Huo Guang held the streets. His retainers and household servants walked into the market with drawn weapons and fought there, and the local officials could not stop them. The market belonged to them.
Then a new market officer arrived, and they stopped.
The History of Han describes him in thirteen characters. He was upright and took no gifts, and the hundred traders feared him.

A jail clerk who could use a sword
Yin Wengui, styled Zixiong, came from Pingyang in Hedong and later moved to Duling. His father died when he was young and he lived with his uncle. He served as a minor clerk in the jail, where he learned the statutes and the forms, and he was fond of swordplay, in which nobody could stand against him.
Those two things together are the whole of his later capital. He knew the law, and he was not afraid of a fight.
The Huo retainers fought in the market with weapons and the officials did not dare intervene, because Huo Guang was the most powerful man in the empire. When Yin Wengui became market officer, they stopped. The history does not say what he did. It says only that he took no gifts and the traders feared him.
For a market officer to be feared by a hundred merchants does not require official weight. A market officer has none. He kept the market roll, collected the stall tax, checked the weights and measures, and dealt with the fights and thefts that happened in the square. It was a post that put a man face to face with several hundred traders every day, and put him within reach of the servants of the powerful.
It requires that he actually enforce, and that he cannot be bought.
He later gave up the post and lived at home.
East side, west side
The governor of Hedong, Tian Yannian, toured the counties and came to Pingyang. He summoned all the former clerks, fifty or sixty of them.
He divided them on the spot. Those with letters stood to the east. Those with arms stood to the west.
He went through several dozen. Then it was Yin Wengui’s turn. He stayed on the ground and would not rise, and said one sentence.
I have both letters and arms. Place me where you will.
The personnel officer called him insolent. Tian Yannian said: what harm is there in that. He called him up and questioned him face to face, was astonished by the answers, made him a clerk and took him back to the provincial office.
The history then says: he investigated cases and exposed wrongdoing, and he followed every matter to the bottom. Tian Yannian thought highly of him and considered his own ability inferior.
He was later made an acting inspector. Hedong’s twenty eight counties were split in two, Hong Ru taking the north of the Fen and Wengui the south. The cases he brought were all legally sound, and although the county officials he implicated were disciplined, not one of them resented him.
That is the first appearance of the word resentment in the account. It is the absence of it that tells you something. He was not lenient. He was accurate.
Two men from the same county
Yin Wengui was appointed governor of Donghai. Before taking up the post he called on the commandant of justice, Yu Dingguo, to take his leave.
Yu Dingguo was from Donghai himself. Two young men from his home district wanted him to arrange positions for them, and he had them wait in the back hall to be introduced.
Yu Dingguo talked with Yin Wengui for a whole day and never called them out.
After the guest had gone, he said to the two men, in words the History of Han preserves: this is a worthy general. You are not fit for the work. And there is no way to ask him for a personal favour.
A commandant of justice was one of the nine senior ministers of state. In his own house, with a legitimate pretext available, he did not open his mouth. The passage is not really about Yu Dingguo’s modesty. It is about the effect one man had on other people, which was to make them swallow the request before making it.
A register for each county
His method in Donghai is given in four lines.
He knew, clearly and exactly, which officials and commoners of the commandery were worthy and which were not, and what offences stood against each name. Every county had its own register.
Those four lines are the spine of the story. They do not say he was clever. They say he built a filing system: one volume per county, organised by person rather than by case, keeping the who and the what attached to a name over time.
With that register he had two things nobody else had.
The first was slowness. The history says that when he acquired a reputation for being too urgent, he deliberately eased off. That is not softness. It is pacing. An official who tightens the cord to its limit on the first day has nothing left to tighten later.
The second was the ability to collect. The history says that whenever officials or commoners relaxed slightly, he opened the register.
That winter assembly was itself an institution. Every autumn and winter the commandery assessed the performance of its counties and sent the results up to the capital. On that day every official of the county was present. It was the occasion for careers and for records, and the moment when authority was most concentrated. Choosing that occasion for an arrest turned enforcement into a public lesson.
When he made arrests
Then comes the line most worth stopping at.
When he took a man, it was always during the autumn or winter assembly for assessing officials, or while touring the counties. Never at a quiet time.
Yan Shigu, annotating in the Tang, explains: at the great assembly and during the tour of counties he collected offenders, in order to warn the crowd.
That sentence lays out a technical problem. Making an arrest is not only taking a person into custody. It is choosing a time and a place.
The winter assessment assembly is when every official of the county is present. A tour of counties is when every clerk and commoner can see. Arrest someone there and everyone sees it. So the history continues:
Whenever he took a man, it was to warn a hundred by means of one. Officials and commoners submitted, were afraid, and changed their conduct.
That is the entire logic. Not to arrest every guilty person, but to make the rest afraid.
Xu Zhongsun
In Donghai there was a great clan leader, Xu Zhongsun of Tan county, who disrupted the administration by cunning and made the commandery suffer.
Previous governors tried to arrest him. Each time he extricated himself through influence, connections and manoeuvre, and in the end nobody could restrain him.
Yin Wengui arrived and had him executed in the marketplace.
The commandery was terrified and nobody dared break the law again. Donghai was well governed.
Why could he not extricate himself this time? The history does not elaborate, but the register explains it. An official who has kept offences attached to names over years does not need to find evidence at short notice. Everyone else started from nothing. Yin Wengui turned to the last page of a file that had been open for a long time.
Youfufeng
On the strength of his assessment he was brought to the capital as acting governor of the metropolitan region of Youfufeng, and confirmed in the post a year later.
The texture of the account changes here. He picked honest and severe officials for the key positions, treated them with courtesy, shared their likes and dislikes, and punished without fail anyone who let him down.
The method was the same as in Donghai. Offences and names were on file, county by county. When a theft occurred in a group of five households, he summoned the senior officials of that county, told them the name of the principal offender, and taught them to trace the movements of the gang by analogy. According to the history the results matched his predictions, with nothing missed.
Then comes the most contentious sentence in the biography. He was lenient with the small and the weak, and urgent with the powerful.
When a powerful man was convicted, he was sent to the livestock office to cut fodder, with a daily quota and no substitutes allowed. Failure to meet the quota brought flogging, and in the extreme case a man killed himself with an axe.
The capital feared his severity and the region was well governed. His record on theft was consistently the best of the three metropolitan commands.
That passage has to be left as it stands. An official whose principle was leniency towards the weak sent powerful men to cut fodder, flogged them when they fell short, and drove at least one to suicide. This is not humane government. It is severe punishment. The History of Han places it in the same paragraph as the phrase about good government and does not soften it.
What is wrong with a register
Translated into modern terms, his method is intelligence led policing.
Build the file first. Analyse it. Strike precisely from a list. Then use a public arrest to create deterrence. The twentieth century reinvented this several times, from the criminal identification registers of nineteenth century Europe to the computerised crime statistics that American police departments began running in the 1990s. The idea is always the same: turn a who into a searchable record.
It works. In Donghai and again in Youfufeng his areas came top of the assessment.
But three problems come with it, and all three need saying.
The first is that the register is written by the official. Who goes in, under what offence, and when the page is turned, all rest with one man. The history says he was lenient to the weak and urgent with the powerful. That was his choice. The same book, in other hands, can be used against anyone those hands wish to reach.
The second is that a public arrest is a performance. To warn a hundred by means of one states the audience plainly. The person being warned is not the man in custody. It is everyone watching. That is contested today, because public humiliation destroys a person’s standing in his community, and the person may not have been convicted of anything.
The third is the timing. Never at a quiet time means the moment of arrest serves the effect on spectators rather than the needs of the case. Technically brilliant. Procedurally dangerous.
The History of Han neither defends nor attacks him. It simply records the register, the turning of pages, the warning of a hundred by one, the leniency and the urgency, the fodder cutting, the axe.
One more thing is easy to miss. He could build this apparatus because the Han state already ran on registers. There were household rolls, market rolls, rolls of conscripts and rolls of convict labourers, and the state knew its population and its labour through them. What Yin Wengui did was attach policing information to a filing system that already existed. He did not invent the archive. He aimed it at people.
Two thousand years ago that was new. Today it is ordinary, with one difference that matters. Modern records come with access rules, retention limits, and a right for the subject to inspect and correct them. That Han register had no such rules. It had one reader.
The fourth year of Yuankang
He served a few years and died of illness in the fourth year of Yuankang.
There was no surplus property in the house.
The emperor thought him worthy and issued a decree to the censorate. He rose early and slept late seeking worthy men, without distinction of closeness or distance, wanting only to settle the people. Wengui of Youfufeng was honest, fair and upright in his district, and governed the people beyond the ordinary. He died early and could not complete his work, and the emperor grieved for him. A hundred jin of gold was granted to his son for the sacrifices.
His three sons all became commandery governors. The youngest, Yin Cen, rose through the nine ministries to be general of the rear.
The History of Han closes with a summary. In administration he relied on punishment; among the ministers he kept himself clean and never spoke of private matters; yet he was mild and modest, and never used his ability to look down on anyone, and he enjoyed a high reputation at court.
Four things at once, and no contradiction among them.
Not one of those county registers survives. They held the names and offences of people in Donghai and Youfufeng two thousand years ago. The paper has gone and no bamboo slips have been excavated.
What survives is that they existed, and one detail. A man who controlled the registers of several dozen counties, and could decide at any hour whose page would be turned, died with no surplus property in the house.