Code is not law
"Code is law" was a warning that became a slogan. Code enforces rules; law decides which rules are legitimate, and the gap between them is where the interesting companies live.
Lawrence Lessig's line that "code is law" was originally a warning. His point was that software architecture regulates behavior as surely as statutes do, and that we should therefore pay attention to who writes it. Somewhere along the way the phrase turned into a slogan, a claim that code could replace law: that a smart contract's execution is its own justification, that whatever the program allows is permitted.
I think the slogan version is wrong, and I think the companies that understand why it's wrong have an enormous opportunity.
Enforcement isn't legitimacy
Code is very good at enforcement. Once a rule is written into software, it applies consistently, instantly and at scale. A rule in a statute book depends on someone noticing a violation, deciding to act and persuading a court. A rule in code just runs.
But enforcement isn't the same as legitimacy. Law does at least three things code doesn't do on its own:
- It decides which rules are acceptable. Legislatures, courts and regulators argue about what the rules should be. Code takes the rules as given.
- It handles the cases the rules didn't anticipate. Equity, interpretation and judicial discretion exist because no rulebook is complete. Code has no equity. It does exactly what it says, including in situations its authors never imagined.
- It remedies mistakes. When a rule produces an unjust result, law has mechanisms to undo it: rescission, restitution, appeal. Code that has executed is executed.
The famous early failures of "code is law" thinking all followed this pattern. A program did exactly what it said, the result was obviously not what anyone intended, and the community had to decide whether to honor the code or the intent. Every time, they ended up doing something law-like: a vote, a fork, a negotiated settlement. Code couldn't resolve its own legitimacy crisis.
Where the gap shows up in music
The music industry is a good laboratory because so much of it has been encoded into systems. Splits are entries in databases. Registrations are records. Matching is algorithmic. Payments flow according to data.
And yet the industry is full of disputes that no database can settle. Two publishers registered conflicting shares for the same work. A writer's split was agreed on a napkin in a studio and never formalized. A sample clearance was negotiated by email and the registration was never updated. In every case the code does what the data says, and the data is wrong, or contested, or incomplete.
The interesting work is improving the link between what people actually agreed and what the system enforces. That's a law problem expressed as a data problem. I write about one version of it in Rights are an asset class.
The opportunity in the gap
If code enforces and law legitimates, then the most valuable software sits at the junction: systems that make the legal meaning of a record legible, that can prove a record reflects an agreement, and that surface conflicts before they become payment errors.
Think of it as the difference between a ledger and an auditor. Ledgers are commoditized. Auditors aren't, because an auditor's job is to say whether the ledger reflects reality. Every industry moving onto software needs auditors for its code: tools that check whether what the system does matches what the parties meant. In contract-heavy industries, that's a vast market that mostly still runs on lawyers reading documents by hand.
The best arguments against this
Smart contracts with clear terms don't need courts. For narrow, fully specified transactions, maybe. Most commercial relationships aren't fully specified, and the parties don't want them to be. Incomplete contracts are a feature: they let parties cooperate without pricing every contingency. Code demands completeness, which makes it a poor fit for the relationships that matter most.
Law is too slow; code will route around it. Code can route around law until something goes wrong and someone with standing sues. Then law catches up very quickly, and it tends to punish whoever tried to route around it.
You're a lawyer defending lawyers. I was trained in law and I build software. I think most legal work that's pure enforcement should be automated, and quickly. The part that shouldn't be automated is the part that decides what's legitimate. Those are different jobs, and confusing them makes both worse.
My replacement for the slogan
If I had to replace "code is law," I'd say code is enforcement, and enforcement needs a warrant. Every automated rule should trace back to an agreement, a statute or a policy that a person can read and challenge. I go into what that tracing looks like in Intent must be readable. The open question for me is who issues the warrant when the rule was written by one company's software and enforced by another's.