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.
Release a policy change
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.
The short version
Section titled “The short version”npx consent-kit check # what changed, and what is missing# bump purpose versions, edit privacy.review.jsonnpx consent-kit check # passesnpx consent-kit docs # documents and the changelog entrynpx consent-kit release # writes privacy.lock.jsonnpx consent-kit build # generated files for the released state# commit, deploy the site, redeploy the receipt endpoint1. Make the change
Section titled “1. Make the change”Edit the registry. For this example:
- id: analytics retention: 730d # was 365d - id: plausible privacyUrl: https://plausible.io/privacy # was …/data-policycsp: allow: - directive: style-src sources: ["'unsafe-inline'"] reason: The legacy chat widget sets style attributes (WEB-123).2. Read the diff
Section titled “2. Read the diff”npx consent-kit checkChanges 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 errorsRead it in this order:
- 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.
- The revision sentence. It says whether visitors will be asked again. Here they will: a consent purpose changed materially.
- 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.
3. Bump the versions
Section titled “3. Bump the versions”For every version/missing_bump, raise that purpose’s version by exactly one:
- id: analytics version: 2One 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.
4. Sign off
Section titled “4. Sign off”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.
5. Check again
Section titled “5. Check again”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 passed6. Preview
Section titled “6. Preview”Before you release, look at what visitors will get.
npx consent-kit buildnpx consent-kit docsbuild 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.7. Release
Section titled “7. Release”npx consent-kit releaseReleased revision 2 on 2026-11-28T11:56:01.913ZPolicy 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.
8. Build again
Section titled “8. Build again”npx consent-kit buildBuilt 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.
9. Commit and deploy
Section titled “9. Commit and deploy”Commit together:
privacy.registry.yamlprivacy.lock.jsonprivacy.review.json(now with empty lists)- the generated files and documents, if you commit them
Then deploy:
- The site, with the new generated files and the new policy header.
- The receipt endpoint, rebuilt with the new
receipts.manifest.gen.json. Until it is redeployed, it refuses receipts for the new policy with422 receipt/unknown-policy. The new manifest still accepts every earlier release, so deploy the endpoint first or together with the site. - 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:
npx consent-kit checknpx consent-kit build --checknpx consent-kit docs --checkcheck 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.
Changes that do not ask again
Section titled “Changes that do not ask again”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.