feat: Add Privacy Context Extension for ARTF v1.0#9
Open
cabaret-pro wants to merge 1 commit intoIABTechLab:mainfrom
Open
feat: Add Privacy Context Extension for ARTF v1.0#9cabaret-pro wants to merge 1 commit intoIABTechLab:mainfrom
cabaret-pro wants to merge 1 commit intoIABTechLab:mainfrom
Conversation
Enables standardized privacy, consent, and data usage constraints to propagate across agent-based bidstream processing. Key features: - Privacy context schema (JSON & Protobuf) - GDPR, CCPA, CPRA, LGPD compliance support - Go reference implementation with validation engine - Enforcement actions (BLOCK, STRIP_PII, ANONYMIZE, CONTEXTUAL_ONLY) - Comprehensive test coverage (9 tests) - Backward compatible with ARTF v1.0 Licensed under Creative Commons Attribution 3.0 License. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Pull Request: Privacy Context Extension for Agentic RTB Framework
Overview
This PR introduces a Privacy Context Extension to the IAB Tech Lab Agentic RTB Framework, enabling standardized privacy, consent, and data usage constraints to propagate across agent-based bidstream processing.
Motivation
As agent-based advertising systems exchange identity signals, embeddings, and audience metadata, privacy intent must travel alongside data to ensure compliant processing across distributed agent execution environments.
Current limitations:
Solution
This extension introduces a portable
privacy_contextobject that enables:✅ Consent-aware agent execution
✅ Runtime data minimization
✅ Regional regulatory enforcement
✅ Auditable decision pipelines
✅ Inter-agent privacy interoperability
Changes
1. Specification Document
File:
docs/privacy_context_extension.mdComprehensive specification covering:
2. Protobuf Schema
File:
proto/privacy_context.protoNew messages:
PrivacyContext- Top-level privacy metadata containerRegulations- Regional privacy regime indicatorsConsent- User consent status and scopeDataControls- Data handling requirementsProcessingConstraints- Execution boundariesAudit- Consent verification traceabilityPrivacyValidationPayload- Validation results for mutations3. ARTF Schema Extensions
File:
proto/agenticrtbframework.protoRTBRequest.Extto includeprivacy_contextfieldVALIDATE_PRIVACYintent (value: 9)privacy_validationpayload toMutation.valueoneof4. Go Implementation
File:
internal/privacy/validator.goPrivacy validation engine with:
5. Privacy-Aware Handler
File:
internal/handlers/privacy_handler.goHandler wrapper that:
6. Tests
File:
internal/privacy/validator_test.goComprehensive tests covering:
7. Implementation Guide
File:
docs/PRIVACY_IMPLEMENTATION.mdDeveloper guide with:
Technical Design
Backward Compatibility
✅ Fully backward compatible:
500 to max) inRTBRequest.ExtStandards Alignment
✅ Aligns with IAB standards:
consent_stringPrivacy Regulations Supported
Example Usage
Orchestrator (SSP/Exchange)
Agent
Testing
All tests pass:
Benefits
For Orchestrators (SSPs/Exchanges)
For Agents (DSPs/Identity Providers)
For Publishers
For Users
Industry Impact
This extension positions ARTF as the first programmatic advertising framework with built-in privacy interoperability, addressing a critical gap as the industry moves toward:
Future Extensions
Potential additions (documented in spec):