CopilotForgeDraft

Catalogue › Data Governance › ai-data-lineage

AI data lineage

Traces how data travels from systems of record into AI outputs - copies, indexes, embeddings, prompts, tool calls and generated records - so the organisation can say where an answer came from, which solutions a source change affects, and where personal data has spread. Use when a tier 3 or 4 solution needs explainable provenance, when a source changes or is withdrawn, or when a rights request or incident needs the full path.

Department
Data Governance
Lifecycle
Deliver, Assure, Improve
Maturity
builder, scaler, ai-enterprise
Risk tiers
2, 3, 4
Platforms
purview, fabric, ai-foundry, copilot-studio, power-platform, azure
Editions
scale, enterprise
Reviewers
security-privacy
Status
draft
Copilot Cowork
Data Governance plugin for Copilot Cowork, or this skill on its own: Download SKILL.md
Licence
CC BY 4.0, by Simon Foote

Purpose

When someone asks where an AI answer came from, "the model" is not an answer. Data reaches AI outputs through a chain of copies and transformations: extracted from a system of record, loaded into a lakehouse, chunked into a search index, embedded, retrieved, placed in a prompt, combined with a tool result, and written back as a new record. This skill traces that chain for a solution, at the depth its risk tier needs, so the organisation can explain outputs, assess the impact of source changes, and find personal data wherever it has spread. It goes wrong when lineage stops at the system of record and ignores the AI-specific copies, which are exactly where stale and deleted data lingers.

When to use

When not to use

Questions to ask first

  1. Which outputs must be explainable, to whom, and at what level - source system, document, record or field?
  2. What copies and transformations sit between the system of record and the AI output?
  3. How often is each copy refreshed, and what happens to it when the source record is corrected or deleted?
  4. Which outputs are written back into systems, becoming sources for other solutions?
  5. What lineage can tooling capture automatically, and what must be documented by hand?

Required inputs

Where deletion behaviour of a copy is unknown, record it as a gap and test it; never assume a deleted source record disappears from an index or embedding store.

Decision framework

Risk tierMinimum lineage
2Source systems and the main copies or indexes, with refresh frequency
3Add transformations, deletion propagation, write-backs, and the ability to show which sources an output drew on
4Add record-level traceability for outputs that inform decisions about individuals, retained for as long as those decisions can be questioned
GapSeverityAction
Deleted or corrected source data persists in AI copiesHigh for personal dataDesign deletion propagation; test it
Outputs cannot be traced to sources at tier 3+HighCapture citations or retrieval traces; retain them per the retention rule
Write-backs not recordedMediumAdd to lineage; mark AI-generated records
Lineage held only in one engineer's headMediumDocument and, where possible, automate

Practitioner approach

Draw the path for one realistic output before reaching for tools. Take a typical question and answer, and walk backwards: which passages or records were retrieved, from which index, built from which copy, extracted from which system, on what schedule. Then walk forwards: where did the output go, was it written to a record, a document or a message, and does anything else read it? The drawing reveals copies nobody mentioned.

Pay particular attention to AI-specific copies. Search indexes, vector stores, caches, evaluation datasets, exported transcripts and agent memory all hold derived data. Each needs a refresh pattern and a deletion pattern. Ask the engineering team what happens when a source record is corrected: is the index rebuilt, updated incrementally, or left until the next full load? Then test it. Erasure requests and corrections that never reach embeddings are a common gap.

Decide the depth by tier. Most tier 2 solutions need only source systems and main copies documented. Tier 3 and 4 solutions that inform decisions need to show, for a given output, what it drew on; that usually means keeping retrieval traces or citations alongside the interaction record, under the retention rule from data-governance:ai-data-retention-rules. Agree with the business owner and DPO how long those traces must be kept to support challenges and appeals.

Record write-backs. Outputs saved into systems become data that other solutions and people trust. Mark them as AI-generated, record which solution created them, and include them in the lineage so a later reader knows their origin.

Automate where tooling allows. Data catalogue and lineage features in Microsoft Purview and Fabric can capture parts of the path, and tracing in Foundry solutions can record retrieval; coverage of AI-specific steps varies, so confirm current capability in the source records and document the remainder by hand. Keep the lineage with the solution's documentation and update it at every change to sources, indexes or write-backs.

Outputs

Microsoft platform considerations

Lineage capabilities in Microsoft Purview and Fabric, tracing in Foundry, and how Copilot and Copilot Studio record citations and retrieved content differ and change frequently. Confirm current behaviour in ms-copilot-privacy and ms-foundry-models and the platform's documentation before deciding what to automate.

Adoption considerations

Not applicable as a primary concern, because users do not see lineage directly. Where outputs show their sources, lineage makes those citations trustworthy.

Knowledge considerations

Documents feeding AI follow the same logic: an index of a library is a copy with its own refresh and deletion behaviour. Coordinate with knowledge owners so withdrawn documents leave the index too.

Security and privacy considerations

Every AI copy of personal data is in scope for rights requests and retention. Share lineage for tier 3 and 4 solutions with security-privacy:privacy-assessment, and restrict access to lineage records that reveal sensitive data locations.

Responsible AI considerations

People can only challenge an AI-influenced outcome if the organisation can say what it drew on. Lineage underpins responsible-ai:escalation-and-appeal for tier 3 and 4 uses.

Evaluation requirements

Test lineage, not just document it: correct and delete test records at source and confirm the changes reach every copy within the expected time, and trace a sample of outputs back to their sources.

Value measures

Track the share of tier 3+ solutions with tested lineage, time for corrections and deletions to propagate, and rights requests completed across all AI copies. The data governance lead owns these, baselined at first test.

Scale notes

Starter

Not usually needed; starter programmes should avoid tier 3 and 4 uses. Where tier 2 solutions copy data, record the copy and how it is refreshed.

Scale

Document lineage for tier 3 solutions at design, test deletion propagation before release, and keep diagrams with solution documentation.

Enterprise

Integrate AI lineage with enterprise lineage tooling, automate capture where possible, and audit deletion propagation across the portfolio.

Hand-offs

Reviewer gates

From risk tier 3, security-privacy checks that personal data copies and deletion propagation are recorded and tested; responsible-ai relies on lineage where outputs inform decisions about people.

Failure modes

Sources

references/sources.md in this skill lists the source records behind this skill, what each is authoritative for, how volatile it is and what you may do with it. Product availability, licensing, limits and preview status change often, so check the current source before stating them, and cite what you used.

Never

Source records for this skill

Data, privacy and security for Microsoft Copilot

Microsoft Foundry Models overview

ICO guidance on AI and data protection

NIST AI Risk Management Framework

ISO/IEC 42001 AI management system

Credit

This skill was created by Simon Foote as part of CopilotForge, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Credit the author when you share or adapt it.