Skip to main content

Data Lineage for AI and How an Agent Explains Why a Number Changed

Samuel Nagy
Samuel Nagy
VP of Strategic Growth

Data lineage for AI is lineage that an AI agent can read: the path of every number from source system to report, together with what the number means and who owns it. With that context an agent can answer the questions data teams field every week, such as why a metric changed or what a schema change would break. This guide shows how an agent traces a number step by step, what lineage it needs and how to keep that access governed.

TL;DR

Data lineage for AI gives an agent the path behind every number. An agent connected to the data catalog over MCP can trace lineage upstream from a report to its source tables, read the glossary definition and owner of each metric, and trace downstream to see what a change would break. That is how it answers "why did this number change?" with the objects it read and the person who can confirm. It needs column-level lineage across platforms, approved definitions and owners on every object, and access that runs with the user's own permissions.

What is data lineage for AI?

Data lineage for AI is lineage that AI agents and assistants can read and act on. Classic data lineage shows how data flows from a source system through transformations to a report, and people read it in a diagram. When an agent reads the same lineage, together with the business definition and owner of each object, it can do the tracing work that used to take an analyst an afternoon.

The term is also used for lineage of the data a model was trained on. That matters to whoever builds the model, and we cover it briefly at the end. For an enterprise team that runs agents on a bought model, the daily question is different: when the CFO asks why Net Revenue dropped, can the agent find the report, the model and the tables behind the number, tell what Net Revenue is supposed to mean and name the person who can confirm? Data provenance, the wider record of who created or changed data and why, sits around both uses.

Why AI agents need lineage and definitions together

Lineage tells an agent where a number comes from, and the glossary tells it what the number is supposed to mean. Either one alone leaves the agent guessing. A lineage path from a Power BI measure to a Snowflake table says nothing about whether returns should be subtracted. A definition that says "net of returns" says nothing about which model implements it.

An agent that reads both can compare what a metric should be with how it is built, and an agent that also reads the owner knows who decides when the two disagree. That is the difference between a semantic gap the agent papers over with a confident answer and one it points out. It is also why a business glossary linked to lineage is worth more to AI than either on its own.

How an agent traces why a number changed

A typical request: "Why does Net Revenue in the CFO report differ from last month?" The illustration below shows how an agent connected to Dawiso over MCP works through it. It searches the catalog, traces lineage upstream from the report and reads definitions, owners and modified dates along the way.

Finance assistant Connected to Dawiso over MCP Live

Why does Net Revenue in the CFO report differ from last month?

Tracing lineage

  1. Search catalog Net Revenue glossary term, Approved, owner Finance Controlling
  2. Trace lineage upstream CFO Monthly Report from fct_net_revenue (dbt) from ORDERS and RETURNS_ADJ (Snowflake)
  3. Read attributes fct_net_revenue modified on Nov 28, owner Revenue Analytics

Answer

Likely cause: since Nov 28, fct_net_revenue also reads RETURNS_ADJ, so returns are now subtracted, as the approved definition of Net Revenue says. Please confirm with Finance Controlling.

Lineage Agent tracing upstream
Table ORDERS Snowflake / SALES amount
Table RETURNS_ADJ Snowflake / SALES return_amount
dbt model fct_net_revenue Revenue Analytics Modified Nov 28 net_revenue
Report CFO Monthly Report Power BI / Finance Net Revenue
Glossary term Approved

Net Revenue

Gross sales minus returns and discounts, in EUR, by invoice date.

Owner Finance Controlling

Illustration with example names: an AI agent connected to the catalog over MCP traces lineage upstream from a report and reads the glossary definition and owners before it answers.

Each step uses something the catalog already holds. Broken down, the trace looks like this.

1

Resolve the metric in the business glossary

The agent searches the catalog for "Net Revenue" and finds the glossary term. It reads the definition, the workflow state and the owner, so it knows what the metric should contain and that the definition is approved rather than a draft.

Agent reads

Definition, workflow state and owner of the term.

2

Find the report and the field behind the number

From the term, the agent moves to the CFO report that uses it and to the measure or column that holds the number. A metric is built from specific columns, so this is where column-level lineage starts to matter.

Agent reads

The report object, its fields and the links between fields and glossary terms.

3

Walk the lineage upstream

The agent traces lineage upstream from the report field: to the dbt model that calculates it, and on to the Snowflake tables the model reads. Every hop is a cataloged object with its own description and owner.

Agent reads

The upstream path at column level, across BI, transformation and warehouse.

4

Look for what changed along the path

The agent reads attributes on each object in the path, such as when it was last modified and who owns it. A model modified a few days before the number moved, with a returns table among its sources, is a strong lead. It compares what the model reads with what the approved definition says.

Agent reads

Modified dates, owners and upstream sources of every object in the path.

5

Answer with the objects it read and the owner

The answer names the likely cause, lists the objects the agent read and points to the owner who can confirm. The agent changes nothing. Whether the new behavior is a fix or a mistake is a decision for Finance Controlling, and the lineage tells everyone which report, model and table that decision concerns.

Agent returns

Likely cause, the objects behind it and the person who decides.

The same trace works for questions that never mention a change: where a KPI comes from, which source system feeds a dashboard, or whether two reports that show "revenue" use the same definition.

Dawiso interactive data lineage with the Transaction_Instance table selected: the detail panel shows its approval state, data owner, data steward, security and GDPR classification, and created and modified dates
Click to enlarge

In Dawiso the same context sits in one place for people too. Select any object in the lineage diagram and its approval state, owner, steward, classification and modified date open next to it, the same attributes the agent reads over MCP.

Impact analysis before a change

The same lineage, traced downstream, tells an agent what a change would break. Before a data engineer renames a column, drops a table or changes a dbt model, an agent can trace lineage downstream from that object and list every model, report and data product that depends on it, with their owners. Impact analysis turns from an investigation into a lookup, and the owners on the list are the people to tell before the change ships.

Smart expand in Dawiso lineage for the Customer_History table, with a choice of incoming flow, outgoing flow or both directions and the depth of the expansion
Click to enlarge

People do the same in the diagram: expand an object's lineage upstream, downstream or both, to the depth they need, and the path runs from warehouse tables into the reports that depend on them.

Dawiso lineage from the storage layer and sales data mart of a data warehouse into the Sales Reporting workspace, where a Customer 360 dataset feeds the Customer 360 Analytics reports and other sales reports
Click to enlarge

AI agents are now among those downstream consumers. Dawiso scans Snowflake Cortex agents and the semantic views they read into the same interactive lineage, so a downstream trace from a table can end at an agent as well as at a report. When a source changes, you see which agents will start answering from different data.

What lineage an AI agent needs

An agent can only trace as far as the lineage goes, so the depth of lineage decides which questions it can answer. The table shows what each level adds.

Lineage contextWhat an agent can answerWhat it means for you
System levelWhich platforms feed a report or a data productEnough for "where does this come from" in broad terms, not for a number.
Table levelWhich tables and models a report reads, and what reads a given tableThe minimum for impact analysis before a schema change.
Column levelWhich columns make up a metric and where each one comes fromNeeded for any question about why a number changed.
Across platformsThe path from a BI measure through transformations to the source systemWithout it the trace stops at the first platform boundary.
Glossary linksWhat a metric is supposed to mean and whether that definition is approvedLets the agent compare how a number is built with how it is defined.
Owners and stewardsWho to ask, and who decides when build and definition disagreeTurns an agent's finding into a task with a name on it.

Owners and classifications can also be shown directly on the objects in the diagram, so a person can follow the same path an agent took and see who is responsible at each hop. Our data lineage diagram examples show how to document the hops that no connector captures.

Dawiso lineage diagram with the GDPR classification attribute shown on every table and column of the storage layer, and the attribute picker offering GDPR classification, security classification, owner and steward
Click to enlarge

Keeping agent access to lineage governed

Lineage reveals a lot about where sensitive data flows, so an agent should see only the lineage its user may see. Serve it through one governed door, such as an MCP server on the catalog, where calls run with the user's identity and permissions and the tools on offer depend on the user's role. Then an agent working for a finance analyst traces finance lineage, and nothing in HR it was never meant to read.

The answer itself still needs a record. Log the question, the user, the model version and the objects the agent read, in the agent runtime or in an AI gateway in front of it, and decide how long those logs are kept. For agents that also call tools that change data, our guide to giving AI agents access to data covers permissions and approvals. AI observability builds on the same logs.

EU AI Act and data lineage

The EU AI Act never uses the word lineage, but three articles ask for what lineage and logs record. Which of them apply depends on your role and on how your system is classified, so treat the table as orientation and check your own obligations with counsel. The dates for high-risk systems follow the AI Omnibus, Regulation (EU) 2026/1744.

ArticleWhat it asksApplies toFrom
Art. 10(2)(b)(c)Data governance practices covering data collection, the origin of data, the original purpose of personal data and preparation steps such as annotation, labeling, cleaning and enrichmentTraining, validation and testing data of high-risk AI systems2 December 2027 (Annex III), 2 August 2028 (Annex I)
Art. 12Automatic recording of events (logs) over the system's lifetime, enabling traceabilityHigh-risk AI systems2 December 2027 (Annex III), 2 August 2028 (Annex I)
Art. 53(1)(a)(d)Technical documentation including the training and testing process, and a public summary of the content used for trainingProviders of general-purpose AI modelsSince 2 August 2025

For an enterprise team running agents on a bought model, Article 12 is the one that touches daily work: an answer log that names the objects an agent read only explains something if those objects have lineage, definitions and owners behind them.

When platform lineage is enough

If the agent and every table it reads live on one platform, that platform's own lineage may be all you need. Unity Catalog, for example, captures table and column lineage for queries run on Databricks. The picture changes when an answer depends on more than one platform.

One platform

Start with built-in lineage

The agent reads tables in a single platform, the business terms it needs are few and stable, and one team runs both. Platform lineage plus an answer log covers the trace.

Several platforms

Add a cross-platform catalog

Answers draw on several platforms and BI reports, or rely on business definitions with owners. Then the trace crosses platform boundaries, and lineage, definitions and owners need one place an agent can query.

Where Dawiso fits and where it stops

Dawiso holds the lineage, definitions and owners an agent needs, and serves them over MCP. Its interactive lineage shows data flows at system, table and column level across connected sources, on the same page as each object's description, owners and glossary links. Lineage comes from four sources: lineage that supported connectors read from platforms such as Databricks, Snowflake and Power BI, transformation frameworks such as dbt, parsing of SQL scripts, which is set up together with the Dawiso team, and relations users add by hand. The business glossary holds approved definitions with owners and approval workflows.

Through the Dawiso MCP server, MCP-compatible agents can search catalog objects, read attributes such as a term's definition and workflow state, and trace lineage upstream or downstream from an object. Calls run with the user's identity and permissions, and an agent sees only the tools the user's role allows. Agents built in Dawiso Agent Studio keep a history of every run.

Where Dawiso stops matters as much. It does not track model training data or model weights. Lineage of training data, meaning the origin of each data set and the preparation steps behind a model, stays with the model provider or your ML platform. Dawiso does not inspect prompts and responses of external agents at runtime, so the answer log lives in your agent runtime or gateway, and it does not check or score data quality. Its part is making sure every number an agent explains has a path to its source, a definition and an owner.

FAQ

What is data lineage for AI?
Data lineage for AI is lineage that AI agents and assistants can read and act on. It records how data flows from source systems through transformations to reports and metrics, together with the business definition and owner of each object, so that an agent can trace a number to its source, explain what it means and see what a change would affect.
How can an AI agent use data lineage?
An agent connected to a data catalog, for example over the Model Context Protocol (MCP), can trace lineage upstream from a report or metric to the tables and source systems behind it, and downstream from a table to the reports and agents that depend on it. Combined with glossary definitions and owners, that lets it answer questions such as where a number comes from, why it changed and who to ask.
Can an AI agent explain why a number in a report changed?
It can narrow it down. The agent resolves the metric in the business glossary, traces column-level lineage upstream from the report, reads attributes such as modified dates and owners on each object and returns the likely cause with the objects it read. A person, usually the owner of the definition or the model, still confirms whether the change was intended.
Does the EU AI Act require data lineage?
The AI Act does not use the word lineage, but several articles ask for what lineage records. Article 10(2) asks providers of high-risk systems for data governance practices covering the origin of training data and its preparation steps, Article 12 asks that high-risk systems allow automatic logging for traceability, and Article 53 asks providers of general-purpose AI models for technical documentation and a public summary of training content. After the AI Omnibus, Annex III high-risk obligations apply from 2 December 2027.
Does Dawiso track the training data of AI models?
No. Dawiso does not track model training data or model weights; that stays with the model provider or your ML platform. Dawiso covers lineage at system, table and column level across connected sources, a business glossary with owners and approval workflows, and an MCP server through which MCP-compatible agents read that context and trace lineage.
Is Unity Catalog lineage enough for AI agents on Databricks?
Often, if the agent and the tables it reads all live in Databricks, because Unity Catalog captures table and column lineage for queries run there. A cross-platform catalog becomes worth it when answers depend on other platforms or BI reports, or on business definitions with owners.

Sources

See it in action

Give your AI agents the lineage behind every number

See how Dawiso shows lineage at system, table and column level across your connected sources and serves it, with definitions and owners, to AI agents over MCP.

A cookie a day keeps bad UX away.

We use cookies to personalize content, ads and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. By clicking "Accept All", you allow us to use cookies for analytics and ads via Google Tag Manager. You can also customize cookies.

Customize Consent Preferences

We use cookies to personalize content, ads and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners. Privacy Policy

Necessary cookies allow core website functionality such as user login and account management. The website cannot be used properly without strictly necessary cookies.

Functionality cookies are used to remember visitor information on the website, eg. language, timezone, enhanced content.

Analytics cookies are used to see how visitors use the website, eg. analytics cookies. Those cookies cannot be used to directly identify a certain visitor.

We use Microsoft Clarity to see how you use our website (including heatmaps and session replays) so we can improve it. By using our site, you agree that we and Microsoft can collect and use this data. See our Privacy Policy for details.

Advertisement cookies are used to identify visitors between different websites, eg. content partners, banner networks. Those cookies may be used by companies to build a profile of visitor interests or show relevant ads on other websites.