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
[](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_5COMPONENT STACK (6)
- ETL / Stream BatchesSTATELESSStaged Iceberg Branch
- Contract Rule RunnerSTATELESSNot-null, unique, regex & FK SQL
- Anomaly DetectorSTATEFULSeasonal row-count & null-% band
- Quarantine TableSTATEFULIsolates failing rows + reason
- Atomic Promote GateSTATELESSFast-forwards main only if green
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- ETL / Stream Batches → Contract Rule Runner (Eval rules)[SQL]
- Contract Rule Runner → Anomaly Detector (Check)[Stats]
- Contract Rule Runner → Quarantine Table (Divert bad)[Iceberg]
- Anomaly Detector → Atomic Promote Gate (WAP commit)[CAS]
- Quarantine Table → Atomic Promote Gate (Sync)[Control]
- Atomic Promote Gate → Downstream & OTel (Emit /)[OTLP/API]