airflow-dq-agent
Airflow 3 data-quality remediation engine where an untrusted proposer only emits allow-listed action IDs and PostgreSQL rechecks targets under SERIALIZABLE isolation.
invoice_id | amount | check state |
|---|---|---|
1001 | 412.50 | |
1002 | nullcopied to quarantine | |
1003 | 88.00 | |
1004 | 1290.00 |
ext_invoice.amount.completenessamount must be present
quarantine_nullsAllow-listed by the check policy. The model proposes an action ID, never SQL.
Waiting for a person. Nothing is written.
- Check fails
Deterministic Polars checks evaluate table and column contracts before any model call. Failing rows stay readable while lineage records the exact suite report.
- Fix proposed
The proposer is untrusted input restricted to allow-listed action IDs, never raw SQL, keys, or values. A deterministic compiler binds reviewed policy rules and hashes target keys.
- Human approves
Apply is disabled by default so shadow runs audit and stop cleanly. When HITL is enabled, an Airflow task waits for an explicit decision paired with time-bounded whole-plan admission.
- Rechecked, then applied
Before writing, PostgreSQL rechecks policy and target-key fingerprints inside a single SERIALIZABLE transaction. Concurrent state drift aborts cleanly; passing plans quarantine rows without mutating source values.
- queries written by the model
- 0
- writes without a person’s approval
- 0
- transaction per applied plan
- 1