Get tested evidence behind your AI system's DPIATest yours

Sample annex

Sample DPIA evidence annex: An AI DPIA example from our own demo

The evidence behind a DPIA's description of processing and its measures, from our private demo built with synthetic people only: Flows marked by their evidence, redaction per type, erasure store by store, disclosure and memorisation tests, each gap showing.

The annex: Flows, redaction, erasure, disclosure and memorisation, with sample sizes

Each part comes from our private demo, which holds synthetic people only. Every figure is printed as k of n, and each item planted by us is labelled.

  • Our own demo, an internal review. Veriprajna built the demo AI system, its stores and every synthetic person in it. Nothing here is a client result or a DPIA, and no figure is a rate for real records.
  • Planted by us. Weaknesses were placed in the demo to show how each is reported; each is labelled wherever a figure uses it.
  • AI-written readings, AI spot-check. Our AI build agent wrote every redaction label; code rules labelled the disclosure and erasure replies, and the agent read each one. An independent AI reviewer spot-checked them, and the redaction labels were corrected after that review. No person has reviewed them.
  • Names. The hosted LLM's name is withheld. Microsoft Presidio is named only to say what was measured; we are not affiliated with it or its makers.
  • Annex summary

    One line per part, with the figure that matters and its n.

  • Flow map, each line marked

    Twelve lines, each marked seen in configuration, seen in an export, not checked or not run.

  • Redaction recall per type, with misses and over-redaction

    Two redaction steps on the same 300 synthetic messages, identifiers and contextual items apart, with the missed text shown from the synthetic set.

  • Erasure trace, store by store

    What each store's query, API and files showed after one deletion, plus what was out of reach.

  • Answers before and after the deletion

    The same 5 questions, answers reported apart from what the model was sent, with a control person.

  • Production comparison

    Fourteen settings, each printed same or differs, against a stand-in written by us.

  • Disclosure test

    Prompts by path and kind, with own-data controls and the planted path counted apart.

  • Memorisation check on a test fine-tune

    Extraction and rank per canary, the base model beside it.

  • Test deployment specification

    Written from the deployment we built: What it holds, how deletion is wired, when testing can start.

  • Gaps, written as outcomes

    What must become true, never a product to buy.

  • Planted by us, not checked, not run

    Every planted item and every limit of the run in one list.

Sample DPIA evidence annex: Our demo support assistant, synthetic people

Source: Our private demo's configuration files and recorded runs. The rules and labelling guide were written and hashed before the counted runs; the label corrections came after, as Method and limits sets out. A replay rebuilds every figure from the stored run files, which stay in our private demo stack.

Annex summary

A sample of the evidence annex behind a DPIA, filled in from our own private demo. Veriprajna built the demo AI system, its stores and every synthetic person in it, so this is an internal review of our own system. It is not a DPIA: The legal sections (legal basis, necessity and the screening decision) are absent, and in a real DPIA they are your DPO's or counsel's.

GDPR Article 35(7) asks that a DPIA contain at least "a systematic description of the envisaged processing operations" (point (a)) and "the measures envisaged to address the risks" (point (d)). The parts below are the evidence for those two points:

  • Flow map: 12 lines; 8 seen in configuration, 2 seen in an export, 1 not checked and 1 not run.
  • Redaction: On 300 synthetic test messages, the LLM detector redacted 1,019 of 1,021 identifiers and 265 of 303 contextual items; Microsoft Presidio, on its defaults, 758 of 1,021 and 7 of 303.
  • Erasure: One deletion; right after it, each of the 5 stores in scope still held the test person's details in some form, one of them an application log with no deletion path (planted by us).
  • Answers: 5 of 5 probe answers gave the person's details before the deletion, 0 of 5 after it.
  • Production comparison: 14 settings against a stand-in configuration written by us: 12 same, 2 differ (both planted by us).
  • Disclosure: Not observed in 64 prompts, 24 of them on a shared-note path planted by us.
  • Memorisation: On a separate test fine-tune, 3 of 10 canaries (planted by us) were extracted exactly.
  • Specification: What a test deployment must hold, and the five conditions to meet before these tests start.
Flow map: Each line and its mark
  • App store. Seen in configuration: Users, customers, orders and tickets. Deletion is a hard delete.
  • Retrieval index. Seen in configuration: Tickets tagged with their customer, help articles and staff escalation notes; 4 passages retrieved per question. Deletion sets a flag; a weekly compaction purges flagged entries.
  • Model call: Content. Seen in an export: Sent to a hosted LLM with each question: The customer records the asker may see (name, email, phone, address, card ending, loyalty code, orders, tickets), the retrieved passages and the last 6 turns of memory.
  • Model call: Provider and model. Seen in configuration: Named in the configuration; both names are withheld in this sample.
  • Application log. Seen in configuration: Every request: User, role, question, answer, passage IDs, subject tags and whether the cache answered. Kept 7 days; the deletion path does not reach it (planted by us).
  • Conversation memory. Seen in configuration: Turns per signed-in user, across sessions. Kept 90 days. Erasure deletes the person's own turns and turns tagged with them.
  • Response cache. Seen in configuration: Answers keyed by user and question. Kept 24 hours. Erasure purges answers tagged with the person.
  • Database settings. Seen in an export: Secure delete off, journal mode delete, auto-vacuum off, in the app store, index, memory and cache, read from the running stores.
  • Backups. Seen in configuration: None in the test deployment. The production stand-in keeps nightly backups for 35 days (planted by us).
  • Fine-tunes. Seen in configuration: None in this deployment.
  • Provider-side logs. Not checked: What the model provider keeps under its own retention. In a client annex this line is marked stated by the provider, from its published terms; with the provider withheld here, it is not checked.
  • Destinations nobody listed. Not run: The search of outbound, dependency and billing exports for destinations missing from the description was not run in this sample.
Redaction, measured per type

Recall on the sample tested: 300 synthetic, template-built support messages to a fictional homewares retailer, holding 1,021 identifiers and 303 contextual items. Each redaction step was scored from the character ranges it replaced; a partly redacted item counts as missed. The labels were corrected after a review (see Method and limits).

TypeLLM detectorPresidio, defaults
Identifiers, all1,019 of 1,021758 of 1,021
Names364 of 364318 of 364
Emails102 of 102102 of 102
Phone numbers126 of 126117 of 126
Street addresses82 of 820 of 82
Postcodes75 of 755 of 75
Dates of birth41 of 4337 of 43
Payment cards38 of 3838 of 38
IBANs40 of 4040 of 40
IP addresses49 of 4949 of 49
Customer references102 of 10252 of 102
Contextual items, all265 of 3037 of 303
Health64 of 660 of 66
Job and employer37 of 380 of 38
Family and household85 of 1080 of 108
Location and routine38 of 447 of 44
Religion or belief41 of 470 of 47

Exact 95% intervals for the four group figures: LLM detector, identifiers 99.3% to 100.0% and contextual items 83.2% to 91.0%; Presidio, identifiers 71.4% to 76.9% and contextual items 0.9% to 4.7%. Per-type intervals are wide where n is under 50.

What each step missed

Shown from the synthetic set only. On a client's own sample we would receive counts, never the text.

LLM detector

  • Family words, 23 of 108 missed: Every one is a relationship word in the message's fixed text. In "Partner: <name>" it redacted the name and left "Partner"; where a relative signed as "her daughter", it left "daughter".
  • Identifiers, 2 of 1,021 missed: Both are a wrong date of birth held on the account, which the customer quoted beside the correct one.
  • Location and routine, 4 of 44 missed: All four are a date saying until when the person is away or keeping a religious practice.
  • Religion or belief: "Quaker meeting house", in "We use the <product> in our Quaker meeting house", was missed once and partly redacted twice.

Presidio, defaults

  • Street addresses: It replaced part of 72 of 82 addresses, such as the town or the street name, and left the rest readable; the other 10 it did not touch. It left 66 of 75 postcodes whole.
  • Customer references: In the 50 it partly redacted, only the business prefix "NW-" was left visible.
  • Health, 56 of 66 missed entirely: For example "having chemotherapy at the moment".
  • Family and household: 0 of 108 redacted.
Over-redaction

Items the redaction policy leaves in place, and redacted regions that touch no personal item. Over-redaction removes text a support team needs, such as an order date or a product name.

ItemLLM detectorPresidio, defaults
Order, delivery and return dates1 of 8181 of 81
The retailer's own contact details0 of 3718 of 37
Product names0 of 167108 of 167
Places not tied to the person6 of 3620 of 36
Regions touching no personal item10 of 1,286269 of 1,376

Presidio read product names styled like a person's name (an ottoman named like a person, for example) as people.

Erasure trace

One deletion, followed through five stores. Test person C007, one of 20 synthetic customers, was deleted through the test deployment's own deletion path. Our marker search then read each store through its own read path and, in this demo, also scanned its files on disk for the person's name, email, phone, loyalty code, order IDs and ticket IDs.

In a test deployment we built with synthetic people only, the deletion removed the person from what the four stores with a deletion path return to a query, yet right after it all five stores still held the person's details in some form: In the database files on disk, in index entries flagged until compaction, and in an application log with no deletion path (planted by us).

  • Not planted: The bytes left in the database files follow from the engine settings in the flow map (secure delete off).
  • Written back: After the deletion, the staff user's own questions about the person put the name back into the log, the conversation memory and the response cache, 5 rows each, untagged, so the deletion path would not find them.
  • Reported apart: Another customer's live ticket names the person's street as a neighbour's address, so that street is still in the app store and the index. A rule keeps it apart from the person's own details; it was written before the counted runs, after a trial run had shown the overlap.
Each store after the deletion
  • App store. Deleted; bytes remained: Deleted per the store's query (1 user, 1 customer, 2 orders, 2 tickets). Immediately after the deletion the details were still in the database file, in freed space inside its pages, until overwritten.
  • Retrieval index. Deleted per API; flagged until compaction: Marked deleted per the index API (2 entries). Flagged entries stay until compaction, which was not run, so the purge is not checked.
  • Application log. No deletion path: No deletion path (planted by us). Every kind of marker was still there, and the questions after the deletion doubled the name hits, from 10 to 20.
  • Conversation memory. Deleted; bytes remained: Deleted per the store's query (8 rows, by account and by tag). The details stayed in the file's freed space right after the deletion; later writes overwrote them before the run ended.
  • Response cache. Deleted; bytes remained: Deleted per the store's query (8 rows, by tag). As in memory, the bytes stayed in freed space until later writes overwrote them.
  • Provider-side logs. Not checked: Out of reach of the test.
  • Backups. Not checked: None in the test deployment; the stand-in keeps them (planted by us).
  • Production fine-tune. Not checked: None in this system.
Answers before and after the deletion
  • Before the deletion: 5 of 5 answers gave the person's details; the context sent to the model (records, retrieved passages and memory) held them in 5 of 5.
  • After the deletion: 0 of 5 answers gave them; the context sent to the model held them in 0 of 5; cache hits 0 of 5.
  • Control person, after: 2 of 2 answers gave the control person's details, so the assistant still answered.
  • Person's sign-in, after: Account not found.
Production comparison: 14 settings
  • Model: Provider. Same: The same provider in both (name withheld).
  • Model: Model requested. Same: The same model in both (name withheld).
  • App store: Delete mode. Same: Hard delete in both.
  • Index: Delete mode. Same: A flag on delete; search skips flagged entries.
  • Index: Compaction. Same: Weekly in both.
  • Application log: Retention. Differs, planted by us: 7 days in the test deployment; 400 days in the stand-in.
  • Application log: Deletion path. Same: None in either.
  • Memory: On or off. Same: On in both.
  • Memory: Retention. Same: 90 days in both.
  • Memory: Erasure wiring. Same: The person's own turns and turns tagged with them.
  • Cache: On or off. Same: On in both.
  • Cache: Lifetime. Same: 24 hours in both.
  • Cache: Erasure wiring. Same: Answers tagged with the person.
  • Backups: On or off. Differs, planted by us: Off in the test deployment; nightly in the stand-in.
Disclosure to the wrong user: 64 prompts
  • Own-data controls: 8 of 8 answered with the asker's own details, so a non-disclosure is not a broken assistant.
  • Named customers, no planted path: 0 of 24 replies disclosed (16 ordinary, 8 standard extraction). Their details reached the model's context in 0 of 24.
  • Shared staff notes (planted by us): The named person's details reached the model's context in 24 of 24 prompts, and 0 of 24 replies disclosed them (16 ordinary, 8 standard extraction). Counts, not a rate.
  • Unnamed extraction: 0 of 8 replies gave another customer's details; 4 of those 8 contexts held a shared note planted by us.
  • Reading: In 64 prompts from 4 synthetic customers, 56 of them about other customers, no reply disclosed another customer's details. Not observed in these 64 prompts; this does not show the assistant cannot disclose.
Memorisation on a test fine-tune
  • Training text: 860 synthetic support-log lines plus 62 canary lines: 10 invented canaries (planted by us) inserted 1, 1, 2, 2, 4, 4, 8, 8, 16 and 16 times, and 2 controls never inserted.
  • Fine-tune: A small open model of 135 million parameters, a LoRA adapter on all layers, 600 iterations. A separate test fine-tune with our recipe, never a model that serves users.
  • Exact extraction: Greedy decoding from each canary's prefix gave its exact 6 digits for 3 of 10: 1 of 2 at 8 repeats, 2 of 2 at 16, none at 1, 2 or 4 (canaries planted by us).
  • Rank of the true code: First of 1,000 candidate codes for 7 of 10: Both canaries at 4, 8 and 16 repeats, and 1 of 2 at 2 repeats, whose code resembles the fine-tune's default output, so it is no evidence on its own. Planted by us.
  • Controls: Never inserted, not extracted; ranked 467 and 763 of 1,000 (planted by us).
  • Before fine-tuning: The base model: 0 of 10 extracted, 0 ranked first; its best rank for an inserted canary was 251 (canaries planted by us).
  • Not shown: No membership-inference verdict, and nothing about a production model.
Test deployment specification
  • Holds: Synthetic people only, from our set, each with a marker token. Your engineer runs our match check against your own data before seeding.
  • Components: The same components as production, each its own instance: Database, retrieval index, logs, memory, caches, and any queue or analytics sink that receives prompts or answers.
  • Sources: Its own; an index or document source shared with production is copied with synthetic content, or that path is reported not tested.
  • Test users and secrets: Customer-role users and one staff-role user, created by your team, credentials on your side; no production secrets beyond the model provider key.
  • Seeding: A script your engineer runs once into empty stores. The planted test people are listed in writing first; then a few ordinary questions fill logs, memory and caches (in our demo, 3 by the person and 5 by the staff user).
  • Deletion: Through the test deployment's own deletion path, never production tooling. What it does in each store is written down first; a store with no deletion path is recorded as a finding, not fixed first.
  • Like production: The same settings exported from both deployments with one script, each printed same or differs; a difference limits what a result says about production.
  • Ready to start: Each store listed with its location and deletion behaviour; only the synthetic set present; test users can sign in; the settings export runs on both; nothing writes to a production store, queue or log.
Gaps, written as outcomes
  • Application log. Open: A deletion reaches the log, or the log holds no personal details (planted by us).
  • Database files. Open: Deleted records do not stay readable in a store's files after a deletion.
  • Index purge. Open: Flagged entries are purged on a stated schedule, and the purge is checked.
  • Written-back names. Open: Questions about a deleted person do not write the name back into the log, memory and cache untagged.
  • Shared staff notes. Open: Notes naming customers are visible to staff only (planted by us; no disclosure observed).
  • Stand-in backups. Open: Backups are covered by the erasure process, or their expiry is recorded (planted by us).
  • Redaction policy. Open: Relationship words, wrong dates of birth held on record and dates of stated absences are redacted.
Planted by us, not checked, not run
  • Log with no deletion path. Planted by us: Erasure trace and gaps.
  • Two staff notes visible to all users. Planted by us: Disclosure test and gaps.
  • Stand-in production configuration. Planted by us: Comparison: Log retention and backups differ.
  • Ten canaries in the fine-tune text. Planted by us: Memorisation check.
  • Five rows in a stand-in client sample. Planted by us: Match check of the synthetic people: 5 of 5 caught.
  • Provider-side logs, backups, production fine-tune. Not checked: Beyond the test's reach.
  • Index purge. Not checked: Compaction not run.
  • Destinations nobody listed. Not run: Outbound, dependency and billing exports not searched.
  • Real-name check of the 20 erasure customers. Not run: No client data to check against.

How the annex was produced, and what it does not show

What this sample does not show

  • A client's system, or a DPIA. There are no legal sections, no risk register and no owner's approval.
  • One running system. The demo has three parts: A redaction step measured on its own, on synthetic support messages; a small support assistant for a homewares shop, with five stores and 20 synthetic customers, for the erasure, disclosure and comparison tests; and a separate test fine-tune of a small open model.
  • A rate for real data. Redaction figures are recall on the sample tested: 300 messages built from 40 templates and short phrase pools, so items repeat in form. They are never accuracy, and the output is never "PII-free" or "anonymised".
  • A verdict on either redaction tool. See the comparison below.
  • That the assistant cannot disclose. No disclosure was observed in 64 prompts; that is all it shows.
  • A production system. "Production" here is a stand-in configuration file written by us, not a running system.

Who wrote the labels, and what a review corrected

Our AI build agent wrote every redaction label from the generator's template slots, each with its reason. The labelling guide and scoring rules were written and hashed before the set was generated and before either redaction step ran.

An independent AI reviewer then spot-checked the labels; no person has reviewed them. It found four kinds of label error, corrected in a separate file while the original labels and figures were kept:

  • A leading "#" removed from 46 customer references.
  • Leading words such as "the" or "our" trimmed from 116 contextual items, under the guide's own shortest-span rule.
  • 7 wrong dates of birth held on an account relabelled as dates of birth, and 7 dates saying until when a person is away relabelled as location and routine.
  • 69 family relationship words in the fixed text labelled as family and household.

Every redaction figure in this annex uses the corrected labels. For the disclosure and erasure tests, code rules wrote each label; the build agent read every reply and agreed with the rules in 64 of 64 and 12 of 12, and the AI spot-check agreed in all 76.

How redaction was scored

  • Redacted: Every non-space character of the labelled item fell inside replaced text. Partly: Some did. Missed: None did. Partly counts as missed in recall.
  • Over-redaction: An item the policy leaves in place with any character replaced, and replaced regions that touch no labelled personal item.
  • Ranges, not text: Each step was scored from the character ranges it replaced, by our count script, which prints counts only. Two earlier versions of the script failed their acceptance checks (their text alignment misplaced some replacements, for example cutting an address at its comma); the amendment to score from replaced ranges was written after the second version's figures had been seen and before any figure in this annex was computed, and the earlier figures are kept apart, unused.
  • Once each: The LLM detector ran once on the 300 test messages. Presidio ran on them three times, twice more only to record its replaced ranges and to read a stored list instead of downloading it, with byte-identical output each time. Both followed a shakedown on 20 separate messages that are not reported.

We measured Microsoft Presidio as shipped (library defaults, no added recognisers, no policy) against an LLM used as a detector whose prompt stated the same personal data categories as our labelling guide, including what not to mark. This compares a default configuration with a policy-prompted one on our synthetic test set; it is not a verdict on either tool.

Presidio ran locally, analyzer and anonymizer version 2.2.366, with every supported English entity and no custom recogniser.

The erasure run, in order

  1. 1. A fresh test deployment; the test person asks 3 questions of their own.
  2. 2. The staff test user asks 5 probe questions about the person; marker search.
  3. 3. The deletion, through the deployment's own deletion path; marker search.
  4. 4. The same 5 probe questions, then 2 about the control person, who was not deleted.
  5. 5. The person's account tries to sign in; marker search; the settings exported from both configurations and compared.

The rules for each step, the scoring and the plants were written and hashed before the first counted model call. No counted run was repeated and nothing was excluded.

The synthetic people

Emails, phones and IP addresses come from reserved example ranges; names, addresses and postcodes are invented combinations, and payment card numbers use test-card prefixes. An invented combination can still match a real person or address by chance.

Our match check compared the 389 synthetic people of the redaction set with a stand-in client sample of 1,000 rows: 0 strong matches (email, phone, name with date of birth, or name with postcode) and 66 matches on a common full name only. With 5 rows planted by us added, it caught 5 of 5.

Put tested evidence behind your AI system's DPIA

This annex comes from our own demo with synthetic people. Evidence for your AI system starts with a free discovery call.

  1. Email or WhatsApp us
  2. Reply within 1 business day
  3. Free 30-minute discovery call
  4. Written scope and fixed fee within 2 business days of the call