r14n — Regulatory Localization


r14n : compliance controls :: i18n : strings
r14n is the home of the Regulatory Localization Pack Specification (RLPS) — an open,
human-readable, machine-readable format for expressing which compliance controls are required
for a given (regulatory-profile × jurisdiction × subject), with a fail-closed default, a
posture selector, and legal-review provenance.
▶ Watch the explainer video — the i18n analogy, the fail-closed resolver, and the counsel-gating model in plain language, before the spec makes them precise.
Where i18n maps locales/<lang>/<feature>.toml → localized strings, RLPS maps
packs/<profile>/<domain>.r14n.toml → required controls. A translation key is a stable id
for a user-facing string; an RLPS control key is a stable id for a required compliance action.
i18n: translation key → localized string locales/<lang>/<feature>.toml
r14n: control key → required / prohibited packs/<profile>/<domain>.r14n.toml
⚠ This is NOT legal advice
RLPS is a data-interchange and configuration standard, not legal counsel. A pack is a
machine-readable template of controls; it does not tell you what the law is, and selecting a
posture that under-restricts a jurisdiction's law is the consuming operator's responsibility.
"aggressive" ≠ "compliant." See docs/not-legal-advice.md.
The problem it solves
Whether you may record a meeting — and what you must do first (get consent, show an on-screen
indicator, announce an AI notetaker, …) — depends on where everyone is and what kind of
recording it is. Today that logic is usually buried in application code: hard to audit, easy to get
subtly wrong, and impossible for a compliance officer to review without reading source.
This is a measured problem, not a hypothetical. US recording-consent law alone splits three ways
(38 one-party states + DC, 11 all-party states, one with no wiretap statute — 12 Harv. L. & Pol'y
Rev. 177). A think-tank estimate puts the US state privacy patchwork at $98–112B/year in
projected out-of-state compliance costs (ITIF 2022), the FCA/Bank of England pilots found
inconsistent interpretation of regulations is the single biggest cost driver of manual
compliance, and the AI era is multiplying the surface: state AI laws grew from 1/year (2016) to
131/year (2024) (Stanford HAI AI Index). Full annotated bibliography — 28 verified sources — in
docs/secondary-sources.md.
# BEFORE — jurisdiction rules tangled into app code (pseudocode, any language)
if any(participant in a two-party-consent state):
require(consent)
else if any(participant in the EU):
if ai_notetaker: require(announcement)
require(consent)
# …dozens more brittle branches — invisible to a compliance reviewer, easy to get subtly wrong
# AFTER — the same rules as a reviewable pack: recording_consent.r14n.toml
[subject.twin_attend]
controls = ["announcement", "aph_mandate_principal_signed"]
The app stops deciding and just enforces what the resolver returns.
RLPS pulls those rules out of the code into packs — small, human-diffable TOML files that map a
(profile × jurisdiction × subject) to the set of compliance controls required. An app asks a
resolver "given who's involved and where, what's required right now?" and gets back a control
set plus a signed, machine-readable receipt proving which pack drove the decision and who
attested it. The resolver fails closed: if a pack is missing, malformed, expired, or the
jurisdiction is ambiguous, it demands everything the app can enforce and loudly flags the
fallback — it never silently under-restricts.