Studio Matrx Monthly · Volume 1 · Issue 4 · September 2026
Amogh N P
 In loving memory of Amogh N P — Architect · Designer · Visionary 
Who Writes the CodeLesson 3.4
Automated Compliance & Rules-as-Code/Module 3 · Rules as Code

Lesson 3.4 · Rules as Code

Who Writes the Code

If encoding a rule is already interpreting it, then the quiet question of who does the encoding - the regulator, a software vendor, an open community - becomes one of the most important in the whole field, because whoever writes the code writes the interpretation everyone else runs

12 min Interactive lessonFree · open lessonByAmogh N P· Architect & interior designer
The hook

If encoding a rule is really interpreting it, then here is the question that decides everything: whose interpretation is it - and who chose them to make it?

Everything in this module has pointed to one uncomfortable fact: to turn a rule into code, someone must decide exactly what it means, and that decision - an interpretation - is then frozen into a tool and run, literally, against thousands of designs. Which forces a question that sounds administrative but is anything but: who is that someone? Who writes the code? The regulator who authored the rule? A software vendor selling a checking product? An open community of contributors? The choice seems like a detail of who does the work. It is not. Whoever encodes the rule writes the interpretation everyone else runs - and inherits a quiet, consequential power over what the rule effectively means in practice.

This is the governance question of rules as code, and it is where the field's honesty is really tested. An encoding made by the regulator carries different authority than one made by a vendor whose logic you cannot see, which carries different risks than one made by an open community you can inspect but must trust to govern itself. Each has strengths and failure modes. And underneath all of them sits a boundary that never moves: whoever writes the code, the authoritative rule remains the actual law - the code, the byelaw, the IS standard - and the encoding is only ever a reading of it. This lesson maps who might hold the pen, why it matters so much, how hidden or wrong encodings cause harm, and why accountability can never be handed to the tool.

Regulator / vendor / community -> whoever encodes writes the interpretation everyone runs. Watch for hidden / wrong / stale encodings behind a confident tick. But the law stays the authority; people stay accountable.

The actors

Someone has to hold the pen - regulator, vendor, or community

Start by naming who could actually encode a rule, because each candidate changes what the encoding is and how far you can trust it. The first is the regulator - the authority that wrote the rule in the first place: a standards body, a municipal corporation, a national code committee. When the author of the rule also encodes it, the encoding can carry official standing and is, in principle, closest to the rule's intent. The catch is capacity: regulators, especially thousands of local bodies, rarely have the technical resources to produce and maintain high-quality machine-readable rules, so official encodings are the exception, not the norm.

The second is a software vendor - a company that builds and sells a compliance-checking tool. Vendors have the capacity regulators often lack, and much real automated checking today runs on vendor-encoded rules. But a vendor's encoding is shaped by the vendor's incentives and is frequently proprietary, meaning you cannot see how a rule was interpreted - only the verdict it returns. That opacity is the core risk of vendor encoding: you are trusting a private reading of the law you are not allowed to inspect.

The third is an open or community effort - encodings produced by a shared, often public, group of contributors, visible and correctable by anyone. The great strength here is transparency: an open encoding can be inspected, challenged, tested and fixed, so its interpretive choices are out where they can be argued with rather than hidden. The weakness is governance - who decides what the community's encoding says, how disputes are resolved, how quality and currency are maintained - and the fact that being open does not make an encoding authoritative or correct, only visible. In practice, real systems mix these: a vendor tool implementing a regulator's parameters, an open library a community maintains, an approval portal encoded by or for the authority. The point of naming them is not to crown a winner but to see that whoever holds the pen shapes the interpretation - and that you should always ask who did.

Who encodes the rule? REGULATOR The authority that wrote the rule. + closest to intent + can be official - rarely has capacity VENDOR A software company selling the tool. + has capacity - may be opaque - own incentives COMMUNITY Open / shared contributors. + inspectable + correctable - needs governance THE ENCODING = whoever wrote it wrote the interpretation everyone runs
Zoom
Three candidate encoders of a rule - the regulator, a software vendor, an open community - each with different standing, incentives and transparency. Whoever holds the pen writes the interpretation everyone else runs.
Why it matters

Why the encoder's identity is not a detail

It is tempting to treat 'who encodes it' as a procurement footnote - surely a rule is a rule, whoever types it up. But because encoding is interpretation, the identity of the encoder is inseparable from the meaning of the encoded rule, in at least three ways. First, the encoder makes the interpretive choices we saw in earlier lessons - what 'clear width' is measured clear of, which spaces count, how an ambiguous term is resolved - and those choices become the rule everyone runs. Two different encoders can produce two defensibly different encodings of the same clause, and whichever one is in the tool you use is the one that governs your design. The encoder is, in effect, quietly interpreting the law on everyone's behalf.

Second, the encoder's position and incentives shape those choices. A regulator encoding its own rule is trying to express its intent. A vendor is also trying to build a sellable, defensible product, and may resolve ambiguities conservatively, or in ways that suit its tooling, or simply in whatever way was easiest to implement. None of this need be malicious to matter: incentives shape interpretation even in good faith, and when the interpretation is hidden inside a product, its slant is invisible to the people relying on it. Third, the encoder holds power over currency: whoever maintains the encoding decides when it is updated to match a changed byelaw, and a lag there silently governs designs by an outdated reading.

This is why the encoder's identity is a first-order question, not a detail. In effect, whoever writes the code exercises a slice of interpretive authority over the rule - authority that properly belongs to the law and those charged with applying it. Recognising that reframes how you should treat any checking tool: not as an oracle that tells you the rule, but as one party's interpretation of the rule, whose author, incentives and transparency you are entitled to ask about. The competent question is never just 'what did the check say?' but 'whose encoding said it, can I see how, and how current is it?'

Who encodes the rule? REGULATOR The authority that wrote the rule. + closest to intent + can be official - rarely has capacity VENDOR A software company selling the tool. + has capacity - may be opaque - own incentives COMMUNITY Open / shared contributors. + inspectable + correctable - needs governance THE ENCODING = whoever wrote it wrote the interpretation everyone runs
Zoom
Three candidate encoders of a rule - the regulator, a software vendor, an open community - each with different standing, incentives and transparency. Whoever holds the pen writes the interpretation everyone else runs.
The risk

The risk of hidden or wrong encodings

The sharpest danger in rules as code is not a rule that is obviously broken - that gets noticed - but an encoding that is hidden, wrong, or quietly outdated, and still returns a clean, confident verdict. Consider a hidden encoding: a proprietary tool that reports 'pass' or 'fail' without showing how it read the rule. You cannot tell whether it measured width the way your authority does, whether it scoped the rule correctly, or whether it even covers the clause you care about. You are asked to trust a verdict whose reasoning is sealed - and because it looks authoritative, the temptation to trust it (automation bias) is strong. A hidden encoding does not remove the interpretive risk; it removes your ability to see it.

Consider a wrong encoding: an honest mistake - a misread threshold, a mis-scoped rule, a measurement convention that differs from the authority's. Because encoded rules are reused at scale, one wrong rule silently misleads every design that runs against it, passing things that should fail or failing things that should pass, all with the same tidy confidence. And consider an outdated encoding: correct when written, but not updated when the byelaw changed, so it now enforces a rule that no longer applies. In each case the failure is invisible at the point of use, because the tool still produces a clean result. That invisibility is what makes these encodings dangerous - the harm is not a visible error but a confident, wrong answer trusted as if it were the law.

These risks do not argue against rules as code; they argue for the disciplines the whole module has been building toward. Prefer transparent, inspectable encodings over opaque ones, so interpretive choices and errors can be seen and challenged. Insist on versioning and currency, so you know which edition an encoding implements and whether it is live. Keep a human reading of the actual rule in the loop, so a wrong or stale encoding can be caught rather than trusted. And never let the existence of a verdict substitute for the judgement of whether the design truly complies. The green tick is only ever as trustworthy as the encoding behind it - and if you cannot see the encoding, you cannot know how far to trust the tick.

The authoritative rule stays at the top THE LAW - actual code / byelaw / IS standard authoritative and binding - the real rule | interpreted / encoded by someone | THE ENCODING - one reading of the law can be wrong, out of date, or reasonably different | run against model data | THE CHECK - a signal, not a verdict 'pass' = no flaggable issue in this data Accountability stays with the professional and the authority - never the tool
Zoom
The authoritative law sits above the encoding, which sits above the check: the encoding is one reading of the law and the check is a signal, not a verdict. Accountability stays with the professional and the authority, never the tool.
The boundary

Whoever writes it, the authoritative rule stays the law

All of this resolves into one boundary that never moves, and it is the anchor of the entire module. Whoever writes the code - regulator, vendor, or community - the encoded rule is never the authority. The authoritative, binding rule is always the actual law: the National Building Code, the applicable local byelaw and development-control regulation, the relevant IS standard, as they currently stand and as the approving authority applies them. The encoding is one reading of that law, made by some person or organisation, that can be inspected, questioned, corrected, or replaced without the law changing at all. When an encoding and the law disagree, the law wins - always - and the encoding is what was wrong.

This is why official encodings, where they exist, are so valuable: an encoding produced or adopted by the authority itself narrows the gap between the reading and the law, and gives everyone a shared, accountable interpretation. But even an official encoding is a tool that expresses the rule, not the rule, and even it can lag or err. So the practical discipline holds regardless of who wrote the code: treat every encoding as a maintained, versioned, contestable expression of a law that remains the real reference; prefer transparency so you can judge the reading; and keep the binding determination of compliance and the authoritative interpretation of any regulation with the qualified professional of record, the approving authority, and the governing law.

That is the honest place this module lands. Rules as code is genuinely powerful for the clear, quantitative subset of rules, and giving regulation an executable, machine-readable form delivers real speed, consistency and early feedback. But every encoding is an interpretation, made by someone with a position and incentives, and it can be hidden, wrong or out of date. So who writes the code matters enormously - and precisely because it does, the code is never allowed to become the authority. The law stays the law; the professional and the authority stay accountable; and the encoded rule earns its place only as a transparent, well-governed, always-secondary expression of a rule that lives, bindingly, elsewhere.

The authoritative rule stays at the top THE LAW - actual code / byelaw / IS standard authoritative and binding - the real rule | interpreted / encoded by someone | THE ENCODING - one reading of the law can be wrong, out of date, or reasonably different | run against model data | THE CHECK - a signal, not a verdict 'pass' = no flaggable issue in this data Accountability stays with the professional and the authority - never the tool
Zoom
The authoritative law sits above the encoding, which sits above the check: the encoding is one reading of the law and the check is a signal, not a verdict. Accountability stays with the professional and the authority, never the tool.
Verify-this: whoever writes the code, the law stays the authority and people stay accountable

The encoder holds interpretive power

Who writes the code

Whoever encodes a rule makes the interpretive choices everyone then runs; regulator, vendor and community each bring different standing, incentives and transparency. Always ask whose encoding it is. Modules 3.2, 8.3.

Hidden and stale encodings are the sharp risk

What goes wrong invisibly

Opaque, wrong or outdated encodings still return confident verdicts; reuse scales the error. Prefer transparent, versioned encodings and keep a human reading the live rule. Modules 8.2, 9.1, 9.4.

The authoritative rule is the law

Encoding versus authority

Whoever wrote it, the encoding is one reading; the binding rule is the actual current code, byelaw or IS standard as the authority applies it. When they disagree, the law wins. Modules 8.3, 10.3.

Hands-on workshop

Workshop - interrogate a checking tool as one encoder's interpretation

The habit this module wants to leave you with is asking, of any automated verdict, whose interpretation it is. In this workshop you take a real or imagined checking tool and interrogate it as an encoding made by someone - naming the encoder, the choices, the risks, and the boundary.

A tool or portal to reason about and a notebook. No build required - the aim is the habit of asking whose encoding a verdict is; binding compliance and the authoritative interpretation always stay with the professional, the authority and the actual current code.

Given & goal
Goal: judge a checking result as one party's interpretation, not as the law
Inputs: a real or described compliance-checking tool or an online approval portal, plus a notebook
Time: ~40 minutes
  1. 1Identify the likely encoder: for your chosen tool, is the rule logic written by the regulator, a vendor, or an open community? Note how you can tell, and what you cannot find out.
  2. 2Assess transparency: can you inspect how any rule was encoded, or only see verdicts? List what you would need to see to trust a 'pass' on a specific rule.
  3. 3Name the choices and incentives: for one rule the tool checks, describe an interpretive choice its encoder must have made, and how the encoder's position or incentives might shape it.
  4. 4Probe currency: how would you find out which edition of the byelaw or standard the encoding implements, and whether it is up to date?
  5. 5State the boundary in one paragraph: why, whatever the tool says, the authoritative rule stays the actual current law and the binding judgement stays with the professional and the authority - flagged as reasoning.

You’ll walk away with
A one-page interrogation: the likely encoder, a transparency assessment, one interpretive choice and its incentive slant, a currency check, and a paragraph restating the boundary - framed as reasoning, not a compliance determination.

The worked example

Three altitudes on the same idea

Read the band that fits you — or all three.

For the architectUsing automated checking for early feedback and self-checking - while you and the authority stay accountable

Every checking tool you use embodies someone's encoding of the rules - so make 'whose encoding, and can I see it?' a standard question, not an afterthought. A regulator's or authority-adopted encoding carries the most standing; a vendor's proprietary encoding may be capable but hides its interpretive choices behind a verdict; an open encoding is inspectable but must be well-governed. The real risks are hidden, wrong or outdated encodings that still return a confident 'pass', which automation bias makes easy to over-trust. Prefer transparent, versioned encodings, keep a human reading of the actual current byelaw in the loop, and treat a verdict as one party's interpretation of the rule, not the rule. Whoever wrote the code, the authoritative rule is the live law and the approving authority's reading of it; binding compliance and interpretation stay with you, the authority and the governing code (NBC India, local byelaws/DCR, IS standards).

For the interior designerWhere automated rule-checking helps interiors (accessibility, fire, egress) and where judgement is required

When an accessibility or egress checker passes or fails your interior, someone encoded what those rules mean - and who that someone is decides whose reading you are running. A tool may have interpreted 'clear opening' or 'accessible route' in a way that differs from the authority or the current standard, and if the encoding is proprietary you cannot see how. Ask whether the encoding is transparent, which edition of the standard it implements, and whether it is current, because a hidden or outdated encoding can pass an interior that a plans-examiner would reject. Use encoded checks as one interpretation and an early-warning layer on the measurable rules, and keep the human judgement real accessibility needs. Binding fire, egress and accessibility compliance, and the authoritative reading of any rule, stay with the qualified professionals, the approving authority and the current governing code (NBC India, accessibility standards).

For the studentHow regulations become machine-readable rules - and why many rules resist being coded at all

This lesson turns the module's big idea - encoding is interpretation - into its central governance question: who does the encoding, and why does it matter? Learn the three candidate encoders and their trade-offs: the regulator (closest to intent, can be official, but rarely has capacity), a vendor (has capacity, but often opaque, with its own incentives), and an open community (inspectable and correctable, but needs governance and is not automatically authoritative). Understand why the encoder's identity is not a detail: they make the interpretive choices everyone then runs, their incentives shape those choices, and they control currency. Learn the risk of hidden, wrong or outdated encodings that still return a confident verdict, and the disciplines that answer it - transparency, versioning, a human in the loop. And hold the boundary that anchors the whole course: whoever writes the code, the authoritative rule stays the actual law, and accountability stays with people, never the tool.

Misconception check

It does not really matter who encodes a rule - a rule is a rule, and if the encoding is done competently it will just reflect the law. So a checking tool's verdict is the rule speaking, and you can trust a 'pass' whether the encoding came from the regulator, a vendor, or an open project.

Because encoding is interpretation, who encodes a rule is inseparable from what the encoded rule means, and treating the verdict as 'the rule speaking' is exactly the error that makes automated checking dangerous. The encoder makes the interpretive choices earlier lessons described - what a term means, which elements are in scope, how a property is measured - and those choices become the rule everyone runs; two competent encoders can produce two defensibly different encodings of the same clause. The encoder's position and incentives shape those choices even in good faith: a regulator encodes toward intent, a vendor also toward a sellable, defensible, sometimes proprietary product, and hidden interpretations hide their slant. The encoder also controls currency, so an outdated encoding silently enforces a rule that has changed. And the failures that matter most - hidden, wrong or stale encodings - still return clean, confident verdicts, which automation bias makes easy to over-trust. So a 'pass' is not the rule speaking; it is one party's interpretation of the rule, applied to your data, and its trustworthiness depends on who wrote it, whether you can see how, and whether it is current. The disciplines that follow are transparency (prefer inspectable encodings), versioning, and keeping a human reading of the actual rule in the loop. Above all, the boundary never moves: whoever writes the code, the authoritative rule is the actual law - the NBC, the local byelaw, the IS standard, as the authority currently applies it - and accountability for compliance and interpretation stays with the qualified professional and the approving authority, never the tool.
Try it

Do it yourself

No software needed - reason it through.

  1. 1Name the three candidate encoders of a rule and give one strength and one weakness of each.
  2. 2Explain why 'who encodes the rule' is inseparable from 'what the encoded rule means'.
  3. 3Describe how a hidden, a wrong, and an outdated encoding can each return a confident verdict that misleads.
  4. 4What three disciplines reduce the risk of trusting a bad encoding?
  5. 5State the boundary that holds whoever writes the code, and say who stays accountable for actual compliance.
Take this with you

The one line to carry out

Because encoding a rule is interpreting it, who writes the code - the regulator, a vendor, or an open community - decides whose reading of the law everyone runs, and their choices, incentives and currency shape what the rule effectively means; the sharp risk is hidden, wrong or outdated encodings that still return confident verdicts, answered by transparency, versioning and a human in the loop - but the boundary never moves: whoever writes the code, the authoritative rule stays the actual current law, and accountability stays with the professional and the authority, never the tool.
Take it further
References & further reading

Peer-reviewed journals & authoritative standards

  1. 01Rules as codeWikipedia - Rules as code, 2026.
  2. 02Statutory interpretationWikipedia - Statutory interpretation, 2026.
  3. 03Open-source softwareWikipedia - Open-source software, 2026.
  4. 04AccountabilityWikipedia - Accountability, 2026.
  5. 05Professional responsibilityWikipedia - Professional responsibility, 2026.
Related lessons
Recap
Every earlier lesson led to one fact: to make a rule runnable, someone must decide what it means, and that interpretation is then run at scale. So the governing question of rules as code is who does the encoding. Three candidates, each with trade-offs: the regulator who authored the rule (closest to intent, potentially official, but rarely with the capacity to build and maintain machine-readable rules); a software vendor (with the capacity, but often proprietary and shaped by its own incentives, so its interpretation is hidden); and an open or community effort (inspectable and correctable, but needing governance and not authoritative merely by being open). The encoder's identity is not a detail because the encoder makes the interpretive choices everyone runs, their position and incentives shape those choices even in good faith, and they control when an encoding is updated. The sharpest danger is hidden, wrong or outdated encodings that still return clean, confident verdicts - failures invisible at the point of use, and easy to over-trust through automation bias, with reuse scaling any error across every design. The disciplines that answer this are transparency (prefer inspectable encodings), versioning and currency, and keeping a human reading of the actual rule in the loop. And beneath it all sits the boundary that anchors the whole module and course: whoever writes the code, the encoded rule is only ever one reading, and the authoritative, binding rule is the actual current law - the NBC, the local byelaw and development-control regulation, the IS standard, as the approving authority applies it - so accountability for compliance and interpretation stays with the qualified professional and the authority, never with the tool.
Carry forward →

With the core of rules as code in hand - how a rule is encoded, what the idea promises and risks, what machine-readable really demands, and who holds the interpretive pen - the course turns next to the machinery that runs these encoded rules against a model: automated code checking itself.

A

The author

Amogh N P

Architect, interior designer, and creative polymath. Studio Matrx began in his notebooks — his vision of design made honest, useful, and open to everyone. Its Academy is written and taught in his memory, and free, forever.

More about Amogh →