chore(work): finish 04-retention-purge-job

This commit is contained in:
2026-05-18 20:58:23 +02:00
parent 7ea38bc5b9
commit 464df9aa9b
3 changed files with 8 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
{ {
"updated_at": "2026-05-18T18:46:05.646Z", "updated_at": "2026-05-18T18:58:24.087Z",
"epics": { "epics": {
"binder-wrap-helper": { "binder-wrap-helper": {
"status": "done", "status": "done",
@@ -178,10 +178,10 @@
"blocks": [] "blocks": []
}, },
"04-retention-purge-job": { "04-retention-purge-job": {
"status": "todo", "status": "done",
"title": "Background retention purge job in core-shared", "title": "Background retention purge job in core-shared",
"ac_total": 1, "ac_total": 1,
"ac_completed": 0, "ac_completed": 1,
"depends_on": [ "depends_on": [
"01-pii-retention-type-primitives" "01-pii-retention-type-primitives"
], ],
@@ -437,11 +437,6 @@
} }
}, },
"ready": [ "ready": [
{
"epic": "compliance-manifests-pii-retention-subprocessors",
"story": "04-retention-purge-job",
"title": "Background retention purge job in core-shared"
},
{ {
"epic": "compliance-manifests-pii-retention-subprocessors", "epic": "compliance-manifests-pii-retention-subprocessors",
"story": "05-backfill-template-collections", "story": "05-backfill-template-collections",

View File

@@ -3,12 +3,12 @@ id: 04-retention-purge-job
epic: compliance-manifests-pii-retention-subprocessors epic: compliance-manifests-pii-retention-subprocessors
title: Background retention purge job in core-shared title: Background retention purge job in core-shared
type: technical-story type: technical-story
status: todo status: done
feature: core-shared feature: core-shared
depends-on: [01-pii-retention-type-primitives] depends-on: [01-pii-retention-type-primitives]
blocks: [] blocks: []
created: 2026-05-18T17:52:09Z created: 2026-05-18T17:52:09Z
updated: 2026-05-18T18:06:15.725Z updated: 2026-05-18T18:58:23.920Z
--- ---
## Goal ## Goal
@@ -41,4 +41,4 @@ Retention without automated purge is a compliance statement with no enforcement.
## Tasks ## Tasks
- [ ] Add `retention-purge.job.ts` + unit tests to `packages/core-shared/src/payload/retention-purge/` — walks `custom.retention.purgeSchedule` per collection, registers scheduled jobs via `IJobQueue`, executes pseudonymize or hard-delete per `postDeletion.action`, emits optional audit entry per row, unit tests cover all branches including graceful auditLog skip — all gates pass on this commit. - [x] Add `retention-purge.job.ts` + unit tests to `packages/core-shared/src/payload/retention-purge/` — walks `custom.retention.purgeSchedule` per collection, registers scheduled jobs via `IJobQueue`, executes pseudonymize or hard-delete per `postDeletion.action`, emits optional audit entry per row, unit tests cover all branches including graceful auditLog skip — all gates pass on this commit.

View File

@@ -7,7 +7,7 @@ status: in-progress
features: features:
[core-shared, core-eslint, auth, blog, media, marketing-pages, navigation] [core-shared, core-eslint, auth, blog, media, marketing-pages, navigation]
created: 2026-05-18T17:52:09Z created: 2026-05-18T17:52:09Z
updated: 2026-05-18T18:46:05.473Z updated: 2026-05-18T18:58:23.920Z
--- ---
## Goal ## Goal
@@ -19,7 +19,7 @@ Ship the declarative compliance manifests + generators so downstream consumers g
- [x] [01 — PII and retention type primitives in core-shared](01-pii-retention-type-primitives/_story.md) - [x] [01 — PII and retention type primitives in core-shared](01-pii-retention-type-primitives/_story.md)
- [x] [02 — ESLint rule pii-declaration-must-be-complete](02-eslint-rule-pii-declaration-complete/_story.md) - [x] [02 — ESLint rule pii-declaration-must-be-complete](02-eslint-rule-pii-declaration-complete/_story.md)
- [x] [03 — ADR-022 amendment and evaluate-library skill update](03-adr-022-amendment-and-evaluate-library-skill/_story.md) - [x] [03 — ADR-022 amendment and evaluate-library skill update](03-adr-022-amendment-and-evaluate-library-skill/_story.md)
- [ ] [04 — Background retention purge job in core-shared](04-retention-purge-job/_story.md) - [x] [04 — Background retention purge job in core-shared](04-retention-purge-job/_story.md)
- [ ] [05 — Backfill existing template collections](05-backfill-template-collections/_story.md) - [ ] [05 — Backfill existing template collections](05-backfill-template-collections/_story.md)
- [ ] [06 — Compliance generator scripts](06-compliance-generator-scripts/_story.md) - [ ] [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) - [ ] [07 — Pre-commit hook and CI integration](07-pre-commit-and-ci-integration/_story.md)