User story
As a publisher, I want the system to check TCF (EU/UK) and GPP (US) consent flags before creating a Synthetic Session Cookie, so that my site complies with GDPR opt-in and US state privacy opt-out requirements.
Acceptance criteria
Affected area
Core (synthetic IDs, cookies, GDPR), Fastly runtime
Proposed approach
Before the SSC creation path, add a consent check that:
- Reads the decoded consent result (from TCF/GPP decoding).
- Determines jurisdiction (EU/UK vs US) from the consent signal type.
- For EU/UK (TCF): requires explicit opt-in — block SSC if consent is not granted.
- For US (GPP): checks opt-out — block SSC if user has opted out.
- If no consent string is present, treat as no-consent and do not create SSC.
Additional context
Sub-issue of #54. Related to #312, PR #380.