Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-data-quality-engine

Data Quality & Testing Engine Internals (Contracts, WAP & Quarantine)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Data Quality & Testing Engine Internals (Contracts, WAP & Quarantine) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-data-quality-engine/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-data-quality-engine)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-data-quality-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-data-quality-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Data Quality & Testing Engine Internals (Contracts, WAP & Quarantine) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["ETL / Stream Batches"]
  n1_1["Contract Rule Runner"]
  n2a_2[("Anomaly Detector")]
  n2b_3[("Quarantine Table")]
  n3_4["Atomic Promote Gate"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Eval rules · SQL"| n1_1
  n1_1 -->|"2a. Check · Stats"| n2a_2
  n1_1 -.->|"2b. Divert bad · Iceberg"| n2b_3
  n2a_2 -->|"3a. WAP commit · CAS"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • ETL / Stream BatchesSTATELESS
    Staged Iceberg Branch
  • Contract Rule RunnerSTATELESS
    Not-null, unique, regex & FK SQL
  • Anomaly DetectorSTATEFUL
    Seasonal row-count & null-% band
  • Quarantine TableSTATEFUL
    Isolates failing rows + reason
  • Atomic Promote GateSTATELESS
    Fast-forwards main only if green
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. ETL / Stream Batches → Contract Rule Runner (Eval rules)[SQL]
  2. Contract Rule Runner → Anomaly Detector (Check)[Stats]
  3. Contract Rule Runner → Quarantine Table (Divert bad)[Iceberg]
  4. Anomaly Detector → Atomic Promote Gate (WAP commit)[CAS]
  5. Quarantine Table → Atomic Promote Gate (Sync)[Control]
  6. Atomic Promote Gate → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →