Skip to Content
InformationInformation
  • Article
  • Open Access

1 December 2026

43 Pages

A Framework and Evaluation Protocol for Data Quality and Reliability in Data Engineering Pipelines

Tesla, Inc., Austin, TX 78725, USA

Abstract

Data engineering pipelines are expected to deliver correct data, and to do so reliably, yet a pipeline that completes without error has not necessarily produced good data. This paper asks what a pipeline must guarantee to manage data quality and execution reliability together, and answers with an auditable decision workflow. Seven design requirements derived from the literature are organized into seven components: a Gate that enforces executable rules; a Detector that reports evidence rather than verdicts; a Decider that alone may change a record and records every decision; a Verifier through which all output must pass; Monitor and Recovery, which keeps the account of the run apart from the account of the data; and the records Lineage and Run Log. An evaluation protocol fixes the dataset, six configurations that add one requirement group at a time, a defect taxonomy with a ground-truth precedence rule, two-stage metrics, a scalability procedure, an analysis plan, and three propositions. A pilot on New York City taxi trip records with injected and natural defects confirmed all three, and a held-out month repeated every rule-based and decision-based result but not the Detector’s precision (81.9% against 22.2%). The full framework caught every injected defect and every rule-defined one, routed every flag as its rule prescribed (review was simulated), corrected flagged values with 90.5% accuracy under verified decisions, and recovered from every operational failure, at 5.4 times the baseline processing time for one month and 8.4 for twelve. The pilot also quantifies the costs: corrections that satisfy a rule without restoring the true value, a review backlog, data withheld from release, and a Detector baseline that goes stale.

1. Introduction

1.1. Motivation

Organizations are building more applications, dashboards, and analytical solutions than ever, and all of them run on data. The application layer typically takes what arrives from the data warehouse as accurate and does not check it again, so by the time data land there they have to be trustworthy. That responsibility falls on the data engineering pipeline, and it is getting harder to meet. Insights come from joining data across operational systems, external feeds, and event logs, which means bringing sources with different schemas, conventions, and update cycles into one schema at the granularity the joins require. Every reconciliation is a place where a value can be lost, duplicated, or mismatched.
The failures this produces are quiet. A pipeline that runs to completion every night is not necessarily delivering good data. A schema change upstream can turn a populated field into nulls, a load that runs twice can double a daily total, and a type cast can discard valid values, all without a single error in the logs. The problem is found by consumers, when a dashboard disagrees with reality, and by then the data have passed through many layers, far from the point where it went wrong.
The data quality literature has long argued that quality is fitness for use [1], that it should be assessed with both objective and subjective measures [2], and that it is managed continuously rather than checked once [3]. For pipelines this has two consequences. Quality has to be managed at every stage, not only at delivery, and checking whether the data are right (validation) is a different activity from checking whether the job ran (monitoring). A pipeline can pass one and fail the other.
The defects themselves are well known [4,5,6,7]: inconsistent schemas, missing values, duplicates, transformation errors, and late data. Two properties make them hard to manage. They have different causes, from source systems to integration logic to repeated loads, so one handling rule applied to all of them removes valid records as readily as invalid ones. Additionally, because they propagate, finding the origin of a defect requires a record of which source records, transformations, checks, and corrections were involved.

1.2. Research Gap

Data cleaning [8], profiling [9], error detection [10], and quality management for big data [11] are each mature fields. They supply methods for finding problems and methods for fixing them. What none of them supplies as a first-class, recorded step is the one in between: deciding whether a flagged record is actually wrong, choosing what to do with it, and recording that choice. Validation tools offer hooks that run a response when a check fails, but a hook is not a decision record that states what was confirmed, what was done, and why. Profiling shows that something is unusual. Detection shows that a rule was violated. Cleaning changes the record. The confirmation step is rarely a first-class, recorded part of the pipeline; where tools offer it at all, it is a hook for custom logic, and in practice it is often skipped, so every flag becomes a fix.
That is a mistake because not every anomaly is a defect. An unusually high value can be correct. A missing value can be acceptable for one use of the data and disqualifying for another. Fixing every flag produces false positives and unnecessary edits, while checking only structure misses semantic errors entirely. The handling decision has to depend on the cause of the anomaly, the evidence for it, and the use the data are put to, and it has to be written down so that the outcome can be traced.
The gap, then, is not a shortage of methods. It is the absence of a pipeline design that combines them, expresses quality requirements as executable rules, makes the handling decision explicit, keeps data validation separate from execution monitoring, and defines how the combination would be evaluated.

1.3. Aim and Contributions

This paper proposes such a design: an auditable decision workflow for pipeline data quality, stated as a framework of requirements and components, with a protocol for evaluating it and a pilot run of that protocol. None of the underlying concepts is new. The contribution is the integration, the explicit decision step, and the evaluation design, not a new algorithm; the pilot shows that the protocol can be run and that the framework behaves as designed, and it gives first evidence on costs, not a production benchmark. Three research questions guide the work:
  • RQ1: What requirements must a data engineering pipeline meet to manage data quality and execution reliability together?
  • RQ2: How should a pipeline be organized to meet those requirements?
  • RQ3: How can the proposed framework be evaluated through a transparent and reproducible protocol?
Each question is answered by one section. Section 2 answers RQ1 by deriving seven design requirements from the literature. Section 3 answers RQ2 with seven components and a decision workflow. Section 4 answers RQ3 with an evaluation protocol, and Section 5 reports a pilot run of it. Figure 1 summarizes the motivation, the gap, the research questions, and the contributions. Section 6 discusses implications and scope, and Section 7 concludes.
Figure 1. Research design. The problem and the gap lead to three research questions. Each row links one question to the contribution that answers it and to the evidence reported for it. For the detection and cleaning methods named under the gap, see [8,9,10,11].

2. Background and Design Requirements

RQ1 asks what requirements a data engineering pipeline must meet to manage data quality and execution reliability together. This section answers it with seven design requirements (DR1–DR7). Each is derived the same way: from the body of research that addresses one aspect of quality or reliability, and from what that research leaves open when it has to hold inside a pipeline. The requirements state properties the pipeline must have and the reasons it must have them. How a pipeline is organized to have them is the subject of RQ2 and Section 3. Section 2.1, Section 2.2, Section 2.3, Section 2.4, Section 2.5, Section 2.6 and Section 2.7 derive the requirements, Section 2.8 summarizes them, and Section 2.9 compares them with current tooling.

2.1. Acceptable Data as Executable Rules

Data quality is multidimensional and depends on the context of use [1,2,3]. The dimensions that matter most for pipelines are accuracy, completeness, consistency, timeliness, validity, uniqueness, and contextual fitness for a specific purpose [1,2,3,7]. They are related but not interchangeable. A dataset can be fully valid yet inaccurate, and it can pass every formal test yet be unsuitable for a particular analysis.
What this work leaves open is operationalization. A dimension is a way of talking about quality. It is of no use to a pipeline until it has been expressed as something the pipeline can evaluate for a given record and answer yes or no.
DR1: Define acceptable data as executable pass-or-fail rules, both structural (required columns, data types, key uniqueness, schema integrity) and domain (value ranges, allowed codes, cross-field plausibility).
DR1 requires that the pipeline hold an explicit, machine-checkable definition of the data it is supposed to carry. The definition has two parts. Structural rules concern the shape of the data and can be stated without knowing what the data describe: a column is present, a value has the declared type, a key is unique, the schema is the one expected. Domain rules concern the meaning of the data and can only be stated by someone who knows the business: a value falls in its permitted range, a code is one of the allowed ones, the fields of a record are consistent with each other. Both kinds are deterministic. A record either satisfies a rule or it does not, and the rule itself says which.

2.2. Detection Beyond the Rules

Profiling examines data types, distributions, null rates, value ranges, uniqueness, and inter-attribute relationships to establish a baseline for a dataset. Abedjan et al. [9,10] distinguish profiling from error detection, which checks data against constraints or patterns, and their evaluation of detection tools on real datasets shows that no single method finds every kind of error. Ardagna et al. [12] add that quality has to be assessed in the context of the application.
What this work leaves open is the status of a flag. Profiling and detection show that something is unusual. They do not show that it is wrong, and the methods that find the most are also the ones that flag the most valid records.
DR2: Detect potential defects that rules cannot express, such as distribution shifts, outliers, and unexpected patterns, against explicit baselines, and report them as evidence.
DR2 requires the pipeline to look for the problems DR1 cannot state as a contract. A DR1 rule is a property of a record or a batch that can be decided from the record or the batch alone, and a violation is a defect by definition. That a null rate has doubled since last week, that a value is in the extreme tail of its distribution, and that two fields have started moving together are not properties of a record; they are departures from a baseline, and a departure is not a defect by definition, because the baseline may be the thing that has changed. Such checks are executable, with explicit thresholds, and the pilot implements them that way; what distinguishes them from rules is not whether they can be executed but what their result licenses. DR2 requires the baseline and the threshold to be explicit so that every flag can be explained. It also fixes the status of what detection produces. A flag is evidence that a record deserves attention: which record, which statistic, and why. It is not a finding that the record is wrong, and it carries no authority to act.

2.3. No Action on a Flag Without Confirmation and a Record

Cleaning research [4,8] shows that the right remediation depends on the nature of the defect, the evidence for it, the intended use of the data, and the consequences of modifying or deleting a record. Automated systems supply candidate methods. HoloClean [13] repairs records by probabilistic inference over the signals available for each record, and ActiveClean [14] cleans the records that matter most to a model being trained.
What this work leaves open is control. Automated correction introduces errors when its assumptions are wrong, when domain knowledge is missing, or when correct data resemble a known error pattern. Imputation, normalization, and deduplication are appropriate when a well-founded rule exists and distorting when one does not. The step between a flag and a fix, establishing that there is a problem and choosing what to do about it, is left to the implementer rather than specified and recorded.
DR3: Do not change, exclude, or retain any flagged record without a confirmation outcome and a recorded decision that states the rule, the rationale, the original and resulting values, and the verification result.
DR3 requires that a flag never turns into an outcome on its own. Every flagged record must first reach a confirmation outcome: the flag is established as a defect against a rule or a reference, or it is not. Every flagged record must then receive a decision, and the decision must be written down with enough content to be reviewed: what rule applied, why this outcome was chosen, what the record was before and after, and whether the result was verified. Retention is included deliberately. Keeping an unusual record because it turned out to be valid is a decision, and it has to be recorded like any other, so that the pipeline can always say why a record it questioned is still there.

2.4. Execution Recorded Apart from Data Outcomes

Valid source data can become invalid through processing. Foidl et al. [15] cataloged the factors that influence pipeline quality and the root causes of data-related issues, and Polyzotis et al. [16] described the data management challenges of production machine learning, where validating and cleaning data are ongoing operational concerns. Both argue for treating processing behavior and dependencies as first-class concerns alongside input quality. Problems in pipelines fall into three categories that call for different responses: data defects, corrected in the data; transformation defects, corrected in the logic; and operational issues, resolved by recovering the process.
What this work leaves open is keeping the categories apart in practice. A pipeline that only validates data cannot tell a transformation defect from a source defect, and a pipeline that only monitors execution cannot see either.
DR4: Record execution status, timings, lateness, and operational failures for every stage, separately from data quality outcomes.
DR4 requires the pipeline to keep an account of how it ran that is distinct from the account of what it produced. Did each stage complete, how long did it take, was it late against its expectation, and what failed? Lateness is included because timeliness is a quality dimension in Section 2.1 that no pass-or-fail rule on a record can capture; it is a property of the run. The separation is the substance of the requirement. Execution success and data validity are different properties, and a pipeline that records them together cannot tell which of the two it is looking at when something goes wrong.

2.5. Recovery Is Not Complete Until the Output Is Shown to Be Correct

Large-scale processing runs on distributed systems. MapReduce [17] established the programming model, resilient distributed datasets [18] added fault-tolerant in-memory computation, Spark SQL [19] brought relational processing to that model, the Dataflow model [20] made the trade-off between correctness, latency, and cost explicit for unbounded data, and Kafka [21] provided durable distributed logs. These systems are the substrate the framework assumes. They guarantee that computation completes, or can be retried until it does.
What this work leaves open is the data. A retried task can emit duplicate outputs, and a restarted job does not repair defective inputs. Fault tolerance restores the process, not the result.
DR5: Treat recovery from an operational failure as complete only when the recovered output has been validated and checked.
DR5 requires that a successful restart is never, by itself, a reason to treat data as good. Recovery has two parts. The output must be validated, which means it satisfies the same definition of acceptable data as any other output. It must be checked for what the recovery itself can introduce, since re-running work can produce records that a single run would not have produced. Until both hold, the recovery is still in progress.

2.6. Every Output Traceable to What Produced It

Provenance and lineage describe where data came from and what was done to them. They support defect analysis, auditing, reproducibility, and the identification of upstream changes that affect downstream consumers [22,23]. The Open Provenance Model [24] provides an exchange format for this information. Dataset documentation is the complementary practice. Datasheets for datasets [25] and data statements [26] make the point that the context a dataset was collected in travels poorly unless it is written down.
What this work leaves open is integration with quality decisions. Provenance tells you how a value was derived. It does not, on its own, tell you which rule flagged it, what was decided, or whether the correction was verified.
DR6: Link every output to the source records, transformations, validation results, and decisions that produced it.
DR6 requires that for any output the pipeline can answer four questions: which input records it came from, which transformations were applied, what the rules of DR1 said about it along the way, and what decisions under DR3 affected it. The fourth question is what distinguishes this requirement from conventional lineage. Because defects propagate, the stage where a problem is noticed is rarely the stage where it was introduced, and without the full chain a defect in the source cannot be distinguished from one introduced by processing or by a remediation decision.

2.7. Any Run Reproducible, Any Output Regenerable

More recent work shows what quality control looks like when it is built into the pipeline rather than applied afterwards. Priestley et al. [27] surveyed the data quality requirements that matter in machine learning development pipelines. Schelter et al. [28] showed that declarative constraints, expressed as unit tests for data, can automate quality verification at scale. Provenance-based screening of data preparation pipelines [29] and task-aware validation that takes the downstream code into account [30] push validation closer to the consumer of the data. Breck et al. [31] described a production validation system that infers a schema, checks each new batch against it, and routes anomalies to an engineer rather than fixing them automatically. That last choice, surfacing anomalies for a decision rather than acting on them, is the one this paper generalizes.
What this work leaves open is repeatability. The assessment and evaluation literature [2,5,8,10,16] provides methods for measuring quality and comparing approaches, but a measurement is only meaningful if the run that produced it can be reproduced, and a pipeline whose rules and configurations are not recorded cannot be rerun the same way twice.
DR7: Record rules, configurations, and run conditions so that any run can be reproduced and any output regenerated.
DR7 requires that the pipeline capture everything that determined a run: the rules in force under DR1 and DR2, the configuration of each stage, the versions of inputs and logic, and the conditions under which it executed. Two things follow. Any output can be regenerated, which is the strongest form of audit, because a disputed number can be produced again from its inputs. Any run can be compared with another, which is what the evaluation in Section 4 depends on.

2.8. Summary of the Requirements

The seven requirements fall into three groups. DR1, DR2, and DR3 concern the data: what is acceptable, what deserves attention, and what may be done about it. DR4 and DR5 concern execution: how the pipeline ran, and when a recovered run counts as finished. DR6 and DR7 concern the record: what each output can be traced to, and what each run can be reproduced from. Table 1 summarizes each requirement, the limitation in the literature that motivates it, its sources, and the component that meets it.
Table 1. Design requirements, the limitations that motivate them, their sources, and the components that meet them.

2.9. Relationship to Existing Tools

Most of the requirements are met in part by current tooling, but not together. Ehrlinger and Wöß [32] evaluated thirteen data quality tools and found that concepts well established in the research literature are rarely implemented in the tools themselves. Table 2 compares six representative tools and systems against the seven requirements, using the publication or documentation cited for each. Full means the requirement is met as stated. Partial means a related capability exists but misses part of the requirement, as explained below. None means the capability is absent.
Table 2. Coverage of the design requirements by representative tools and systems.
Deequ, the open-source release of the unit-test approach in [28], and Great Expectations [33] express constraints declaratively (DR1) and profile data, but their anomaly detection works on aggregate metrics over time rather than producing typed, record-level evidence. Great Expectations documents Checkpoints and Actions that run custom logic when a validation fails, and OpenLineage documents extensible facets that could carry a decision alongside lineage; both are marked as extension points for DR3, because a decision step could be built on them, and neither cited source demonstrates one that records a confirmation outcome, a rationale, the original and resulting values, and a verification result for a flagged record, which is what DR3 asks for. The contribution claimed here is therefore not that a decision step is absent from the field but the particular combination: requirements stated as checkable properties, a decision record of that form, the boundary between the Decider and the Verifier, and a protocol that tests the combination. dbt tests [34] and OpenLineage [35] record run status and timings (DR4) and model-level or dataset-level lineage (DR6), but not record-level links to validation results and decisions. TFX Data Validation [31] detects drift and skew against previous spans (DR2) and surfaces anomalies to an engineer rather than fixing them, which is a step toward DR3, but it keeps no decision record with original and resulting values and no verification result. HoloClean [13] combines detection and repair in one inference step, which is the coupling DR3 forbids. Where a tool stores its own results and configurations, DR7 is marked partial, because the store covers the tool’s stage rather than the run as a whole.
The pattern in Table 2 is the research gap stated in tool terms. DR1 is covered by every validation tool, DR2 by most of them, and DR6 and DR7 in part. No cited source demonstrates DR5, and none demonstrates DR3, DR4, and DR5 together as stated: what counts as confirmation when a check fails, what decision was taken and why, and whether a failure was in the data or in the run. The framework in Section 3 is built around those three. Whether meeting all seven requirements in one design is worth its cost relative to a well-configured set of existing tools is an empirical question, and the protocol in Section 4 is written so that it can be answered.

3. Proposed Framework

RQ2 asks how a pipeline should be organized to meet the requirements of Section 2. The requirements say what must be true of the pipeline. They do not say how many parts to build, where one part’s responsibility ends and the next begins, what may act on a record and what may only observe it, or what flows between the parts. Those are the decisions this section makes. Section 3.1 states the design principles and the architecture. Section 3.2, Section 3.3, Section 3.4, Section 3.5 and Section 3.6 give the decisions behind each component. Section 3.7 shows the workflow that connects them, and Section 3.8 states three propositions the design implies. The framework does not prescribe a technology.

3.1. Design Principles and Architecture

Five principles govern how the parts relate to each other. Modularity: each component has one responsibility and a defined hand-off to the next, so that any one can be replaced or folded into an existing platform without touching the others. Explicit decision rules: whatever a component does to a record follows from a stated rule, never from judgment applied in the moment. Single point of change: only one component may alter data, and it never checks its own work. Single point of exit: nothing leaves the pipeline except through verification, whatever path brought it there. Two accounts: how the pipeline ran and what it produced are recorded in different places and never merged.
The seven requirements are met by seven components, arranged in three groups. Four form the processing path, in order: the Gate, the Detector, the Decider, and the Verifier. One watches the path: Monitor and Recovery. Two record what happened: Lineage and Run Log. The mapping to requirements is not one to one. DR1 is met by the Gate and the Verifier together. DR2 is met by the Detector. DR3 is met by the Decider, with the Verifier supplying the verification result the requirement calls for. DR4 and DR5 are met by Monitor and Recovery. DR6 is met by Lineage and DR7 by Run Log. Figure 2 shows the relationships between the components, and Table 3 states the responsibility, outputs, and record each one must keep.
Figure 2. Architecture of the framework. One rule set feeds the Gate (source contract) and the Verifier (output contract). Four components form the processing path. Monitor and Recovery watches every stage and returns recovered output to the Verifier. Lineage and Run Log keep the record. Only the Decider changes record values.
Table 3. Framework components, the requirements they meet, their responsibilities, expected outputs, and the record each must keep.
The framework deliberately leaves four things open. It does not prescribe a technology, because every component maps onto capabilities that existing platforms already provide. It does not prescribe specific rules, baselines, or thresholds, because Section 2.1 established that these are context dependent. It does not prescribe how ground truth is labeled, which is a property of the evaluation rather than the design. In addition, it does not prescribe the manual review process, only that a record sent to review stays out of the release path until the review is complete.
The framework is also independent of how sources are stored. A relational source enforces some structural rules at write time through its schema and constraints. A document or key-value store enforces none, and the Gate is then the only place where structural rules are applied. In both cases the Gate declares a schema per source and validates against it, because database constraints cover one source on its own terms and say nothing about whether sources agree with each other or with the target schema. Lineage links to whatever identifies a record in its store, a primary key or a document identifier. The target is typically a relational or columnar warehouse, and the Verifier’s rules are expressed against the target schema.
Three boundaries follow from the principles and are stated here because they are easy to blur. First, “single point of change” refers to remediation: the Decider is the only component that may change the value of a record. Transformations, which derive outputs from inputs, are processing logic rather than remediation; they are applied in the processing path and their output is checked by the Verifier, which changes nothing. Second, the Gate’s structural decisions are admission decisions about a unit of input, a file or a batch, recorded in the Gate’s log; they are not record-handling decisions under DR3, which governs flagged records that have entered the path. Third, the rule set has two scopes. The source contract, the schema and domain rules on records, is applied by the Gate on entry and re-applied by the Verifier to corrected records. The output contract, the schema and rules of the transformed output at its own grain together with a reconciliation against an independently derived reference, is applied by the Verifier before release. One rule set, maintained in one place, with the scope stated for every rule.

3.2. The Gate and the Verifier: One Rule Set, Two Enforcement Points

DR1 defines acceptable data. The first design decision is where that definition is enforced, and the answer is twice. The Gate applies the source contract when data enter. The Verifier applies the same rule set in its output scope before data leave, after the transformations that can turn valid input into invalid output, which in practice means joins, aggregations, type casts, filters, and any step that changes the grain of the data. The rules are maintained in one place and enforced at both, so that a transformation cannot step outside the definition without being caught. Profiling work [9,10] informs how violations are identified, Foidl et al. [15] inform which checks matter in pipelines, and Spark SQL [19] is a representative environment for applying them at scale.
The second decision is what the Gate may do with a failure. Structural violations, such as a missing required column, an undeclared type, or an incompatible schema version, are stopped at the Gate: the affected input is rejected or quarantined, because nothing downstream can run on it. Domain violations, such as a value outside its range or a record whose fields contradict each other, are not resolved at the Gate. They are flagged with the rule that fired and passed forward, so that their handling is decided by the Decider with the Detector’s evidence alongside. The Gate decides what cannot proceed. It does not decide what is wrong.
The third decision concerns multiple sources. When sources are combined, each carries its own declared schema and a mapping to the target schema. The Gate validates against the source schema before the mapping and against the target schema after it, so that a difference between sources is detected as a difference rather than absorbed by the join.
What the Gate passes to the Detector is the validated records, the flagged records with the rule and field for each, and the schema version in force. What the Verifier passes to release is the verified output with its verification results, which is the release condition in the workflow of Section 3.7.

3.3. The Detector: Evidence, Never Action

The Detector meets DR2 under one rule: it annotates and never modifies. Its checks include missing-value analysis, duplicate detection, distribution shifts, outliers, inconsistent representations, and relationships between fields or records that have changed against the baseline [9,10], selected according to the domain, the quality specification, and the intended use [12]. The baseline is kept across runs so that a shift is measured against the dataset’s own history rather than against a fixed threshold alone.
The design decision is that every flag is typed. A flag from the Gate is a deterministic violation: a rule was broken. A flag from the Detector is a statistical anomaly: a value departs from expectation. The type travels with the flag because it sets the default handling in the Decider. A deterministic violation is a candidate for correction if a correction rule exists. A statistical anomaly defaults to review or retention, because a departure from expectation does not mean the data are wrong. An untyped flag cannot be handled, so it is treated as a defect of the detection configuration, not of the data.
Repair systems such as HoloClean [13] are excluded from the Detector by design. They combine detection and correction in one inference step, which is the coupling DR3 forbids. They are candidate methods for the Decider, where the decision to apply them is made explicitly.
What the Detector passes to the Decider is the set of flagged records, each with the affected attribute, the statistic, the flag type, and the reason, together with the profiling summary for the run.

3.4. The Decider: Confirmation and the Handling Decision

The Decider meets DR3, and it is the only component permitted to change the value of a record. The first design decision is where confirmation lives. It is placed at the entry of the Decider rather than the exit of the Detector, so that the Detector remains a pure evidence producer that can be tuned, replaced, or extended without touching the decision logic. Confirmation means checking the flag against an established rule or a labeled reference and recording the outcome: confirmed as a defect, or not. A predefined exclusion criterion, such as a record being out of scope for a processing path, counts as confirmation for that path.
The second decision is that the responses are a closed set. Five are defined, every flagged record receives exactly one, and retention is a response like any other, so that a record the pipeline questioned and kept has a recorded reason for still being there:
  • Automatic correction: Modify a value when an explicit, defensible rule supports the correction and the expected outcome can be verified.
  • Manual review: Refer uncertain cases for human assessment when evidence is insufficient for safe automatic correction.
  • Quarantine: Isolate records that fail specified criteria while preserving them for investigation or later processing.
  • Exclusion: Remove records from a particular processing path only when a predefined criterion justifies exclusion and the decision is documented.
  • Retention: Preserve records that are valid despite being unusual or inconsistent with typical patterns.
Which response applies depends on the severity of the violation, the certainty of the confirmation, the consequences of a change, and what downstream consumers need. Cleaning research [4,8] and systems such as HoloClean [13] and ActiveClean [14] supply the correction methods; the Decider decides when one is used.
The third decision is that the Decider does not verify its own corrections. A corrected record goes to the Verifier and is checked there against the rule that was violated, by a component that did not make the change. What that check establishes is compliance with the contract: the corrected record satisfies the rule that flagged it and every other rule, and the correction was applied as the policy states. A correction that leaves the record in violation, or applies a policy the rule does not define, fails the check and comes back as a failed correction, recorded as such and kept distinguishable from a successful one. Whether the corrected value is the true value is a different question, one which verification cannot answer without independent ground truth, and the decision record exists so that a consumer who needs the true value can find every corrected record.
For every flagged record the Decider stores the rule, the rationale, the original and resulting values (identical for a retained record), the response taken, and, once the Verifier has run, the verification result (recorded as not applicable for retention and exclusion). What the Decider passes on is one disposition per flagged record: corrections to the Verifier, quarantined records to the quarantine store, review cases to the review queue, exclusions and retentions as recorded outcomes.

3.5. Monitor and Recovery: One Component, Two Requirements

Monitor and Recovery meets DR4 and DR5, and the decision to make it one component rather than two is deliberate. Recovery acts on what monitoring observes: the failed stage, the retry history, the state of partial outputs. Splitting them would mean passing that state across an interface for no gain. The distributed systems reviewed in Section 2.5 provide the execution and fault-tolerance mechanisms [17,18,19,20,21]; this component specifies what has to happen around them.
The first decision is the separate log. Monitor and Recovery records, for every stage, its status, start and end times, lateness against its expected completion, and any failure, in a store that the processing-path components do not write to. This is DR4’s separation made physical, and it is what makes the comparison in DP3 possible: which failures are visible only to monitoring, which only to validation, and which to both.
The second decision is that recovered output does not go to release. It goes to the Verifier. Operational recovery resumes processing after an execution failure; data quality recovery restores correct outputs after defective inputs, faulty transformations, or unsuccessful remediation. Because the first does not guarantee the second, the recovery procedure ends with a hand-off, not a release. It records the failure, identifies the failed stage, applies the retry or recovery policy defined for that failure type, checks the result for the side effects that repeated execution can introduce, duplicate records above all, and then submits it to the Verifier. This is what “validated and checked” in DR5 means in the design. Where validity is uncertain, the affected data go to the Decider for quarantine until the question is settled. Recovery under interruption, output consistency after restart, and restoration time are measured in the protocol, not assumed.

3.6. Lineage and Run Log: Two Records, Not One

DR6 and DR7 are met by two components because they answer different questions for different people and live for different lengths of time. Lineage answers “where did this output come from” for the engineer diagnosing a bad number and the auditor reviewing a decision, and it lives as long as the data. Run Log answers “how was the pipeline set up when it ran” for anyone who needs to reproduce a run, and it lives as long as the run matters.
The design decision for Lineage is that it carries quality decisions, not only the transformation chain. For every output it records the source identifiers, schema versions, transformation identifiers, the Gate’s validation results, the Detector’s flags, and the Decider’s decisions, following provenance research [22,23,24] and dataset documentation practice [25,26]. This is what DP2 depends on: a defective output can be traced to the rule that flagged it and the decision that handled it, not only to the job that produced it. Lineage describes how data were derived. The Monitor’s log describes how the operations behaved [15,16]. Both are needed, and the framework says what each must record, not which system records it.
The design decision for Run Log is that it records conditions, not results. For every run it captures the rule versions in force, the configuration of each component, the versions of inputs and transformation logic, and the execution environment. Results belong to Lineage and to the Monitor’s log; Run Log is what lets those results be produced again. It also serves the evaluation in Section 4, which needs the same information to compare one configuration with another, but that is a use of the component rather than its reason for existing.

3.7. Decision Workflow

Figure 3 shows how the components combine. Data enter through the Gate, where structurally unusable input is stopped and domain violations are flagged. The Detector adds its flags. Every flagged record reaches the Decider, receives a confirmation outcome, and is corrected, sent to review, quarantined, excluded, or retained. Corrections, transformed output, and recovered output all pass through the Verifier, and only what the Verifier passes is released. Lineage and Run Log are written throughout, Monitor and Recovery watches every stage, and any verification or execution failure re-enters the workflow through the Decider or through recovery rather than exiting it.
Figure 3. Decision workflow. A batch that fails the structural rules is stopped at the Gate. A flagged record goes to the Decider, which confirms the flag and applies exactly one of five responses. Corrected and retained records continue to the Verifier. Records sent to review, quarantine, or exclusion leave the release path. A failed check returns to the Decider (dashed line), recovered output re-enters through the Verifier, and only what the Verifier passes is released. Ruled bands are stores.

3.8. Design Propositions

The framework implies three design propositions (DP1–DP3), stated here so that the protocol in Section 4 has something to test. They are distinct from the pipeline configurations P0–P5 of Section 4.3, which are the conditions under which the propositions are examined. Section 5.6 reports a first test of each.
  • DP1: Making remediation an explicit, logged decision step produces a complete handling record (decision, rationale, original and new value, verification status) for a larger share of flagged records than configurations in which handling is implicit.
  • DP2: Recording provenance and remediation metadata allows a defective output to be traced back to a specific source record, transformation, or remediation action in a larger share of cases than execution logs alone.
  • DP3: Data quality controls and operational monitoring capture different failures. A measurable share of injected data defects will be invisible to execution monitoring, and a measurable share of injected operational failures will be invisible to data quality checks, so the two together cover more failures than either alone.
Each proposition maps to an indicator in Section 4.5 and to one adjacent comparison in Section 4.3: decision record completeness for DP1, defect traceability for DP2, and failure coverage for DP3. The three are not of the same kind. DP1 and DP2 compare a configuration that keeps a record with one that does not, so they are expected to hold whenever the components work as specified; they serve as implementation checks that the Decider and Lineage deliver what Section 3 says they deliver. DP3 is the substantive claim, because it can fail with components that work perfectly: if the failures that monitoring sees are the ones that validation also sees, the separation DR4 demands buys nothing.

4. Evaluation Protocol

RQ3 asks how the proposed framework can be evaluated through a transparent and reproducible protocol. This section answers it with a study design. Transparency is achieved by fixing every element of the evaluation in advance: the dataset and how it is documented (Section 4.2), the pipeline configurations to be compared and the scalability procedure (Section 4.3), the defects to be tested and how ground truth is established (Section 4.4), the metrics and their operational definitions (Section 4.5), and the execution procedure and analysis plan (Section 4.6). Reproducibility is achieved by versioning and archiving all of them (Section 4.8). DR7 guarantees that any single run can be reproduced; this section takes on the larger obligation that the evaluation itself can be. Section 4.7 states the threats to validity. The protocol is specified here in full, before any result is reported, so that a negative result would be as visible as a positive one; Section 5 reports a pilot run of it.

4.1. Evaluation Questions and Scope

Six evaluation questions organize the protocol. EQ1: how does adding the Gate and the Detector change the identification of confirmed defects? EQ2: to what extent do the Decider’s explicit decisions improve the correctness and traceability of defect handling? EQ3: what processing-time and resource overhead does each requirement group add? EQ4: how effectively does Monitor and Recovery restore the pipeline and keep its output consistent under predefined failures? EQ5: do the records kept by Lineage and Run Log allow results to be reproduced? EQ6: how do the processing time and throughput of the full framework scale with input size relative to the baseline? EQ1 and EQ2 concern data outcomes; EQ3, EQ4, and EQ6 concern pipeline behavior; and EQ5 concerns the record. The two kinds of outcome are measured and reported separately throughout, in keeping with DR4. The design does not assume that the full framework will outperform the simpler configurations. Where it costs more than it returns, the protocol should show that.

4.2. Dataset Selection and Documentation

A suitable dataset is processed in a pipeline-like way, is well documented, can be used under clear terms, has the fields the defect taxonomy needs, and can be labeled for ground truth at reasonable effort. The New York City Taxi and Limousine Commission (TLC) Yellow Taxi Trip Records meet these criteria and are the dataset used. The records carry pickup and drop-off times, trip distance, taxi zone identifiers, fare amount, payment type, and passenger count, and the TLC data dictionary and user guide document the fields and their known quirks [36,37]. The dataset contains real defects in addition to whatever is injected: zero-distance trips with non-zero fares, drop-off times earlier than pickup times, and passenger counts of zero. Field encodings have changed over time, so the schema must be verified for the chosen period. The scalability procedure in Section 4.3 uses three periods of the same dataset, one month, three months, and twelve months, with the schema verified for each.
Before any run, the evaluator records the dataset name, the periods covered, the source URL, the access date, the file format, the schema version, the terms of use, any preprocessing, and the known limitations, including that source data cannot be independently verified. This record is the first entry in the evaluation archive of Section 4.8.

4.3. Pipeline Configurations and Scalability Procedure

Six configurations are compared (Table 4). They differ only in which components are active, and each adds exactly one requirement group to the one before it, so that every adjacent comparison isolates one addition. All use the same dataset, the same input partitions, the same transformations, the same hardware and software, and the same output specification, so that any difference can be attributed to the components rather than to the environment.
Table 4. Evaluation configurations: active components, the requirements and proposition each adjacent comparison tests, and the outputs each adds.
  • P0 (Baseline): Loads and transforms the data with only the minimum checks needed to complete the task. No framework components.
  • P1 (Gate): P0 plus the Gate. Structural and domain rules are enforced at entry; violations are rejected, quarantined, or flagged, but nothing downstream acts on the flags.
  • P2 (Detector): P1 plus the Detector. Potential defects are flagged with typed evidence and logged. No confirmation, no decisions, no verification.
  • P3 (Decider and Verifier): P2 plus the Decider and the Verifier. Every flag receives a confirmation outcome and a recorded decision, corrections are verified before release, and transformed output is checked against the rules. Execution is logged only by the host platform, as in P0 to P2.
  • P4 (Monitor and Recovery): P3 plus Monitor and Recovery. Execution status, timings, lateness, and failures are recorded per stage in a separate log, recovery policies are applied, and recovered output is routed to the Verifier.
  • P5 (Full framework): P4 plus Lineage and Run Log.
Adjacent comparisons map onto the requirements and the propositions. P1 against P0 measures the effect of executable rules (DR1). P2 against P1 measures detection beyond the rules (DR2). P3 against P2 measures explicit decisions and verification (DR3) and tests DP1, since P2 is the configuration in which handling is implicit. P4 against P3 measures separate execution records and validated recovery (DR4, DR5) and tests DP3, since P3 has validation without a separate monitoring record. P5 against P4 measures the two record books (DR6, DR7) and tests DP2, since P4 has execution logs but no lineage. Within a group the components are not separated, because neither is meaningful alone: the Decider’s corrections are unverifiable without the Verifier, and Run Log without Lineage records a run that cannot be traced. The overhead measured for P3 against P2 and for P5 against P4 is therefore attributed to the group as a whole, and the paper makes no claim about the cost of the Decider, the Verifier, Lineage, or Run Log individually.
Scalability is measured with a separate procedure (EQ6). The baseline P0 and the full framework P5 are run on three input sizes drawn from the same dataset: one month, three months, and twelve months of trip records. Processing time and throughput are reported against input size for both configurations, and the overhead ratio, P5 processing time divided by P0 processing time, is reported per size. A ratio that stays constant across sizes indicates that the framework’s cost scales with the data. A ratio that grows has two possible causes, a component whose cost grows faster than the data or a baseline whose cost per row falls as its fixed costs are spread over more rows, and the per-stage timings kept by Monitor and Recovery tell them apart. The intermediate configurations are run at one size only, since their purpose is attribution rather than scaling, and the procedure makes no claim about behavior beyond twelve months of data or on a distributed cluster rather than a single documented environment.

4.4. Defect Taxonomy and Ground Truth

A fixed defect taxonomy keeps the analysis consistent across configurations: missing values, duplicates, invalid formats, schema violations, inconsistent fields, unexpected distributions, and transformation defects. The first five are deterministic and are the Gate’s domain under DR1. Unexpected distributions are the Detector’s domain under DR2. Transformation defects test the Verifier. Table 5 states how each test case is constructed, what the full framework is expected to do with it, and what ground truth it needs. Where defects are injected, the original data are left untouched and every injected defect is logged with the field modified, the injection rule, the defect category, the test-case identifier, and the expected outcome. That log is the answer key. Without it, detection and correction cannot be scored.
Table 5. Defect categories by owning component, test-case construction, expected handling, and ground-truth requirements.
Ground truth has to be established with care, because a statistically unusual record is not automatically wrong. A record is a confirmed defect in the ground truth when it meets one of four criteria, applied in this order of precedence: it was injected under Table 5 and appears in the injection log; it violates a field definition or value constraint stated in the TLC data dictionary or user guide [36,37]; it violates a domain rule written down before execution, such as a drop-off time earlier than its pickup time; or it was judged a defect by independent review. When two criteria disagree, the earlier one governs, because each is more verifiable than the next: an injection is known with certainty, documentation is a published fact, a domain rule is a stated assumption, and review is a judgment. Review is performed by two reviewers working independently from the written rules. Where they disagree, the record is labeled uncertain, excluded from the supervised metrics, and counted in the separate report of unlabeled cases. A record that no criterion marks as a defect is labeled valid under the specified rules, which is the population that enters precision and recall; independently verified validity, which needs a reviewed sample, is a separate label that the pilot does not provide. A valid record that is unusual against the baselines is labeled valid and anomalous, which is the label the handling metric in Section 4.5 uses.

4.5. Evaluation Metrics

Every measure is defined before data collection: its formula, its unit, the evidence it needs, and how it is read (Table 6). Two stages are scored separately, because they can fail separately. Detection metrics score the Gate and the Detector. A true positive is a confirmed defect that was flagged, a false positive is a valid record that was flagged, and a false negative is a confirmed defect that was not flagged. A valid but anomalous record that the Detector flags is a false positive at this stage, and the metric says so, because the Detector’s job is to flag defects and it flagged something else. Handling metrics score the Decider. Handling correctness is the share of labeled flagged records whose final disposition matches the expected handling in Table 5. The same valid but anomalous record, flagged and then retained or sent to review, is a correct handling. The two stages together say what the design is meant to say: a flag that was wrong cost a review and nothing else.
Table 6. Evaluation metrics and operational definitions, grouped by evaluation question.
Detection metrics are computed at the record level over the records labeled under the precedence rule; records labeled uncertain are excluded and reported separately. The valid label means valid under the specified rules, as Section 4.4 defines it, not independently verified validity. Correction accuracy is assessed against verified expected values. Record disposition counts report final, mutually exclusive outcomes, so that a record is counted once under the response it finally received. Operational measures are taken under documented and controlled conditions. A residual-issue measure is included only if its defect category, counting rule, reference standard, and denominator are all defined; otherwise, it is left out.
Three measures exist to test the propositions of Section 3.8 and are marked as such in the table. Decision record completeness tests DP1 in the P3 against P2 comparison; its P2 value is zero by construction, since P2 keeps no decision records, which is the comparison the proposition makes. Defect traceability tests DP2 in the P5 against P4 comparison by asking, for each injected defect, whether its downstream effect can be traced to its origin from Lineage in P5 and from execution logs alone in P4. Failure coverage tests DP3 in the P4 against P3 comparison by partitioning the injected data defects and operational failures into those caught by validation only, by monitoring only, and by both.

4.6. Execution Procedure and Analysis Plan

The procedure is fixed in advance and runs in seven steps: document the dataset (Section 4.2); define the rules, baselines, ground-truth labels, and expected handling, noting where labels are uncertain; implement P0 through P5; run every test case on identical inputs and, as far as possible, identical environments; record outputs, logs, errors, resource consumption, decisions, and recovery events; compute the metrics of Table 6 for each configuration; and archive everything as described in Section 4.8.
The analysis plan is specified here so that it cannot be adjusted to the results. Detection, handling, correction, and disposition metrics are deterministic for a given configuration, input, and rule set, so they are computed once per configuration. Each configuration is nevertheless run three times, and any difference between the three in these metrics is reported as an output reproducibility failure rather than averaged away. Processing time, throughput, resource consumption, recovery time, and recovery success are taken over ten repetitions per configuration, on the same input partitions in the same order, with the environment restarted between repetitions. The scalability procedure uses ten repetitions per size. Failure scenarios for the recovery metrics are a fixed list, defined in advance, of one interruption point per stage, each injected ten times.
Timing and resource measures are summarized by median and interquartile range, which is the primary summary because run times are typically right-skewed, with mean and standard deviation reported alongside. Adjacent configurations are compared on paired repetitions, pairing the k-th run of one configuration with the k-th run of the next, using the Wilcoxon signed-rank test, with Holm correction across the five adjacent comparisons and a family-wise error rate of 0.05. The pairing rests on execution order: repetition k of all six configurations runs consecutively in one session, so the members of a pair share the machine’s state at that time, and nothing more is claimed for it. The effect size is reported as the median paired difference with a 95% bootstrap confidence interval from 10,000 resamples; the interval is unadjusted and, from ten pairs, narrow, so the Holm-adjusted test is the criterion and the interval is descriptive. Proportions over the evaluated records, including precision, recall, handling correctness, and the proposition indicators, are deterministic counts over a fixed dataset whose records are dependent within days and zone-days, so they are reported as exact counts and percentages; the 95% Wilson intervals and Newcombe intervals of the archive describe sampling variation under an independence assumption the data do not meet and are not claims about other workloads. No significance test is applied to deterministic quantities.
Results are grouped by configuration, by defect category, and by evaluation question. Detection metrics are reported with the number of labeled instances and the TP, FP, and FN counts behind them. Handling results separate correct and incorrect dispositions by expected response. Operational results are reported apart from data results, as DR4 requires. Failed runs, unexpected outcomes, missing labels, and deviations from the planned procedure are reported alongside successful results, not omitted.

4.7. Threats to Validity

Four threats are foreseeable. The dataset may limit findings to its own structure, workload, and defect profile; a second dataset with a different schema would show which findings generalize. Uncertain ground truth may distort the detection and correction metrics, in particular where a legitimate anomaly is labeled a defect; the precedence rule and independent review in Section 4.4 reduce this risk, and uncertain cases are reported separately for the same reason. Injected defects may not resemble the defects that occur in production, which is why the dataset’s naturally occurring defects are included as test cases alongside the injected ones. Additionally, hardware, software versions, concurrency, and runtime parameters all affect the performance and recovery metrics, so they are recorded and held constant across configurations, and input size is varied only in the scalability procedure, where it is the variable under study. Figure 4 shows the evaluation workflow.
Figure 4. Evaluation design. Left: the eight protocol steps and their sections. Right: the ablation ladder of step 3, in which each configuration adds one requirement group and each adjacent comparison isolates the requirements and tests the proposition shown, and the two-stage scoring of step 5. In the ablation ladder, each component has its own color: a filled square marks the configuration that adds the component, a light square a component carried over from the configuration above, and an empty square a component that is not active.

4.8. Reproducibility of the Evaluation

DR7 ensures that any run of the pipeline can be reproduced. The evaluation adds the obligation to make the study itself reproducible. To that end, the archive holds, under version control: the dataset documentation of Section 4.2 and the identifiers of the exact files used; the rule definitions, baselines, and configuration files for each of P0 through P5; the defect injection scripts and the injection log; the ground-truth labels, the precedence rule, and the review records; the metric definitions as computed, not only as stated; the analysis plan of Section 4.6 as a script; all outputs, logs, decision records, lineage records, and run records; and the analysis scripts that produced the reported figures. Anything that cannot be archived because of the data use terms is named, with the reason, so that a reader knows what a replication would have to obtain independently. A replication that starts from the archive and follows Section 4.6 should arrive at the same tables, and where it does not, the archive should be sufficient to find out why.

5. Pilot Evaluation

This section reports a pilot run of the protocol of Section 4. Its purpose is to show that the protocol can be executed as specified, to put first numbers against the three propositions, and to find out what the design costs. It is a pilot in two senses: it runs on one machine rather than a distributed cluster, and manual review is simulated by routing rather than performed. The deviations from Section 4 are listed in Section 5.8. The implementation, the injection scripts, the injection log, the ground-truth labels, the run records, the analysis scripts, and every number in this section are in the archive described in the Data Availability Statement.

5.1. Setup

The framework was implemented in Python 3 on the DuckDB analytical database, with each component as a separate function and the configuration switches of Table 4 selecting which components run. The processing task is a daily zone summary: each day’s trips are joined to the TLC taxi zone lookup on the pickup zone and aggregated into trips, revenue, mean distance, mean duration, and passengers per zone and day. This gives the Verifier a join, a type conversion, a derived duration, and an aggregation to check. The Verifier’s reference is a separately written derivation that aggregates the accepted records directly, without the join, from canonical definitions of duration and revenue; it catches a mistake in the transformation, as Section 5.2 shows, but would not catch a mistake shared by both definitions. Each month is processed as daily batches, which is the unit at which the Gate accepts or rejects input and at which Monitor and Recovery records execution.
The dataset is the TLC yellow taxi trip records [36,37], downloaded from the official portal as monthly parquet files and verified by checksum. December 2023 is the Detector’s baseline month and provides the 99.9th percentiles of trip distance, fare, and duration, the null rate of every field, and the median trip distance per pickup zone. January 2024 is the evaluated month: 2,964,624 records in 31 daily batches, 2,967,624 after the injection of duplicates. The scalability ladder uses January alone, January to March, and January to December 2024.
The Gate holds fifteen domain rules and one duplicate rule, written down before the reported runs; each rule carries its category, its ground-truth precedence level, and the Decider’s response to a confirmed violation. Six rules restate the TLC data dictionary and user guide (documented codes for vendor, rate, payment type, and zone; the store-and-forward flag; the month of the file) and carry precedence level 2. The other nine, and the duplicate rule, are plausibility assumptions of this evaluation rather than TLC definitions (a paid trip has a positive distance, a reported passenger count is between 1 and 6, card and cash amounts are not negative, drop-off follows pickup, a trip lasts under 24 h and under 300 miles, timestamps and a passenger count from a reporting source are required) and carry level 3; TLC’s field definitions do not by themselves make every zero passenger count or zero-distance paid trip an error. The dictionary was read as accessed on 5 November 2026; it lists fields introduced after 2024, and only the fields present in the 2023 and 2024 files were used. The Detector runs five checks: three record-level outlier checks against the baseline percentiles, a collective check that flags every record of a zone-day whose median distance exceeds 1.5 times the zone’s baseline median, and a null-rate check that flags the null records of a field on any day whose null rate exceeds twice the baseline. The Decider’s policy for Detector flags, fixed in the configuration, is as follows: a record that also violates a rule takes the rule’s response; a record flagged by the zone-day check and no rule is sent to review; and any other record flagged only by statistical checks, including every record flagged by the null-rate check, is retained with a recorded reason, because a null in those fields violates no rule and the null-rate finding describes the field-day rather than the record. All rules, checks, policies, and thresholds are in the archived configuration, and their hash is recorded in every Run Log manifest.
Defects were injected into the January batches under a fixed seed and logged as the answer key: 3000 missing values (1500 null drop-off times, 1500 null passenger counts in records whose source reports them), 3000 duplicate records appended as exact copies, 3000 invalid formats in the store-and-forward flag (2000 lower-cased, 1000 replaced by an undefined value), 3000 inconsistent fields (1500 pickup and drop-off times swapped, 1500 distances set to zero on paid trips), and three zone-days with every trip distance multiplied by four (1918 records)—a total of 13,918 injected defects. Two batches carry schema violations: day 10 has its pickup timestamp column renamed, and day 20 has its total amount stored as text with a currency prefix. Two days carry transformation faults rather than data defects: on day 15 the transformation joins on the drop-off zone instead of the pickup zone, and on day 25 it reports duration in seconds instead of minutes. Ground truth was then labeled under the precedence rule of Section 4.4. The month’s naturally occurring defects dominate the labels: 67,792 records violate a written domain rule (zero-distance paid trips, zero passenger counts, negative card or cash amounts, drop-offs before pickups), 18 have a pickup time outside the file’s month, and 5931 records exceed a baseline percentile while violating no rule and are labeled valid and anomalous. Every label came from the first three levels of the precedence rule, so the fourth level, independent review, was not needed and no record was labeled uncertain. Table 7 lists these test cases and label counts, together with the operational scenarios described below.
Table 7. Test cases and ground-truth labels of the pilot, January 2024.
Five operational scenarios, one interruption point per stage, were run on a four-day window (days 11 to 14) with the failure injected on day 14, so that Monitor and Recovery has three prior days from which to estimate expected stage durations: an interruption in the Gate, in the Decider, and in the Verifier, a four-second delay in the Detector, and a partition write that fails after part of the day’s output has been written. In configurations without Monitor and Recovery, a failed stage is retried once by the harness with no side-effect handling, which is how a host scheduler behaves. Recovery succeeds when the run completes and the day’s output equals the output of the same configuration run without the failure.
The analysis plan of Section 4.6 was applied without change: ten repetitions per configuration for timing, with the deterministic metrics computed for the first three and checked for identity; paired Wilcoxon tests with Holm correction across the five adjacent comparisons; bootstrap intervals from 10,000 resamples for median differences; Wilson intervals for proportions and Newcombe intervals for their differences, computed and archived but reported in the tables as exact counts for the reason Section 4.6 gives. The environment was a two-core Linux container with 7 GB of memory, with DuckDB limited to two threads and 4 GB, and it is recorded in every manifest.
All timing results in this section come from one set of runs. The set has ten repetition blocks, and each block runs every timed case once, in a fixed order: P0 to P5 on January 2024, P0 and P5 on three months and on twelve months, and P0 to P5 on the held-out month of Section 5.7. Each run executes in a fresh process, after its input files have been read once, so no run inherits the state from the run before it, and peak memory is measured for each run. The January runs underlying the cost results of Section 5.3, the one-month size of the scalability ladder, and the January column of the held-out comparison of Section 5.7 are therefore the same ten runs, and every ratio and every paired difference compares runs of the same block. The deterministic metrics were computed for the first three blocks of both months and were identical across them. The recovery scenarios of Section 5.4 are a separate set of runs on a four-day window.

5.2. Detection, Handling, and Correction (EQ1, EQ2)

Table 8 reports the detection and handling metrics at the record level. They are computed over the 29 batches that every configuration processed as records (2,763,655 records). The two batches with schema violations are scored at batch level below, because P1 to P5 reject them before any record is seen and P0 processes them without noticing. The deterministic metrics were identical across the three repetitions of every configuration.
Table 8. Detection, handling, and correction results by configuration, January 2024 (record level, 29 accepted batches, 2,763,655 records).
Adding the Gate (P1 against P0) moves recall from zero to 97.5% with no false positives: every record that violates a written rule is flagged, and nothing else is. On the 63,249 naturally occurring defects this is faithful execution rather than detection power, because their labels were derived from the same written rules the Gate enforces; a defect no rule describes is in neither the labels nor the flags, and a record that breaks no rule and trips no check is labeled valid without further evidence. The evidence about detection beyond the rules comes from the injected categories, whose labels exist independently of the rules, and from what the Detector found on its own. The 1918 misses are the three zone-days whose distances were scaled, which no rule can express. Adding the Detector (P2 against P1) finds all of them and brings recall to 100%, at the price of 16,820 false positives and a precision of 81.9%. The false positives are of two kinds, and the design treats them differently; a record flagged by more than one check is counted once, under its label, and the counts by check within a label overlap as stated. Of the false positives, 5616 are records labeled valid and anomalous, flagged by the record-level outlier checks; the Detector is doing exactly what DR2 asks, reporting the unusual as evidence, and these records are retained. The other 11,204 are valid records flagged by the two collective checks: 10,512 by the null-rate check, because the January file’s records with null rate code, surcharge, flag, and passenger fields are five times more frequent on the first day of the month than on the others (a null rate of 13% against a baseline of 5%), and 891 by the zone-day check: 183 records in the three scaled zone-days whose distance was zero and was therefore unchanged by the scaling, and 708 in seven zone-days whose median distance rose above 1.5 times the baseline with no injected change (199 records were flagged by both checks). The shifts were real and the records were valid, and the Decider handled them under the policy of Section 5.1: the 10,313 records flagged only by the null-rate check were retained with a recorded reason, and the 891 flagged by the zone-day check, including the 199 flagged by both, were sent to review. Those counts reconcile with the dispositions in Table 9: the 15,927 retained records are the 10,313 null-rate records and 5614 valid-and-anomalous outliers, and the Detector’s 2811 review cases are the 891 valid records, the 1918 records of the scaled zone-days, and two valid-and-anomalous records. Recall by category is 100% in P2 to P5 for every injected category and for the two natural categories, and 100% in P1 for everything except the scaled zone-days.
Table 9. Routing, resolution, and release coverage in the configurations with a decision step (P3 to P5), January 2024.
Handling correctness separates the configurations that detect from the ones that decide. In P1, every flagged record is retained because nothing acts on the flags, and since every flagged record is a defect, handling correctness is zero. In P2 it is 18.1%: the 16,820 valid-and-anomalous records are implicitly retained, which is the expected handling, and the 76,357 defects are retained, which is not. In P3, where the Decider gives every flag a confirmation outcome and a response, handling correctness is 100% of 93,177 flagged records: 3260 corrected, 69,750 sent to review, 1423 quarantined, 2817 excluded, and 15,927 retained, with every record counted once under its final disposition. Because review is simulated, this figure measures routing, not resolution: it says that every flagged record reached the destination its rule prescribes, and nothing about what a reviewer would have decided. Table 9 separates the two, and Figure 5 shows both splits. Of the 93,177 flags, 23,427 (25.1%) had their disposition completed inside the pipeline, by a verified correction, an exclusion, a quarantine, or a recorded retention (a quarantine completes the routing, not the repair), and 69,750 (74.9%) are a review backlog, almost all of them naturally occurring violations for which no safe automatic correction exists: zero passenger counts (28,864), zero-distance paid trips (27,818), and negative card or cash amounts (7854). The same table reports what the quality controls withheld. Of 2,967,624 input records, 2,689,665 (90.6%) were released; 277,959 were not, of which 203,969 sit in the two rejected batches, 69,750 in the review queue, 2817 were excluded, and 1423 quarantined. The quality gains in Table 8 are bought with that 9.4%, and a deployment would have to staff the review queue or write further correction rules to recover it. The consequence of the decision step shows in the last two columns of Table 8. Without it, 94.2% of the injected defects reach the output unchanged; the remaining 5.8% were in the two rejected batches. With the Decider and the Verifier, every injected defect that reached the output did so under a recorded, verified decision.
Figure 5. Routing and release in the configurations with a decision step (P3 to P5), January 2024. (a) Final disposition of the 93,177 flagged records. (b) Outcome of the 2,967,624 input records. Review is simulated by routing. Data from Table 9.
Correction accuracy is 90.5%, and the shortfall is instructive. The Decider applied two corrections: normalizing the store-and-forward flag, which was right in all 1863 cases, and imputing a missing passenger count with the documented default of one, which matched the source value in 1087 of 1397 cases (77.8%). All 3260 corrections passed the Verifier, because the Verifier checks that a corrected record satisfies the rule, not that it equals a value the pipeline cannot know. Passing a validity rule is therefore not the same as restoring the correct value, and the two must be reported apart: 310 of the 3260 corrections (9.5%) produced a plausible value rather than the true one. Their downstream effect is small here, 514 passengers understated across 261 zone-days against a monthly total of 3.78 million, but it is an error the pipeline introduced and then certified. Stated as a release metric: no injected defect reached the output without a verified correction, and 310 (2.2% of the injected defects) reached it with a verified correction that is factually incorrect. The decision record states the rule, the original null, the imputed value, and the verification result for each of these records, so a consumer who needs the true count rather than a plausible one can find every imputed record. That is what DR3 asks for; it does not make imputation accurate.
Two cases are scored at batch level. The Gate rejected both schema-violating batches in P1 to P5 (203,969 records), recording the missing column on day 10 and the wrong type on day 20. P0 processed both: day 10 produced a summary with null durations for every zone, and day 20 a summary with null revenue, and no error was raised. The two transformation faults were caught by the Verifier in P3 to P5, which recomputed the day’s summary by an independent path and found the mismatch; both days were reprocessed and passed. In P0 to P2 the faulty summaries were released: day 15, joined on the wrong zone, produced 5793 summary rows for 216 pickup zones, and day 25 reported every duration sixty times too large. P1 and P2 produced bit-identical outputs, as did P3, P4, and P5, which confirms that the Detector without a Decider changes nothing downstream and that Monitor and Recovery, Lineage, and Run Log add records without touching data.

5.3. Overhead and Scalability (EQ3, EQ6)

Table 10 reports processing time, CPU time, throughput, and the overhead of each configuration against the baseline on the January data, and Figure 6a shows where the time goes. The full framework takes 5.4 times the baseline’s wall time: 14.7 s against 2.7 s for 2.97 million records, or 202 thousand rows per second against 1.10 million. Four of the five adjacent differences are significant after Holm correction. The Detector is the largest single cost (4.7 s per run), followed by the Gate (3.6 to 3.7 s) and, in P5, the record stage that writes lineage (2.1 s). The Decider and the Verifier together add 2.3 s, of which the decision step is 1.0 s and the two verification passes 0.7 s. Monitor and Recovery is the one addition whose cost cannot be seen: P4 ran 0.16 s faster than P3, a difference the pre-specified test does not call significant (Holm-adjusted p = 0.375; the unadjusted Wilcoxon p is the same, since this was the largest of the five), and the bootstrap interval for the difference, −0.24 to +0.10 s, includes zero, so the cost of recording stage status and timings is below the noise of this environment. The timings are end-to-end measurements, and the configurations do not process identical volumes downstream: P1 to P5 reject two batches (6.9% of the records) and withhold further records that P0 transforms and writes, so the component overhead under a matched workload would be slightly higher than the ratios show. Peak memory, measured for each run in its own process, was 250 MB for P0, 346 to 356 MB for P1 to P4, and 546 MB for P5, which holds its lineage records in memory until the run ends.
Table 10. Processing time, CPU time, throughput, and overhead by configuration, January 2024 (ten repetitions each).
Figure 6. Cost of the framework. (a) Median time per stage for each configuration on the January 2024 data, ten repetitions; the label at the end of each bar is the median wall time of the run. (b) Median wall time for the baseline P0 and the full framework P5 at one, three, and twelve months of 2024, on logarithmic axes; thin gray lines show time growing in proportion to rows from the one-month value, and interquartile ranges are narrower than the markers. (c) Overhead ratio, P5 time divided by P0 time, with 95% bootstrap intervals. The one-month points in (b,c) are the P0 and P5 runs of (a).
Table 11 and Figure 6b report the scalability ladder. Over a 13.9-fold increase in rows, from 2.97 million to 41.2 million, P5’s wall time grew 16.4-fold and P0’s 10.6-fold: close to proportional for the full framework, with throughput falling from 202 to 171 thousand rows per second, and less than proportional for the baseline. The overhead ratio therefore does not stay constant: it rises from 5.4 at one month to 6.9 at three and 8.4 at twelve (Figure 6c). The per-stage timings identify why, as Section 4.3 allows for. The per-row cost of the Gate and the Detector does not grow: the Gate takes 1.2 microseconds per row in both the first and the last month of the year, and the Detector 1.6 and 1.5. Two other things change. The baseline’s cost per row falls from 0.91 to 0.70 microseconds, because its per-batch fixed cost is spread over larger daily batches in the busier months (96 thousand trips per day in January, 118 thousand in December), so the ratio’s denominator shrinks. The framework’s record-keeping grows with the number of flags, which grew faster than the data. The time a P5 run spends between its timed stages rose from 0.2 s at one month to 16 s at twelve, 7% of the run, and an instrumented twelve-month run, archived apart from the timed set, attributes nine tenths of it to appending each day’s flags to the run’s flag table. The flags numbered 138 thousand at one month and 12.7 million at twelve, 92 times as many for fourteen times the rows, and 91% of them came from the Detector’s null-rate check, which fired on one day in January and one in February and on 6 to 25 days in every later month, as the frozen December baseline went stale (Section 5.7). The cost per flag stayed near one microsecond. Peak memory followed the same records: the P5 process reached 0.55 GB at one month and 2.7 GB at twelve, against 0.25 GB and 0.47 GB for P0, because the pilot keeps its flag, decision, and lineage records in memory until the run ends. The first effect is a property of the baseline, which does almost nothing per row. The second is not a cost that grows with the data as such: it follows the volume of flags, and a baseline that is allowed to go stale sets that volume. Holding the records in memory is a property of the implementation rather than of the component’s specification, since Section 3.6 intends records to be written as they are produced, but writing them per batch is a proposed remedy whose effect this experiment did not measure. The processing stages themselves, Gate, Detector, Decider, and Verifier, show no such growth.
Table 11. Scalability ladder: P0 and P5 at one, three, and twelve months of 2024 (ten repetitions per size).
Figure 7 sets the results of Table 8 and Table 10 side by side: what each requirement group changes in detection, handling, and release, and what it adds in wall time.
Figure 7. What each requirement group adds, by configuration (January 2024). Dark bars mark values that changed when the configuration was added. Light bars are unchanged from the configuration above. The wall time of P4 is shown as unchanged because its difference from P3 is not significant (Holm-adjusted p = 0.375). Data from Table 8 and Table 10.

5.4. Recovery and Failure Coverage (EQ4)

Table 12 and Figure 8 report the five operational scenarios. Three results stand out. First, the interruptions were recovered in every applicable configuration, because an interrupted stage that has written nothing can simply be retried; what differs is the record. In P1 to P3 the host retry leaves no trace in the framework, so a reader of the run’s outputs cannot tell that anything happened. In P4 and P5 Monitor and Recovery records the failure, the recovery action, and the time it took. Second, the delayed stage was seen only where a monitor exists: P4 and P5 flagged day 14’s Detector as late in all ten runs against the expected duration learned from the three prior days, and P2 and P3 produced correct output on time with no indication that a stage had run about twenty times slower than usual. Third, the partition write that fails midway is the scenario that separates recovery from retry. In P0 to P2 the harness’s retry re-ran the transformation on top of the partial write, and all ten runs released a day with duplicated summary rows and no error. In P3 the Verifier caught the duplicates in the output check and reprocessed the day, correctly, in all ten runs. In P4 and P5 Monitor and Recovery removed the partial partition before retrying, so the Verifier found nothing to catch. Recovery times were under half a second in every case; in P4 and P5 they include the recovery action and the verification of the recovered output, which is what DR5 requires before recovery counts as complete.
Table 12. Recovery scenarios by configuration: (a) successful recoveries and how the failure was handled; (b) recovery time.
Figure 8. Recovery scenarios by configuration. Each cell gives the number of successful recoveries in ten runs or, for the delay scenario, the number of runs in which the stage was flagged as late. Color shows how the failure was handled. Letters refer to Table 12.
The failure coverage partition for DP3 follows from these results, with one distinction that the table makes explicit: which control observed a failure in a given run, and which controls could detect it. In P3, which has validation but no separate monitoring record, one of the five operational failures was observed by validation, none by monitoring, and four by neither: three were repaired by the host retry without any record, and the delay was invisible. In P4 all five were observed by monitoring, and none by validation, but the partial write is detectable by both: in P4 Monitor and Recovery repaired it before the Verifier ran, so the Verifier had nothing to see, whereas in P3 the Verifier caught the same failure on its own. The three interruptions and the delay are detectable by monitoring only, since they leave no trace in the data. In the other direction, none of the data defects was visible to monitoring in either configuration: the execution record of every stage on every day with an injected data defect, including the two days whose output was wrong, shows success on time. On the validation side the data defects must be counted by how they were handled rather than as one number. Of the 13,918 injected records, 13,108 were flagged individually by the Gate or the Detector, and 810 were never inspected as records because the Gate rejected the two batches that contained them; batch rejection prevented their release but detected the schema violation, not each record inside it. The two schema violations were caught by the Gate at batch level and the two transformation faults by the Verifier at output level. The two kinds of control are complementary rather than disjoint: four operational failures were visible to monitoring alone, every data defect to validation alone, and one failure to both.

5.5. Reproducibility of Outputs and Runs (EQ5)

Every configuration produced identical outputs in its three scored repetitions: the summaries and, where they exist, the decision records were compared row for row and matched exactly. A further check used the Run Log alone. The manifest of a P5 run, which records the configuration, the input files with their checksums, the seed, the baseline file, the rule set’s hash, and the environment, was used to launch a new run without reference to the original, and the new run’s summary (6427 rows), released records (2,689,665), decision records (93,177), and lineage records (2,763,655) matched the archived run exactly. That is the regeneration DR7 requires. The regeneration script checks the hash of the current rule set against the recorded one before it runs, so a replication cannot silently use edited rules. The timed runs were later executed a second time as one set (Section 5.1), and the deterministic metrics of that execution are identical to those of the first in every configuration and in both months.

5.6. The Propositions

Table 13 gives each proposition its number. DP1 held: the share of flagged records with a complete decision record rose from 0% in P2, which keeps no decisions, to 100% in P3, where every one of 93,177 flags has a rule, a rationale, the original and resulting values, and a verification result. DP2 held: from the P4 execution logs alone, none of the 13,918 injected defects can be traced to a source record, since the logs record stages and not records; from the P5 lineage, 13,108 (94.2%) are traced to the source record, the rule that flagged them, the decision, and the output row they reached or did not reach, and the remaining 810 are the records in the two rejected batches, which are traceable at batch level through the Gate’s log. DP3 held in both of its halves, as Section 5.4 reports: four of five operational failures were invisible to validation, and all data defects were invisible to monitoring, with one failure, the partial write, detectable by both. As Section 3.8 anticipated, DP1 and DP2 are implementation checks: they confirm that the Decider and Lineage deliver the records Section 3 specifies, against configurations that by construction keep no such record. DP3 is the result that could have gone the other way, and it is the one on which the case for keeping validation and monitoring apart rests.
Table 13. Results for the three design propositions: (a) implementation checks; (b) failure coverage.

5.7. A Held-Out Month

Everything in Section 5.2, Section 5.3, Section 5.4, Section 5.5 and Section 5.6 was measured on the month against which the configuration was developed. To find out how much depends on that, the configuration was frozen, with the rule set hash recorded in every manifest, the Detector baselines from December 2023, and the same injection procedure and seed, and applied to March 2024, a month that appears in the scalability ladder but was never used in writing a rule, a check, a threshold, or a policy. March has 3,585,628 records; the injection placed 13,610 defects (the three scaled zone-days hold 1610 records), and the labels add 80,055 naturally occurring rule violations, 23 out-of-scope records, and 6839 valid-and-anomalous records. Each configuration was run ten times, in the same repetition blocks as the January runs (Section 5.1), and the deterministic metrics, computed for the first three repetitions, were identical across them. Table 14 sets the two months side by side, and Figure 9 shows which results repeat.
Table 14. The frozen configuration on the development month and on a held-out month.
Figure 9. The frozen configuration on the development month and on a held-out month. (a) Indicators in January and March 2024; all repeat except the Detector’s precision. (b) Flagged records by ground-truth label. The March increase consists of valid records flagged by the null-rate check and retained by the Decider. The March count of confirmed defects is the number of flags minus the false positives. Data from Table 14.
On everything that depends on rules and decisions, March repeats January. The Gate finds every rule violation and nothing else, and misses only the scaled zone-days (recall 98.2%); the Detector finds those too (recall 100%); the Decider routes every flag as its rule prescribes; the Gate rejects both schema-violating batches and the Verifier catches both transformation faults; without a decision step 94.7% of the injected defects reach the output and with it none does; every flag has a complete decision record and every injected defect is traceable at record or batch level. Correction accuracy is 90.6%, with the same shortfall for the same reason: 310 of 1406 imputed passenger counts did not match the source, understating passengers by 490 across 262 zone-days of 4.22 million, because about 23% of trips in either month carry more than one passenger and the documented default is one. Release coverage is 91.3%, against 90.6% in January.
One result does not repeat, and it is the reason to run a held-out month. The Detector’s precision fell from 81.9% to 22.2%. Of its 307,513 false positives, 6379 are valid-and-anomalous records flagged by the record-level outlier checks, as in January; 299,400 are valid records flagged by the null-rate check on 17 of the 29 accepted days; and 3982 are valid records in 29 zone-days flagged by the zone-day check (2248 records were flagged by both collective checks). The cause is in the source. The share of trips that reach TLC without a rate code, passenger count, flag, surcharge, or airport fee was 5.3% in the December baseline and 4.7% in January; in March it was 11.9%, and on 18 of 31 days it exceeded twice the baseline, which is the check’s threshold, so the check flagged every null record of those fields on those days. The flags are correct as evidence: the source had shifted. The records are valid, and the design handled them as it should: the Decider retained all of them with a recorded reason, nothing was changed, and the released output was unaffected. What the shift cost is volume. P5 wrote 395,512 decision records for March against 93,177 for January, the review queue grew from 69,750 to 84,365, and the Detector’s precision as a detector of defects collapsed, because a baseline fixed in December describes March poorly. A rolling baseline, or a null-rate check that reports the field-day as one finding rather than every record in it, would have reduced the volume; neither was changed, because the point of the held-out run is to report what the frozen configuration does. The run also shows the value of DR2’s rule that the Detector reports evidence and never acts: a design in which the null-rate check had triggered a correction or an exclusion would have damaged 300,000 valid records.
The processing cost of the framework rose with the volume of flags. P5 took 20.45 s for March against 14.66 s for January, while the baseline took 2.36 s against 2.71 s, so the ratio of P5 to P0 rose from 5.42 to 8.65. The increase in P5 is mostly in the Decider, the record stage, and the appending of flags to the run’s flag table, which handled four times as many flags on 21% more records; the Gate and the Verifier took about the same time in both months. The held-out month therefore changes one reading of the pilot. The cost of the framework is not a property of the components alone but of the components and the volume of flags the data produce, and a Detector whose baseline is allowed to go stale sets that volume.

5.8. Limitations of the Pilot and Deviations from the Protocol

The pilot ran on one machine with an embedded analytical database, so its timings say nothing about a distributed environment, where the cost of the record-keeping components depends on network and storage rather than on CPU. The baseline P0 is a minimal pipeline that does almost nothing per row; in a production pipeline with heavier transformations the same components would add a similar absolute cost to a larger denominator, so the ratios in Table 10 and Table 11 may be lower for heavier baseline workloads. Absolute timings depend on how and when the runs are executed. An earlier execution of this protocol, kept in the archive as version 1.1, timed the January configurations, the ladder, and the held-out month in three separate sets, with the runs of a set sharing one process. Its medians were 3% to 15% higher than those reported here, and the same configuration on the same input differed by 6% between two of its sets. The overhead ratios of the two executions agree within 3% (5.46 and 5.54 against 5.42 at one month, 7.05 against 6.85 at three, and 8.42 against 8.41 at twelve). The comparisons in this section therefore rest on ratios and on paired differences within a repetition block, and the absolute times describe this environment only; timing the framework in a second environment remains future work. Manual review was simulated by routing, so handling correctness scores the routing decision and not the reviewer’s outcome, and the two-reviewer step of Section 4.4 was not exercised because no label needed it. The rules, the injections, and the framework were written by the same author, so the injected defects are ones the rules were written to catch, and the natural defects were labeled by those same rules, so recall on them measures rule execution rather than detection (Section 5.2). The Detector’s false positives on the first day of the month show the kind of surprise real data produce, and the held-out month of Section 5.7 shows that the configuration was not shaped to January. Two tests the pilot could not provide are defects designed by someone other than the author and a manually reviewed sample of flagged and unflagged records, which would also test the valid labels; both need a second person. The propositions DP1 and DP2 compare against configurations that omit the component being measured, so they establish that the components work, not that the workflow beats a well-configured stack of existing tools; that comparison, on incorrect-edit rates, investigation time, review effort, downstream accuracy, withheld data, and review cost, is the subject of the next study.
Two deviations from Section 4 are recorded. First, the recovery scenarios of Section 5.4 used a fresh database connection and fresh state within one process rather than a restarted environment; every timed run of Section 5.3 and Section 5.7 ran in a fresh process. Second, the rules, checks, and injections were fixed before the reported runs but not before all runs: after preliminary runs, the zone-day check was changed from comparing means to comparing medians, because one extreme trip had caused a whole zone-day to be flagged; the lateness threshold was given a floor of one second above the expected duration, because sub-second stages produced spurious lateness flags; and the invalid-format injection was changed so that the lower-cased values could be corrected rather than only detected. The archive’s change log lists each. Neither changes the reading of the results, but a replication should know them.

6. Discussion

6.1. From Question to Testable Design

The contribution of this paper is a chain of four steps, each of which constrains the next, and the value of the framework lies as much in the chain as in any single link.
The first step is asking the right question. Most work on pipeline quality asks how to find defects or how to fix them. RQ1 asks instead what a pipeline must guarantee to manage data quality and execution reliability together. Framing it as a question about guarantees rather than methods changes what counts as an answer. It rules out “add a profiler” or “add a cleaning library,” because neither is a guarantee, and it forces the two halves of the problem, the data and the run, to be addressed in the same breath. That framing is what later makes it possible to say that a successful job and correct data are different facts and to measure them separately.
The second step is deriving requirements from the question rather than from a design. Each of DR1 to DR7 is traced to a body of research and to the specific thing that research leaves open when it has to hold inside a pipeline, and each is a property the pipeline either has or does not have, so a reader can check any implementation against the list without reference to this paper’s architecture, as Table 2 does for six existing tools.
The third step is identifying the components that meet the requirements, and here the design makes choices the requirements do not dictate: one rule set enforced on the way in and on the way out, a Detector that annotates and never acts, a Decider that is the single place where record values change and that never checks its own work, a Monitor and Recovery component that sends recovered output back through verification, and two record books. Each choice is stated in Section 3 with the reason behind it, so that a designer who disagrees knows exactly what to change.
The fourth step is a protocol that can refute the design. The framework implies three propositions. Explicit decisions produce complete handling records (DP1). Lineage that carries decisions makes defective outputs traceable (DP2). Data quality controls and execution monitoring catch different failures (DP3). Section 4 specifies the dataset, six configurations that add one requirement group at a time, a defect taxonomy with a precedence rule for ground truth, operational metric definitions, a pre-specified analysis plan, and an archived procedure that lets someone else run the same study. Each proposition has a named metric and a named comparison, P3 against P2 for DP1, P4 against P3 for DP3, and P5 against P4 for DP2, in which it either holds or fails. The pilot in Section 5 ran that study. The two implementation checks passed, the substantive proposition held, with validation and monitoring seeing complementary rather than overlapping failures, and the cost was measured rather than assumed: the full framework took 5.4 times the baseline’s processing time on one month of data, most of it in the Detector and the Gate, and the one component whose cost could not be measured was the monitor. A design that can be proved wrong by a study it has itself specified, and that has then been put through that study, makes a stronger claim than one that reports a result no one can repeat.
The protocol itself makes four choices that the evaluation literature it draws on [2,5,8,10,16] does not make for it. The ablation is organized by requirement group rather than by tool, so that each adjacent comparison answers a question about the design rather than about an implementation. Detection and handling are scored as separate stages, so that a flag that was wrong but was handled correctly is recorded as exactly that, rather than as either a success or a failure. Failure coverage partitions failures by which kind of control saw them, which is a direct measure of whether validation and monitoring are redundant or complementary. Retention is counted as a decision, so that a pipeline that keeps a questioned record has to say why, and the completeness of its records can be measured on the same footing as its corrections.

6.2. Implications for Practice

For data engineers, the framework turns three habits into requirements. Rules are written down where they can be versioned and reviewed, because DR1 demands executable definitions. Decisions about questionable records are justified and recorded, because DR3 demands it, and the Decider gives that obligation a single home. In addition, “did the job run” is answered in a different place from “are the data right,” because DR4 demands it, which ends the practice of reading success from a scheduler and inferring correctness. The held-out month adds a fourth habit: Detector baselines are data, not configuration, and they go stale; a baseline that is not refreshed turns a real shift in the source into a flood of flags that the Decider must then retain one by one.
For the people who investigate a wrong number in a dashboard, Lineage shortens the path from symptom to cause. Because it carries the Gate’s results, the Detector’s flags, and the Decider’s decisions alongside the transformation chain, the question “why is this value here” has a recorded answer that includes the rule that questioned it and the reason it was kept or changed.
For platform designers, the components map onto how platforms are already built. The Gate and the Verifier are stages, the Detector is a profiling job, the Decider is a workflow with a review queue, Monitor and Recovery is the orchestrator’s domain, and Lineage and Run Log are metadata services. The framework adds no new kind of system and no assumption about storage: a relational source brings some structural rules with it and a document store brings none, and the Gate treats both the same way. It adds boundaries between existing kinds of system, and the boundaries are what make the design modular enough to adopt one component at a time. Each component has a cost in processing time and operational surface, which is why EQ3 measures overhead per requirement group and EQ6 measures how it scales, so that the trade-off can be made on evidence. The pilot gives a first reading of that trade-off: detection beyond the rules is the expensive part, explicit decisions and verification cost a third as much, and monitoring and record-keeping cost little in time but, in the pilot’s implementation, grow in memory with the run, which argues for writing records per batch as Section 3.6 intends.

6.3. Scope and Next Steps

Three things are outside the scope of this paper and define the study that follows it. The pilot is a single-machine run with simulated review, so its detection, correction, overhead, scaling, and recovery figures are first evidence under Section 5.8’s limitations, not production measurements. The component boundaries in Section 3 are one way of meeting the seven requirements; a different partition of the same requirements is possible, and the protocol would evaluate it on equal terms. In addition, the taxi dataset, with injected and naturally occurring defects at three input sizes, is one workload on one environment; a second dataset with a different schema and defect profile, and a distributed rather than single-machine environment, are the natural extensions.
Two limits are inherent to the problem rather than to this paper, and the design is built around them. Quality rules are context dependent, so the framework specifies that rules and baselines must be explicit and recorded without specifying what they are. In addition, some valid anomalies cannot be distinguished from defects without context the pipeline does not have, so the framework routes uncertainty to review rather than to correction, and the protocol scores that routing as correct handling rather than as error. Neither limit is removed by any design. What a design can do is make sure that when the pipeline is uncertain, it says so and does nothing irreversible, and that is what DR3 and the Decider guarantee.
The next step is a study the pilot could not be: a comparison against a reasonably configured stack of existing tools, with validation, orchestration, logging, and lineage, on a held-out dataset with defects designed independently of the rules, with real reviewers in the Decider’s review queue, and with outcomes that matter to an operator measured directly: the rate of incorrect edits, the time to trace a wrong number to its cause, the review effort and the data withheld per unit of quality gained, and the accuracy of the downstream output. A distributed environment with a production orchestrator, and record-keeping components that write per batch, belong to the same study. The pilot’s archive gives it a starting point, and DP3 gives it a result to reach, in either direction.

7. Conclusions

This paper set out to answer a question that is usually asked in two halves: what must a data engineering pipeline guarantee to manage data quality and execution reliability together. Asking it as one question produced seven requirements, each stated as a property that any implementation can be checked against, and a design of seven components in which evidence is kept apart from action, one component changes record values and never checks its own work, nothing is released except through verification, and the account of how the pipeline ran is never mixed with the account of what it produced.
The design makes three claims that can be tested: that explicit decisions produce complete handling records, that lineage carrying those decisions makes defective outputs traceable, and that data quality controls and execution monitoring catch different failures. Section 4 gives each claim a metric, a comparison, and a procedure, built on a public dataset, six configurations that add one requirement group at a time, a defect taxonomy with ground truth, a pre-specified analysis plan, and an archive that lets the study be repeated by anyone. Section 5 ran it as a pilot on one month of taxi trip records. The two implementation checks passed, with the decision step taking the share of flagged records with a complete handling record from 0% to 100% and lineage taking the share of injected defects traceable to their source from 0% to 100% at record or batch level, and the substantive claim held: validation and monitoring saw complementary sets of failures, four visible to monitoring alone, every data defect to validation alone, and one to both. The full framework caught every injected defect (13,108 flagged individually, 810 contained by batch rejection) and every rule-defined one, where recall on rule-defined labels measures rule execution; it released every injected defect that reached the output under a recorded and verified decision, with 310 of 3260 corrections verified but inaccurate; and it recovered from every operational failure scenario, at 5.4 times the baseline’s processing time for one month and 8.4 times for twelve, with the cost attributed stage by stage. The pilot also shows what such a workflow costs beyond processing time: 310 of 3260 corrections restored a plausible value rather than the true one and passed verification, three quarters of the flagged records went to a review queue, and 9.4% of the input was withheld from release. On a held-out month, the frozen configuration repeated every rule-based and decision-based result, and a shift in the source that drove the Detector’s precision to 22% showed both that baselines must move with the data and why the Detector is allowed to report and never to act: 300,000 valid records were flagged, retained with a reason, and left unchanged. What the paper offers is an auditable decision workflow for pipeline data quality, supported by a reproducible pilot: a pipeline that can always say what it accepted, what it questioned, what it decided, and why, and that now does so with numbers behind it.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The pilot evaluation analyzed the NYC Taxi and Limousine Commission (TLC) Yellow Taxi Trip Records for December 2023 and January to December 2024, which are publicly available through the official TLC Trip Record Data portal at https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page (accessed on 5 November 2026); the checksums of the files used are recorded in the archive. The pilot implementation, configuration and rule definitions, injection scripts and injection log, ground-truth labels, run records, result files, and analysis scripts are openly available on Zenodo at https://doi.org/10.5281/zenodo.24358044 (version 1.2).

Acknowledgments

During the preparation of this manuscript, the author used ChatGPT 5.6 Luna (OpenAI) and Claude Fable 5.1 (Anthropic) to assist with structuring and language editing, and Claude Fable 5.1 (Anthropic) to assist with writing the pilot implementation and analysis scripts. The author has reviewed and edited the output and takes full responsibility for the content of this publication.

Conflicts of Interest

The author is employed by Tesla, Inc. The author declares no conflicts of interest. This publication is independent of the author’s work at Tesla, Inc. and does not represent the opinions of Tesla, Inc.

Abbreviations

The following abbreviations are used in this manuscript:
AbbreviationDefinition
CIConfidence interval
DPDesign proposition
DRDesign requirement
EQEvaluation question
FNFalse negative
FPFalse positive
IQRInterquartile range
NYC TLCNew York City Taxi and Limousine Commission
P0–P5Pipeline configurations: baseline (P0), Gate (P1), Detector (P2), Decider and Verifier (P3), Monitor and Recovery (P4), and full framework (P5)
RQResearch question
SDStandard deviation
TPTrue positive

References

  1. Wang, R.Y.; Strong, D.M. Beyond accuracy: What data quality means to data consumers. J. Manag. Inf. Syst. 1996, 12, 5–33. [Google Scholar] [CrossRef] [Scilit]
  2. Pipino, L.L.; Lee, Y.W.; Wang, R.Y. Data quality assessment. Commun. ACM 2002, 45, 211–218. [Google Scholar] [CrossRef] [Scilit]
  3. Batini, C.; Scannapieco, M. Data Quality: Concepts, Methodologies and Techniques; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar] [CrossRef] [Scilit]
  4. Rahm, E.; Do, H.H. Data cleaning: Problems and current approaches. IEEE Data Eng. Bull. 2000, 23, 3–13. [Google Scholar]
  5. Batini, C.; Cappiello, C.; Francalanci, C.; Maurino, A. Methodologies for data quality assessment and improvement. ACM Comput. Surv. 2009, 41, 16. [Google Scholar] [CrossRef] [Scilit]
  6. Becker, D.; King, T.D.; McMullen, B. Big data, big data quality problem. In Proceedings of the 2015 IEEE International Conference on Big Data (Big Data); IEEE: Piscataway, NJ, USA, 2015; pp. 2644–2653. [Google Scholar] [CrossRef] [Scilit]
  7. Ramasamy, A.; Chowdhury, S. Big data quality dimensions: A systematic literature review. J. Inf. Syst. Technol. Manag. 2020, 17, e202017003. [Google Scholar] [CrossRef] [Scilit]
  8. Chu, X.; Ilyas, I.F.; Krishnan, S.; Wang, J. Data cleaning: Overview and emerging challenges. In Proceedings of the 2016 International Conference on Management of Data (SIGMOD ’16); Association for Computing Machinery: New York, NY, USA, 2016; pp. 2201–2206. [Google Scholar] [CrossRef] [Scilit]
  9. Abedjan, Z.; Golab, L.; Naumann, F. Profiling relational data: A survey. VLDB J. 2015, 24, 557–581. [Google Scholar] [CrossRef] [Scilit]
  10. Abedjan, Z.; Chu, X.; Deng, D.; Fernandez, R.C.; Ilyas, I.F.; Ouzzani, M.; Papotti, P.; Stonebraker, M.; Tang, N. Detecting data errors: Where are we and what needs to be done? Proc. VLDB Endow. 2016, 9, 993–1004. [Google Scholar] [CrossRef] [Scilit]
  11. Batini, C.; Rula, A.; Scannapieco, M.; Viscusi, G. From data quality to big data quality. J. Database Manag. 2015, 26, 60–82. [Google Scholar] [CrossRef] [Scilit]
  12. Ardagna, D.; Cappiello, C.; Samà, W.; Vitali, M. Context-aware data quality assessment for big data. Future Gener. Comput. Syst. 2018, 89, 548–562. [Google Scholar] [CrossRef] [Scilit]
  13. Rekatsinas, T.; Chu, X.; Ilyas, I.F.; Ré, C. HoloClean: Holistic data repairs with probabilistic inference. Proc. VLDB Endow. 2017, 10, 1190–1201. [Google Scholar] [CrossRef] [Scilit]
  14. Krishnan, S.; Wang, J.; Wu, E.; Franklin, M.J.; Goldberg, K. ActiveClean: Interactive data cleaning for statistical modeling. Proc. VLDB Endow. 2016, 9, 948–959. [Google Scholar] [CrossRef] [Scilit]
  15. Foidl, H.; Golendukhina, V.; Ramler, R.; Felderer, M. Data pipeline quality: Influencing factors, root causes of data-related issues, and processing problem areas for developers. J. Syst. Softw. 2024, 207, 111855. [Google Scholar] [CrossRef] [Scilit]
  16. Polyzotis, N.; Roy, S.; Whang, S.E.; Zinkevich, M. Data management challenges in production machine learning. In Proceedings of the 2017 ACM International Conference on Management of Data (SIGMOD ’17); Association for Computing Machinery: New York, NY, USA, 2017; pp. 1723–1726. [Google Scholar] [CrossRef] [Scilit]
  17. Dean, J.; Ghemawat, S. MapReduce: Simplified data processing on large clusters. Commun. ACM 2008, 51, 107–113. [Google Scholar] [CrossRef] [Scilit]
  18. Zaharia, M.; Chowdhury, M.; Das, T.; Dave, A.; Ma, J.; McCauley, M.; Franklin, M.J.; Shenker, S.; Stoica, I. Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing. In Proceedings of the 9th USENIX Symposium on Networked Systems Design and Implementation (NSDI ’12); USENIX Association: San Jose, CA, USA, 2012; pp. 15–28. [Google Scholar]
  19. Armbrust, M.; Xin, R.S.; Lian, C.; Huai, Y.; Liu, D.; Bradley, J.K.; Meng, X.; Kaftan, T.; Franklin, M.J.; Ghodsi, A.; et al. Spark SQL: Relational data processing in Spark. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data; Association for Computing Machinery: New York, NY, USA, 2015; pp. 1383–1394. [Google Scholar] [CrossRef] [Scilit]
  20. Akidau, T.; Bradshaw, R.; Chambers, C.; Chernyak, S.; Fernández-Moctezuma, R.J.; Lax, R.; McVeety, S.; Mills, S.; Perry, F.; Schmidt, E.; et al. The Dataflow model: A practical approach to balancing correctness, latency, and cost in massive-scale, unbounded, out-of-order data processing. Proc. VLDB Endow. 2015, 8, 1792–1803. [Google Scholar] [CrossRef] [Scilit]
  21. Kreps, J.; Narkhede, N.; Rao, J. Kafka: A distributed messaging system for log processing. In Proceedings of the NetDB Workshop, Athens, Greece, 12 June 2011; Association for Computing Machinery: New York, NY, USA, 2011; pp. 1–7. [Google Scholar]
  22. Simmhan, Y.L.; Plale, B.; Gannon, D. A survey of data provenance in e-science. ACM SIGMOD Rec. 2005, 34, 31–36. [Google Scholar] [CrossRef] [Scilit]
  23. Buneman, P.; Khanna, S.; Tan, W.C. Why and where: A characterization of data provenance. In Database Theory—ICDT 2001; Springer: Berlin/Heidelberg, Germany, 2001; pp. 316–330. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Moreau, L.; Clifford, B.; Freire, J.; Futrelle, J.; Gil, Y.; Groth, P.; Kwasnikowska, N.; Miles, S.; Missier, P.; Myers, J.; et al. The Open Provenance Model core specification (v1.1). Future Gener. Comput. Syst. 2011, 27, 743–756. [Google Scholar] [CrossRef] [Scilit]
  25. Gebru, T.; Morgenstern, J.; Vecchione, B.; Vaughan, J.W.; Wallach, H.; Daumé, H., III; Crawford, K. Datasheets for datasets. Commun. ACM 2021, 64, 86–92. [Google Scholar] [CrossRef] [Scilit]
  26. Bender, E.M.; Friedman, B. Data statements for natural language processing: Toward mitigating system bias and enabling better science. Trans. Assoc. Comput. Linguist. 2018, 6, 587–604. [Google Scholar] [CrossRef] [Scilit]
  27. Priestley, M.; O’Donnell, F.; Simperl, E. A survey of data quality requirements that matter in ML development pipelines. ACM J. Data Inf. Qual. 2023, 15, 11. [Google Scholar] [CrossRef] [Scilit]
  28. Schelter, S.; Lange, D.; Schmidt, P.; Celikel, M.; Biessmann, F.; Grafberger, A. Automating large-scale data quality verification. Proc. VLDB Endow. 2018, 11, 1781–1794. [Google Scholar] [CrossRef] [Scilit]
  29. Schelter, S.; Guha, S.; Grafberger, S. Automated provenance-based screening of ML data preparation pipelines. Datenbank-Spektrum 2024, 24, 187–196. [Google Scholar] [CrossRef] [Scilit]
  30. Chen, H.; Schelter, S. Towards automated task-aware data validation. In Proceedings of the Workshop on Data Management for End-to-End Machine Learning (DEEM ’25); Association for Computing Machinery: New York, NY, USA, 2025. [Google Scholar] [CrossRef] [Scilit]
  31. Breck, E.; Polyzotis, N.; Roy, S.; Whang, S.E.; Zinkevich, M. Data validation for machine learning. In Proceedings of the 2nd Conference on Systems and Machine Learning (SysML 2019); MLSys: Stanford, CA, USA, 2019; Available online: https://proceedings.mlsys.org/paper_files/paper/2019/file/928f1160e52192e3e0017fb63ab65391-Paper.pdf (accessed on 20 November 2026).
  32. Ehrlinger, L.; Wöß, W. A survey of data quality measurement and monitoring tools. Front. Big Data 2022, 5, 850611. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Great Expectations. GX Core Overview. Available online: https://docs.greatexpectations.io/docs/core/introduction/gx_overview (accessed on 23 October 2026).
  34. dbt Labs. dbt Documentation: About dbt Test Command. Available online: https://docs.getdbt.com/reference/commands/test (accessed on 23 October 2026).
  35. OpenLineage Project. About OpenLineage. Available online: https://openlineage.io/docs/ (accessed on 23 October 2026).
  36. New York City Taxi and Limousine Commission (TLC). Data Dictionary—Yellow Taxi Trip Records. Available online: https://www.nyc.gov/assets/tlc/downloads/pdf/data_dictionary_trip_records_yellow.pdf (accessed on 23 October 2026).
  37. New York City Taxi and Limousine Commission (TLC). TLC Trip Records User Guide. Available online: https://www.nyc.gov/assets/tlc/downloads/pdf/trip_record_user_guide.pdf (accessed on 23 October 2026).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.