Skip to content
GitLab

Quality Rules

Quality is not optional. Every data product declares quality checks in quality.yaml that run after every materialization. Checks with severity: error block downstream propagation — bad data does not reach consumers. This guide covers rule types, threshold configuration, SLA management, and the Quality Oracle system.

Materialization completes
|
v
Quality checks execute (platform quality checks)
|
+-- All pass --> Write to serving stores, notify downstream
|
+-- Warning fails --> Log warning, continue serving writes
|
+-- Error fails --> Block serving writes, enter retry/DLQ
Downstream assets are SKIPPED

The platform translates your quality.yaml declarations into platform quality check functions. No external quality frameworks are involved at runtime.


Akili supports three tiers of expressiveness, from declarative YAML to custom Python.

TierDefined InUse Case
DeclarativeYAML type + configStandard checks: completeness, freshness, volume, uniqueness, range
Custom SQLInline sql blockComplex business logic, multi-table assertions
Custom PythonExternal .py fileStatistical analysis, ML drift detection