Retail Facial Tracking · 03 / 26

Architecture Decisions for the Retail Face Platform

The overall decisions behind the retail face platform, recorded as ADRs (Architecture Decision Records): context, decision, consequences and alternatives.

How the decisions are recorded

Each decision is an architecture decision record (ADR): a short, dated document with its status, the context that forced the choice, the decision, the consequences and the alternatives rejected. These records cover the whole platform. The first five are the privacy decisions the rest depend on.

Decision log

ADRDecisionStatusDate
ADR-001Face recognition only for shoppers who have explicitly opted in; everyone else is never identifiedAccepted2026-09-02
ADR-002A deterministic privacy gate decides, for every frame, whether any matching may happen; it is independent of AI (artificial intelligence)Accepted2026-09-04
ADR-003A match is a proposal; the member confirms before anything happensAccepted2026-09-07
ADR-004Analytics on non-enrolled shoppers is anonymous counting on the edge; frames are discarded in memoryAccepted2026-09-10
ADR-005Every template is tied to an active consent, and withdrawal deletes it everywhere within 24 hoursAccepted2026-09-14
ADR-006Language models are used only for documentation and are reached through one AI gateway; they never see facesAccepted2026-09-18
ADR-007Prisma AIRS scans documents and tool calls; writes fail closedAccepted2026-09-21
ADR-008Accuracy and fairness are measured by group before every release, and a gap beyond tolerance blocks itAccepted2026-09-25
ADR-009Release under change control, with privacy, fairness and fault-injection gatesAccepted2026-09-30
ADR-010Biometric and personal data is minimised, encrypted per member and never shared or used for pricingAccepted2026-10-04
ADR-011Consider repeat-visit insight with on-device pseudonymous IDsProposed2026-11-12

Status values: Proposed, Accepted, Superseded. Dates are the day the status last changed.

The records

ADR-001 Accepted

Face recognition only for shoppers who have explicitly opted in; everyone else is never identified

Context
Facial data is biometric data. Recognising people who have not chosen it is illegal or heavily restricted in many places and is a serious breach of trust everywhere.
Decision
The platform creates a face template only after explicit, separate, withdrawable consent, and matches only against those templates. Anyone who has not enrolled is never identified, never matched and never stored. There is no watchlist, no emotion or trait inference and no use of recognition for pricing or loss prevention.
Consequences
  • The legal and ethical footprint is as small as the use case allows.
  • Value is limited to members who opt in.
  • Some tempting uses, such as shoplifter recognition, are ruled out by design.
Alternatives considered
  • Recognise everyone and offer opt-out (rejected: consent must come first)
  • Shoplifter watchlists (rejected: high harm from errors, and out of scope for this platform)
ADR-002 Accepted

A deterministic privacy gate decides, for every frame, whether any matching may happen; it is independent of AI

Context
Models can be wrong, and a rule about consent must not depend on a model's judgement or be changed by a model update.
Decision
A deterministic gate on the edge appliance checks, for each frame, that the zone is an opt-in zone, that a consenting member could be in it and that the purpose is allowed. If not, it discards the frame after counting. No machine-learning component is inside the gate or a dependency of it, and a failure of any model cannot loosen it.
Consequences
  • The rule is simple, testable and auditable.
  • Model improvements cannot weaken privacy.
  • The gate is a single place to prove compliance.
Alternatives considered
  • Let the model decide when to match (rejected: not provable)
  • Match everywhere and filter later (rejected: collects what must not be collected)
ADR-003 Accepted

A match is a proposal; the member confirms before anything happens

Context
Face matches can be wrong. A wrong match must never cost someone money or expose another person's account.
Decision
The matcher proposes a member. The kiosk asks the member to confirm with a second factor, such as a tap on their phone. Without confirmation nothing is charged, shown or recorded beyond a refusal count. No AI component can supply a confirmation.
Consequences
  • Mistakes are harmless to shoppers.
  • Checkout takes a few seconds longer than silent payment.
  • Confirmations are logged for audit.
Alternatives considered
  • Silent payment on a match (rejected: unsafe against errors and spoofing)
ADR-004 Accepted

Analytics on non-enrolled shoppers is anonymous counting on the edge; frames are discarded in memory

Context
Store analytics are valuable, but any stored face image or persistent identifier would turn counting into tracking.
Decision
Edge counters detect people as shapes, not identities, and emit only counts, dwell buckets and queue lengths per zone and time slice, suppressed below a minimum group size. No frame, face crop, embedding or persistent identifier leaves the edge or touches disk.
Consequences
  • Analytics is useful and cannot identify anyone.
  • Some analyses, such as repeat visits, are not possible.
  • Discard is testable.
Alternatives considered
  • Store crops for later analysis (rejected: creates biometric data)
  • Re-identify visitors across stores (rejected: tracking)
ADR-005 Accepted

Every template is tied to an active consent, and withdrawal deletes it everywhere within 24 hours

Context
Consent that cannot be withdrawn is not consent, and orphaned templates are a liability.
Decision
A template register reconciles the vault against the consent register. A template without an active consent is deleted and raised as an incident. Withdrawal propagates deletion to the vault, edge caches and backups within the stated time, and the register must reconcile to zero orphans.
Consequences
  • Consent has teeth.
  • Deletion across caches and backups needs engineering.
  • The register proves compliance.
Alternatives considered
  • Delete on request by ticket (rejected: too slow and error prone)
ADR-006 Accepted

Language models are used only for documentation and are reached through one AI gateway; they never see faces

Context
Impact assessments, rights-request drafts and reports save time. They carry no real-time duty and handle sensitive text.
Decision
Language models draft privacy reports, rights-request responses, incident summaries and store notes from structured facts. They reach those through a single enterprise AI gateway with budgets, guardrails and logging. They never receive images or templates, and never write to a record without a signed approval.
Consequences
  • The language-model risk surface is small and governed.
  • One place to change a model or provider.
  • Drafts always need a person's review.
Alternatives considered
  • Direct provider SDKs (Software Development Kits) (rejected: no shared controls)
  • Language models in recognition (rejected: ADR-002)
ADR-007 Accepted

Prisma AIRS scans documents and tool calls; writes fail closed

Context
Rights requests, emails and supplier documents are untrusted text a model will read. Hidden instructions could try to leak personal data or alter a record.
Decision
Runtime scanning sits on the gateway path and at the tool boundary for the language-model components. If scanning is unavailable, AI-drafted text is not written to any record and the team documents manually. The recognition path is out of scope for this scanner and has its own controls.
Consequences
  • Detection is consistent across components.
  • A scanning outage slows documentation, never the store.
  • The edge path has its own protections.
Alternatives considered
  • Prompt-only defences (rejected: not enforceable)
ADR-008 Accepted

Accuracy and fairness are measured by group before every release, and a gap beyond tolerance blocks it

Context
Face recognition has been shown to perform differently across skin tones, ages and sexes. A gap is a harm and a legal risk.
Decision
Every release is evaluated on a balanced set with false match, false non-match and spoof-detection rates reported by permitted group with confidence intervals. A gap beyond the agreed tolerance blocks release, and the same measures are monitored quarterly in use.
Consequences
  • Gaps are found before shoppers feel them.
  • Balanced data is costly to collect with consent.
  • Release cadence is slower.
Alternatives considered
  • Report only overall accuracy (rejected: hides gaps)
ADR-009 Accepted

Release under change control, with privacy, fairness and fault-injection gates

Context
A change to a model or a threshold can change who is recognised and what is kept.
Decision
Every change follows change control and runs offline evaluation, privacy tests, subgroup checks and fault injection before release. Thresholds on privacy, accuracy, fairness and independence must be met. Edge updates are staged and reversible.
Consequences
  • Regressions are caught before stores see them.
  • Release cadence is slower than ordinary software.
  • Evidence is traceable for regulators.
Alternatives considered
  • Continuous deployment of model changes to stores (rejected: too risky for a biometric system)
ADR-010 Accepted

Biometric and personal data is minimised, encrypted per member and never shared or used for pricing

Context
Face templates cannot be changed if stolen, and they are valuable to others.
Decision
Templates are encrypted with per-member keys held in a hardware-backed service, stored in the vault only, and never leave it in clear. They are not shared with third parties, not used for pricing, marketing segmentation or law enforcement requests without legal process reviewed by the privacy officer. Retention ends at withdrawal or after long inactivity.
Consequences
  • A breach exposes less.
  • Key management adds cost.
  • Some commercial uses are ruled out.
Alternatives considered
  • Central shared template store for partners (rejected: unnecessary exposure)
ADR-011 Proposed

Consider repeat-visit insight with on-device pseudonymous IDs

Context
Marketing would like to know how often anonymous shoppers return.
Decision
Proposed: on-device pseudonymous identifiers that reset daily, to count repeat visits within a day. Not accepted: this moves counting toward tracking, needs a privacy impact assessment, regulator advice and a clear notice before any use.
Consequences
  • Could improve layout decisions.
  • Moves the design closer to tracking, so evidence and notice must be strong.
  • Pending impact assessment.
Alternatives considered
  • No repeat-visit insight (current position: safest)

The principles behind them

Consent first

Nobody is recognised who has not explicitly chosen it, for a purpose they chose, and they can withdraw at any time.

Privacy is deterministic

The rule that decides whether matching may happen is simple code that no model can loosen.

Humans confirm

A match is a proposal. The shopper confirms, and a person decides anything that affects them.

Discard by default

What is not needed is not kept: frames are discarded in memory and analytics are anonymous.

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