🇬🇧 English
🇬🇧 English
Appearance
🇬🇧 English
🇬🇧 English
Appearance
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.
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.
| Criterion | What is required | Example of a violation |
|---|---|---|
| Correctness | the value in the final table is the one published by the source, or derives from it through the declared rule | a count of healthcare facilities lower than the one on the source's portal |
| Consistency | the same data item is represented uniformly across years, territories and datasets, and the metadata describe what the data contain | a single-year Gold table that sums the values of different years |
| Traceability | for 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 it | a Silver attribute without the address of the source page from which it was downloaded |
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:
| Phase | Operation performed by the engine |
|---|---|
| Ingestion | looks for at least one file of the dataset in the index of Bronze files (datastore.bronze_fs_cache) |
| Transformation | counts 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 quality | reads the tags of the Bronze table in OpenMetadata and looks for the value QualitĂ .silver-validato |
| Metadata | checks the presence of the link to the Bronze table in OpenMetadata (column om_bronze_fqn of datastore.variable_definitions) |
| Datastore | looks 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:
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).
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.The datasets tracked by the dashboard are 222, grouped into 26 sources. For each phase, the number of datasets with the phase declared complete:
| Phase | 14 July 2026 (228 datasets) | 6 October 2026 (222 datasets) |
|---|---|---|
| Ingestion into Bronze | 206 | 219 |
| Transformation into Silver | 128 | 214 |
| Data quality (Flow 3) | 45 | 210 |
| Metadata in OpenMetadata | 171 | 212 |
| Publication in the Datastore | 133 | 208 |
| Quality assessment: validated | 22 | 129 |
| Quality assessment: in QA (open problems) | — | 68 |
| Quality assessment: not yet taken up | 206 | 25 |
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.
| Source | Datasets | Data quality complete | In the Datastore | Validated | In QA | Not taken up |
|---|---|---|---|---|---|---|
| ISTAT (various collections) | 48 | 48 | 47 | 34 | 8 | 6 |
| ISTAT Esploradati — Population census | 48 | 48 | 48 | 40 | 4 | 4 |
| Ministry of Education | 35 | 35 | 32 | 16 | 19 | 0 |
| ISTAT Esploradati | 33 | 33 | 33 | 24 | 9 | 0 |
| ISTAT Esploradati — Agriculture census | 8 | 8 | 8 | 7 | 1 | 0 |
| ISPRA | 7 | 5 | 3 | 1 | 3 | 3 |
| ISTAT ASTER and Atlas of municipalities | 10 | 7 | 10 | 2 | 6 | 2 |
| AGENAS | 4 | 4 | 4 | 0 | 4 | 0 |
| ISTAT Demo | 3 | 0 | 2 | 0 | 0 | 3 |
| MiC — Vincoli in Rete | 2 | 2 | 2 | 2 | 0 | 0 |
| RFI | 1 | 1 | 1 | 1 | 0 | 0 |
| Other 14 groups (1 to 5 datasets each) | 23 | 19 | 18 | 2 | 14 | 7 |
| Total | 222 | 210 | 208 | 129 | 68 | 25 |
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.
| Layer | Tables counted | Composition |
|---|---|---|
| Silver | 126 | 109 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 |
| Gold | 357 | tables 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.
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.
| Step | Where | What links it to the next step |
|---|---|---|
| 1. Gold table | gold.stazioni_treni_comune_2026 | Contains 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 definition | datastore.variable_definitions, row of the attribute rfi_stazioni_totale | Found 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 Silver | silver.territory_attributes, attribute rfi_stazioni_totale, source rfi_stazioni | One value per municipality and per validity date, calculated by counting the stations of step 4 that fall within the municipality |
| 4. Elementary records in Silver | silver.services, type stazione_rfi, source rfi_stazioni | One 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 files | folder 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 log | bronze.ingestion_log | One 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 OpenMetadata | Bronze table maps-datalake-filesystem.rfi.default.elenco_stazioni_ferroviarie | The 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.
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.variable_definitions and on the dataset page in the Datastore.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.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).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.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.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):
| Defect | Dataset | What was wrong | How it emerged |
|---|---|---|---|
| BUG-029 (22 July 2026) | 5 AGENAS datasets on territorial facilities | distinct 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 zero | comparison 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 school | the pipeline read non-existent columns in the source files and wrote 0 for every municipality and every year, without errors | to 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 rule | the generation of a single-year Gold table aggregated the values of all the years present | diverging values after loading the time series of a Ministry of Education dataset |
| BUG-040 (8 September 2026) | RFI railway stations | about 54 stations discarded because of a missing or wrong province code | comparison 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.
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.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.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.Before 31 October 2026, once the quality assessment campaign is closed:
bronze.ingestion_log for the ISTAT Esploradati and ASTER families (gap 3 of the section Where the chain breaks);variable_definitions with an empty source_url;verified_status equal to verified in the Datastore, after starting the synchronisation, and compare them with the validated datasets in the dashboard;datastore.gold_tables and the date of the fix) and verify that they have been regenerated or flagged;At the close of the quality assessment campaign, expected at the end of October 2026, the document will be completed with:
The new version will replace this draft; the opening box will report the date of the new data.