Added
maintain coveragematches a declared fact to the tests that carry its claim. A test Dex rendered for a grain, a reference or anevernull rule names the fact it checks inconfig.meta.dex.claim(#1448); the declarations section now matches it to that fact by the claim, whatever its kind or column, and showsclaimon the test’s entry in the resource’stestslist. A test with no claim, hand-written or rendered before #1448, is matched by kind and column as before, as is a generated test such asdex_freshness, and each fact says which undermatched_by. A test whose claim names no fact the declaration still states, a stale render or a test of a model or column renamed since, is listed underdeclarations.stale_claims(a generated test never is, since its claim depends on more than the declaration); it still counts where its kind and column match, so a rename keeps its coverage. Where the declared fact changed, remove the test and declare the fact again to render it with a current claim; a test of a renamed model or column keeps its claim on purpose, so its history stays with it: leave it as it is (#1498). (#1504)
Changed
- A changed freshness lag or continuity grain now replaces its old test.
Changing
max_lag, or a continuitygrainorby, used to render the new test beside the old one, which kept running and failing the build on the old lag. The plan’sschema_ymldiff now removes the supersededdex_freshnessordex_continuitywhere it is exactly as Dex rendered it and its replacement is listed. The row readsstatus: retired, withreplaced_bynaming the new claim. A test someone configured, one with nothing to replace it, and one shared through a YAML alias stay listed asstale, withkeptsaying why. A version that overrides a shared declaration no longer carries the shared entry’s old test into its own entry, andtransform declareproposes the retirement for a model an earlier plan left with both tests. (#1636)
Fixed
dex maintain checkno longer reports the Elementary dbt package’s own tables as drift. Every run grows the package’s history tables, leaves some of them empty and some columns NULL, and an upgrade adds a column, none of which is the project’s to act on. The schema, volume and grain axes now leave those tables out, oncheckand onmaintain schema,volumeandgrain, so nothing is scanned or priced on them.data.excludednames what was left out and a note says so. Your own tables in the same schema are still checked, a table you name is checked whatever it is, and--include-elementarychecks the package’s tables too. (#1635)maintain snapshotno longer pins a cached profile a build has moved past. Before pinning the exploration cache, it compares each profile’s columns with the relation’s free table metadata and reads the relation’s last successful dbt build. A profile whose columns changed is pinned from the metadata, so the nextmaintain checkno longer reports the columns a build added ascolumn_added; one older than the relation’s last build is pinned with refreshed row counts. Both are reported underdata.baseline.profile_checkwith theexplore profile --refreshthat restores them, and a half the snapshot could not check saysuncheckedwith a reason. (#1637)- Declaring a column again with another
referencesnow moves therelationshipstest Dex rendered for the old parent: itsto:,field:and claim are rewritten in the same plan, and the rest of the test is kept. Arelationshipstest Dex cannot prove it rendered (no claim, or the claim of another fact) stays as written, and the plan warns that the column’s test checks a different parent than its declaration names. (#1638) - A build estimate that leaves work out is no longer labelled
exact. On a cold BigQuery dev target some nodes cannot be dry-run, and a--verifyphase can fail to price before the build creates what it reads. The total was then a floor, yetcost.estimate_qualitystill readexact. Those gaps are now named incost.unpricedasbuild_nodesandverification, beside the Elementary codes.estimate_qualityfollows the list on the ask, on every refusal, on the finished build and on the library’sResult.cost:approximatefor a partial total,unknownfor a zero total that leaves work out, andexactonly when nothing was left out. A build whose estimate leaves out only Elementary work now readsapproximatetoo, sincecost.unpricedalready called that estimate a floor. The warnings naming the unpriced nodes and phases, the spending gates and settlement are unchanged. (#1639) transform planno longer writes a unit or measure monitor on a column the cached profile types as non-numeric. Aunit: fractionorunit: percentcolumn, or a measure, on a text, boolean or temporal type was given monitors the package never computes, so they always passed. The monitor is now withheld asnot_numeric, and its row names the cached type, the profile that typed it and theexplore profilethat would refresh it. A column with no cached profile is still written, and its row names theexplore profilethat would settle its type only where the type is unsettled. The type now settles the column even where the profile carries no distinct count, a list, struct, or map spelling no longer reads as numeric through its element type, and a non-numeric type on any version of a versioned model withholds the shared monitor. (#1683)- The Elementary monitor gate no longer misreads
target.name in ('x'). Jinja reads a parenthesised single item with no trailing comma as a string, soinandnot inthere test for a substring, not for one of a set of names. The gate read it as a one-name set, so{{ target.name not in ('nonprod') }}counted the package as enabled onprod, where dbt disables it, and monitors were written that never ran. Such an expression is now read asunknownwithexpression_unread, like any expression dex cannot read. Add a trailing comma,('nonprod',), or write a list,['nonprod'], to have it evaluated. (#1695)
Added
dex maintain diagnosenames a source whose rows arrived after the run read them. The pipeline ran on time and the loader was late, so the run built the model without rows that had not landed yet. Diagnosis now reads that as a cause,source_arrived_late, owned by the loader. It is confirmed when some rows of the failing run’s window landed after that run started, and every row of the last passing run’s window had landed before it started. The arrival time is the source’s dbtloaded_at_field, or a column a staging model declares withfreshness.basis: capture, and never a business timestamp. The window is read from the failing test’s own time column, or from the time column the tested model declares. The read is one count statement per source, priced with the other checks, and returns counts only. Where no arrival time or window can be read, the answer saysno_capture_time,no_run_timesorwindow_unknowninstead of ruling the loader out.dex demonow seeds this case too: ashipmentssource whose last day landed minutes after the newest build started, so the tour ends at two incidents and a cause for each. (#1629)
Fixed
-
A statement BigQuery will not plan inside a statistics probe reads
execution_failure, notinternal. The exact distinct-count, composite-key, value-domain and combined table probes thatexplore profile,explore map,explore relationshipsand themaintaincommands run on BigQuery let aBadRequestorNotFoundfrom the dry run or the job insert escape bare, so the envelope readinternal, which a host takes for a crash and may retry. They now raise the same typed refusalexplore queryalready did, carrying BigQuery’s own words anddata.stage: "plan": nothing ran and nothing was billed, so the statement has to change (#1000). The job insert is typed this way for every BigQuery statement. A bytes-billed refusal answered there is a budget verdict rather than a plan refusal: it takes the same widen-and-retry it takes when the job fails on it, and past the budget it refuses on cost. That includes profiling, which used to fall back to metadata on that answer at the insert. It now gets its aggregates where the budget covers them, andexplore profileotherwise stops with its usual budget refusal, keeping what it already profiled. The combined table probe still hands back to the separate probes when its own dry run is refused, now on aNotFoundas well as aBadRequest. Profiling still degrades to metadata when BigQuery will not plan an aggregate batch, at the dry run or the insert. (#1628)
Added
-
A unit or a measure’s additivity now writes an Elementary column monitor.
With
monitors.vendor: elementary, a column declaredunit: fractionorunit: percentgets anelementary.column_anomaliesunder the column with the monitorsminandmax, which watch it shift inside the bounddex_unit_rangealready checks. A column declaredrole: measuregets one with the monitors itsadditivitymakes meaningful:sum,averageandzero_countforadditive,min,maxandaverageforsemi_additive, andaveragefornon_additive, sosumis never written where adding the column means nothing. A column both rows reach gets one test whose list is the union. Each is written on the model’s one time column, carries the population’swhere_expression, is reported indata.monitorswith the declaration fields it came from, and names them indata.decisions. A hand-writtencolumn_anomalieson the same column and time column is left as written, and a column flagged as personal data gets none. (#1610) -
A declared daily deadline now writes an Elementary
data_freshness_sla, andmaintain verifyjudges it. A time column’sfreshnessmay state adeadline("07:00"), its required IANAtimezone, and optionaldays, beside or instead of amax_lag; a lag is never read as a deadline. Withmonitors.vendor: elementary, the plan writeselementary.data_freshness_slawith thattimestamp_column,sla_time,timezoneandday_of_week, carrying the population’swhere_expression, reported indata.monitorsand named indata.decisionsby itsfreshness.deadlinefield (withheld below Elementary 0.23.1, which first ships it, and where a population value holds a quote on a connector that escapes it with a backslash, which the package’s own message re-escaping breaks).maintain verifyandtransform build --verifyraisedeadline_missedonce the deadline has passed with no value from today, by counts alone, with onedata.freshnessrecord per check. A deadline on abusinessbasis column is written with a warning: the test needs a value from today, which a load of the previous day’s events never holds. (#1611) -
dex initproposes the schema the Elementary package writes in production for the source allowlist. Where the package is present or offered,data.elementary.allowlistsays whether the committed allowlist reaches that schema, and where it does not, init lists the entry as a non-blocking missing input with thedex config set ... --commentthat adds it. Init never writes it:config setshows the diff and writes on--confirm. A schema the connection cannot open yet (the package has not run in production) is reportednot_createdand not proposed, since an allowlist entry naming a schema that does not exist makes every command refuse. The schema is dbt’s naming of the package’s+schemafor production, read from<connector>.prodor the profile outputdbt_prod_targetnames, never from the dev namespace; where a project’s owngenerate_schema_nameor a Jinja+schemakeeps it unknown, the missing input says what to commit. A missing input markedblocking: falseno longer makes init an error.dex config setgains--comment, which writes the reason beside the value, and a list it extends keeps every line it had, comments included. (#1618) -
dex maintain incidentsreads Elementary 0.16.4’s tables. The reader records the package’s layouts at 0.16.4, the series most installs pin, beside 0.26.1’s, each matched exactly; a 0.16.4 project’s failing test is now an incident rather thanelementary_release_untested. Both releases write the columns the reader reads alike, so a table upgraded from one to the other reads as one history. 0.16.4 recordspassfor any test with zero failures, whatever dbt said, so in a run it wrote a pass from a test whosewarn_iforerror_ifcan hold at zero failures is read as unobserved, counted underpasses_unobservedwith a warning, never as a pass. A column the reader uses that a release does not have (0.16.4’stest_result_rows.row_index) is reported unobserved at that release. (#1619) -
dex maintain diagnosechecks every cause owner, not only a duplicate delivery. Each open incident now gets an answer for each owner. All are judged over the failing test’s lineage, at the runs that bound the break:- the loader retyping a source column, from the schema axis between the bounding snapshot and the warehouse after it;
- the project changing a model in the commit range, from
maintain verifyon the changed model; - a package upgrade, from the versions
package-lock.ymlpins at the two commits; - an edited seed, from the seed file’s git hash at the two commits;
- the schedule building a parent model after its child, from both models’
build times in Elementary’s
dbt_run_results.
dbt_run_resultswithholds its compiled SQL, messages and adapter responses. Where the evidence is missing, a candidate isnot_checkedwith a reason, such asunpinnedwith no lock committed orno_measured_beforewith no snapshot. Ano_causeanswer therefore names what it could not rule out. (#1620) -
Dex Telemetry has an overview page. It covers how
dex init, your declarations,maintain incidentsandmaintain diagnosework together to monitor a dbt pipeline, and the README has a matching section.
Fixed
- The refactor comparison now treats a
profiles.ymledit as global. A plan that rewrites a model and also editsprofiles.ymlis compiled through the ancestors of the model on both sides, so a profile edit that moves the dev schema or database no longer makes the two sides resolveref()to different relations without saying so. A plan that only rewrites the model is compared as before. (#1617) - Profiling a boolean column on Postgres or Redshift no longer fails the whole
profile. Neither warehouse takes
MINorMAXof a boolean, so the profile statement of any table holding one was refused; this stopped the firstdex maintain incidentsread of Elementary’s tables on Postgres (dbt_invocations.full_refresh). A boolean column now gets its non-null count and no minimum or maximum. (#1619) dex demo’s batch loaded twice now holds copies of loaded rows. The 1,000 extraorder_itemsrows repeat the row already loaded with eachorder_item_id, in every column, where before they reused the key with new values. So the repairmaintain diagnoseoffers, keeping one row perorder_item_id, now loses no line item. Every other table, the rows loaded first, and every count the demo quotes (14,000 rows, 13,000 distinct ids, 1,000 rows to remove, 92.9%) are unchanged. Column pairs that held no repeat before, such as(order_item_id, order_id), now repeat with the batch, since every repeated id repeats its whole row. (#1622)
Added
-
A declared population filter becomes the
where_expressionof the model’s Elementary monitors. Withmonitors.vendor: elementary, every monitor a declaration writes now carries the model’spopulation.filtersas itswhere_expression, so the monitors measure the rows the model promises and a row outside them bends no training history.includesis written<column> in (...)andexcludes(<column> not in (...) or <column> is null), which keeps the NULL rows anexcludeskeeps, unless the column declaresnull_rule: never; several filters join withand.- Each part holding an
oris parenthesised, because Elementary appends the expression to its own time-bucket filter with a bareand. - Values are literals typed as declared, never cast, with text escaped as the
dex_population_filter_literalmacro escapes it on the connector, so write them in the column’s type. The column is quoted as the adapter quotes it where it must be. - A filter Dex cannot write withholds the model’s monitors
(
filter_column_not_output,filter_unwritable) rather than writing them unfiltered, and a monitor Dex wrote on another population isstaleand kept.
- Each part holding an
-
dex maintain incidentsreturns the incidents the run history holds for the selected models’ tests. It reads Elementary’s tables (dbt_invocationsandelementary_test_results) where the package is installed and uploading, and dbt’srun_results.json, and folds both through the one incident lifecycle rule. Elementary is read over the newest 20 invocations by default (--invocations <n>, up to 2000): a run count, so the price does not depend on the schedule. Every statement goes through the query firewall and the source allowlist, and the whole read is priced before anything runs, so on a billed connector the first call answersneeds_confirmationhaving sent no statement.data.sourcesreports each source asread,missingorrefusedwith a reason code. A schema outside the committed allowlist is refused before any connection opens, with thedex config setthat adds it. With no package, the next steps name the installdex initoffers.data.windownames the invocations read,data.pricethe estimate and what it settled at, and each incident carries its coverage and retention bound.DexEngine.incidents()returns the same result. (#1572) -
explore semantic query|valueson a Cube layer now runs--localon ClickHouse and Trino. Cube renders the SQL and Dex executes it through its own connector, under the PII gate and the cost guard, as on DuckDB, Postgres, BigQuery, Snowflake and Redshift. Both dialects are held to a recorded golden of what Cube Core v1.8.14 renders. The statement runs in a UTC session on both, so a timestamp with no zone means what Cube means whatever the machine’s or the server’s time zone. A rolling window is the exception on ClickHouse: Cube renders a join on inequalities alone, which ClickHouse 25.3 refuses. Databricks is still refused by name on--local. (#1573) -
dex maintain diagnosetakes each open test incident to a cause, or says no cause was confirmed. It reads the incidents asdex maintain incidentsdoes and bisects each one over its coverage timeline: after the last observed-good run, through the first observed-bad one, where a run that recorded nothing widens the range and never narrows it. The committedmaintain snapshotseries (the versions of.dex/snapshot.jsonin the repository’s history) bounds the break where there is one; on a project’s first day there is none, and the answer names the window no recorded state of the warehouse covers. Each candidate cause is confirmed or ruled out by a check Dex already has, named in the answer. This release checks a uniqueness test failing because the loader delivered a key twice, with the grain axis ofdex maintain checkon each source the tested model reads. With no confirmed cause the answer lists what was ruled out and the unseen window, and never names the likeliest candidate. A confirmed cause’s repair is handed totransformas a next step, never written.DexEngine.diagnose()returns the same result. (#1574) -
A plan tags the columns Dex marks as personal data so Elementary keeps no sample of them.
With
monitors.vendor: elementaryand the package installed, each column a written model’s YAML marks as PII, at any confidence, gets Elementary’s tag inconfig.meta.tags, the model gets it inconfig.tags, and the plan addsdisable_samples_on_pii_tags: trueundervars:indbt_project.yml. The project’s own tests, not only Dex’s, then keep no sample of those columns intest_result_rows.- The tag is
pii, or the first entry of the project’s ownpii_tags. - A plan that rewrites an existing model’s SQL gets the tags without the
switch, which
transform declarethen adds in a plan of its own, so the rewrite keeps its refactor comparison and downstream impact check. - A warning states the trade: every test on a tagged model, the project’s own included, keeps no sample of its failing rows.
data.pii_tags.rulesays what the installed release does with the tags: nothing before 0.19.2, the model tag only from 0.19.2 to 0.19.4, both from 0.20.0.- A
falsea person wrote under a PII flag is never tagged, and adisable_samples_on_pii_tagsthe project sets is kept as written. transform declareproposes a model whose marks predate the tag.
- The tag is
-
dex demonow shows an incident and its cause, offline. Beside the warehouse and its config, the demo writes a small dbt project underdemo_project/dbt/: a source overordersandorder_items, a staging model over each, and auniqueand anot_nulltest on each key. Itstarget/holds the artifacts of a seededdbt buildin whichunique_stg_order_items_order_item_idfailed, because of the batch the demo loads twice.dex maintain incidentsthen returns that incident, open, with no build first.dex maintain diagnosenames the loader’s duplicate delivery oforder_item_idas the cause, measured on the source the model reads.- The printed next steps end with both commands.
- The demo still runs no dbt, installs no package and opens no network connection; the artifacts are generated and pinned by a digest.
- The project sits one level down, so
analytics/, the directory the docs give your own project, stays free anddex transform init analyticsstill works after the demo. An existingdemo_project/beside the target is refused before anything is written. Under an existing.dex/config.ymlno project is written, as no config is. - Once the warehouse is written, a config or project write that fails or is
interrupted part way removes the project, the config and the warehouse it
made, and nothing it did not make: a config another
dex demowrote in the same directory meanwhile is refused, never replaced. A failure while the warehouse itself is loading removes it, as before; an interrupt there can still leave it.
-
dex demonow shows the incident from Elementary’s tables, with when it began. The demo seeds the history of seven weekly builds of its dbt project.- Elementary’s tables, in
main_elementary:dbt_invocationsandelementary_test_results, built from the reader’s recorded 0.26.1 layout, and the layout’s two other tables, empty. One week the package’s hooks were off, and it holds no row. - The package, declared at 0.26.1 in
packages.yml, with that release recorded where the resolver reads it.
unique_stg_order_items_order_item_idpasses in four builds and fails in the last two, because of the batch the demo loads twice. Sodex maintain incidentsreturns the incident from theelementarysource, with the build it was first observed in, and the week with the hooks off read as a missed run inside its onset.dex maintain diagnosenames the loader’s duplicate delivery over that break.- The builds are dated back from when
dex demoran, so the incident stays open for about three weeks. The project’s source files are dated a day before the oldest build, so they move too. Every other date in the demo is still fixed. explore mapleaves the package’s tables out of the ranking, so the tour’s counts are unchanged.- The demo still runs no dbt, installs no package and opens no network
connection. To build its project, run
dex transform depsfirst: the build reads the recorded release as an installed package and would not install it.
- Elementary’s tables, in
-
maintain diagnosenames who reads what broke. Each diagnosis carriessemantic_readers: the semantic models on the failing test’s model whose entities, dimensions and measures read its columns, and the metrics built on those measures, read from dbt’s semantic layer with no warehouse query. A semantic model on a model built from the tested one is not followed, and each read says so. A member whose expression is computed is listed asunresolvedrather than guessed, and so is a member reading a versioned model’s column, since the fingerprint records aref()by name and not by version. A project with no semantic layer readsabsent, not an empty list. (#1598) -
dex demowrites a semantic layer that reads its failing column. The demo’s dbt project gainsmodels/semantic/: the time spine dbt requires, anorderssemantic model with the metricsorders,revenueandaverage_order_value, and anorder_itemssemantic model whose primary entity isorder_item_id, the column the seeded test fails on.maintain diagnosenames that entity beside the cause, and the seededtarget/semantic_manifest.jsonletsexplore semantic list --localread the layer with nodbt parsefirst. (#1600) -
A small-domain dimension column writes an Elementary
dimension_anomalies. Withmonitors.vendor: elementary, a column declaredrole: dimensionwhose cached domain is at most 20 distinct values gets its ownelementary.dimension_anomalies(dimensions: [<column>]) on the model’s one time column, carrying the population’swhere_expression. Each column gets its own test, because the package groups adimensionslist by the columns’ combination. The domain is read from the exploration cache, never measured. A column over the bound isdomain_too_large. A column with no cached count isnot_profiled, and a warning names theexplore profilethat would supply one. A column Dex flags as personal data ispii_flaggedat any size. A monitor Dex wrote on a column that no longer qualifies is reportedstaleand kept.transform declarenow also returnsdata.monitors. (#1609)
Changed
-
Dex spells each connector’s dev target as
dev, besideprod, keeping the previous keys as aliases. Connector configuration now unifies the dev target namespace under the canonicaldevkey across all connectors, matchingprod:- DuckDB:
duckdb.dev(database name) - BigQuery:
bigquery.dev(dataset or project.dataset) - Snowflake:
snowflake.dev(database.schema) - Databricks:
databricks.dev(catalog.schema) - PostgreSQL:
postgres.dev(schema) - Redshift:
redshift.dev(schema) - ClickHouse:
clickhouse.dev(database) - Trino:
trino.dev(catalog.schema)
dev_dataset,dev_database,dev_schema,dev_catalog) remain supported as backward-compatible aliases. Existing configuration files validate without warnings and produce identical runtime behavior. New projects initialized withtransform initrenderdev, while existing files retain their written spelling. (#1541) - DuckDB:
-
The agent procedure sends an agent to
dex maintain incidentsfirst when a test fails or a model is wrong. Step 6, Maintain, now opens with that routing:dex maintain incidentsfirst, thendex maintain diagnosefor an open incident’s cause anddex maintain verifyon the models whose tests they name. It also says what an empty answer means: wheredata.sourcesreports Elementarymissingorrefused, the run history was not read, which is not a clean history; the source’sreason_codesays why, and for a project without the packagedata.next_stepsnames the installdex initoffers, which starts it. Themaintainskill now triggers on “when did this test start failing” and “what changed when it broke”.dex procedurereturns the new text and a newdigest, so a copy pasted into a repository’s ownCLAUDE.mdorAGENTS.mdnow readsstaleunderdex procedure --check, which exits as an error. Refresh it withdex procedure --block. (#1597)
Fixed
- A mart whose grain is a single time column now derives a semantic model dbt parses. The primary entity took the column’s name, the same as the time dimension, so dbt rejected the model in any project that defines a metric. The entity is now named
<stem>_<column>withexpr: <column>, where the stem is the model name without its layer prefix (fct_,fact_,dim_,mart_ormarts_), sofct_dailywith grainoutput_daygetsdaily_output_day. It is chosen before the foreign keys so one that joins by the column’s old name still joins. A plan settles every mart’s primary entity name in a first pass, then drafts the foreign entities that join an existing entity or a settled primary until the drafts settle, and resolves every foreign key in the plan against those drafts and the layer as it stands. A mart therefore joins the same name whatever order the plan derives them in, including marts that reference each other and a reference to a parent column that is itself a foreign key. A foreign key that cannot join what it references (the plan derives that column with no entity, or its entity is one this model already uses) is not derived, and says so, rather than offered under a name that joins nothing. A dimension of the child that already has the parent’s entity name is renamed<stem>_<name>withexpr: <name>so the join name stays. Each replacement name, and a foreign key’s fallback name, is numbered when the model’s own elements, the entities its foreign keys join by, an entity name the layer or plan already uses, or another element type anywhere in the semantic layer or in another mart of the same plan already hold it. (#1439) - Stored plan IDs scope to the dbt project. When multiple dbt projects share
a repository and plan store, identical edits and intent generated colliding plan
IDs, causing the second plan to overwrite the first plan’s recorded project
directory.
_plan_idnow incorporates normalized relative project paths, ensuring stable, portable identities across checkouts and operating systems while existing stored plans remain retrievable and applicable by ID. (#1547) maintain incidentsno longer says no failure has a known start when Elementary dates it. When dbt’srun_results.jsonhas a place in Elementary’s order, as an invocation Elementary also recorded (placed: in_window) or one that started after Elementary’s newest run (placed: after_window), the run-results note saying no failure has a known start is left out, since a failure Elementary saw pass before that run is dated. Where the run itself opened incidents with no known start (a test Elementary holds no result for), a note in the same place counts those incidents alone, so it holds beside an incident that is dated. A run read alone, or with no place in Elementary’s order, keeps the note as before. (#1593)
Added
-
Test failures fold into incidents by one rule, whatever their source.
exmergo_dex_core.maintain.incidentsadds anIncidentvalue type andfold_incidents, which turns the outcomes every test-result source records into incidents: an observed failure opens or extends one, two consecutive passes from the source that opened it close it (set per check), an unobserved run neither opens nor closes one, a check that stopped running endsno_longer_observedagainst a schedule derived from its history, and a source that disagrees is attached as evidence. A first failure no source holds a pass before is reportedunknown. Incidents carry ids, statuses and times, never a value from the data. The command that returns them comes in a later release. (#1556) -
A coverage timeline that never reads an unobserved interval as good.
exmergo_dex_core.maintain.timelinelays one source’s runs out in invocation order on a named heartbeat (dbt_invocations, else the orchestrator’s run history, else themaintain snapshotseries, and it says which and why), and marks every interval that recorded no outcome as unobserved with its reason: a gap longer than the expected schedule allows, a run with Elementary’s hooks or test uploads off, a missed snapshot, the time before retention, or a run that did not check the test. Each run carries its commit, orunknown. Per test, the history gives the last verified run and each break, after the last observed pass up to and including the first observed failure, widened by any unobserved interval between them. Incidents now carry their coverage on that timeline and theironsetbreak. (#1561) -
The Elementary reader holds the package’s tables to a recorded layout, and refuses one it does not know.
Dex reads
elementary_test_results,dbt_invocations,test_result_rowsanddata_monitoring_metricsas evidence, and their columns can change between releases without the package calling it a breaking change.exmergo_dex_core.maintain.elementary_layoutsrecords each table’s columns at Elementary 0.26.1, copied from the package’s model files at that tag, and checks the warehouse’s catalog before a read touches the tables:- A release with no recorded layout is refused with
elementary_release_untested(orelementary_release_unknownwhere none can be read), before the catalog is asked. The reader’s releases are held to the ones the Elementary fixture runs, so they can be fewer and never more. - A column the reader uses that is gone is
elementary_column_missing, one in another type family iselementary_column_retyped, and a table the catalog lists nothing for iselementary_table_missing, each naming the table and the column. A catalog listing past 500 columns is refused aselementary_catalog_too_large.
ElementaryLayoutError, importable fromexmergo_dex_core. No command reads the tables yet: the incident reader (#1471) anddex maintain incidents(#1472) build on this check. (#1562) - A release with no recorded layout is refused with
-
The engine reads test outcomes from Elementary’s tables as incident observations.
exmergo_dex_core.maintain.elementary_incidentsreadsdbt_invocationsandelementary_test_resultsin the schema the package writes, and returns the observations and run historyfold_incidentsandbuild_timelinetake. It selects ids, status and severity tokens, an anomaly test’s column and metric, each run’s times, commit and package version, and counts. It never selects a sampled row or a value a test failed on.plan_readholds both tables to the release’s recorded layout before writing a statement, and refuses where the layout check refuses.read_elementarysends every statement through the query firewall, the source allowlist, the cost handshake and the query ledger, asexplore querydoes. The first read on a fresh cache profiles the two tables and reportsfirst_readwith what the profiling was priced at.- One call reads at most 2,000 invocations and 100,000 result rows. It counts
first and refuses past either bound (
elementary_read_too_large) before it reads a row.sincereads a later window. - Result rows are deduplicated on
id, and each run gets one place in the order, byrun_started_atand never bycreated_atalone. A result whose run has nodbt_invocationsrow is counted and not observed. - It refuses, each with its own code: an empty history, an invocation with no readable start, an invocation written twice with different starts, a run written by a release other than the one checked, a status it does not map, one result id holding two records, and an id too long to hold.
ElementaryReadError, importable fromexmergo_dex_corewith no extra installed. No command calls the reader yet:dex maintain incidents(#1472) builds on it. A profile of the package’s own models no longer computes or caches a value domain, minimum or maximum fortest_results_description,test_results_queryortest_params, the text columns that can quote a value (a result message, compiled SQL, a test’s arguments). This holds for every profile, whetherexplore profile,explore mapor the one a query triggers, and a cache written before it drops those values when loaded.explore querystill projects the three columns under the cache’s PII flags. (#1564) -
A declared time column writes the Elementary monitors that watch it, behind a new
monitors.vendorsetting. Withmonitors.vendor: elementaryin.dex/config.yml, a plan that renders a declaration also writeselementary.volume_anomaliesandelementary.freshness_anomaliesinto the model’s YAML entry, each with the column declaredrole: timeas itstimestamp_column, in the same plan and diff as the declaration. Several time columns give a freshness monitor on each and no volume monitor; no time column gives neither. Dex chooses no training setting: sensitivity,days_backand seasonality stay the package’s defaults.- A monitor is written only where the package is installed and the repository’s
dbt_project.ymlenables it on the production target, read withtarget.namereplaced bydbt_prod_target. Disabled, or not readable, and nothing is written; a warning says which. - A monitor the project wrote by hand is reported
hand_writtenand never touched, and one Dex wrote that the declaration no longer gives is reportedstaleand never removed. data.monitorsreports the package and production reading and one row per monitor, and each monitor Dex wrote is adata.decisionsentry naming the declaration field it came from, read back from the YAML.transform declarewrites the monitors an earlier declaration owes.
- A monitor is written only where the package is installed and the repository’s
-
A break’s commit range is read from the repository’s history, not from run order.
Each run on the coverage timeline now carries where its commit came from: the
invocation’s
git_sha, else the commit the orchestrator records for the run, elseunknown. Given the repository’s history (GitHistoryfor a local checkout,MappedHistoryfor a commit graph held in memory), each break and each incident’sonsetalso carriescommits: the commits the first failing commit has that no earlier passing ancestor commit has, asgit bisectwould search them. A passing run whose commit descends from the failing one (a rollback, or a branch deployed in turn) is left out of the bound, and the range says the run order disagreed. Two commits on diverged branches are reported asnot_ordered, and a failing commit that passed before assame_commit, with no commit in the range. A commit is a hexadecimal object name and nothing else. (#1568) -
The engine reads test outcomes from dbt’s
run_results.jsonas incident observations.exmergo_dex_core.maintain.run_results_incidentsturns the test results in the newestrun_results.jsona dbtbuild,test,run,seedorsnapshotleft into the observations and run historyfold_incidentsandbuild_timelinetake, under the source namedbt_run_results. It needs no warehouse connection and no Elementary package.- A later run that ran no test (a
dbt run, adbt seed) is passed over, with a note, so it does not hide the failures of the build before it. Runs that never tested readmissing(no_test_results), not clean. - One invocation is all the file holds, so every incident read from it alone
has
first_observed: unknown, and every interval before the run is unobserved. passis observed good;fail,errorandwarnare observed bad, a warning keeping severitywarn;skippedis unobserved, never good.- Only a test the current manifest still has, enabled, is observed. A test
carrying a claim id in
config.meta.dex.claimis keyed by it. - A
compile,parseorlsis never read. A run no dbt log beside the file names is refused (unlogged_invocation), and a file naming no invocation is refused (no_invocation_id). - From a result row it reads the test’s id and status only, never its message, compiled SQL or failure count.
exmergo_dex_core.transform.claims.manifest_claimsreads each test’s claim id from a compiled manifest. No command calls the adapter yet:dex maintain incidentsbuilds on it. (#1570) - A later run that ran no test (a
Changed
-
Dex states the Elementary releases it supports, and reports a result it cannot vouch for on any other release as unchecked.
The supported range is the releases the Elementary fixture runs, from the oldest
to the newest (0.15.2 to 0.26.1 today), and the engine’s list is held to the
fixture’s by a test. On a release outside it, a patch above the newest included,
or one Dex cannot read from the installed package’s
dbt_project.yml, Dex no longer acts on what the package does as if the release were one it knows:transform buildlists every passing Elementary test whose compiled SQL is not the package’s no-results query underdata.completion.assurance.unchecked_testswithelementary_release_untestedorelementary_release_unknown, so none counts toward a model’s assurance, and a warning names the release read and the newest tested.- The unpriced Elementary work (#1309) is counted wherever it may run, a default
days_backisunknown, anddata.unpricedcarriesreleaseandrelease_reason_code. - The #1381 sampling warning also fires above the newest tested release.
- A mutation run still makes the copy inert the same way, and warns.
assurance.unchecked_testsreason codes ordata.unpricedsees the two new codes and fields only on a release outside the range. (#1560)
Fixed
-
fold_incidentscounts the passes that close an incident by run, and refuses input it cannot order. Two rows for one test in one run counted as two passes, so an incident could close after a single passing run, and a run that both failed and passed counted toward the close. Each source now has one outcome per run, a failure over a pass, as the coverage timeline already merges a run. A run id that carries twosequencevalues, or asequencethat carries two run ids, across the observations, the sources’ runs and the timelines is refused with aFoldInputError(run_sequence_conflictorsequence_run_conflict), rather than read in an order that sets one source’s outcomes against another’s wrongly. Where two sources fail in the run that opens an incident, the source named first insourcesopens it; a tie that involves a sourcesourcesdoes not name is refused (opener_tie_undeclared). Before, the alphabetically first source opened it, which could leave an incident that no source could close. (#1563) -
Windows: manifest paths and CRLF files no longer break plan matching.
dbt writes a node’s
original_file_pathandpatch_pathwith backslashes on Windows, and the engine compared them with the forward-slash paths a plan names, so some results came out wrong on Windows:transform build --verify --for-planmeasured no downstream impact (no_rewritten_model) and did not attribute findings on new models.transform remove varwith aretirementcontract read column coverage aspartialand missed reads that a macro emits.- A
togglecontract missed macro reads and reported a test’s file with backslashes. package_entrypaths were shown with backslashes.
/. A gitHEADbaseline committed with CRLF line endings now matches its recorded hash. Atransform repairoverride drafted from a CRLF package file is restated with LF, so its build is no longer reportedstale. (#1570)
Added
transform planrendersdex_referenced_keyunder the parent column a declaredreferencesnames, in the parent’s YAML entry, wheredeclarations.render_teststurns it on: a count-only uniqueness test, taggeddex_every_run, that fails with the rows repeating a non-NULL key, so a join to that key cannot multiply rows unnoticed. A parent whose one-column grain oruniquetest already covers the column renders none (covered_by_builtin), and a parent with no YAML entry, a seed, a snapshot or a package’s model renders none (parent_undeclared,parent_in_package).transform declare <parent>proposes it where nothing else is owed. (#1534)transform planrendersdex_temporal_contractfor each measure a declaredhistorynames, wheredeclarations.render_teststurns it on: a count-only model-level test, taggeddex_scheduled, that fails with the entities whose column disagrees with what the snapshot’s versions and the declared policy give, the same countmaintain verify’stemporal_transition_count_mismatch,temporal_latest_transition_mismatchortemporal_first_attainment_mismatchstates. A measuremaintain verifywould leave unchecked renders none, with its reason:snapshot_not_ancestor,lineage_unavailable,hard_delete_records,policy_missing, orsnapshot_config_unreadwhere the snapshot’s config is an expression.transform declareproposes it for a history declared before the switch was on. (#1535)- A declaration can say how fresh a model’s data should be. The column with
role
timetakesfreshness: {max_lag: 6h, basis: business|capture}.maintain verifyandtransform build --verifyread the column’s newest value against the warehouse’s own clock and raisefreshness_exceededwhere it trails by more thanmax_lag, or where the column holds no value (no rows is not fresh): high on acapturebasis, medium onbusiness, which a backfill can leave legitimately old. Each declared freshness gets adata.freshnessrecord. Withdeclarations.render_testson it also rendersdex_freshness, a count-only column test taggeddex_every_runthat fails on the same columns on every connector, and the plan writes its macro as a reviewable diff. dbt’s ownfreshnesscovers sources only; this one covers a model’s data. A changedfreshnessis high-severity declaration drift inmaintain semantic, andmaintain coveragelists it as a declared fact. (#1537) - A declaration can say its time column has no gap. The column with role
timetakescontinuity: {grain: day, by: [region]}, at a grain fromsecondtoyear(weekis the ISO week), for the whole model or per value of thebycolumns. Withdeclarations.render_testson it rendersdex_continuity, a count-only column test taggeddex_scheduledthat fails with the number of gaps: runs of empty buckets between two buckets holding rows. An edge is never a gap, so the answer does not depend on today’s date. Buckets are read in UTC from each value’s epoch seconds, with no date spine, the same on every connector. A changedcontinuityis high-severity declaration drift inmaintain semantic, andmaintain coveragelists it as a declared fact. (#1539) - A plan says what each generated test costs per production run. Generated
tests run in production, where Dex never connects, so every one a plan leaves in
the YAML now carries a
cost: an estimate in the connector’s unit, built from the relations the test reads (a view followed to the tables it reads) and their sizes in production’s catalog, orunknownwith the reason.data.generated_tests.cost.per_runtotals thedex_every_runanddex_scheduledtests apart, and says when a total is partial. Production is named in committed config:<connector>.prod, the namespace the project’s models build into there (spelled as the dev namespace is, never equal to it), anddbt_prod_target, the production dbt target.prodis not a source allowlist: explore reads exactly what it read before, and Dex reads onlyprod’s catalog metadata, never a row. Every guarded dbt call now refusesdbt_prod_targetby name, including a name the hard production denylist misses. (#1542) dex initinstalls the Elementary package. Every project init creates or adopts is read for the package (declared, installed, release) underdata.elementary, from the repository alone. A project init creates declares it inpackages.yml(pinned to 0.26.1) and configures it indbt_project.yml(disabled on the dev target, schemaelementary,test_sample_row_count: 0), shown in init’s own diff. A project init adopts gets the same two edits as a storedtransformplan to review and apply, and init changes neither file. A project that already declares it gets its release reported.--no-elementary, or “no” to the terminal question, leaves it out. The next steps namedex transform depsand the production commands that are yours to run. (#1546)
Changed
explore diagramandexplore relationshipsleave the Elementary package’s own tables out, asexplore mapdoes. Where a project installselementary-data/elementary,explore inventory --rankandexplore mapalready left the package’s metadata tables out of ranking by their signature. The diagram still drew every one a cache held a profile for (after amap --include-elementaryor a hand-runexplore profile), and relationship inference profiled the whole inventory, package tables included, and inferred the joins among them, at a cost on a metered connector. Both now apply the same rule, with the same recogniser:explore diagramreads the signature over the cache’s identifiers, names only, so it stays free, and draws none of the package’s tables,--fullincluded, with none of them counted as an elided entity (an edge onto one is counted inelided_edge_count, and connects nothing, so a project table whose only join is onto one is drawn only with--full); the signature has to be in the cache, so a lone package table profiled by hand into a cache onlyexplore relationshipshas written, which holds no entry for the tables it left out (amapkeeps their inventory entries, and no later write drops them), is drawn by--fulluntilexplore mapwrites the rest.explore relationshipsleaves them out before anything is priced or profiled, so its estimate prices none of them and no join among them is inferred, while a profile of one the cache already holds is left as it is and the joins among them an earlier--include-elementaryrun cached are dropped from the cache, as onmap(carried from outside a narrower--scope, they stay in the cache and out ofdata.relationships, andcarried_relationship_countcounts only the carried joins the list reports). Only the package’s own tables are left out, so a project table sharing their schema is still drawn and profiled. Each command reportsdata.excludedin the shapemapdoes, always present, and a note names the namespaces and the way back:--include-elementaryon either command draws or profiles them with the rest (#1494). (#1538)- A rendered
unique,not_nullorrelationshipson a column marked as personal data stores no failures. The built-ins stay dbt’s own tests, which dbt, its packages and tools such as dbt_project_evaluator read by name. On a column whoseconfig.metamarks personal data, including the mark a plan stamps on a model it creates, each one a declaration, the scaffold ormaintain reconcileadds also carriesconfig: {store_failures: false, store_failures_as: ephemeral}, so a failure’s values are not copied into an audit table, whatever the project’sstore_failuresorstore_failures_assetting or dbt’s--store-failuresflag. A test the column already lists is kept as written. (#1546)
Fixed
maintain verify’s temporal contract check runs on ClickHouse: its statement read each entity’s previous version withlag(), which ClickHouse does not have, and now useslagInFrameover an explicit frame with a NULL default, as the cumulative detector already did. (#1535)- A declaration renders into an entry whose lists are written indentless. A
schema.ymlwritten by PyYAML’ssafe_dumpputs a list’s dashes at its key’s own column, andtransform planrefused to write a declaration into a model whosedata_tests:list was written that way (“does not parse as YAML: ParserError”). The declaration now renders into the entry, a test it adds to an indentless list keeps the list indentless, and the rest of the file is kept as written. The same holds for an indentlesscolumns:list and a column’s indentlessdata_tests:list. (#1495) (#1536) transform repairno longer breaks adbt_project.ymlthat ends in an indentless list. Writing+enabled: falseafter a last key such asmodel-paths:followed by- modelsat the same column (the form Dex’s own scaffold writes) inserted the new key between the key and its list. Andtransform build --verifyno longer prints a sqlglot warning to stderr for each installed package statement it cannot read, such as the Snowflake grant macros the Elementary package ships. (#1546)
Added
transform plan --no-parsestores a plan without running dbt. The library form isDexEngine.plan(..., no_parse=True). It is for a host that must not run repository-controlled code where it authors and parses the plan in a sandbox of its own. Unlikesemantic_plan(no_parse=True), which still parses a derivation it adds, nothing starts dbt. No parse of the post-change project runs, none of a declared mart’s derived semantic model (reportedunvalidated, left out of the plan and offered forsemantic plan), and no compile. Every structural check still runs. A model with Jinja control flow is refused, since only dbt’s compile can check it, and so is atogglecontract. (#1533)
Fixed
transform test --mutatenames a unit test’s overrides when it leaves the test out. A mutant is compiled once with the project’s own vars and macros, so a unit test withoverrides: vars(orenv_vars, or a macro other thanis_incremental) can fail the baseline and still pass intransform build. Its entry indata.baseline.excludednow names the overridden keys as the reason instead of calling the test already failing, and the refusal when no test passes says which tests set overrides. (#1396)
Added
-
transform test --mutatemeasures one version of a versioned model. Name it by its label,<model>.v<N>, the spellingtransform declaretakes. The bare name measures the version an unversionedref()resolves to (itslatest_version), with a warning, anddata.modelnames the version measured. Each version keeps its own mutation record, whichmaintain coveragereads as that version’s strength, and--downstreamroutes a mutant only to the models thatref()that version. A version the model does not list is refused naming the versions it has, and a version’s file stem naming its label.maintain coverage --mutatenow refreshes each version of a versioned model by its label instead of listing it underrefresh.skippedwithversioned_model. The batch price splices each mutant into the CTE dbt names after the model’s alias, which for a version is<name>_v<N>, so a mutant of a version or of any model with a custom alias is no longer priced at the unmutated baseline. An ephemeral parent with an alias is matched the same way. (#1405) -
A declared population filter renders a test,
dex_population_filter. Withdeclarations.render_testson, eachincludesorexcludeslist in a model’spopulation.filtersrenders a count-only column test, taggeddex_every_run, that fails on every run where a row breaks the filter, and the plan writes its macro as a reviewable diff. It agrees withmaintain verify’spopulation_contradictedcount for count on every connector: a NULL breaks anincludeslist and never anexcludesone. A filter on a column the model does not output renders nothing and sayscolumn_not_output. (#1516) -
A declared parent population renders a test,
dex_parent_population, in both directions. Withdeclarations.render_testson, eachpopulation.parentrenders two count-only model tests, taggeddex_scheduled:missingfails with the number of eligible parent keys the model lacks, andunexpectedwith the number of the model’s keys the parent lacks, and the plan writes its macro as a reviewable diff. Each agrees withmaintain verify’sparent_population_missingandparent_population_unexpectedcount for count on every connector, with the declaredpopulation.filtersscoping which parent keys are owed and a filter on a column the parent lacks skipped, asmaintain verifyskips it. A grain or key column the model does not output now renders no model-level test and sayscolumn_not_output. Eachdata.generated_testsrow of a kind that renders several tests on one model names which one it is undervariant(missingorunexpected,includesorexcludes). (#1525) -
A column declared a fraction renders a test,
dex_unit_range. Withdeclarations.render_testson, each column declaredunit: fractionrenders a count-only column test, taggeddex_every_run, that fails on every run where a value sits below 0 or above 1, and the plan writes its macro as a reviewable diff. It agrees withmaintain verify’sunit_out_of_rangecount for count on every connector: a NULL never counts, and a column that is not a number is checked by neither. The fraction finding now states that count asout_of_range_rows. A column declaredunit: percentrenders no test and saysheuristic_only:maintain verify’s percent rule is a question that correct small percentages also raise, so it stays withmaintain verify. (#1527) -
An INNER join a
referencesrequires renders a test,dex_join_coverage. Withdeclarations.render_testson, a model whose key column declares areferencesnaming the model it INNER-joins renders a count-only model test, taggeddex_scheduled, that fails with the join’s driving rows that find no parent row. An INNER join drops those rows, so the model’s output, and therelationshipstest on it, never shows them: the test reads the join’s two inputs and the filters the model applies to each, as the plan reads them from the model’s SQL, and agrees withmaintain verify’s join contract count for count on every connector. A NULL key is a missing reference, counted only where the column is declarednull_rule: never. A required LEFT join to the whole parent renders nothing (covered_by_builtin, sincerelationshipsalready counts those rows), nor does a key conversion or a grouped side (join_shape_unsupported) or SQL whose joins the plan cannot read (join_unread). A listed test whose join the SQL no longer writes is reportedstalewith a warning. (#1531)
Fixed
- The join-contract coverage probe resolves a model’s key columns on Snowflake, Postgres and Redshift. The probe that
transform build --verifyandmaintain verifyrun quoted each join key column as the model’s SQL spelled it, so on Snowflake a model written in lower case (customer_id) asked for a column the relation stores asCUSTOMER_ID, the statement was refused as an invalid identifier, and every such join came backuncheckedwithreason_code: probe_refused:join_no_match,join_zero_overlapandjoin_orphansnever fired. Postgres and Redshift had the same defect for a model written in upper case. A key column not already spelled the way the connector folds unquoted names is now looked up in the relation’s columns: a name the relation holds exactly keeps its spelling (a quoted mixed-case column), otherwise the folded name is used. A column the relation does not hold still comes backprobe_refusedwith the warehouse’s reason (#1366). (#1413) - The plan’s
--expecthint names the key value.data.refactor_comparison_offer.intended_changenow says"key": "unchanged"instead of “that the key holds”, and shows the same whole expectation shape a refused--expectends with, so following the hint does not take a refusal to learn the field’s value. (#1426) transform planskips an edit that matches the file on disk. A payload that resent an unchanged file counted it as a change: an unchanged seed madetransform comparereturninputs_unsynchronizedfor the model the plan did change, and an unchanged model was offered a comparison the build then reported ascomparison_not_run. An edit whose content matches the file on disk is now left out of the plan, its diffs,paths, the comparison offer and the seed and snapshot check, and one warning names the skipped files (“N edits match the tree and were skipped”). A declaration whose rendered YAML is already the file is skipped the same way, and a payload whose every edit matches the tree, declarations included, stores no plan and returnsplan_id: null, astransform declaredoes. A model file the payload’sdeclarationsname is kept even when it matches, so resending a model’s SQL beside its declaration still brings the model into the plan and its--for-planverification. (#1431)- A versioned deliverable a plan names by its file stem is
assertedwhen a test checked it. With--for-plan, a deliverable may be the version’s file stem (dim_customers_v2) while a test names its model by label (dim_customers.v2), so a version a passing test checked readbuild_only, and one a failing test checked was missing fromfailed_checks.data.completion.assurancenow matches the stem to the version it builds, as the deliverables block already does (#1499). (#1503) - A population filter stating both
includesandexcludesis judged on each list.maintain verifyandtransform build --verifycompared theexcludescheck against theincludesvalues, so every included value read as a contradiction. Each list is now its own rule with its own finding. (#1516) - A test declared on a column whose test list is a YAML alias lands on that
column only. A list two columns share through an anchor and its aliases was
appended to as written, so the test reached every column using the list. The
declared column now gets its own copy of the list first: an alias is expanded
in place, and an anchor moves with a copy of the tests to the list’s first
alias, so every other column parses to the same tests as before.
A column whose whole entry is shared, through a merge key (
<<: *base) or an alias, is refused with the anchor named, since no copy of its list alone keeps the test off the other columns. A test list whose last item is an alias to a test in another column now takes the new tests itself, where they used to be written under that other column. (#1522) maintain verifyholds a join to a declaredreferenceswhatever the column’s role, on a LEFT join too. Areferencesrenders dbt’srelationshipstest, which fails on any non-null value the parent lacks.maintain verifyrequired the join only where the column was also declaredrole: foreign_key, so areferenceswith no role, or with rolekeyordimension, on a LEFT join recorded its orphans as an optional relationship and withheldjoin_orphans: the build’s test failed while verify called the same rows fine. Areferencesnow makes the join into the parent it names required on every join side, any non-null orphan contradicts it at the contract threshold (threshold_source: contract,threshold: 0, high), and NULL keys stay excluded, since a NULL is a missing reference both checks accept. A version label (dim_teams.v2.team_id) is matched to that version’s relation, and a bare name to the version an unversionedref()resolves to; before, a versioned parent was never matched. This can raise newjoin_orphansorjoin_zero_overlapfindings on a project that declaresreferenceson LEFT-joined columns: each names the declaration it rests on underrequired_by(<column> declares references <model>.<column>), so it reads as the declaration’s meaning, not a change in the model (#1459). (#1528)maintain verifyjudges a node’s build status by the latest run that attempted it, and names that run on every build finding. It read therun_results.jsonbeside whichevermanifest.jsonwas newest, so adbt parseafter a Dex build (which rewrites the project’s manifest and runs nothing) paired a fresh manifest with an older hand-rundbt testand reported a failure the build had since fixed, at high severity and with nothing to date it. Build status now reads every building run on disk (the project’s target path and Dex’s artifact directory, each with itscold/), ordered by dbt’sgenerated_at. A compile is never read, and a node the current manifest no longer has is not reported. A run no dbt log names is still read, with a warning, since a rotated or cleaned log is no proof it came from elsewhere. Because Dex’s builds share one artifact directory and each replaces the last one’s results,transform buildnow also keeps one entry per node index_node_runs.jsonbeside them (status, invocation, time and command, never a dbt message), so a node an earlier Dex build passed is not judged by an older hand run. Eachnode_failed,node_skippedandnode_warnedcarriesdata.run(invocation_id,generated_at,command,artifact,cold,source,invoked_by,loggedandlatest), itsdetailnames the run, and a failure from an earlier run than the latest says so. A skipped node’scaused_byis read from its own run only.data.build_status_runslists the runs read (#1524). (#1529)- A Cube time bucket reads the same under
--apiand--local. The same grouped query returned2025-03-01T00:00:00.000typedtimewhen Cube executed it over/v1/load, and the warehouse’s own spelling and type name when Dex ran Cube’s SQL (2025-03-01T00:00:00typedTIMESTAMPon DuckDB,2025-03-01T00:00:00+00:00on BigQuery). Both paths now spell every bucket as a UTC ISO timestamp with an explicit offset,2025-03-01T00:00:00+00:00, typedtimestamp, on every connector and at every grain, so switchingexecutionorsemantic.deploymentno longer changes the cells ortypesof a grouped time bucket. A time dimension grouped without a grain is passed through as each path returns it (#1497). (#1530) maintain verifymeasures a join read through a filtering CTE on Snowflake. The join contract carries a filtering CTE’sWHEREinto its coverage probe, and respelled the probe’s key columns the way the relation stores them, but not the filter’s columns: on Snowflake a lower-casestatusnamed no column of a relation storingSTATUS, the probe was refused, and the join was left unchecked. The filter’s columns are now respelled the same way. (#1531)
Added
- Join coverage measures a CTE grouped by exactly the join’s key columns
(#1324). The common customer rollup, a parent roster left-joined to one row per
child key, was
uncheckedasfiltered_cte, so verify could not tell “every parent with a child matched” from “none did”. A side read through a scope whose only reducing clauses are a supportedWHEREand aGROUP BYover exactly the join’s key columns (one input, noHAVING, window,LIMITor set operation) is now probed over its groups, never the ungrouped relation underneath: the record’seffective_inputnames thegrouped_bykey columns andmeasured.group_rowsis the grouped input’s own denominator.maintain verifyandtransform build --verifyreport the same shape, so a LEFT join’s parents with no group staysatisfied(optional_unmatched), a required reference’s unmatched parents arejoin_orphans, and a grouped input with no groups isnot_applicablewithempty_inputrather than a zero-match join. Any other grouping shape (an extra grouping column, a subset of a composite key, an expression, a grouping inside another grouping) staysuncheckedasfiltered_cte. (#1352) - Warn when the installed Elementary release ignores the sampling flag. Elementary honors
disable_test_samplesonly from package 0.20.0 onwards. When Dex renders a test with the flag into a project where Elementary’s test materialization is active and the installed package release is below 0.20.0 (or indeterminate), the result carries a warning naming the installed release, explaining that the flag has no effect, and advising either to upgrade the package to 0.20.0 or later or settest_sample_row_count: 0for the project (#1381). (#1381) explore semantic queryandvaluesrun on Databricks Metric Views. Undersemantic.vendor: databricks, dex rendersSELECT ... MEASURE(...) FROM <deployed view> GROUP BY ALLfrom the repository’s Metric View files and executes it through its own Databricks connector, priced from the base tables the request reaches and run underSTATEMENT_TIMEOUT. Tokens areview.fieldandview.measure; a grain suffix buckets a field formatteddateordate_time, and--whereis a Databricks predicate over the view’s fields. The PII gate screens every grouped and filtered field and every column a value-returning measure reads. Window andpartitionmeasures, views declaringparametersor amaterialization, a measure in--where, two views in one query and any other connector are refused by name before anything is sent. The deployed view is found by its file’s stem among the Metric Views the source allowlist holds; its definition is not yet compared with the file, and every result says so. (#1392)transform planstamps PII metadata on the models it creates. A new model that carries a PII-flagged input column through, unchanged, under an alias or through a value-preserving function, getsconfig.meta.contains_piiandpii_categoryon that column andcontains_piion the model, as a scaffolded model always did, with or without a declaration.data.pii_metadatareports every judged column: measuring aggregates (measured) and constants standing in for a flagged column (redacted) are not stamped, a hash or other expression isunresolvedwith a warning, a hand-written mark is kept, and a model that already exists is reported rather than written (#1100). (#1395)- Governed Metric View queries are held to the reviewed file, and
explore semantic list --deployedreads the deployed views on Databricks. Undersemantic.vendor: databricks, before a governedqueryorvaluesis priced, dex reads the deployed Metric View back from Unity Catalog (tables.get, no warehouse) and compares everything the query relies on with the repository’s file: thesourceandfilter, each named field and measure and every member it reads, a grained field’sformat, and the joins those reach. A difference refuses the query, naming the member and the field; reserialized YAML, whitespace and identifier case are not differences.list --deployedlists the views deployed from the configured files, with per-view coverage (full,limitedorrefused), so a view this identity can browse but not read back is named rather than missing. A plainlistnever contacts Databricks. The coverage shape and the read-back refusals are now shared with Snowflake. (#1399) - Databricks Metric Views read from Unity Catalog alone:
semantic.deployment: databricks_workspace. The Databricks counterpart ofsnowflake_account, read byexploreonly.explore semantic listlists every Metric View the source allowlist’s scopes hold (tables.list, thentables.get, no SQL warehouse woken), validated as a file is, each named by its Unity Catalog name with per-view coverage (full,limited,refused); a name held in two allowlisted schemas is refused, naming both and--scope.queryandvaluesrun through the same governed spine aslocal: dex rendersMEASURE()and executes it under the cost guard and the PII gate, which still refuses before any SQL session opens. No file is needed, and nothing is held to one: every result carriesdefinition_source: accountand a warning that its definition was not checked against a reviewed file. A configured file describing a deployed view is named on it, and--localholds the deployment to it.explore relationships|map --use-hosted-semantic-layerfold the deployed views’ joins andrelykeys in, and the skill wrapper takes[metric-views]for that flag under this deployment. (#1400) transform comparesays when an input changed after the last build. The baseline is the model’s current SQL re-run on today’s inputs, so rows loaded into a source, or a parent rebuilt, after the model’s last build gave a baseline no build ever wrote, and a verdict such asunexpectedcould blame the change for what the new inputs did (#1387). The verdict now carriesdata.baseline_never_builtwith the build time and the evidence (rebuilt_after, the upstream models a later run rebuilt, and on DuckDBrow_count, the built relation’s count against the baseline’s), plus awarningsline. The verdict itself is unchanged. (#1402)- Cube Cloud, and Cube executing a query with
--api.semantic.deployment: cube_cloudreads a Cube Cloud deployment of the repository’s Cube model files: by default Cube Cloud executes the query over/v1/load, and the catalog is the deployment’s compiled/v1/meta, which answers JavaScript, Jinja andextendsdefinitions, with every result saying it was not checked against the files.--localhas Cube Cloud render the SQL for Dex to execute under the cost guard, held to the reviewed files. On a Cube Core,--apinow has the Core execute instead of being refused. Wherever Cube executes, the PII gate runs before anything is sent, results reportexecution: vendorwith a cost-guard unavailable warning, and relayed warehouse errors are masked. The Cube Cloud token isCUBE_API_TOKEN, sent only to a Cube Cloud host or one named inDEX_CUBE_ALLOWED_HOSTS, andDEX_CUBE_URLoverridessemantic.cube.url.scripts/setup_cube_dev.sh --executestarts an executing Cube Core, and the integration workflow gains--apicases and a narrow Cube Cloud job (#914, #915). (#1411) - The query firewall holds the columns of Elementary’s schema that carry source rows.
test_result_rows.result_rowandresult_rowsonelementary_test_resultsand its alert views hold failing rows of tests, serialized, and are held at the blocking threshold whatever the cache says (a measuring aggregate over them runs).dimension_valuecarries the PII flags of the columns the reading SELECT bounds it to withWHERE dimension = '<column>'(orIN (...)), and is held without that bound, since rows a removed monitoring test wrote stay in the table. A relation in anelementaryor*_elementaryschema that is none of the package’s models, such as a test resulttests_use_temp_tablesleaves there, is refused as a whole.explore profilerecords no minimum, maximum or value domain for any of them, and apii_overridesentry does not clear them (#1310). (#1427) - A billed build’s estimate says when the Elementary package makes it a floor.
transform buildprices compiled nodes, and Elementary runs work no node shows: itson-run-startandon-run-endhooks, its monitoring tests’ metric queries and tables over theirdays_backwindow, and its test materialization’s failed-row count and sample query for each test it handles. Keyed off what the package does for the target (the resolver from #1305), never off whether it is installed, the ask, the over-ceiling refusal and the finished build now carrycost.unpriced(elementary_hooks,elementary_monitoring_tests,elementary_test_extras), the record underdata.unpricedwith each anomaly test’s window, and one warning per kind.cost.unpricedis a new envelope field,nullwherever nothing is claimed (#1309). (#1427) transform planlists the tests a plan removes. A plan that rewrote a model’s YAML as a stub deleted itsunit_tests:block with no warning, and nothing else at plan time noticed (#1420).data.change_scope.removed_testsnow names each unit test, data test (on a model or one of its versions, a snapshot, a seed or a source table, and on a column) and singular test the plan removes, by name and what it tests, with the path it was read from, and awarningsline lists them. It covers a deleted YAML block, a rewritten YAML file and a deleted test file. Editing a test, moving it to another file, or carrying it to a model the plan renames is not a removal. The plan is still stored: keep the test, or say the request asks to drop it. (#1428)explore inventory --rankandexplore mapleave the Elementary package’s own tables out of the ranking. In a warehouse where a project installselementary-data/elementary, the package’s metadata tables (dbt_run_results,data_monitoring_metrics,elementary_test_resultsand the rest), written on every run, could outrank the project’s own tables on size, andexplore mapspent its profiling scans on them. They are now recognised from the warehouse by their signature (a namespace holding at least three of the package’s table names, one of them a name only the package uses) and left out by default: not scored, not profiled bymap(--fullincluded), and not described in itsdata.objects. Only the package’s tables are left out, so a project that builds the package into its own schema keeps its own tables ranked.data.excludednames them (count,reason: elementary,by_namespace,objects) and a note says so. They stay readable: an unrankedexplore inventorylists them,explore profileandexplore queryread them as any other table, and--include-elementaryranks them with the rest (#1311). (#1441)- Each test a declaration renders names the claim it checks. The
unique,not_nullandrelationshipstests Dex writes from a declaration now carryconfig.meta.dex.claim, an id of the declared fact the test checks. A test’s name andunique_idchange with its model, column, arguments orname:, so the claim id is what to key incidents and “last verified” history on. It is a hash of the model’s label, the declared field, its columns and its parameters, and never of the test’s name, so two facts on one column get two ids. After the first render the file holds the id: declaring again or renaming the test leaves it as written, and a plan shows no diff on it. A test exactly as Dex rendered it before this release (the sampling flag, nothing else) gets its claim on the next render; a bare test stays bare (#1448). (#1448) - An opt-in switch and a cadence tag for the tests Dex generates from declarations. A new setting,
declarations.render_testsin.dex/config.yml, decides whether a declaration renders Dex’s generated tests, the ones that check a declared fact dbt’sunique,not_nullandrelationshipscannot. It is off by default, because those tests run in the project’s production runs;trueturns on every kind, and a list turns on the kinds it names, by test name or by cadence ([dex_every_run]for the cheap ones first). Every generated test carries a dbt tag fixed per kind,dex_every_runordex_scheduled, so an orchestrator runs the whole-table scans on its own schedule withdbt build --select tag:dex_scheduledand leaves them out of every other run with--exclude. A plan lists each generated test its declarations give underdata.generated_tests, with its tag, its claim and whether it rendered. The tests follow the facts the model’s YAML declares, so on a project whose models were declared before the switch was on,transform declareproposes them without restating a fact. Turning the switch off removes no test already written. The built-in tests are unchanged and always render. Each kind arrives with its own issue; the first isdex_unique_combination, for a composite grain (#1449). (#1449) - A composite grain is checked on every run, by a test Dex renders. A model that declares a
grainof two or more columns now rendersdex_unique_combinationon its YAML entry whendeclarations.render_teststurns it on, taggeddex_every_run. It fails when two rows share the grain, and agrees withmaintain verify’sgrain_broken: dbt’s failure count is the same duplicate count, and a NULL in a grain column counts as a value on both sides. The test returns that count and never a key value, so Elementary keeps no key from a failing run. The plan that first renders it writes the test’s macro into the project’s macro paths as a reviewable diff;transform macro dex_unique_combinationscaffolds or diffs it on its own. Each generated test states the connectors it supports, and on any other it renders nothing and the plan saysdialect_unsupported; this one supports every connector (#1452, #1451). (#1505)
Changed
- Expectation and definition-delete refusals show the accepted shape. A
transform compare --expector--expect-filerefusal now ends with the whole expectation object (added,removed,changed_columns,key), and a refused delete insemantic plan --definitions-fileshows{"kind": ..., "op": "delete", "name": ...}, so one error shows every field’s accepted form. The agent procedure says"key": "unchanged"and shows a complete expectation. (#1391) - A seed the plan creates warns at the PII threshold instead of refusing. When
transform plancreates a seed file whose column’s strongest PII flag sits exactly at the block threshold and comes from its header name alone (a*_notecolumn read as free text), the plan warns and names thepii_overridesentry rather than refusing. A column a profile already flagged, a rewrite of an existing seed, and any stronger flag still refuse (#647). (#1395)
Fixed
- A passing Elementary test that checked nothing no longer makes a model
asserted.transform buildcounted any passing data test as a check of the model it reads, and an Elementary test can pass having read nothing: with the package’s models disabled for the target, every test that checksis_elementary_enabled()compiles to the package’s no-results query, and with them enabled, the anomaly tests,schema_changes,volume_threshold,metric_stabilityandexecution_slajudge the run against history earlier runs stored and pass where it is missing, as on a fresh dev target. So a model whose only test wasvolume_anomaliesreadasserted. Such a pass now counts for no model, anddata.completion.assurance.unchecked_testslists each that reads a model the assurance covers (a deliverable, with--for-plan), at most five with the rest counted indata.completion.elided, with itsmodelsand areason_code:package_disabledorcompiled_to_no_resultsfor a test whose compiled SQL is the no-results query (read from the build’s manifest, so a project’s own test wrapping one is caught too, andcollect_metrics, which always compiles to it), andhistory_unmeasuredfor the history tests whenever the package is enabled (dex does not count the history, so the code says the pass is not counted, not that the test read no rows). A line in the build’s warnings gives the total and points at the list. A failing one still counts as a failed check. dbt’s own tests and the*_with_contexttests are never listed;json_schema,schema_changes_from_baselineanddata_freshness_slaread no stored history, so they are listed only where they compiled to the no-results query (#1308). (#1308) dex transform referencesdiscovers staticvar()calls in dbt YAML files. Previously, reference discovery readvar()invocations only within SQL files and macro definitions, while YAML configuration files likedbt_project.ymland model properties YAML were omitted.ReferenceIndexnow indexes staticvar()calls in YAML configuration under formvar_call, while reporting dynamic or unresolvablevar()calls as indeterminate so reference completeness verdicts stay honest. Renaming a variable viadex transform rename varrewrites both the YAML declaration and YAMLvar()read sites, anddex transform remove varrefuses plain removals that would leave surviving YAML readers behind. (#1339)- A test Dex renders tells Elementary to keep no sample of its failing rows. The
not_null,uniqueandrelationshipstests Dex writes from a declaration, and thenot_nullanduniquetestsmaintain reconcileadds, return key values when they fail, and where the Elementary package’s test materialization runs, it copied up totest_sample_row_countof them intotest_result_rows. Each of them now carriesconfig: {meta: {disable_test_samples: true}}, which Elementary 0.20.0 and later honor and which does nothing without Elementary. Tests already in a project are left as written; only tests Dex adds carry the flag, so remove it in review to keep samples on a Dex test. dbt’s ownstore_failuresand Elementary’stests_use_temp_tablespath are not affected (#1306). (#1348) - A scaffolded test tells Elementary to keep no sample of its failing rows. The
not_nullanduniquecolumn tests written by staging model scaffolds now carryconfig: {meta: {disable_test_samples: true}}, matching the unsampled test mapping emitted by declaration renders. Downstream drift reconciliation (maintain reconcile) recognizes the unsampled mapping and surgically modifies or removes tests when nullability changes (#1351). (#1351) - Fix
explore relationshipsandexplore mapto attribute native semantic layer joins accurately in summary notes as declared by the layer’s own relationships rather than claiming a relationships test when no test declares them. (#1371) maintain checkskips baseline sources that the current project no longer declares, preventing removed source declarations from reporting asdangling_source. (#1383)transform compare --keynow accepts comma-separated column names as well as repeated flags, so both forms pass the same composite key to the comparison. (#1389)- A mutation run leaves the dev warehouse alone in a project that installs Elementary.
transform test --mutatestrippedon-run-startandon-run-endfrom the rootdbt_project.ymlonly, and dbt also runs the hooks an installed package declares, so with Elementary installed every baseline and mutant run uploaded to its dev schema. The copy a mutation run works in now strips every installed package’s run hooks too, disables Elementary’s models unless something outside the package refers to one, and leaves Elementary’s monitoring tests (anomaly tests,schema_changesand the others that check the package is enabled) out of every run, a project’s own test that wraps one of them included. A package an absolutepackages-install-pathputs outside the project keeps its hooks, since the copy cannot reach them, so a run where one declares a hook is refused. Each one the run would have reached is listed inbaseline.excludedwith statusnot_runand areason_code,elementary_disabledorelementary_history, and a model whose only tests are these is refused, since nothing would measure it. Where Elementary’s models must stay enabled, the copy has dbt run the tests under its own test materialization, since Elementary’s fails every test without the hooks that were stripped; where a test materialization in the project still hands them to Elementary’s, directly or through macros of its own, or dbt will not parse the copy with that setting, the run is refused. The resolver also reads hooks that return before they readedr_cli_runasreturn_earlywhere that var is written as Jinja, rather thanunknown(#1307). (#1390) - Organization-name columns no longer hold a person-name PII flag. A
*_namecolumn qualified by an organization (team_name,lab_name,org_name,university_nameand similar) is no longer flagged as a person’s name, and a generic name column whose values mostly end in an organization suffix (“Acme Inc”, “Stability AI”, “Bell Labs”) is de-rated below the query firewall’s threshold by a new value-shape statistic, which also stops such values counting as person-shaped. Every refined name flag now reports the rule that decided it asrefinement(person_shape,organization,unsettled, …), and a refusal names the verdict of a flag that still blocks (#647). (#1395) - A derived semantic model names a column MetricFlow reserves instead of failing dbt’s parse. A declared mart column named for a time granularity (
year,month,day,week,quarterand the rest, in any case) became a dimension, entity or measure of the same name, which MetricFlow refuses, so the plan warned with a raw dbt parse error. The derivation now fails before the parse, anddata.semantic_proposal.models.<model>and the plan warning name each such column with the fix: rename the output column, or name the element<model>_<column>withexpr: <column>and pass the definition tosemantic plan --definitions-file. (#1401) - An argument dex cannot parse now prints an error envelope. A missing argument, an unknown flag or command, or a bad value used to exit 2 with nothing on stdout, so a host could not tell it from a crash. It now prints one
reason: requesterror envelope whoseerrorscarry the parser’s message (and the bare-subcommand tip when one applies) and exits 1 like every other error envelope. The usage still goes to stderr, and--helpand a baredexare unchanged. (#1406) - A conversion error’s quoted value is masked when it spans a line break. A
warehouse or dbt message that quoted a value holding a line break left the
value unmasked, because the mask read one line at a time and the quoted value
was whole on none of them. The whole message is now masked before it is cut to
its first line or capped, so warehouse refusals, failure notes and dbt build
messages carry
<value withheld>in its place (#1412). An unquoted value, such as BigQuery’sBad int64 value: x, is still masked only up to the line break. (#1425) - Three query-firewall paths no longer let a flagged value out. An output name used twice (
SELECT a AS x, b AS x, or one column in two sources under*) kept only the last projection’s flags; the name now carries both. A set operation pairs columns by position, so where either side repeats a name its taints are merged across every column rather than paired by name. And a measuring aggregate no longer hides the subquery inside it:SUM((SELECT x FROM t LIMIT 1))is one value ofx, so the subquery is resolved, its relations checked and its flags kept. A relation Elementary’s schema holds whole is refused wherever a statement names it, cached or not, and a profile cached before this release drops any minimum, maximum or value domain of Elementary’s row-value columns when it is loaded (#1310). (#1427) transform comparerefuses a seed or snapshot change only for the models that read it. A plan that changed a seed returnedinputs_unsynchronizedfor every model it rewrote, including ones with no path to the seed, so none of them could be compared. The check now reads the proposed model’s own upstream graph: a model that does not read the project’s changed seed or snapshot compares as usual and reports its realinput_scope, and one that does is refused with a detail that names the file and says to plan it on its own, apply and build it, then plan the model edits again. (#1436)- A local semantic read says when the compiled manifest is older than the YAML.
transform applywrites semantic YAML and leavessemantic_manifest.jsonas it was, so untildbt parseran,explore semantic listsilently returned the old layer andexplore semantic queryof a metric applied a moment ago failed as if its name were a typo. A local list, values or query now warns, naming the semantic YAML files newer than the manifest anddbt parse, and its refusal of an unknown metric or dimension, or a query that fails to resolve, carries the same note (#1269, #1417). (#1437) - A
macro_sqledit can carry a generic test. A macro file holding a{% test %}block beside its macros, the shape a package ships a test in, was refused as loose content. dbt reads generic tests from macro paths, so the edit kind now accepts them, holding test and macro blocks each to its own balance. (#1505)
Added
maintain verifyjudges a project format’s declared foreign keys without dbt artifacts. A project format other than dbt (one named underproject.format) can declare foreign keys, but nothing measured them: verify suppressed the join contract and parent population for want of a dbttarget/, and dbt’s ownrelationshipstest result was the only judge. Each declared foreign key is now measured against its parent with the join contract’s coverage probe, placed where the format’smodel_relationsputs each side, and reported as one record per key underdata.foreign_key_coverage(model,column,to_model,to_column, and astatusofsatisfied,contradicted,not_applicableoruncheckedwith areason_code). Any non-NULL child value the parent lacks is a highforeign_key_orphansfinding, since a foreign key states containment. A model the format places in no relation isuncheckedwithno_declared_relation, never found by name. On a metered connector the probe is priced in verify’s one offer. A dbt project is unchanged: dbt still judges these through its ownrelationshipstests. (#1217)dex maintain coverageinventories the tests a dbt project declares. It reads a freshdbt parseof a copy of the project, so it is free on every connector, opens no connection and needs no baseline. For each enabled model, source, snapshot and seed it counts its own generic, singular, unit and freshness tests (with each test’s severity), lists the tests on downstream resources apart, says whether an incremental model has a unit test that takes itsis_incremental()branch, and splits documented columns into asserted and unasserted. Every ratio indata.summarynames its numerator, denominator and what the denominator counts; package and disabled resources are counted and named underexcluded. It takes themaintain verifyselector and--full, reports only (never fails on low coverage), and is reviewed for values-free mode.DexEngine.coverage()is the library spelling. (#1328)transform build --verify --for-plannow measures what a plan did to the models below its edits (#1231). The models the plan rewrote and every unedited model below them are re-executed against the tree before the plan, whichtransform applynow records on the plan asbaseline_sources(else the gitHEADblob whose hash the plan recorded). Per model,data.verification.impactcounts rows and keys on each side (kept, removed, added, duplicated; keys compared as text, so a retyped key still matches) and, on a mart, the kept keys each column changed on; counts and names only. An unedited model whose rows or keys moved is adownstream_population_changedfinding naming the edit upstream, attributedintroduced, and anunverifiedreason that keeps the build from readingvalidated, unless its declaration records the population as an assumption atrequestorcontracttier.data.completion.impactleads with the largest changes. On billed connectors the statements are priced with the build as(downstream impact), and a model above a quarter of the command ceiling isunchecked: cost.data.change_scope.downstreamnames, at plan time and for free, the unedited models below each rewrite. (#1333)dex maintain coveragereports last-run status, recorded mutation strength and declared-fact coverage beside the test inventory. Each test carries its status in the newestrun_results.jsona dbt build wrote (Dex’s or a plaindbt build’s),not_runwhere that run did not include it, with the run’s invocation and age.transform test --mutatenow records each model’s result in.dex/, and coverage reads it back as the model’sstrength:fresh,stale(naming whether the model’s SQL, its tests or a downstream test it ran changed),missingoruntestable, counted per status with score bands and no project score. Adeclarationssection names, for each declared fact, the dbt tests andmaintain verifychecks that can judge it, or that nothing does. All of it is free and connectionless. Store backends gain an optionalMutationRecordscapability, held to the conformance suite asMutationRecordsContract. (#1343)maintain coverage --mutaterefreshes stale and missing mutation scores, and coverage lists the columns singular tests read.--mutaterunstransform test --mutatefor each model whose recorded score isstaleormissing, in selector order (else missing first, upstream first), at most 25 per run (--max-modelsnarrows), and reports what it did underdata.refresh. On a metered connector the whole batch is priced and confirmed once, each run draws on what the budget has left, and the models it did not reach arenot_run; it is free on DuckDB, dev target only, and refused in values-free mode. Without--mutatethe command still opens no connection. A model with no SQL to plant a defect in is now recorded and readsuntestableuntil it changes, so a refresh always moves on. Each resource’scolumns.referenced_columnslists the columns its singular tests read, with the role each is read in (predicate,join,aggregation,grouping,projection), counted apart ascolumns_referenced_onlyand never as asserted;data.singular_testsnames every test that could not be read, with a reason code. (#1349)- Governed
explore semantic queryandvalueson Snowflake Semantic Views, andexplore semantic list --deployed. Undersemantic.vendor: snowflake, Dex rendersSELECT * FROM SEMANTIC_VIEW(<deployed view> DIMENSIONS ... METRICS ... [WHERE ...])from the repository’s catalog and runs it through its own Snowflake connector under the cost guard (execution: dex); every other connector is refused by name. Tokens are the catalog’s (sales.orders.revenue,sales.revenue_per_customer), one view per query, and result columns carry them. A grain-suffixed time dimension (sales.orders.order_date__month) renders asDATE_TRUNC,--whereis a Snowflake predicate over dimensions and facts, and a query of facts alone takes--group-by <fact>and no metric. Refused by name before anything is sent: facts beside metrics or dimensions, a private, window, level-of-detail orusing_relationshipsmember, a view declaringvariables, a dimension the metric’s table does not reach many-to-one, a grain on a categorical dimension, a bare--grain, and a--wherenaming a metric or one Dex cannot read. The PII gate screens grouped and filtered members and the inputs of a metric that returns one of its values, through the catalog’s lineage. Before the cost handshake, Dex locates the deployed view with a warehouse-freeSHOW SEMANTIC VIEWSover the source allowlist, reads it back withSYSTEM$READ_YAML_FROM_SEMANTIC_VIEW(which resumes no warehouse), and refuses the query when anything it relies on differs from the repository’s file, naming the member and the field; a view defined only in the repository, or in two allowlisted schemas, is refused by name. The statement is priced from the base tables the members reach, since Snowflake keeps no bytes for a semantic view.explore semantic list --deployedreads the deployed views instead of the files, withsource: deployedand per-viewcoverage(full,limited,refused); a plainlistnever contacts Snowflake. (#1355) - A live integration suite for Snowflake Semantic Views, and the CI role it deploys with.
tests/integration/test_snowflake_semantic_views.pydeploys two corpus views over the TPC-H sample data into a scratch schema and holds Dex to them: the read-back comparing clean,list --deployed, five governed queries and values against SQL written by hand over the base tables, the stale-definition refusal, and themaintaindrift loop throughreconcileandapply.scripts/setup_snowflake_ci.shprovisionsDEX_CI_SV_DEPLOYER, the role the suite deploys with, kept apart from the role Dex runs as, andscripts/setup_snowflake_semantic_views.shgrants the read role OPERATE on its warehouse sosnowflake.suspend_after_commandworks. The docs now state plainly what the Snowflake Semantic View vendor does not do in this release. (#1356) maintain coveragelists a native semantic layer’s declarations. Undersemantic.vendorset to Ossie, SLayer, Cube, Databricks or Snowflake, the declarations section adds the layer’s own facts beside the dbt manifest’s, and every record names itssource. The keys and joins the layer declares are the onesmaintain grainre-verifies, so they readdex_verifywithdeclared_grain_not_unique,declared_join_orphansand, for a join declaredmany_to_oneorone_to_one,join_cardinality_exceeded. What the layer’sdexmetadata states (roles, references, population, unit, additivity) readsnone, since nothing checks it on that layer. A fact a dbt model and the layer both declare on the same relation, spelled alike, is listed once per source withalso_declared_byand counted once. Still free and connectionless, and no population value or rule text is shown. (#1358)- Snowflake Semantic Views read from the account alone:
semantic.deployment: snowflake_account. Undersemantic.vendor: snowflake, the new deployment reads the catalog from every semantic view in the source allowlist’s scopes, with no repository file needed: a warehouse-freeSHOW SEMANTIC VIEWSper scope, thenSYSTEM$READ_YAML_FROM_SEMANTIC_VIEWper view, each read-back checked by the same validator that reads a file. It is the Snowflake counterpart ofdbt_cloudand, like it, is read only byexplore semantic list|values|queryand byexplore relationships|map --use-hosted-semantic-layer, which now fold in the account’s keys and joins on their base tables. Dex still rendersSEMANTIC_VIEW(...)and runs it through its own Snowflake connector (execution: dex), so the cost guard, the source allowlist and the PII gate apply exactly as underlocal. What changes is trust. The deployed definition is the only one, so nothing is checked against a file, and every result says so:listcarriessource: account,queryandvaluescarrydefinition_source: account, and each carries a warning.coveragenames every view:full;limited, where a read-back reads a member it does not carry; orrefused, for a read-back that was refused or failed validation, or for a name held in two allowlisted scopes, with both copies named and--scopesuggested. The deployment is opt-in only and never a fallback whensemantic.snowflake.filesis empty. Configured files stay optional and keep servingmaintain,transform,--use-projectand--local, which checks the deployment against them. A deployed view that a configured file describes is named on its result (repository_file), takes the file’s spelling, and is never silently passed over. (#1360)
Changed
- A build says what the plan introduced, and an unfinished change no longer reads as validated.
A
transform build --verify --for-plannow classifies each finding asintroduced,unattributedorexisting, judged against the last--verifybuild recorded before the plan was applied and against the manifest’s lineage, and lists the introduced ones first, indata.verification.introducedand at the head ofdata.completion.verification, so a new high-severity finding is never cut or buried below inherited ones. Where every deliverable built but part of the change is still open (a rewrite applied uncompared while its baseline was ready, an undeclared population change, or an introduced high-severity finding),data.outcomereadsbuilt_unverifiedwith each reason underdata.completion.unverified;data.evidence.outcomekeepsvalidated.transform applynow refuses a plan whose change scope records an undeclared population change, naming each underdata.undeclared_population_changes, until an assumption records it or--accept-population-change "<reason>"accepts it, which is recorded on the plan. (#1329) - The skills stay on a supported Python when your newest is 3.15. Dex supports
Python 3.11 to 3.14. The skill wrappers now hold both their own interpreter and
the engine’s environment to that range, so uv picks an installed 3.14 or older,
or downloads one, instead of installing the engine on 3.15, where dependencies
that ship no 3.15 wheels fail to build (the Databricks extra did). An explicit
UV_PYTHONstill wins. The README, the installation page and the package README state the range, and the installation page showsuv tool install --python 3.14for a standalone install on a machine whose newest Python is 3.15. (#1335) - Query results now serialize list and array cells as JSON arrays instead of Python repr strings. Cells with array types previously fell back to string coercion in
json_safe, emitting Python repr strings like"[1, 2]". Array cells now serialize as JSON arrays, with nested cell-width truncation applied to long string elements and payload-byte caps preserved. (#1337)
Fixed
- Qualifying a GROUP BY key is no longer reported as a grain change.
Table qualifiers on GROUP BY keys are stripped during comparison so alias-only
refactors do not trigger
group_by_changedand keep the population classified as kept. Real grain changes, including case changes in quoted identifiers and string literals, continue to be reported. (#1174) - Honor runtime error and partial success dbt statuses in standalone maintain verify. The standalone build status sweep now reuses shared build status classification, reporting
runtime errorandfailedasnode_failedfindings, tracing skipped descendants back to their failed ancestors, and noting unrecognized statuses likepartial successandno-opas unchecked rather than omitting them. (#1338) - Establish build completion and coverage for plans that only add dbt tests.
required_nodesnow resolves singular test edits (EditKind.TEST_SQL) and native unit test definitions (unit_tests:in schema YAML) to their expected test nodes, including across configured test paths. Build completion recognizes passing and warning test runs as satisfied test deliverables without conflating test execution with model rebuilds. Skipped, disabled, failed, or missing tests are reported explicitly and prevent validated completion, while unrelated model builds reportunrelatedoutcome. (#1340) - SLayer authoring and retype checks resolve measure references read through joins. Saved measures that aggregate a column across single-hop or multi-hop joins now evaluate that column’s allowed aggregation rules, including primary key restrictions and type defaults for ARRAY and TEXT columns. When a joined column is retyped, maintain schema lists affected dependent measures under
breaks_measuresand advises on the required measure rewrites. Unknown or unresolvable joins remain explicitly unchecked during authoring validation. (#1344) - Reconcile links covered advisories to the native semantic plan. When a mechanical semantic plan is validated during reconcile, advisories that the plan already repairs are linked to it instead of being repeated as independent manual proposals. Uncovered advisories, such as removals held back by guards or unrepresentable repairs, remain separate manual proposals. (#1345)
- A nation, country, region or continent name is no longer flagged as a personal name. The generic
*_namePII match now treatsnation,country,regionandcontinentas non-person qualifiers, sonation_namecan be grouped by in a governed semantic query instead of being refused as PII. A barename, acustomer_name, an ambiguousn_nameand acity_name(address data) are still flagged. (#1356) - Ossie snapshots record which key is the primary key and which are
unique_keys. A violated or lapsedunique_keysentry was worded as a primary-key claim, in the finding and in themaintain reconcileadvice. The snapshot now recordskey_claimsfor each Ossie key, so both say the layer declares the columns unique. A key left out because a field links no column drops its claim too. Snapshots taken before this read as they did.