Skip to content

Verification of data quality and traceability ​

Deliverable D2.4: Verification document on data quality and traceability

Draft

Draft with data as of 6 October 2026: the status of the datasets is that of the ETL dashboard synchronised at 15:18 (Italian time) on that day, and the number of Silver and Gold tables is the one exposed by the Datastore on the same day. The figures will be recalculated at the close of the quality assessment campaign of the project's data stewards, expected at the end of October 2026, together with the outcomes of the checks listed in the section What remains to be verified before the deadline.

Purpose and scope ​

The document verifies the status of the populated Data Lake: how many datasets have reached the Silver and Gold layers and the Datastore, how many have passed the data stewards' quality assessment, what the traceability chain guarantees for each value — from the file downloaded from the source to the Gold table — and which problems remain open. It is the deliverable of task 2.5 of the September 2026 Gantt chart, «Data Lake population and checks of correctness, consistency and traceability» (task 2.4 in the January 2026 work plan), due on 31 October 2026.

Difference from D2.3.1. The chapter ETL Pipeline Validation Report (deliverable D2.3.1) verified the method and tools of validation on the raw layer: the acceptance criteria, the data quality flow run after each transformation (the «Flow 3» of each pipeline), the Qualità tag in OpenMetadata, the territorial reconciliation methodology and the role of the data stewards. This document does not repeat that method: it measures its outcome on production data, dataset by dataset, and verifies how far the traceability described in D2.3.1 (section «Governance and traceability in OpenMetadata») actually holds when one starts from a value in a Gold table and traces it back to the source.

Terms used in the document.

  • Dataset: the unit of work tracked by the ETL dashboard, that is, a set of data from one source (for example «Railway stations» from RFI) with its five phases: ingestion, transformation, data quality, metadata, publication in the Datastore.
  • Bronze, Silver, Gold layers: the three levels of the Data Lake described in D2.1. Bronze contains the files as downloaded from the source; Silver the data normalised and linked to the territories; Gold the «wide» tables (one row per territory, one column per variable) ready for analysis.
  • Datastore: the project's web application that makes the Silver layer consultable through a catalogue of datasets and generates Gold tables on request.
  • Quality assessment: the content check carried out by the project's data stewards on the individual dataset, described in D2.3.1 (section «Content validation by the data stewards»): comparison of the values in the Gold tables with the original Bronze file, verification of the metadata, reporting of problems to the development team.

Verification method ​

The three criteria ​

CriterionWhat is requiredExample of a violation
Correctnessthe value in the final table is the one published by the source, or derives from it through the declared rulea count of healthcare facilities lower than the one on the source's portal
Consistencythe same data item is represented uniformly across years, territories and datasets, and the metadata describe what the data containa single-year Gold table that sums the values of different years
Traceabilityfor each value it is possible to trace back to the source file it comes from, to when it was downloaded and to which processing produced ita Silver attribute without the address of the source page from which it was downloaded

How each criterion is ascertained ​

The checks are of four types, with different degrees of assurance. It is important to distinguish them, because a dataset can pass the automated checks and still contain wrong values.

1. Automated checks of the data quality flow (Flow 3 of each pipeline). Described in D2.3.1. For most pipelines, Flow 3 checks that the Bronze file exists and is readable, and counts the rows written to Silver, comparing them with a minimum threshold (for example, for railway stations, at least 500 stations in the services table). The outcome is written as a QualitĂ  tag in OpenMetadata. These checks ascertain that a phase has produced a result of plausible size; they do not compare the values with the source.

2. ETL verification engine. A script in the pipelines repository (scripts/etl_verify/) which, for a dataset, queries the production state and returns for each of the five phases a «verified» or «missing» verdict with the related evidence. The operations it performs are, phase by phase:

PhaseOperation performed by the engine
Ingestionlooks for at least one file of the dataset in the index of Bronze files (datastore.bronze_fs_cache)
Transformationcounts the rows of the dataset's Silver table (or, for datasets in entity-attribute-value form, the attributes registered in datastore.variable_definitions or the records in silver.services); verified if the count is greater than zero
Data qualityreads the tags of the Bronze table in OpenMetadata and looks for the value QualitĂ .silver-validato
Metadatachecks the presence of the link to the Bronze table in OpenMetadata (column om_bronze_fqn of datastore.variable_definitions)
Datastorelooks for the dataset in the Datastore catalogue and, for multidimensional datasets, compares the list of dimensions in the catalogue with that of the configured labels

The engine ascertains presence and structural consistency between the layers; like Flow 3, it does not compare values with the source. For each dataset it also reports the address of the source (source_url) and the link to OpenMetadata, and is therefore the tool with which one checks, dataset by dataset, that the links of the traceability chain exist.

3. Status of the datasets in the ETL dashboard. The ETL dashboard (etl-dashboard.maps.gransassotech.org) reports for each dataset the status of the five phases and the status of the quality assessment. The statuses are read from the tasks in the ClickUp project management tool: the phases from the «ETL Pipeline» list, the quality assessment from the «Datastore» list. The dashboard therefore records what has been declared complete, not the result of a check on the data: the correspondence between the declared status and the actual status is what the verification engine ascertains.

4. Quality assessment by the data stewards. It is the only check that compares the values with the source: the data stewards generate the Gold tables from the Datastore and compare their values with the Bronze file or with the source's portal, check years, titles, descriptions and tags, and report the problems to the development team. The outcome per dataset has three values, communicated to the Datastore users on 25 September 2026:

  • Validated (green tick): the dataset has completed the quality assessment and has no known problems;
  • QA (yellow tick): problems emerged during the checks and are being fixed by the development team — for example errors in the generation of the Gold table, inconsistencies in the years, descriptions or tags missing from the catalogue — and its use for analysis is discouraged;
  • no tick: the dataset has not yet been taken up by the quality assessment.

Since 5 September 2026 (pull request #345 of the pipelines repository, «verification status badge in the Datastore catalogue») this outcome is written in the verified_status column of datastore.variable_definitions, with values verified and qa (empty if not taken up), by a flow that reads the ClickUp «Datastore» list; the Datastore shows it on the dataset page and uses it in the «Stato dataset» (dataset status) filter. The flow has no automatic schedule: it is started manually.

Traceability. It is ascertained in two ways: for all datasets, with the verification engine, which checks the presence of the links between the layers; for an example dataset, by retracing the chain backwards from a Gold value to the source file (section Traceability of a value).

Population status as of 6 October 2026 ​

Source of the figures ​

  • Status of the datasets: data file of the ETL dashboard (etl_pipeline.json), synchronised from ClickUp on 6 October 2026 at 13:18 UTC. The comparison is with the copy of the same file kept in the pipelines repository, synchronised on 14 July 2026.
  • Silver and Gold tables: list of the tables published by the Datastore's consultation interface on 6 October 2026. The tables were counted, not opened.
  • Pipeline code: pipelines repository at version v0.50.3 (last commit on 1 October 2026).

Progress by phase ​

The datasets tracked by the dashboard are 222, grouped into 26 sources. For each phase, the number of datasets with the phase declared complete:

Phase14 July 2026 (228 datasets)6 October 2026 (222 datasets)
Ingestion into Bronze206219
Transformation into Silver128214
Data quality (Flow 3)45210
Metadata in OpenMetadata171212
Publication in the Datastore133208
Quality assessment: validated22129
Quality assessment: in QA (open problems)—68
Quality assessment: not yet taken up20625

The number of tracked datasets falls from 228 to 222 between July and October; which six datasets left the list, and why, is to be verified.

In July the dashboard did not yet distinguish the «QA» status: the 206 «not validated» datasets of July therefore also include those that are in QA today.

Progress by source ​

SourceDatasetsData quality completeIn the DatastoreValidatedIn QANot taken up
ISTAT (various collections)4848473486
ISTAT Esploradati — Population census4848484044
Ministry of Education35353216190
ISTAT Esploradati3333332490
ISTAT Esploradati — Agriculture census888710
ISPRA753133
ISTAT ASTER and Atlas of municipalities10710262
AGENAS444040
ISTAT Demo302003
MiC — Vincoli in Rete222200
RFI111100
Other 14 groups (1 to 5 datasets each)2319182147
Total2222102081296825

The row «Other 14 groups» includes 13 sources — ACI, AGCOM, Banda Ultralarga, CEI, Dati.gov.it, ICCU, ISTAT SITUAS, MEF, Ministry of Labour, Ministry of the Interior, Ministry of Health, MUR, SISTAN — and a group of 5 datasets whose source is not indicated in the ClickUp task.

Two observations. First: the ISTAT datasets published through Esploradati, 89 out of 222, have the highest validation rate (71 validated, 80%), because they share the same pipelines and a single check applies to all of them. Second: the sources with dedicated pipelines and data on facilities and services (AGENAS, Ministry of Education, the minor sources) have the highest share of datasets in QA, that is, with problems found and being fixed: this is where the value errors described in the section Outcomes and critical issues were concentrated.

Tables in the Silver and Gold layers ​

LayerTables countedComposition
Silver126109 fact tables, one per multidimensional dataset (prefix fct_); 17 shared tables: territories with names, identifiers, containments, geometries and relations, attributes in entity-attribute-value form (territory_attributes), services and their attributes and categories, transformation logs
Gold357tables generated on request by the Datastore users, including the view of population weights used for territorial reconciliation (population_weights)

The number of Gold tables does not measure population: a Gold table is the result of a selection made in the Datastore (a set of variables, a territorial level, a range of years), and the same dataset can appear in many Gold tables. Among the 357 there are 35 whose name contains test, prova or demo, and several pairs with similar content (for example two tables on railway stations for 2026). The figure that is useful for population is that of Silver and of the Datastore catalogue (208 published datasets).

The number of files in the Bronze layer is not exposed by the Datastore interface and will be reported in the end-of-October update.

Traceability of a value ​

Example: the number of railway stations per municipality ​

The starting point is the column rfi_stazioni_totale of the Gold table stazioni_treni_comune_2026 (one row per municipality, with the total number of railway stations and the number of accessible and non-accessible stations), traced back to the source. The dataset was chosen because it has been validated by the quality assessment and because the quality assessment found an error in it and had it corrected, so it shows the chain also in the case where it is needed.

StepWhereWhat links it to the next step
1. Gold tablegold.stazioni_treni_comune_2026Contains only the territory identifier and the values: no provenance column. The selection that produced it (variables, territorial level, years) is recorded in datastore.gold_tables, column column_selection, with the creation date; the generation request and the run that processed it are in datastore.gold_requests
2. Variable definitiondatastore.variable_definitions, row of the attribute rfi_stazioni_totaleFound by looking up the attribute name. The row reports the source in Silver (rfi_stazioni), the source page (source_url = https://www.rfi.it/it/stazioni.html), the link to the Bronze table in OpenMetadata (om_bronze_fqn), the folder of the Bronze files (bronze_path), the aggregation rule for territorial reconciliation and the quality assessment status (verified_status)
3. Aggregated value in Silversilver.territory_attributes, attribute rfi_stazioni_totale, source rfi_stazioniOne value per municipality and per validity date, calculated by counting the stations of step 4 that fall within the municipality
4. Elementary records in Silversilver.services, type stazione_rfi, source rfi_stazioniOne row per station, with the municipality to which it has been assigned. This is the level at which the individual station can be verified
5. Bronze filesfolder rfi/<year>/Three files written by the ingestion: the copy of the RFI web page as downloaded (kept as proof of provenance), the list of stations extracted from the page (JSON) and the list of municipalities; plus a fourth file with the counts per municipality, produced by an intermediate step that reads the JSON
6. Ingestion logbronze.ingestion_logOne row for each of the files of step 5, with source address, file location, size, SHA-256 fingerprint of the content, date and time of the download and outcome
7. Lineage and quality in OpenMetadataBronze table maps-datalake-filesystem.rfi.default.elenco_stazioni_ferroviarieThe metadata flow registers the ingestion and pre-processing pipelines and the lineage edges «ingestion → Bronze file» and «station list → counts per municipality». Flow 3 writes the Qualità tag on the same table

What the quality assessment found on this dataset. By comparing the national sum of rfi_stazioni_totale in a Gold table (about 2,060 stations) with the list published by RFI (about 2,114), the data stewards detected an undercount of about 54 stations. The cause, recorded as BUG-040 in the defect log of the pipelines repository (docs/bug_memory.md, 8 September 2026), was about 30 stations without a province code in the source and about 24 with a wrong code or a differently spelt municipality name («S. Benigno» instead of «San Benigno», «Jonica» instead of «Ionica»), which the pipeline discarded. The fix assigns the station to the municipality also by looking up the name alone, when it is unique, and normalises abbreviations. Flow 3 could not have noticed it: it checks that the stations in Silver are at least 500, and 2,060 is above the threshold.

What the chain guarantees ​

  • From Silver to Bronze, for the individual dataset: the row of variable_definitions links each attribute to the source page, to the Bronze table in OpenMetadata and to the folder of the Bronze files; the ingestion log keeps, for each file, the SHA-256 fingerprint and the time of the download. It is therefore possible to establish which publication of the source a data item comes from and whether the file has changed between two ingestions.
  • The quality status is visible where the data are used: since 5 September 2026 the outcome of the quality assessment is in the same row of variable_definitions and on the dataset page in the Datastore.
  • The pipelines record the lineage: all 58 metadata flow files in the repository contain the registration of lineage in OpenMetadata. This is a check on the text of the code: whether the edges exist in OpenMetadata for every dataset is to be verified.

Where the chain breaks ​

  1. The Gold table does not carry its provenance with it. To trace back from the value to the source one has to read the selection in datastore.gold_tables and then look up each attribute name in variable_definitions. It is a link by name, not an explicit reference, and the Gold layer does not appear in the OpenMetadata lineage, which stops at Silver. Why it matters: whoever receives a downloaded Gold table does not have the source of the values in hand. What is needed: attaching to the Gold export, for each column, the source, source_url and the quality assessment status, reading them from variable_definitions at generation time.
  2. Gold tables are snapshots. A Gold table is created with the Silver values at the time of the request and is not updated when Silver is corrected. The tables generated before the September fixes (including BUG-038 and BUG-040, section Outcomes and critical issues) contain the wrong values. Why it matters: a user can reuse an old Gold table without knowing that the data have been corrected. What is needed: comparing the creation date recorded in datastore.gold_tables with the date of the fixes and regenerating or flagging the affected tables; the defect log already indicates a diagnostic script for the BUG-038 case (scripts/audit_gold_eav_year_bug.py).
  3. For the ISTAT Esploradati and ASTER datasets the file fingerprint does not appear to reach the ingestion log. The download functions of these two families calculate the SHA-256 fingerprint but, in the version of the code examined, do not call the function that writes the row in bronze.ingestion_log; the fingerprint remains in the log of the Prefect run. The pipeline status document of 12 June 2026 (docs/pipeline-status.md) already reported the problem as fixed in the code, but the fix is not found in the current download functions. It concerns up to 99 of the 222 datasets. Why it matters: for these datasets it is not possible to demonstrate, from the database alone, which version of the source file was processed. What is needed: counting the rows of bronze.ingestion_log for these sources in production to confirm or rule out the gap, and if necessary adding the writing of the log in the two download functions.
  4. The Bronze file for a year is overwritten at each new ingestion. The location of the file is determined by source, year and dataset name; a new ingestion for the same year replaces the previous file. The ingestion log keeps the fingerprints of all versions, but the content of the previous versions does not remain in Bronze. Why it matters: a Silver value calculated before a re-ingestion can no longer be compared with the file from which it was produced. What is needed: deciding whether to keep the previous versions of the files (for example with the fingerprint in the name), at least for the sources that publish revisions of their data.
  5. Not all attributes have the source address. The backfill of source_url for the datasets in entity-attribute-value form that lacked it is among the open requests of the pipelines repository; it has been done for ISPRA (1 September 2026) and for ISTAT experimental statistics (June 2026), and remains to be confirmed for SITUAS. The number of attributes with an empty source_url in production is to be verified.

Outcomes and critical issues ​

Value errors found and corrected ​

The quality assessment and the related development work found errors that the automated checks could not detect, because the number of rows was correct and the values were not. They are recorded in the defect log of the pipelines repository (docs/bug_memory.md):

DefectDatasetWhat was wrongHow it emerged
BUG-029 (22 July 2026)5 AGENAS datasets on territorial facilitiesdistinct facilities with the same name in the same municipality were merged into one: totals below the source's portal (mental health: 4,296 against about 4,514) and Sardinia at zerocomparison of the totals with the AGENAS portal
BUG-039 (25 August 2026)11 of the 16 Ministry of Education datasets on pupils and pre-primary schoolthe pipeline read non-existent columns in the source files and wrote 0 for every municipality and every year, without errorsto be verified; the defect was confirmed by summing the values of the dataset, which turned out to be zero for all years
BUG-038 (5 September 2026)every municipal attribute with more than one year of history and a sum or mean aggregation rulethe generation of a single-year Gold table aggregated the values of all the years presentdiverging values after loading the time series of a Ministry of Education dataset
BUG-040 (8 September 2026)RFI railway stationsabout 54 stations discarded because of a missing or wrong province codecomparison of the national total with the RFI list

The lesson for the method is that the thresholds on the number of rows in Flow 3 are not enough to guarantee correctness: none of the four defects could be detected by counting rows, and BUG-038 concerns the generation of Gold tables, which Flow 3 does not check at all. Two automated checks could have detected BUG-029, BUG-039 and BUG-040 before the quality assessment: comparing a national total with a reference value from the source, and checking that an attribute is not constant (for example all zero) across all municipalities.

Open problems ​

  1. Duplicated Sardinian provinces after the reorganisation of 1 January 2026. In silver.territories the provinces of Nuoro, Cagliari and Oristano each have two active rows, the old one and the new one, because they were recoded rather than abolished, and the provinces pipeline did not close the old rows (BUG-015, GitHub issue #223 of the pipelines repository, open at the date of the draft). Why it matters: a territory lookup by province name can return either row; the municipality–province containments are, however, correct. What is needed: closing the old rows in the provinces transformation and updating the end-of-validity date in production.
  2. Aggregation of categorical variables. The territorial reconciliation rules described in D2.3.1 do not cover non-numeric variables (for example the seismic class of a municipality), which for now use the «no aggregation» rule and remain empty for municipalities created by merger (GitHub issue #218, open). What is needed: a «most frequent value» rule in the generation of Gold tables.
  3. 68 datasets in QA. They have problems found by the data stewards, awaiting correction. The detail of the problems per dataset is in the ClickUp tasks of the «Datastore» list and has not yet been reported in this document: they will be classified by type (value error, years, Gold table generation, metadata) in the end-of-October update.
  4. 25 datasets not yet taken up, almost all recently loaded, and 14 datasets not yet published in the Datastore.
  5. QualitĂ  tag not yet written by all data quality flows. In D2.3.1, 13 flows out of 46 wrote the tag. In the version of the code examined, 51 of the 74 Flow 3 files in the repository contain the call that writes the tag: this is a check on the text of the code, which says that the writing is provided for, not that it has taken place in production. 23 files remain to be completed.
  6. Alignment between dashboard and Datastore. The dashboard reads the quality assessment status directly from ClickUp at each synchronisation, whereas the verified_status column of the Datastore changes only when the synchronisation flow is started manually. The two figures may therefore differ. What is needed: scheduling the flow, or starting it before each extraction of the figures for this document.

What remains to be verified before the deadline ​

Before 31 October 2026, once the quality assessment campaign is closed:

  1. run the ETL verification engine on all 222 datasets and report, for each phase, how many datasets have the status declared in the dashboard confirmed by the check on production data; the outcome of the last complete run is not archived in the repository;
  2. count in production the rows of bronze.ingestion_log for the ISTAT Esploradati and ASTER families (gap 3 of the section Where the chain breaks);
  3. count the attributes of variable_definitions with an empty source_url;
  4. count the datasets with verified_status equal to verified in the Datastore, after starting the synchronisation, and compare them with the validated datasets in the dashboard;
  5. list the Gold tables created before the fixes for BUG-038 and BUG-040 (comparison between the creation date in datastore.gold_tables and the date of the fix) and verify that they have been regenerated or flagged;
  6. repeat the reconstruction of the traceability chain of the section Traceability of a value on an ISTAT Esploradati dataset and on a Ministry of Education dataset, reading the actual values for one municipality at each step;
  7. classify by type the problems of the datasets remaining in QA.

Planned update ​

At the close of the quality assessment campaign, expected at the end of October 2026, the document will be completed with:

  • the tables of the section Population status recalculated from a new synchronisation of the ETL dashboard, with the date of the synchronisation;
  • the outcome of the complete run of the ETL verification engine, phase by phase;
  • the outcome of the checks listed in the section What remains to be verified before the deadline;
  • the status of the open problems and of the traceability gaps, with any fixes released in the meantime.

The new version will replace this draft; the opening box will report the date of the new data.