From 8cf9f4be984cee3624028e39d90df74316720ae8 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 19 May 2026 12:13:16 +0200 Subject: [PATCH] chore(work): finish 01-subject-linkage-types --- docs/work/_system/_state.json | 18 +++++------------- .../01-subject-linkage-types/_story.md | 6 +++--- .../dsr-consent-and-cookie-banner/_epic.md | 4 ++-- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index deaad02..b6aeb44 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-19T09:55:07.388Z", + "updated_at": "2026-05-19T10:13:17.670Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -239,10 +239,10 @@ "prd": "docs/work/prds/dsr-consent-and-cookie-banner.prd.md", "stories": { "01-subject-linkage-types": { - "status": "in-progress", + "status": "done", "title": "Subject-linkage types in core-shared", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [], "blocks": [ "02-audit-enum-amendment" @@ -571,8 +571,8 @@ "ready": [ { "epic": "dsr-consent-and-cookie-banner", - "story": "01-subject-linkage-types", - "title": "Subject-linkage types in core-shared" + "story": "02-audit-enum-amendment", + "title": "Audit action enum amendment (ADR-018)" }, { "epic": "dsr-consent-and-cookie-banner", @@ -586,14 +586,6 @@ } ], "blocked": [ - { - "epic": "dsr-consent-and-cookie-banner", - "story": "02-audit-enum-amendment", - "title": "Audit action enum amendment (ADR-018)", - "waiting_on": [ - "dsr-consent-and-cookie-banner/01-subject-linkage-types" - ] - }, { "epic": "dsr-consent-and-cookie-banner", "story": "03-core-consent-foundation", diff --git a/docs/work/epics/dsr-consent-and-cookie-banner/01-subject-linkage-types/_story.md b/docs/work/epics/dsr-consent-and-cookie-banner/01-subject-linkage-types/_story.md index ac72d06..7fbf129 100644 --- a/docs/work/epics/dsr-consent-and-cookie-banner/01-subject-linkage-types/_story.md +++ b/docs/work/epics/dsr-consent-and-cookie-banner/01-subject-linkage-types/_story.md @@ -3,12 +3,12 @@ id: 01-subject-linkage-types epic: dsr-consent-and-cookie-banner title: Subject-linkage types in core-shared type: technical-story -status: in-progress +status: done feature: core-shared depends-on: [] blocks: [02-audit-enum-amendment] created: 2026-05-19T12:00:00Z -updated: 2026-05-19T09:55:07.020Z +updated: 2026-05-19T10:13:17.502Z --- ## Goal @@ -43,4 +43,4 @@ The DSR cascade (Epic B's `core-dsr`) walks `custom.subject` fields to discover ## Tasks -- [ ] Add `SubjectLink`, `SubjectLinkKind`, `CollectionSubject` types in `packages/core-shared/src/payload/subject-linkage-types.ts` + ambient declaration extending Payload `CollectionConfig.custom?` with `subject?: CollectionSubject | CollectionSubject[]` + extend `PAYLOAD_AUTH_PII_DEFAULTS` with `processingRestrictedAt` and `consentState` as excluded fields + export from `core-shared` payload barrel + add `custom.subject = { kind: "self", field: "id" }` to `packages/auth/`'s `users` collection config; all gates pass. +- [x] Add `SubjectLink`, `SubjectLinkKind`, `CollectionSubject` types in `packages/core-shared/src/payload/subject-linkage-types.ts` + ambient declaration extending Payload `CollectionConfig.custom?` with `subject?: CollectionSubject | CollectionSubject[]` + extend `PAYLOAD_AUTH_PII_DEFAULTS` with `processingRestrictedAt` and `consentState` as excluded fields + export from `core-shared` payload barrel + add `custom.subject = { kind: "self", field: "id" }` to `packages/auth/`'s `users` collection config; all gates pass. diff --git a/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md b/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md index 27e9629..bea9654 100644 --- a/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md +++ b/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md @@ -16,7 +16,7 @@ features: auth, ] created: 2026-05-19T12:00:00Z -updated: 2026-05-19T09:55:07.020Z +updated: 2026-05-19T10:13:17.502Z --- ## Goal @@ -29,7 +29,7 @@ Epic A delivered declarative PII inventory + retention + sub-processors. Epic B ## Stories -- [ ] [01 — Subject-linkage types in core-shared](01-subject-linkage-types/_story.md) +- [x] [01 — Subject-linkage types in core-shared](01-subject-linkage-types/_story.md) - [ ] [02 — Audit action enum amendment (ADR-018)](02-audit-enum-amendment/_story.md) - [ ] [03 — core-consent foundation: types + brand + withConsent + conformance + ESLint rule](03-core-consent-foundation/_story.md) - [ ] [04 — core-consent implementation: Payload impl + DI + migration helpers + tRPC router](04-core-consent-implementation/_story.md)