Quality gate for an insurance data pipeline

Today's batch of policy transactions has landed. Before it reaches reporting and the churn model, it is checked against two weeks of history and a data contract inferred from that history. Run the sample, or drop in your own CSV files.

Built by Suman Mukherjee Runs in your browser. Your files are not uploaded anywhere.

Gate decision

–/100 health

    Incident note

    Running checks…

    Checks

    Each check compares the batch with the contract or with the history, and says what probably caused a failure and what to do.

    ResultCheckObservedExpectedLikely cause and next step

    Against the history

    Grey is the history and blue the batch; red marks a failed check.

    Rows per day
    Distribution shift (PSI)
    Missing values

    Look at one column

    ProfileHistoryBatch

    The data contract

    Inferred from the history: types, allowed values, ranges widened by 10 percent of their span, a null-rate ceiling and the primary key. In a real pipeline this file is agreed with the source owner and versioned.

    Show the YAML

    Why I built this

    On the data platforms I've run, the expensive incidents were rarely model failures. They were quiet data failures: a feed that stopped halfway, a renamed column, a premium field exported with thousands separators. The dashboard still refreshed and the model still scored, just on the wrong data.

    A quality gate between landing and publishing turns that into a held batch and a clear note for the source team. Here it runs in the browser; on Azure I would put the same checks in a Databricks job between the bronze and silver layers, fail the Data Factory pipeline on a critical check, and keep the last good silver table serving Power BI.

    What this demo is and is not

    • The sample data is synthetic and the faults are planted, so you can see every check fail once.
    • Thresholds are common defaults, not tuned to your data: PSI 0.1 and 0.25 (scored only with about 20 rows per band); row count outside the history's mean ± 3σ, critical beyond 20 percent; nulls above three times the history.
    • With your own files there is no run time, so freshness checks that the batch has records newer than the history rather than the 26-hour SLA. The batch is treated as one day's load unless it spans several days.
    • Ranges come from the history's minimum and maximum, so a short history will flag new extremes.
    • Files are read in your browser, up to 100 MB in total. Reading and checking run in a background worker, so the page stays usable and shows each step; large files still take several seconds.