Version Control for Law
Legal interpretation can be governed like a versioned codebase: enacted text is the protected main branch, opinions are signed commits, dissents are preserved branches, and overruling is a force push allowed only through logged, gated conditions.
Origin: Version Control for Law · First stated on Medium, 17 April 2026.
The framework
Version Control for Law is a mental model for legal interpretation borrowed from software engineering, specifically from Git. Ross Brodskiy set it out on Medium in April 2026 (Version Control for Law) as a companion to the Gibsonian Canons; the canon names below are those of the Medium edition. The metaphor is not the point. The point is that the rules for changing legal meaning can be written as governance: who may merge, what a commit must contain, which changes are forbidden, and which are allowed only through a logged gate.
The mapping
| Git concept | Legal counterpart | Canon | Rule |
|---|---|---|---|
| Main branch | Enacted law | Versio Enactionis | Amendments are merges with version tags. Each law is pinned to the version of the canons in force when it was enacted, so interpretive meaning cannot drift silently. |
| Signed commit | Judicial opinion | Bona Fide Interpretatio | A reasoned opinion states its textual basis, addresses counter-readings, discloses ambiguities, and cites its sources. An unsigned opinion is "pretextual and not entitled to the weight of precedent." |
| Commit history | Precedent | Precedent is merged commits with their reasoning attached. An opinion with no reasoning trail is "a commit with an empty message." | |
| Force push, gated | Overruling | Allowed only through the gate below. | |
| Preserved branch | Dissent | Dissensus Servandus | Minority readings stay in the permanent record and can be revived under stated conditions. |
| Submodule | Incorporation by reference | Relatio Certa | A reference is frozen at enactment unless expressly dynamic, so an upstream change cannot silently rewrite downstream law. |
| Disallowed dependency | Foreign law, moral philosophy | Fontes Limitati | Sources run on an allowlist. Outside material may be consulted for illumination but is never a binding import. |
| Amended commit | Typographical correction | Scriptoris Error | Allowed only where contemporaneous records show the text is defective, the error is clerical rather than substantive, and one corrected reading is possible. |
| Feature flag | Conditional rule | Manifestatio Ambiguitatis | Threshold conditions must be declared publicly before a conditional canon applies, like an audit-logged flag. |
| Self-hosting | Self-application | The canons govern their own interpretation. |
The force-push gate
Overruling is the most dangerous operation in the model because it changes what the main line of authority says. The essay allows it only when the overruling opinion does all four of the following:
- Names the violated canon, identifying which interpretive rule the earlier decision broke.
- Supplies the canonical re-reading, stating the reading the canons actually require.
- Addresses reliance interests, accounting for those who built on the earlier decision.
- Reasons textually, resting on the text rather than on changed values, preferences, or politics.
An overruling that fails these conditions is "itself void as precedent." The normalized canons carry the same structure in Stare Decisis Nisi Manifeste Erratum: manifest error under the canons (disagreement with an outcome is not enough), a fair treatment of reliance, and an overruling that is itself reasoned under the canons. Since Supplement S1, a preserved dissent may be invoked as a reason to reconsider, but it cannot displace precedent on its own; any overruling still has to pass the gate.
Style guide versus governance
The essay's sharpest contrast is with Scalia and Garner's Reading Law (2012). A catalog of canons like that works as a style guide: sound advice an interpreter may follow or not. The Gibsonian canons, read through this model, are repository governance: a branching model, a commit policy, a signed-commit requirement, dependency pinning, and protected-branch settings. A style guide improves code. Governance decides what may be merged.
How to apply it
Take the constructed dispute from the Gibsonia manuscript Method Before Power and extend it. Gibsonia's constitution guarantees free movement between inhabited districts (Article 4) and lets the Council restrict movement temporarily when a verified life-support failure creates an immediate danger (Article 12). A statute lets the Administrator close transit corridors during a declared emergency.
Now suppose an early decision upheld a thirty-day closure that continued after the danger ended, reasoning only that an emergency had been declared. It never engaged the words "immediate" and "temporarily." One judge dissented on exactly that ground.
- Is the early decision a signed commit? No. It gave no textual basis for reading the time limits out of Article 12 and never addressed the counter-reading. Under the model it carries reduced weight as precedent.
- The dissent is a preserved branch. It sits in the record. When a new closure is challenged, the dissent is a reason to reconsider, not binding authority.
- Overruling is a force push, so the gate applies. The later court (1) names the violated canons, Verba Suprema and Nulla Superfluitas, because the early reading leaves "immediate" and "temporarily" doing no work; (2) supplies the canonical re-reading, under which closure is lawful only while the verified danger lasts; (3) addresses reliance, for instance by applying the ruling prospectively to operators who organized logistics around the early decision; and (4) reasons from the text, not from a sense that attitudes to emergencies have changed.
- A disallowed dependency is caught. Counsel cites an Earth court's emergency-powers ruling. The court may read it for illumination but cannot rest its holding on it.
- An amended commit is refused. A party argues that "temporarily" was a drafting slip. Unless contemporaneous records show a clerical error with a single corrected reading, the text stands.
The resulting record reads like a clean commit log: what changed, which rule authorized the change, what it cost, and which preserved dissent it drew on.
Known limitations and critiques
Force push is the wrong verb in one respect. In Git a force push can discard history. Legal overruling never erases the earlier opinion; it stays in the reports and remains citable for what it was. The model's own preserved-branch rule compensates, but "force push" should be read as moving the authoritative tip under guard, not as deletion.
Merging law is semantic, not textual. Git detects conflicts by comparing lines. Legal conflicts concern meaning and are found by judgment. The model governs how conflicts are resolved and recorded; it cannot detect them mechanically.
"Signed" is a judgment, not a signature. Anyone can verify a cryptographic signature. Whether an opinion did its textual work is a contested assessment, and "unsigned" could become a label for discounting decisions one dislikes. The four gate conditions narrow that risk without removing it.
Several canons sit outside the normalized text. Versio Enactionis, Relatio Certa, Scriptoris Error, and Manifestatio Ambiguitatis come from the Medium edition. The normalized twenty-three-canon text of Supplement S1 does not contain them, so parts of the mapping currently rest on canons outside the instrument the Institute maintains.
Earth has no version pin. Versio Enactionis presupposes an enacted, versioned interpretive method. Existing legal systems have none, so on Earth the model works as a critique and a design target rather than a description.
The neutrality claim is reported, not established. The essay reports testing the framework against landmark decisions, including Dobbs, Heller, Bostock, Shelby County, and Brown, and finding that it "does not track left or right. It tracks whether the opinion did its textual work." Until the test protocol is published in replicable form, that finding should be treated as a claim. The model also inherits the canons' text-first, liberty-oriented commitments, which are choices rather than neutral defaults.
Lexicon terms
Related frameworks
The Gibsonian Canons of Constitutional Interpretation
A closed, priority-ordered law of interpretation, enacted before any institution is given power to interpret, that binds every interpreter to the same method and requires a traceable record of each interpretation.
The Four Laws of System Design for Computational Law
A legal AI system must never overstate its confidence, must explain every output, must ground every legal proposition in validated authority, and must keep its reasoning components testable and versioned, with each law yielding to the laws above it.
Case Treatment Taxonomy
Each treatment of an earlier case by a later one is classified holding by holding, along three dimensions (scope, severity and mechanism), into one of four families, and when in doubt the classification over-flags rather than under-flags.
The Twelve Bridges
A legal 'therefore' is established law only when it crosses one of twelve recognized doctrinal bridges from precedent to conclusion; a synthesis that crosses none is argument, and must be presented as argument.
Pieces that use this framework
Changelog
| v1.0 · 17 Apr 2026 | First statement. |
How to cite
Computational Law Institute (2026, April 17). Version Control for Law (Version 1.0). https://institute.legawrite.ai/frameworks/version-control-for-law