Skip to content

Documentation to print

This page holds the whole guide, ready to print. To download it, print it and choose Save as PDF as the printer.

Government Data · Guide v0.8.1

Documentation

The guide, its reference and its method.

Built on December 1, 2026

Government Data

The Government Data platform, its applications and modules, how an installation is built and kept up to date, and where each reader goes next.

Government Data is a platform for an organisation’s data, installed on servers the organisation controls. It brings together the applications that measure, process and show that data, on one sign-in, one set of permissions, one audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. and one data lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.. This guide covers the platform and each of its applications.

Application or module What it is for In the apps menu Guide
Quality Data Data quality: rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. written by whoever knows the data, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. that measure it, indicators and remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. The application itself Introduction to Quality Data
The orchestrator SchedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… and tracks the platform’s jobs; its job runners send them to Trino. Its own web shows the flows and the runs with their logs Orchestrator Orchestrator and job runners
Analytics DashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. of the indicators, with Apache Superset Analytics Apache Superset
The data lake Where the platform keeps its copies of the data and its results, as open tablesOpen table format A way of storing large tables in common files (Parquet) with a layer that records every change, so they behave like a database: see the base as it was at a past date, undo a wrong load, and read only the needed part.; its console shows the storage Lake console RustFS, Apache Iceberg
Monitoring (coming) Logs and metrics of every machine, and alerts, with Grafana Monitoring Grafana
The user guide These pages, served inside every installation and also published openly User guide This guide

The apps menu, at the top right under Applications, shows each person only the applications their permissions open; which permission opens each is in Permissions. Every application signs people in through the core, with the same account.

Underneath them is the platform’s core: sign-in for every application, permissions, the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., settings, the installation’s machines and certificates. Its package is called Quality Data, after the application it carries.

An installation is the set of servers where one organisation runs Government Data. It serves that organisation alone, and no data leaves it except what the organisation itself exports. Each application is a module: it can be added, and removed without losing its data.

Installations pull their updates: each installation’s agent fetches signed versions, checks the signature, backs up, and applies them. Nothing reaches into an installation from outside.

People enter every application through one door and sign in once, at the core. The orchestrator schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… the jobs; Trino, the one SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. engine, reads the organisation’s databases and writes the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.; the dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. read the lake’s results through Trino. The architecture figure draws it on its machines, the simulation tours it one technology at a time, and each part has a page of its own in the Technology stack.

Quality Data

Quality Data

What Quality Data, the data quality application of Government Data, is, why it exists, who uses it, its parts, and where each reader goes next.

Quality Data measures the quality of an organisation’s data. It reads the tables of the databases the organisation already runs, checks every record against rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. written by the people who know the data, and turns the results into indicators people can follow and into queues of data to fix. It only reads: the data is fixed where it lives, and the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. shows the fix. It is one of the applications of the Government Data platform.

Most organisations know their data has errors, but not how many, where, or whether it is getting better. Quality Data changes that:

Without it With Quality Data
Checks are scattered across capture screens, reports and spreadsheets Every check is a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. in one catalog, a few lines of text that whoever knows the data can write, read and review
A check alerts on some records, and nobody sees the whole picture Every rule runs on every record of a table, and the results add up to indicators
Quality is measured by hand, now and then, in a way nobody can repeat CutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. run on a scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…; dates are compared with the cut’s date, so measuring a cut again gives the same result
What a check does drifts away from what its description says Each rule is explained in words from the same definition that runs it
A rule changes and nobody knows who changed it, or why the figures moved A rule counts only once it is approved, and its history keeps who changed what and when
Errors are fixed in the order someone happens to notice them Failures are grouped into remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. per office, region or channel, each with an SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. in days

Each person gets what they need through the policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. an administrator gives them. The product ships with ready-made policies for the usual roles:

Role What they do in Quality Data Policy
Data steward: writes rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., reads indicators Connects sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., maps tables into datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., writes, tests and approves rules, runs and schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., sets the queues’ SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. quality-steward
Analyst: works a remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. Reads which groups have the most open findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. and their priority, and gets the failing records fixed in the source system quality-analyst
Manager or compliance reader Reads the dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and indicators, never a record’s values quality-viewer, or auditor, which also reads the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy.
Administrator Installs the product and keeps it running: user accounts, groups and policies, sign-in, mail and updates, under Settings The Administrator role

Values read from a source come masked. Whoever’s policies let them see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. may show them whole, saying why, and every view of them is recorded in the audit trail with its reason.

  • Explorer, in the side bar: the sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. and their tables, the datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. made from them with their Cuts, Schedules and Dashboard, and the Lake, where the product keeps its copies of the data.
  • Sources: the databases Quality Data reads, with their credentials stored sealed.
  • Rules and the rule editor: write a rule, see it said in words (As read), Test it on real data, and take it to the approved version directly or through a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. that someone approves.
  • Cuts and Schedules: take a dataset’s data at a date and measure it, now or on a schedule.
  • Dashboard: one per dataset, with its indicators, its charts and its Remediation queues.
  • Lake SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. console: read-only queries over the product’s copies of the data, in Structured Query Language (SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it.), for stewards.
  • Settings: accounts, groups, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., sign-in through a company directory or an external provider, mail and updates.

Indicators that only make sense in one regulated sector are an optional part of the product; this part of the guide describes Quality Data as it applies to any organisation, and an optional module at its end covers regulated financial entities in Colombia.

  • Everyone: read Concepts first. It walks the chain from a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. to a remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. with one example, and defines the words the rest of the guide uses.
  • Administrators: Getting started: administrator installs the product and gives a colleague an account and a policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer..
  • Data stewards: Getting started: data steward connects a source, maps a table and measures a first ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.; then the tutorial, Rule language, Rule patterns and Lint findings.
  • Analysts working a queue: Getting started: analyst finds a group’s queue and says what to do with it today.
  • Managers and compliance readers: Getting started: indicators opens a dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and reads its first indicators; then Reading the dashboard, From results to indicators and Formulas, with an example of each chart drawn with made-up data.
  • Looking something up: the Tasks pages say how each thing is done and who does it; the Reference pages, every key, patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition., findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it., formula, chart and permission. Every underlined term shows its meaning when you point at it, tap it or reach it with the keyboard.
  • On paper: Download PDF gathers the whole guide on one page, to print it or save it as a PDF.

Quality Data

Concepts

The chain Quality Data is built around, from a source to a remediation queue, with one example carried through it.

Everything in Quality Data follows one chain, each step handing its output to the next: source → dataset and mapping → rules → cut → evaluation → results and indicators → dashboard → remediation queue.

  1. Data steward

    1. 1SourceA database the organisation already runs, only read
    2. 2Dataset and mappingOne table: its fields, record key and grouping field
    3. 3RulesChecks on the fields; those on main count
    4. 4CutThe data as it was on one date, copied to the lake
  2. Automatic

    1. 5EvaluationEvery rule on every record: fails, passes or does not apply
  3. Manager or compliance reader

    1. 6Results and indicatorsCounts per rule; conformity, ICD, IGCD
    2. 7DashboardThe charts of the cut you choose
  4. Analyst

    1. 8Remediation queueThe findings of one group, with its SLA

The data is fixed in the source; the next cut shows the fix, and the chain starts again.

The chain, in order: the data steward connects a source, maps a table into a dataset, writes the rules and takes a cut; Quality Data evaluates it on its own; managers and compliance readers read the results, indicators and dashboard; an analyst works a remediation queue. Each step links to its section.

This page walks it once with one made-up example: a customers table in the organisation’s customer database, with 12,000 records and the columns CustomerId, Email, Region and LastUpdate.

A source is a database the organisation already runs. Quality Data reads it and never writes to it; today it reads PostgreSQL, MySQL and SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server. A source is added under Sources with its server and credentials, which are stored sealed and never shown again; its tables then appear in the Explorer. Example: the customer database becomes a source, and customers is one of its tables. Next: that table is mapped. More in Connect a source.

A dataset is one table of a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. as Quality Data reads it: a name, its fields and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that check them. Its mapping says how the table is read: which column each field reads and its type, the record key that tells one record from another, each field’s priority (critical, high, medium or low), and the roles of some fields, such as a grouping field (an office, a region, a channel) that the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and the queues split results by.

Map this table, a button inside a table opened in the Explorer, samples the table, proposes the mapping and some first rules, and publishes them. The sample keeps counts, never values. Example: the dataset customers, with CustomerId as its record key (the table’s primary key) and Region proposed as a grouping field from its name. Next: rules check its fields. More in Map a table into a dataset.

A rule applies a pattern to a field: required (it has a value), format (it has the right shape), fresh (a date is recent enough) and eleven more. The pattern gives the rule its dimension, the kind of quality it measures (completenessCompleteness Quality dimension: the data is present when it must be., validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list)., timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today.…), and a default severity (blocking, major or minor). A rule is a few lines of text, written in the rule editor, which checks it as you type and says it in words under As read.

Example: three rules for customers:

dataset: customers
rules:
- { id: EML-01, field: Email, check: required }
- { id: EML-02, field: Email, check: format, named: email }
- { id: UPD-01, field: LastUpdate, check: fresh, max_age: 24 months }

The rules that count are the ones on main, the approved version of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s rules. Someone allowed to approve takes a change there with Deploy; anyone else uses Save as a draft, and the draft waits for an approver to Approve or Discard it. History keeps every change, and Test runs a file on the latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. before it counts. Next: every cut is measured with the rules on main. More in the tutorial, Rule patterns and Take a change to main.

A cut is the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s data as it was on one date. Quality Data copies the table from the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. into its own store, the lake, so the cut can be measured again later without touching the source. A dataset has at most one cut per date, started with Run now under the dataset’s Cuts or by a schedule (daily, weekly, monthly…). Example: the cut of 31 October 2026 holds the 12,000 customers as they were that day. Next: once the copy is complete, its evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. starts on its own. More in Run and schedule cuts.

The evaluation runs every ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main on every record of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. For each record a rule gives one of three results: it fails, it passes, or it does not apply (the record is outside the rule’s condition, or the value it checks is empty). A record a rule does not apply to is left out of that rule’s figures: it is not a pass.

Example: 300 customers have no e-mail. EML-01 fails those 300 and passes the other 11,700. EML-02 does not apply to the 300; of the 11,700 it applies to, 150 fail. UPD-01 fails every customer whose LastUpdate is before 31 October 2024.

EML-01
  • Passes 11,700
  • Fails 300
  • Conformity: 11,700 / 12,000 ≈ 97.5%
EML-02
  • Does not apply 300 · left out of the rule's figures
  • Passes 11,550
  • Fails 150
  • Conformity: 11,550 / 11,700 ≈ 98.7%
The 12,000 customers under EML-01 and EML-02, to scale. The 300 with no e-mail fail EML-01, and EML-02 does not apply to them, so a missing e-mail counts once; conformity divides the records that pass by those the rule applies to.

Two fixed ideas lie under every figure:

  • Empty means no value, an empty text, or only spaces, including the invisible no-break space. Only required (and its opposite, empty) looks at empty values; every other patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. skips them, so a missing value counts once, not once per rule.
  • Dates are compared with the cut, never with today. “Within 24 months” means 24 months before the cut’s date, so measuring the October 2026 cut again next year gives the same result.

More, such as how text is compared, in Rule language: what Quality Data decides.

The results are each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s counts at the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: applied, passed, failed. From them come the indicators:

  • Conformity of a rule: the share of the records it applies to that pass. EML-02: 1 − 150 / 11,700, about 98.7 %.
  • ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index): a score from 0 to 1 for each field of each record, lowered by the rules that fail on it, weighted by severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity., and, for values that go out of date such as an e-mail, by the time since the last update. A record’s ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. weights its fields by priority.
  • IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (overall data quality index): the mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. at the cut, the one figure to follow over time.

More in From results to indicators and Formulas.

Each datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has a Dashboard, under the dataset in the Explorer and in the Quality tab of a table. It charts the results of the Cut you choose: conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut, failures by dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., the fields with the most failures and more. A chart appears only when the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. gives it what it needs; charts by group need a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.. It shows totals, never a customer’s values. Next: the failures, grouped into queues. More in Reading the dashboard.

A finding is a record that fails a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. at a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. A remediation queue gathers the findings of one group of a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., such as Region North, with a service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.): the days allowed to fix them, 30 unless someone who may edit the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. sets another under Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another., below the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.. The Remediation queues chart shows each group’s open findings, the overdue ones and their summed priority.

Data is fixed where it lives, in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. system. A finding is resolved when a later cut no longer fails it, so a fix shows at the next evaluated cut, and the chain starts again. In the example, the customers failing EML-01, EML-02 or UPD-01 fall into the queue of their region.

Today the queues show counts only: the product does not yet list a queue’s records, nor carry findings from one cut to the next, so Overdue and Resolved at this cut read 0. More in Reading the dashboard: remediation queues.

Quality Data · Method

How quality is measured

Why Quality Data measures quality the way it does, the quality cycle it follows and the quality dimensions it measures.

This page explains the method behind the product: why quality is measured with rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on every record, the cycle the work follows and what each quality dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. means. What each word means is in Concepts; how a result becomes an indicator, in From results to indicators; the exact calculations, in Formulas.

Quality Data rests on three ideas from the standard frameworks for data quality.

  • Quality is measured against written requirements. ISO 8000ISO 8000 Master data quality standard: quality is declared against explicit requirements, with provenance and traceability., the International Organization for Standardization’s standard for data quality, says data is of good quality when it meets requirements stated beforehand. In Quality Data each requirement is a rule: a few lines of text with a patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition., a severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. and the sentence the person who fixes the record reads. A figure can always be traced back to the rules behind it, and As read says each rule in words from the same definition that runs it.
  • Every record counts, not a sample. A rule runs on every record of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. A rate from a sample hides where the errors are; a rate from every record can be split by field, by group and by severity, and each failure can go to a queue.
  • A cut can be measured again. A cut is the data as it was on one date, kept in the product’s own copy, and dates are compared with the cut, never with today. Measuring the same cut again with the same rules gives the same figures, so a change in a figure means a change in the data or in the rules, never in the day it was measured.

The work follows the quality management cycle of DAMA-DMBOKDAMA International's data management body of knowledge Governance framework, roles (owner, steward) and quality cycle., the data management body of knowledge published by DAMADAMA International (Data Management Association) The professional association that publishes DAMA-DMBOK, the data management body of knowledge. International (the Data Management Association): define, measure, analyse, improve and control.

  1. Data steward

    1. 1DefineEach requirement written as a rule, approved on main
  2. Automatic

    1. 2MeasureA cut, and every rule on every record
  3. Managers and stewards

    1. 3AnalyseIndicators and charts of the cut
  4. Analyst

    1. 4ImproveQueues of findings, fixed in the source
  5. Automatic

    1. 5ControlThe next cut shows whether it held

Control feeds the next definition: rules are tuned, and the cycle starts again.

The quality cycle as Quality Data follows it: requirements are defined as rules, measured on a cut, analysed on the dashboard, improved where the data lives, and controlled by the next cut. Each step links to its section.

The people who know the data write what it must meet, field by field, as rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. Not every field needs rules: start with the fields whose errors cost most, and give them a critical or high priority in the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., because priority weights them in every indicator. A rule counts only once it is approved on main. More in Write, change and test a rule and Take a change to main.

A cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. copies the data, and its evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. runs every rule on main on every record. Each record gets one of three results per rule: it fails, it passes, or the rule does not apply. More in Run and schedule cuts.

The dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. turns the results into indicators and charts: what kind of problem dominates, in which fields, in which groups, and whether it is improving. More in Reading the dashboard.

Failures go to remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up., one per group of a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. (an office, a region, a channel), each with a service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.). Data is fixed where it lives, in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. system: Quality Data only reads. Where many records fail for one reason, such as a capture form or a load, fixing the cause once is worth more than fixing records one by one. More in Work a remediation queue.

The next cut shows whether the fixes held. The trend by cut, the movement between bandsBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). and the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group tell a lasting change from noise. What the cycle teaches goes back to the first step: a rule that fails almost every record may be badly posed, and a field that keeps failing may need a stricter rule at the point of capture.

Each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. measures one quality dimension, given by its patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.. The dimensions come from ISO/IEC 25012ISO/IEC 25012 Data quality model: inherent dimensions (accuracy, completeness, consistency, credibility, timeliness) and system-dependent ones., the data quality model of ISOInternational Organization for Standardization The international body that publishes standards such as ISO 8000. and the International Electrotechnical Commission, and from DAMA-DMBOKDAMA International's data management body of knowledge Governance framework, roles (owner, steward) and quality cycle.. Quality Data uses six:

Dimension The data… Patterns Example on customers
CompletenessCompleteness Quality dimension: the data is present when it must be. is present when it must be required Every customer has an e-mail
ValidityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list). has the right form and an allowed value format, length, domain The e-mail has an @ and a domain; the region is in its list
ConsistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). does not contradict other fields empty, sum, combination, implies, differs A closed account has a closing date
TimelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. is recent enough fresh The record was updated within 24 months of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.
UniquenessUniqueness Quality dimension: an entity appears only once (a unique document; a mobile phone or e-mail not shared). appears once unique One customer per identity document
AccuracyAccuracy Quality dimension: the value represents reality correctly. Without an external source it is approximated by plausibility. is believable as a picture of reality range, placeholder A birth date is not in the future; no “N/A” as a name

An expression declares its own dimension. Two more things a reader may look for:

  • Referential integrity, that a code points to something that exists, is checked with domain against a reference column or a catalog table, and counts as validity.
  • Accuracy in the strict sense, that the value is true, needs an external sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. to compare with. Without one, rules approximate it with plausibilityPlausibility That a value is believable. A negative net worth or expenses far above income are possible but unlikely: they are confirmed with the customer, not taken as errors.: values that are possible but unlikely.

The Failures by dimension and severity chart counts failures by these dimensions. Each pattern’s dimension and default severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. are in Rule patterns; the formula of each dimension over a whole variable, in How each quality dimension is measured.

Rules say what is wrong with a record. Three more kinds of evidence look at the data as a whole, and each has its chart on the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.:

  1. Profiling describes each field before any rule: how often it is empty, how many distinct values it has, and its commonest shape. A code stored as a number that lost its leading zero shows here first.
  2. Statistical control asks whether a group fails more than normal variation explains. The p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group draws limits that are wide for small groups and narrow for large ones, so only real signals stand out.
  3. Outliers and drift look at amounts and populations: an amount unusual for its group, measured with a robust zRobust z How many typical distances a value is from its group's normal value: 0.6745 × (value − median) / MAD, robust because it uses the median and the MAD. Above 3.5 the value is flagged as an outlier. based on the medianMedian The middle value once the data is sorted. Unlike the mean, a few extreme values do not drag it. absolute deviation (MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers.), and a population that moved since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., measured with the population stability index (PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use.).

How to read each is in Reading the dashboard; how each is calculated, in Formulas. What the method assumes and does not measure is in Assumptions and limits.

Quality Data · Method

How each quality dimension is measured

The formula of each quality dimension (completeness, validity, uniqueness, accuracy, consistency and timeliness), per variable and per cut, and what each one counts.

How quality is measured says which quality dimensionsDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. Quality Data uses and which rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. belong to each. This page gives the formula of each dimension, so that a figure can be checked by hand.

Every dimension yields a value between 0 and 1, shown as a percentage. For every dimension but completenessCompleteness Quality dimension: the data is present when it must be., the higher, the better; completeness counts what is missing, so for it the lower, the better. Each value is measured per variable (one field of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., such as a document number or an income) and per cut, so the same variable can be followed from one cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the next.

Notation: ii = variable, jj = record, NiN_i = total records of variable ii in the cut. Unless a dimension says otherwise, NiN_i counts all records, including those where the value is not filled in: an empty value is not left out, it counts against the dimension.

How much of the variable is not filled in.

Completenessi=empty or null recordsiNi\text{Completeness}_i = \frac{\text{empty or null records}_i}{N_i}

This measure is the share of empty or null records: the lower, the better, unlike the other dimensionsDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., where higher is better. 0 means no record is missing the value.

Completeness of a fieldExample dataTen records of the e-mail field: the measure is the share of empty ones (the lower, the better).
  • Filled in
  • Empty or null
Ten records of an e-mail field; two are empty. Completeness: 2/10 = 20%.Record 1a@x.coRecord 2b@y.coRecord 3(empty)Record 4c@z.coRecord 5d@x.coRecord 6(empty)Record 7e@y.coRecord 8f@z.coRecord 9g@x.coRecord 10h@y.co2/10 = 20%
Show the data as a table
RecordE-mail
1a@x.co
2b@y.co
3(empty)
4c@z.co
5d@x.co
6(empty)
7e@y.co
8f@z.co
9g@x.co
10h@y.co

Whether the value has the right form for its kind of field. Each kind has its own check, measured over all values, including those not filled in:

Kind of field Formula
Document 1−records with spacesN1 - \dfrac{\text{records with spaces}}{N}
Name 1−records with special charactersN1 - \dfrac{\text{records with special characters}}{N}
Phone 1−records without exactly 10 digitsN1 - \dfrac{\text{records without exactly 10 digits}}{N}
E-mail records with the structure text@text.textN\dfrac{\text{records with the structure text@text.text}}{N}
Date records within the valid date rangeN\dfrac{\text{records within the valid date range}}{N}
Financial variable numeric recordsiNi\dfrac{\text{numeric records}_i}{N_i}

The first three count what is wrong and subtract it from 1; the last three count what is right (a phone counts as valid only with exactly 10 numeric digits, nothing else). Both read the same way: 1 means every value is valid. An empty value is not a valid e-mail, date or number, so it lowers those three.

Validity by kind of fieldExample dataA document with a space, a name with a special character, a phone without 10 digits, an e-mail without @, a date out of range and a non-numeric amount are not valid; nor is an empty value.
  • Valid
  • Not valid
Five sample values per kind of field, marked valid or not, with each kind's valid share.Document102030401020 304155678899998877661234567880%NameAna RuizLuis#GilEva PazJuan SolRosa M@r60%Phone30012345673001233109876543(empty)311555000060%E-mailana@x.coluis.x.coeva@y.org(empty)rosa@z.co60%Date2024-03-011890-01-012023-11-202031-05-052022-07-1560%Amount1200000N/A350000980004500080%
Show the data as a table
Kind12345Valid
Document10203040 ✓1020 3041 ✗55678899 ✓99887766 ✓12345678 ✓80%
NameAna Ruiz ✓Luis#Gil ✗Eva Paz ✓Juan Sol ✓Rosa M@r ✗60%
Phone3001234567 ✓300123 ✗3109876543 ✓(empty) ✗3115550000 ✓60%
E-mailana@x.co ✓luis.x.co ✗eva@y.org ✓(empty) ✗rosa@z.co ✓60%
Date2024-03-01 ✓1890-01-01 ✗2023-11-20 ✓2031-05-05 ✗2022-07-15 ✓60%
Amount1200000 ✓N/A ✗350000 ✓98000 ✓45000 ✓80%

Whether a value that must identify one record appears only once.

Uniquenessi=1−duplicate recordsiNi\text{Uniqueness}_i = 1 - \frac{\text{duplicate records}_i}{N_i}

Measured over all values, including those not filled in.

Uniqueness of an identifierExample dataHere each repetition after the first appearance counts as a duplicate.
  • Unique
  • First appearance
  • Duplicate
Ten document numbers; 1002 appears three times and 1003 twice. Three records repeat a value already seen. Uniqueness: 1 − 3/10 = 70%.Record 11001Record 21002Record 31003Record 41002Record 51004Record 61005Record 71003Record 81006Record 91002Record 1010071 − 3/10 = 70%
Show the data as a table
RecordDocument
11001
21002
31003
41002duplicate
51004
61005
71003duplicate
81006
91002duplicate
101007

Whether a financial value is believable. Income and expenses each join two checks, with equal weight: the value is not zero, and income is not below expenses. Measured over all values, including those not filled in.

Accuracyincome=(1−ZincomeN)+(1−MN)2\text{Accuracy}_{\text{income}} = \frac{\left(1 - \dfrac{Z_{\text{income}}}{N}\right) + \left(1 - \dfrac{M}{N}\right)}{2} Accuracyexpenses=(1−ZexpensesN)+(1−MN)2\text{Accuracy}_{\text{expenses}} = \frac{\left(1 - \dfrac{Z_{\text{expenses}}}{N}\right) + \left(1 - \dfrac{M}{N}\right)}{2}

where:

  • ZincomeZ_{\text{income}} = records with income equal to zero;
  • ZexpensesZ_{\text{expenses}} = records with expenses equal to zero;
  • MM = records with income below expenses.

The second check is the same for both: a record whose income is below its expenses lowers the accuracy of both variables.

Accuracy of income and expensesExample dataTen records (in thousands): each check gives one half, and the two are averaged.
  • Fails the check
Ten records with income and expenses. Two have zero income and four have income below expenses; none has zero expenses. Income accuracy: ((1 − 2/10) + (1 − 4/10)) / 2 = 70%. Expenses accuracy: ((1 − 0/10) + (1 − 4/10)) / 2 = 80%.12345678910Income1200958015060020070110Expenses8040100509075301204060Income = 0·✗····✗···Income < expenses·✗✗··✗✗···Income accuracy: ((1 − 2/10) + (1 − 4/10)) / 2 = 70%Expenses accuracy: ((1 − 0/10) + (1 − 4/10)) / 2 = 80%
Show the data as a table
RecordIncomeExpensesIncome = 0Income < expenses
112080
2040✗✗
395100✗
48050
515090
66075✗
7030✗✗
8200120
97040
1011060

Whether the same financial variable agrees between two sets that must hold the same values: set AA and set BB, such as two sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., or a detail and its total.

Consistencyi=1−∣∑Ai−∑Bi∣∑Ai\text{Consistency}_i = 1 - \frac{\left|\sum A_i - \sum B_i\right|}{\sum A_i}

where ∑Ai\sum A_i and ∑Bi\sum B_i are the sums of the values of variable ii in set AA and in set BB.

Set AA is the reference: the difference is read as a share of its total, so its sum must not be zero. Measured over all values, including those not filled in.

Consistency between two setsExample dataThe same variable summed in two sets that must agree; the gap is read against A's total.
  • Sum of the set
  • Gap
A variable sums 1,000 in set A and 940 in set B. Consistency: 1 − |1,000 − 940| / 1,000 = 94%.Σ set A1,000Σ set B940|A − B| = 601 − |1,000 − 940| / 1,000 = 94%
Show the data as a table
SetSum
A1,000
B940
|A − B|60

Whether a value has been updated recently enough for the risk it carries.

Timelinessi=1−records with dj>Dj+30Ni\text{Timeliness}_i = 1 - \frac{\text{records with } d_j > D_j + 30}{N_i}

where:

  • djd_j = calculation date − date the field was last updated, in days;
  • DjD_j = maximum number of days allowed by the record’s risk profile.

A record is late when its value is older than its risk profile allows, plus 30 days of grace. When the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. keeps only a general last-update date per person, not one per field, that date is used for every field measured. Measured over all values, including those not filled in.

Timeliness by risk profileExample dataEach bar is d, the days from the last update to the calculation date. Dashed line: D, the profile's maximum (high 180, low 365); solid line: D + 30.
  • On time
  • Late
  • D
  • D + 30
Five records with the days since their last update against their risk profile's maximum plus 30 days. Two exceed it. Timeliness: 1 − 2/5 = 60%.Record 1 · risk highRecord 2 · risk low✗Record 3 · risk high✗Record 4 · risk lowRecord 5 · risk high090180270360450days (d)1 − 2/5 = 60%
Show the data as a table
RecordRiskDD + 30d
1high180210120
2low365395410late
3high180210230late
4low365395300
5high180210205

These formulas measure a dimension over a whole variable. In Quality Data, the rules of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. are what count each case: an empty value, a value with spaces, a duplicate, an old update. Which rules feed each dimension, and with which parameters (the valid date range, the risk profiles and their days), is configured per dataset. See Write, change and test a rule to configure them, Rule patterns for each patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.’s dimension, and Formulas for the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.’s own figures.

Quality Data · Method

Formulas

Each chart of the dashboard with its example, the formula it is calculated with, and how to read it.

This page gathers, for each of the 17 charts on a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s quality dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., an example, the formula Quality Data calculates it with, and how to read it. The core evaluates the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and sends the notifications; the charts are drawn by the quality dashboard in Superset, the installation’s BI application, from the results in gold. What to do with each chart is in Reading the dashboard; what each indicator means, in From results to indicators. How long each stage of an evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. takes is a system metric, shown in Grafana, not a chart of the dashboard.

Notation: ii = record, ee = entity, aa = field, rr = rule, gg = group, kk = component of the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index), 1[⋅]\mathbf{1}[\cdot] = 1 when the condition holds and 0 otherwise. The weights, severities and thresholds below are fixed in the product today. Some concepts of the original method (the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.’s K, V and T components, a failure’s cause, outliers as probable errors, an SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. measured against a target, a treatment by bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75).) are not calculated yet: see Assumptions and limits.

Each chart is a query over a results model in gold that every evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. writes the same way, for any datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.: customers, orders, products, suppliers. Under each chart, Query says which part of that model feeds it, and Needs what a dataset must have for the chart to appear.

Part One row per What it holds
CutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. summary Dataset and cut Overall data quality index (IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time.), records, entities, bandsBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75).
RuleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. results Dataset, cut and rule Field, dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity., applies, failures
Field quality Dataset, cut and field Mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., empties, distinct values, commonest shape, update recency
Entity ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. Dataset, cut and entity ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., band, segmentSegment The commercial group a customer belongs to; it defines the offer and the service.; charts read it only through aggregate views
Group figures Dataset, cut, grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. and group Records, records with a serious failure, mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.
Distribution checks Dataset, cut and variable Each driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. variable’s percentilesPercentile Percentile 99 (P99) is the value below which 99 % of the data falls., outliers by group
Queue findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. Dataset, cut, queue and the cut its findings opened at Open and resolved findings, their priority

Charts read aggregates only: the entity ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. reaches them through three aggregate views (the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. distribution, bands by segment and band transitions), never one row per entity, and individual records stay behind the permission to see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.. When a dataset is mapped, some of its fields take a role, and each role turns on the charts that need it:

Role Example in customers Example in orders Turns on
Entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it. Document The customer’s document Distribution of the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., band transitions
Segment Customer type Order type Data condition by segment (with an entity key)
Grouping field Office, advisor Store, product, channel p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out., largest groups, groups that changed most, remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up.
Update date Last update Last change date Update recency, and the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.’s A component
Outlier amount Total income Order amount Outliers by group (with a grouping field)
Drift variable Income, age Price, delivery days PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. by decilesDecile Deciles split the data into 10 groups with the same number of records.

Charts that need nothing (conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut, failures by dimension and severity, fields with the most failures, fields with the lowest ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., profilingProfiling A descriptive analysis of each column: nulls, cardinality, patterns and distribution., conformity by rule) appear for every dataset. The SFC indicatorSFC indicator The data quality indicator of Colombia's financial supervisor, for the entities it supervises: the share of its cells that meet the 90 % threshold. Quality Data computes it from the same rule results as the ICD when a dataset takes part in it. belongs to an optional module.

Every figure on this page comes from each rule’s result on each record, which is one of three:

  • Does not apply when the record is outside the rule’s population or does not meet its when condition; when the field it checks is empty, unless the rule says on_empty: fail (required exists to fail on empties, so an empty value does fail it); or when a value the check needs is missing, such as one of the parts of a sum.
  • Fails when it applies and the check does not hold.
  • Passes when it applies and the check holds.

A rule reads every field it names: the one it checks, those in its when and its population, those it checks for emptiness, and the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. fields of a derived field. If it reads one field, it counts in that field’s CC component; if it reads several, in the SS of each. For example, a required on the legal representative limited to companies also reads the customer type, so it counts in the SS of both fields and not in the representative’s CC.

Each rule has a quality dimension, set by its patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. (required is completenessCompleteness Quality dimension: the data is present when it must be.; format, length and domain, validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list).; range and placeholder, accuracyAccuracy Quality dimension: the value represents reality correctly. Without an external source it is approximated by plausibility.; unique, uniquenessUniqueness Quality dimension: an entity appears only once (a unique document; a mobile phone or e-mail not shared).; fresh, timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today.; those across fields, consistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities).; an expression declares its own), and a severity with its weight srs_r: blocking 1.0, major 0.6, minor 0.3. Without a written severity, required is blocking, unique and differs minor, and the rest major. The six dimensions classify rules: they are not components of the ICDICD components The parts that add up to a field's ICD: C (conformity with the field's own rules), S (consistency with other fields) and A (timeliness).. A fresh rule, for example, counts in its field’s CC or SS like any other, and is distinct from the AA component of section 7.

Each field has a priority with its weight cac_a: critical 4, high 3, medium 2, low 1. Until someone sets it, it is medium.

Which rules are met least?

conformityr=1−failuresrappliesr\text{conformity}_r = 1 - \frac{\text{failures}_r}{\text{applies}_r}

appliesr\text{applies}_r counts the records the rule applies to and failuresr\text{failures}_r those that fail it. A rule that applied to no record has no conformity: it shows ”—” in the table and is left out of the drawing.

The 15 rules with the lowest conformityExample dataConformity = 1 − failures ÷ records the rule applies to. R-31 applies to companies only.
R-12 · Updated over a year ago58%R-08 · Address without street format66%R-04 · Activity code inconsistent with oc…71%R-31 · Legal representative empty (compan…74%R-09 · Placeholder e-mail78%R-14 · Invalid mobile phone format81%R-15 · Net worth ≠ assets − liabilities83%R-02 · Occupation empty85%R-21 · Customer category empty86%R-11 · Employer empty for employees88%R-17 · City not in the catalog89%R-05 · Income empty91%R-18 · Repeated mobile phone93%R-01 · Date of birth empty95%R-06 · Name with invalid characters97%

Query Rule resultsNeeds nothing: it applies to every dataset

Show the data as a table
RuleFieldDimensionSeverityAppliesFailuresConformity
R-12 · Updated over a year agoLast update dateTimelinessMajor52,63422,10658%
R-08 · Address without street formatHome addressValidityMajor53,39918,15666%
R-04 · Activity code inconsistent with occupationActivity codeConsistencyMajor51,87015,04271%
R-31 · Legal representative empty (companies)Legal representativeCompletenessBlocking4,3681,13674%
R-09 · Placeholder e-mailEmailAccuracyMajor50,01411,00378%
R-14 · Invalid mobile phone formatMobile phoneValidityMajor52,90710,05281%
R-15 · Net worth ≠ assets − liabilitiesNet worthConsistencyMajor46,9567,98383%
R-02 · Occupation emptyOccupationCompletenessBlocking54,6008,19085%
R-21 · Customer category emptyCustomer categoryCompletenessBlocking54,6007,64486%
R-11 · Employer empty for employeesEmployerCompletenessBlocking28,3923,40788%
R-17 · City not in the catalogCity codeValidityMajor54,4915,99489%
R-05 · Income emptyTotal incomeCompletenessBlocking54,6004,91491%
R-18 · Repeated mobile phoneMobile phoneUniquenessMinor52,9073,70393%
R-01 · Date of birth emptyDate of birthCompletenessBlocking54,6002,73095%
R-06 · Name with invalid charactersNameValidityMajor54,6001,63897%

How to read it. A low conformity means the data is wrong or the rule is badly framed: review the lowest with their owner before fixing thousands of records. A rule that applies to few records, like R-31 here, swings a lot between cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: read its count before its rate. More in Reading the dashboard.

Is quality improving?

conformitycut=1−∑rfailuresr∑rappliesr\text{conformity}_{\text{cut}} = 1 - \frac{\sum_r \text{failures}_r}{\sum_r \text{applies}_r}

A cut’s conformity sums failures and applies over all its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.; the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. is section 8’s. The chart shows the last twelve cuts up to the one chosen.

Conformity and IGCD by cutExample dataConformity is the share of rule checks that passed; the IGCD, the entities' mean ICD. The vertical axis does not start at zero.
  • Conformity
  • IGCD
0.7000.7500.8000.8500.9000.9501.0002026-012026-022026-032026-042026-052026-060.8280.846

Query Cut summary and rule resultsNeeds nothing: it applies to every dataset

Show the data as a table
CutRecordsFailuresConformityIGCD
2026-0152,900141,7940.7970.781
2026-0253,300138,6430.8030.792
2026-0353,600134,4690.8100.806
2026-0454,000131,1950.8160.818
2026-0554,300127,6220.8220.833
2026-0654,600123,6980.8280.846

How to read it. Both rising is good. The vertical axis does not start at zero: check the table before calling something a change. Steady conformity with a falling IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. is usually outdated data (the AA component), fixed by an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case. rather than case by case.

Which kind of problem dominates?

failuresd,s=∑r: dimension(r)=d, severity(r)=sfailuresr\text{failures}_{d,s} = \sum_{r:\ \text{dimension}(r) = d,\ \text{severity}(r) = s} \text{failures}_r

A failure is a record failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.: a record that fails three rules counts three. The table adds how many rules each pair has and how many records they applied to.

Failures by dimension and severityExample dataEach failure is a record failing a rule: a record failing three rules counts three.
Validity · Major35,840Completeness · Blocking28,021Consistency · Major23,025Timeliness · Major22,106Accuracy · Major11,003Uniqueness · Minor3,703

Query Rule resultsNeeds nothing: it applies to every dataset

Show the data as a table
Dimension · severityRulesAppliesFailures
Validity · Major4215,39735,840
Completeness · Blocking6251,16028,021
Consistency · Major298,82623,025
Timeliness · Major152,63422,106
Accuracy · Major150,01411,003
Uniqueness · Minor152,9073,703

How to read it. Blocking and major first. Many completenessCompleteness Quality dimension: the data is present when it must be. failures point at the capture form or the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.; many timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. failures, at an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case..

Where are the failures?

failuresa=∑r: field(r)=afailuresr\text{failures}_a = \sum_{r:\ \text{field}(r) = a} \text{failures}_r

field(r)\text{field}(r) is the field the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. checks (its field), even if it reads others in its condition. The table adds how many rules check the field and how many checks they made.

Fields with the most failuresExample dataEach rule's failures, summed under the field the rule checks.
Last update date22,106Home address18,156Activity code15,042Mobile phone13,755Email11,003Occupation8,190Net worth7,983Customer category7,644City code5,994Total income4,914Employer3,407Date of birth2,730Name1,638Legal representative1,136

Query Rule resultsNeeds nothing: it applies to every dataset

Show the data as a table
FieldRulesAppliesFailures
Last update date152,63422,106
Home address153,39918,156
Activity code151,87015,042
Mobile phone2105,81413,755
Email150,01411,003
Occupation154,6008,190
Net worth146,9567,983
Customer category154,6007,644
City code154,4915,994
Total income154,6004,914
Employer128,3923,407
Date of birth154,6002,730
Name154,6001,638
Legal representative14,3681,136

How to read it. A field with many failures and many rules may simply be the most checked: compare it with conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. by rule before deciding where to start.

Which data is least reliable?

Ca,i=1−∑r∈own(a)sr 1[failsr,i]∑r∈own(a), appliessrconformity of the rules that read only aSa,i=1−∑r∈cross(a)sr 1[failsr,i]∑r∈cross(a), appliessrconsistency with other fieldsAa,i=0.5 max⁡(di, 0)/365only if a expires and the record has a dateICDa,i=∑kwk xk,a,i∑kwk,(wC,wS,wA)=(0.40, 0.15, 0.15)ICDa=mean⁡i: ICDa,i exists ICDa,i\begin{aligned} C_{a,i} &= 1 - \frac{\sum_{r \in \text{own}(a)} s_r\,\mathbf{1}[\text{fails}_{r,i}]}{\sum_{r \in \text{own}(a),\ \text{applies}} s_r} && \text{conformity of the rules that read only } a\\[4pt] S_{a,i} &= 1 - \frac{\sum_{r \in \text{cross}(a)} s_r\,\mathbf{1}[\text{fails}_{r,i}]}{\sum_{r \in \text{cross}(a),\ \text{applies}} s_r} && \text{consistency with other fields}\\[4pt] A_{a,i} &= 0.5^{\,\max(d_i,\,0)/365} && \text{only if } a \text{ expires and the record has a date}\\[6pt] \text{ICD}_{a,i} &= \frac{\sum_{k} w_k\, x_{k,a,i}}{\sum_{k} w_k}, \qquad (w_C, w_S, w_A) = (0.40,\ 0.15,\ 0.15)\\[6pt] \text{ICD}_a &= \operatorname{mean}_{i:\ \text{ICD}_{a,i} \text{ exists}}\ \text{ICD}_{a,i} \end{aligned}

own(a)\text{own}(a) are the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that read only field aa and cross(a)\text{cross}(a) those that read aa and others (section 2). did_i is the number of days from the record’s update date to the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. AA falls from the first day: 0.94 at 30 days, 0.71 at 180, 0.50 at a year, 0.25 at two years. It exists only for fields marked as expiring (contact data, income, an employer), when the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has an update date field, and on the records that have that date: a record with no date has no AA, not an AA of zero. A component that does not exist for a record (no rule applies, the field does not expire, there is no date) leaves the sum and the remaining weights are renormalised; a field with no component has no ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. on that record.

The 12 fields with the lowest mean ICDExample dataEach field's mean ICD, over the records where the field has one.
Last update date0.64Home address0.71Activity code0.74Email0.77Mobile phone0.79Occupation0.81Customer category0.83Employer0.85Total income0.86City code0.88Net worth0.89Date of birth0.95

Query Field qualityNeeds nothing: it applies to every dataset

Show the data as a table
FieldMean ICD
Last update date0.64
Home address0.71
Activity code0.74
Email0.77
Mobile phone0.79
Occupation0.81
Customer category0.83
Employer0.85
Total income0.86
City code0.88
Net worth0.89
Date of birth0.95

How to read it. Unlike the failure count, the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. weighs severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. and, for fields that expire, age. A field low here with few failures, like the example’s update date, is usually old rather than wrong: it needs updating, not correcting.

8. ICD of the record and the entity, and IGCD

Section titled “8. ICD of the record and the entity, and IGCD”

How are the entities spread by their quality?

ICDi=∑aca ICDa,i∑acaover the fields with an ICD on iICDa,e={min⁡i∈eICDa,ia criticalmean⁡i∈eICDa,iotherwise,ICDe=∑aca ICDa,e∑acaIGCD=1N∑e=1NICDe,bine=min⁡(⌊20 ICDe⌋, 19)20\begin{aligned} \text{ICD}_i &= \frac{\sum_a c_a\, \text{ICD}_{a,i}}{\sum_a c_a} \qquad \text{over the fields with an ICD on } i\\[6pt] \text{ICD}_{a,e} &= \begin{cases} \min_{i \in e} \text{ICD}_{a,i} & a \text{ critical}\\ \operatorname{mean}_{i \in e} \text{ICD}_{a,i} & \text{otherwise} \end{cases}, \qquad \text{ICD}_e = \frac{\sum_a c_a\, \text{ICD}_{a,e}}{\sum_a c_a}\\[6pt] \text{IGCD} &= \frac{1}{N} \sum_{e=1}^{N} \text{ICD}_e, \qquad \text{bin}_e = \frac{\min\left(\lfloor 20\,\text{ICD}_e \rfloor,\ 19\right)}{20} \end{aligned}

An entity ee is the set of records sharing the entity key, normalised: a document field keeps its digits only, without leading zeros; any other field, its value without surrounding spaces and in upper case; a key of several fields joins them. A record whose key, or one of its parts, is empty belongs to no entity: it is left out of the entity ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. and the bandsBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75).. NN is the number of entities with an ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.. Without an entity key, the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. is the mean of the records’ ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. and there are no bands. The chart counts entities in 0.05 bins named by where they start; an ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. of 1.00 counts in the last, and bins with no entity are not shown.

Distribution of the entities' ICDExample dataEntities per 0.05 bin, named by where it starts; an ICD of 1.00 counts in the last. The lines mark the bands: 0.75 and 0.90.
01,0002,0003,0004,0005,0006,0000.400.500.600.700.800.900.750.90

Query Aggregate view: ICD distributionNeeds an entity key

Show the data as a table
ICD binEntities
0.40 – 0.4590 (0%)
0.45 – 0.50150 (1%)
0.50 – 0.55220 (1%)
0.55 – 0.60350 (2%)
0.60 – 0.65520 (3%)
0.65 – 0.70760 (4%)
0.70 – 0.751,040 (6%)
0.75 – 0.801,380 (7%)
0.80 – 0.851,900 (10%)
0.85 – 0.902,750 (15%)
0.90 – 0.953,960 (21%)
0.95 – 1.005,480 (29%)

How to read it. Right of 0.90 is the good band, between the lines the fair one, left of 0.75 the poor one. A tall pile just left of a line is cheap to move: a few fixes per entity change its band.

Is one kind of entity worse off than another?

Bande={GoodICDe≥0.90Fair0.75≤ICDe<0.90PoorICDe<0.75segmente=mode⁡i∈e segmenti\text{Band}_e = \begin{cases} \text{Good} & \text{ICD}_e \ge 0.90\\ \text{Fair} & 0.75 \le \text{ICD}_e < 0.90\\ \text{Poor} & \text{ICD}_e < 0.75 \end{cases} \qquad \text{segment}_e = \operatorname{mode}_{i \in e}\ \text{segment}_i

An entity’s segment is the commonest value of the segment field among its records; on a tie, the first in alphabetical order. The chart counts each segment’s entities by bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75)., the largest segment first. The band is a classification: the product triggers no action from it.

Data condition by segmentExample dataEach segment's entities by band. An entity's segment is the commonest value among its records.
  • Good (ICD ≥ 0.90)
  • Fair (0.75–0.90)
  • Poor (< 0.75)
Individual58%29%13%Company36%33%31%

Query Aggregate view: bands by segmentNeeds an entity key and a segment (here, customer type)

Show the data as a table
SegmentGood (ICD ≥ 0.90)Fair (0.75–0.90)Poor (< 0.75)
Individual9,950 (58%)5,050 (29%)2,150 (13%)
Company520 (36%)480 (33%)450 (31%)

How to read it. A segment much redder than the rest usually fails on fields its records do not bring: a process problem, fixed at the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.. A small segment can look extreme with few entities: read its count in the table.

Where did the entities go since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.?

nb→b′=#{e:Bandeprevious=b, Bandethis=b′}n_{b \to b'} = \#\left\{ e : \text{Band}_e^{\text{previous}} = b,\ \text{Band}_e^{\text{this}} = b' \right\}

Entities are matched between the two cuts by a keyed hash of their normalised key: the key itself never leaves the evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures.. Only entities with a band in both cuts count; the first evaluated cut has no transitions.

How the entities moved between bandsExample dataRows: band at the previous cut. Columns: band at this cut. The diagonal stayed the same. Only entities with a band in both cuts count.
This cutPrevious cut✓ Good! Fair✕ Poor✓ Good9,240610150! Fair8804,120470✕ Poor906401,800

Query Aggregate view: band transitions, 2 cutsNeeds an entity key and two cuts

Show the data as a table
Previous cut ↓ / this cut →✓ Good! Fair✕ Poor
✓ Good9,240610150
! Fair8804,120470
✕ Poor906401,800

How to read it. The diagonal stayed the same; above it (towards good) improved, below it worsened. A large flow from good to fair without new errors is usually data that expires (the AA component).

How old is the data?

di=cut−update datei (days)bands: di<0, 0–30, 31–90, 91–180, 181–365, 366–730, >730, no dated_i = \text{cut} - \text{update date}_i \ \text{(days)} \qquad \text{bands: } d_i < 0,\ 0\text{–}30,\ 31\text{–}90,\ 91\text{–}180,\ 181\text{–}365,\ 366\text{–}730,\ > 730,\ \text{no date}

It counts every record of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. by the days between its update date and the cut’s date, never today. “No date” are the records with that field empty. The table shows the AA (section 7) each bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). gives a field that expires.

Update recencyExample dataThe records by the days from their update date to the cut. The A of a field that expires falls from the first day and is 0.50 at a year.
0%5%10%15%20%25%0.4%After the cut9%Up to 3014%31–9015%91–18019%181–36518%366–73021%Over 7304%No date

Query Field qualityNeeds a field with the «update date» role

Show the data as a table
Last updateRecordsA of a field that expires
After the cut218 (0.4%)1.00
Up to 30 days4,914 (9%)1.00–0.94
31–90 days7,644 (14%)0.94–0.84
91–180 days8,190 (15%)0.84–0.71
181–365 days10,374 (19%)0.71–0.50
366–730 days9,828 (18%)0.50–0.25
Over 730 days11,466 (21%)< 0.25
No date1,966 (4%)—

How to read it. Data can be correct and still old, and AA falls from the first day, not after a year. A large share in the bands over a year calls for an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case.. Dates after the cut are suspect (a wrong format, a default date): check how they are captured.

Does this group fail more than usual, or is it noise?

pg=seriousgng,pˉ=∑gseriousg∑gng,σg=pˉ (1−pˉ)ng,zg=pg−pˉσgσz=MR‾(z)1.128,UCLg=min⁡(1, pˉ+3 σg σz),LCLg=max⁡(0, pˉ−3 σg σz)\begin{aligned} p_g &= \frac{\text{serious}_g}{n_g}, \qquad \bar{p} = \frac{\sum_g \text{serious}_g}{\sum_g n_g}, \qquad \sigma_g = \sqrt{\frac{\bar{p}\,(1 - \bar{p})}{n_g}}, \qquad z_g = \frac{p_g - \bar{p}}{\sigma_g}\\[6pt] \sigma_z &= \frac{\overline{MR}(z)}{1.128}, \qquad \text{UCL}_g = \min\left(1,\ \bar{p} + 3\,\sigma_g\,\sigma_z\right), \qquad \text{LCL}_g = \max\left(0,\ \bar{p} - 3\,\sigma_g\,\sigma_z\right) \end{aligned}

pgp_g is the share of group gg‘s records with at least one serious failure: a blocking or major ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that reads a critical or high field and fails. With groups of thousands of records, the plain binomial limits almost vanish and every group looks out of control; σz\sigma_z, the real spread between groups measured with the moving rangeMoving range In the p′ chart, the difference between each office's score and the previous one's; its mean divided by 1.128 gives σz, how much more the offices vary among themselves than chance would explain. of zz over the groups ordered by size (Laney’s p′ chart), widens them. With a single group, σz=1\sigma_z = 1. There is one chart per grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., over its 1,000 largest groups; the empty group is left out. There is a signal when pgp_g falls outside its limits.

p′ chart by group · OfficeExample dataShare of records with at least one serious failure, by office size. The curves are the control limits: they narrow for larger offices. The empty group is left out.
  • In control
  • Signal: above the limit
  • Signal: below the limit
  • Control limits
0%10%20%30%40%01,0002,0003,0004,0005,0006,000Records in the officeWith a serious failurep̄ = 19%

Query Group figuresNeeds a grouping field (here, office)

Show the data as a table
OfficeRecordsWith a serious failureLimitsReading
Office 0132021%2.3% – 35.0%In control
Office 0245015%4.9% – 32.4%In control
Office 0360024%6.7% – 30.6%In control
Office 0478019%8.2% – 29.1%In control
Office 0590012%8.9% – 28.4%In control
Office 061,10020%9.8% – 27.4%In control
Office 071,30017%10.5% – 26.7%In control
Office 081,50026%11.1% – 26.2%In control
Office 091,70016%11.5% – 25.7%In control
Office 102,00019%12.1% – 25.2%In control
Office 112,30014%12.5% – 24.7%In control
Office 122,60021%12.9% – 24.4%In control
Office 133,00018%13.3% – 24.0%In control
Office 143,40022%13.6% – 23.6%In control
Office 153,80017%13.9% – 23.4%In control
Office 164,30013%14.2% – 23.1%Signal: below the limit
Office 174,80020%14.4% – 22.8%In control
Office 185,30024%14.6% – 22.6%Signal: above the limit
Office 195,80016%14.8% – 22.5%In control
Office 206,20019%14.9% – 22.3%In control

How to read it. Only points outside the curves are signals. Above: something in that group produces more serious failures than in the others, and its cause is worth findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.. Below: something is done better and is worth copying. Between the curves: normal variation, whatever the ranking says. If every group rises at once, the cause is in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., not in the groups.

Where are most of the records?

ng,seriousgng,ICD‾g=mean⁡i∈g ICDin_g,\qquad \frac{\text{serious}_g}{n_g},\qquad \overline{\text{ICD}}_g = \operatorname{mean}_{i \in g}\ \text{ICD}_i

The fifteen groups with the most records of each grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., with their share with a serious failure (section 12) and their mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (section 8). Records with the grouping field empty make their own group, “(empty)”.

Largest groups · OfficeExample dataThe 15 groups with the most records, the empty office included.
Office 206,200Office 195,800Office 185,300Office 174,800Office 164,300Office 153,800Office 143,400Office 133,000Office 122,600(empty)2,450Office 112,300Office 102,000Office 091,700Office 081,500Office 071,300

Query Group figuresNeeds a grouping field (here, office)

Show the data as a table
OfficeRecordsWith a serious failureMean ICD
Office 206,20019%0.85
Office 195,80016%0.87
Office 185,30024%0.82
Office 174,80020%0.85
Office 164,30013%0.88
Office 153,80017%0.86
Office 143,40022%0.83
Office 133,00018%0.86
Office 122,60021%0.84
(empty)2,45031%0.74
Office 112,30014%0.88
Office 102,00019%0.85
Office 091,70016%0.87
Office 081,50026%0.81
Office 071,30017%0.86

How to read it. Read it with the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out.: a large group with a slightly worse share moves more records than a small one with a much worse share. A large “(empty)” is a capture problem in itself.

Which groups moved since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.?

Δg=seriousgng∣this cut−seriousgng∣previous cut\Delta_g = \frac{\text{serious}_g}{n_g}\bigg|_{\text{this cut}} - \frac{\text{serious}_g}{n_g}\bigg|_{\text{previous cut}}

In percentage points, for the groups with records in both cuts; the fifteen with the largest ∣Δg∣|\Delta_g| of each grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. are shown. A positive Δg\Delta_g is worse: more records with a serious failure. The first evaluated cut has nothing to compare with.

Groups that changed most · OfficeExample dataChange in the share with a serious failure since the previous cut, in percentage points: right worsened, left improved.
  • Worsened
  • Improved
Office 03+6.0 ppOffice 08+5.0 pp(empty)+4.0 ppOffice 01−4.0 ppOffice 18+4.0 ppOffice 05−3.0 ppOffice 14+3.0 ppOffice 11−2.0 ppOffice 16−2.0 ppOffice 02+1.0 ppOffice 04−1.0 ppOffice 06+1.0 ppOffice 07−1.0 ppOffice 10−1.0 ppOffice 12+1.0 pp

Query Group figures, 2 cutsNeeds a grouping field (here, office) and a previous cut

Show the data as a table
OfficePrevious cutThis cutChange
Office 0318%24%+6.0 pp
Office 0821%26%+5.0 pp
(empty)27%31%+4.0 pp
Office 0125%21%−4.0 pp
Office 1820%24%+4.0 pp
Office 0515%12%−3.0 pp
Office 1419%22%+3.0 pp
Office 1116%14%−2.0 pp
Office 1615%13%−2.0 pp
Office 0214%15%+1.0 pp
Office 0420%19%−1.0 pp
Office 0619%20%+1.0 pp
Office 0718%17%−1.0 pp
Office 1020%19%−1.0 pp
Office 1220%21%+1.0 pp

How to read it. It shows where to look, not whom to blame: a group can worsen because it took records over from another. Small groups move a lot by chance; check the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. before acting.

How much waits in each group’s queue, and how much is late?

Priorityi,r=max⁡a∈reads(r) ca4 (1−ICDa,i)⏟business impact×closenessaoverduei,r  ⟺  sincei,r+SLAg<cut,SLAg=the group’s, else the grouping field’s, else 30 days\begin{aligned} \text{Priority}_{i,r} &= \max_{a \in \text{reads}(r)}\ \underbrace{\frac{c_a}{4}\,\left(1 - \text{ICD}_{a,i}\right)}_{\text{business impact}} \times \text{closeness}_a\\[6pt] \text{overdue}_{i,r} &\iff \text{since}_{i,r} + \text{SLA}_g < \text{cut}, \qquad \text{SLA}_g = \text{the group's, else the grouping field's, else 30 days} \end{aligned}

A finding is a record ii failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. rr; it needs a record keyRecord key The field or fields of a dataset's mapping that tell one record from another. (the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.’s, or the entity’s). Its priority takes the highest term over the fields the rule reads. closenessa\text{closeness}_a is 0.2 except in a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. with the SFC indicatorSFC indicator The data quality indicator of Colombia's financial supervisor, for the entities it supervises: the share of its cells that meet the 90 % threshold. Quality Data computes it from the same rule results as the ICD when a dataset takes part in it., where it depends on how close the field’s cellCell Each field the optional SFC indicator evaluates: 1 when at least 90 % of the active records have it right, 0 otherwise. is to the threshold (see the optional module). Each finding falls in one queue per grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.: that of the record’s value. since\text{since} is the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. the finding opened at, carried from one cut to the next while the same rule keeps failing on the same record. Per queue, the chart gives:

  • Open: the cut’s findings; overdue, those meeting the condition above.
  • Resolved at this cut: the previous cut’s findings this cut no longer has.
  • Oldest open: the days from the oldest since\text{since} to the cut.
  • Priority: the sum over its open findings.

The fifteen queues with the most open findings of each grouping field are shown. While findings are not yet carried from one cut to the next, every finding counts from the cut shown, and Overdue and Resolved show 0.

Remediation queues · OfficeExample dataOpen findings in each office's queue and, of them, the overdue: open since a cut more than their SLA before this one.
  • Open
  • Overdue
05001,0001,5002,0002,180310Office 202,050520Office 181,620140Office 191,530380Office 171,180260(empty)1,09090Office 161,060150Office 151,020210Office 14

Query Queue findingsNeeds a grouping field (here, office) and a record key

Show the data as a table
OfficeOpenOverdueResolved at this cutOldest open (days)SLA (days)Priority
Office 202,1803106409230171
Office 182,05052041012315186
Office 191,6201405906130118
Office 171,5303803509230129
(empty)1,1802609015330112
Office 161,09090420613077
Office 151,060150300923084
Office 141,020210280923088

How to read it. Red is what to chase first; a high summed priority with few findings means a few costly ones. A finding is resolved only when a later cut stops failing it. How the SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. is set is in Reading the dashboard.

Are there amounts unusual for their group?

xi=log⁡10(amounti),x~g=median⁡i∈g xi,MADg=median⁡i∈g∣xi−x~g∣zi=0.6745 (xi−x~g)max⁡(MADg, 0.10),low  ⟺  zi<−3.5,high  ⟺  zi>3.5\begin{aligned} x_i &= \log_{10}\left(\text{amount}_i\right), \qquad \tilde{x}_g = \operatorname{median}_{i \in g}\ x_i, \qquad \text{MAD}_g = \operatorname{median}_{i \in g} \left| x_i - \tilde{x}_g \right|\\[6pt] z_i &= \frac{0.6745\,\left(x_i - \tilde{x}_g\right)}{\max\left(\text{MAD}_g,\ 0.10\right)}, \qquad \text{low} \iff z_i < -3.5, \qquad \text{high} \iff z_i > 3.5 \end{aligned}

For each group of a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., take the typical amount (the median; with an even number of amounts, the mean of the two middle ones) and how far amounts usually stray from it (the MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers., median absolute deviation). The robust z says how many of those typical distances each amount is away. Median and MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers. are used instead of mean and standard deviation because a few huge amounts would move the mean and hide precisely the unusual cases; the logarithmLogarithm A transformation that counts "how many zeros" a number has: log10 of 1,000,000 is 6. Used with income so that going from 1 to 2 million weighs the same as from 10 to 20. makes doubling weigh the same at any level. Only positive amounts count. Records with the grouping field empty make the “(empty)” group. The 1,000 groups with the most amounts are calculated, and the fifteen with the most outliers are shown.

Example. With amounts of 1, 1.1, 1.2, 1.3 and 50 thousand, the median is 1.2 thousand and the MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers. 0.1 thousand: the extreme value does not inflate it. Taken as logarithms, the MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers. falls below 0.10 and the floor is used: 50 thousand gets a robust z of about 10.9, an outlier, and the other four stay within 0.6 of zero.

Income outliers by group · OccupationExample dataIncomes with a robust z beyond 3.5 below or above within their occupation. Only positive incomes count.
  • Low (z < −3.5)
  • High (z > 3.5)
Self-employed96372Employee124153Retiree21829Homemaker1417Student1113(empty)55

Query Distribution checksNeeds an outlier amount and a grouping field (here, income by occupation)

Show the data as a table
OccupationPositive incomesLow (z < −3.5)High (z > 3.5)Outlier share
Self-employed11,3009630.64%
Employee24,80012410.21%
Retiree7,9002180.37%
Homemaker2,1001430.81%
Student1,6002110.81%
(empty)900050.56%

How to read it. An outlier is not an error by itself: the chart does not tell an error from a legitimate value. Review the groups with the largest share, fix the errors (extra digits, another unit) and keep the legitimate ones. In a group with few amounts the median is unstable: read the count in the table.

17. Drift: population stability index (PSI)

Section titled “17. Drift: population stability index (PSI)”

Did this cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.’s population change from the previous one?

PSI=∑k=110(ak−ek)ln⁡akek{<0.10stable0.10 to 0.25moderate drift>0.25significant drift\text{PSI} = \sum_{k=1}^{10} \left(a_k - e_k\right) \ln\frac{a_k}{e_k} \qquad \begin{cases} < 0.10 & \text{stable}\\ 0.10 \text{ to } 0.25 & \text{moderate drift}\\ > 0.25 & \text{significant drift} \end{cases}

The PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. compares how a drift variable is spread in this cut and in the previous evaluated cut. Each evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. keeps the variable’s percentilesPercentile Percentile 99 (P99) is the value below which 99 % of the data falls. 0 to 100, exact, with linear interpolation between two values. The previous cut’s decilesDecile Deciles split the data into 10 groups with the same number of records. are the ten bins; eke_k is the previous cut’s share in bin kk (about 10 %) and aka_k this cut’s, both read off their percentiles, to a resolution of 1 %. An empty bin counts as 0.0001, so the logarithmLogarithm A transformation that counts "how many zeros" a number has: log10 of 1,000,000 is 6. Used with income so that going from 1 to 2 million weighs the same as from 10 to 20. exists. There is one chart per drift variable, and none on the first evaluated cut.

PSI = 0.16 · moderate driftExample dataThis cut's income in the previous cut's deciles (D1, the lowest-income 10%). If alike, each decile would hold about 10%. Under 0.10 is stable; 0.10 to 0.25, moderate drift; over 0.25, significant drift.
  • Previous cut
  • This cut
0%2%4%6%8%10%12%14%16%D1D2D3D4D5D6D7D8D9D10

Query Distribution checks, 2 cutsNeeds a drift variable (here, income) and a previous cut

Show the data as a table
DecilePrevious cutThis cut
D110%4%
D210%5%
D310%7%
D410%8%
D510%10%
D610%11%
D710%12%
D810%13%
D910%15%
D1010%15%

How to read it. Blue columns like the grey ones is good. If the blue piles up at one end, the population moved: every record can be valid and the batch still suspect. With moderate drift, review it before using it; with significant drift, look for the cause (a new sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., a change of unit, a loading error). Because of the 1 % resolution, a PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. near 0 is approximate.

Which fields are missing most, and what shape do their values take?

emptya=#{i:ai empty}n,commonest shapea=#{i:shape(ai)=fa∗}#{i:ai filled}\text{empty}_a = \frac{\#\{i : a_i \text{ empty}\}}{n}, \qquad \text{commonest shape}_a = \frac{\#\{i : \text{shape}(a_i) = f^{*}_a\}}{\#\{i : a_i \text{ filled}\}}

A value is empty if it is null or only spaces. A value’s shape turns each digit into 9 and each letter A to Z, upper or lower case, into A; every other character (spaces, hyphens, @, accented letters) stays as it is, and it is cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. at 40 characters. Repeats are not compressed: a ten-digit mobile number is 9999999999. fa∗f^{*}_a is the commonest shape among the filled values (on a tie, the first in alphabetical order). The table adds the distinct values.

Profiling: the emptiest fieldsExample dataEmpty is null or only spaces. The shape turns each digit into 9 and each letter A to Z into A, cut at 40 characters.
Landline41.2%Email8.4%Mobile phone3.1%Home address2.2%Activity code1.6%Date of birth0.4%City code0.2%Name0.0%

Query Field qualityNeeds nothing: it applies to every dataset

Show the data as a table
FieldEmptyDistinctCommonest shapeOf the filled
Landline41.2%28,400999999992.0%
Email8.4%45,100AAAAAAAA@AAAAA.AAA6.1%
Mobile phone3.1%51,300999999999999.2%
Home address2.2%49,800AAAAA 99 # 99 - 9912.0%
Activity code1.6%286999981.3%
Date of birth0.4%17,9509999-99-9999.6%
City code0.2%4129999997.5%
Name0.0%50,900AAAA AAAAAAA3.2%

How to read it. An empty field may be optional: compare it with the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. A commonest shape far below 100 % suggests mixed formats, except in free fields such as e-mail or name, where it is normal; a code that lost its leading zero shows as a shorter shape. It is profiling: it shows no values, only shapes.

Only for a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. that takes part in the indicator of Colombia’s Superintendencia Financiera (SFCSuperintendencia Financiera de Colombia Colombia's financial supervisor. Its data quality indicator applies only to the entities it supervises.): see the optional module.

cella=1[correcta≥⌈0.90⋅active⌉],SFC=mean⁡a cella\text{cell}_a = \mathbf{1}\left[\text{correct}_a \ge \lceil 0.90 \cdot \text{active} \rceil\right], \qquad \text{SFC} = \operatorname{mean}_a\ \text{cell}_a

An active record is correct in a field’s cellCell Each field the optional SFC indicator evaluates: 1 when at least 90 % of the active records have it right, 0 otherwise. when the field is filled and no ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that reads it fails.

SFC indicator: 6 of 10 cells passExample dataEach row is a cell: it is 1 when at least 90% of active records have the field right. The band (80–90%) is where the fewest fixes turn a cell from 0 to 1.
  • Passes (cell = 1)
  • Fails (cell = 0)
Top priority70%75%80%85%90%95%100%90%✓ Document number✓ Name✓ Date of birth✓ City code✓ Total income✓ Occupation✕ Mobile phone✕ Home address✕ Email✕ Activity code

Query SFC cellsNeeds the dataset takes part in the SFC indicator

Show the data as a table
FieldCorrectCell
Document number99%1
Name98%1
Date of birth96%1
City code93%1
Total income92%1
Occupation91%1
Mobile phone87%0
Home address84%0
Email81%0
Activity code76%0

How to read it. Red cells inside the 80–90 % bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). are where the fewest fixes turn a cell from 0 to 1; green ones just above 90 % are at risk. More in Reading the SFC indicator chart.

Quality Data · Method

From results to indicators

How a rule's result becomes conformity, the ICD, the IGCD and a band, how to read each one, and the decision it supports.

Every indicator Quality Data shows comes from one sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.: the result of each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on each record of a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. This page follows that result up to the figures people read, and says what each figure answers and what to do about it. The exact formulas are in Formulas; where each figure appears on the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., in Reading the dashboard.

  1. Per rule

    1. 1Rule resultsEach record fails, passes or does not apply
    2. 2ConformityThe share of the records a rule applies to that pass
  2. Per record

    1. 3Field ICDIts own rules, rules across fields, its age
    2. 4Record ICDIts fields, weighted by priority
  3. Per entity

    1. 5Entity ICDThe records of one customer or company
    2. 6BandGood, fair or poor
  4. Per dataset

    1. 7IGCDThe mean, the one figure to follow
  5. People

    1. 8DecisionWhere to fix, update or look for a cause
From a rule's result to a decision: results per record give each rule's conformity and each field's ICD; fields add up to a record's ICD, records to an entity's, with its band; entities to the dataset's IGCD; people read them to decide. Each step links to its section.

For each record, a rule fails, passes or does not apply. A record the rule does not apply to is left out of that rule’s figures: it is neither a pass nor a failure. That keeps a missing value from counting once per rule, and keeps a rule written for some records (companies, closed accounts) from looking better because of the records it ignores. More in Concepts: evaluation.

A ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s conformity is the share of the records it applies to that pass. It answers how well each requirement is met, and it is the figure to review rules with: a rule with very low conformity means either that the data is wrong or that the rule is badly posed. Overall conformity, on the trend by cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., is the share of all rule checks that passed.

Conformity counts checks, not records, and treats every rule alike. The ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. weighs what matters.

The ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index) is a score from 0 to 1 for each field of each record. It joins up to three components, each telling a different reason why a value is not reliable:

Component It comes from When it is low, the value…
C · conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. The rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that read only this field is wrong by itself: empty, badly formed, repeated
S · consistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). The rules that read this field with others contradicts another field
A · timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. The time from the record’s update date to the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. may be right, but is old and trusted less

C and S weight each failing rule by its severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity.: a blocking failure costs more than a minor one. A loses half its value for each year without an update, and applies only to fields whose value goes out of date, such as an e-mail or an address, and only when the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has an update date. A component with nothing to measure, such as no rule applying, leaves the score, and the others share its weight.

A record’s ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. averages its fields’ ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., weighting each field by its priority: a critical field weighs four times a low one.

An entity is whoever the records are about, such as a customer or a company, known by the field holding the entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it.. When one entity has several records, its ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. takes, for each field, the mean of its records, except for critical fields, where it takes the worst: one bad identity document is enough to doubt the entity. Without an entity key, the figures stop at records.

The IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (overall data quality index) is the mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. at a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: over its entities when it has an entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it., otherwise over its records. It is the one figure to follow over time, on the Conformity and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut chart. A rise means the data became more reliable; a fall with no new errors usually means data going out of date.

Each entity falls into a band by its ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.:

Band ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. What it says
Good ≥ 0.90 The record can be relied on
Fair 0.75 – 0.90 Usable, with some fields to fix or update at the next contact
Poor < 0.75 Too many problems to rely on without checking

Bands make the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. actionable. An organisation decides what each band means for its own processes, for example which records an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case. goes to first, or which segmentSegment The commercial group a customer belongs to; it defines the offer and the service. needs its capture form reviewed. A tall pile of entities just below a limit is cheap to move: a few fixes per entity change their band. Bands need an entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it..

A findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.’s priority says which failures cost most: the weight of the field it fails (its priority over four) times what the field’s ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. lacks from 1. A failure on a critical field that is already doubtful comes before a minor one on a reliable field. Each remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. sums its open findings’ priority, so a queue with few but costly findings stands out.

Indicator The question it answers The decision it supports
ConformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. of a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. How well is each requirement met? Review the rule or the data; tune rules with their authors
ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. of a field Which data elements are least reliable, and why? Fix a field with low C or S; update one with low A
ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. and bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). of an entity How reliable is the whole record of this customer or company? Where an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case. or a check goes first
IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. Is the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s quality improving? Follow the trend cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. by cut; confirm that fixes held
Priority Which findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. cost most? The order in which a queue is worked
p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group Does this group fail more than normal, or is it noise? Look for a cause at the point of capture only where there is a signal
Outliers by group Is this amount unusual for its group? Review it: fix the errors, keep the legitimate values
PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. by decilesDecile Deciles split the data into 10 groups with the same number of records. Did the population change since the previous cut? The population stability index (PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use.) measures it Review a moved population before using it

Every figure is read at the cut it belongs to, and a chart that compares compares with the evaluated cut before it. What the indicators do not capture is in Assumptions and limits.

Organisations in a regulated sector may also follow an indicator their supervisor measures: see the optional module for regulated financial entities in Colombia.

Quality Data · Method

Assumptions and limits

What the method assumes, which parameters are fixed, and what the indicators do not measure.

Every figure Quality Data shows rests on a few assumptions. Knowing them tells you how far a figure can be trusted and what it cannot say.

  • The rules are the requirements. An indicator is only as good as the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. behind it. A rule that is too strict makes good data look bad; a missing rule leaves an error unseen. The rules proposed when a table is mapped (required, unique, format from a sample) are a first version for the people who know the data to review, not a verdict.
  • The cut is the moment measured. Every date is compared with the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.’s date, never with today. A figure says how the data was on that date: to see a fix, evaluate a new cut.
  • What a rule does not apply to is left out. A rule that applies to few records gives a conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. that swings a lot from one cut to the next: read its count before reading its rate.
  • The mapping says what matters. Field priorities, the entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it., the update date and the fields that go out of date are set when the table is mapped, mostly from the columns’ names. They weight every indicator, and today they cannot be changed from a screen: if one is wrong, ask whoever supports your installation. See Map a table into a dataset.

These values are the same for every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., and no setting changes them today:

Parameter Value
SeveritySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. weights Blocking 1.0, major 0.6, minor 0.3
Component weights of the data reliability index (ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.) ConformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. 0.40, consistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). 0.15, timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. 0.15
Field priorityField priority Critical, high, medium or low: it weights each field in a record's ICD and in a finding's priority (weights 4, 3, 2, 1). weights Critical 4, high 3, medium 2, low 1
Timeliness Loses half its value per year without an update
BandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). limits Good from 0.90, poor below 0.75
Outlier limit A robust zRobust z How many typical distances a value is from its group's normal value: 0.6745 × (value − median) / MAD, robust because it uses the median and the MAD. Above 3.5 the value is flagged as an outlier. beyond 3.5 either way
Population stability index (PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use.) readings Stable below 0.10, significant driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. above 0.25

What can be set is each remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up.’s service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.), the days allowed to fix its findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.: 30 days unless whoever may edit the dataset sets another.

  • Whether a value is true. Without an external sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. to compare with, accuracyAccuracy Quality dimension: the value represents reality correctly. Without an external source it is approximated by plausibility. is approximated by plausibilityPlausibility That a value is believable. A negative net worth or expenses far above income are possible but unlikely: they are confirmed with the customer, not taken as errors. (range, placeholder): a believable wrong value passes.
  • The age of data without an update date. TimelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. needs a field holding the update date and applies only to fields marked as going out of date. Without them, an old value counts as a current one.
  • Why a record fails. A ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. may declare a cause (capture or systemic), but no indicator or queue uses it yet: queues are split by group, not by cause.
  • An entity across datasets. The ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. of a customer is computed within one datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.. The same customer in two datasets has two separate scores.
  • Whether an outlier is an error. The outliers chart finds amounts unusual for their group; telling a probable error from a legitimate value is left to the person who reviews it.
  • How long a finding has been open. FindingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. are not yet carried from one cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the next: every open finding counts from the cut shown, so Overdue and Resolved at this cut read 0.
  • Trends on the first cut. BandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). movements, groups that changed, and the PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. compare with the previous evaluated cut, so on the first cut they have nothing to show.

Described by the method, not calculated yet

Section titled “Described by the method, not calculated yet”

The original method describes some things the product does not calculate today. None of the charts shows them:

  • The ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.’s K, V and T components: the reliability of the channel a value came in through, verification against an external sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., and coherence with transactions. The ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. calculates C, S and A only.
  • Queues split by cause, capture or systemic, and outliers told apart as probable errors or legitimate values.
  • An SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. met against a target. How long each stage of an evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. takes is a system metric in Grafana, with no target to meet.
  • An IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. without timeliness, and weights, severities and thresholds set per datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them..
  • A treatment by band. The product calculates the bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75).; what a band triggers, such as enhanced due diligenceEnhanced due diligence Reinforced verification of a customer because of higher risk, required of regulated financial entities., is the organisation’s decision.

How each figure is calculated is in Formulas; how to read it, in From results to indicators.

Quality Data · Getting started

Getting started: administrator

Get Quality Data installed on a server, sign in for the first time, and give a colleague an account and a policy until they can sign in.

For whoever installs Quality Data and looks after it. At the end the product runs on your server, you can sign in, and a colleague has signed in with the policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. that fits their work.

  1. Administrator

    1. 1InstallThe installer, on a Linux server
    2. 2First sign-inYour password, from the installer's link
    3. 3Outgoing mailSo that activation links reach people
    4. 4AccountE-mail, name and the role User
    5. 5PolicyA ready-made one, by what they do
  2. Colleague

    1. 6Sign-inFrom the e-mail, with their own password
The administrator's path: install, sign in, set up mail, create an account and give it a policy; then the colleague activates the account and signs in. Each step links to its section.
  • A Linux server (Ubuntu, Debian, Red Hat Enterprise Linux or a derivative) with Docker and its Compose plugin, ports 80 and 443 free, and access as root (sudo) for whoever installs it.
  • Access from the server to the internet over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes., the secure web protocol: the server downloads its versions and updates from there. Nothing on the internet connects to the server.
  • The name people will type to reach the product, such as quality.example.org, pointing to the server on your network.
  • Your organisation’s mail server (SMTPSimple Mail Transfer Protocol The standard mail protocol; through it, the organisation's mail server sends colleagues their activation links., the standard mail protocol, or Office 365), to send colleagues their activation links.

Whoever supports your installation runs the Quality Data installer on the server, as root. It checks the server, registers it with its certificate (the only way the server proves who it is when it downloads a version), downloads the version to install, checks its signature, generates the installation’s passwords, starts the product and makes it start with the server. Running it again does only what is missing and keeps the data and the passwords.

Two names and an address go in the installer, and it checks them:

  • The address people type (--domain), such as quality.example.org.
  • The server’s own machine name (--machine-name), the name the installation’s other machines reach it by. It must not be the address people type: the installer refuses the two being equal.
  • The server’s address on the network the joined machines reach it by (--address). Left out, the installer keeps the one it had or takes the address of the server’s default route, and says which.

Running the installer again with a changed setting recreates only the core’s services that read it and restarts the agent, so the change applies at once.

You should see, from them, the address to open and a link to choose your password as the first administrator, with your e-mail. The link works once. If the browser warns about the site’s certificate, ask them which certificate to trust on the computers that will open the product.

Open the link. On Activate your account, type your password in New password and Repeat the new password, following the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. listed, and choose Activate the account. On Sign in, type your Email and Password and choose Sign in.

You should see the product open, signed in as you. If the link expired, ask whoever supports your installation for a new one: they make it on the server.

Accounts are activated by e-mail, so mail comes first. In the menu at the top right, choose Settings, then Outgoing mail. If the card says Not configured, turn on Send mail, pick the Mail provider, fill in the fields (each has its help), use Send test, then Save.

You should see the card on Settings say On, and the test message in your inbox.

In Settings, open Users and access, tab Users, and choose Register user. In New user, type their Email, optionally their name, leave Role as User, and choose Create and send the link.

You should see the account in the list, Waiting for activation, with Nothing under Access. The role Administrator can do everything, without policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer..

On the account’s row, choose Edit. Under Policies attached directly, tick the ready-made policy for their work, and choose Save changes:

They will… Policy
Connect sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., write rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., run cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. quality-steward
Work a remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. quality-analyst
Read dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and indicators quality-viewer
Read dashboards and the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. auditor

You should see the policy under Access. To give the same policies to several people at once, use the Groups tab.

They open the link in their e-mail, choose their password on Activate your account, and sign in. You should see their account become Active. If the e-mail is lost or the link expired, use Resend link.

The installer sets up the application: the web screens, sign-in, settings, updates and its own database. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. tables and taking cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. also need the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., Trino and the orchestrator, which whoever supports your installation adds as modules, and the machines they run on: the lake’s server and at least one Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., which join as described in To add a machine and start once you approve them. If the Explorer in the side bar stays empty and says Could not load. Try again., ask your provider to set them up before the data steward starts.

  • Your data steward goes on with Getting started: data steward.
  • Accounts, groups and policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. in full: Manage users and access.
  • Sign-in through a company directory or an external provider, updates, machines: Mail, sign-in and updates.

Quality Data · Getting started

Getting started: data steward

Connect a source, map one of its tables into a dataset, get its first cut, write a first rule and see its result on the dashboard.

For the person who prepares the data and writes the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. At the end one table of a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. is a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., measured at a first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., with a rule of yours deployed and its result on the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.. The example is the customers table of Concepts.

  1. Data steward

    1. 1SourceIts server and credentials
    2. 2Map a tableThe dataset, its mapping and first rules
  2. Automatic

    1. 3First cutCopied and evaluated on its own
  3. Data steward

    1. 4First ruleWritten, tested and deployed
    2. 5ResultA new cut, then the dashboard
The data steward's path: add a source and map one of its tables; Quality Data takes and evaluates the first cut by itself; write a rule with the tutorial, measure again and read its result. Each step links to its section.
  • An account with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. (see Getting started: administrator).
  • The Explorer in the side bar shows Sources. If it stays empty and says Could not load. Try again., the installation cannot measure data yet: tell your administrator.
  • The source’s server, port, database name, and a user that can read the table. A read-only user is best: Quality Data never writes to a source.

In the Explorer, choose + beside Sources (New source). Type a Name (lowercase letters, digits and _), pick the kind of database under Engine, fill in Server, Port, Database, User and Password, and choose Save.

You should see the source in the Explorer. Open it: a moment later it lists its schemas and tables, and says how many tables it read and when. If it says the source did not accept the connection, choose Edit on it and check the server, port and credentials. The password is stored sealed and never shown again.

Open the table, customers, and choose Map this table. In Map a table of …, check Table, type the Dataset name, such as customers, and choose Map and collect.

You should see a notice that the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. started, and the table marked while Quality Data samples it, proposes the mapping and some first rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., publishes them, copies the data and evaluates it. When it is done, a notice says customers is ready with the number of records evaluated. The sample keeps counts, never values.

The datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. now appears under Lake in the Explorer, as ◆ customers. Open it: its fields with the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. proposed for each, then Cuts, Schedules and Dashboard. Under Cuts, today’s cut is Evaluated, with its records. You did not have to start it: mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. takes the first cut.

The mapping also proposed a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. from the column names, such as Region. There is no screen yet to change the mapping afterwards; if something is wrong in it, ask whoever supports your installation.

Follow the tutorial on your datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.: choose + beside a field (Add a rule to …), write the rule, read it under As read, use Test to run it on the latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., and choose Deploy to take it to main. The tutorial’s example dataset differs from yours; its steps are the same. Without the right to approve, use Save as a draft; someone who may approve reviews it from the field’s History, under Open drafts (Take a change to main).

A cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. is measured with the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main when it is taken, so your new rule counts from the next cut. Under the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Cuts, set If today’s cut is there to Replace it (unless running) and choose Run now.

You should see today’s cut at the top of Cuts, Extracting. The list does not refresh by itself: reload the page and open Cuts again until it reads Evaluating, then Evaluated. Then open Dashboard, keep the latest Cut, and find your rule in Rules with the lowest conformity; the dashboard guide explains it.

The Tasks pages take each job further:

Quality Data · Getting started

Getting started: analyst

Find a dataset's remediation queues, read what a queue shows, and learn what to do about it with the product as it is today.

For the person who gets failing data fixed, for an office, a region or a channel. At the end you know where your group’s queue is, how much is open in it, which fields and rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. make it up, and how to see a fix count. The example is the customers datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. of Concepts, whose queues are split by Region.

  1. Analyst

    1. 1DashboardThe dataset's, at the latest cut
    2. 2Your queueOpen findings of your group, its SLA
    3. 3What failsThe fields and rules behind them
  2. Source system

    1. 4FixMade where the data lives
  3. Analyst

    1. 5CheckThe next cut shows the fix

Each new cut counts the queue again: what was fixed leaves it.

The analyst's path: open the dashboard, find the group's queue, see which fields and rules fail, get the records fixed in the source system, and check the fix at the next cut. Each step links to its section.
  • An account with the quality-analyst policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer..
  • A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. with at least one evaluated cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., from your data steward. Without a grouping field a dataset has no queues.

In the Explorer in the side bar, open Lake, then the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., ◆ customers, and choose Dashboard.

You should see the page Dashboard of customers, with the Cut selector at the top on the latest evaluated cut. If it says that no cut has been evaluated yet, ask your data steward to run one.

Scroll to Remediation queues: one chart per grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., such as Remediation queues · Region, with a column per group. Its table has, for each group:

  • Open: the findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. waiting, each a record failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. at this cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..
  • Priority: the open findings’ summed priority; high with few findings means a few costly ones.
  • SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. (service level agreement): the days the queue has to fix a finding, 30 unless your data steward set another under Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another., below the charts.
  • Overdue, Resolved at this cut and Oldest open: see below what they show today.

More in Reading the dashboard: remediation queues.

On the same dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., Fields with the most failures and Rules with the lowest conformity say which fields and rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. produce the findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.. For examples of failing records, open the rule in the Explorer, under its field, and choose Test: the Result tab shows its counts at the latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and a few records of each outcome. They are records of the whole datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., not only of your group, masked. Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you show their values whole with Show values and a purpose, and every view is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..

Quality Data only reads. The records are corrected where they live, in the source system, by whoever captures or owns them; tell them which ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. fails and why, as As read says it.

A findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. is resolved when a later cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. no longer fails it. Wait for the next scheduled cut, or under the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Cuts choose Run now (with Replace it (unless running) if today’s cut is there). Once it is Evaluated, pick it in Cut: your group’s Open should drop.

The product does not yet list the records of a queue, nor carry a findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. from one cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the next. So today a queue shows counts only, and Overdue, Resolved at this cut and Oldest open read 0, because every open finding counts from the cut shown. Use Open, its change from cut to cut, and the examples from Test.

Quality Data · Getting started

Getting started: indicators

For managers and compliance readers, open a dataset's dashboard, pick a cut and read its first indicators.

For managers and compliance readers, who follow the quality of the data without touching it. At the end you have read a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s overall figure at a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., whether it is getting better, and where its failures are. The example is the customers dataset of Concepts.

  1. Manager or compliance reader

    1. 1DashboardOne per dataset, in the Explorer
    2. 2CutThe date the figures are about
    3. 3TrendConformity and IGCD by cut
    4. 4Where it failsBy dimension, field and rule
The reader's path: open a dataset's dashboard, pick a cut, read the trend of conformity and IGCD, then see where the failures are. Each step links to its section.
  • An account with the quality-viewer policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., or auditor, which also reads the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy.. Neither shows a record’s values: the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. shows totals only.
  • A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. with at least one evaluated cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., from your data steward.

In the Explorer in the side bar, open Lake: each datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. is a line marked ◆. Open ◆ customers and choose Dashboard.

You should see the page Dashboard of customers. If it says that no cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. has been evaluated yet, ask your data steward to run one.

The Cut selector at the top lists the evaluated cuts, the latest first. Every chart shows the cut you choose, and figures are always worked out at that cut’s date, so an old cut keeps saying what it said on its day.

You should see the charts redrawn for that date. A chart appears only when the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. gives it what it needs, so two datasets may show different charts. More in Reading the dashboard: before you read a chart.

Start with Conformity and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut: a line for the share of ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. checks that passed, and one for the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (overall data quality index), the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s one figure to follow over time, from 0 to 1. Rising is good. Point at a dot to see its value; the table under the chart has every cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. The axis does not start at zero, so check the table before calling a step a change. More in Conformity and IGCD by cut.

Then read, at the same cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.:

  • Failures by dimension and severity: which kind of quality fails (completenessCompleteness Quality dimension: the data is present when it must be., validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list)., timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today.…) and how seriously.
  • Fields with the most failures: where to look first.
  • Remediation queues, when the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.: how much is waiting in each group.
  • Read the dashboard to answer a question: from whether quality is getting better down to the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and the group.
  • Personal data and the audit trail: with auditor, who saw values from sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it..
  • Reading the dashboard: every chart, what it answers and what to do about it.
  • From results to indicators and Formulas: what the figures mean and how they are worked out, with an example of each chart drawn with made-up data.

Quality Data · Getting started

Tutorial: your first rules

Write a dataset's first rules step by step: a required field, a format, a condition, a list, dates against the cut, a rule across fields, reuse, and taking them to main.

This tutorial writes the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. of one field, then a few more, explaining each choice as it comes. It takes about half an hour. By the end you will know how a rule is read, why it fails, passes or does not apply, and how it reaches main.

Every key used here is described in Rule language, and every patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. in Rule patterns. The datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., its fields and its values are synthetic.

A dataset of customers, clients, whose mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. has these fields:

Field Holds
ClientType PERSON or COMPANY
Mobile A mobile phone number
Occupation EMPLOYEE, STUDENT, RETIRED…
Employer The employer’s name, for employees
BirthDate The customer’s birth date
LastUpdate When the customer’s data was last updated
HasIncome YES or NO
Status ACTIVE or CLOSED
ClosedOn When the customer’s account was closed
RepDocument A company’s legal representative’s document

The rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. check the dataset at a cut: the date its data was taken. Keep that in mind; it comes back in step 6.

  • The datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. is mapped: its fields are in the Explorer, under Lake. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. a table is done once, by whoever manages datasets, and it takes the dataset’s first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. by itself, so Test has data to run on: see Map a table into a dataset.
  • If the data of that first cut could not be extracted, Test says the dataset has no cut extracted yet: take one with Run now, under the dataset’s Cuts, as Run and schedule cuts explains.
  • Your permissions: Edit rules on the dataset to write rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. (without it, the + beside a field does not show); Approve rules and mappings and Manage datasets to deploy to main. With only the first, you save draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. that someone else approves.

Each field has its own rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. file, named as the field: Mobile.yaml. In the Explorer, + beside Mobile opens it (new if there is none) with a rule ready to fill. A file always starts by naming its datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.:

dataset: clients
rules:
dataset: clients
rules:
- id: MOB-01
field: Mobile
check: required
alert: The client has no mobile number

Four keys, and each says one thing:

  • id names the rule for good. Results are kept by it over time, so keep it when the rule changes.
  • field is the field it checks.
  • check is the pattern: here required, the field has a value.
  • alert is what the person who fixes the record reads. Write it for them.

Nothing else is needed: required already has a dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. (completenessCompleteness Quality dimension: the data is present when it must be.) and a severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. (blocking). Empty means no value, an empty text, or only spaces; a filler the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. declares, such as UPDATE, counts as empty too.

Look at As read beside the editor: it says the rule in words. Read it every time you write one; it is the quickest way to catch a rule that does not say what you meant.

- id: MOB-02
field: Mobile
check: format
pattern: \d{10}
alert: The number does not have ten digits

format takes your own pattern, a regular expression that must match the whole value (here, ten digits), or a named format Quality Data maintains, such as email.

Notice what happens with an empty mobile: MOB-01 fails, and MOB-02 does not apply. Every rule gives one of three results for a record: it fails, it passes, or it does not apply. PatternsPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. other than required skip an empty value, so a missing mobile is counted once, by the rule that exists for it.

- id: MOB-02
field: Mobile
check: format
pattern: \d{10}
alert: The number does not have ten digits
examples:
fails: [{ Mobile: "12345" }, { Mobile: "555010123A" }]
passes: { Mobile: "5550101234" }
skips: { Mobile: null }

examples are records the rule must fail, pass and skip. Writing them makes you say what the rule must do, and tells whoever reviews it the same; the editor does not run them yet, so check the rule’s behaviour with Test (step 10). Write at least one of each for any rule with a condition.

5. A rule with a condition: the employer of an employee

Section titled “5. A rule with a condition: the employer of an employee”

Only employees have an employer. A rule for Employer, in Employer.yaml:

dataset: clients
rules:
- id: EMP-01
field: Employer
check: required
when: Occupation = 'EMPLOYEE'
severity: major
alert: The employer is missing for an employee
examples:
fails: { Occupation: EMPLOYEE, Employer: "" }
passes: { Occupation: EMPLOYEE, Employer: ACME LTD }
skips: { Occupation: STUDENT, Employer: "" }
  • when is a condition in plain SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. (Structured Query Language). Where it does not hold, the rule does not apply: a student without an employer is not a failure.
  • severity: major changes the patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.’s default (blocking): the record is usable, with reservations. SeveritySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. weights a failure in the indicators.
  • Texts compare trimmed and without telling upper from lower case, so 'employee ' matches as well.

If many rules share a condition, such as “only people”, declare it once as a population in the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., reglas_globales.yaml:

dataset: clients
populations:
individuals: ClientType = 'PERSON'

Then any rule says population: individuals. With both when and population, both must hold.

The customer’s data must have been updated within the last 13 months, in LastUpdate.yaml:

dataset: clients
rules:
- id: UPD-01
field: LastUpdate
check: fresh
max_age: 13 months
alert: The contact data was not updated in the last year

“Within the last 13 months” means before the cut, never before today. A cut measured again next year gives the same result. When you need the cut in an expression, write :cut; as a bound alone, quote it:

- id: BIR-01
field: BirthDate
check: range
min: "1900-01-01"
max: ":cut"
alert: The birth date is not plausible

The occupations that come with an income, declared once in the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset.:

lists:
income_occupations: [EMPLOYEE, SELF-EMPLOYED, RETIRED]

and checked in Occupation.yaml:

- id: OCC-01
field: Occupation
check: domain
in: { list: income_occupations }
when: HasIncome = 'YES'
alert: The occupation does not generate income

A short list can go inline (in: [EMPLOYEE, RETIRED]). Over 50 values, lint asks you to make it a catalog table (QR103).

Some checks are about two fields together. implies says: when one condition holds, another holds too.

- id: END-01
field: ClosedOn
check: implies
if: Status = 'CLOSED'
then: not is_empty(ClosedOn)
alert: A closed account needs the date it was closed

implies skips nothing: its conditions decide what an empty value means, so say it with is_empty(x). As read marks the rule as cross-field, because it reads more than its own field.

9. Write a check once, use it in many fields

Section titled “9. Write a check once, use it in many fields”

Several fields hold documents with the same form. Write the check once as a named rule in the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset.:

named:
valid_document:
check: format
pattern: \d{5,12}
severity: major
alert: The document has 5 to 12 digits

and start each field’s ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. from it with extends, changing only what differs:

- id: REPDOC-01
field: RepDocument
extends: valid_document
when: ClientType = 'COMPANY'

A change to valid_document changes every rule that extends it, at the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. Before you change or remove one, read Share rules across fields.

Fix what lint marks, choose Test to run the file on the latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., and read the counts: if a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. fails on half the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., read it again. Then choose Deploy, or Save as a draft if you may not approve. How each step goes, and what it can refuse, is in Write, change and test a rule and Take a change to main. The rules on main are the ones the next cut is evaluated with.

You wrote What happens Write instead
required and on_empty: fail together Lint error: it does not apply required alone
A date compared with today Not possible :cut
max: :cut unquoted YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. reads it as something else max: ":cut"
A new id after changing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. Its history starts again Keep the id
A rule in another field’s file Lint warning QR210 Move it to its field’s file
No alert Lint warning A sentence for whoever fixes the record
  • Rule language: every key, expressions and their functions, and what Quality Data decides for every ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version..
  • Rule patterns: the fourteen patternsPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition., one by one.
  • Lint findings: every message of the editor’s checker.
  • The Tasks pages, from Write, change and test a rule to Export and import rules: sharing rules, draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it., history.

Quality Data · Tasks · Data

Tasks: connect a source

Which databases Quality Data reads, what to ask your database administrator, and how to add, check, edit and remove a source.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. Anyone with quality-analyst or auditor sees the sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. and their tables but cannot change them. The first time through is in Getting started: data steward; this page is the fuller account.

Today a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. can be a PostgreSQL, MySQL or SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server database. Quality Data reads tables; spreadsheets and files cannot be a source yet.

The Engine list in the form also shows oracle and openedge. They are not ready yet: a source of either kind cannot be read today.

  • The server’s name or address, and its port if it is not the usual one (5432 for PostgreSQL, 3306 for MySQL, 1433 for SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server).
  • The database name.
  • A user and password that can read the tables you want to measure. Ask for a read-only user: Quality Data never writes, but a user that cannot write makes that certain.
  • That the database accepts connections from the servers Quality Data runs on, including its workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., which are the ones that connect.
  • For SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server, any extra connection settings the server needs, such as how to encrypt the connection; they go in Options.

Each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. reads the whole table it measures, so a large table means a heavier read: agree with the administrator on a quiet hour for scheduled cuts.

It reads, and only when asked:

  • the list of schemas, tables and columns, with their types, when the source is saved and each time someone lists it again;
  • a sample of a table when it is mapped, of which it keeps counts, never values;
  • the whole table at each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., copied into its own store, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.;
  • a page of records when someone opens a table’s Records.

It never writes, changes or deletes anything in the source. Removing a source or a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. in Quality Data leaves the database as it was.

The user and password are stored sealed (encrypted) in Quality Data’s own database. Nobody sees them again, not even an administrator: editing the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. shows them empty. They never appear in logs or notices. A workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. receives them only for the job that needs them.

When you change the password, the previous one is kept as well: if the source still refuses the new one, a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. tries the previous one. This lets your database administrator change the password without stopping the cuts for a moment. Every change of credentials is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., never their value.

  1. In the Explorer, in the side bar, choose + beside Sources (New source).
  2. Type a Name: lowercase letters, digits and _, starting with a letter, such as customers_db. It cannot be changed later.
  3. In Engine, pick the entry that starts with postgres, mysql or sqlserver.
  4. Fill in Server, Database, User and Password, and Port if it is not the usual one. Fields marked * are required; the form lists those still missing.
  5. Choose Save.

You should see the source in the Explorer, under Sources. Open it: Quality Data connects at once and lists its tables. The source shows its database, then its schemas and tables, and a line that says how many tables it read and when.

There is no separate test button: listing the tables is the test. Open the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. in the Explorer and choose List again. The line under the source goes through Connecting to the source…, Reviewing its schemas…, Reading the columns… and Loading the tables…, then says how many tables it read and when.

If the listing cannot connect, it tries again by itself, three times in all, and says so (Retrying, attempt 2 of 3…). After the last attempt it shows the reason: see Problems.

Open a table to see its columns and their types. A table no datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads yet is marked not read, and one that has disappeared from the source, gone. To find a table among many, type part of its name in Filter by schema, table or column.

Choose Records beside a table. Pick what to Read (the first or last 1,000, or all of them 1,000 at a time) and, if you want, a column to Order by, then Read. The records come straight from the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., as they are now, every value masked. With permission to see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail., Show values shows them whole with a purpose and, if you want, a reference, and each page shown is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. (To show values whole).

  1. Open the source in the Explorer and choose Edit.
  2. Change what you need. The user and password show empty with Stored: leave it empty to keep it.: leave them empty to keep them, or type new ones.
  3. Choose Save.

Quality Data lists the tables again with the new settings. The next cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. of every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. that reads the source use them.

  1. Open the source in the Explorer and choose Delete.
  2. In Delete the source …, read the warning and choose Delete.

The source and its credentials, the previous version too, are gone. A source cannot be removed while a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads it: remove those datasets first, as Map a table into a dataset explains, or keep the source.

What you see What it means and what to do
No + beside Sources, and no Edit or Delete Your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not let you manage sources. Ask your administrator for quality-steward.
The source did not accept the connection: check its server, port and credentials. The server could not be reached, or refused the user. Check the fields with Edit. If they are right, ask the database administrator whether the workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. can reach the server and the user can sign in.
The tables could not be read. Check the source’s connection, and refresh. The listing gave up after three attempts. Fix what the message before it says, then List again.
The source’s catalog could not be read. or The listing could not finish. The list of tables could not be read. Check with the database administrator that the user can see the schemas, then List again. If it persists, tell whoever supports your installation.
Its tables have not been read yet. Nobody has listed the source. Choose List again.
Only the first ones are shown: search for the one you need. The source has more tables than the Explorer shows. Type part of the name in the filter.
The name is not valid., The port is not valid., … is missing. The form refused a field. Fix it and save again.
A SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server source was saved, but a message says its catalog was not created Quality Data could not prepare the connection to it. Choose Save again to retry.
It cannot be deleted: these datasets read it: … Remove the datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. named, or keep the source.
On deleting, a message says the source’s catalog was not dropped Nothing was deleted. Try again.
Could not load. Try again., and the Explorer stays empty The installation cannot measure data yet. Tell your administrator.

Map a table into a dataset, then Run and schedule cuts.

Quality Data · Tasks · Data

Tasks: map a table into a dataset

What mapping decides, the field roles and what each switches on, what the automatic proposal does, what can be changed afterwards, and removing a dataset.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. The sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. must be connected first (Connect a source). The first time through is in Getting started: data steward; this page is the fuller account. The example is the customers table of Concepts.

  1. Data steward

    1. 1Map and collectYou pick the table and name the dataset
  2. Automatic

    1. 2Sample10,000 records profiled, counts only
    2. 3PublishThe mapping and proposed rules, on main
    3. 4First cutToday's data copied into the lake
    4. 5EvaluateA notice says the dataset is ready
Mapping a table: you choose the table and the dataset's name; Quality Data samples the table, publishes the mapping and the rules it proposes, takes the first cut and evaluates it. Each step links to where it is explained.

Mapping turns one table of a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. into a dataset. Its mapping says:

  • The fields: one per column of the table, named as the column, each with its type (text, number, date…).
  • The record key: the field or fields that tell one record from another, taken from the table’s primary key. Without a record keyRecord key The field or fields of a dataset's mapping that tell one record from another. (or an entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it.), failing records cannot be followed, and the remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. stay empty.
  • Each field’s priority: critical, high, medium or low, which weights the field in a record’s ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index). Mapping sets every field to medium, so all weigh the same.
  • The roles of some fields, which switch charts and queues on.

A role tells Quality Data what a field is for. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. proposes them from the column’s name and its sample: a role proposed for the wrong column, or missed, changes which charts appear.

Role What it is Proposed for Switches on
Grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. A field whose values are groups that fix their own data: an office, a region, a channel A text column named like office, branch, advisor, product, channel, region or zone, with up to 500 different values The Remediation queues, one per value, and the charts by group: p′ chart by group, Largest groups, Groups that changed most
Entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it. Who the record is about, such as a person’s or company’s identity document A column that looks like an identity document, or named like document type Distribution of the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. by entity and How entities moved between bands
SegmentSegment The commercial group a customer belongs to; it defines the offer and the service. A kind of customer or product, with few values A text column named like client type or segment, with up to 12 values With an entity key, Data condition by segment
Update date When the record was last updated A date column named like update or modified Update recency
Outlier amount An amount where unusual values are sought A number column named like income, amount, balance or value With a grouping field, Outliers by group
DriftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. variable A number whose population is compared from one cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the next, with the PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. (population stability index) A number column named like income, age, rate or term PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. by deciles

The names are recognised in English and Spanish. Entity key, segment, update date and outlier amount go to one field at most: the first column that fits. Two more roles belong to an optional sector indicator and are never proposed. Charts that need no role appear for every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them..

Mapping also marks fields whose value goes out of date, such as an e-mail, a phone, an address, an income or an employer, by their names: the time since the last update lowers their ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD..

  1. In the Explorer, open the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., then the schema, until you see the table, marked not read.
  2. Open the table and choose Map this table.
  3. In Map a table of …, check Table (schema.table, as the source names it) and type the Dataset name: lowercase letters, digits and _, starting with a letter, such as customers. The name cannot be changed later.
  4. Choose Map and collect.

You should see the notice MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. customers: you will be told when it is ready. and a turning circle beside the table; point at it to read the step it is on and since when: waiting for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., sampling the table, collecting its data, evaluating the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. When it is done, a notice says customers is ready: 12,000 records evaluated. It stays until you close it.

The notices come only while Quality Data is open in your browser. If you close it, nothing is lost: the dataset appears under Lake once it is published, and its first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. under its Cuts.

  1. It reads a sample of 10,000 records of the table and keeps counts: how many are empty, how many different values, lengths. It never keeps a value.
  2. It proposes the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.: the fields and their types, the record keyRecord key The field or fields of a dataset's mapping that tell one record from another., the roles, the priorities.
  3. It proposes rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. for each field: required when no record of the sample is empty and the column does not allow empty values; unique on the primary key; format for a column that looks like an e-mail, a mobile number or an identity document. Each is named MAP-001, MAP-002… with severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. major.
  4. It publishes the mapping and those rules directly on main, the approved version: there is no draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. to approve.
  5. It takes the first cut, today’s, and evaluates it with those rules.
  • The dataset: under Lake in the Explorer, as ◆ customers, with the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. and table it reads. Open it: a line per column, with its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. under it; a column with none is marked no rules.
  • The first cut: under the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Cuts, Evaluated, with its records.
  • The grouping fields: on the dataset’s Dashboard, below the charts, Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. (the service level agreements, the days each queue has) shows one block per grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.. If it says The dataset’s mapping has no field with the dimension role: its findings have no queue., none was proposed (the form calls a grouping field a dimension).
  • The other roles: by the charts on the Dashboard; each chart appears only when its role is there (Reading the dashboard).

No screen shows the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. itself yet: its roles, priorities and key are seen only through what they switch on.

  • The rules: write, change and remove them as with any ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.; see the tutorial and Write, change and test a rule.
  • New columns: when the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table gains columns, open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. after List again on the source: the new ones show as not read. Map the whole table, under the dataset, adds them as fields, at once, ready for rules, with no role and medium priority.
  • The roles, the priorities, the record key and the types cannot be changed yet: there is no screen for it. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. the table again proposes the same, so it does not help. If something in the mapping is wrong, ask whoever supports your installation.
  1. In the Explorer, right-click the dataset (◆ customers under Lake, or its table in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.) and choose Delete.
  2. Read what goes, type the dataset’s name under To confirm, type, and choose Delete.

The mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. leave main (the rules catalogRules catalog Where Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main.’s history keeps them); the schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., results and the dataset’s copy in the lake are deleted. The source’s table is not touched and can be mapped again. It cannot be undone, and it is refused while one of its cuts is being extracted or evaluated.

What you see What it means and what to do
No Map this table on the table A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads it already: the table shows → and the dataset’s name.
There is a dataset with that name already. Choose another name.
Check the table, the dataset or the sample. The name is not valid, the table is not in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s last listing (List again on the source, and try again), or your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not let you manage datasets.
… could not be mapped. The sample could not be read; nothing was published. Check the source’s connection (Connect a source) and map again.
…‘s data could not be collected. or …‘s rules could not be evaluated. The dataset was published, but its first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. failed. See When a run fails.
The circle stays on queued, waiting for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. No worker is taking jobs. Tell your administrator.
… was not deleted: one of its cuts is being collected or evaluated. Wait for it to end. Wait until the cut is Evaluated or Failed, then delete again.
Not deleted: the name typed is not …. Type the dataset’s name exactly.

Run and schedule cuts to measure the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. again, and the tutorial to write its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version..

Quality Data · Tasks · Data

Tasks: run and schedule cuts

What a cut is, running one now and the same-day options, schedules, following a run through its stages, what to do when it fails, and where the history is.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., runs cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and manages schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…. An analyst, with quality-analyst, can also run a cut now. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. a table takes its first cut by itself (Map a table into a dataset); this page is about every cut after it.

A cut is a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s data as it was on one date. Quality Data copies the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table into its own store, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., and evaluates that copy with the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main at that moment. A dataset has at most one cut per date.

Results are compared at the cut, never with today: a rule such as “updated within 24 months” counts back from the cut’s date, and the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. compares a cut with the evaluated cut before it. So a cut keeps saying what it said on its day, and two cuts tell you how the data changed between them. A new rule counts from the next cut; earlier cuts stay as they were evaluated.

  1. You or a schedule

    1. 1StartRun now, or a schedule fires
  2. Automatic

    1. 2ExtractingWaits for a worker, then copies the source's table into the lake
    2. 3EvaluatingEvery rule on main, on every record
    3. 4EvaluatedThe results, on the dashboard
The life of a cut: Run now or a schedule starts it; a worker copies the table into the lake (Extracting), then runs the rules on it (Evaluating); the cut is Evaluated and its results reach the dashboard. If either stage fails, the cut is Failed: see When a run fails.
  1. In the Explorer, under Lake, open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. (◆ customers), then Cuts.
  2. Leave If today’s cut is there on Do nothing, or see the next section.
  3. Choose Run now.

You should see Cut 2026-11-12 queued: extracted, then evaluated. and today’s cut at the top of Cuts, Extracting. The date is today’s in the installation’s time zone.

There is one cut per date, so a second run on the same day must say what to do with the first. If today’s cut is there offers:

  • Do nothing, the default: today’s cut is kept as it is, and the notice says The cut … is there and was not replaced. Use it when a cut a day is enough, so that nobody replaces it by mistake.
  • Replace it (unless running): today’s cut is taken again, with the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s data as it is now and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main now; the notice says Cut … replaced: extracted again. Use it after deploying a rule you want to see today, after the source’s data was fixed, or to retry a cut that failed. A cut still extracting or evaluating is never replaced.

Only today’s cut can be taken again. A cut of an earlier date cannot be run again.

  1. Open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. in the Explorer and choose + beside Schedules (Add a schedule to customers).
  2. In New schedule, keep Daily chosen, with Repeat every set to 1, and set Start and Time, such as 06:00, a quiet hour for the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it..
  3. Check Timezone: it starts on America/Bogota; choose your organisation’s.
  4. Keep What it fires on Extracts the cut and evaluates it, and choose If the cut is there, as for Run now.
  5. Keep Enabled ticked. The line beside the buttons says the schedule in words; check it, then choose Save.

You should see the schedule under Schedules, described in words, with next and the date and time it fires next. A scheduled cut is dated with the day it fires, in the schedule’s time zone.

Other frequencies work the same way: Weekly (every so many weeks, on the days you tick), Monthly (the months, then days of the month or, with On, a day such as the first Monday), Once, or Custom (cron) for a five-field cron expression. Advanced settings add a random delay, a repetition within the day, and an expiration date.

  • Change it: choose its description under Schedules, change the form and choose Save.
  • Pause it: open it the same way, untick Enabled and save. It shows Disabled and fires nothing until you tick it again.
  • Remove it: choose × beside it and confirm. A schedule that has already fired cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. cannot be removed: pause it instead.

Under the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Cuts, each cut shows its date, its state and, once evaluated, its records:

  • Extracting: the cut is waiting for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., or a worker is copying the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table into the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources..
  • Evaluating: the copy is complete and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main are running on every record.
  • Evaluated: done. Its results are on the dataset’s Dashboard.
  • Failed: see the next section.

The list does not refresh by itself: reload the page and open Cuts again to see the cut move on. A scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…’s last outcome shows beside it: Queued, Replaced, Blocked (the cut was there and was kept) or Skipped (late).

A cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. that fails shows Failed and, beside it, Failed extracting or Failed evaluating, followed by a short technical reason, in English, that names the step where it stopped. It never holds your data. Before failing, Quality Data retries the step by itself, three times in all.

  • Failed extracting: the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table could not be copied. Check the source as in Connect a source: a changed password, an unreachable server, a table renamed or removed. Then run the cut again with Replace it (unless running).
  • Failed evaluating: the data was copied but the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. could not run on it. A rule that reads another datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. needs that dataset to have records at the same date, and the reason then names it: take that dataset’s cut first. Then run the cut again with Replace it (unless running). If it fails again, tell whoever supports your installation, with the dataset, the date and the reason shown.

Nothing warns you of a failed scheduled cut yet: look at Cuts after the time it should have run.

  • Cuts lists the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s 60 most recent cuts, newest first, with their state and records.
  • The Dashboard’s Cut selector lists every evaluated cut, and Conformity and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut follows conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. and the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (overall data quality index) over the last twelve. How long each stage of the evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. took is a system metric, shown in Grafana.
  • Who ran a cut by hand, and every change to a scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, is in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., which the auditor policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. reads (Personal data and the audit trail).
What you see What it means and what to do
No Run now under Cuts, or no + beside Schedules Your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not let you run cuts, or manage schedules. Ask your administrator.
The cut … is there and was not replaced. Today’s cut exists, or is still running. Choose Replace it (unless running), or wait for it to finish.
It cannot run: this dataset is read from no source, its data was loaded into the lake. The datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has no sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. to copy from, so it cannot be cut.
A cut stays Extracting for a long time No workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. is taking it. Tell your administrator.
Delete this schedule? …, then It has fired cuts: disable it instead of deleting it. Untick Enabled instead.
That timezone does not exist., The cron is not valid., That cron never fires again. Fix the field named and save again.
A schedule shows Skipped (late) It was due while the installation was stopped, longer ago than the installation allows (24 hours by default); it fires again at its next time.
This dataset has no cut extracted yet: extract one in Cuts to test., in the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. editor No cut has been copied yet. Run one now.

Quality Data · Tasks · Rules

Tasks: write, change and test a rule

Find a dataset's rules, add one to a field, change or remove one, read what the editor says about it, and test it on the latest cut before it counts.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., writes rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and takes them to main. Anyone whose policy lets them see the rules (quality-analyst, quality-viewer, auditor) can open, read and test them, but not save. The first time through, follow the tutorial; how a rule is written is in Rule language and Rule patterns. The example is the customers datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. of Concepts.

Each field has its own rules file, named as the field: the rules of Email are in Email.yaml. What several fields share, such as a list of values or a check written once, is in the dataset’s Global rules (Share rules across fields). Only the rules on main, the approved version, are evaluated.

In the Explorer, under Lake, open the dataset (◆ customers): each field lists its rules by id, and a field with none is marked no rules. The ▤ beside the dataset opens its Rules page: every rule on main in words, with its patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition., dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity., what makes it fail and its file.

  1. Choose ▤ beside the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them..
  2. Type in Search an id, a field or words of what fails, such as e-mail, or narrow the list with Pattern, Dimension or Severity.
  3. Choose the rule’s Id.

You should see the field’s file in the editor, at that rule, with the file’s name in a tab above it. A file whose rules cannot be read is named at the top of the Rules page, with its errors.

  1. In the Explorer, open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and choose + beside the field (Add a rule to Email).

  2. The field’s file opens (new if it had none) with a rule added at the end, ready to change:

    - id: Email-01
    field: Email
    check: required
  3. Change the patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. under check, add what it needs, and write an alert: the sentence whoever fixes the record reads. For example:

    - id: EML-02
    field: Email
    check: format
    named: email
    alert: The e-mail address is not valid
  4. Read the rule under As read (next section), then test it.

Nothing is saved yet: the tab shows ● and the head says Unsaved changes; Restore takes the file back as it was.

Open it from the Explorer or the Rules page, change it, and test it. Keep its id: results are kept by it from cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to cut, so a new id starts the rule’s history again. A rule changed today counts from the next cut; earlier cuts stay as they were evaluated.

The file is checked as you type, without data. A mark on the line shows where something is wrong; beside the editor, four tabs:

  • Problems: the errors and warnings, each with its message, its code (such as QR003) and its line; choose one to go to it.
  • Style: how the file is written. Tidy fixes most of it at once, keeping comments and values; Ctrl+Z undoes it.
  • As read: each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. in words: what it applies to, when it fails, when it does not apply. Read it every time: it is the quickest way to catch a rule that does not say what you meant.
  • Result: the last test (below).

An error blocks saving and deploying; a warning does not.

  1. Put the cursor on the rule, or anywhere outside a rule to test the whole file.
  2. Choose Test.

It runs the text as it is, unsaved, on the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., and nothing it finds counts anywhere. It waits for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. first, then shows in Result, for each rule: Applies, Fails, Passes, Does not apply and Conformity, then up to 10 records of each outcome, and the failures grouped by the value’s shape (a digit as 9, a letter as A). Values come masked; if your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. (quality-analyst does, quality-steward does not), Show values shows them whole with a purpose, and every view of whole values is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. (To show values whole). In the Explorer, the rule then shows ✓ if it passed, or how many records failed.

A test’s result is kept for a day: after that, Result says This test’s result is no longer kept (results are kept for a day). Test again., and Test runs it anew.

If a rule fails on most records, read it again before it counts.

With quality-steward the button is Deploy: it shows what the linterLinter The checker that reads a rules file as it is typed, without data, and marks its errors, which block saving and deploying, and its warnings. (the checker) finds, which rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. the file adds, removes or changes, and the change line by line; choose Deploy again to confirm. You should see Deployed to main: the rules are under their field now. Without the right to approve, the button is Save as a draft. Both are in Take a change to main. The rule counts from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: run one now with Run and schedule cuts.

  1. In the Explorer, right-click the rule under its field and choose Delete rule.
  2. Read the dialog (Delete the rule EML-02): it shows the file without the rule. Choose Deploy.

You should see The rule EML-02 deleted; the field’s history undoes it. It is a deploy like any other, so only whoever may deploy sees Delete rule; the field’s history can bring it back. A rule that a list of fields gives several of cannot be removed from the tree: open its file and take it out there.

What the editor says What to do
The field … is not in the dataset, maybe with Did you mean …? (QR003) Write the field’s name exactly as the Explorer shows it.
Another rule already uses the id … (QR009) An id is unique in the whole datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.: choose another.
The parameter … is missing (QR006), The pattern … does not take the parameter … (QR005) Look up the patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. in Rule patterns.
There is no population named … (QR004), or list, table, reference Declare it in the global rules, or fix its name.
The YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. cannot be read: … (QR001) The file’s layout (YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written., the format rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. are written in) is broken where it says: an indent, a quote left open, a # inside a value.
The rule has no alert: … (QR021), a warning Add an alert. A rule added with + has none until you write it.
It checks the same as …: each failure would count twice (QR020) Remove one of the two.
The condition never holds: … (QR023) Its when or population excludes every record: check it.
This rule is about …: it goes in its own file, … (QR210) Move it to the file named.
The file has … rules and … lines: … (QR100) Over 30 rules or 300 lines: move some to their fields’ files.

Every code is listed in Lint findings.

What you see What it means and what to do
No + beside the fields, and no Deploy or Save as a draft Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you read the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., not change them.
Deploy greyed, Fix the errors to save. An error is in Problems: fix it.
Fix the errors to test. The same, before a test.
This dataset has no cut extracted yet: extract one in Cuts to test. Run a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. first (Run and schedule cuts).
The test stays on …queued, waiting for a worker to take it… No workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. is free. If it lasts, tell your administrator.
The file changed on main since you opened it: open it again. Someone deployed this file meanwhile. Keep a copy of your change, reload the page, and make it again on the file as it is now.
EML-02 cannot be deleted from here: …, after Delete rule The rule is not written alone in its file: open it in the editor.

Quality Data · Tasks · Rules

Tasks: share rules across fields

Declare once what several fields use, write a check once and reuse it with extends, change a shared check safely, and move older rules files to one file per field.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. The global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. are a rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. file like any other: written, checked and taken to main as in Write, change and test a rule. What each section means is in Rule language: what the dataset declares once.

Each datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has one Global rules file, reglas_globales.yaml, beside its fields’ files. It declares once what several fields use, and every file of the dataset sees it as if it declared it itself:

  • populations, lists, placeholders, derived fields, references to other datasets and combination tables;
  • named rules: a check written once, which a field’s ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. takes with extends.

It has no rules of its own: each rule stays in its field’s file. A name means one thing in the whole dataset, so a list or population declared in the global rules is not declared again in a field’s file.

In the Explorer, open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. (◆ customers) and choose ◆ Global rules, its first line. If the dataset has none yet, the editor opens an empty one, dataset: customers, and saving or deploying creates it.

  1. In the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., add the list:

    dataset: customers
    lists:
    regions: [NORTH, SOUTH, EAST, WEST]
  2. Deploy it (Deploy, then Deploy again to confirm).

  3. In Region.yaml, use it:

    - id: REG-01
    field: Region
    check: domain
    in: { list: regions }
    alert: The region is not one of the organisation's

Deploy the global rules first: a field’s file is checked with the global rules on main, so until then the editor says There is no list named regions (QR004). The same holds for a test.

Say customers has two e-mail fields, Email and WorkEmail, checked the same way.

  1. In the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., under named, write the check with everything but id and field:

    named:
    valid_email:
    check: format
    named: email
    severity: major
    alert: The e-mail address is not valid
  2. Deploy the global rules.

  3. In each field’s file, start the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. from it with extends, and change only what differs:

    - id: WEM-01
    field: WorkEmail
    extends: valid_email
    severity: minor

At the extends line the editor says the rule as it results, such as As valid_email: it applies to …; it fails when …, and As read shows it whole. A named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. needs a patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. (check) and cannot extend another.

A change to a named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. changes every ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. that extends it, from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., without touching their files. Two things to know before you deploy:

  • The confirmation of the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. lists no rules: it says No rule changes what it checks: only how the file is written changes. even when a named rule changed, because the rules that change are in other files. Nothing lists the rules that extend a named rule yet: search the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Rules page (▤) for words of what it fails on.
  • The global rules are checked alone. A named rule removed while a field still extends it leaves that field’s file unreadable: the Rules page then names the file at the top with … is not a named rule of the table’s global rules. So first change or remove the rules that extend it, one field’s file at a time, then remove the named rule.

A Test of a field’s file uses the global rules on main: test a rule that extends the named rule right after you deploy, and if it is wrong, undo the change from the global rules’ history (See a rule’s history and undo a change).

A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. whose rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. were written before files went by field may have files that hold several fields’ rules. Split by field, beside Global rules in the Explorer, rewrites them on a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it.: each rule in its field’s file, the declarations and the checks several fields share in the global rules, and fields named as their columns.

  1. Choose Split by field.
  2. You should see Draft made: review it with ⎇ beside the dataset.
  3. Review and approve it as in Take a change to main, from the ⎇ beside the dataset.

main does not change until the draft is approved, and the split is refused unless the very same rules still run. Renaming fields changes the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., so it needs the right to manage the dataset, which quality-steward gives.

What you see What it means and what to do
… is not a named rule of the table’s global rules (QR012) The name after extends is wrong, or the named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. is not deployed yet.
… is already declared by the table’s global rules: … (QR013) A field’s file declares a name the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. declare: take it away from the field’s file, or rename it.
The global rules have no rules of their own: … (QR014) Move the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. to its field’s file.
… repeats what … already says: it is not needed (QR211), a warning The rule repeats a key of its named rule with the same value: remove the key.
There is no population named … (QR004), or list, table, reference Declare it in the global rules and deploy them before the file that uses it.
The rules are already split by field. Nothing to do.
… has errors: fix them before splitting Fix the file named, deploy it, and split again.
Split, the rules would not be the same: nothing was split The split would change what is checked, so it was not made. Move those rules by hand.
Two fields would take the name …: …, Which field rule … of … is about cannot be told Fix as the message says, or move those rules by hand.

Quality Data · Tasks · Rules

Tasks: take a change to main

The two ways a change reaches main, deploying it or saving it as a draft for review, who may do which, and reviewing, approving and discarding a draft.

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., deploys and approves. A ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. author whose policy lets them edit rules but not approve them saves draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it.. Writing the change itself is in Write, change and test a rule.

Only the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on main, the approved version, are evaluated. A change gets there in one of two ways:

  • Deploy: whoever may approve takes a file straight to main, after reading what the linterLinter The checker that reads a rules file as it is typed, without data, and marks its errors, which block saving and deploying, and its warnings. (the checker) says and what changes.
  • A draft: whoever may only edit saves the change apart, as a draft; someone who may approve reviews it, then approves or discards it.
  1. Rule author

    1. 1Save as a draftThe change is kept apart; main does not move
  2. Approver

    1. 2ReviewHistory, Open drafts, Review: the changes and any errors
    2. 3ApproveThe draft goes into main; or Discard it
  3. Automatic

    1. 4Next cutEvaluated with the rules on main
From a draft to main: the author saves the change as a draft, an approver reviews it from the field's history and approves or discards it, and the next cut is measured with what is on main. Whoever may approve goes straight to main with Deploy, after the same check.
To… The policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. needs Among the ready-made policies
Open, read and test rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. View rules All of them
Save as a draft, Save on the draft Edit rules quality-steward
Deploy, Approve, Delete rule, restore, undo, import Approve rules and mappings and Manage datasets quality-steward
Discard a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. Manage datasets quality-steward

quality-steward gives all of them, so a steward deploys. On a file opened from main, whoever may deploy sees Deploy, never Save as a draft. For authors whose changes someone else approves, an administrator makes a policy of their own (New policy, under Policies) that allows Edit rules, View rules and View datasets, but not Approve rules and mappings.

Nothing stops an approver from approving a draft they saved themselves: review by someone other than the author is not built yet.

  1. With the file open from main and your change made, choose Deploy.
  2. Read the dialog Deploy Email.yaml to main: the errors that block it, the warnings to look at, which rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. it adds, removes or changes, and the change line by line (Side by side or Unified).
  3. Choose Deploy.

You should see Deployed to main: the rules are under their field now. The change is in the field’s history, under your account. It counts from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. (Run and schedule cuts).

  1. With your change made, choose Save as a draft.
  2. You should see Saved on the draft., the tab marked draft, and the head saying You are editing a draft: what you save stays on it until it is approved. Version shows the draft chosen instead of main.
  3. Go on changing the file and choose Save on the draft as often as you like; each save is kept.
  4. Tell whoever approves which datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and field: nothing warns them of a new draft yet.

A draft changes one field’s file, or the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset.. To change another field, open its file from main and save a draft of its own. A field can have several open drafts; to go back to one, open the field’s file and choose it under Version.

  1. Open the field’s file in the editor and choose History. While the field has drafts, the button shows how many.
  2. Under Open drafts, each draft shows its id, the account that saved it and the date. Choose Review.
  3. Read it in its two tabs:
    • Changes: the draft as a line of saves, newest first, down to Left main. The whole draft shows everything it changes against main; a save shows what that save changed.
    • Files: the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., marked Reads or not, and each rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. file with No errors or its errors. Edit opens the file on the draft.

A draft of the whole datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., such as one made by Split by field, is reviewed the same way from the ⎇ beside the dataset in the Explorer.

  • Approve takes the draft into main. It is greyed with To approve it, the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. must read and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. must have no errors. until both hold. You should see Draft approved: main now has the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. customers., and the change in the field’s history.
  • Discard deletes the draft without it reaching main, after Discard this draft? It is deleted without going into main. You should see Draft discarded.

Either way the draft leaves Open drafts. An approved change counts from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

What you see What it means and what to do
2 errors: it cannot be deployed, in the dialog The file has errors: Cancel, fix them, deploy again.
The linter found errors: nothing was deployed. The same, found as it was sent.
The file changed on main since you opened it: open it again. Someone deployed this file meanwhile. Keep a copy of your change, reload the page, and make it again on the file as it is now.
Not saved: the file has errors. A draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. is not saved with errors either: fix them first.
This draft is another column’s: open the file from main to start this one’s. A draft holds one field’s file: open this field’s file from main and save a draft of its own.
main changed this dataset since it was proposed: discard it and propose again. The field’s file (or, for a draft of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., the dataset) changed on main after the draft was made, for example by another approved draft. Discard it and make the change again from main.
It conflicts with main: discard it and propose again. The same remedy.
The mapping does not read or the rules have errors. Fix the file on the draft (Edit), save, and approve again.
You may not do this. Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. does not let you approve, or discard.
That draft is no longer there. Someone approved or discarded it meanwhile.

See a rule’s history and undo a change, and Run and schedule cuts to measure with what is now on main.

Quality Data · Tasks · Rules

Tasks: see a rule's history and undo a change

Read every change to a field's rules on main, see what each one changed, go back to an earlier version, undo the last change or bring back a deleted rule.

Who does this: anyone who may see the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. reads their history. Going back needs the right to deploy, which the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. gives: restoring and undoing are deploys of their own (Take a change to main).

Every change that reaches main is kept, by file: deploys, approved draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it., deleted rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., restores and undos, and the rules that mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. the table proposed. Nothing on main is ever erased; going back is one more change on top.

Changing a rule’s history does not change past cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: each cut keeps the results of the rules it was evaluated with. A version restored today counts from the next cut.

  1. Open the field’s file in the editor (from the Explorer, or a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s Id on the Rules page).
  2. Choose History.

You should see History of Email.yaml, with Open drafts first and then Approved changes on main, newest first. Each change shows a short code, the account that made it, its date and time, and a line saying what it was, such as catalog: edit customers/Email.yaml. Open one to see the file before and after it, Side by side or Unified.

The global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. have a history of their own, from ◆ Global rules. The ⎇ beside the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. in the Explorer opens the dataset’s: its mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.’s changes and the draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. of the whole dataset.

  1. In the field’s history, open the change whose version you want back.
  2. Choose Restore this version. It is offered on every change but the newest, which is the version on main already.
  3. Read the dialog as for a deploy: errors, warnings, which rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. change, and the change line by line. Choose Deploy.

You should see Version deployed to main., and the restore at the top of the history.

An earlier version is checked against the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. as it is now. If it names a field the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. no longer has, or a named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. no longer declare, the dialog shows the error and it cannot be deployed: open the file, restore the rest by hand and deploy.

  1. In the field’s history, open the newest change.
  2. Choose Undo this change and confirm with Deploy.

The file goes back to how it was before that change. Undoing the file’s very first change leaves it with no rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. Only the newest change has Undo this change: to go back further, use Restore this version on the change before the one you want gone.

Delete rule is a deploy of the file without the rule, so it is in the field’s history like any change. If it is the newest, Undo this change brings the rule back; if not, Restore this version on the change just before it. Other changes made since are lost with the restore, so check the line-by-line view before you deploy.

  • No view says who last changed each line of a file: open the changes one by one.
  • History is by file: there is no history of one ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. across files, nor of every field at once.
  • Who deployed, approved, discarded or restored is also in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., which the auditor policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. reads (Personal data and the audit trail).
What you see What it means and what to do
No Restore this version or Undo this change Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you read the history, not deploy. Or the change is the newest (only Undo).
No changes on main. The file has never been on main: it is new, or only a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. has it.
2 errors: it cannot be deployed, in the dialog The version does not fit the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. as it is now; see above.
The file changed on main since you opened it: open it again. Someone deployed this file meanwhile: close the history, reload the page and look again.

Quality Data · Tasks · Rules

Tasks: export and import rules

Download a dataset's rules as files, and take rules files back in, each one checked and confirmed before it reaches main.

Who does this: anyone who may see the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. exports them. Importing deploys, so it needs the right to deploy, which the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. gives (Take a change to main).

Use it to keep a copy of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s rules outside Quality Data, to carry them from one installation to another (a test one to the one in use), or to edit many files at once in your own editor.

  1. In the Explorer, choose ▤ beside the dataset to open its Rules page.
  2. Choose ⤓ Export .zip.

You should see a download named like customers-reglas-2026-11-12.zip: every rules file of the dataset as main has it, one file per field and the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., reglas_globales.yaml, if it has them. It holds neither the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. nor any draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it..

  1. On the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Rules page, choose ⤒ Import.
  2. Pick one or more .yaml files, or a .zip such as an export.
  3. For each file that would change main, one after another, a dialog Import Email.yaml (1 of 3) shows what a deploy shows: errors, warnings, which rules it adds, removes or changes, and the change line by line. Choose Deploy to take it, or Cancel to leave it out.

You should see at the end Import finished: 2 of 3 files deployed to main. Each file deployed is a change in its field’s history, which can be undone like any other (See a rule’s history and undo a change). The rules count from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

What an import takes:

  • Files are taken by name. A file goes over the dataset’s file of the same name, inside a .zip too, whatever folder it is in. A name is letters, digits, _ and -, ending in .yaml; anything else, .yml included, is left aside and named in a notice.
  • A new file must be a field’s own or the global rules. WorkEmail.yaml can be added if the dataset has a field WorkEmail; a file named after no field is refused.
  • Files the same as on main are skipped, and a file main has but the upload lacks is left as it is: an import adds and replaces, never removes. To remove rules, delete them, or deploy their file without them.
  • Every file is checked against this dataset. Rules carried from another dataset or installation fail where they name a field this one lacks: fix the file and import it again.

An import always deploys: it cannot save a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it..

What you see What it means and what to do
No ⤒ Import beside ⤓ Export .zip Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. does not let you deploy.
Nothing to import: the files are the same as main. Every file uploaded is already on main as it is.
Left aside (not rules files): … Those files were not taken: rename them to <field>.yaml.
The uploaded file could not be read: is it a .zip or a .yaml? The .zip is damaged, or not a .zip.
2 errors: it cannot be deployed, in a file’s dialog Cancel it, fix the file, and import it again.
Email.yaml: The file changed on main since you opened it: open it again. Someone deployed that file during the import: import it again.
extra.yaml: Could not save. Try again. Usually a new file named after no field of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.. Check the name against the fields in the Explorer.

Quality Data · Tasks · Results

Tasks: read the dashboard to answer a question

Open a dataset's dashboard, choose the cut, and follow a question from whether quality is getting better down to the field, the rule and the group where it fails.

Who does this: anyone who follows the quality of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.. Every ready-made policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. can read the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.: quality-viewer and auditor for managers and compliance readers, quality-analyst and quality-steward for those who act on it. The dashboard shows totals, never a record’s values. This page is the order to read it in; Reading the dashboard explains each chart on its own.

  1. In the Explorer in the side bar, open Lake: each dataset is a line marked ◆.
  2. Open the dataset, ◆ customers, and choose Dashboard.

You should see the page Dashboard of customers, with the Cut selector at the top and the charts under it. The same charts are in the Quality tab of the table the dataset reads, opened from Sources in the Explorer.

  • The dataset. Each dataset has its own dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.. To compare two datasets, open each one’s; there is no dashboard across datasets.
  • The cut. Cut lists the dataset’s evaluated cuts, the latest first. Every chart shows the cut chosen, worked out at that cut’s date, never today’s, so an old cut keeps saying what it said on its day. Charts that compare (bandsBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75)., groups that changed, driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI.) compare it with the evaluated cut before it.

To see what changed between two dates, read the trend first, then choose each cut in turn and compare the tables under the charts. More in Before you read a chart.

A question about a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. usually goes from the whole to the detail: is it getting better, what kind of problem, where, which ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., which group. Each step is one or two charts at the same cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

  1. The dashboard, at the cut you choose

    1. 1Better or worse?Conformity and IGCD by cut
    2. 2What kind?Failures by dimension and severity
    3. 3Where?Fields with the most failures
    4. 4Which rule?Rules with the lowest conformity
    5. 5Which group?The groups' charts and the queues
A question followed down the dashboard: first whether quality is getting better, then what kind of problem dominates, in which fields, which rules produce it, and which groups. Each step links to its section.

Read Conformity and IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. by cut: the share of ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. checks that passed, and the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (overall data quality index), the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s one figure, from 0 to 1, over the last twelve cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. Rising is good. The axis does not start at zero, so read the values in the table under it before calling a step a change; a jump together with a jump in records usually means a different population, not better data. More in Conformity and IGCD by cut.

Read Failures by dimension and severity: completenessCompleteness Quality dimension: the data is present when it must be., validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list)., timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. and the other dimensionsDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., split into blocking, major and minor. Start with blocking and major. Many completeness failures point at how the data is captured; many timeliness failures at data nobody has updated. More in Failures by dimension and severity.

Read Fields with the most failures, then Fields with the lowest ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index). A field with many failures may simply be the most checked: its table says how many rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. read it. A field low in ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. but with few failures is usually old rather than wrong. Emptiest fields shows which fields are missing most, as shapes, never values. More in Fields with the most failures and Fields with the lowest ICD.

  1. Read Rules with the lowest conformity: each rule with its field, dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity., the records it applies to and its failures. A rule that applies to few records swings a lot from cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to cut.
  2. To see what the rule checks, open it in the Explorer, under its field (◆ customers, then Email, then EML-02): As read says it in words.
  3. To see examples, choose Test. The Result tab shows the rule’s counts and a few records of each outcome. It runs on the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s latest cut, whatever cut the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. shows.

Values in Result come masked; if your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail., as quality-analyst does, Show values shows them with a reason: see Personal data and the audit trail. Low conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. means the data is wrong or the rule is badly posed: check the rule with its author before anyone fixes thousands of records. More in Rules with the lowest conformity.

When the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., such as Region, the charts by group are drawn once for each grouping field:

  • p′ chart by group: which groups fail more than normal, and which only look worse by chance. Only dots outside the curves are signals. See p′ chart by group.
  • Largest groups and Groups that changed most: where most records are, and which groups moved since the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. before.
  • Remediation queues: how much is waiting in each group. Working a queue is in Work a remediation queue.
  • Which records make up a figure: no chart opens the records behind it. Test on a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. gives examples from the latest cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..
  • A chart that needs a field roleField role What a field is for in a dataset's mapping, such as a grouping field. the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. does not give, such as a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. or an update date: there is no screen yet to change the mapping.
  • A copy to take away: charts cannot be exported or downloaded yet.
What you see What it means and what to do
No cut of this dataset has been evaluated yet. Nothing to chart yet. Ask your data steward to run a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. (Run and schedule cuts).
A chart’s name followed by no data for this cut The chart applies to the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. but this cut gave it nothing, such as a first cut with nothing to compare with. It is not zero.
A chart you expected is not there The dataset’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. lacks the field it needs: see Before you read a chart.
Could not load. Try again. Reload the page. If it stays, ask your administrator whether your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you view results for this dataset.
No Explorer in the side bar Your policies let you see neither rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. nor sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it.. Ask your administrator.
Your group is not in Remediation queues The chart shows the fifteen groups with the most open findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.: see Work a remediation queue.
Rules with the lowest conformity shows ”—” for a rule The rule applied to no record at this cut.

Quality Data · Tasks · Results

Tasks: work a remediation queue

What a remediation queue is, setting its SLAs, reading its counts, finding what fails, getting it fixed in the source system and confirming the fix at the next cut, with the limits of today's product.

Who does this: an analyst, with the quality-analyst policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., works a queue: reads it, looks at failing records with their values, and runs a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to check a fix. A data steward, with quality-steward, sets each queue’s SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.. The first time through is in Getting started: analyst; this page is the fuller account.

A finding is a record failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. at a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: a customer failing two rules is two findings. A remediation queue gathers the findings of one value of a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.: with Region as the grouping field, North is one queue and South another, and records with no region make the queue (empty). A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. with two grouping fields has two sets of queues, and each finding is in one queue of each.

Each queue has a service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.): the days it has to fix a finding before the finding is overdue, 30 unless a steward sets another.

A dataset has queues only when its mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. has a grouping field and a record keyRecord key The field or fields of a dataset's mapping that tell one record from another.; mapping a table proposes both. The dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. shows, for each grouping field, the fifteen groups with the most open findings, in the chart and in its table alike: a group with fewer is not listed.

  1. Analyst

    1. 1FindYour group's queue, and the fields and rules behind it
    2. 2See examplesTest on a rule: a few records of each outcome
  2. Source system

    1. 3Fix at the sourceWhoever owns the records corrects them there
  3. Automatic

    1. 4Next cutA schedule, or Run now
  4. Analyst

    1. 5ConfirmOpen drops at the new cut

What still fails at the new cut stays open: start again from what remains.

The remediation cycle: you find your group's queue and what makes it up, look at examples, have the records fixed in the source system, and the next cut confirms it. Quality Data only reads: nothing is fixed inside it.
  1. Open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Dashboard in the Explorer (◆ customers, Dashboard) and keep the latest Cut.
  2. Scroll to Remediation queues · Region: a column of open findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. per group, and the table under it.
  3. Find your group’s row:
    • Open: its findings at this cut.
    • Priority: the open findings’ priority added up. High with few findings means a few costly ones, in important fields with a low data reliability index (ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.) (Formulas §15).
    • SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.: the queue’s days.
    • Overdue, Resolved at this cut and Oldest open: they read 0 today. The product does not yet carry a finding from one cut to the next, so every open finding counts as opened at the cut shown: none is old enough to be overdue, and none is seen to close.

So today the figure to work with is Open, and how it changes from one cut to the next.

A data steward does this; the form shows only to policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. that may edit the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s pipeline, as quality-steward does.

  1. On the dataset’s Dashboard, below the charts, open Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.. Its note calls the grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. a “dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern.”: each box is one grouping field, named after it (Region).
  2. In Every group (days), type the days for every group of that field, from 1 to 365. Leave it empty to keep 30.
  3. For a group that needs other days, choose Add a group and type the Group exactly as the chart shows it, such as North, and its Days. Leave Group empty for the records with no value. × removes the line.
  4. Choose Save.

You should see SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. saved: the queues show them. and the queues’ chart redrawn with the new SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.. No new evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. is needed. The form saves every line at once: a line you removed goes back to the field’s days. Each save is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..

The dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. says what fails in the whole datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.; nothing yet narrows it to one group’s records.

  1. On the same cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., read Fields with the most failures and Rules with the lowest conformity: the fields and rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. behind most findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it.. Largest groups gives your group’s share of records with a serious failure; p′ chart by group says whether that share is unusual or chance (p′ chart by group).
  2. Open a failing rule in the Explorer, under its field, and read As read: what the rule asks, in words.
  3. Choose Test. The Result tab shows the rule’s counts at the dataset’s latest cut and up to 10 records of each outcome, from the whole dataset, not only your group, masked. With quality-analyst, Show values shows them whole with a purpose (such as Remediation of data), and each view is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..

To look at a record as it is now in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., open the table under Sources and choose Records (Connect a source).

Quality Data only reads: no record is fixed inside it. The records are corrected where they live, in the source system, by whoever captures or owns them. Tell them, for each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.: its id, what As read says, the field, and the example records Test showed, by their record keyRecord key The field or fields of a dataset's mapping that tell one record from another.. Keep values out of e-mails and tickets where your organisation’s rules ask you to.

A fix counts when a later cut no longer fails the record.

  1. Wait for the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s next scheduled cut, or take one now: under the dataset’s Cuts, choose Run now, with If today’s cut is there on Replace it (unless running) when today’s cut exists (Run and schedule cuts).
  2. Reload the page until the cut is Evaluated, then open the Dashboard and choose it in Cut.
  3. Compare your group’s Open with the cut before: choose each in Cut in turn.

You should see Open drop by the findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. fixed. What still fails stays open: go round the cycle again with what remains.

  • A queue’s records. A queue shows counts; it does not list its findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. or their records. Use Test for examples.
  • Findings carried from cut to cut. Until they are, Overdue, Resolved at this cut and Oldest open read 0.
  • Assigning or closing by hand. A finding cannot be given to a person or closed from a screen: the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. is the proof.
  • Warnings. Nothing tells you when a queue passes its SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another..
What you see What it means and what to do
No Remediation queues chart The datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has no grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.. Ask your data steward.
Your group is not in the chart It is not among the fifteen with the most open findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. at this cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..
No Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. below the charts Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. may not edit the dataset’s pipeline, or there are no queues.
The dataset’s mapping has no field with the dimension role: its findings have no queue. The dataset has no grouping field, so there is nothing to set.
Days are a whole number from 1 to 365. Fix the days on the line marked and save again.
A group is set twice in the same dimension. Two lines name the same group under one grouping field: remove one.
A group’s value is too long. A group’s name is longer than any value can be: check what you typed.
A dimension is no longer in the dataset’s mapping: reload the page. The mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. changed since you opened the page. Reload it and set the SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. again.
The dataset has no mapping on main. The dataset is not on main any more. Ask your data steward.
Too many SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. for one dataset. More group lines than a dataset can hold: keep the groups that really differ.
You do not have permission for this. Your policy may not change the SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another..
The catalog does not answer: it cannot be checked now. The store of mappings and rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. is not responding. Try again later; if it lasts, tell your administrator.

Quality Data · Tasks · Administration

Tasks: manage users and access

How access works, the ready-made policies and which to give for each job, creating and removing accounts, groups, policies of your own and service accounts.

Who does this: an administrator: an account with the role Administrator, or one whose policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. allow Manage users (accounts) and Manage groups and policies (groups, policies, and attaching them); among the ready-made policies, quality-admin allows both. Everything here is under Settings (the menu at the top right), Users and access. The first account you create is in Getting started: administrator; this page is the fuller account.

  • The role. An account is an Administrator, which can do everything without policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., or a User, which can do what its policies allow. Only an Administrator can make another account Administrator, or change or delete one.
  • Policies. A policy is a set of allowed actions. A user gets the policies attached to the account and those of its groups, and they add up. A policy of your own can also deny an action; a denial always wins.
  • When it applies. A change of policies or groups applies at once, at the latest within a minute; the person does not need to sign in again.

They come with the product, are marked built-in, and cannot be changed or deleted.

Policy For Allows Does not allow
quality-steward Whoever owns the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. Every data quality action: sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., writing and approving rules, running and scheduling cuts, queue SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another., the console Seeing personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.: values from sources show masked
quality-analyst Whoever works the queues Seeing everything, personal data included, and running cuts Changing sources, rules, schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… or SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.
quality-viewer Managers, dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. Reading dashboards, cuts and rules Sources and their records, personal data, changing anything
auditor Internal control Seeing everything without personal data, and the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. Changing anything
quality-admin Whoever runs the installation Everything, Settings included Changing or deleting an Administrator account, without that role

Every permission, what it lets someone do, and which of these policies holds it is in Permissions.

To let a colleague… Give
Read dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and indicators quality-viewer
Read everything, with values masked, and the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. auditor
Work a remediation queueRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. and see failing records’ values quality-analyst
Connect sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., map tables, run and scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. quality-steward
Approve rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., and set the queues’ SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. quality-steward
Write rules that someone else approves A policy of your own: Take a change to main
Do a steward’s work and also see values quality-steward and quality-analyst together
Manage accounts, groups and settings without being Administrator quality-admin

Seeing values from sources is explained in Personal data and the audit trail.

Creating accounts needs outgoing mail: the account is activated from a link sent by e-mail (Mail, sign-in and updates).

  1. In Users and access, tab Users, choose Register user.
  2. In New user, type the Email, optionally the Name (optional), and choose the Role: User unless they will run the installation.
  3. Choose Create and send the link.

You should see Done: we sent … the link to activate their account (it works for 72 hours). and the account listed as Waiting for activation. When they choose their password it becomes Active. If the link was lost or expired, choose Resend link: the earlier link stops working.

  1. On the account’s row, choose Edit.
  2. Under Policies attached directly, tick or untick policies. Each shows what it is for.
  3. Choose Save changes.

You should see Done: the changes to … were saved. and the policies, and the groups the account belongs to, under Access. An Administrator shows Everything; an account with nothing shows Nothing. The same dialog changes the Name (optional) and the Role; nobody can change their own role.

There is no way to switch an account off and on again. Either:

  • Take its access away, keeping the account: Edit, untick every policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., remove it from its groups, Save changes. It can still sign in, but sees nothing beyond its own account.
  • Delete it: Delete on its row, then confirm Delete the user. The account goes with its sessions and linked accounts, and cannot be brought back; the e-mail can be registered again later.

To give policies to several people: groups

Section titled “To give policies to several people: groups”
  1. In the Groups tab, choose New group.
  2. Type a Name (lowercase letters, digits and -) and a Description.
  3. Tick the people under People added by hand and the Policies the group gives.
  4. If your organisation signs in through its directory, list under Directory groups the directory groups whose members join it at sign-in, one per line (directory sign-in).
  5. Choose Save.

You should see Group … saved. Deleting a group takes from its people what its policies gave them.

  1. In the Policies tab, choose New policy.
  2. Type a Name and a Description.
  3. In Statement 1, keep Effect on Allow and Resources on * (everything), and tick the actions under Data quality and Administration, or Every action.
  4. To narrow it, choose Add statement with Effect on Deny: a denial always wins. A resource such as pipeline/customers limits a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s actions, such as View results or View personal data, to the customers dataset.
  5. Choose Save, then attach it to people or groups.

You should see Policy … saved. and, under Attached to, how many have it. A name or statement that does not hold is refused with a short reason, in English, naming the field.

Anyone can create a token for a script or another system in the Service accounts tab: New service account, a Name, optionally Its own policies and Expires on, then Create. The token is shown once: copy it then. It can do at most what its owner can, and stops working when deleted.

What you see What it means and what to do
Creating users needs outgoing mail: …, Create greyed Set up outgoing mail first (Set up mail).
The account for … was created, but the email did not go out. Check outgoing mail, then Resend link.
There is already an account with that email. That person has an account: find it in the list.
That account is already active. No link is needed: they sign in with their password.
You cannot change your own role. Another Administrator has to.
It is the only administrator: it cannot be deleted. Make another account Administrator first.
You cannot delete your own account. Another Administrator has to.
Only an admin can do that to an admin. Only an Administrator changes or deletes an Administrator account.
The directory (LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work.) sets this account’s name and role. A directory account: change it in the directory.
Only an administrator can change the settings. Your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not allow this.
Check the highlighted fields. A field of New user is not valid, such as Type a valid email.: fix it.

Quality Data · Tasks · Administration

Tasks: personal data and the audit trail

Where values from sources appear, who may see them whole, how to show them with a reason, what is recorded when someone does, how to see who viewed what and why, and what the audit trail covers today.

Who does this: an administrator decides who sees values from sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., with the policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. in Manage users and access. Internal control, with the auditor policy, reads who saw them.

Most of Quality Data shows counts, never a record’s values: the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., the queues, the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.’s sample. Values from sources appear in three places only:

  • Records, beside a table of a source in the Explorer: a page of the table as it is now in the source.
  • Test, in the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. editor: up to 10 records of each outcome, in the Result tab.
  • The Lake SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. console, for data stewards: the rows a query over the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. returns, written in SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. (Structured Query Language).

Values always come masked first, for everyone: each value as •••• followed by its last four characters, or •••• alone when it is four characters or fewer. Only someone whose policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. allow View personal data can show them whole, and only by saying why. Among the ready-made policies only quality-analyst (and quality-admin) allows it; an account with the role Administrator may too. So quality-steward, quality-viewer and auditor work with masked values.

Where Showing whole values needs View personal data on…
Test the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. whose ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. is tested
Records every dataset that reads the table; on all datasets if none reads it yet
The console every dataset

Without the permission the screen says values masked: seeing them whole needs the personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. permission. With it, it says Values masked. and offers Show values.

  1. Above the masked values, choose Show values.
  2. In Show personal data, choose the Purpose:
    • Data quality review
    • Writing or testing rules
    • Remediation of data
    • A client’s request
    • Audit or internal control
    • Other
  3. In Reference (optional), write the ticket or case the view is for, such as INC-2041 or CASO/2026/118: up to 32 characters, letters, digits and - _ / # ., no spaces, with at least one letter. A ticket that is only digits goes with its system’s prefix (T-48213). Never write a name or a document number. With Other it is required: Reference (required with Other).
  4. Choose Show values.

The values show whole, and above them a line says why: Showing values for: Data quality review, INC-2041, with Change and Mask again.

The reason is remembered for that scope in this browser tab: a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. (every page of its tables), a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. (its ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. tests) or the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (the console). The next page, test or query of the same scope shows whole without asking again, and each one is still recorded with the reason.

  • Change asks for another reason; it applies from the next page, test or query.
  • Mask again forgets the reason and masks what is shown.
  • Signing out, the session expiring or closing the tab forgets it too.

If the values cannot be shown (you lack the permission, the read has not ended, or the audit or the service is unavailable), they stay masked: the screen says Values masked. and why, never Showing values for. With a reason remembered, Change opens it to try again or to give another, and Forget reason forgets it.

  • To let them: attach quality-analyst to their account or to a group of theirs (To give or change policies).
  • For one dataset only: a policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. of your own that allows View personal data with the resource pipeline/customers. Test on the customers datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. then lets them show its values; Records only if no other dataset reads the same table.
  • To stop them: take that policy away. It applies at once, at the latest within a minute.

Each time someone shows values whole, Quality Data records who, when, from which address and browser, and what they opened: a page of a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table, a test of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., or a query of the console. With it go the purpose, the reference if one was given, the read’s job, how many rows it showed and the names of the fields it showed. A console column whose name is not a plain name (an alias with a space, a quote or an accent) is recorded by its position, such as #2. If the record cannot be written, the values are not shown.

It never records a value, nor which records or customers a view showed. Masked reads are not recorded as views. Each showing is recorded on its own: a test opened again after reloading the page is recorded again. Views from before reasons were asked have no purpose. There is no way to export personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. from the product.

Quality Data has no screen of its own for the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. yet. Monitoring, the installation’s Grafana, does not show it either: it shows the machines’ logs and metrics and never reads Quality Data’s database. Until there is a screen for it, ask whoever supports your installation for who viewed what, with its purpose, reference, rows and fields.

Recorded Not recorded yet
Sign-ins that succeeded or failed, lockouts and sign-outs Changes to groups, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. and service accountsService account A token for a script or another system to use Quality Data in its owner's name; it can do at most what its owner can.
Password resets, and external accounts linked or unlinked Changes to outgoing mail, directory and external sign-in
Accounts created, edited and deleted, and activation links sent Which records a view showed
SourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. added, changed (a credential as changed, never its value) and removed
RulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. deployed, draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. approved and discarded, mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. started, datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. removed
CutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. run by hand, schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… created, changed and removed, remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. saved
Every view of whole values, with its purpose, reference, rows and fields
Every query run in the console

The trail cannot be exported from the product yet.

What you see What it means and what to do
values masked: seeing them whole needs the personal data permission., in Result Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. does not allow View personal data on this datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them..
The values are masked: … on Records It is missing on at least one dataset that reads the table.
The reference is not a ticket or case number: … Write a ticket or case number such as INC-2041, with no spaces.
With Other, write the reference of the ticket or case. Other needs a reference; or choose the purpose that fits.
The audit is unavailable, so the values cannot be shown: … Nothing was shown or recorded. Try again later.
These values are no longer kept: read them again. A read is kept an hour (a test, a day). Read the page, test or query again.
You may not see this source’s records. Your policy does not let you see this sourceSource A database the organisation already runs. Quality Data reads it and never writes to it..
No Records beside a table The table has gone from the source, or your policy does not let you see sources.

Quality Data · Tasks · Administration

Tasks: mail, sign-in and updates

The rest of Settings for whoever runs the installation, outgoing mail, signing in with the company directory or an external provider, updates, and adding and approving a machine.

Who does this: an administrator: an account with the role Administrator, or one with the quality-admin policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. Each card under Settings (the menu at the top right) shows only to whoever may use it. Accounts, groups and policies are in Manage users and access.

Quality Data sends by e-mail the links that activate accounts and recover passwords, and its notices. The installation has no mail server of its own: it uses your organisation’s. Without it, no account can be created.

  1. In Settings, choose Outgoing mail. The card says Not configured until it is set up.
  2. Turn on Send mail and pick the Mail provider: Office 365 (Microsoft Graph) or SMTPSimple Mail Transfer Protocol The standard mail protocol; through it, the organisation's mail server sends colleagues their activation links. server, the standard mail protocol.
  3. Fill in the fields; each has its help.
  4. Under Send a test email, choose Send test: it uses what is in the form, even unsaved.
  5. Choose Save.

You should see Saved. Outgoing mail is on., the card saying On, and the test message in your inbox. Under Password recovery, The link expires in (minutes) sets how long a recovery link works, from 5 minutes to a day. With mail off, Quality Data sends nothing, no account can be created, and Forgot your password? says recovery is not available.

To let people sign in with the company directory

Section titled “To let people sign in with the company directory”

People can sign in with the account they use at work, through the organisation’s directory, over LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work. (Lightweight Directory Access Protocol), such as Active Directory. Local accounts keep working. The directory names each account and group by its DNDistinguished name The full name of an entry in a company directory, such as a group: CN=Quality,OU=Groups,DC=example,DC=org. (distinguished name), its full name there.

  1. In Settings, choose LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work. / Active Directory.
  2. Tick Allow signing in with directory accounts.
  3. Under Connection, type the Server URL; under Service account, the Account DNDistinguished name The full name of an entry in a company directory, such as a group: CN=Quality,OU=Groups,DC=example,DC=org. and Password of an account that may read the directory; under Users and groups, the Search base (DNDistinguished name The full name of an entry in a company directory, such as a group: CN=Quality,OU=Groups,DC=example,DC=org.) and the User filter. Each field has its help; ask your directory’s administrator for the values.
  4. Under Administrator groups, list the directory groups whose members are Administrators here, one per line.
  5. Under Test the connection, type a colleague’s e-mail and choose Test: it shows their Email, Name, whether they are Administrator, and their Direct groups, without checking any password.
  6. Choose Save.

You should see Saved. LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work. sign-in now uses these settings.

Who can then sign in with the directory:

  • Members of an Administrator groups group, as Administrators.
  • Members of a directory group listed under a group’s Directory groups (groups), as users with that group’s policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. Copy each group’s DNDistinguished name The full name of an entry in a company directory, such as a group: CN=Quality,OU=Groups,DC=example,DC=org. exactly as Test shows it under Direct groups; groups inside groups do not count.
  • Nobody else: they get Invalid email or password., as with a wrong password.

The note under Administrator groups still says that only administrators sign in with the directory: the groups’ Directory groups let other people in too. A directory account shows Directory (LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work.) under Users; the directory sets its name and role at every sign-in. An e-mail that already has a local account keeps signing in with its local password.

To let people sign in with Microsoft, Google or another provider

Section titled “To let people sign in with Microsoft, Google or another provider”

A Continue with … button on the sign-in page can send people to an external provider that speaks OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account. (OpenID Connect).

  1. In Settings, choose OAuth2 / OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account..
  2. Under Add provider, choose + Microsoft Entra ID (type your organisation’s tenant ID in the box first), + Google or + Another OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account. provider.
  3. Copy the Redirect URL (register it at the provider) into the provider’s application settings, and copy from there the Client ID and the Client secret.
  4. For another provider, type its Issuer and choose Discover endpoints.
  5. Choose Save providers.

You should see Saved. 1 provider active on the sign-in page. and, on Sign in, a Continue with … button. A person gets in only if they already have an account with that e-mail (when the provider vouches for it), or once they link the provider under Settings, My account, Linked accounts, Link.

In Settings, choose Updates: the Installed version, its Status, any New version with What’s new, and the History. Before installing, Quality Data waits for running jobs, backs up its database and, if the new version does not start, goes back to the previous one by itself. It does not respond for a few minutes.

  • Now: choose Update now, read the dialog and choose Update. You should see Request sent: it starts in less than a minute, and the progress on every screen.
  • When it updates: choose With approval (each version waits for Update now), Automatic (it installs by itself on the Days, between From and To, when no jobs are running) or Manual (it is installed on the server), set Wait for jobs to finish for up to (min), and choose Save. You should see PolicyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. saved.

In Settings, Execution, choose Add a machine and pick the Role. The list holds the roles the installed modules declare, such as lake (the lake’s server, from the lake module) and trino-worker (a Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., from the query module); with no such module installed it is empty and there is nothing to join yet. A lake pool’s servers are added in Settings, Lake, below. Choose Get the command. You should see the command with Copy, and until when it works: an hour, once. It is shown only this once; copy it before I have copied it, close, or ask for a new one. Whoever supports your installation runs it as root on the new server, which then shows in the list as Pending approval. When there is no installation command for the role, you get the token alone, and the panel says why.

The command also sets up the machine to send its metrics to your installation’s observability server, which Grafana shows. It looks up that server’s address in DNS when it runs: if the address cannot be found it stops, changing nothing, and if the address changes later, get a new command and run it again.

When whoever supports your installation brings the lake’s stack up, it makes the main lake’s admin user and shows, once, on that server’s terminal, an access key (qd-platform-admin) and a secret (64 hex digits), marked SHOWN ONLY THIS ONCE. They are written to no file and never shown again, so they pass them to you right away. In Settings, Lake, under The main lake’s admin user, paste them in Access key and Secret and choose Keep the keys. You should see The main lake’s admin keys are kept. and the access key and when it was pasted. Above it, The main lake says whether Quality Data reaches the lake with those keys: You should see that it answers with the kept keys, and how many of its drives are online and offline. Nothing is changed on the lake.

A lake grows by pools of at least four servers. Before any of them is installed, in Settings, Lake, under The lake’s pool, type in Servers their names, one per line, in order (lowercase letters, digits and hyphens; each must resolve in DNS from the others), and in Drives per server how many drives each has (the same on every server). Choose Save the pool. You should see The pool main is saved. and a table of the servers, each Not joined yet. For a server, choose Command, type the mounted paths of its drives (as many as the pool says) or leave it empty, and choose Get the command: it is shown once, as when adding a machine, and names that server; it joins only under that name. Once a server has joined, the table shows its state and the pool’s servers and drives no longer change. The first pool is always main; adding a second one is not possible yet.

Whoever supports your installation runs each server’s command on that server, as root, one server after another. The pool forms once all of them are up. The last server of the list makes the lake’s admin user and shows its keys once, as in “To keep the main lake’s admin keys”: run its command last. If it ran before the others were up, it says so: once every server is up, get its command again and run it. The other servers say which server makes the user.

Each command looks up the other servers’ addresses in DNS when it runs, and lets only those addresses reach the server’s port for its peers. So get each server’s command again and run it when:

  • a server’s address changes, on every other server;
  • the lake’s replica joins after the pool’s servers, on every server, so that each one copies to it;
  • a server restarts, on that server: until this version keeps its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. across a restart, the port is open again to any address, though still only to machines with a certificate of your installation.

Running a command again changes nothing that is already in place.

When the lake-replica command starts the replica, it makes the lake’s admin user and shows, once, on that server’s terminal, an access key (qd-platform-admin) and a secret (64 hex digits), marked SHOWN ONLY THIS ONCE. They are written to no file and the command never shows them again, so whoever runs it passes them to you right away. In Settings, Lake, paste them in Access key and Secret and choose Keep the keys. You should see The replica’s admin keys are kept. and, above the form, the access key and when it was pasted. The secret is not shown again, here or anywhere; pasting the keys again replaces them.

Above the form, The replica says whether Quality Data reaches the replica with those keys: once the replica is approved in Execution and the keys are kept, You should see the replica’s name, that it answers with the kept keys, and how many of its drives are online and offline. Choose Ask again to ask it now. Nothing is changed on the replica.

Once the main lake’s admin keys are kept, Quality Data makes the installation’s warehouse on the main lake when it is missing, before any replica is there. Once the replica’s are kept too and the replica is approved, it configures the main lake to copy the warehouse into the replica, where each object is kept for 30 days and no one, not even an administrator, can delete it or shorten that; the main lake’s old versions are removed after 7 days. It does so when keys are kept and every hour, and changes nothing when all is already in place. In Settings, Lake, The replication says whether it is ready and lists each warehouse: You should see Configured since and a date for each. Until the replica and its keys are there, a warehouse shows Made on the main lake; its replication waits for the replica and its keys. Choose Ask again to read it now.

The machines that do the heavy work join the installation from their own server, which whoever supports your installation sets up with the command above. In Settings, Execution lists them. A new one shows Pending approval and takes no work until you choose Approve. Once approved, the machine gets its role’s files from its module and starts its role’s services by itself, within about a minute. Drain lets one finish what it has and take nothing new; Retire takes it out for good, after a confirmation.

What you see What it means and what to do
No card for mail, directory or external sign-in under Settings Your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not allow configuring them.
Connection OK, but the filter did not find that user. Check the User filter and the Search base (DNDistinguished name The full name of an entry in a company directory, such as a group: CN=Quality,OU=Groups,DC=example,DC=org.).
A directory colleague gets Invalid email or password. with the right password None of their direct groups is an Administrator groups group or in a group’s Directory groups.
The directory is not responding. Please try again later., on Sign in Quality Data cannot reach the directory: check the Server URL and the network.
Signing in with the provider did not work. … Usually no account has that e-mail: the person signs in with a password and links the provider.
Updates says No service or Not responding The update service on the server is not running. Tell whoever supports your installation.
Updates says This installation is not updated from here … It is updated another way: ask whoever supports your installation.
This installation has no certificate authority yet: no machine can join., in Execution Machines cannot join yet. Ask whoever supports your installation.
Each drive is an absolute path …, under Drives A path starts with / and has only letters, digits, ., _, - and /, as /srv/disk1.
The secret is the 64 hex digits join.sh showed …, under Secret Paste the whole secret, as shown, with no other characters.
The replica’s admin keys were lost before they were pasted The command does not show them again. Ask whoever supports your installation.
… refuses the kept keys …, under The replica The keys pasted are not the replica’s: paste again the ones its command showed.
… could not be reached: …, under The replica Quality Data cannot reach the replica’s server. Tell whoever supports your installation what it says.
More than one replica is approved …, under The replica Retire in Execution the machines that are not the replica.
The main lake refuses the kept keys …, under The main lake The keys pasted are not the main lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s: paste again the ones shown when its stack was brought up.
The main lake could not be reached …, under The main lake Quality Data cannot reach the lake. Tell whoever supports your installation what it says.
This installation reaches no lake …, under The main lake Tell whoever supports your installation.
Failed at …, under The replication The step named was refused or not reached. It is tried again every hour; tell whoever supports your installation what it says if it stays.

Quality Data · Reference

Rule language

Reference for how a rule is written: its keys, where rules files live, what a dataset declares once, the expressions and what Quality Data decides for every rule.

A ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. applies a pattern to a field. Most rules need no logic at all: the pattern and its parameters say everything. Rules are written in YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written., a plain-text format, with English keys, in the rule editor or in any text editor; the editor completes keys and values and says what each one is for.

This page is the language itself. The fourteen patterns, one by one, are in Rule patterns; every message the editor’s checker gives, in Lint findings. Writing, testing and deploying a rule in the product is in Write, change and test a rule.

New to rules? Start with the tutorial: it writes a few rules step by step.

All examples use synthetic fields and values.

Data quality rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. often live in code: a few developers write them, and the text that explains each one can driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. from what it does. The rule language exists so that:

  • whoever knows the data writes the rules. A data steward, not a developer: most rules are a patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. and two or three parameters, with no logic to get wrong;
  • a rule says what it checks, not how. check: required with when: Occupation = 'EMPLOYEE' is the whole rule; Quality Data writes the query and the explanation in words;
  • every rule can be reviewed. A rule is a few lines of text in a versioned catalog: a change is a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it., someone approves it, and the history keeps who changed what;
  • a rule means one thing. The query that evaluates it and its explanation in words come from the same reading of the rule, so what As read says is what runs;
  • results are comparable over time. Rules compare dates with the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., never with today, and keep their id: measuring a cut again gives the same result, and a rule’s history follows it;
  • a rule cannot do harm. The language only reads the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s own record and the references it declares: no other table, no writes, no function outside a closed list.

If you know SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. (Structured Query Language), you already know most of it. Conditions (when, if, then, fails, a population, a derived field) are written as the condition of a SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. WHERE, with the same operators: =, <>, AND, OR, NOT, IN (…), BETWEEN, LIKE, IS NULL, CASE WHEN, arithmetic and CAST.

What differs:

In SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. you would… In a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.
Write a query: SELECT … FROM … WHERE … Write only the condition. A rule looks at one record of its datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.; Quality Data runs every rule of a dataset in one pass
Write the check itself Name a pattern (required, format, range…) and its parameters; expression is there for what no pattern covers
JOIN another table Declare a reference once and use in: { reference: … } or in_reference(x, 'ref.Column')
Use CURRENT_DATE Use :cut, the date the data was taken
Get NULL as “unknown” Get three results: fails, passes, does not apply (NULL means the rule does not apply to the record)
Treat '' and ' ' as values They are empty, as NULL is; so is a value of only spaces, the no-break space included
Compare 'abc' = 'ABC ' as different They are equal: texts compare trimmed and case-insensitive (case: exact changes it per rule)
Match a regular expression anywhere in the value It matches the whole value, and is RE2Google's regular-expression engine The dialect the rules' regular expressions are written in; it always runs in predictable time, so it has no backreferences or lookaround., Google’s dialect (no backreferences, no lookaround)
Spell a function as your database does Use the language’s function (is_empty, regexp_like, days_since…), which Quality Data writes in the SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. it runs
Write subqueries, other functions, other tables Not possible: the grammar is closed, and lint says where an expression leaves it (QR002)

So a rule is not SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. you run: it is a description Quality Data turns into SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it.. As read, beside the editor, shows each rule in words and, folded under SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. per engine, the SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. it becomes; you never write it by hand.

dataset: clients
rules:
- id: EMP-01
field: Employer
check: required
when: Occupation = 'EMPLOYEE'
population: individuals
severity: major
cause: capture
alert: The employer is missing for an employee
examples:
fails: { Occupation: EMPLOYEE, Employer: "" }
passes: { Occupation: EMPLOYEE, Employer: ACME LTD }
skips: { Occupation: STUDENT, Employer: "" }

A rules file names its dataset (as the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. calls it) and lists its rules. Each rule is one check, on one field.

Key What it says
id Unique in the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.. It is how results are kept over time: keep it when a rule changes. Required
field The field it checks, or a list of fields (one rule per field). Optional for combination, implies and expression
check The patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.: one of the fourteen of Rule patterns. Required, unless the rule extends one
when The rule applies only where this condition holds
population The rule applies only to this population, declared by the dataset
severity blocking, major or minor. By default, the pattern’s
cause capture (fixed by whoever records the data) or systemic (fixed once, at the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.)
alert What the person who fixes the record reads. Lint warns when it is missing
on_empty fail counts an empty value as a failure; by default it is skipped (see below)
case exact compares texts as written; by default case and outer spaces do not count
examples Records the rule must fail (fails), pass (passes) and not apply to (skips), kept with the rule
for_each Repeats the rule for each value: { n: ["1", "2"] } with Phone{n}
extends A named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. of the dataset’s global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. this one starts from (Share rules)
origin Where an imported rule comes from: { process: OLD-FLOW, node: "#12" }
note Free text for whoever maintains the rule; nobody else sees it

Each pattern adds its own parameters (min, pattern, in…). A parameter the pattern does not take is an error with its place (QR005), so nothing written is silently ignored.

When both when and population are given, both must hold.

The dimension comes from the pattern (completenessCompleteness Quality dimension: the data is present when it must be. for required, validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list). for format…; the table in Rule patterns); only expression declares its own. The severity has a default per pattern and can be changed per rule; it weights a failure in the data reliability index (ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.) (Formulas):

Severity Means Weight
blocking The data is unusable 1.0
major Usable with reservations 0.6
minor A matter of form 0.3

A rule that reads one field counts in that field’s own conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies., the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.’s C component. A rule that reads more than one field, counting the fields of its when and its population, counts in the consistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). between fields, S, of each field it reads.

# One result per field: ids REP-01.RepName, REP-01.RepDocument…
- id: REP-01
field: [RepName, RepDocument, RepPhone]
check: required
population: companies
alert: The legal representative's data is incomplete
# One result per value: ids REF-01.1 and REF-01.2.
- id: REF-01
field: RefEmail{n}
for_each: { n: ["1", "2"] }
check: format
named: email
alert: Reference e-mail {n} is not an e-mail address

{n} is replaced everywhere in the rule, the alert included.

examples holds records the rule must fail, pass and skip (not apply to). Each is a map of field to value, or a list of them; null is no value. Writing them makes you say what the rule must do, and tells whoever reviews the rule the same. The product’s editor checks that they are well written, but does not run them yet: to see how a rule behaves on data, use Test (Write, change and test a rule).

examples:
fails: [{ Mobile: "12345" }, { Mobile: "4001234567" }]
passes: { Mobile: "3001234567" }
skips: { Mobile: null }

A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s rules are in its catalog, one file per field, beside the dataset’s global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset.:

clients/
reglas_globales.yaml the dataset's global rules
Employer.yaml the rules of the field Employer
Mobile.yaml the rules of the field Mobile
age.yaml the rules of the derived field age
  • A field’s file is named exactly as the field in the dataset’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., <field>.yaml, and holds that field’s rules.
  • A rule belongs to the field in its field:. A rule over several fields belongs to the first one; one with no field, to the first field it reads.
  • What several fields compute together is better written as a derived field in the global rules, with its rules in the derived field’s own file.
  • A rule in another field’s file gets a warning that names the file it belongs to (QR210).
  • A file holds up to 30 rules or 300 lines (QR100), and a list up to 50 values (QR103); a field’s rules rarely come near either.

Older datasets may still keep several fields in one file: Split by field moves them to this layout (Share rules across fields).

reglas_globales.yaml declares once what the dataset’s files share: the sections of the next part, and named rules (named), which a field’s rule starts from with extends. It has no rules: of its own (QR014), no field may be called reglas_globales, and a name it declares is not declared again in a field’s file (QR013). How to use it, and what to check before changing a named rule: Share rules across fields.

These sections sit beside rules:. In a dataset split by field, they live in the dataset’s global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., reglas_globales.yaml, and every file of the dataset sees them (The dataset’s global rules).

dataset: clients
populations:
individuals: ClientType = 'PERSON'
companies: ClientType = 'COMPANY'
lists:
income_occupations: [EMPLOYEE, SELF-EMPLOYED, RETIRED]
placeholders:
text: [UPDATE, NO DATA]
number: ["-1"]
date: ["1900-01-01"]
email: ["noemail@*", "none@*"]
derived:
age: years_between(BirthDate, :cut)
days_since_update: days_between(LastUpdate, :cut)
references:
advisors: { dataset: advisors, key: AdvisorCode }
active_advisors:
dataset: advisors
key: AdvisorCode
where: Status = 'ACTIVE'
tables:
occupation_activity:
when: Occupation
then: ActivityCode
rows:
- { when: RETIRED, allowed: ["1000"] }
- { when: "*", forbidden: ["1000"] }
Section What it holds
populations Named conditions a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. applies to with population:
lists Named lists of values, for domain (in: { list: name }) and in_list(x, 'name'). Over 50 values, lint asks for a catalog table
placeholders Fillers that mean “no value”, by type: text, number, date, and email (with * for any text). Declared once, never per rule
derived Fields computed with an expression, against the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.; a rule checks them as any field
references Another dataset looked up by its key, at the same cut’s date; where keeps only some of its records (its fields, as written)
tables Tables of allowed or forbidden combinations, for combination (Rule patterns)
named Rules with everything but id and field, which a field’s rule extends. Only in the global rules

The email fillers apply to fields the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. types as e-mail, together with the text ones.

when, if, then, fails, the bounds of range, the parts of sum, populations, derived and a reference’s where are expressions in standard SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it., from a closed grammar:

  • comparisons and logic: =, <>, <, <=, >, >=, AND, OR, NOT, IN (…), BETWEEN, LIKE, IS NULL, CASE WHEN … THEN … END, arithmetic, CAST;
  • intervals: INTERVAL 18 YEAR, MONTH or DAY;
  • the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: :cut, the only parameter;
  • functions:
Function Gives
is_empty(x) x has no value, is empty or only spaces
regexp_like(x, 'pattern') x matches the regular expression, anchored to the whole value
in_list(x, 'name') x is in a list the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. declares
in_reference(x, 'ref.Column') x is in a reference’s column
days_since(x) The days from the date x to the cut
days_between(a, b) The days between two dates
years_between(a, b) The whole years between two dates
upper, lower, trim The text in upper or lower case, or without its outer spaces
length, abs, round(x, n) A text’s length; a number’s absolute value; x rounded to n decimals (0 if left out)
coalesce(a, b, …) The first of its arguments that has a value

Nothing else: no subqueries, no other functions, nothing outside the dataset. An expression outside the grammar is a lint error (QR002) that says where and why.

A long expression is folded with >-, one clause a line:

derived:
total_income: >-
CASE
WHEN ClientType = 'PERSON'
THEN Salary + OtherIncome
ELSE SalesIncome
END

These are fixed: no rule can change them, except where it says so.

  • Empty is no value (NULL), an empty text, or only spaces, the invisible no-break space (U+00A0) counted as a space.
  • Empty values are required’s job. required fails on them; empty fails on filled values; the other patternsPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. skip a record whose checked field is empty (it “does not apply”), so a missing value is not counted twice. Each pattern’s section in Rule patterns says which fields it skips on, and whether on_empty: fail can change it. implies and expression skip nothing: they see empty values as their conditions say, so write is_empty(x) where it matters.
  • Placeholders count as empty for required, which says so as its reason; placeholder finds them.
  • Text is compared trimmed and without telling upper from lower case; accents count. case: exact compares as written.
  • Regular expressions match the whole value, never a part of it: 3\d{9} does not match inside a longer number. They are written in the common syntax known as RE2Google's regular-expression engine The dialect the rules' regular expressions are written in; it always runs in predictable time, so it has no backreferences or lookaround.: no backreferences, no lookaround (QR010).
  • Dates are compared with the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. (:cut), never with the day the rule runs: a cut gives the same result when it is measured again.
  • Codes keep their leading zeros when the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. types them as text; lint warns about a text pattern on a field mapped as a number.
  • The result of a rule for a record has three values: it fails, it passes, or it does not apply (outside its population or condition, an empty value it skips, or any other missing value, such as a derived field that cannot be computed).

Quality Data · Reference

Rule patterns

Reference for the fourteen patterns of the rule language: what each checks, its parameters, its dimension and default severity, how it treats empty values, and an example.

A patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. is a way of validating. The list is closed: fourteen patterns, each with its parameters. What none of them covers is written as an expression and reviewed; if it repeats, it becomes a pattern or a named format of Quality Data.

Every pattern also takes the keys every ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. has (when, population, severity, cause, alert, examples…), described in Rule language. A parameter a pattern does not take is a lint error (QR005); one it needs and lacks is another (QR006).

Pattern Fails when DimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. Default severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity.
required The value is empty or a placeholder CompletenessCompleteness Quality dimension: the data is present when it must be. Blocking
empty The value is filled when it must not be ConsistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). Major
placeholder The value is a filler AccuracyAccuracy Quality dimension: the value represents reality correctly. Without an external source it is approximated by plausibility. Major
length The length is not allowed ValidityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list). Major
format The value does not have its form Validity Major
domain The value is not in its list or reference Validity Major
range The value is outside its bounds Accuracy Major
fresh A date is older than its validity TimelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. Major
sum A total differs from its parts Consistency Major
unique The value repeats across records UniquenessUniqueness Quality dimension: an entity appears only once (a unique document; a mobile phone or e-mail not shared). Minor
combination A combination of fields is not allowed Consistency Major
implies A condition holds and its consequence does not Consistency Major
differs Two fields hold the same value Consistency Minor
expression A free condition holds Its own Major

Empty values. What counts as empty, and why the other patterns leave empty values to required, is in Rule language: what Quality Data decides for every rule. Each section below says which fields a pattern skips on when they are empty, and whether on_empty: fail counts them instead.

The field has a value. Fails when it is empty, or holds one of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s placeholders for its type (the reason then says “placeholder”).

  • Parameters: none.
  • Empty values: they are what it finds. on_empty does not apply.
- id: EMP-01
field: Employer
check: required
when: Occupation = 'EMPLOYEE'
alert: The employer is missing for an employee

Lint warns when a field has both required and placeholder (QR022): required already counts the fillers.

The field has no value where it must not have one. Fails when it is filled.

  • Parameters: none.
  • Empty values: an empty value passes. A placeholder counts as filled. on_empty does not apply.
- id: EMP-02
field: Employer
check: empty
when: Occupation = 'STUDENT'
alert: A student has an employer

The value is not a filler, such as UPDATE or 1900-01-01.

  • Parameters: values, the fillers to find; by default the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s placeholders for the field’s type. A * stands for any text (noemail@*).
  • Empty values: skipped; on_empty: fail counts them.
- id: CITY-03
field: City
check: placeholder
values: [UPDATE, NO CITY]
alert: The city holds a filler

The value’s length, without its outer spaces, is allowed.

  • Parameters: in, a list of allowed lengths; min, max, the bounds (both included). At least one of them.
  • Empty values: skipped; on_empty: fail counts them.
- id: MOB-02
field: Mobile
check: length
in: [10]
alert: A mobile number has 10 digits

The value, without its outer spaces, has its form.

  • Parameters: pattern, a regular expression, or named, a format maintained by Quality Data; one of the two, never both. The expression must match the whole value (it is anchored), and is RE2Google's regular-expression engine The dialect the rules' regular expressions are written in; it always runs in predictable time, so it has no backreferences or lookaround., Google’s dialect: no backreferences, no lookaround (QR010).
  • Empty values: skipped; on_empty: fail counts them.
named Accepts
email An e-mail address: a local part, @, and a domain with a dot
person_name Letters (accents included), words joined by one space, ' or -
not_only_symbols At least one letter or digit
capitalized Starts with an upper-case letter
normalized_spaces No doubled spaces between words

Three more named formats, for Colombian data, are in an optional module.

- id: EML-02
field: Email
check: format
named: email
alert: Not an e-mail address
- id: DOC-02
field: Document
check: format
pattern: \d{5,12}
alert: The document has 5 to 12 digits

A regular expression is written plain, as above: YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written., the format rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. are written in, keeps its \. It goes in single quotes only when it starts with a sign YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. reads, such as [ (pattern: '[A-Z]{3}\d{3}').

The value is in (or not in) a set of values.

  • Parameters: in, the allowed values, or not_in, the forbidden ones; one of the two. Either is a list of values, { list: name } (a list the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. declares) or { reference: name.Column } (a column of a reference the dataset declares). Values compare trimmed and case-insensitive, unless case: exact.
  • Empty values: skipped; on_empty: fail counts them.
- id: OCC-01
field: Occupation
check: domain
in: { list: income_occupations }
when: HasIncome = 'YES'
alert: The occupation does not generate income
- id: ADV-01
field: AdvisorCode
check: domain
in: { reference: active_advisors.AdvisorCode }
alert: The advisor is not an active one

A list of more than 50 values gets a warning (QR103): make it a catalog table.

The value is within its bounds.

  • Parameters: min, max, at least one; each a number, a date ("2000-01-01"), another field, ":cut" or an expression. Bounds are included; min_exclusive: true or max_exclusive: true leaves them out. A bound on another field makes the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. cross-field.
  • Empty values: skipped; on_empty: fail counts them.
- id: AGE-01
field: age
check: range
min: 0
max: 110
alert: The age is not plausible
- id: ISS-01
field: IssueDate
check: range
min: BirthDate + INTERVAL 18 YEAR
max: ":cut"
alert: The document was issued before 18 or after the cut
- id: EXP-01
field: Expenses
check: range
max: 1.5 * TotalIncome
max_exclusive: true
alert: Expenses far above income: confirm with the client

A date is recent enough, against the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

  • Parameters: max_age, how old the date may be: a whole number and days, months or years (13 months, 1 year). Fails when the date is before the cut minus max_age.
  • Empty values: skipped; on_empty: fail counts them.
- id: UPD-01
field: LastUpdate
check: fresh
max_age: 13 months
alert: The contact data was not updated in the last year

A total equals its parts.

  • Parameters: parts, a list of fields or expressions, each with its sign ("- Liabilities", in quotes because it starts with -); tolerance, the difference allowed (by default 0). Fails when the field minus the sum of its parts is, in absolute value, over the tolerance.
  • Empty values: skipped when the total is empty; on_empty: fail counts it. A part with no value leaves the record out (it does not apply).
- id: EQ-01
field: Equity
check: sum
parts: [Assets, "- Liabilities"]
tolerance: 1
alert: Equity is not assets minus liabilities

The value does not repeat across records.

  • Parameters: key, the field or fields that must not repeat together (by default the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s field); normalize: true, compare letters and digits only, in upper case; ignore, values that may repeat. Values compare trimmed and case-insensitive.
  • Empty values: skipped when the rule’s field is empty; on_empty: fail counts it. Placeholders are not skipped: list them in ignore if they may repeat.
- id: MAIL-02
field: Email
check: unique
normalize: true
ignore: [UPDATE]
alert: The e-mail is shared with another client

Two fields form an allowed combination, from a table the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. declares.

  • Parameters: table, the name of a table under tables:. field is not needed: it is the table’s then.
  • The table: when, the field each row starts from; then, the field whose values the rows allow or forbid; rows, each with when (a value, a list, or "*" for every value no other row names) and allowed or forbidden. One when field for now; a table on several is not compiled yet (QR008).
  • Empty values: skipped when either field is empty. on_empty does not apply.
tables:
occupation_activity:
when: Occupation
then: ActivityCode
rows:
- { when: RETIRED, allowed: ["1000"] }
- { when: [HOMEMAKER, STUDENT], allowed: ["2000"] }
- { when: "*", forbidden: ["1000", "2000"] }
rules:
- id: OCC-02
check: combination
table: occupation_activity
alert: The activity code does not fit the occupation

The last row is the other direction of each pair, in the same table. A record fails once, whichever row it breaks, and the findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. says the row.

When one condition holds, another holds too.

  • Parameters: if and then, two conditions; both_ways: true makes it an equivalence (the then also implies the if). field is optional.
  • Empty values: nothing is skipped; the conditions say what an empty value means. on_empty does not apply.
- id: END-01
field: ClosedOn
check: implies
if: Status = 'CLOSED'
then: not is_empty(ClosedOn)
both_ways: true
alert: A closed account needs a closing date, and only closed ones have one

Two fields do not hold the same value.

  • Parameters: from, the other field; normalize: true, compare letters and digits only, in upper case. Values compare trimmed and case-insensitive, unless case: exact.
  • Empty values: skipped when either field is empty; on_empty: fail counts it.
- id: REL-01
field: RelativeDocument
check: differs
from: Document
normalize: true
alert: The relative's document is the client's own

A free condition, for the rare case no patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. covers. Each one is reviewed.

  • Parameters: fails, the condition under which the ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. fails (an expression); dimension, required, since there is no pattern to take it from: completeness, consistency, accuracy, validity, timeliness or uniqueness. field is optional.
  • Empty values: nothing is skipped. Say what an empty value means in the condition, or in a population that leaves it out. on_empty does not apply.
- id: EQ-02
field: Equity
check: expression
fails: Equity < 0
dimension: accuracy
severity: minor
alert: Negative equity

Quality Data · Reference

Lint findings

Reference for every finding of the rule editor's checker: its code, its message as the editor shows it, what it means and how to fix it.

The ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. editor checks a rules file as you type, without data: this check is called lint, and what it finds, a finding. Each finding has a code (such as QR003), its line, and a message in the language you use Quality Data in. In the messages below, … stands for what the editor fills in: a field, a value, a count.

  • An error blocks saving and deploying; a warning does not, but Deploy lists them so you read them first.
  • The editor’s Style tab shows the style warnings (QR200 to QR205) and QR210; Problems shows everything else.
  • Tidy, in the Style tab, fixes in one edit the findings marked Tidy below, keeping comments, order and every value; Ctrl+Z undoes it. A file is never tidied when it is saved.

How the editor shows them while you write is in Write, change and test a rule; the keys and patternsPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. they name, in Rule language and Rule patterns.

Code What the editor says What it means and how to fix it
QR001 The YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. cannot be read: … The file’s layout breaks where it says, and nothing after that point can be read. Most often a # that ends a value early, a quote left open, a line that goes on the value above at its key’s indent, or a >- on a list of names; the rest of the message says which, and whether Tidy fixes it
QR002 Expression outside the grammar (column …): … A condition uses something the language does not have: a function outside its list, a parameter other than :cut, an interval not in YEAR, MONTH or DAY, a type CAST does not allow, or text left after the expression. Rewrite it with the expressions the language has
QR003 The field … is not in the dataset, maybe with Did you mean …? Write the field’s name exactly as the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., and the Explorer, show it
QR004 There is no population named …, or list, table, reference, derived field The name is declared nowhere the file can see. Declare it in the global rules, and deploy them first, or fix the name
QR005 The pattern … does not take the parameter … Remove the parameter, or use the patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. that takes it: each pattern’s parameters are in Rule patterns. Also on_empty on required, which already finds empty values
QR006 The parameter … is missing The pattern needs it: add it. Such as max_age for fresh, or dimension for expression
QR007 The value … of … does not fit the field’s type A value that cannot be read as the field’s type, such as a text bound on a date field, or a max_age that is not a whole number and days, months or years. Fix the value, or the field’s type in the mapping
QR008 Not compiled yet: a table on several fields A combination table whose when names several fields. Use one field in when
QR009 Another rule already uses the id … An id is unique in the whole dataset, not only in its file: choose another
QR010 The regular expression uses …, which RE2Google's regular-expression engine The dialect the rules' regular expressions are written in; it always runs in predictable time, so it has no backreferences or lookaround. lacks: … Regular expressions have no backreferences and no lookaround. Rewrite it without them, or check part of the value with another ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.
QR011 Example … should fail, but it gives: pass (or pass, not apply) One of the rule’s examples does not give what it declares. The editor does not run examples today, so you will not see this findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. in the product
QR012 … is not a named rule of the table’s global rules An extends names a rule the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. do not have. Fix the name, or deploy the global rules that declare it first
QR013 … (…) is already declared by the table’s global rules: take it away from here or rename it A name means one thing in the whole dataset. Remove the declaration from the field’s file, or give it another name
QR014 The global rules have no rules of their own: each rule goes in its field’s file Move each rule under rules: to its field’s file
Code What the editor says What it means and how to fix it Tidy
QR020 It checks the same as …: each failure would count twice Two rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. check the same thing on the same records. Remove one of them No
QR021 The rule has no alert: whoever fixes the record will not know what to do Add an alert: the sentence whoever fixes the record reads. A rule added with + has none until you write it No
QR022 … already has required, which counts fillers as empty The field has both required and placeholder; required already fails on fillers. Remove the placeholder rule No
QR023 The condition never holds: the rule would apply to no record Its when or population excludes every record, such as one field equal to two values at once, or FALSE. Check the condition No
QR024 … is mapped as a number: a text pattern would read 1234.0; map the code as text A text patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition. (format, length…) on a field mapped as a number reads it with decimals and without leading zeros. Map the field as text No
QR100 The file has … rules and … lines: split it by field group (up to 30 rules or 300 lines) Move rules to their fields’ own files No
QR101 The draft changes … rules: split it (up to 25) A draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. should change at most 25 rules, so one person can review it. The product does not show this findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. today No
QR103 The list … has … values: make it a catalog table A list of over 50 values is hard to review in a rules file. Keep the values as a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. of their own and check against it with a reference (in: { reference: … }) No
QR206 The # starts a comment and the value is lost: put it in quotes (”…”) YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. reads # after a space as the start of a comment, so the rest of the value is lost. Put the value in quotes Yes
QR207 These quotes are not closed on their line: what follows, up to the next quote, goes into the value Close the quote on the same line No
QR208 This line goes on the value above at its key’s indent, and reads as a new key: indent it further or use >- A long value broken over lines must indent the lines that follow, or start with >- Yes
QR209 … makes … a single text, but … is a list of names with their values: take … away from here and put it on each name A >- or | on a key such as derived or populations makes one text of what is a list. Put it on each name’s value instead Yes
QR211 … repeats what … already says: it is not needed A rule that extends a named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. writes a key with the same value the named rule gives. Remove the key No

How a file is written is checked too, so that draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. show only what changed in meaning. These are warnings.

Code What the editor says How to fix it Tidy
QR200 The indentation is not two spaces a level Indent each level two spaces more than the one above No
QR201 There is a tab: use spaces Replace the tab with spaces Yes
QR202 Spaces at the end of the line Remove them Yes
QR203 These quotes are not needed: the value reads the same without them Write the value plain (see below) Yes
QR204 The line has … characters (over 120): if it is an expression, fold it with >- Fold a long expression with >-, one clause a line Yes
QR205 Leave exactly one blank line before each rule Separate rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. with one blank line Yes
QR210 This rule is about …: it goes in its own file, … Move the rule to the file named (A file per field) No

A value goes plain (check: required, alert: No employer) unless, plain, it would read as something else: a number or a date written as text ("0123", "1900-01-01"), yes, no, true, false, null; a value that starts with a sign YAMLYAML Ain't Markup Language A plain-text format, easy for people to read and write, in which rules are written. reads (- : [ { # & * ! | > ' " % @, so ":cut" and "- Liabilities" keep them); one that holds : or #; and inside […] or {…}, one that holds , or a bracket.

Quality Data · Reference

Reading the dashboard

What each chart on a dataset's dashboard answers, how to read it and what to do about it.

Every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. has a dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.: the Dashboard under the dataset in the Explorer, and the Quality tab of each table the dataset reads. This page goes through every chart on it, in the order it shows them, for the people who act on it: data stewards, analysts and managers. How each figure is calculated, with an example of each chart drawn with made-up data, is in Formulas.

  • The cut. The Cut selector at the top lists the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s evaluated cuts, the latest first. Every chart shows the cut chosen. Charts that compare (bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). transitions, groups that changed most, the population stability index (PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use.)) compare it with the evaluated cut before it, not with last month or with today.
  • Ages are counted at the cut, never today. “Up to 30 days”, “overdue” and the oldest open findingFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. are measured from the cut’s date. An old cut keeps saying what it said on its day.
  • Not every chart appears. A chart shows only when the dataset has what it needs: an entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it., a segmentSegment The commercial group a customer belongs to; it defines the offer and the service., a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. (office, advisor, product), an update date, an outlier amount or a driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. variable. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. a table proposes those roles from its fields and publishes them with the mapping; the application has no mapping editor yet to change them. Charts that need nothing appear for every dataset.
  • “no data for this cut”. The chart exists for the dataset but the cut gave it no rows: for example the first cut has nothing to compare with, or no entity has a band. It is not a zero. If the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. says that no cut has been evaluated yet, run one from Cuts.
  • Values and tables. Point at (or tab to) any bar, dot or column to see its value and what it is. The drawing shows at most the fifteen worst; the table under each figure has every row. A long label is cut in the drawing and whole in the table. A missing value is a gap or ”—”, never a zero.
  • One figure per grouping field. Charts by group are drawn once per grouping field (or per drift variable), named after it: “p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group · Office”, “p′ chart by group · Channel”.

Question: is quality getting better? What you see: a line per measure over the last twelve cuts up to the one chosen: Conformity (blue), the share of ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. checks that passed, and the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. (orange), the overall data quality index: the mean data reliability index (ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.) of every entity (Formulas §4 and §8). The table adds records and failures per cut.

How to read it. Rising is good. The vertical axis does not start at zero, so a small step looks large: check the table before calling it a change. A jump with a jump in records usually means a different population (a new sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., a migration), not better capture. Before a cut with ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., the IGCDOverall data quality index The mean ICD of a dataset at a cut: the one figure to follow over time. line is a gap.

Question: what kind of problem dominates? What you see: bars of failures by quality dimension (completenessCompleteness Quality dimension: the data is present when it must be., validityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list)., consistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities).…) and severity (blocking, major, minor), the most first; grey bars have none. A failure is a record failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., so a record failing three rules counts three.

How to read it. Blocking and major failures come first. Many completeness failures point at the capture form or the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.; many timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. failures at an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case., not at the offices.

Question: where are the failures? What you see: bars of failures per field: each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s count under the field the rule checks; the table adds how many rules check it and how many checks they made.

How to read it. A field with many failures and many rules may simply be the most checked: compare with Rules with the lowest conformityConformity The share of the records a rule applies to that meet it: 1 − failures / applies. before deciding where to start.

Question: which data elements are least reliable? What you see: bars of each field’s mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD., from 0 to 1, the lowest first (Formulas §7).

How to read it. Unlike failure counts, the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. weighs severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. and, for fields that expire, how old the data is. A field low here but with few failures is usually old rather than wrong: it needs an update, not a fix.

Question: how are the customers (or whatever the entity is) spread across quality? What you see: columns counting entities in bins of 0.05 from 0 to 1, with lines at 0.75 and 0.90, the bandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). limits (Formulas §8).

How to read it. Right of 0.90 is the good band, between the lines the fair one, left of 0.75 the poor one. A tall pile just left of a line is cheap to move: a few fixes per entity change its band. A second hump far to the left usually has one cause (a segmentSegment The commercial group a customer belongs to; it defines the offer and the service., a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.).

Question: is one kind of entity worse than another? What you see: a bar per segment (for example individual and company), split into Good (ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. ≥ 0.90) in green, Fair (0.75–0.90) in amber and Poor (< 0.75) in red, as shares; the table has the counts.

How to read it. A segment much redder than the rest often fails on fields its records do not carry: a process problem, fixed at the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. rather than case by case. A small segment can look extreme with few entities: read its count in the table.

Question: where did entities go since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.? What you see: a grid with the previous cut’s band in rows and this cut’s in columns; each square counts the entities that went from one to the other, matched by an anonymous key.

How to read it. The diagonal stayed. Squares above it (towards Good) improved; below it worsened. A large flow from Good to Fair with no new errors is usually data expiring (timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today.). It needs two evaluated cuts; entities only in one of them do not count.

This chart appears only for a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. that takes part in the indicator of the Superintendencia Financiera de Colombia (SFCSuperintendencia Financiera de Colombia Colombia's financial supervisor. Its data quality indicator applies only to the entities it supervises.), the country’s financial supervisor. It is described in the optional module for regulated financial entities in Colombia.

Question: does this office (advisor, channel) fail more than normal, or is it noise? What you see: a dot per group: across, its number of records; up, its share of records with a serious failure (a blocking or major ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. failing on a critical or high field). The horizontal line is the grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.’s average (p̄); the two curves are the control limits, wide for small groups and narrow for large ones (Formulas §12). Grey dots are in control, red ✕ above the upper limit, green ✓ below the lower one. Records with the grouping field empty are left out.

How to read it. Only dots outside the curves are signals. Above: look for the cause in that group (process, form, training). Below: something done better, worth copying. Between the curves: normal variation, no action, however the ranking looks. Do not rank groups by height: a small group high up may still be inside its wide limits. Serious failures still include systemic ones (expired updates, catalogs), which the office cannot fix; every group of a field shifted up together points at the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it..

Question: where are most records? What you see: bars of records for the fifteen largest groups of each grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., the empty group included as “(empty)”; the table adds each one’s share with a serious failure and its mean ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD..

How to read it. Read it with the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out.: a large group with a slightly worse share moves more records than a small one with a much worse share. A large “(empty)” group is a capture problem in itself.

Question: which groups moved since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.? What you see: bars to the right (worse) or left (better) of zero, in percentage points of their share with a serious failure, for the fifteen that moved most; the table has both cuts’ shares. “No change since the previous cut.” means none moved.

How to read it. It points at where to look, not at whom to blame: a group may drop because it received records from another. Small groups move a lot by chance; check the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. before acting.

Question: are there amounts unusual for their group? What you see: for the outlier amount (income, loan amount) and each grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., bars of the groups with outliers: low ones in orange, high ones in blue. An amount is an outlier when its robust zRobust z How many typical distances a value is from its group's normal value: 0.6745 × (value − median) / MAD, robust because it uses the median and the MAD. Above 3.5 the value is flagged as an outlier. within its group is beyond 3.5 either way (Formulas §16). Only positive amounts count. “no outliers in any group” means none.

How to read it. An outlier is not an error by itself: the chart does not yet tell a probable error from a legitimate value. Review the groups with the highest share, fix the errors (extra digits, wrong unit) and keep the legitimate ones. In a group with few amounts the medianMedian The middle value once the data is sorted. Unlike the mean, a few extreme values do not drag it. is unstable: read the count in the table.

Question: did this cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.’s population change from the previous one? What you see: for each driftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. variable, ten pairs of columns: the previous cut split into ten bins of the same size (grey, about 10 % each) and this cut’s share in the same bins (blue). The note gives the PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. and its reading: stable below 0.10, moderate drift from 0.10 to 0.25, significant drift above (Formulas §17).

How to read it. Blue columns close to the grey ones are good. Blue piling up at one end means the population moved: every record may be valid and the batch still be suspicious. With moderate drift, review the batch before using it; with significant drift, find the cause (a new sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., a change of unit, a load error). The shares are read to the nearest 1 %, so a PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. near 0 is approximate. It needs a previous evaluated cut.

Question: how much is waiting in each group’s queue, and how much is late? What you see: for each grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by., columns for the fifteen groups with the most open findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. (blue) and those overdue (red). A finding is a record failing a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.; it is overdue when the days from the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. where it first failed to the cut shown exceed the queue’s service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.). The table adds the findings resolved at this cut, the oldest open finding’s age in days, the SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. and the open findings’ summed priority (Formulas §15).

How to read it. Red is what to chase first; a high summed priority with few findings means a few costly ones. A finding is resolved only when a later cut no longer fails it: fixes show at the next evaluated cut, not before. With monthly cuts, an SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. under a month reads as overdue at the first cut that still fails.

The SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.. Each queue’s SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. is a number of days, set per grouping field with an optional override per group; without one it is 30 days. It is set by people who may edit the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s pipeline, and every change is audited. Changing it needs no new evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures.: the chart applies it when it is read. Whoever may edit the pipeline sets it in the Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. form below the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.: a default per grouping field (blank keeps 30 days) and the groups that differ, from 1 to 365 days; saving redraws the queues’ chart.

While findings are not yet carried from one cut to the next, every open finding counts from the cut shown, so Overdue and Resolved at this cut read 0.

Question: how old is the data? What you see: bars of records by how long before the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. the update date was: after the cut, up to 30 days, 31–90, 91–180, 181–365, 366–730, over 730 days, and no date; shown as shares (Formulas §11).

How to read it. Data can be right and still old: in fields that expire, the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD.’s timelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. (A) falls from the first day and is half at a year. A big share over a year calls for an update campaignUpdate campaign A mass action so customers confirm or correct their data (digital channels, calls or at the office). It is how outdated data is handled, since it is not solved case by case.. Dates after the cut are suspicious (wrong format, a default date): check how they are captured.

Question: which fields are missing most? What you see: bars of each field’s empty share, the emptiest first; the table adds distinct values and the commonest shape (each digit a 9, each letter A to Z an A) with its share of the filled values.

How to read it. An empty field may be optional: compare with the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. A commonest shape well under 100 % suggests mixed formats; a code that lost its leading zero shows here as a shorter shape. This is profilingProfiling A descriptive analysis of each column: nulls, cardinality, patterns and distribution.: it shows no values, only shapes.

Question: which rules are met least? What you see: bars of each rule’s conformity, from 0 to 100 %, the lowest first; rules that applied to no record are left out of the drawing and show ”—” in the table, which also has the field, dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity., records it applies to and failures (Formulas §3).

How to read it. Low conformity means the data is wrong or the rule is badly posed. Review the lowest with the rule’s owner before fixing thousands of records. A rule that applies to few records swings a lot between cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

  • Small groups. A group with few records swings by chance. Trust the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out.’s limits, not the ranking, and read counts in the tables.
  • The first cut. BandBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). transitions, groups that changed most and the PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. need a previous evaluated cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: on the first one they say “no data for this cut”.
  • Cut versus today. Everything is measured at the cut’s date. To see the effect of fixes, evaluate a new cut.
  • Failures versus records. Failure counts add up ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. checks; the shares of the p′ chart and the queues are of records or findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it..
  • No personal data. The dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. shows aggregates only.

Quality Data · Reference

Permissions

Reference for every permission a policy can allow: what it lets someone do, what it can be narrowed to, and which ready-made policy holds it.

A policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. is a set of allowed actions, called permissions here; the policy editor lists them by name under Data quality and Administration. An account with the role Administrator can do everything without any policy. How policies are given, and which to give for each job, is in Manage users and access.

The five ready-made policies, marked built-in in the product: steward is quality-steward, analyst quality-analyst, viewer quality-viewer, auditor auditor, and admin quality-admin.

A permission marked with a resource can be narrowed, in a policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. of your own, to one sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. or one datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.: source/ followed by the source’s name, or catalog/, dataset/ or pipeline/ followed by the dataset’s name, such as pipeline/customers.

Permission What it lets someone do Resource Steward Analyst Viewer Auditor Admin
View sources See the sources and their tables, and a table’s Records (values masked without View personal data) source ✓ ✓ ✓ ✓
Manage sources Add, change and remove sources, and list the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s tables again source ✓ ✓
View ETL Nothing in the product uses it yet etl ✓ ✓ ✓ ✓
Edit ETL Nothing in the product uses it yet etl ✓ ✓
View datasets Nothing in the product uses it yet dataset ✓ ✓ ✓ ✓
Manage datasets Map a table, change a mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.’s fields, discard a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. and remove a dataset; with Approve rules and mappings, deploy and approve dataset ✓ ✓
View rules Open, read and test a dataset’s rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., their drafts and their history catalog ✓ ✓ ✓ ✓ ✓
Edit rules Save a change to rules as a draft catalog ✓ ✓
Approve rules and mappings With Manage datasets: deploy, approve a draft, delete a rule, restore, undo and import rules catalog ✓ ✓
View pipelines See the datasets and their cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. in the Explorer, and the schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… pipeline ✓ ✓ ✓ ✓ ✓
Edit pipelines Set a dataset’s remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. pipeline ✓ ✓
Run pipelines Run a cut now pipeline ✓ ✓ ✓
Schedule pipelines Create, change and remove schedules pipeline ✓ ✓
View results Open a dataset’s dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and its remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. pipeline ✓ ✓ ✓ ✓ ✓
Export results Nothing in the product uses it yet pipeline ✓ ✓ ✓
View personal data See values from sources whole, in Test, Records and the console (Personal data) pipeline ✓ ✓
Query the lake with SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Open the Lake SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. console ✓ ✓
Manage notifications Nothing in the product uses it yet pipeline ✓ ✓

These act on the whole installation, so they take no resource, except Manage secrets, which can be narrowed to one secret with secret/ followed by its name. Among the ready-made policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. only quality-admin holds them, and auditor holds View audit log.

Permission What it lets someone do Auditor Admin
Configure (mail, LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work., OAuth) Set up outgoing mail, sign-in with the company directory and with an external provider (Mail, sign-in and updates) ✓
Manage users Register, edit and delete accounts, and resend activation links ✓
Manage groups and policies Create groups and policies, and attach policies to people and groups ✓
Manage secrets Register the connections and keys kept encrypted under Settings, Secrets ✓
View audit log Read the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. (Personal data and the audit trail) ✓ ✓
Manage updates Install updates and choose when they install ✓
Manage machines Approve, drain and retire the machines that do the heavy work, under Settings, Execution ✓

Some things need no permission: anyone signed in can change their own profile and linked accounts, and create service accountsService account A token for a script or another system to use Quality Data in its owner's name; it can do at most what its owner can. for their own integrations, which can do at most what their owner can.

Each application besides Quality Data brings permissions of its own, named after its module, such as orchestrator:ViewFlows, and given in policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. like any other. An application shows in the apps menu, under Applications, only to whoever holds the permission that opens it; what they may do inside is what their other permissions allow. Every application signs people in through the core.

Menu entry Opens Shown to whoever holds
Orchestrator The orchestrator’s web, at /orchestrator/ orchestrator:ViewFlows
Analytics Apache Superset, at /bi/ bi-superset:Author
Lake console The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s console (RustFS), at /rustfs/console/ lake-rustfs:UseConsole
Monitoring (coming) Grafana, with the logs and metrics of every machine observability:View
User guide This guide, at /docs/ Anyone signed in
Permission What it lets someone do Ready-made policy
orchestrator:ViewFlows See flows, folders, runs and their logs
orchestrator:RunWorkflow Run a flow now and cancel a run
orchestrator:ManageFlows Edit, pause and resume flows and engines
orchestrator:ManageSchedules Create, enable, disable and delete a flow’s schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…
orchestrator:ImportFlows Import the flows already on a cluster
bi-superset:Author Open Superset and create charts and dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. bi-superset:Authors, bi-superset:Administrators
bi-superset:Administer Administer Superset bi-superset:Administrators
lake-rustfs:UseConsole Sign in to the lake’s console and read the lake (RustFS’s readonly policy) lake-rustfs:ConsoleUsers, lake-rustfs:Administrators
lake-rustfs:Administer Administer the lake’s storage in its console (RustFS’s consoleAdmin policy) lake-rustfs:Administrators
observability:View (coming) Open Monitoring and see the logs and metrics

In Superset, View results makes a person a reader of the dashboards, without the menu entry.

  • Deploying needs two permissions. Approve rules and mappings and Manage datasets together; a policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. with Edit rules alone saves draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. that someone else approves (Take a change to main).
  • Values need their own permission. No ready-made policy but quality-analyst and quality-admin shows values from sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it.; give quality-steward and quality-analyst together to a steward who must see them.

Technology stack

Technology stack

Every technology the Government Data platform is built on, what each one does, which module brings it, and how the parts talk to each other.

For whom: administrators and technical staff who run an installation or review it: what runs on its servers, what each part is for, and where its data lives. You do not need any of this to write rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. or read a dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more..

This section describes the stack of the Government Data platform: its architecture as it is designed, for every application on it. Some parts are still being rolled out; Implementation status, at the end of this page, says which.

An installation is the set of servers where one organisation runs Government Data. It serves that organisation alone: there is no sharing of an installation between organisations, and no data leaves it except what the organisation itself exports. Everything in it runs as containers on servers the organisation controls, in its own data centre or in its own cloud account.

An installation is made of modules. A module is a set of containers with a manifest that says what it offers to the others, what it needs from them, where people reach it and what its data is. The core never names a module: it reads what each one declares. Removing a module keeps its data; only an explicit purge deletes it, after a backup.

Module What it is Main technologies
quality-data The core: sign-in, permissions, audit, settings, and the Quality Data application with its rules catalogRules catalog Where Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main. Rust, Traefik, PostgreSQL, Dolt
lake-rustfs The data lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., where the copied data and the quality results are kept as tables RustFS, Apache Iceberg
query-trino The SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. engine that reads the sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. and the lake and runs the quality rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. Trino
orchestrator The operator that schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… jobs, and the job runners that send them to Trino The orchestrator and its job runners
bi-superset The dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. of the quality indicators, read from the lake Apache Superset, Valkey
observability Monitoring (being built): the logs and metrics of every machine, and alerts Grafana, Loki, Mimir, Alloy
docs This guide, served inside the installation A static site

Modules depend on capabilities, not on each other: the lake module provides the capability “lake” (the S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. protocol and the Iceberg catalog), and the query module provides “SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query”. Another module that provides the same capability, with the same protocols, could take its place.

How the modules sit on an installation’s machines. An installation runs on three:

  • the main server, with Traefik, the core, the orchestrator (its operator and its job runners) and the Trino coordinator it runs and manages, Superset with Valkey, and the operations stack;
  • a Trino worker, on a machine of its own, which does the heavy query work and needs the most memory;
  • the lake server, which keeps the data and needs the most disk.

Every machine runs Alloy and the agent. For big data, an installation adds Trino workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one.: nothing else changes. The figure goes through the stack one technology at a time and lights every place each one takes part; click it or use the arrow keys to step through, and press Space or ▶ to resume the tour. The sizes on each machine are proposed starting points, marked *, not measurements.

ORGANISATIONpeople and their databasesPeople · browserGovernment DataQuality Data · rulesSuperset dashboardsGrafana · operationsthis guideoptionalread-only loginoptionalPUBLISHERoutside the installationsource tablesoptionalSource databasesthe organisation's ownIAM Roles AnywhereoptionalKMS · signing keyoptionalECR · imagesoptionalS3 · signed indexoptionalAWSpublished versions · read onlyINSTALLATION · the organisation's serversprivate network · mutual TLS · only :443 faces peopleDisk500 GB SSD*CPU8 vCPU*RAM32 GB*Main serverthe core, the orchestrator, indicators, operationsTraefik · edgeoptionalQuality Data · weboptionalQuality Data · APIoptionalSign-in · OIDCoptionalCA · certificatesoptionalPostgreSQLaccounts · auditjobs · modules' DBsoptionalDolt · rules catalogoptionalOperatoroptionalJob runner 1optionalJob runner 2optionalTrino coordinatorrun and managedby the orchestratoroptionalGrafanaoptionalLokioptionalMimiroptionalAlloyoptionalqd agentoptionalValkey · cacheoptionalSupersetoptionalAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Trino workera machine of its ownPROVIDERa third party, outside the organisationAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Provider · a third partyTrino worker · optionaladd more for big dataA providerdelivers a batchwhere agreedsees nothing backoptionalANOTHER SITE · optionala copy of the lake, away from itAlloyoptionalqd agentoptionalIceberg REST catalogbronze · silvergold · resultsoptionalRustFS · S3optionalDisk4 × 4 TB*CPU4 vCPU*RAM16 GB*Lake gate · TraefikoptionalLake servera machine of its owngate · TraefikoptionalRustFS · object lockoptionalDiskas the lake*CPU2 vCPU*RAM8 GB*Lake replica · optionalanother site

The stack · the current technology is lit · click one

  1. 1Traefik6 roles · 11 places
  2. 2Quality Data6 roles · 10 places
  3. 3OIDC4 roles · 11 places
  4. 4CA · mTLS4 roles · 9 places
  5. 5PostgreSQL4 roles · 4 places
  6. 6Dolt3 roles · 3 places
  7. 7Orchestrator6 roles · 5 places
  8. 8Trino7 roles · 13 places
  9. 9Big data5 roles · 11 places
  10. 10RustFS5 roles · 12 places
  11. 11Iceberg4 roles · 4 places
  12. 12Superset4 roles · 8 places
  13. 13Valkey2 roles · 2 places
  14. 14Grafana4 roles · 6 places
  15. 15Loki2 roles · 6 places
  16. 16Mimir2 roles · 6 places
  17. 17Alloy3 roles · 8 places
  18. 18qd · AWS5 roles · 10 places
  19. 19Compose4 roles · 7 places

What it is, and where it takes part · point at a row to light only its places

  1. Traefik

    A reverse proxy: it receives connections, terminates TLS and routes each request to the service behind it by its path. It can require and check client certificates.

    Why here One door for people and machines alike: routes come from each module's manifest, so a module added or removed changes its route and nothing else; it authenticates, and leaves what a person may do to the module.

    To run it
    Ports :443 for people; the internal entry point for machines
  2. In this platform · the installation's only entry point, for people and for machines, and the gate in front of the lake
  3. in every installationThe web entry point, HTTPS on :443: the application, the guide and every module's screens, each under its own pathMain server · Traefik · edge; cable browser → Traefik :443 on the main server; people's browser
  4. in every installationThe internal entry point: the installation's machines and modules, each with a certificate of its CAMain server · Traefik · edge; cable Trino coordinator ↔ Trino worker; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  5. in every installationForward authentication: for a module with no sign-in of its own, it asks the core for a valid session firstMain server · Traefik · edge; Main server · Quality Data · API
  6. in every installationRoutes come from the modules' manifests, written by the agent when a module is addedMain server · Traefik · edge; Main server · qd agent
  7. in every installationThe lake's gate: lets in only connections with a certificate of the installationLake server · Lake gate · Traefik; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  8. optionalThe replica's gate, at the other siteLake replica · gate · Traefik; cable lake server → lake replica at another site (optional)

In the room

  • a unit where the technology runs, in every installation
  • a unit where it runs only if the installation adds it: outlined and marked optional
  • a unit where it takes no part
  • red, bold, with a dot: the resource this machine uses most, the one that limits it first
  • on each machine's top: Disk, CPU and RAM, each a proposed starting point, marked *; the table below says what each comes from
  • a cable it speaks on, and its plugs, in the strong ink; an optional one outlined in amber. A cable stands for every connection between its two machines
  • a connection opened, from the side that opens it to the one that listens

Lines by group

  • People · every line at people's desk or the provider's
  • Updates · the agent's line to AWS, opened from the installation only
  • Lake · every other line at a lake machine: Trino's workers and the main server to the lake's gate, the lake to its replica
  • Trino · the rest: the coordinator on the main server and Trino's workers

Machines · what each needs to run · * proposed starting points, not measurements

RoleMachinesDiskCPURAMLimits firstSize driven byPorts
Main server1500 GB SSD*PostgreSQL with its audit log, Dolt, the modules' volumes, the container images and the backups taken before each update; the lake's data is on the lake server8 vCPU*every service of the core, the orchestrator, Superset and the observability stores; the heavy query work runs on Trino's workers, not here32 GB*the same services held in memory at once, among them PostgreSQL, Superset and the Trino coordinator, which plans queries but runs none of their workRAMit holds the most services in memory at once; none of them computes a query's workhow many people and modules use it at once:443 from people's network; outbound HTTPS to AWS
Trino worker1 to start; add more for big data100 GB SSD*Trino's spill disk, for a query too big for memory, and the container images; it holds nothing once a query ends8 vCPU*a worker reads and evaluates in parallel: more cores, more of a query at once16 GB*about 13 GB for Trino, the size of the single-node starting tier, split between quality jobs and dashboard queries, plus the systemRAMa query runs in a worker's memory and spills to its disk past it: Trino's memory is what limits a job's sizethe size of the largest jobs and how many run at oncenone from people; out to the source databases' own ports
Lake server14 × 4 TB*bronze, silver and gold, the logs and metrics Loki and Mimir keep there, and the old versions of objects; it grows with the data copied from the sources, so size it from them4 vCPU*RustFS, its catalog and its gate: the queries' work runs on Trino's workers16 GB*RustFS, its catalog and its gate, Alloy and the agentDiskwhat grows is the lake: every cut copied into bronze and silver, and its results in goldhow much data is copied from the sources, and for how long it is keptnone from people
Lake replica · optional1, at another siteas the lake*at least the lake's data, plus the versions it keeps locked for 30 days; large, slow disks are enough2 vCPU*one RustFS and its gate8 GB*one RustFS and its gateDiskit holds every object of the lake and its locked versionsthe lake's size, plus 30 days of locked versionsfrom the lake server only

What an administrator provides

Cables · the technologies that speak on each

Three machines run an installation: the main server, with the core, the orchestrator and the Trino coordinator it manages, Superset with Valkey and the operations stack; a Trino worker, which holds the memory; and the lake server, which holds the data. Every machine runs Alloy and the qd agent. For big data, the installation adds Trino workers: the second one is drawn faint and marked optional, and so is the lake replica at another site. Every size on a machine's top is a proposed starting point, marked *, not a measurement: size a real installation from its data. A technology lights every unit where it runs and every cable it speaks on; where it runs only on an optional machine the unit is outlined in amber and marked optional. The room's sizes are not to scale.

A quality cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. goes this way: the operator fires it on its scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…; the core compiles the cut’s statements from the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on the catalog’s main line and signs them; a job runner of the orchestrator fetches them, checks the signature and sends each one to Trino with a token that is valid for that job only; Trino reads the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., writes the copy to bronze, derives silver, evaluates the rules and writes the results to gold. The job runner reports only names and counts back to the core.

The simulation shows the same figure on a page of its own, wider, with room to read each technology’s part.

Each page says what the technology does in Government Data, which module brings it, how it talks to the rest and where its data lives.

The current release runs part of this architecture. These parts are still being rolled out:

  • Trino as the one engine. Trino is replacing the engine that runs extraction and rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. in the current release. For a while both run side by side on the same cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and their results are compared; Trino takes over once they agree.
  • Job runners apart from the operator. The orchestrator becomes the operator that schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly… and tracks jobs, and its job runners take each job, send its signed SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. to Trino and report. They are light and process no data: two run jobs in parallel on the main server, and more can be added.
  • Gold as the record of results. The quality results move to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gold tables. Until then the platform’s database keeps them.
  • Apache Superset and Valkey. Superset ships as a module, with its connection to Trino made from the query module’s endpoint; the indicator dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. it will carry are designed and not yet shipped. Until they are, the application draws its own charts.
  • Monitoring. The observability module, Grafana with Loki, Mimir and Alloy on every machine, is being built.

Technology stack

Simulation

The installation's machines in an isometric room, and a tour of its technologies that lights where each one takes part, what it is, why it was chosen and what it needs.

For whom: administrators and technical reviewers who want to see the architecture at work.

An installation’s machines, drawn as a room: the main server, a Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. and the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. server, with people’s desk, the organisation’s sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. databases, a third-party provider, and AWS, which the agent pulls updates from. The tour goes through the stack one technology at a time, and lights every unit and cable where it takes part.

ORGANISATIONpeople and their databasesPeople · browserGovernment DataQuality Data · rulesSuperset dashboardsGrafana · operationsthis guideoptionalread-only loginoptionalPUBLISHERoutside the installationsource tablesoptionalSource databasesthe organisation's ownIAM Roles AnywhereoptionalKMS · signing keyoptionalECR · imagesoptionalS3 · signed indexoptionalAWSpublished versions · read onlyINSTALLATION · the organisation's serversprivate network · mutual TLS · only :443 faces peopleDisk500 GB SSD*CPU8 vCPU*RAM32 GB*Main serverthe core, the orchestrator, indicators, operationsTraefik · edgeoptionalQuality Data · weboptionalQuality Data · APIoptionalSign-in · OIDCoptionalCA · certificatesoptionalPostgreSQLaccounts · auditjobs · modules' DBsoptionalDolt · rules catalogoptionalOperatoroptionalJob runner 1optionalJob runner 2optionalTrino coordinatorrun and managedby the orchestratoroptionalGrafanaoptionalLokioptionalMimiroptionalAlloyoptionalqd agentoptionalValkey · cacheoptionalSupersetoptionalAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Trino workera machine of its ownPROVIDERa third party, outside the organisationAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Provider · a third partyTrino worker · optionaladd more for big dataA providerdelivers a batchwhere agreedsees nothing backoptionalANOTHER SITE · optionala copy of the lake, away from itAlloyoptionalqd agentoptionalIceberg REST catalogbronze · silvergold · resultsoptionalRustFS · S3optionalDisk4 × 4 TB*CPU4 vCPU*RAM16 GB*Lake gate · TraefikoptionalLake servera machine of its owngate · TraefikoptionalRustFS · object lockoptionalDiskas the lake*CPU2 vCPU*RAM8 GB*Lake replica · optionalanother site

The stack · the current technology is lit · click one

  1. 1Traefik6 roles · 11 places
  2. 2Quality Data6 roles · 10 places
  3. 3OIDC4 roles · 11 places
  4. 4CA · mTLS4 roles · 9 places
  5. 5PostgreSQL4 roles · 4 places
  6. 6Dolt3 roles · 3 places
  7. 7Orchestrator6 roles · 5 places
  8. 8Trino7 roles · 13 places
  9. 9Big data5 roles · 11 places
  10. 10RustFS5 roles · 12 places
  11. 11Iceberg4 roles · 4 places
  12. 12Superset4 roles · 8 places
  13. 13Valkey2 roles · 2 places
  14. 14Grafana4 roles · 6 places
  15. 15Loki2 roles · 6 places
  16. 16Mimir2 roles · 6 places
  17. 17Alloy3 roles · 8 places
  18. 18qd · AWS5 roles · 10 places
  19. 19Compose4 roles · 7 places

What it is, and where it takes part · point at a row to light only its places

  1. Traefik

    A reverse proxy: it receives connections, terminates TLS and routes each request to the service behind it by its path. It can require and check client certificates.

    Why here One door for people and machines alike: routes come from each module's manifest, so a module added or removed changes its route and nothing else; it authenticates, and leaves what a person may do to the module.

    To run it
    Ports :443 for people; the internal entry point for machines
  2. In this platform · the installation's only entry point, for people and for machines, and the gate in front of the lake
  3. in every installationThe web entry point, HTTPS on :443: the application, the guide and every module's screens, each under its own pathMain server · Traefik · edge; cable browser → Traefik :443 on the main server; people's browser
  4. in every installationThe internal entry point: the installation's machines and modules, each with a certificate of its CAMain server · Traefik · edge; cable Trino coordinator ↔ Trino worker; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  5. in every installationForward authentication: for a module with no sign-in of its own, it asks the core for a valid session firstMain server · Traefik · edge; Main server · Quality Data · API
  6. in every installationRoutes come from the modules' manifests, written by the agent when a module is addedMain server · Traefik · edge; Main server · qd agent
  7. in every installationThe lake's gate: lets in only connections with a certificate of the installationLake server · Lake gate · Traefik; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  8. optionalThe replica's gate, at the other siteLake replica · gate · Traefik; cable lake server → lake replica at another site (optional)

In the room

  • a unit where the technology runs, in every installation
  • a unit where it runs only if the installation adds it: outlined and marked optional
  • a unit where it takes no part
  • red, bold, with a dot: the resource this machine uses most, the one that limits it first
  • on each machine's top: Disk, CPU and RAM, each a proposed starting point, marked *; the table below says what each comes from
  • a cable it speaks on, and its plugs, in the strong ink; an optional one outlined in amber. A cable stands for every connection between its two machines
  • a connection opened, from the side that opens it to the one that listens

Lines by group

  • People · every line at people's desk or the provider's
  • Updates · the agent's line to AWS, opened from the installation only
  • Lake · every other line at a lake machine: Trino's workers and the main server to the lake's gate, the lake to its replica
  • Trino · the rest: the coordinator on the main server and Trino's workers

Machines · what each needs to run · * proposed starting points, not measurements

RoleMachinesDiskCPURAMLimits firstSize driven byPorts
Main server1500 GB SSD*PostgreSQL with its audit log, Dolt, the modules' volumes, the container images and the backups taken before each update; the lake's data is on the lake server8 vCPU*every service of the core, the orchestrator, Superset and the observability stores; the heavy query work runs on Trino's workers, not here32 GB*the same services held in memory at once, among them PostgreSQL, Superset and the Trino coordinator, which plans queries but runs none of their workRAMit holds the most services in memory at once; none of them computes a query's workhow many people and modules use it at once:443 from people's network; outbound HTTPS to AWS
Trino worker1 to start; add more for big data100 GB SSD*Trino's spill disk, for a query too big for memory, and the container images; it holds nothing once a query ends8 vCPU*a worker reads and evaluates in parallel: more cores, more of a query at once16 GB*about 13 GB for Trino, the size of the single-node starting tier, split between quality jobs and dashboard queries, plus the systemRAMa query runs in a worker's memory and spills to its disk past it: Trino's memory is what limits a job's sizethe size of the largest jobs and how many run at oncenone from people; out to the source databases' own ports
Lake server14 × 4 TB*bronze, silver and gold, the logs and metrics Loki and Mimir keep there, and the old versions of objects; it grows with the data copied from the sources, so size it from them4 vCPU*RustFS, its catalog and its gate: the queries' work runs on Trino's workers16 GB*RustFS, its catalog and its gate, Alloy and the agentDiskwhat grows is the lake: every cut copied into bronze and silver, and its results in goldhow much data is copied from the sources, and for how long it is keptnone from people
Lake replica · optional1, at another siteas the lake*at least the lake's data, plus the versions it keeps locked for 30 days; large, slow disks are enough2 vCPU*one RustFS and its gate8 GB*one RustFS and its gateDiskit holds every object of the lake and its locked versionsthe lake's size, plus 30 days of locked versionsfrom the lake server only

What an administrator provides

Cables · the technologies that speak on each

Three machines run an installation: the main server, with the core, the orchestrator and the Trino coordinator it manages, Superset with Valkey and the operations stack; a Trino worker, which holds the memory; and the lake server, which holds the data. Every machine runs Alloy and the qd agent. For big data, the installation adds Trino workers: the second one is drawn faint and marked optional, and so is the lake replica at another site. Every size on a machine's top is a proposed starting point, marked *, not a measurement: size a real installation from its data. A technology lights every unit where it runs and every cable it speaks on; where it runs only on an optional machine the unit is outlined in amber and marked optional. The room's sizes are not to scale.

  • The tour moves on by itself. Any click, key or pointer over the text pauses it on its stop; ▶ or Space resumes it. The arrow keys, or a click on the figure, go to the next or the previous technology, and the list under the figure goes to any of them.
  • A lit unit is a place where the technology runs. A unit outlined in amber and marked optional runs only on a machine an installation adds: a second Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., or the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. replica at another site.
  • A cable stands for every connection between its two machines; its arrow points from the side that opens the connection. Nothing connects into the installation from outside: the agent opens the line to AWS.
  • Point at a row under the figure to light only that row’s places.
  • The cards on the machines’ tops give disk, CPUCentral processing unit A server's processor; the installer asks for at least 2. and memory. The one in red is the resource that machine needs most.

Technology stack · Platform

The platform core (Quality Data)

The core of Government Data, whose package is Quality Data, written in Rust with a SolidJS web app, that owns the quality objects, compiles every job and holds sign-in, permissions and audit.

Module: quality-data. Every installation has it; every other module needs it.

The core is the base of the Government Data platform. Its package is called Quality Data, after the data quality application it carries, which owns the business objects of data quality: sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and their mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and their history, schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and the remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up.. Around them it holds what the whole platform shares:

  • sign-in for every module (see Identity);
  • permissions: one set of policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. for the whole platform, which every module asks before it acts;
  • audit: who did what, when and on what, including every view of personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.;
  • settings shared by every module, such as the domain, mail and the time zone;
  • machines: which servers belong to the installation, and their certificates (see Mutual TLS).

The core writes every SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. statement a quality job runs. When a cut is due, it compiles the rules on the catalog’s main line into statements for Trino, signs the bundle and records it. It never runs a job itself: the orchestrator schedules jobs, and its job runners send the signed statements to Trino.

  • The server is written in Rust. It serves the application’s HTTP APIApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too. and the internal APIApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too. that other modules and machines call.
  • The web app is a single-page application written in SolidJS and built with Vite, served as static files by nginx.
  • A node agent, from the same image, keeps the server’s machine certificate renewed.
With How
People HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. through Traefik, with a session after signing in
Other modules, machines HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. on Traefik’s internal entry point, each side with a certificate of the installation
PostgreSQL SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. over TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate., the server’s certificate checked
Dolt Dolt’s MySQL-compatible protocol over TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate., with a client certificate
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. Through the lake module’s admin service, to create the installation’s warehouse
  • PostgreSQL: accounts, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., settings, the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., the job index and every business object but the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version..
  • Dolt: the rules and the mappingsMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., with their history.
  • Files beside the module: the installation’s certificate authority and the secrets the containers read, never in the database or in an environment variable.

All three are backed up, and the backup checked, before every update.

Technology stack · Platform

Docker Compose

How every module of an installation runs, as containers described by one Compose file per module, started and updated by the installation's agent.

Module: all of them. Each module is a Compose project of its own.

Every part of Government Data runs as a container. Each module ships one Compose file that says which containers it runs, from which images, on which networks and with which volumes. The installation’s agent, qd, runs Docker Compose with that file to start, update or stop the module. Nobody edits these files by hand: they come inside the module’s package, which the signed version index pins.

  • Images by digest. A module’s Compose file names no image itself: the agent passes each image by its digest, as the signed index lists it, so the containers run exactly the bytes that were published.
  • One network per module. Each module’s containers share a network of their own. Only Traefik joins every module’s network, so a module reaches another only through Traefik, never directly.
  • Containers locked down. Where the software allows it, containers run as an unprivileged user, with a read-only filesystem, no Linux capabilities and no way to gain privileges.
  • Secrets as files. Passwords and keys are mounted as files that only the container’s user can read; they are never in an image, in the Compose file or in its environment file.
  • Health. Each module declares which of its containers must be running and healthy, and the commands that prove it. An update waits for them; if they do not come up, it goes back to the previous version.

In Docker volumes on each server, one per piece of data, each named in the module’s manifest. A volume marked critical is backed up, and the backup checked, before every update. Removing a module stops its containers and keeps its volumes; only an explicit purge deletes them, after a backup.

Each server needs Docker Engine with the Compose plugin. Everything else comes with the modules: do not install the platform’s components on the host yourself.

Technology stack · Edge and identity

Traefik

The one entry point of an installation, for people and for machines, which routes each request to its module and checks the session or the certificate first.

Module: quality-data (the core).

Traefik is the installation’s only door. Every request, from a person’s browser or from another server of the installation, goes through it, and it sends each one to the module that serves it. No other container is reachable from outside its own server.

It has two entry points:

  • The web entry point, over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes., for people. It serves the application, the guide and every module’s screens, each under its own path.
  • The internal entry point, for the installation’s own servers and modules. It accepts only connections that present a certificate signed by the installation’s certificate authority (see Mutual TLS).

Each module’s manifest declares its route: its path, the service and how people sign in to it. When a module is added, the agent writes that route for Traefik; when it is removed, the route goes. During an update, a module’s route shows a maintenance page.

Traefik authenticates; it never authorises. For a module that has no sign-in of its own, such as this guide, Traefik first asks the core whether the request comes with a valid session (forward authentication) and sends the person to sign in if not. What a person may do inside a module is that module’s decision, by the platform’s policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer..

With How
People HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. on the web entry point; plain HTTP only redirects to HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes.
Each module Over that module’s own network; Traefik is the only container on all of them
The core It asks the core to check sessions, and passes machines’ certificates to it
Servers of the installation Mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate. on the internal entry point

The web entry point’s certificate is either your organisation’s own, installed as a file, or one that Traefik obtains and renews by itself from Let’s Encrypt. The internal entry point uses a certificate of the installation’s own authority, renewed automatically.

Its configuration comes with the core’s package and from the routes the agent writes. A certificate obtained from Let’s Encrypt is kept in a volume that is not critical: it is obtained again if lost.

  • People need to reach port 443 (HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes.) of the server where the core runs. Port 80 is needed only to redirect to HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. and, if you use Let’s Encrypt, for its check.
  • The internal entry point must be reachable only from the installation’s own servers, never from the internet or the rest of the network. Whoever supports your installation tells you its port when a second server is added.

Technology stack · Edge and identity

Identity and sign-in (OpenID Connect)

The core is the installation's identity provider, over OpenID Connect, for people and for every module; it can delegate to the company directory or an external provider.

Module: quality-data (the core).

People sign in once, at the core, and enter every module with that session. The core is an identity provider that speaks OpenID Connect (OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account.), the standard sign-in protocol built on OAuth 2.0. Every module with screens of its own, such as Grafana or Superset, is a client of it: it sends the person to the core to sign in and gets back who they are and what roles they have there.

The accounts are the core’s. A person can sign in with:

  • a local account and its password;
  • the organisation’s directory, over LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work., such as Active Directory;
  • an external provider that speaks OIDCOpenID Connect A standard for signing in through an external identity provider, such as the organisation's corporate account., such as Microsoft Entra ID or Google, linked to an existing account.

Setting these up is described in Mail, sign-in and updates.

  • A module with its own sign-in gets the person’s roles in its tokens, computed from the platform’s policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., for example whether a person is a viewer or an administrator in Grafana.
  • When one module calls another on behalf of a person, the call carries that person: it is allowed only if both the person and the calling module may do it.
  • Machines and services that call the core on their own get short-lived tokens of their own, limited to what their module declares it uses.
  • A quality job gets a token that is valid for that job only, which Trino checks before it runs the job’s statements.
With How
People The sign-in pages, through Traefik, over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes.
Modules OpenID Connect and OAuth 2.0: sign-in, tokens, and token exchange on behalf of a person
Directory LDAPLightweight Directory Access Protocol The standard way to look up people in an organisation's user directory, so they can sign in with the account they already use at work., with a service accountService account A token for a script or another system to use Quality Data in its owner's name; it can do at most what its owner can. that may read it
External provider OpenID Connect, with the client registered at the provider

Accounts, groups, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer., linked providers and module clients are in the core’s database, PostgreSQL. Passwords are kept only as salted hashes. Every sign-in and sign-out, and every change to access, is written to the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..

Technology stack · Edge and identity

Mutual TLS and the installation's certificate authority

Every server and service of an installation proves who it is with a short-lived certificate from the installation's own authority, renewed without hands.

Module: quality-data (the core), and every server that joins the installation.

Inside an installation, services do not trust each other because of where a connection comes from. They trust a certificate. Each installation has its own certificate authority (CA), created when it is installed, and every server and service that talks to another presents a certificate signed by it. Both ends check each other’s certificate: this is mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate. (mTLS).

  • The CA belongs to the installation alone. It is not shared with any other installation, and nothing outside the installation needs to trust it.
  • Machine certificates are short-lived: each lasts about a day. A small node agent on every server renews its certificate several times a day, and the services take the new one without restarting.
  • A certificate names the server and its role (the core’s server, a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., a lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. node, the replica…). A service accepts only the roles that should reach it.
  1. An administrator asks for a command for the new server’s role, in Settings, Execution, Add a machine (see Mail, sign-in and updates). The command carries a join token that works once, within an hour.
  2. Whoever supports the installation runs it on the new server. The server makes its own private key, which never leaves it, and asks for a certificate with the token.
  3. The server shows as Pending approval and gets no work until an administrator approves it. From then on its node agent renews its certificate by itself.

Retire takes a server out for good. From that moment the core refuses its certificate, even before the certificate runs out: the server can no longer renew it, get a token for its work, or pass the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gate, and its sessions on the job queue are ended. Its node agent stops.

Connection Checked
A server or module to Traefik’s internal entry point Its certificate, by the installation’s CA
The core to PostgreSQL and Dolt Each side’s certificate
Anyone to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (RustFS) The caller’s certificate, at the lake’s gate
Trino’s coordinator to the lake and its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. Its certificate, from a local proxy that renews without restarting Trino

The CA’s key and certificate are files beside the core’s module, on the core’s server, readable only by the services that sign and check certificates. They are critical: backed up, and the backup checked, before every update. Each server keeps its own key and certificate in its node agent’s directory.

This certificate authority is the installation’s own. The certificate an installation uses to fetch its updates is another one, described in Updates from AWS.

Technology stack · Data

PostgreSQL

The platform's relational database, where the core keeps accounts, policies, settings, the audit log and its business objects, and where modules get their own databases.

Module: quality-data (the core). Other modules get a database of their own in it.

PostgreSQL is the platform’s database. The core keeps in it:

  • accounts, groups, policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. and the identity providers;
  • settings, and the secrets of settings, encrypted with a key kept apart;
  • sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up.;
  • an index of the quality results: the cuts, their state and their totals, which the application’s screens and queues read. The record of results itself is in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gold tables; if the two ever differ, gold wins and the index is rebuilt from it;
  • the audit log.

Modules that need a relational database, such as Superset or the orchestrator, get a database and a user of their own when they are added. One module cannot read another’s database.

The audit log records who did what, when and on what: sign-ins, access and settings changes, ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. approvals, every view of personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. with its reason, exports and runs started by hand. It is append-only: the application cannot change or delete an entry, and each entry carries a hash of the one before it, so a gap or an edit shows. It stays queryable for five years; older months are archived to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.. No other module reads it: Grafana does not read the core’s database.

With How
The core SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. over TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate.; the core checks the server’s certificate and name
Other modules Each with its own user, on its own database

PostgreSQL is not reachable from outside the core’s server: it publishes no port, and only the services that use it share its network.

In a volume on the core’s server. Its databases are critical: before every update they are dumped and the dump checked, and if that cannot be done, the update does not go ahead. Removing a module keeps its database; only a purge deletes it, after a backup.

Technology stack · Data

Dolt

The versioned database that holds the rules catalog, with drafts, approvals to main and the full history of every rule and mapping.

Module: quality-data (the core).

Dolt is a SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. database with version control built in: branches, commits, merges and differences, as in Git, but on tables. Quality Data keeps its rules catalog in it: every ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields..

What people see in the application is Dolt’s versioning:

  • a draft is a branch of its own, where a rule is written and tested without counting;
  • main is the approved line: only the rules on main are evaluated;
  • approving a draft merges it into main, as one more commit;
  • the history of a rule is the list of commits that touched it, with who made each one and when; going back or undoing is a new commit on top, so nothing on main is ever erased.

Every quality run records the catalog commit it was compiled from, so a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. can always be traced to the exact rules that produced it. See Take a change to main and See a rule’s history and undo a change.

Only the core’s server talks to Dolt, over Dolt’s MySQL-compatible protocol, on a network the two share with no one else. The connection uses TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate. with a client certificate of the installation (see Mutual TLS) and a password. Dolt publishes no port.

Other parts of the platform never read the catalog: the core compiles the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. into SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. and hands that out.

In a volume on the core’s server, with its databases, users and grants. It is critical: backed up, and the backup checked, before every update. Besides, Dolt’s own backups are copied to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. on a scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…. Its two passwords are generated at installation and kept as files, never in the repository or the environment.

Dolt has a PostgreSQL-compatible version, Doltgres. It may be considered in the future; nothing in the catalog depends on that choice.

Technology stack · Data

RustFS

The object storage of the data lake, compatible with S3, behind a gate that requires the installation's certificate, with a replica that keeps every object for 30 days.

Module: lake-rustfs. It provides the capability “lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.” to the modules that need it: the core, Trino and observability.

Where it runs: on the lake’s server, a machine joined with the role lake, which starts its services once approved.

RustFS is open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. object storage, written in Rust, that speaks the S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. protocol. It is the storage of the installation’s data lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.:

  • the lake’s tables, in Apache Iceberg format: the data copied from the sources (bronze), the data as mapped (silver) and the quality results (gold), with the Iceberg REST catalog that lists them;
  • the technical logs and metrics that Loki and Mimir keep;
  • the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy.’s archive and the rules catalogRules catalog Where Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main.’s backups.
  • The main lake is one server, or a pool of at least four servers whose drives share the data, so it keeps working when a drive or a server fails.
  • The replica is a separate server. The main lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. copies the installation’s warehouse into it, where each object is kept for 30 days and nobody, not even an administrator, can delete it or shorten that. The main lake keeps old versions of objects for 7 days.
  • The gate is a small proxy in front of RustFS that lets in only connections with a certificate of the installation (see Mutual TLS).
  • The lake admin service of the module answers the core alone: the lake’s health, its warehouses and their replication. From the lake’s root keys it makes and keeps an admin user of its own for that work. The core holds no code of RustFS’s own; another lake module could serve the same protocol.
  • A module’s stores. A module that needs storage of its own gets a bucket in the lake, kept with versions, and a user that reaches that bucket alone, made when the module is added.
  • The console. RustFS’s own web console is reached through the lake’s gate, at /rustfs/console/, and opened from the apps menu as Lake console. People sign in through the core: lake-rustfs:UseConsole reads the lake, and lake-rustfs:Administer administers its storage (Permissions).

The steps to set these up are in Mail, sign-in and updates.

With How
Trino S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. for the files and Iceberg REST for the tables, through the gate
Loki and Mimir S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer., each in its own bucket
The core The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. admin protocol, with mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate. both ways
Short-lived credentials The S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. security token service: credentials that last minutes, narrowed to what one task needs
People RustFS’s console, opened from the apps menu as Lake console, signed in at the core

On the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. servers’ drives. The data is critical, and its backup is the replica: an update of the lake goes ahead only when the replica is in sync and every server is healthy. Removing the module keeps its data; only a purge deletes it, after a backup.

Technology stack · Data

Apache Iceberg

The open table format of the data lake, with its REST catalog, and the three layers bronze, silver and gold, where gold holds the record of the quality results.

Module: lake-rustfs serves the catalog and stores the files; Trino reads and writes the tables.

Apache Iceberg is an open format for large analytic tables kept as files in object storage. A table is a set of ParquetParquet A compressed, fast-to-read file format for large tables. data files plus metadata that says which files make up each version of the table. Every write creates a new snapshot, committed all at once: a reader sees the table before the write or after it, never half of it, and can read an earlier snapshot on purpose.

The Iceberg REST catalog is the service that lists the tables and points at their current metadata. In Government Data it is served by RustFS itself, over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. behind the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gate.

Each installation has one warehouse in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., with three layers:

Layer Holds Written by
Bronze The data of each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. as copied from the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. Extraction jobs
Silver The same data with the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. applied Derivation jobs, from bronze
Gold The quality results: per ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., per field, per group, the findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. and the data each chart draws Rule jobs, from silver
  • Bronze and silver only grow. A load adds rows under its own identifier; only once every statement succeeded and the counts match does the core record it as the cut’s accepted load. Readers then read exactly that load, at that snapshot, so a cut always gives the same results.
  • Gold is the system of record of the quality results. Every table carries the dataset, the cut and the run. A new run of a cut writes its rows, then switches to them in one commit, then deletes the previous run’s rows; dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. read views that always show one whole run.
  • No record values in gold, except the values of the grouping fieldsGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. the indicators are broken down by, such as an office or a region. Findings carry keyed hashes of the record keysRecord key The field or fields of a dataset's mapping that tell one record from another., not the keys.

Bronze and silver hold copies of the source data, which may include personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.. Nobody reads them directly: only jobs, through Trino, with the access their token grants.

With How
Trino The Iceberg REST protocol for the catalog; S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. for the files
Superset Never directly: it reads gold’s views through Trino
The core Never directly: it records what each job reports

In the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., on RustFS: the data files, the metadata and the catalog. Maintenance jobs compact small files and remove superseded loads; old snapshots are kept, so a past cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. can always be read as it was. The lake’s replica keeps a copy of everything.

Technology stack · Processing

Trino

The one SQL engine of the platform. It reads the organisation's databases, writes the lake's bronze, silver and gold, runs the quality rules, and serves the dashboards' queries.

Module: query-trino. It provides the capability “SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query” and needs the capability “lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.”.

Trino is a distributed SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query engine. In Government Data it is the one engine that touches data:

  • it reads the sources, the organisation’s databases, read only, and writes each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s bronze layer;
  • it derives silver by applying the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.;
  • it evaluates the quality rules on silver and writes the results to gold;
  • it answers the dashboards: Superset reads gold through it, as the person who is looking.

Being distributed is what fits Trino to large volumes. A coordinator plans each query and splits it into tasks, and its workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. run them in parallel, each on its own part of the data, so a large sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. or lake table is read by several machines at once rather than by one. An installation that needs more capacity adds workers. The simulation shows where each part runs.

Trino never decides what to run. The core writes every statement, compiled from the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., and signs it; the orchestrator’s job runners send those statements to Trino. While a rule is being written, its examples are checked on the spot by the rule editor, before it ever reaches Trino.

  • A token per job. Each job reaches Trino with a token that the core issues for that job alone, which says which datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and which kind of work it is. Trino’s access rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., served by the core, allow that job only what it needs: its own dataset’s tables, its own sourceSource A database the organisation already runs. Quality Data reads it and never writes to it..
  • Source passwords travel with the job that needs them and are never stored by Trino.
  • Only counts come out. A quality job reports names, counts and durations, never a record’s values. Samples shown while testing a rule go through the application, which checks the person’s permission and writes the view to the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy..
  • People read only gold. For dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., Trino offers gold read-only, with each person’s row filters applied; bronze and silver are for jobs.
  • No memory dump is ever written to disk, as it could hold records.
With How
Job runners, Superset Trino’s client protocol over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes., with a token per job or per person
The organisation’s databases Each engine’s own protocol (such as SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server, Oracle, PostgreSQL or MySQL), read only
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. and Iceberg REST, through the lake’s gate, with mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate.
The core It reads its access rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. from the core

The coordinator runs on the main server, inside the orchestrator, which runs and manages it. The workers run on machines of their own: an installation starts with one and adds more for big data, without moving any data, since workers keep nothing between queries. A worker needs the most memory; as a starting point, about 13 GB for Trino on each worker, to be sized from the installation’s own data. Memory is divided between quality jobs and dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. queries, so one cannot starve the other, and a query too big for the memory spills to a disk of its own. Before Trino restarts for an update, the orchestrator lets the running jobs finish and holds new ones.

Nowhere of its own: Trino keeps no data between queries. What it writes goes to the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.; its spill disk holds temporary files only while a query runs.

Technology stack · Processing

The orchestrator and its job runners

The operator that fires schedules and tracks every job, and its light job runners, which send the core's signed SQL to Trino and report counts back.

Module: orchestrator. It needs the capability “SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query”, which Trino provides.

Running a quality cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. is split in three roles, each doing one thing:

Part Does Never does
The core Owns the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. and schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, compiles and signs every statement, hands out each job’s secrets, records the results Run a job or talk to Trino
The operator Fires the schedules, keeps each job’s state, retries with backoff, makes sure only one job writes a table at a time Read or change a statement, see a secret
The job runners Take a job, fetch its signed statements, check the signature, send each statement to Trino, report counts Write SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it., keep state, read values

The operator is the orchestrator’s service. The job runners are light processes of the orchestrator, on the main server beside it. They process no data: they send the signed SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. to Trino and report. Two of them run jobs in parallel, and since they keep no state, more can be added without touching the rest.

The orchestrator also runs and manages Trino’s coordinator, on the main server beside the operator, so it knows when Trino may restart. Trino’s workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., which do the heavy query work, run on machines of their own.

The orchestrator has a web of its own, at /orchestrator/, opened from the apps menu as Orchestrator by whoever holds orchestrator:ViewFlows. People sign in through the core, with the same account, and the web follows the language chosen there. It has three screens:

  • Flows: what the orchestrator runs, by folder, with Run now and See its runs.
  • Runs: every run, newest first, by flow, state and date; a run shows its progress, its counts and its Log, and can be cancelled.
  • Import: loads the flows already on a cluster: it shows what a job runner found, can ask it for a new scan, and imports the flows picked, once what the engine flagged is confirmed.

What each person may do there comes from their permissions (Permissions). The servers’ resources, memory, disk and processor, are not shown here: they belong in Monitoring, the installation’s Grafana.

  1. The operator fires the cut on its scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, or when someone starts it.
  2. The core compiles the statements from the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on the catalog’s main line, signs them, and records the bundle.
  3. A job runner takes the job and fetches the bundle and the job’s secrets from the core. A statement that is not in a verified bundle is never run.
  4. The job runner sends each statement to Trino with the job’s token, checks that each answer has the expected shape (counts only), and records its progress, so a retry resumes where it stopped.
  5. The job runner reports names, counts, durations, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s snapshot identifiers and any stage that failed to the core. The cut runs as three jobs in a chain: extraction to bronze, derivation to silver, evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. into gold.

If a job runner stops, its job’s lease runs out and another job runner takes it; the old attempt’s query is cancelled first, so two attempts never write the same cut.

With How
The core HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. on Traefik’s internal entry point, with mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate.
People Its web and APIApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too. at /orchestrator/ through Traefik; sign-in at the core over OpenID Connect
Trino Trino’s client protocol, with a token valid for one job

Before an update, the core asks the orchestrator how much work is running and due soon, and the update waits for it. While Trino restarts, the operator holds the jobs that need it and lets the running ones finish.

The operator keeps the jobs’ state, leases and attempts. The job runners keep nothing.

Technology stack · Indicators

Apache Superset

The analytics application of the platform, which draws the quality indicators from the lake's gold tables through Trino, as the person who is looking.

Module: bi-superset. It needs the capability “SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query”, which Trino provides.

Apache Superset is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. application for dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and data exploration. In Government Data it draws the quality indicators: each datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s dashboard, its charts and their evolution from cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to cut.

  • The dataset’s dashboard appears inside the application’s own page, embedded, so people do not leave Quality Data to read it.
  • People with bi-superset:Author can also open Superset itself, from the apps menu as Analytics, to explore gold’s tables read-only and build charts and dashboards of their own.
  • Superset reaches Trino through one connection, Quality results, which the module makes at install and sets again at every update from the endpoint the query module declares, so no address is typed by hand.
  • The dashboards the platform ships are replaced at each update; a dashboard that someone builds is theirs and stays.

Superset never reads the lake’s files, its catalog or PostgreSQL. It reads gold’s views through Trino, as the person who is looking: Trino applies that person’s row filters, so each one sees only the datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and groups their policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. allows. In the embedded dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., the core issues a short-lived guest token for that person and that dashboard.

Gold holds no record values, only counts, indicators and the values of the grouping fieldsGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. (see Apache Iceberg).

With How
People Its screens through Traefik; sign-in at the core over OpenID Connect
The application’s pages Embedded, with a guest token the core issues
Trino Trino’s client protocol over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes., on behalf of the person
Valkey Its cache, on the module’s own network

Superset’s roles come from the person’s permissions in the core, computed at each sign-in, so a change of policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. reaches Superset at the next one.

Superset keeps its own metadata in a database of its own in PostgreSQL: its users, roles, charts, dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more., saved queries and its action log. No indicator is stored there: the numbers stay in gold. Query results are cached in Valkey for a few minutes. Removing the module keeps its database; only a purge deletes it, after a backup.

Technology stack · Indicators

Valkey

The in-memory store that caches Superset's query results for a few minutes; it is Superset's alone and never carries the platform's events.

Module: bi-superset, beside Apache Superset.

Valkey is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., in-memory key-value store, under the BSD licence, that speaks the same protocol as Redis. In Government Data it is Superset’s cache:

  • it keeps the results of dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. queries for a few minutes, so a dashboard that many people open at once asks Trino once;
  • it holds Superset’s rate limits.

Valkey is not a message broker for the platform. The platform’s modules tell each other what happened through the core, never through Valkey.

Only Superset talks to Valkey, on the module’s own network, with a password that is generated at installation and kept as a file. Valkey publishes no port and nothing else can reach it.

In memory, and in a volume of the module. What it holds can be lost without harm: it is a cache, filled again from Trino. Removing the module keeps the volume; only a purge deletes it.

Technology stack · Operations

Grafana

The monitoring application of the platform, being built, with the technical logs, the metrics of every machine and alerts.

Module: observability, with Loki, Mimir and Alloy. It needs the capability “lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.”.

Being built: the observability module is not in an installation yet. This page describes it as designed.

Grafana is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. application for dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. and alerts. In Government Data it is for operations, not for the quality indicators, which Superset draws:

  • technical logs of every service, read from Loki, including every line of one run across all servers;
  • metrics of every server and service, read from Mimir: CPUCentral processing unit A server's processor; the installer asks for at least 2., memory, disks, network, the clock, the queue and the job runners;
  • alerts when a server or a service needs attention, sent by mail.

Grafana does not read the core’s database: it never sees the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., the results or the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy.. The quality charts are Superset’s.

The dashboards come with the installation and are updated with it.

Grafana is a client of the core’s sign-in: people open it from the apps menu, as Monitoring, and enter with their own account. The entry shows to whoever holds observability:View (see Permissions). Anyone else is refused.

With How
People Its screens through Traefik; sign-in at the core over OpenID Connect
Loki, Mimir Their query APIsApplication programming interface The entry point other programs use to talk to the platform; its own screens use it too., inside the observability module
Mail The organisation’s mail server, for alerts

Grafana keeps its own settings, users and alert state. The logs and metrics it shows are Loki’s and Mimir’s, in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources..

Technology stack · Operations

Loki

The store of the technical logs of every service of the installation, kept in the lake for 90 days, with no personal data.

Module: observability.

Grafana Loki is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. store for logs. In Government Data it keeps the technical logs of every service on every server of the installation, which Alloy collects and Grafana shows.

Technical logs say what happened inside a process, for whoever runs the installation. Every service writes them as JSONJavaScript Object Notation A common plain-text format in which programs exchange structured data. with the same fields: time, level, service, server, request, run and job. So one search shows every line of one run, across all servers.

Technical logs carry no personal data. Values read from sources, ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. tests or findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. are never logged: errors name ids and field names, not values, and a second layer drops known sensitive fields. Who saw which personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. is not a technical log: it is the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., in PostgreSQL.

With How
Alloy Alloy pushes each server’s logs to Loki
Grafana Grafana queries Loki, inside the observability module
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. Loki keeps its data in a bucket of its own, over S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer.

In the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (RustFS), in a bucket of its own, for 90 days. Like everything in the lake, the replica keeps a copy. An organisation that runs its own log system can also have Alloy forward the logs there.

Technology stack · Operations

Mimir

The store of the metrics of every server and service of the installation, kept in the lake and read by Grafana.

Module: observability.

Grafana Mimir is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. store for metrics, compatible with Prometheus. In Government Data it keeps the metrics that Alloy collects on every server, which Grafana draws and alerts on:

  • each server’s CPUCentral processing unit A server's processor; the installer asks for at least 2., memory, load, disks, network and clock;
  • each service’s own metrics, such as Traefik’s requests, the queue of jobs and the live job runners.

Metrics are numbers with a few labels, such as the server, its role and the service. They carry no data from the sources and no personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail..

With How
Alloy Every server’s Alloy pushes its metrics, presenting the server’s certificate (see Mutual TLS)
Grafana Grafana reads them; only the core’s server may read
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. Mimir keeps its data in a bucket of its own, over S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer.

In the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (RustFS), in a bucket of its own; the lake’s replica keeps a copy.

Technology stack · Operations

Alloy

The collector on every server of the installation, which sends the services' logs to Loki and the server's and services' metrics to Mimir, with the least access that works.

Module: observability. One runs on every server of the installation.

Grafana Alloy is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. collector of logs and metrics. In Government Data, each server runs its own Alloy, which:

  • reads the logs of every service on that server and sends them to Loki;
  • reads the server’s own metrics, CPUCentral processing unit A server's processor; the installer asks for at least 2., memory, load, disks, network, clock and boot time, and sends them to Mimir;
  • collects the metrics that services publish, such as Traefik’s, and sends them to Mimir too.

The command that adds a server to the installation also sets up its Alloy, so a new server shows in Grafana once it joins.

Alloy runs in a container with no more access than it needs: it reads only the disks it watches (Docker’s, the database’s, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s drives…), read-only, and the server’s network counters, not the rest of the server. It keeps a short list of metrics and drops the rest, and no label carries a path or a name that a person chose.

With How
Loki, Mimir It pushes over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. with the server’s certificate (see Mutual TLS)
The services’ metrics It reads them with the server’s certificate
The organisation’s own log system Optionally, it can also forward the logs, by syslog or OpenTelemetry

Nowhere of its own beyond a small buffer: what it collects goes to Loki and Mimir, in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources..

Technology stack · Updates

The installation's agent (qd)

The program on the installation's server that installs and updates every module from signed versions, backing up first and going back by itself if an update fails.

Where it runs: on the core’s server, as a system service, outside the containers it manages.

qd is the installation’s agent. It installs, configures and updates the platform and its modules, and nothing else may change them:

  • enrol: when the installation is set up, it makes the installation’s own private key, which never leaves the server, and a certificate request. Once that request is signed, the certificate is the installation’s identity towards the versions published in AWS (see Updates from AWS).
  • install the platform for the first time.
  • check and update: it reads the signed version index, and when a new version is due for this installation, it applies it.
  • add and remove modules, from their manifests.
  • The core first. When it starts the modules, the core’s module starts before the others, which depend on it.
  • Each module its own copies. Each module gets its own copy of the server’s machine certificate and of its secrets, owned by the user its containers run as. qd credentials sync copies them again; the agent also does it by itself after the certificate is renewed.
  • Providers and consumers. A module that needs a capability gets its provider’s endpoint in its settings: Superset, for example, reaches Trino with no address typed by hand. Modules and machine roles also get the host of the core’s sign-in.
  • Routes to other machines. A module whose screens run on a joined machine, such as the lake’s console, gets its route on the main server sent to that machine’s gate.
  • Joined machines. Each joined machine has a small node agent: once the machine is approved, it gets its role’s files, keeping scripts executable, and starts the role’s services within about a minute.
  1. The agent reads the signed index and checks its signature with the public key it carries. An index that fails the check is ignored.
  2. It downloads each module’s package and checks its fingerprint against the index, and pulls the images by their digest.
  3. It asks the core how much work is running or due, and waits for it, within the limit set under Settings, Updates.
  4. It backs up every critical piece of data, databases, volumes and keys, and checks the backup. If a critical piece cannot be backed up, there is no update.
  5. It applies the new version in steps. Before each step it writes down where it is, so after a power cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. it resumes, and every step can run twice.
  6. It checks each module’s health. If the new version does not come up, it goes back to the previous one by itself.
  7. It writes a short report: versions, steps, durations and errors, never any data of the organisation.

When updates install, with approval, automatically within a window, or by hand on the server, is chosen in the application, as described in Mail, sign-in and updates.

With How
AWS Outbound HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. only, with short-lived credentials from its certificate; nothing comes in
The core Traefik’s internal entry point, with mutual TLSTransport Layer Security The encryption that protects data travelling between two systems; with mutual TLS, both sides prove who they are with a certificate.
The modules Docker Compose, on the same server

qsdk is a separate command line, for whoever publishes versions and manages enrolments: it signs an installation’s enrolment request, revokes an installation, and publishes a module. It never runs on an installation’s server.

In its own directory on the server: the installation’s key and certificate, the state of the update in progress, the packages and the backups taken before each update.

Technology stack · Updates

Updates from AWS

How versions are published and trusted, with a signed index in S3, images in ECR, a signing key in KMS, and installations proving who they are with IAM Roles Anywhere.

Where it runs: in Amazon Web Services, outside every installation. An installation only reads from it.

Each version of Government Data and of its modules is published in AWS. Installations pull what they need from there; AWS never connects to an installation, and an installation opens no port for it. Four services are used:

Service What it holds or does
Amazon S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. The signed version index, each module’s package, and the reports installations write after an update
Amazon ECR The container images of every module, by digest, including copies of the third-party images a module runs
AWS KMS The key that signs the index; the key itself never leaves KMS
IAM Roles Anywhere Exchanges an installation’s certificate for credentials that last one hour
  • The index is signed. It lists every version and, for each module, the fingerprint of its package and the digest of each image. The agent trusts it only if its signature matches the public key the agent carries, never because of where the file came from.
  • Everything else is pinned by the index. A package whose fingerprint or an image whose digest does not match is refused.
  • Publishing is split. Each module’s repository may publish only its own images and package; only the platform’s release may sign the index. Taking over one module’s publishing cannot reach an installation.
  • Third-party images are copied. An image a module runs but does not build, such as PostgreSQL or Trino, is copied into ECR and pinned by digest: installations never pull from a third party’s registry.

When an installation is set up, its agent makes a private key that never leaves the server, and the request is signed into an enrolment certificate. With it, the agent gets AWS credentials that last one hour and allow only reading versions, pulling images and writing its own report. There is no long-lived password or access key.

Revoking an installation’s certificate stops its updates. The installation itself keeps working.

  • The core’s server needs outbound HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. to AWS’s public service endpoints for S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer., ECR and IAM Roles Anywhere. Whoever supports your installation gives you the list for your firewall. No inbound ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. is needed.
  • Reports carry versions, steps, durations and errors, never the organisation’s data.

Government Data · Guide v0.8.1