The scenario
Example Retail (fictional) is a grocery chain exploring Face Pass, an optional service in which members who choose to enrol can check out and be greeted by face. It also wants anonymous store analytics, such as counts and queue lengths, to staff stores better. Facial recognition in shops is one of the most contested uses of AI: it handles biometric data, it can be used covertly, it can work worse for some groups of people and it can chill ordinary behaviour. Several regulators have restricted or banned retail uses, and some laws make unconsented collection very expensive. The scenario shows how a retailer could use the technology only on the narrow ground where the shopper has chosen it.
The platform recognises only enrolled members, only in marked opt-in zones, only for the purposes they consented to, and never acts without their confirmation. Everyone else is only counted. There is no watchlist, no emotion inference, no use for pricing and no sale of data. The privacy gate that enforces these rules is deterministic code and is independent of the models. One rule runs through every page: if consent is uncertain, nothing is matched and nothing is kept.
This is a speculative architecture exercise, and facial recognition in shops is contested and regulated. The design here is deliberately restrictive: opt-in only, no identification of anyone who has not enrolled, and no covert use. Nothing here is legal advice or a recommendation to deploy. The retailer, stores, thresholds and figures are invented. Vendor product names are real; code and configuration are sketches that show the shape of an integration. Check endpoints, parameter names and feature availability against each vendor's current documentation before you build, and take advice on the law where you operate.
Architecture
The path from camera to matcher is deterministic code on an edge appliance in the store, with its own switch off. AI sits beside it, counting, advising on aggregates and drafting documents. If every model were switched off, the checkout would still work without Face Pass, and no frame would be kept.
One day in a store, with what happens behind it
A day from enrolment to record. The right-hand column is what the platform does.
| Step | What happens | Behind the scenes |
|---|---|---|
| Enrol | A shopper chooses Face Pass in the app, reads a plain-language notice, gives separate consent for checkout and for personalised greetings, passes a liveness check and a template is created. | The consent is recorded with its scope and date. The template is encrypted and linked only to the consent. |
| Pass by | Another shopper, who never enrolled, walks through the store. The edge camera sees them for a moment. | The privacy gate allows no matching. The frame stays in memory, adds one to a count, and is discarded within 100 ms. |
| Recognise | The enrolled member steps up to the Face Pass checkout lane, which is a marked opt-in zone. | The gate sees an active consent for checkout in this zone and allows matching against enrolled templates only. |
| Confirm | The matcher proposes a member. The kiosk asks them to confirm with a tap on their phone before anything is charged. | A match is a proposal. Payment needs the member's confirmation. No AI component can supply it. |
| Analyse | The analytics advisor reads anonymous counts and dwell time and suggests staffing for Saturday afternoon. | Advice uses aggregates only. It cannot identify anyone and cannot change a store setting. |
| Withdraw | The member withdraws consent in the app. | The template is deleted from the vault and all caches within 24 hours, and the register reconciles. |
| Record | The copilot drafts the monthly privacy report for the privacy officer, who edits, signs and files it. | Language-model assistance is limited to documentation. Filing is a signed act. |
The parts, and where each is covered
Consent and enrolment
Explicit, separate, withdrawable consent, a liveness check and an encrypted template tied to the consent.
Privacy gate
A deterministic gate that allows matching only for consenting members in opt-in zones and discards every other frame.
Recognition and confirmation
A matcher that proposes a member, who must confirm before any action is taken.
Anonymous analytics
Counts, dwell times and queue lengths with no identity, face crop or template.
Platform
The AI gateway for language-model assistance, a retail gateway, the lakehouse for aggregates, security scanning and observability.
Assurance
Threat model, evaluation plan, governance and runbooks that make it safe to run.
Design and delivery documents
The documents a privacy officer, a regulator, a security review and a store operations team would ask for, each written for this platform.
- Business user stories: Personas, epics, acceptance criteria and a release plan.
- Architecture decisions: The eleven decisions behind the shape of the platform.
- Sequence diagrams: Enrolment, a checkout match, anonymous counting, withdrawal, a rights request and an impact assessment.
- Diagram gallery: The pertinent diagrams in one place.
- Data model and classification: Entities, classification and retention, with biometric data and consent records.
- Tool and API (Application Programming Interface) contracts: The tool catalogue, OpenAPI and MCP (Model Context Protocol) definitions, and what AI may never call.
- Integration map: Cameras, the checkout, the consent app, loyalty, payments and regulators.
- Non-functional requirements: Discard timing, match latency, availability, capacity and a degradation ladder where privacy never degrades.
- Threat model: Spoofing, template theft, function creep, bias, insider misuse and scraped images.
- Evaluation plan: Accuracy, spoof resistance, fairness across groups, privacy tests and release thresholds.
- Responsible AI and governance: Biometric privacy law, impact assessments, consent, fairness and oversight.
- Cost and FinOps model: Cost per enrolled member and per store, and the value of faster checkout.
- Rollout and operating model: From lab to a limited opt-in pilot, with gates and responsibilities.
- Agile delivery plan: Two-week sprints for the software workstream, roadmap and capacity.
- Runbooks and incident playbooks: A privacy gate failure, a template without consent, a breach and a bias alert.
- References and further reading: Laws, standards, regulators and research.
Requirements and targets
These are the requirements the design was built against. The targets are planning figures for this demo, not measured results.
| Area | Requirement | Illustrative target |
|---|---|---|
| Opt-in only | Only enrolled members with an active consent are ever matched | 0 matches against anyone else; verified by test |
| Discard | Frames of non-enrolled shoppers are never stored or sent | Discarded within 100 ms; zero crops written to disk |
| Confirmation | A match never acts alone; the member confirms | 100% of Face Pass actions carry a confirmation |
| Withdrawal | Withdrawing consent deletes the template everywhere | Within 24 hours; register reconciles to zero orphans |
| Independence | A failure of any AI component cannot weaken the privacy gate | Verified by fault injection in every release |
| Accuracy | Low false matches for members | False match rate under 1 in 100,000 at the operating point |
| Fairness | Error rates hold across skin tones, ages and sexes | Differential within the agreed tolerance |
| No profiling | No emotion inference, no watchlists, no pricing use | Enforced by policy and by missing tools; audited |
| Security | Templates encrypted; cameras and edge devices hardened | Per-member keys; no unscanned model traffic |
| Audit | Every consent, match and deletion traceable | Complete record kept per retention rules |
Suggested reading order
Business user stories
Start with who the platform serves and what each of them needs.
ADRs (Architecture Decision Records)
Read the decisions that set the shape of the platform, starting with the privacy ones.
Sequence diagrams
Follow the key flows step by step across the components.
Diagram gallery
See the most pertinent diagrams from every page in one place.
Design documents
Data model, tool contracts, integration map and non-functional requirements.
AI gateway
See how developers reach language models, for documentation only, through one governed front door.
Databricks
See where aggregates, models, serving and evaluation live.
Prisma AIRS
See how documents and tool calls are scanned.
Foundry
See the privacy copilot on Microsoft's agent platform.
LangSmith
See the documentation workflow on LangGraph with tracing and evaluation.
Telemetry
See how software and device behaviour is traced and measured, without faces.
Assurance
Threat model, evaluation plan and governance: how it is shown to be safe and fair.
Delivery
Cost model, rollout, agile plan and runbooks for building and running it.
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