Data provenance

On this page 8

Data provenance is the documented history of a data item: its origin, the processes and transformations applied to it, and the agents (people, systems or organizations) responsible for each step. In data governance, provenance answers the question of why a particular value can be trusted, because it shows exactly how that value came to exist.

Provenance is closely related to data lineage, and the two words are often used interchangeably, yet practitioners usually draw a distinction. Lineage describes the flow of data between systems, while provenance describes the evidence behind each record, including timestamps, versions, responsible parties and the inputs used to derive it. Both are core capabilities in mature programs for trustworthy analytics, regulatory audit and AI model accountability.

How data provenance is captured and recorded

Provenance is captured by recording metadata at every point where data is created, moved or changed. A capture point can be an ingestion job, a SQL transformation, a manual correction in a spreadsheet or a machine learning pipeline that produces derived features.

The most widely used conceptual model is the W3C PROV data model, which describes provenance with three core types: an entity (a dataset, file or record), an activity (a process that uses or generates entities) and an agent (who or what carried out the activity). Relations such as wasGeneratedBy, used and wasAttributedTo link these elements into a directed acyclic graph that can be queried later.

In practice, organizations combine several capture methods because no single technique sees every change. The table below compares the main approaches.

Capture methodHow it worksTypical strengthTypical gap
Query and code parsingAnalyzes SQL or transformation code to infer inputs and outputsBroad coverage at low costMisses dynamic or runtime logic
Runtime instrumentationPipelines emit events while jobs runAccurate run-level detailRequires changes to each tool
Log harvestingReads database and platform audit logsCaptures access and changesLogs are noisy and short-lived
Manual annotationStewards record sources and decisionsCaptures business contextIncomplete and quickly outdated
Content hashing and signingStores cryptographic digests of data versionsProves integrity of a versionSays little about meaning
Common methods for capturing provenance metadata

Levels of granularity in provenance

Provenance can be recorded at very different levels of detail, and granularity is the main cost driver. Coarse provenance is cheap to store and easy to read, while fine-grained provenance can explain a single number but may produce more metadata than data.

Research literature distinguishes workflow provenance, which records which processes ran, from data provenance in the strict sense, which records which input tuples contributed to a specific output tuple. Database theory formalizes the latter with concepts such as why-provenance, where-provenance and how-provenance.

LevelWhat is recordedTypical useStorage overhead
Dataset levelSource system, load time, owning teamCatalog entries and ownershipVery low
Table or file levelUpstream tables and the job that built themImpact analysis and debuggingLow
Column levelWhich source columns feed each target columnRegulatory reporting and privacyModerate
Row or value levelExact input records behind each output valueScientific results, audits, disputesHigh to very high
Provenance granularity levels and their typical uses

Most enterprise programs settle on column-level provenance for critical data elements and table-level provenance elsewhere. Value-level capture is usually reserved for high-stakes outputs such as regulatory capital figures, clinical trial results or financial statements.

Data provenance overlaps with several neighboring disciplines, and confusing them leads to gaps in coverage. The comparison below clarifies what each concept contributes.

ConceptMain question answeredRelationship to provenance
Data lineageHow does data flow between systems?Structural view that provenance enriches with evidence
Data catalogWhat data exists and what does it mean?Common place to display provenance to users
Audit trailWho accessed or changed what, and when?One input to provenance, focused on events
Data observabilityIs the data healthy right now?Uses provenance to trace the root cause of incidents
Data ownershipWho is accountable for this data?Supplies the agent dimension of provenance
How provenance differs from neighboring concepts

A useful rule is that lineage shows the map, while provenance shows the receipts. An analyst who sees that a revenue figure comes from a billing table has lineage; an auditor who can see the exact job version, input snapshot and approving data steward has provenance.

Why organizations invest in data provenance

Organizations invest in provenance because it turns trust from an assumption into verifiable evidence. The benefits fall into four broad groups.

  • Regulatory compliance: banking rules such as BCBS 239 expect firms to trace risk figures back to source, and the GDPR requires controllers to know where personal data was obtained.
  • AI and model accountability: the EU AI Act requires documentation of training data sources for high-risk systems, and provenance is the practical basis for that documentation.
  • Faster incident resolution: when a dashboard shows a wrong value, provenance lets engineers locate the faulty step instead of searching manually across pipelines.
  • Reproducibility: scientists and analysts can rerun an analysis with identical inputs when versions and parameters are recorded.

Provenance also supports content authenticity outside classic data management. The C2PA specification, for example, attaches signed provenance manifests to images and videos so that viewers can check how a media file was created and edited.

Implementing provenance in a data platform

Implementation succeeds when provenance is captured automatically by the platform rather than written by hand. Open standards such as OpenLineage define a common event format, so orchestration tools, query engines and catalogs can exchange run-level metadata without custom integration.

The table below summarizes typical decisions a governance team faces and the choice that usually works best.

SituationRecommended choiceReason
Many heterogeneous pipeline toolsAdopt a shared event standardAvoids one connector per tool
Limited budgetStart with critical data elementsDelivers value where risk is highest
Strict audit requirementsStore immutable, versioned recordsRecords must resist later edits
Manual spreadsheet stepsRequire steward annotation at handoffAutomation cannot see offline work
Personal data in pipelinesLink provenance to classification tagsSupports privacy requests and deletion
Decision guide for a provenance program

Provenance records must themselves be governed. They need a retention period aligned with legal obligations, access controls, and a clear owner, because provenance metadata can reveal sensitive business logic or personal data.

Limitations and common mistakes

The most frequent failure is treating provenance as a one-time documentation project. Static diagrams drawn in a workshop become wrong within weeks, because pipelines change constantly.

  • Blind spots: exports to spreadsheets, email attachments and vendor files break the provenance chain unless they are explicitly recorded.
  • Metadata overload: capturing value-level provenance everywhere creates graphs that nobody can read and that cost more to store than the data.
  • False confidence: provenance proves where data came from, not that the source was correct; a fully traced value can still be wrong.
  • Inconsistent identifiers: when systems name the same dataset differently, provenance graphs fragment and impact analysis becomes unreliable.

In plain words

Data provenance is the life story of a piece of data. It tells you where the data was born, which steps changed it along the way, and who was responsible at each step.

Think of the paperwork that comes with a valuable painting. A buyer trusts the painting more when there is a clear record of every owner and every restoration. Data works the same way: a number with a documented history is a number you can trust and check. Without that history, people can only hope the figure is right.

A real-world example

A mid-sized European bank must submit quarterly liquidity figures to its supervisor. During an inspection, the supervisor questions a jump of about 4% in one reported ratio and asks the bank to show exactly how the figure was produced.

Because the bank records column-level provenance for its critical data elements, the data governance team opens the provenance graph for the ratio. Within an hour, they show that the value came from a treasury system snapshot taken at month end, passed through three transformation jobs, and was adjusted once by a named data steward who corrected a currency conversion error. Each job version, input snapshot and approval is timestamped.

The supervisor accepts the explanation, and the bank avoids a formal finding. Before the provenance program existed, a similar question had taken the bank two weeks of manual reconstruction across spreadsheets and email threads.