Rules
33 active · 9 failing
Total rules
33
Critical
12
Warning
18
Failing
9
Rules by dimension
completeness
74%
5 rules · 3 failing
uniqueness
98%
7 rules · 1 failing
validity
93%
11 rules · 2 failing
consistency
89%
2 rules · 1 failing
integrity
96%
5 rules · 1 failing
accuracy
93%
3 rules · 1 failing
All rules
| Rule | Dimension | Severity | Score |
|---|---|---|---|
| email_format_regex Email must match RFC-5322 pattern and have a valid registered TLD. | validity | critical | 71.2% |
| policy_version_fk policy_version_id must reference a row in policy_versions. | integrity | critical | 79.5% |
| sku_unique SKU must be unique per product. ETL must use INSERT...ON DUPLICATE KEY UPDATE. | uniqueness | critical | 86.0% |
| card_last4_completeness card_last4 expected for all non-bank-transfer transactions. | completeness | warning | 88.0% |
| city_canonical_values city must be in canonical Colombian city list (Bogotá, Medellín, Cali, Barranquilla, Cartagena, Bucaramanga, ...). | validity | warning | 62.1% |
| revenue_usd_ks_drift KS test on revenue_usd vs 30-day baseline. Alert D > 0.15. | consistency | warning | 86.3% |
| mahalanobis_outlier_check Mahalanobis distance on (revenue, line_items, ship_distance) must be <= 3.0. | accuracy | warning | 88.7% |
| supplier_country_not_null supplier country_code required for export compliance. | completeness | warning | 88.0% |
| warehouse_zone_backfill warehouse_zone should be populated for all active products. | completeness | info | 0.8% |
| txn_id_unique transaction_id must be 100% unique — primary key invariant. | uniqueness | critical | 100.0% |
| amount_positive amount_cop must be >= 0 (refunds represented separately in chargebacks). | validity | critical | 99.4% |
| merchant_fk_check merchant_id must exist in merchants table. | integrity | critical | 100.0% |
| cedula_unique Colombian cédula must be globally unique per customer row. | uniqueness | critical | 100.0% |
| consent_ts_not_null consent_timestamp must not be null — required by Habeas Data (Art. 9 Ley 1581). | completeness | critical | 99.8% |
| order_id_unique order_id must be 100% unique in fct_orders. | uniqueness | critical | 100.0% |
| consent_ts_not_null_gsheets consent_timestamp must not be null. Habeas Data Art. 9 requirement. | completeness | critical | 93.7% |
| subject_id_cedula_format subject_id must be a valid Colombian cédula format. | validity | critical | 99.6% |
| consent_id_unique consent_id must be globally unique. | uniqueness | critical | 100.0% |
| currency_enum_check currency IN ('COP','USD','EUR') only. | validity | warning | 100.0% |
| amount_cop_ks_drift KS test vs 7-day rolling baseline. Alert if D > 0.15. | consistency | warning | 90.7% |
| co_phone_format Phone must match +57 3XX XXX XXXX pattern. | validity | warning | 98.3% |
| consent_policy_version_valid policy_version must be one of the 4 active versions (v1, v2, v3, v4). | validity | warning | 99.0% |
| address_customer_fk address.customer_id must reference a valid customers row. | integrity | warning | 100.0% |
| email_uniqueness Email should be unique per customer (household accounts excepted with consent flag). | uniqueness | warning | 99.2% |
| line_items_non_negative line_items must be >= 0. | validity | warning | 99.1% |
| fct_customer_fk customer_id in fct_orders must exist in dim_customers. | integrity | warning | 99.8% |
| product_code_unique product_code must be unique in dim_products. | uniqueness | warning | 99.9% |
| consent_ts_not_future consent_timestamp must not be in the future. | validity | warning | 99.9% |
| price_non_zero price_cop must be > 0 for active (non-discontinued) products. | validity | warning | 95.8% |
| qty_non_negative quantity_available must be >= 0. | validity | warning | 99.8% |
| inventory_product_fk inventory.product_id must reference a valid products row. | integrity | warning | 98.8% |
| benford_law_check Benford's Law first-digit test. Alert if χ² > 0.05. | accuracy | info | 90.4% |
| dob_age_sanity Age derived from date_of_birth must be between 0 and 120. | accuracy | info | 99.9% |