IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft

- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms);
  past CHANGELOG entries and the proposals in docs/dev are not rewritten
- AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames
- iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required
- env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup
- skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were
- reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:36:09 +01:00
co-authored by Claude Fable 5.2
parent 425fac14fb
commit b91984fbcd
149 changed files with 1930 additions and 1747 deletions
+18 -3
View File
@@ -28,7 +28,7 @@ This is not legal advice — for an unusual project (sensitive data, children) c
## Config
```ts
ipalKit({
iapl({
// …
stats: true,
// or:
@@ -51,7 +51,7 @@ Adds:
- the `stats-visits` collection (group *Statistics*, read and delete: admin; `create`/`update` via API
blocked — written only by the endpoint with `overrideAccess`),
- `POST /api/ipal/hit`,
- the **`<adminRoute>/stats`** view (default `/admin/stats`; it uses `ipalKit({ adminRoute })`, not
- the **`<adminRoute>/stats`** view (default `/admin/stats`; it uses `iapl({ adminRoute })`, not
`routes.admin` set by hand in the config) + a nav link *Statistics overview* (`StatsNavLink`, hidden for users who cannot read `stats-visits`),
its browser tab reads *Statistics* / *Statystyki* in the admin language (set after load through
`DocumentTitle`, because Payload's view `meta.title` is one fixed string — i18n.md),
@@ -88,7 +88,22 @@ error, a rejection and when the limit of 60 requests/min per IP is exceeded —
stored only when the request's consent cookie has `analytics: true` under the current *Policy version*
(version read from Cookie banner, cached 1 min). Path: must start with `/`, max 300 characters;
visit: max 200 page views. `locale` is stored when it matches `xx` / `xx-XX`.
`VISITOR_COOKIE` (`'ipal_vid'`) from `/client` — the cookie name, e.g. for your own cookie table.
`VISITOR_COOKIE` (`'ipal_vid'`) and `IAPL_VISITOR_COOKIE` (`'iapl_vid'`) from `/client` (also from the root, with
`visitorCookieFor(storageNames)`) — the cookie names, e.g. for your own cookie table.
### Which cookie name a site has
One name per site, for its whole life:
| Site | Config | Layout | Cookie |
|---|---|---|---|
| made before 1.17.0 (and the default) | nothing | `<PageStats />` | `ipal_vid` |
| made since (`iapl create` writes this) | `iapl({ storageNames: 'iapl' })` | `<PageStats visitorCookie={IAPL_VISITOR_COOKIE} />`, or `<SiteProviders stats={{ locale, visitorCookie: IAPL_VISITOR_COOKIE }}>` | `iapl_vid` |
`storageNames` is what the cookie scanner declares (the row it proposes for the cookie list); the prop is what the
browser sets. They must agree: `iapl-doctor` rule `storage-names`. Withdrawing consent deletes the cookie under either
name. **Do not switch on a live site**: every visitor's history starts again and the cookie list has to be approved
again. Wherever this page says `ipal_vid`, a site with `storageNames: 'iapl'` has `iapl_vid`.
CSP: the endpoint is on the same domain — `connect-src 'self'` is enough.