Repository navigation
feat: stamp recording consent provenance on conversation initiate - #1440
Open
JorimTheuns wants to merge 9 commits into
Open
JorimTheuns wants to merge 9 commits into
JorimTheuns wants to merge 9 commits into
Conversation
JorimTheuns
force-pushed
the
feat/conversation-consent-columns
branch
from
November 30, 2026 12:31
e1a3871 to
68ac5c2
Compare
JorimTheuns
force-pushed
the
feat/conversation-consent-columns
branch
from
December 1, 2026 21:13
68ac5c2 to
0333a8a
Compare
…ing, single header helper
JorimTheuns
force-pushed
the
feat/landscape-gate
branch
from
December 1, 2026 22:35
ee48d92 to
d39f66b
Compare
JorimTheuns
force-pushed
the
feat/conversation-consent-columns
branch
from
December 1, 2026 22:39
0333a8a to
43d0c63
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds server-stamped recording consent columns to
conversationso recording consent provenance is stored in Postgres alongside each conversation instead of only in PostHog events.Stacked on
feat/landscape-gate(#1438).Changes
0061_expand_conversation_consent.sql):consent_accepted_at timestamptz,consent_version varchar(32), andconsent_basis varchar(32)columns toconversationindembrane/platform/packages/db/src/schema/index.ts.ALTER TABLE "conversation" ADD COLUMN IF NOT EXISTS ...statement so no rows are rewritten and the hot table is locked once.dembrane/platform/packages/conversations/src/portal/):consent: { accepted: boolean; version: string }object (version 1 to 32 chars) inPOST /api/participant/projects/:project_id/conversations/initiate, keeping olderdembrane-goiOS clients backward-compatible.consent_basisfrom the server-derivedeffectiveLegalBasis(never client-supplied).consent_accepted_at = now()andconsent_version = consent.versionwhenconsent.accepted === true.dembrane/frontend/src/portal/andsrc/lib/api.ts):CONSENT_VERSIONalongside the privacy card copy inonboardingCards.ts.ParticipantOnboardingCardsand passesconsent: { accepted: true, version: CONSENT_VERSION }toParticipantInitiateFormfor both manual submission and auto-start.initiatewith accepted consent, without consent, overlong version rejection, and server-derivedconsent_basis.ParticipantInitiateFormmanual and auto-start forwarding, andinitiateConversationAPI payloads.Verification
bunx drizzle-kit generatedrift check:No schema changesdembrane/platform:bunx biome ci .,bun run typecheck,bun run config check,bun run packages check,bun test packages/conversations packages/db packages/verify(105 pass, 0 fail; DB integration tests run in CI with Postgres)dembrane/frontend:node scripts/check-path-case.mjs,pnpm lint,pnpm exec tsc,pnpm messages:extract,pnpm messages:compile,node scripts/check-translations.mjs --strict, API contract sync checks,vitest run src/portal/ src/lib/api.interceptor.test.ts src/lib/participantToken.test.ts(29 files, 227 tests passed)