Skip to main content
← Guides

How to map a data flow

Guardrails & safety

One pass should show where each field originates, who processes it, where it is stored and when it is deleted — turning "data stays in our domain" into a checkable diagram and table.

What this guide covers

A data-flow map draws where each field travels, so that the drawing can be checked. Its value is turning claims such as "we do not look at customer data" into items you can verify. This guide works at the granularity of one pass: origin, transfer, processing, storage, deletion. Models and tools are just one kind of node on the chain; do not skip them.

Who this is for

  • You are about to integrate an AI service and do not know at which step data leaves your boundary.
  • Legal or customer due diligence asks which fields are stored, where, and for how long.
  • Release material must answer: is training used, does data cross borders, who can access it.
  • Several systems and agents are wired together and nobody can draw the whole picture.

Not a fit: estimating performance or cost, which tracks calls rather than data fields.

Prerequisites

  1. One concrete scenario, not "the whole system". Pick the chain you run daily.
  2. Contacts at each third party: model provider, hosting platform, any outsourced labelling.
  3. A source of field lists: table schemas, a log sample or the API contract — at least one.
  4. A recording convention: the same table notes who wrote the row, which page it relies on, and the verification date.

Voluntary documents can supply the structure. The NIST Privacy Framework page describes it as a voluntary tool that helps organisations manage privacy risk. This guide does not judge whether you must adopt a framework; that is a jurisdiction and business question.

Five segments

SegmentQuestion to answerCommonly missed
OriginWhich table or which user action produced the fieldTreating a derived field as brand-new data
TransferWhich services it passes before leaving the boundary, and howRecording only the main path, missing telemetry and log shipping
ProcessingWho reads it, whether it lands on disk, whether it enters prompts or retrievalConfusing retrieved context with the user's own words
StorageWhere, how long, who accesses, whether it can be deletedWriting a retention period but ignoring backups and exported copies
DeletionTrigger, duration, verification methodA promise with no way to verify it

Two kinds of sentences in third-party terms can be copied straight into the table: purpose and retention. The AWS data-privacy FAQ states: "We do not access or use your content for any purpose without your agreement." On training use, the Anthropic privacy policy offers one quotable sentence: "We disassociate Inputs and Outputs from your user ID to use them for training and improving our models." That sentence describes a practice in the policy, not the tier you signed for. Differences between consumer and business tiers must be checked against current terms; they were not itemised here.

Six steps

  1. Draw the boundary: what you administer versus what someone else administers, and be able to point at the line.
  2. List fields: only sensitive or business-meaningful ones, not a whole schema dump.
  3. Mark destinations: for each field, who read it and where it was written.
  4. Check the trail: confirm logs really exist. Audit defaults differ — the Google document records that prompt and response logging is off by default and data-access auditing must be enabled in the logging service (in-repo source, rechecked 2026-11-03).
  5. Set retention: write the period and the deletion trigger, with the source page noted.
  6. Walk one real request through the diagram, field by field.

Step 6 catches most wrong diagrams. Step 4 catches "we assumed logging was on".

Worked example: mapping a reporting assistant

The scenario is illustrative; the fields and numbers are invented assumptions used to show the drawing method.

  • Input: one instruction, "summarise last month's refund amounts by region", from an analyst account.
  • Processing: four nodes on the chain — internal warehouse, retrieval layer, model API, result mail service. The table records each field: customer email (enters retrieval and the prompt), order id (enters the API request body), the summary (written into the mail body and the ticketing system).
  • Judging the result: one edge does not match reality — telemetry shipped the query text, and the original diagram missed that segment. The deletion segment is also empty: no retention statement for results kept by the mail service.
  • What to do after a failure: Add the telemetry node and hash the query-text field before shipping; confirm the retention policy with the mail service administrator and write it back with source page and verification date; mark the gap as "unknown" on the diagram rather than leaving it blank — blank reads as "confirmed no risk".

One test for the map: every edge can be traced to a page or an observation you actually made. Edges you cannot trace get drawn dashed and labelled unknown.

Acceptance

  • [ ] One diagram covers all five segments, with none left blank
  • [ ] Every sensitive field has a destination, retention period and cited source
  • [ ] At least one real request was walked through the map, with differences recorded
  • [ ] Unconfirmed items are labelled "unknown" instead of left empty
  • [ ] Access timing and roles match the permission table
  • [ ] A review date sits on the diagram and someone owns the redraw

Troubleshooting branches

  • The map is coarser than reality: you drew services as nodes; draw one read or write of a field as the node.
  • Claims contradict configuration: trust the setting you can change, and record terms wording and switch state in separate columns.
  • Logs cannot be found: check audit switches and retention; attribute permission errors (401 / 403) separately from rate limits (429).
  • Lineage is missing in the metadata tool: the Purview documentation notes that lineage extraction can be disabled and that scan scope and frequency are plan-dependent — a tool's graph is not your hand-drawn map.
  • The vendor changes its story: redraw after terms pages update, and move the verification date with it.
  • One diagram tries to cover every scenario: split it, one chain per diagram.

Next steps

  1. Turn the unknown cells into written questions for the vendor.
  2. When estimating compliance effort, use the workload items from this table as the base (see the matching guide).
  3. Pre-release check: every outbound node on the map has a blocking or masking policy.
  4. Set a redraw cadence from your own change rate rather than a generic interval.

What was verified and what is not

On 2026-11-06 four official sources were fetched directly: the NIST Privacy Framework page, the Microsoft Purview Data Map documentation, the Anthropic privacy policy and the AWS compliance data-privacy FAQ. The fifth source is an in-repo entry that keeps its 2026-11-03 recheck record and was not refetched today.

Unknowns:

  • Which records and retention periods your jurisdiction requires — this guide makes no legal judgement; check current law and contract.
  • How terms pages differ across product tiers (consumer, enterprise, API) — only the fetched sentences are recorded here.
  • How much lineage coverage a metadata tool gives in your environment — it depends on scan settings and actual sources, and was not measured.

Sources

SourceURL
NIST Privacy Framework official page (direct fetch 200 on 2026-11-06)https://www.nist.gov/privacy-framework
Microsoft Purview Data Map official documentation (direct fetch 200 on 2026-11-06)https://learn.microsoft.com/en-us/purview/data-map
Anthropic official privacy policy (direct fetch 200 on 2026-11-06)https://www.anthropic.com/legal/privacy
AWS compliance and data-privacy FAQ official page (direct fetch 200 on 2026-11-06)https://aws.amazon.com/compliance/data-privacy-faq/
Google Cloud · Gemini Enterprise usage and audit logging documentation (existing in-repo source, rechecked 2026-11-03)https://docs.cloud.google.com/gemini/enterprise/docs/set-up-usage-audit-logs

Source snapshot: 2026-11-06; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.