chore(work): finish 01-subject-linkage-types

This commit is contained in:
2026-05-19 12:13:16 +02:00
parent f8bb2f4094
commit 8cf9f4be98
3 changed files with 10 additions and 18 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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)