---
title: "Connect dbt"
description: "Your dbt project already holds the definitions, copied into every accepted_values list that tests a column. Bring a manifest; we connect the copies into one vocabulary you govern — that your agents build on, operate across and answer from."
slug: "dbt"
type: connector
locale: en-US
canonical: "https://www.coremodels.io/connector/dbt"
updatedAt: "2026-09-28T18:42:53+02:00"
last_updated: "2026-09-28T18:42:53+02:00"
---

# Connect dbt

Your dbt project already holds the definitions, copied into every `accepted_values` list that tests a column. Bring a manifest; we connect the copies into one vocabulary you govern — that your agents build on, operate across and answer from.

Import your manifest, no credentials. Give the columns that matter a definition, an owner and a permitted-value list — then point your agent at it, or publish the result back as property files your repo can review.

dbt is excellent at building. It was never the system of record for meaning. `description` is free text, `meta` is an unvalidated bag, and `accepted_values` is a string list retyped into every model that touches the field. When eleven copies of one enum disagree, `dbt build` can still go green. A governed model is the thing that build can finally check.

Any dbt command writes `target/manifest.json`. That file - joined by the catalog for warehouse-real types and the semantic manifest for metrics - is enough. Models, seeds, snapshots, and sources become types; columns become elements; `accepted_values` become taxonomies; relationships become references; `depends_on` becomes lineage.

On its own that import is an estate description, not governed meaning. The publication-contract recipe is the loop: a human writes definitions, names the vocabulary, binds the terms that matter, then CoreModels generates one property file per model, sitting beside that model's own `.sql`. One governed vocabulary produces the same `accepted_values` list in every model that uses the field. A bound ontology term rides out structurally under `meta.coremodels.maps_to` and in the column description, which `persist_docs` carries into the warehouse comment.

The loop is intentional. Meaning lives outside the repo so a refactor cannot silently rewrite the definition. dbt stays the builder. CoreModels stays the record of what the builder is allowed to mean. Generation returns files; your own pull request flow lands them.

## Recipes

- [A contract for the consumers dbt can't see](https://www.coremodels.io/recipe/dbt/contract-of-record): Model contracts stop at the dbt boundary. Your reverse-ETL job, your ML pipeline and the team next door have nothing.
- [Give your agent the governed meaning of `status`](https://www.coremodels.io/recipe/dbt/agent-grounding): An LLM writing SQL against your warehouse has three bad options: guess from the column name, read the SQL, or ask a human. Give it a fourth.
- [One enum, every model](https://www.coremodels.io/recipe/dbt/governed-vocabulary): Two files test the same column with different accepted_values. Both pass. Find the one that drifted.
- [Publish governed meaning into dbt](https://www.coremodels.io/recipe/dbt/publication-contract): Meaning has nowhere to live in dbt. Govern it once, and let it reach the warehouse column comment.
- [The PR your dbt CI passes](https://www.coremodels.io/recipe/dbt/ci-contract-gate): Delete an accepted_values test and CI goes green, because the test is gone. Nothing compares the PR to what you agreed.
- [What breaks if I rename this?](https://www.coremodels.io/recipe/dbt/change-impact): dbt lineage tells you which models depend on this one. It cannot tell you who outside dbt is relying on this column.
- [Who decides what this column means?](https://www.coremodels.io/recipe/dbt/ownership-register): 41% of analytics teams say data ownership is ambiguous. dbt can tell you who owns a model. Nobody owns a definition.
- [dbt project](https://www.coremodels.io/recipe/dbt/generic): Bring a dbt estate under governance, the baseline the publication contract builds on.
- [Jaffle Shop, worked: what `orders.status` means](https://www.coremodels.io/recipe/dbt/jaffle-shop-status): dbt Labs' sample project, with its five-value status column annotated so an agent looks it up instead of guessing. Every field is on the page.

## Problem

- [Eleven Copies of One Enum](https://www.coremodels.io/connector/dbt/h1-need): Grep a mature dbt project for `accepted_values` and count the hits on your order status field. In a mature project, the number is rarely one. The list appears in the staging model that first cleans the column, in two intermediate models, in the fact table, in three marts built for three teams, and in another four models a second squad wrote when it needed the same field and copied the nearest example it could find.

## Outcomes

- [The Ticket Nobody Files](https://www.coremodels.io/connector/dbt/h2-outcomes): The enum problem is the one everybody recognizes, and it is not the whole of what changes. Once meaning is governed once and published back into dbt, a set of small recurring chores stop happening — and one of them has been costing time every month without ever being on a roadmap.

## Governance

- [Six Refusals: What CoreModels Will Not Do to Your dbt Project](https://www.coremodels.io/connector/dbt/h3-governance): A dbt project is the most consequential text a data team owns. The definitions in it decide what gets built, what gets tested, and what every downstream consumer believes. CoreModels asks to publish into that text — governed descriptions, types, vocabularies, and bound ontology terms, emitted as dbt model property files with enforced contracts. Anything asking for that position should be judged less by what it can do than by what it will not do.

## Ecosystem

- [dbt Owns the Transformation. Nobody Owns the Definition.](https://www.coremodels.io/connector/dbt/h4-ecosystem): Pick one column — `status` in your orders mart — and count the tools that hold an opinion about it. dbt tests it and, if the model is contracted, refuses to build when its type changes. A catalog lists it, draws its lineage, and lets someone attach a note. An observability tool watches its distribution and raises an alert when yesterday looks unlike last week. A semantic layer, in the BI sense of metrics and dimensions, exposes it as a dimension. Outside the warehouse, an API team ships a field meant to mean the same thing, and a streaming team keeps an enum on a topic meant to mean it again.

## Agents

- [The Fourth Option for a Column Named status](https://www.coremodels.io/connector/dbt/h5-agents): This is no longer a hypothetical audience. dbt Labs' [2026 State of Analytics Engineering](https://www.getdbt.com/resources/state-of-analytics-engineering-2026) (n=363) reports **72% of teams prioritizing AI-assisted coding** and **71% concerned about incorrect data reaching stakeholders** — the same teams, describing both halves of the problem below.

## Quickstart

- [Manifest In, Contracts Out: A dbt Round Trip in Five Steps](https://www.coremodels.io/connector/dbt/t1-quickstart): Most integrations treat dbt as somewhere to read from. This one also publishes back: governed meaning leaves CoreModels as dbt model property files with enforced contracts, one file per model, colocated beside that model's own `.sql`. This walkthrough runs the whole loop — artifacts out of dbt, meaning governed on top of them, contracts back into the repo, `dbt build` green. Nothing here needs a warehouse credential or a dbt platform connection: artifacts in, artifacts out. CoreModels never writes to your repo and never opens a pull request. Generate returns files; your own PR flow lands them.

## API

- [Four Verbs and a Fan-Out: The dbt Integration over HTTP](https://www.coremodels.io/connector/dbt/t2-api): The dbt connector declares Import, Audit, and Generate, and four routes carry the loop that matters: push artifacts in, check them against governed meaning, publish contracts back out, and ask what the last import knew. This is the route-by-route reference — role gating, request bodies field by field, exact response shapes. Throughout, `https://coremodels.example.com` stands in for your deployment, `$TOKEN` for your bearer token, and `$PROJECT_ID` for the 32-character hex id of the governing project. The vendor key is `dbt`. One property runs through all four: no credentials — artifacts in, artifacts out. CoreModels never connects to your warehouse, never runs dbt, never reads a dbt platform API, and never writes into your repository; Generate hands back files, and your own PR flow lands them.

## MCP

- [Four Tools and a Ledger: dbt Contracts from an Agent's Seat](https://www.coremodels.io/connector/dbt/t3-mcp): "Generate the contracts for `stg_orders` and `stg_customers`, and tell me if anything won't apply cleanly." That sentence is an afternoon of dbt property-file maintenance, and an agent connected to CoreModels over MCP can answer it with real tool calls instead of plausible-looking YAML. Four vendor integration tools give the agent the same governance surface a human gets over HTTP: the same role checks, the same read-only guarantees, and the same honest ledger of what could not be represented.

## Automation

- [Two Loops and an Empty Diff: dbt Contract Automation in CI](https://www.coremodels.io/connector/dbt/t4-automation): Try this on a branch first, because it reframes what the gate is for. Take a model with an `accepted_values` test, delete the test, and open a pull request.

## Deep dive

- [Every Line Has a Source: Inside the dbt Contract Generator](https://www.coremodels.io/connector/dbt/t5-deep-dive): CoreModels publishes governed meaning *into* a dbt project. You call Generate and get back dbt model property files with enforced contracts — one per model, colocated with the model's own `.sql` — which your own pull request flow lands in the repo. CoreModels never writes to your repo, never opens the PR, never runs dbt, and never connects to a warehouse; it returns files. Which means the files have to be checkable. Every line the generator emits traces back to a fact recorded in the governed model, and where a fact is missing it omits the line and says why rather than guessing. This is the mechanism in the order it runs, so an engineer reading the output can verify it against the rules instead of trusting it.

## Use case

- [The Rename You Didn't Make](https://www.coremodels.io/connector/dbt/h6-change-impact): There is a column in your project called `status`, and you have wanted to rename it for about eight months. It should be `order_status` — everyone agrees. You have not done it.
- [Ask in #analytics and See Who Replies](https://www.coremodels.io/connector/dbt/h7-ownership): Somebody wants to add a value to a status column. They are not being careless — they have checked that the value is real, and they have found the model. What they cannot find is the person who gets to say yes.
- [The Consumers dbt Can't See](https://www.coremodels.io/connector/dbt/h8-contract-of-record): Your mart has a contract. It is enforced, it is checked on every build, and it is genuinely good.
- [Every Check You Run Compares the PR to the Last Commit](https://www.coremodels.io/connector/dbt/h9-ci-gate): Here is a two-minute experiment worth doing on a branch before you read further.

## Guide

- [Grounding an Agent in Your dbt Project: What It Reads, and What Changes](https://www.coremodels.io/connector/dbt/t6-agent-grounding): An agent pointed at your warehouse can already write SQL. The question is what it knows about the columns it writes against, and the honest answer is: the names, the types, and whatever free text happens to be in a description. Everything else it infers.
- [Finding the `accepted_values` List That Drifted](https://www.coremodels.io/connector/dbt/t7-vocabularies): Two files in your project test the same column against different value lists. Both tests pass, so nothing has ever told you. This guide finds them, and turns the list into something that can only be defined once.
- [Building an Ownership Register That Survives Contact With a Real Team](https://www.coremodels.io/connector/dbt/t8-ownership): Ownership registers fail in a predictable way: someone fills a spreadsheet in a week of good intentions, three people leave over the next year, and the file becomes an archaeological record of who used to work here. This guide builds one that does not do that.

## Article

- [Seven Problems, One Cause](https://www.coremodels.io/connector/dbt/00-start-here): If you run dbt at scale, you have probably hit several of these. They arrive as unrelated annoyances, get filed under different headings, and get fixed — when they get fixed — by different people using different tools.

## Sitemap

- [Sitemap in markdown](https://www.coremodels.io/sitemap.md)
