not_null test, a dbt not_null_proportion test, an elementary test, a
SQLMesh audit and a hand-written SQL assertion can all check that a column has
no missing values, but they all have different names. To answer “how well is
completeness covered across my stack?” you would need to know every tool’s
vocabulary.
Coalesce Quality categorises every check (dbt tests, SQLMesh audits, custom
assertions, …) when it is ingested. Each check gets a category from one shared
taxonomy, whichever tool produced it. You use these categories to filter and
review checks, and to see which checks cover which categories.
Categorisation happens along two independent dimensions:
The technical dimension groups checks by their validation logic. For example,
every
not_null variant across dbt, SQLMesh and custom SQL goes into one
nullness group.
The data quality dimensions
on the Analytics page use their own fixed mapping by test type, described in
How metrics are calculated.
Categorisation rules and per-check overrides do not change that mapping.
Completeness for governance and
nullness for technical at the same time.
Where categories come from
For each dimension, a check’s effective category is resolved from three sources, in descending priority:- Admin override: a per-check category set by a workspace admin from the Checks tab (see Per-check overrides). Overrides always win.
- Producer-explicit category: set directly by the producer, or carried on
the source asset as a
quality.check_category/quality.governance_categoryannotation. - Computed category: derived by the categorisation engine from the categorisation rules described below. A matching workspace rule wins over a matching global rule.
quality.check_category and quality.governance_category are the documented
annotation names. The original synq.check_category and
synq.governance_category names remain supported permanently, so existing
configurations do not need to change.Both namespaces also accept an underscore in place of the dot (for example,
quality_check_category). A producer may prefix the annotation name; matching
by suffix means a name such as dbt.tag.quality.check_category resolves the
same way. Use the quality.* names in new configurations.Categorisation rules
A categorisation rule says “checks matching this predicate get this category”. Rules are managed under Health → Check categorization, which has a section per dimension (Governance, Technical) plus a Checks section for inspecting how individual checks were categorised. Each rule has:- a category: the value the rule gives to the checks it matches. It is free
text, for example
completenessornullness. - a priority: when several rules in the same scope match the same check, the rule with the highest priority wins.
- a predicate: either a structured predicate or a CEL expression, never both.
Rules you create in the app are workspace rules. They apply only to your
workspace, and they win over the global rules that Coalesce Quality
provides, whatever their priority. A global rule applies only when no workspace
rule matches the check. To override a global rule, create a workspace rule that
matches the same checks. A higher priority number alone does not do it.
Structured predicate
The structured predicate matches on the facts a check already carries. A check matches when every non-empty group below contains the check’s value. An empty group matches anything.
For example, a rule with Platforms =
dbt and Kinds = not_null,
not_null_proportion matches every dbt not-null-style test and nothing else.
Names use * as a wildcard for any sequence of characters (every other
character is literal); multiple patterns are OR-ed.
Annotation predicates match a check’s annotations by key, with one of four
modes per key:
The platform and asset-type dropdowns are populated from checks actually present
in your workspace and narrow as you pick, so you only ever see real values.
CEL expressions
When the structured predicate is not enough, for example for string prefixes, regular expressions or conditions combined with||, switch the predicate to a
CEL expression. The rule matches a check when the expression evaluates to
true.
CEL (Common Expression Language) is a
small, safe expression language. The following variables are available:
PLATFORM_* and ASSET_TYPE_* enum names are exposed as string constants, so
you can compare against them directly.
Live impact preview
While you edit a rule, the dialog runs a live impact preview against the checks in your workspace, showing how many checks the rule would match before you save. A rule with no predicate (an empty structured predicate and no CEL expression) is flagged as a catch-all, because it would match every check at its priority. The preview starts when you add at least one condition.Per-check overrides
The Checks section lists every check with its resolved Technical and Governance categories and the source that produced each one. Workspace admins can pin a category on an individual check with Set explicit category, which sets a Technical and/or Governance value that takes precedence over both the producer-explicit value and any rule match. Clearing both dimensions removes the override, and the check falls back to its underlying category. You can also create a rule from a check. The rule dialog opens with that check’s platform, asset type, package and kind filled in, so the rule matches similar checks.Recategorisation
Whenever you add, edit, or delete a rule, Coalesce Quality re-evaluates existing checks against the updated rules. The Check categorization page shows the progress. New checks are categorised when they are ingested.Managing categorisation programmatically
The same rules and per-check overrides are available over the public API and to an AI assistant over MCP. A rule created over the API or MCP is the same rule the page shows, with the same precedence and the same recategorisation.- Public API:
synq.entities.checks.v2.ChecksCategorisationRulesServicecovers the rules (list them, preview a candidate’s reach, upsert, delete, and read the recategorisation status);synq.entities.checks.v2.ChecksCategoriesServicecovers per-check overrides, the workspace’s category vocabulary, and the attribute values a predicate can be built from. Reading needs a token withSCOPE_POLICIES_READ, writing needsSCOPE_POLICIES_EDIT. See the API reference and API scopes. - MCP: the check categorisation tools let an AI assistant review what is uncategorised, draft a rule, preview its impact, and save it once you approve. Reading is covered by read-only consent; saving or deleting a rule and setting a per-check override need the Governance permission, and every write is confirmation-gated.