Compliance: personal data, test data, DORA¶
These families of rules come on top of archvow's own. They are chosen with the others in the one
rules answer of init (Project management):
| Family | Rules | Default |
|---|---|---|
GDPR |
EU / EEA personal data (GDPR / RGPD): purpose, legal basis, retention, location, recipients | on |
US-PRIVACY |
US state privacy laws (CCPA/CPRA and the other state laws, the strictest common rule): notice, opt-outs, sensitive data, consumer requests, risk assessments, minors | on request |
GLBA |
US financial institutions: customers' nonpublic personal information shared only after notice and opt-out, encrypted, limited, disposed of, incidents reported | on request |
TST |
test data: no real data in tests | on |
DORA |
EU Digital Operational Resilience Act (banks, insurers): traceability, separation of duties, third parties, tested resilience | on request |
GDPR, US-PRIVACY and GLBA are privacy regimes: each one a file of archvow's own pack
(regimes/<id>.yaml), the law's questions and its register as data. With any of them on, the PRIV
rules check what every privacy law needs - every column classified, never logged, never in a URL, special
data protected. A company adds a regime archvow does not ship (HIPAA, LGPD, PIPEDA...) with one file in a
pack: Packs - A regime. An EU and US bank turns several on at once:
-a rules=ARCH,STYLE,SPARK,GDPR,US-PRIVACY,GLBA,TST,DORA.
archvow init my_pipeline -a architects=@acme/architects # every family but DORA and the US regimes
archvow init my_pipeline -a architects=@acme/architects -a rules=all # all of them
archvow init my_pipeline --force -a rules=all # later, reviewed
These checks are automated policy checks and documentation for an audit, not a certificate of compliance and not legal advice: they follow personal data through the spec (the declared uses of each component), not through the running code. Each regime file says which law it follows and the day its texts were checked against it (law, checked, sources). What they rely on in your Git host: What your Git host must enforce.
Switching a family off later is a guard change (ARCH020 with check --base): the architects
approve it, and so is a column made less personal or losing a tag. Each family has its section in
.archvow/doc/project.md (Checks): PRIV, the regimes, TST, DORA. Every code is explained in Rules.
With DORA, the first commit passes in two steps. init refuses a single architect who is not a
group (an author would approve their own change): give two people or a group,
-a architects="@alice @bob" or -a architects=@acme/architects - in a terminal it asks again.
Then init lists the packages the third-party register still lacks - archvow itself, whose
supplier and licence are yours to state - with the command to record each one:
archvow dependency add archvow --supplier "Acme data platform team" --licence Proprietary --criticality important
git add -A && git commit -m "archvow init"
archvow==<version> stays in requirements.txt: it is development tooling (never deployed), and
the Git hook and the CI install archvow from it, pinned, so everyone checks with the same rules.
Personal data (PRIV, with every privacy regime)¶
1. Classify every column. A schema (PySpark) or a model (FastAPI) defines columns; each one
is personal, special (health, religion, political opinion, biometrics...: GDPR art. 9 special
categories, US sensitive personal information) or none. A tag says what a regime covers:
financial (GLBA's nonpublic personal information), health, biometric, children,
precise-location:
archvow column set orders_schema customer_id,email personal
archvow column set orders_schema health_status special --tag health
archvow column set orders_schema card_number personal --tag financial
archvow column set orders_schema order_id,amount none
archvow reads the columns from the code (StructField("email", ...), a model's fields): a
column the spec does not classify fails the build from day one (PRIV001). archvow show
<schema> lists them, archvow specify asks them one by one. --tag none removes the tags.
2. archvow follows the data. From the spec: a component handles the personal columns of what it uses; a job hands them to every step it wires; a writer writes them - unless a step removes or pseudonymises them:
archvow column set clean_orders email --removes
archvow column set clean_orders health_status --pseudonymises
A component that handles personal data never shows, prints or logs rows (PRIV002), never
partitions files by a personal column (PRIV004), never puts one in a URL (PRIV005). Its spec
spec says so, with the columns.
3. Special data written in clear needs a critical hazard and its tested invariant
(PRIV003): archvow hazard add vat_writer exposed critical "health data is written in
clear", then archvow invariant add vat_writer "health_status is pseudonymised before
the write". A step that pseudonymises it (--pseudonymises) is the other way.
4. Answer each regime's questions. A regime asks where personal data is processed (the job,
the router, the service: its purpose role), stored (the writer, the repository: store) and
sent (a client: share) - the template says which of its component types play each role
(roles). Its questions are numbered with its letter: P1, P2... for GDPR, U1... for
US-PRIVACY, G1... for GLBA; coded code fails while one is open, with the regime's own code.
archvow show <component> lists them, one group per regime:
archvow decision make daily_job P1 "Monthly revenue report for finance"
archvow decision make vat_writer U1 "The privacy request job deletes rows by customer_id within 30 days"
5. The registers. .archvow/doc/project.md has one section per regime on: each covered column, where
it is declared, who handles, removes, pseudonymises and writes it, and the regime's answers.
GDPR¶
| Where | Question | Code |
|---|---|---|
| purpose | P purpose; legal basis (art. 6); the art. 9 condition, when it handles special data | GDPR002 |
| store | retention and erasure (art. 17); location and transfer safeguard (art. 46) | GDPR003, GDPR008 |
| share | the recipient: where, under which contract (art. 28) and safeguard (art. 46) | GDPR008 |
archvow decision make daily_job P2 "Legitimate interest: steering the sales network"
archvow decision make vat_writer P1 "Kept 13 months, then the partition is deleted; one customer: delete job by customer_id"
archvow decision make vat_writer P2 "Data lake in eu-west-3 (Paris)"
Its register, the Personal data section of .archvow/doc/project.md, is the input of the record of processing
(art. 30).
US state privacy laws (US-PRIVACY)¶
There is no federal comprehensive privacy law (bills only, November 2026); about twenty states have one in force. One regime takes the strictest rule the states share each time, so a project that answers it answers every state - no per-state option to choose:
| Where | Question | Code |
|---|---|---|
| purpose | notice at collection: categories, purposes, where the consumer is told | USP001 |
| purpose | sale, sharing for targeted advertising, profiling - and how an opt-out, Global Privacy Control included, reaches the component | USP002 |
| purpose, special data | sensitive personal information: one purpose, opt-in consent before processing (most states), the right to limit its use (California), never sold | USP003 |
purpose, a column tagged children |
minors: no sale or targeted advertising under 18 (Maryland, Connecticut), verifiable parental consent under 13 (COPPA) | USP004 |
| purpose | high-risk processing (sale or sharing, sensitive data, profiling, automated significant decisions): the risk assessment before processing; for an automated significant decision, the notice before use and the opt-out or appeal (California's regulations, 2026; their ADMT duties from 2027) | USP005 |
| store | consumer requests (access, delete, correct, portability), within 45 days in most states | USP006 |
| store | retention per category | USP007 |
| share | the recipient: a service provider under a contract that limits its use (else it is a sale or sharing), the opt-out checked before sending | USP008 |
With GLBA on, the columns tagged financial are left out: California, Oregon, Minnesota, Montana and
Connecticut exempt only GLBA-covered data, not the whole institution - the strictest reading. Its register
is the personal information inventory: the input of the privacy notice and the risk assessments.
GLBA (US financial institutions)¶
The columns tagged financial - customers' nonpublic personal information:
| Where | Question | Code |
|---|---|---|
| purpose | sharing with nonaffiliated third parties outside the Privacy Rule's exceptions: the notice and the customer's opt-out first (Regulation P) | GLBA001 |
| purpose | access limited to who needs it, with multi-factor authentication | GLBA002 |
| store | encrypted at rest and in transit, or a compensating control the qualified individual approved | GLBA003 |
| store | disposed of no later than two years after it was last used to serve the customer (FTC Safeguards Rule) | GLBA004 |
| store | incidents detected and reported in time: a bank's primary federal regulator within 36 hours of a notification incident; other institutions: the FTC within 30 days for 500 or more consumers | GLBA005 |
| share | the service provider: able to protect it, bound by contract, assessed (the DORA register when DORA is on) | GLBA006 |
Banks follow the Interagency Guidelines Establishing Information Security Standards; other financial institutions the FTC Safeguards Rule (16 CFR 314): the questions hold for both.
Test data (TST)¶
Tests use invented data, built in the test or kept in a small file under tests/:
- nothing read from outside
tests/: no Spark table, no JDBC, nos3://,abfss://,gs://,hdfs://ordbfs:path, no database URL other than a local or in-memory one, no absolute path (TST001); - no real-looking identifier, in a test or a data file: an e-mail outside example.com/.org/.net,
an IBAN with a valid checksum, a card number passing the Luhn check, a French social security
number with a valid key, a phone number (
TST002); - no binary extract (Parquet, Avro, ORC, Excel, a database file), no text data file over 200 KB
or 1000 lines (
TST003, limits inrules:).
None of this can prove that a value typed by hand is not someone's; it closes the usual roads: a connection, an extract, a copied row.
DORA¶
| What DORA asks | What archvow checks |
|---|---|
| every change traceable | every component has a ticket (DORA001); the commit-msg hook adds the branch's ticket to each commit message; branches already carry it (feature/<ticket>-...) |
| separation of duties | at least two people (or a group) can approve guard changes (DORA002); GitHub never lets authors approve their own pull request, GitLab has Prevent approvals by users who add commits (printed by init) |
| a register of ICT third parties | every package of requirements.txt has a supplier, a licence and a criticality, a critical one is pinned with == (DORA003); the licence is compared with the installed package (DORA006). init records the template's own packages; archvow dependency add the others. The register: the Third parties section of .archvow/doc/project.md |
| resilience tested | the tests of invariants cannot be skipped and no CI job may fail silently; the CI passes pytest's JUnit report to archvow check --test-report test-results.xml, which fails if an invariant's test did not run or did not pass (DORA004, ARCH046 - the latter for every project) |
| incidents detected and recovered | what runs - jobs, entry points, apps (the template's run role) - answers O1 (how a failure is noticed, who is alerted) and O2 (recovery, RTO, RPO) (DORA005) |
What a release contains, merge by merge - ticket, spec changes, components, tests, who merged and who approved:
archvow changes --from v1.2.0 --to v1.3.0 --markdown > CHANGES.md
The approvers appear when the platform writes them in the merge commit (GitLab: merge commit
template with %{approved_by}); otherwise the report says they are not recorded.