Where did this number come from?
Service Analytics measures the percentage of completed deliveries that arrived on time. It excludes parcels still awaiting delivery. At 13:00, its Delivery performance report shows 100%. What produced that number?
Lineage and provenance
Lineage
Records where data comes from, how it is transformed, and which datasets or reports depend on it.
Provenance
Records the history of a particular dataset or result: who or what created or changed it, when, and using which sources and methods.
Lineage emphasises data flow; provenance emphasises creation and change history. Both can describe transformations and the people or systems involved, so the distinction is not simply “how” versus “who.” The terms overlap in practice; lineage tools can also capture provenance.
Follow the route
A scheduled job calculates the percentage from the delivery records and saves the result. The report reads that saved result whenever someone refreshes it. Refreshing the report does not rerun the calculation.
- SourceDelivery records
- CalculationScheduled job
- Stored outputSaved percentage
- ReportDelivery performance
This lineage shows the route to the report. To explain its particular 100%, we need the run, inputs and processing code that produced it. Looking only at the latest successful run could lead us to a result the report never read.
The following cards show selected records from an invented incident, checked with SQLite. Field names belong to this example; real tools may use different names. All times are UTC on 19 October 2026.
Which result did the report read?
Start with the refresh record. output_version identifies the saved result read by this refresh.
report_refreshesrefresh_idF1300report_nameDelivery performancerefreshed_at2026-10-19 13:00output_versionsummary-R1205
What this tells us The report refreshed at 13:00, but it read summary-R1205. The refresh time alone does not tell us when that result was produced.
Follow that output identifier to the published result. run_id identifies the execution that produced it.
outputsoutput_versionsummary-R1205run_idR1205published_at2026-10-19 12:05percentage100.0
What this tells us The displayed 100% came from run R1205, published 55 minutes before the refresh. Matching output_version connects these two records.
What it does not tell us A stored percentage does not establish whether its calculation was correct. For that, we need the inputs and code.
Which inputs and calculation produced 100%?
The run record identifies both. A snapshot is a retained copy of the input data at a particular time; input_snapshot_id tells us which copy this run read.
runsrun_idR1205job_namebuild_delivery_summarystatussuccessinput_snapshot_idS1205code_versioncompleted-v1
What this tells us Inspect saved input S1205 and retained code completed-v1. The current table and today’s code may differ from what this run used.
The retained calculation for completed-v1 excludes unfinished deliveries, then divides the number delivered on time by the number completed. All four parcels were promised by noon. These are the delivery rows it read, with timestamps shortened to show the time:
| Delivery | Promised by | Delivered at |
|---|---|---|
D101 |
12:00 | 11:50 |
D102 |
12:00 | NULL |
D103 |
12:00 | 11:40 |
D104 |
12:00 | NULL |
These rows are the input data; the run's reference to them is metadata. In this complete example, NULL means the parcel had not yet arrived. The calculation includes D101 and D103: 2 on time out of 2 completed = 100%.
The records now connect the report to a specific calculation and its inputs. That is provenance for the displayed number. We have established why the saved result was 100%; Chapter 4 examines whether it was still current when readers saw it.
Core points
- Lineage shows the route; provenance explains a result's history. The terms overlap, but a dependency path alone does not identify the run behind a displayed number.
- Follow the report to its saved output, then to the producing run. The matching identifiers connect the records.
- Check the run's inputs and code. Today's data and calculation may differ from those that produced the result.
Watch the chapter recap or read the transcript
The incident is invented and assumes complete records at the input capture time. Narration uses a synthetic voice.