Retail Facial Tracking · 08 / 26

Data Model and Classification

The logical data model of the retail face platform: entities, classification matrix, retention, data flows and deletion.

Purpose and scope

This is the logical data model for the platform: the entities it creates, what each holds, who may see it and how long it is kept. It makes the privacy decisions in ADR-004, ADR-005 and ADR-010 concrete. The loyalty and payment systems stay the systems of record; the platform keeps consents, templates, gate events and anonymous aggregates. Face images are never kept.

Core entities

Core entities of the retail face platform A member has consents, each for one purpose and tied to one encrypted template in the vault. Stores have zones, some of which are opt-in, and edge devices that emit counts and gate events. Match proposals and confirmations record what happened at the checkout. Rights requests and deletion events complete the picture. Member, template, consent and match records carry sensitive data. Member opaque id · app link Consent purpose · scope · date Face template encrypted · per member Liveness result pass or fail only Store zones · signage Zone opt-in or not Edge device gate version · health Count record zone · slice · number Match proposal score band · outcome Confirmation second factor · time Rights request type · due · outcome Deletion event scope · done at gives backs emits ends in sensitive data operational record
Sensitive entities are shaded. Every entity carries the trace identifier, so any record can be tied to one decision.
EntityKey fieldsOwnerNotes
Memberopaque id, app linkLoyalty platformPlatform holds an opaque id only
Consentpurpose, scope, date, statusPrivacy officeOne per purpose; withdrawable; the root of every other record
Face templateencrypted vector, key id, consent idTemplate vaultNever leaves the vault in clear; deleted with the consent
Liveness resultpass or fail, model versionEnrolment serviceNo image kept
Store and zonestore id, zones, opt-in flag, signageStore operationsOnly opt-in zones allow matching
Edge devicegate version, health, last self-checkSecurityA failed self-check stops recognition
Count recordzone, time slice, countAnalyticsSuppressed below a minimum group size
Match proposalscore band, outcome, zonePlatformNo face data; score banded
Confirmationsecond factor, timePaymentsRequired for any action
Rights requesttype, due date, outcomePrivacy officeHandled by a person
Deletion eventscope, done at, reconciledPlatformEvidence of deletion
Audit recordevent, actor, tool, args hash, outcome, trace_idPlatformAppend-only

Classification matrix

Four classes drive every control. Restricted data is limited to what a step needs, encrypted, masked by role and kept only as long as consent lasts.

DataClassIn promptsIn logs and tracesIn analyticsRetention
Face images and video framesRestrictedNeverNeverNeverNot kept; discarded in memory
Face templatesRestrictedNeverNeverNeverUntil withdrawal or 24 months inactive
Consent recordsRestrictedStructured status onlyIds and statusMasked idsLife of the consent plus the legal period
Member identity and payment dataRestrictedNeverNeverMasked by rolePer loyalty and payment rules
Match proposals and confirmationsConfidentialCounts onlyIds and banded scoresPseudonymised30 days
Anonymous counts and dwellInternalYes, aggregatesYesYesPer business need
Edge device healthInternalNoYesYes13 months
Rights requestsRestrictedStructured facts for the draftIds onlyMaskedLegal period
Protocols and noticesInternalYes, as cited clausesYesYesVersioned, kept
Trace and security eventsInternalNoYes, no contentYes13 months

A table, as built

The template register in the silver layer shows how the consent rule becomes columns: every template references an active consent, and deletion is tracked in the vault, the caches and the backups.

retail_prod.silver.template_register
-- Silver layer: template register reconciliation, with no images and no names
CREATE TABLE retail_prod.silver.template_register (
  template_id      STRING NOT NULL,            -- opaque id, not the member id
  consent_id       STRING NOT NULL,            -- must reference an active consent
  purpose          STRING NOT NULL,            -- checkout | greeting
  created_at       TIMESTAMP NOT NULL,
  consent_status   STRING NOT NULL,            -- active | withdrawn | expired
  deleted_at       TIMESTAMP,
  vault_deleted    BOOLEAN,
  cache_purged     BOOLEAN,
  backup_expired   BOOLEAN,
  status           STRING NOT NULL             -- ok | pending_delete | orphan | incident
) USING DELTA
TBLPROPERTIES ('delta.enableChangeDataFeed' = 'true');

Where data moves

FromToWhatControl
CameraEdge applianceFramesIn memory only; never written to disk
Edge applianceMatcherA frame, only if the gate allowsGate checks zone, consent and purpose
Edge applianceStore analyticsCounts per zone and sliceSuppression below a minimum group size
AppConsent registerConsents and withdrawalsAuthenticated; separate per purpose
PlatformAI (artificial intelligence) gateway and modelsStructured facts for documentation onlyNo images or templates; scan; no provider retention
PlatformRetail gatewayStructured argumentsScopes, signed approvals, audit
CollectorLakehouseTelemetry and aggregatesIdentifiers dropped or hashed; masks

Withdrawal, correction and access

  1. Find

    Every record carries the opaque consent id, so all copies can be found, including caches and backups.

  2. Delete

    Withdrawal deletes the template and its key, purges edge caches and lets backups expire within the stated time.

  3. Propagate

    Deletion events reach the register, the lakehouse tables and evaluation sets.

  4. Prove

    The audit record shows what was deleted, when and by whom, without the deleted content.

Retention periods are set by law and differ by country. Set them with counsel. The figures here are placeholders.

Reconciling the template register and catching an orphan A nightly job compares templates with active consents. It finds a template whose consent expired, deletes it from the vault and caches, raises an incident for review and records the outcome without the content. Nightly job Template register Consent register Template vault Privacy officer Audit log list templates list active consents compare: 1 template, consent expired delete template and key deleted mark orphan resolved incident: orphan found and removed audit: what, when, cause
Reconciling the template register and catching an orphan

Build this for your business

This example is speculative and not a recommendation to deploy, but the same pattern, consent first, a deterministic privacy gate, a governed gateway, runtime security, advisory-only AI and measured fairness, fits any service that handles sensitive personal data. We can scope a pilot on your own systems.

Book a discovery call