Skip to content
Davide Scuteri Moretti
Senior Data Architect
25
Essay

Selective Quarantine: Failure Without Total Arrest

Data pipelines are frequently governed by a binary imagination: a run succeeds or fails, a dataset is accepted or rejected, a record is valid or invalid. Real information systems contain partial defects, uncertain identities, late events, incompatible units, and policy exceptions that do not justify either silent acceptance or total stoppage. This essay develops selective quarantine as a formal and operational pattern for isolating defective subsets while preserving valid flow. It distinguishes rejection, quarantine, degradation, and remediation; formalises partition conservation and re-entry; and examines how quarantine interacts with identity, lineage, metrics, and service-level objectives. The broader philosophical argument concerns the treatment of anomalies. A mature platform neither normalises every exception nor allows the exceptional record to paralyse the whole. It creates a governed intermediate space in which uncertainty remains visible and correctable.

6 minute read·July 2026·Davide Scuteri Moretti
selective quarantinepartial failureerror handlingremediationdata qualitygraceful degradationexception management
Themes
  • Quality

Abstract

Data pipelines are frequently governed by a binary imagination: a run succeeds or fails, a dataset is accepted or rejected, a record is valid or invalid. Real information systems contain partial defects, uncertain identities, late events, incompatible units, and policy exceptions that do not justify either silent acceptance or total stoppage. This essay develops selective quarantine as a formal and operational pattern for isolating defective subsets while preserving valid flow. It distinguishes rejection, quarantine, degradation, and remediation; formalises partition conservation and re-entry; and examines how quarantine interacts with identity, lineage, metrics, and service-level objectives. The broader philosophical argument concerns the treatment of anomalies. A mature platform neither normalises every exception nor allows the exceptional record to paralyse the whole. It creates a governed intermediate space in which uncertainty remains visible and correctable.

1. The tyranny of binary outcomes

Software execution tends to expose simple statuses: success or failure. This clarity is useful for process control but misleading for data. A batch of one million records may contain ten malformed rows, a thousand late events, and a small subset with unresolved identities. Declaring the entire batch successful conceals defects. Declaring it failed may delay valid information and create operational harm.

Selective quarantine replaces the binary outcome with a partition:

where is valid, quarantined for possible remediation, rejected as unusable or inadmissible, and denotes disjoint union. Conservation requires

unless the contract explicitly permits filtering or aggregation.

The partition does not merely classify records. It determines which effects may proceed, which evidence must be preserved, and which obligations are created for remediation.

2. Rejection, quarantine, and degradation

Rejection is appropriate when a record cannot be interpreted safely, violates a hard policy, or lacks sufficient information for recovery. Quarantine is appropriate when the defect is potentially correctable and the original evidence can be preserved. Degradation applies when a dataset remains usable for some purposes but not others.

Let disposition function be

where is intended use. The same record may be publishable for exploratory analysis and blocked for automated decision-making.

A quarantine system should resist a common failure: becoming a permanent shadow database. Every quarantined item needs reason, owner, age, remediation path, and terminal policy. Otherwise quarantine merely moves disorder out of sight.

3. Defect taxonomy and routing

Defects should be typed because remediation differs. Useful classes include structural, semantic, identity, temporal, referential, quality-threshold, duplication, policy, and external-dependency defects.

Represent a defect as

A record may carry multiple defects. Routing can be modelled as a decision table or rule graph. Structural parse failures may require producer correction; identity ambiguity may require reconciliation; unit mismatch may use a mapping workflow; policy denial may not be remediable by data engineering at all.

Typed defects improve metrics. A rising quarantine rate is ambiguous until decomposed by cause. It may indicate deteriorating source quality, a newly introduced rule, a broken reference service, or an intentionally stricter policy.

4. Quarantine as an append-only state machine

A quarantined record has a lifecycle. A simple state machine is

with terminal alternatives rejected, expired, or waived. State transitions should be appended with actor, reason, evidence, and version.

Let item state be , updated by transition :

The original payload should remain immutable or version-addressed. Corrections create a new candidate representation linked to the original. This prevents remediation from erasing the evidence of failure.

Release should rerun relevant validations under explicit rule versions. Manual approval without computational revalidation creates an untraceable exception path.

5. Re-entry and idempotence

Repaired records must re-enter the main flow without duplication or temporal distortion. Each record needs a stable logical identity and remediation version:

On release, the platform either publishes a new version, supersedes a prior defective version, or inserts the record if it was never visible. The semantics depend on the target model.

Re-entry should be idempotent. Repeating release after a transient failure must not create multiple domain events. The quarantine record should link to publication manifest and downstream impact.

If historical aggregates excluded the record, release may require incremental correction or bounded replay. Executable lineage can identify affected products and partitions.

6. Dataset-level quality and partial publication

Publishing while holding changes completeness. Consumers need to know the magnitude and character of the missing subset.

Define quarantine ratio

but also stratify by material groups and measures. Ten missing records may be immaterial in volume and critical in value. A weighted impact measure can be

where reflects business or risk significance.

Published datasets should carry status such as complete, partial, degraded, or provisional, along with defect summary and expected remediation horizon. Quality metadata should be machine-readable so downstream controls can restrict use automatically.

7. Quarantine and service-level objectives

A pipeline may meet availability SLOs by publishing valid records quickly while quarantine grows indefinitely. Operational success must therefore include remediation objectives.

Useful measures include:

age distribution, recurrence by source and rule, release rate, false-positive rate, and proportion expired. Service objectives can distinguish critical from non-critical defects.

Quarantine also affects freshness. A released event may be fresh relative to remediation time and late relative to event time. Consumers need both. The platform should avoid resetting age by republishing.

8. Human judgement and exception authority

Some defects cannot be resolved algorithmically. Ambiguous identities, contested classifications, and unusual domain cases require human judgement. The quarantine workflow should support this without turning private decisions into unrecorded truth.

A manual resolution should include authority, rationale, evidence, confidence, and scope. It may create a local exception or update a general rule. The distinction matters: one difficult case should not silently redefine the contract for all future records.

Exception authority should be proportional to consequence. A data steward may waive a descriptive formatting issue; a domain owner may approve a semantic mapping; a privacy officer may adjudicate policy. The platform records the decision path as part of lineage.

9. The philosophy of the anomalous record

Modern administration often treats anomaly as noise to be normalised. Yet anomalies can reveal new phenomena, source-process change, or inadequacy in the classification system. Automatic rejection protects the model from the world; automatic acceptance dissolves the model into inconsistency.

Quarantine creates an epistemic interval. The record is neither incorporated as normal nor discarded as meaningless. It remains available for inquiry. This resembles the scientific handling of an observation that conflicts with theory: one tests instrument, context, and hypothesis before deciding whether the datum is error or discovery.

The platform should therefore learn from quarantine. Recurrent anomalies may justify new categories, contract revisions, or redesigned capture. A quarantine that only repairs records wastes its richest feedback.

10. Architecture of a quarantine service

A robust service includes immutable payload storage, defect events, rule references, ownership routing, remediation APIs, revalidation, release manifests, lineage integration, access control, retention, and metrics. Sensitive rejected data should not become broadly visible simply because it is exceptional.

Quarantine should be partitioned by domain and severity while retaining a common control model. Record-level handling can coexist with dataset-level incident states. Automation should prioritise high-volume deterministic corrections but preserve human review for semantic ambiguity.

The key architectural boundary is that quarantine is not a dead-letter queue alone. A dead-letter queue preserves failed messages. A quarantine service governs the semantic and organisational path from defect to resolution.

Conclusion

Selective quarantine gives data platforms a vocabulary between silent acceptance and total arrest. By partitioning valid, remediable, and rejected records, it preserves continuity while keeping defects visible. Its correctness depends on conservation, stable identity, append-only remediation history, idempotent re-entry, quality metadata, and bounded ownership.

The pattern also expresses a mature relation to exception. Anomalies are neither allowed to corrupt the normal path nor treated as disposable noise. They occupy a governed intermediate space where evidence can be examined and categories revised.

A platform that can fail partially, explain the partiality, and recover selectively is more reliable than one that merely reports green or red. It does not deny disorder. It gives disorder a computable place.

Conceptual references

Nygard, M. T. Release It! (2007). Kleppmann, M. Designing Data-Intensive Applications (2017). Kuhn, T. S. The Structure of Scientific Revolutions (1962). Douglas, M. Purity and Danger (1966). Star, S. L. “The Ethnography of Infrastructure” (1999).

Continue reading