Who Judges the Machines? The Seventh Noahide Law in the Age of AI
By Rabbi Boruch Merkur
There's a question quietly consuming boardrooms, courtrooms, and government hearings right now: whose morality should a machine follow? As artificial intelligence begins to judge us — deciding who gets a loan, which résumé is read, who is granted bail, which patient is treated first, and, in a self-driving car, whom to spare in a crash — engineers keep colliding with a wall that has nothing to do with engineering. Before you can teach a machine to be fair, you have to answer a much older question: what is justice, and who is answerable for it?
The most famous version is the “trolley problem.” A driverless car's brakes fail; it can swerve and strike one person or hold its course and strike five. Researchers have put versions of this to millions of people across dozens of countries, and the unsettling result is that different cultures answer differently. There is no shared human answer that everyone simply agrees on. So the choice gets made anyway — quietly, inside the code — and rendered millions of times a day.
That is the real crisis beneath the AI headlines. We have filled the world with judges made of math, and barely asked by what law they rule, or who stands behind the verdict. The Torah named the human responsibility we are trying to dodge thousands of years ago. It is the seventh of the Seven Noahide Laws.
The one law that isn’t a “thou shalt not”
The Seven Noahide Laws — the seven commandments given to Noah and, through him, to all humanity — are usually listed as prohibitions: do not serve idols, do not blaspheme, do not murder, do not steal, do not commit sexual immorality, do not eat flesh torn from a living animal. Six “do nots.” But the seventh stands apart. It is the only positive command of the set, and it is not about what an individual must avoid. It is the law of justice — the duty to establish courts and systems of law.
This seventh law does not merely say “be fair.” It commands us to build fairness — to set up courts, appoint honest judges, and enact and enforce just laws, so that no society is ever left without a working mechanism to render fair judgment. It is a duty to establish courts of law in every district. Justice, in this view, is not only a private virtue. It is a piece of public infrastructure a civilization is obligated to construct.
Consider why this is the one positive law among the seven. The other six can be kept by a righteous person entirely alone — in an empty room, tempted by nothing, one can keep all six perfectly. The law of justice cannot be kept alone. It exists only when people build something together. It is the command that turns a crowd of decent individuals into a just society — and without it, the other six have no teeth, because there is no one to enforce them. It is the law that makes law itself possible.
An algorithm is a court
Now return to the machines. A system that decides who gets bail, whose loan is approved, which patient is seen first, or whom a car will protect is doing exactly what a court does: it hears a case, applies a rule, and renders a verdict. That it does so in milliseconds, invisibly, does not make it less of a court — it makes it a court without a courtroom. And the mitzvah of Dinim says, unambiguously, that someone is responsible for the justice of that court. The code does not absolve its makers; it implicates them. To build a system that judges people is to take on the seventh Noahide law whether you intended to or not.
Dinim also sets a standard, not just an obligation. The Torah's warnings to a judge — take no bribe, show no favoritism, do not tilt the scales toward the powerful — map almost eerily onto the modern fear of biased data and hidden incentives inside an algorithm. A real court must be able to explain its ruling, and its ruling can be appealed. “The system decided” has never been a defense before a human judge; Dinim insists it cannot become one merely because the new judge is made of math. Fairness, accountability, the right to be heard — these are not features to be added later. They are the mitzvah itself.
The law, made known again
This is why the Lubavitcher Rebbe pressed, for decades, that the world be made aware of the Seven Noahide Laws — that people of every nation come to know these are real, God-given commands binding on all humanity, and not the private tradition of one people. The Rebbe teaches that a peaceful, functioning world does not rest on one nation's customs; it rests on every person recognizing a moral standard higher than opinion. And of the seven, the law of justice is the one that asks a whole society to act — to build the fair institutions the world so plainly needs.
The world's frantic search for “a fair way to govern the machines” is, in truth, a search for that seventh law by another name. And it is worth remembering how the prophets describe the world we are promised: not merely peaceful, but justly ruled — a world that judges the weak with righteousness and decides for the meek with fairness, until the earth is filled with the knowledge of God as the waters cover the sea.
We do not need to invent that justice in a boardroom. We were commanded to build it from the beginning. May we build it, speedily, and see that world revealed.