From add54f14ef41224c65d6c19fa3770db38daa609c Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 18 May 2026 22:12:12 +0200 Subject: [PATCH] chore(work): finish 06-compliance-generator-scripts --- docs/work/_system/_state.json | 24 +++++-------------- .../06-compliance-generator-scripts/_story.md | 6 ++--- .../_epic.md | 4 ++-- 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index 59e80f5..e5166e5 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-18T20:02:55.069Z", + "updated_at": "2026-05-18T20:12:13.393Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -198,10 +198,10 @@ ] }, "06-compliance-generator-scripts": { - "status": "in-progress", + "status": "done", "title": "Compliance generator scripts (emit-data-map, emit-retention-policy, emit-sub-processors, emit-all)", "ac_total": 4, - "ac_completed": 3, + "ac_completed": 4, "depends_on": [ "01-pii-retention-type-primitives", "05-backfill-template-collections" @@ -437,29 +437,17 @@ } }, "ready": [ - { - "epic": "compliance-manifests-pii-retention-subprocessors", - "story": "06-compliance-generator-scripts", - "title": "Compliance generator scripts (emit-data-map, emit-retention-policy, emit-sub-processors, emit-all)" - } - ], - "blocked": [ { "epic": "compliance-manifests-pii-retention-subprocessors", "story": "07-pre-commit-and-ci-integration", - "title": "Pre-commit hook and CI integration for compliance drift detection", - "waiting_on": [ - "compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts" - ] + "title": "Pre-commit hook and CI integration for compliance drift detection" }, { "epic": "compliance-manifests-pii-retention-subprocessors", "story": "08-docs-compliance-reference-files", - "title": "docs/compliance reference example files and README", - "waiting_on": [ - "compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts" - ] + "title": "docs/compliance reference example files and README" } ], + "blocked": [], "needs_prd_ship": [] } diff --git a/docs/work/epics/compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts/_story.md b/docs/work/epics/compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts/_story.md index 353efe1..1501b2a 100644 --- a/docs/work/epics/compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts/_story.md +++ b/docs/work/epics/compliance-manifests-pii-retention-subprocessors/06-compliance-generator-scripts/_story.md @@ -3,12 +3,12 @@ id: 06-compliance-generator-scripts epic: compliance-manifests-pii-retention-subprocessors title: Compliance generator scripts (emit-data-map, emit-retention-policy, emit-sub-processors, emit-all) type: technical-story -status: in-progress +status: done feature: tooling depends-on: [01-pii-retention-type-primitives, 05-backfill-template-collections] blocks: [07-pre-commit-and-ci-integration, 08-docs-compliance-reference-files] created: 2026-05-18T17:52:09Z -updated: 2026-05-18T20:02:54.913Z +updated: 2026-05-18T20:12:13.181Z --- ## Goal @@ -49,4 +49,4 @@ The generators are the runtime bridge between source declarations (Payload confi - [x] Add `scripts/compliance/emit-data-map.mjs` + unit tests + `compliance:data-map` root package script — walks Payload collections, applies auth PII defaults and `authPii` overrides, deterministic YAML output, `--check` and `--print` modes — all gates pass on this commit. - [x] Add `scripts/compliance/emit-retention-policy.mjs` + unit tests + `compliance:retention-policy` root package script — validates `purgeSchedule` on every collection, deterministic YAML output, `--check` and `--print` modes — all gates pass on this commit. - [x] Add `scripts/compliance/emit-sub-processors.mjs` + unit tests + `compliance:sub-processors` root package script — parses `is-sub-processor` discriminated union from library traces, merges manual entries with `source: manual` flag, sorted deterministic YAML output, `--check` and `--print` modes — all gates pass on this commit. -- [ ] Add `scripts/compliance/emit-all.mjs` orchestrator + `compliance:emit-all` root package script, run `pnpm compliance:emit-all` to produce and commit initial `compliance/data-map.yml`, `compliance/retention-policy.yml`, and `compliance/sub-processors.yml` — all gates pass on this commit. +- [x] Add `scripts/compliance/emit-all.mjs` orchestrator + `compliance:emit-all` root package script, run `pnpm compliance:emit-all` to produce and commit initial `compliance/data-map.yml`, `compliance/retention-policy.yml`, and `compliance/sub-processors.yml` — all gates pass on this commit. diff --git a/docs/work/epics/compliance-manifests-pii-retention-subprocessors/_epic.md b/docs/work/epics/compliance-manifests-pii-retention-subprocessors/_epic.md index af2ec9d..b6004bb 100644 --- a/docs/work/epics/compliance-manifests-pii-retention-subprocessors/_epic.md +++ b/docs/work/epics/compliance-manifests-pii-retention-subprocessors/_epic.md @@ -7,7 +7,7 @@ status: in-progress features: [core-shared, core-eslint, auth, blog, media, marketing-pages, navigation] created: 2026-05-18T17:52:09Z -updated: 2026-05-18T19:21:32.358Z +updated: 2026-05-18T20:12:13.181Z --- ## Goal @@ -21,6 +21,6 @@ Ship the declarative compliance manifests + generators so downstream consumers g - [x] [03 — ADR-022 amendment and evaluate-library skill update](03-adr-022-amendment-and-evaluate-library-skill/_story.md) - [x] [04 — Background retention purge job in core-shared](04-retention-purge-job/_story.md) - [x] [05 — Backfill existing template collections](05-backfill-template-collections/_story.md) -- [ ] [06 — Compliance generator scripts](06-compliance-generator-scripts/_story.md) +- [x] [06 — Compliance generator scripts](06-compliance-generator-scripts/_story.md) - [ ] [07 — Pre-commit hook and CI integration](07-pre-commit-and-ci-integration/_story.md) - [ ] [08 — docs/compliance reference files and README](08-docs-compliance-reference-files/_story.md)