Skip to content

Beta. consent-kit is at 0.x: expect breaking changes between releases, and treat everything it generates as a draft. Report a problem or share feedback.

Take a change to privacy.registry.yaml from edit to release: read the diff, bump the versions it asks for, sign off what needs a person, regenerate, and record the release.

This guide assumes the registry has been released at least once, so privacy.lock.json exists. The example changes the fixture registry in three ways at once: a longer retention for analytics, a new privacy link for a processor, and a loosened Content-Security-Policy.

Terminal window
npx consent-kit check # what changed, and what is missing
# bump purpose versions, edit privacy.review.json
npx consent-kit check # passes
npx consent-kit docs # documents and the changelog entry
npx consent-kit release # writes privacy.lock.json
npx consent-kit build # generated files for the released state
# commit, deploy the site, redeploy the receipt endpoint

Edit the registry. For this example:

- id: analytics
retention: 730d # was 365d
- id: plausible
privacyUrl: https://plausible.io/privacy # was …/data-policy
csp:
allow:
- directive: style-src
sources: ["'unsafe-inline'"]
reason: The legacy chat widget sets style attributes (WEB-123).
Terminal window
npx consent-kit check
Changes since revision 1 (released 2026-11-28T11:55:29.895Z):
Material (purpose version bump required): 1
purpose.retention_longer@purposes.analytics.retention
"365d" -> "730d"
analytics (consent): re-consent
Needs confirmation (presumed not material): 2
csp.loosened@csp.allow.style-src.'unsafe-inline' [not acknowledged]
(none) -> "The legacy chat widget sets style attributes (WEB-123)."
essential (legitimate_interest): confirmation
security (legitimate_interest): confirmation
analytics (consent): confirmation
correction_reply (contract): confirmation
contributor_credit (consent): confirmation
processor.metadata_changed@processors.plausible.privacyUrl [not acknowledged]
"https://plausible.io/data-policy" -> "https://plausible.io/privacy"
analytics (consent): confirmation
Visitors will be asked to consent again: revision 1 -> 2.
error version/missing_bump Purpose "analytics" changed materially but is still at version 1; bump it to 2.
error confirmation/unacknowledged "csp.loosened@csp.allow.style-src.'unsafe-inline'" is presumed not material but nobody confirmed it. …
error confirmation/unacknowledged "processor.metadata_changed@processors.plausible.privacyUrl" is presumed not material but nobody confirmed it. …
check failed: 3 errors

Read it in this order:

  1. The groups. Each change is listed under its classification, with its key, the old and new value, and the purposes it affects with the consequence for each.
  2. The revision sentence. It says whether visitors will be asked again. Here they will: a consent purpose changed materially.
  3. The errors. Each one is something you have to do before the check passes.

consent-kit diff prints the same changes without the errors and always exits 0. Use it when you only want to look.

If the result surprises you, stop here. A change you thought was cosmetic and that is listed as material is the tool doing its job: decide whether you want the change, not how to get it past the check.

For every version/missing_bump, raise that purpose’s version by exactly one:

- id: analytics
version: 2

One bump per purpose per release, however many material changes it has. A bump of more than one, or a decrease, is an error. A bump without a material change is a warning (version/unnecessary_bump): it would ask visitors again for no reason.

Changes marked [not acknowledged] need a person. Decide each one, then add its key to acknowledged in privacy.review.json, next to the registry. Copy the keys from the output.

{
"acknowledged": [
"processor.metadata_changed@processors.plausible.privacyUrl",
"csp.loosened@csp.allow.style-src.'unsafe-inline'"
]
}
Marked You are confirming that
Needs confirmation The change really is not material: the new link points to the same vendor’s policy, the typo fix does not change the meaning, the loosening is wanted.
Needs review You, or whoever is responsible, reviewed a change the tool will not judge: a new lawful basis, automated decision-making, a special category of data.

If a change is listed as less serious than it is, escalate it instead of acknowledging it:

{
"overrides": {
"purpose.description_formatting_changed@purposes.analytics.description.en": "material"
}
}

The change is then material, and the purpose needs a bump. You cannot lower a classification; such an override is ignored with a warning.

Commit privacy.review.json with the registry change. The commit is the record of who signed.

Terminal window
npx consent-kit check
…
csp.loosened@csp.allow.style-src.'unsafe-inline' [acknowledged]
…
Visitors will be asked to consent again: revision 1 -> 2.
Content-Security-Policy: 1 deviation from strict
style-src also allows 'unsafe-inline': The legacy chat widget sets style attributes (WEB-123).
check passed

Before you release, look at what visitors will get.

Terminal window
npx consent-kit build
npx consent-kit docs

build uses the pending revision, so the generated banner configuration already carries revision 2. Deploy the result to a preview and run the audit against it.

docs rewrites the documents and, because there are unreleased changes, writes the changelog entry:

created privacy-docs/changelog-entry.en.md
…
# What changed in our privacy information
Because of these changes we will ask you for your consent again.
## Changes to what we told you
- “Visitor statistics”: the storage period changed from “365 days” to “730 days”.
## Other changes
- We changed a technical security setting of this website (its Content Security Policy).
- The details of the service provider Plausible Analytics changed. Purposes affected: Visitor statistics.
Terminal window
npx consent-kit release
Released revision 2 on 2026-11-28T11:56:01.913Z
Policy hash: 72ab647de338d015f31ab5fa449d7ae21c584f278cf085a6a123aca5924bbd32
Changes since revision 1 (released 2026-11-28T11:55:29.895Z):
…
Visitors will be asked to consent again: revision 1 -> 2.
Wrote privacy.lock.json. Cleared the overrides and acknowledgements in privacy.review.json.

release does three things and nothing else: it writes the lock file with one new entry in its history, it empties the two lists in the review file, and it prints the release. It does not build, deploy, tag or commit.

Terminal window
npx consent-kit build
Built revision 2 with guard mode "enforce": 1 written, 8 unchanged.
Visitors will not be asked again: revision stays at 2.

When the registry declares receipts.endpoint, this step is required. The receipt manifest lists the release history, and the release just added an entry: the previous policy is now marked as superseded. Until you rebuild, consent-kit build --check reports receipts.manifest.gen.json as stale.

The second line is correct: measured against the release you just made, nothing is pending.

Commit together:

  • privacy.registry.yaml
  • privacy.lock.json
  • privacy.review.json (now with empty lists)
  • the generated files and documents, if you commit them

Then deploy:

  1. The site, with the new generated files and the new policy header.
  2. The receipt endpoint, rebuilt with the new receipts.manifest.gen.json. Until it is redeployed, it refuses receipts for the new policy with 422 receipt/unknown-policy. The new manifest still accepts every earlier release, so deploy the endpoint first or together with the site.
  3. The documents, after whatever review your process requires.

When the revision went up, CookieConsent shows the banner again to every returning visitor on their next page view.

Run these on every pull request:

Terminal window
npx consent-kit check
npx consent-kit build --check
npx consent-kit docs --check

check fails on a missing bump or sign-off. build --check and docs --check fail when generated files are stale. Pass build --check the same --out, --guard-mode and --report-url as the build.

Not every release raises the revision. These pass with at most a confirmation:

  • removing a cookie, a script or a whole purpose;
  • shortening a retention or a cookie lifetime;
  • changing a DPA or privacy link (confirmation);
  • fixing a typo that changes only case, spacing or punctuation (confirmation for consent purposes);
  • any material change that only affects purposes on a basis other than consent. Those need a version bump and update the notice, but nobody is asked.

The full table is in change classifications.

consent-kit

Generate your cookie banner and privacy-policy drafts from one registry, and audit what your site really does against it.

© 2026 consent-kit · Released under the MIT licence.