Sub rosa — "under the rose." The rose hung over a Roman council table meant: what is said here stays here. Confidentiality by mutual understanding; selective disclosure by architecture.
Subrosa is a privacy engineering suite that takes both halves of the privacy problem seriously: the cypherpunk half (privacy must be structural — built from cryptographic primitives that make over-disclosure impossible) and the regulatory half (statute-precise compliance mapping across 29 jurisdictional and sectoral records). Its thesis, enforced rather than asserted:
Compliance is a floor. Selective disclosure is the ceiling.
skills/ Nine Claude Code skills (SKILL.md + references/)
privacy-suite/ Router — diagnoses the need, sequences the others
threat-model-privacy/ IC-methodology adversary profiling (7 archetypes)
data-minimization/ Field-level schema audits, P1–P7, remediation vocabulary
consent-language/ Notices, cookie consent, rights pages, breach letters
privacy-impact-assessment/ DPIA/PIA workflow, regulator-ready output
opsec-review/ Inferential-leakage audit before anything ships
redact/ PII/credential/wallet scrubbing (regex + crypto patterns)
metadata-hygiene/ EXIF/document/AV/archive/git metadata stripping
privacy-architecture/ The build layer: ZKP, anonymous credentials, blind
signatures, commitments, stealth addresses, PSI/MPC,
DP, TEE, mixnets — with the Statutory Dissolution Map
examples/ Borealis — a fictional company taken end-to-end
(floor → threat model → minimization → dissolution → PIA)
code/ Reference primitives (Rust) — tokenize, crypto-erase,
commit, aggregate; each tied to a taxonomy cell, each
with a negative test. Unaudited; teaching/scaffolding
taxonomy/ The normalized regulatory layer
regulatory-taxonomy.md Frozen axis set (A0–A12) + sectoral profile (S0–S5)
regulatory-taxonomy--*.md 29 jurisdiction/sectoral records, citation-backed
--floor.md Strictest-regime-wins: build to this, comply everywhere
--conflicts.md C1–C8: where regimes collide (incl. AML vs anonymity)
--arch-rollup.md Which obligations dissolve under selective disclosure
schema.toml The axes as a typed schema: enums + a strictness join per field
data/*.toml Structured records (ADR-0004): dated, sourced cells; the
matching record page is generated from these
tools/subrosa.py check · render · status · floor · query · horizon · sweep · scope · conflicts · diff · export · site · new (--json)
tools/site.html template for the browsing site (one self-contained page)
e.g. floor --regimes us-ca-ccpa --data health,children
.fable/ Methodology provenance: lessons, reconciliation log,
dogfood tests, phase prompts
The taxonomy layer normalizes every regime — GDPR/UK, the full Canadian stack (PIPEDA + Quebec Law 25, Alberta/BC PIPA, Ontario PHIPA), CCPA/CPRA, LGPD, POPIA, PIPL, the PDPA family, APPI, DPDPA, the APPs, nFADP, KR PIPA, and sectoral overlays (HIPAA, GLBA, COPPA, BIPA, FERPA, ePrivacy, NIS2, DORA, EU AI Act) — onto one frozen axis set. Every cell carries a statutory citation or an explicit [UNVERIFIED] flag, plus an enforcement-mode tag: ARCH-DISSOLVES (the duty never attaches to a well-designed system), ARCH-SATISFIES (a technical measure discharges it), PROCEDURAL (only paper satisfies it), or ARCH-MANDATES (the law demands the architecture itself — AU APP 2's anonymity option, BIPA § 15(c)'s profit ban, India's child-tracking prohibition).
The architecture layer builds what the tags promise. Its Statutory Dissolution Map (skills/privacy-architecture/references/regulatory-dissolution.md) runs the bridge in the other direction: pick a primitive, read off exactly which obligations it dissolves, with record citations — so an ADR's compliance claim is auditable, not vibes. Roll-up finding: ~60% of tagged obligations across all records dissolve or discharge architecturally; the procedural remainder is five workflows of paper.
Every statutory claim was either traced to a grounding source or flagged — never guessed. The discipline caught real errors that a hand-authored reference had carried confidently: a folkloric "72-hour" Quebec breach clock (the statute says promptly), a section-shifted POPIA condition table, a duplicated LGPD rights anchor, a conflated Swiss provision, an uncorroborated UAE penalty figure — and one entire superseded statute (Vietnam's Decree 13 → PDPL 91/2025). All corrections are logged with sources in .fable/reconciliation-log.md; a Currency Protocol (quarterly sweeps, supersession banners) keeps the records from rotting. The repo enforces its own invariants in CI: tools/validate.py verifies every cross-reference resolves, every skill's frontmatter is well-formed, and every record carries a current Current as of date — and prints the [UNVERIFIED] census so flag-debt is visible per commit.
Subrosa's design principle — privacy must be structural, not procedural — has a fifty-year lineage. The suite quotes and builds on all of it:
| Text | Author | Year | Core contribution |
|---|---|---|---|
| "New Directions in Cryptography" | Diffie & Hellman | 1976 | Public key cryptography — made everything possible |
| "Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms" | David Chaum | 1981 | Mix networks — metadata unlinkability; ancestor of every mixnet |
| "Blind Signatures for Untraceable Payments" | David Chaum | 1982 | Anonymous digital cash — first working implementation |
| "Security without Identification" | David Chaum | 1985 | Full philosophical and technical statement of privacy-by-architecture |
| "The Knowledge Complexity of Interactive Proof Systems" | Goldwasser, Micali & Rackoff | 1985 | Zero-knowledge formalized — proof without disclosure |
| "The Crypto Anarchist Manifesto" | Timothy C. May | 1988 | Political framework; crypto anarchy program |
| "Why I Wrote PGP" | Philip Zimmermann | 1991 | Cryptography as civil disobedience |
| "A Cypherpunk's Manifesto" | Eric Hughes | 1993 | Privacy as selective disclosure; transaction necessity |
| "The Cyphernomicon" | Timothy C. May | 1994 | 370-page FAQ; comprehensive philosophical reference |
| "A Declaration of the Independence of Cyberspace" | John Perry Barlow | 1996 | Maximalist position; architecture over law |
| "b-money" | Wei Dai | 1998 | Anonymous distributed electronic cash |
| "Code and Other Laws of Cyberspace" | Lawrence Lessig | 1999 | Code is law; architectural regulation |
| "Trusted Third Parties are Security Holes" | Nick Szabo | 2001 | Architectural principle for trust minimization |
| "Bitcoin: A Peer-to-Peer Electronic Cash System" | Satoshi Nakamoto | 2008 | Implementation of the cypherpunk program |
The canon does not close in 2008. The post-Nakamoto continuation — Assange et al. (2012), RFC 7258's "pervasive monitoring is an attack" (2014), Rogaway's Moral Character of Cryptographic Work (2015), CryptoNote → Zerocash → Bulletproofs, Privacy Pools (2023), and Buterin's Why I Support Privacy (2025) — is mapped in the same text-by-text way, each work tied to the cryptographic primitive it authorizes and its place in the suite: skills/privacy-architecture/references/lineage.md. Narrative exposition: skills/privacy-suite/SKILL.md §The Intellectual Lineage. Per-primitive epigraphs anchor each architecture reference (Chaum 1982 → blind signatures; GMR 1985 / May 1988 → ZKPs; Nakamoto 2008 §10 → Web3 privacy; Szabo 2001 → the TEE-as-minimized-TTP framing; Diffie–Hellman 1976 → everything).
code/ is where "Cypherpunks write code" stops being a slogan. Four Rust reference crates — subrosa-tokenize (P5/A10 pseudonymization), subrosa-crypto-erase (A7 erasure), subrosa-commit (A8 hiding commitments), subrosa-aggregate (P4/P7 k-suppression) — each cites the taxonomy cell it serves and ships a negative test for the property it must deny (cross-context linkage, post-erasure recovery, reversible construction, sub-k release). Governed by adr/0002, which was hardened by an adversarial threat-model grill before acceptance: its central rule is that a library is not a system and does not by itself discharge any obligation — every crate names its system preconditions, and the three primitives that are irreducibly system properties (lockbox, retain, auditlog) are deferred rather than shipped as libraries that would overpromise. Unaudited; teaching and engagement scaffolding, not a product. CI runs cargo test, clippy -D warnings, Semgrep secret-hygiene rules, and the dependency-allowlist check.
Each skills/<name>/SKILL.md is a Claude Code skill (frontmatter name/description, references loaded on demand). Install by copying into ~/.claude/skills/ or registering the repo as a plugin; start with privacy-suite, which routes to the rest.
Corrections and new records are welcome; see CONTRIBUTING.md. The one rule: every value carries a source you read and the date you read it.
Dual-licensed by content type: the skills and tooling (skills/, tools/, .github/) are Apache-2.0 (LICENSE); the documentation — the taxonomy records, references prose, .fable/ methodology, this README — is CC BY 4.0 (LICENSE-DOCS, attribute to Subrosa). Use either commercially; keep the attribution and the Current as of dates.
Not legal advice. The taxonomy is an engineering reference for schema design, disclosure drafting, and architecture decisions. Verify effective dates and pending rulemakings against primary sources before advising in a regulated context — the Currency Protocol tells you how stale any record is.
Hughes, 1993: "Cypherpunks write code." This repo is that code, with citations.
python3 tools/subrosa.py scope --markets jp,eu,uk,qc,us-ca-ccpa --data health,children
Prints the regimes in scope, the sectoral overlays that fire (and the ones that would with other data classes), the design floor with the evidence grade and statutory anchor behind each value, and the changes already enacted or proposed for those regimes. --md for a table, --json for tooling. Market codes are country prefixes (jp, eu, us), variant codes (uk, qc, tx) or full regime ids. Not legal advice: an overlay fires on data class and place only, and the entity test is yours to confirm.
python3 tools/subrosa.py export --out subrosa-taxonomy.json
One JSON document with every record, every cell's derived state and verification grade, the floor with and without overlays, and its provenance. Shape: taxonomy/export.schema.json. Tagged releases attach the file. Standard library only.
python3 tools/subrosa.py site # writes site/index.html and site/reference.html
Two self-contained HTML pages built from the export. index.html asks plain questions (does the law reach me, how fast must I report a breach, from what age can a child consent) and answers each in a sentence, then shows every country's rule, folded where they agree, with a thin ruler for numeric answers. Tap a country for its article, source, evidence grade and the date it was checked, or open the country to read all of its rules and what changes next. Pick your countries once and they come first. reference.html is the full reference: the matrix of every record against every axis, each field across all regimes, compare, conflicts and a timeline.
Each answer also has a map: every place shaded by its answer in one indigo ramp, deeper where the law asks more, with a closer map beside it, the United States by state or Canada by province (it follows your countries, and you can switch). The Countries view has a map too. Tap any place on either, a US state or Canadian province included, for a page with every law in force there: the general law, read question by question, and the sectoral laws (HIPAA, BIPA, PHIPA, DORA and the rest) with a link into the full reference. The map repeats the rows and never replaces them. Where a state or province has its own law, the map shows that one.
An Original text switch at the top (off by default; English stays the reading) adds, under each reading that has one, an excerpt of the provision in the language it was enacted in, with the article in that language's numbering and a link to the full official text. Japan, Thailand, Switzerland (German), Quebec (French), Brazil (Portuguese), China, the UAE (Arabic, set right to left) and Vietnam carry excerpts so far. In the records this is a cell's optional native table (lang, text, cite, source); check holds it to a known language, an http(s) source and the operative words only (at most 400 characters).
Reader tools, all inside the page and offline:
- Search (press
/): a country, a state, a question or a term. "Japan breach" opens the breach answer with Japan's row open. - Brief: one page per country (
#b-<id>), every answer with its article and evidence, what changes next and the sources. Print it or save it as a PDF from the print dialog, or download it as Markdown, standalone HTML or CSV. - Compare (
#vs): two countries side by side, the answers that differ marked. - CSV: each answer, each brief, or every reading at once. Cells that would start a spreadsheet formula are prefixed with an apostrophe.
- Glossary (
#glossary): twenty terms in plain words. - Keyboard map: Tab onto a map, arrow keys move between places, Enter opens one; a live region names the place and its answer.
The questions live in taxonomy/questions.toml. Each points at one field, and check refuses a summary that states a number no in-force law holds, so the plain sentence cannot drift from the data. A question's deeper list orders its answers for the map, least demanding first, and check refuses an answer in the data that the list does not place. taxonomy/places.toml says where each law applies. The outlines in taxonomy/geo/map.json come from Natural Earth (public domain), projected at build time by tools/mapdata.py: Equal Earth for the world, so areas stay true, and Albers for the lower 48 and for Canada. They are committed, so building the site needs no network. Both pages work offline, carry their own data, and forbid network requests in their content security policy: no fonts, analytics or CDNs. The pages are built, not committed; release builds attach both.
python3 tools/subrosa.py diff --from 2026-11-13 --to 2027-05-13 --markets in,jp
Lists floor values that move, instruments that commence or lapse, and cells that change state between two dates. Only dated facts already in the records can appear.
python3 tools/subrosa.py feed # newest first, as text
python3 tools/subrosa.py feed --format atom --regime us-states --kind correction
What changed in the readings, what takes effect, and what is being watched, as Atom (feed.xml) and JSON Feed (feed.json); site writes both next to the pages, and the footer links them. Every entry carries its evidence grade and the date it was last checked, so a subscriber sees how far to trust it, not only what it says. Laws taking effect within 400 days either side and open watch items are derived from the records. Corrections, readings newly checked in the official text and new records are written by hand in taxonomy/changes.toml; check holds each to a known regime, a kind, an evidence grade, past dates and an http(s) source. Filter by --regime and --kind for one market. Information, not legal advice.
taxonomy/conflicts.toml holds the cross-regime conflict register. Each conflict has two typed sides; a side is a design condition, a list of named regimes, or a matcher over record cells, so a new record joins a conflict by its data. python3 tools/subrosa.py conflicts --markets eu,cn shows the ones that apply. Each Rust crate declares the axis it serves and what the surrounding system must still guarantee in [package.metadata.subrosa]; the tool checks those declarations against the register.
