From d97d571de7bbce7bca06e71b3994749efb491042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Thu, 26 Nov 2026 14:19:50 +0100 Subject: [PATCH] 1.17.0 release notes: consent The box says "a doctor warning" for consent-log-migration (decided after the review); the reference copies of the iapl-upgrade and iapl-reference skills re-synced from docs/agent/skills. Co-Authored-By: Claude Opus 5.5 --- docs/CHANGELOG.md | 2 +- reference/.agents/skills/iapl-reference/resources/api.md | 1 + reference/.agents/skills/iapl-upgrade/SKILL.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d64f14a..e78a8b1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -63,7 +63,7 @@ once there are more than 20. > consent log is on by default; no IP, no user agent). Withdrawing now stops Meta, TikTok and Clarity at once. > Consent Mode stays `advanced`. Each change has an opt-out (table under "Requires project changes"). **Postgres / > SQLite:** `pnpm payload migrate:create consent-log` in the same deploy, or `iapl({ consentLog: false })` — without -> either the site works but no choice is recorded (one log line, a doctor error). +> either the site works but no choice is recorded (one log line, a doctor warning). > > **Postgres** (nothing to do): many form submissions or "forgot password" requests at the same moment no longer stop > the site; form and account mail go out right after the commit. Details under "Fixed — Postgres". diff --git a/reference/.agents/skills/iapl-reference/resources/api.md b/reference/.agents/skills/iapl-reference/resources/api.md index af0d6f4..1791160 100644 --- a/reference/.agents/skills/iapl-reference/resources/api.md +++ b/reference/.agents/skills/iapl-reference/resources/api.md @@ -187,6 +187,7 @@ Fifteen ready blocks and ten page templates. **Use a library block (or a variant | `REJECT_ALL_CONSENT` | `@intecion/ipal-kit` | Only `necessary: true` (a copy of `DEFAULT_CONSENT`). | | `CONSENT_LOG_SLUG` | `@intecion/ipal-kit` | Consent log collection slug: `'consent-records'`. | | `CONSENT_LOG_PATH` | `@intecion/ipal-kit` | The consent log endpoint's path under the API route: `'/ipal/consent'` (`/api/ipal/consent`). | +| `CONSENT_LOG_MAX_BYTES`, `readCappedBody(request, max?)` | `@intecion/ipal-kit` | The consent log endpoint's body cap (4096 bytes) and the reader it uses: `null` when a declared `content-length` or the stream itself passes the cap (read only up to it), else the text — for your own public JSON endpoint. | | `resolveConsent(record, signal, mode?)` | `@intecion/ipal-kit` | Pure: what is in effect for a stored record (or `null`), the Global Privacy Control signal and the mode (`'honour'` default / `'ask'` / `false`) → `{ decided, gpc, stale, state }` (type `ResolvedConsent`; mode type `GpcMode`). The table in consent.md → "Global Privacy Control". | | `gpcFromNavigator()` / `gpcFromHeaders(headers)` | `@intecion/ipal-kit` | The signal: `navigator.globalPrivacyControl === true` (false on the server) / `Sec-GPC: 1` exactly. Read the header only where a response is per visitor (endpoints) — never while rendering a static page. | | `GPC_CATEGORIES`, `GPC_HEADER` | `@intecion/ipal-kit` | `['analytics', 'marketing']` (what the signal refuses) and `'sec-gpc'`. | diff --git a/reference/.agents/skills/iapl-upgrade/SKILL.md b/reference/.agents/skills/iapl-upgrade/SKILL.md index fcd36b3..0e52b53 100644 --- a/reference/.agents/skills/iapl-upgrade/SKILL.md +++ b/reference/.agents/skills/iapl-upgrade/SKILL.md @@ -588,7 +588,7 @@ tracker request. Every decision is now recorded in *Privacy → Consent records* 1. **Postgres / SQLite and the project never had `consentLog` on:** the consent log is now on by default and is a new table. In the same deploy: `pnpm payload migrate:create consent-log`, commit it, apply it at container start (`prodMigrations` or `pnpm payload migrate && pnpm start`). Or `iapl({ consentLog: false })`. Without either the site - works, but every choice answers 503 and is not recorded (one log line; `iapl-doctor` error `consent-log-migration`). + works, but every choice answers 503 and is not recorded (one log line; `iapl-doctor` warning `consent-log-migration`). MongoDB: the collection appears by itself. 2. Every site: `pnpm payload generate:types` adds the `consent-records` collection's types (where it was off) — run it and commit. No import-map change.