2.3 KiB
2.3 KiB
id, epic, title, type, status, feature, depends-on, blocks, created, updated
| id | epic | title | type | status | feature | depends-on | blocks | created | updated | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 02-audit-enum-amendment | dsr-consent-and-cookie-banner | Audit action enum amendment (ADR-018) | technical-story | done | core-shared |
|
|
2026-05-19T12:00:00Z | 2026-05-19T10:29:21.283Z |
Goal
Extend the audit action enum with four new action types needed by consent and DSR, and amend ADR-018 to document the addition.
Why
core-consent's IConsent.grant / IConsent.withdraw emit CONSENT_GRANT / CONSENT_WITHDRAW for Art. 7 legal proof. core-dsr's IProcessingRestriction emits RESTRICT / UNRESTRICT for Art. 18. Both optional cores must emit via core-audit's existing channel; the action types must exist in core-shared's enum before either optional core can be implemented.
Done when
- The audit action enum in
core-shared/audit/gainsCONSENT_GRANT,CONSENT_WITHDRAW,RESTRICT,UNRESTRICT. core-audit'sIAuditLog.recordaccepts the new action types without type errors.docs/guides/audit-and-compliance.mdis updated to list the new action types.docs/decisions/ADR-018.mdgains an## Amendmentssection recording the date and the reason (consent + restriction events added for Epic B).pnpm typecheck && pnpm lint && pnpm test && pnpm conformance && pnpm fallow:audit && pnpm coverage:diffall pass.
In scope
- Audit action enum extension (four new values) in
core-shared/audit/. core-audittype update soIAuditLog.recordis compatible with the new values (no new interface methods).docs/guides/audit-and-compliance.mdupdate — "Six action types" wording amended to reflect the new count.- ADR-018 amendment section.
Out of scope
- New audit emission call sites (Stories 04 and 06 — they live in the optional-core implementations).
eraseSubjectflow changes — existing post-DSR-delete pseudonymization is unchanged.
Tasks
- Add
CONSENT_GRANT,CONSENT_WITHDRAW,RESTRICT,UNRESTRICTto the audit action enum inpackages/core-shared/src/audit/+ updatecore-audit'sIAuditLogtype to accept the new values + updatedocs/guides/audit-and-compliance.mdwith the new action types + add## Amendmentssection todocs/decisions/ADR-018.mdrecording the date and reason; all gates pass.