Introduction
We built Coalesce to be the most efficient way for enterprises to build, govern, and observe data with best practices built in by default. When we first introduced the platform in 2022, code was expensive and time-consuming.
Since then, nearly everyone has adopted AI for writing code. Code is no longer the bottleneck it used to be, and data teams can build pipelines faster, with fewer people and less human review. But delivering reliable data pipelines at scale still requires human judgment. Agreeing on modeling standards, designing the architecture, deciding what governance applies, and knowing whether the numbers are actually right are still hard problems to solve. The 2026 State of Data Engineering Survey highlights this: 82% of practitioners say AI helps most with writing code, while only 13% say it helps with data modeling and 11% with governance and quality checks.
Anthropic recently shared how they’re seeing this play out in their AI-Native SDLC playbook, as companies transform their development lifecycle and compress the time spent on coding.
With agentic coding compressing the build cycle, the emphasis shifts to where human judgment still matters most: planning, design, and maintenance. Source: Anthropic
First, we believe a platform should serve the full development lifecycle, both the ~80% of code a data engineer generates quickly with Claude Code, Cortex, or similar tools, and the 20% that still needs a human to review, debug, and iterate on.
Second, in an agentic world, governance is more important than ever. As more pipelines are written entirely by agents without human review, guardrails and standards should be baked into the development workflow.
Finally, transformation, cataloging, and quality tooling should share a context layer so they're managed and deployed together, not as separate parts.
What you’ll see is that this workflow doesn’t look like “build the pipeline, merge, and you’re done.” Instead, it’s a series of iterative steps where AI writes code, but specs and reviews are done carefully, with context and business understanding in mind. The tools’ main job is to get out of the way and be helpful.
The future data development lifecycle in Coalesce
For most data teams, even if the build phase has been shortened, the data development lifecycle hasn’t changed significantly. Typically, a requirement lands in a document or a Slack thread, a data engineer builds it, sped up by agentic coding tools, a review is added, the code is merged, and in some cases, monitoring and context are added manually in the quality tool and catalog.
The best data teams are already adopting a different approach, and we expect most to catch up soon.
Instead of the sequenced approach, the agent takes on larger parts of the data development loop. Humans focus more on questions that still need a human answer, such as the nuances of a specific business problem, what the company-wide governance and quality policies should be, whether the numbers are intuitively right, and which data challenges matter most to the business.
This changes the role the humans play. ~80% of the build and governance work happens automatically based on standards the team set up centrally. The other 20% that’s specific to the spec is where the data engineer’s attention goes.
A typical workflow could look like this. The operations team needs a new data model around trip distance for their pricing work. The operations lead and the data engineer set up a call. The initial spec is mostly drafted from the call transcript, with the data engineer only needing to confirm the data's purpose and which metrics should be available. The model includes standards such as PII tagging, data quality checks and monitors, and automatically added descriptions. Once the engineer has sign-off from operations on the spec, it’s pushed to production, and the data product is available for everyone to find, with monitoring already in place. This is the example we follow through the rest of the guide.
This only works if transform, catalog, and quality tools share the same context layer. If a production incident never makes it back to the definitions the agent builds from, the next update may repeat the same mistake.
Over the last year, we've rebuilt the Coalesce platform around these ideas. This guide covers a set of real-world examples of what this looks like.
Before you start
To follow along in your own environment, you need a Snowflake account, a Coalesce workspace connected to GitHub, and a few command-line tools. If you already have these, skip to Define, step 0. Otherwise, the setup below takes about 45 minutes, and every step has commands you can copy and paste.
Set up Snowflake, Coalesce and Claude Code
What you need
- A Mac with Homebrew installed. The commands are for macOS and the zsh shell.
- A personal email address with no existing Snowflake account.
- A GitHub account.
Values to replace
The commands use these placeholders. Write your own values down as you go, since later steps reuse them.
| Placeholder | What it is | Example | Where you get it |
|---|---|---|---|
<SNOWFLAKE_USER> |
Your Snowflake username | janedoe |
Step 1 |
<ACCOUNT> |
Your Snowflake account identifier, in the form orgname-accountname | abcdefg-xy12345 |
Step 1 |
<GITHUB_USER> |
Your GitHub username | janedoe-gh |
Step 5 |
All trial resources go into new objects, so nothing here touches an existing environment.
Step 1: Create a Snowflake trial
- Go to signup.snowflake.com and sign up with your personal email.
- Choose these options: Edition: Enterprise, Cloud: AWS, Region: US East (Ohio) or US West (Oregon).
- Activate the account from the email, set a username and password, and log in to Snowsight.
- Find your two values: click your name in the bottom left, then your account. The menu shows your organization name above your account name.
<SNOWFLAKE_USER>is your username, for example janedoe.<ACCOUNT>is the organization name, a dash, and the account name, all lowercase, for example abcdefg-xy12345.
Use the orgname-accountname format everywhere in this guide. The short account locator alone (xy12345) only works for accounts in US West (Oregon).
Step 2: Create a Coalesce trial
- In Snowsight, go to Data Products > Partner Connect and search for Coalesce. If Coalesce isn’t there, search for it under Data Products > Marketplace instead.
- Click Connect and keep the defaults. Partner Connect creates a database (PC_COALESCE_DB), a warehouse, and a role for Coalesce.
- Click Activate, set your Coalesce password, and click Start Free Trial.
If activation shows “Something went wrong, please try again later”, your account has usually been created anyway. Click Log in, choose Forgot password, and set your password from the reset email.
You should land on a project called Default Project. Leave it for now; you’ll connect it to GitHub in Step 6.
Step 3: Create a role for the course
The course creates its own database, so it needs a role with permission to do that. In Snowsight, open a new SQL worksheet (Projects > Worksheets > +).
First, check your warehouses:
SHOW WAREHOUSES;
You should see COMPUTE_WH and the Partner Connect warehouse. The course uses COMPUTE_WH.
Then run the following, replacing <SNOWFLAKE_USER> in three places. Run all lines with Cmd+Shift+Enter, not just the line your cursor is on.
USE ROLE ACCOUNTADMIN; CREATE ROLE IF NOT EXISTS TAXI_COURSE; GRANT CREATE DATABASE ON ACCOUNT TO ROLE TAXI_COURSE; GRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE TAXI_COURSE; GRANT ROLE TAXI_COURSE TO USER <SNOWFLAKE_USER>; ALTER USER <SNOWFLAKE_USER> SET DEFAULT_ROLE = TAXI_COURSE; ALTER USER <SNOWFLAKE_USER> SET DEFAULT_WAREHOUSE = COMPUTE_WH;
Step 4: Set up key pair authentication
Both command-line tools sign in to Snowflake with a key pair instead of a password. In Terminal, create the keys:
mkdir -p ~/.snowflake/keys && cd ~/.snowflake/keys openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub chmod 600 rsa_key.p8
Copy the public key to your clipboard as one line, without the header lines:
grep -v "PUBLIC KEY" ~/.snowflake/keys/rsa_key.pub | tr -d '\n' | pbcopy
In the Snowsight worksheet, paste it between quotes and run all three lines. Note the space between the username and SET.
USE ROLE ACCOUNTADMIN; ALTER USER <SNOWFLAKE_USER> SET RSA_PUBLIC_KEY='<paste here>'; DESC USER <SNOWFLAKE_USER>;
In the DESC USER result, RSA_PUBLIC_KEY_FP should start with SHA256:.
The public key is safe to paste into Snowflake. Never paste the private key (rsa_key.p8) into a chat, a document or a screenshot.
Step 5: Create the GitHub repo and a token
Install the GitHub CLI and sign in. This lets git use your GitHub login, so you never paste a password where Git expects a token.
brew install gh gh auth login
Answer: GitHub.com, HTTPS, Y to authenticate Git, log in with a web browser. Paste the one-time code in the browser when asked.
Create a private repo with a README and clone it to your home folder. The README matters: Coalesce can’t branch from an empty repo.
cd ~ gh repo create taxi-course --private --add-readme --clone cd ~/taxi-course && git log --oneline
Then create a token for Coalesce. Use a classic token; a fine-grained token failed in testing.
- Go to github.com/settings/tokens/new.
- Note: coalesce. Expiration: 30 days.
- Tick only the top-level repo scope.
- Click Generate token and copy it. GitHub shows it only once.
Paste the token straight into Coalesce in the next step. Don’t click the eye icon to reveal it on screen, and don’t share it in screenshots.
Step 6: Connect Coalesce to GitHub and create the workspace
6a. Set up version control. On Default Project, click set up version control in the yellow banner.
- Repository URL:
https://github.com/<GITHUB_USER>/taxi-course.git - Add Version Control Account: Account Nickname GitHub, Username
<GITHUB_USER>, Token the classic token from Step 5, and Name and Email how you want your commits labeled.
Create only one version control account. If you end up with two, delete one under your user settings, since the project may pick the wrong one.
6b. Create the workspace. Click Create Workspace and name it taxi-course. Then fill in the remaining wizard steps:
| Wizard step | What to enter |
|---|---|
| Snowflake Account URL | <ACCOUNT> between https:// and .snowflakecomputing.com. Leave Snowflake OAuth disabled. |
| Snowflake credentials | Username <SNOWFLAKE_USER> (Check your browser didn’t autofill another name), your Snowflake password, role TAXI_COURSE, warehouse COMPUTE_WH. Click Test Connection before Next. |
| Version control | Click Fetch, pick branch main and its latest commit. |
| Storage locations | Delete SRC with its trash icon. Map TARGET to database PC_COALESCE_DB, schema PUBLIC. Set TARGET as the default. |
Two storage locations can’t point to the same schema, which is why SRC goes. The course creates its own locations later.
6c. Commit and push.
- In the workspace, check the bottom left. It should show a branch name, not “No current git branch”. If it doesn’t, click branch in the yellow banner, click Fetch, and attach main.
- Click the Git icon in the bottom left, commit with the message Initial commit, and push.
- Note the branch name shown in the bottom left. You need it in Step 7.
Step 7: Pull the Coalesce files
Replace main if Coalesce showed a different branch in Step 6c.
cd ~/taxi-course git fetch git checkout main git pull ls -la
You should see data.yml, locations.yml and a nodeTypes folder next to the README. If you only see the README, Coalesce hasn’t pushed yet: go back to Step 6c.
Step 8: Install the Snowflake CLI
brew install pipx && pipx ensurepath pipx install snowflake-cli --backend pip snow --version
Add the connection in one command. Use the full path to the key; the CLI doesn’t understand ~. $HOME below fills it in for you.
snow connection add \ --connection-name taxi \ --account <ACCOUNT> \ --user <SNOWFLAKE_USER> \ --role TAXI_COURSE \ --warehouse COMPUTE_WH \ --authenticator SNOWFLAKE_JWT \ --private-key-file "$HOME/.snowflake/keys/rsa_key.p8" \ --default \ --no-interactive
Test it:
snow sql -c taxi -q "SELECT CURRENT_USER(), CURRENT_ROLE(), CURRENT_WAREHOUSE();"
The result should show your user name, TAXI_COURSE and COMPUTE_WH.
Step 9: Install the Coalesce CLI
The Coalesce CLI (coa) supports Node 20. Install it and put it first on your path:
brew install node@20 echo 'export PATH="/opt/homebrew/opt/node@20/bin:$PATH"' >> ~/.zshrc source ~/.zshrc node --version
node --version should print v20.x. If it still shows another version, open a new Terminal window and check again.
npm install -g @coalescesoftware/coa coa --version
You need version 7.35 or later. A warning that the AWS SDK will require Node 22 is safe to ignore.
Create a profile. coa asks for your details, tests the connection, and saves only if the test passes.
coa profile create taxi --platformKind Snowflake --snowflakeAuthType KeyPair
| Prompt | Answer |
|---|---|
| Snowflake account | <ACCOUNT> |
| Username | <SNOWFLAKE_USER> |
| Private key | Full path, for example /Users/janedoe/.snowflake/keys/rsa_key.p8 |
| Passphrase | Leave empty |
| Role | TAXI_COURSE, or leave empty to use your default role |
| Warehouse | COMPUTE_WH |
Bind the repo to the profile and check everything:
cd ~/taxi-course coa profile use taxi coa profile list coa doctor --fix
Under Project, coa doctor should show green checks for .gitignore, data.yml, locations.yml, and workspace.yml. Under Connection, the account and warehouse should both pass. You can ignore the Cloud warnings about domain, token, and environmentID: the course only runs local commands.
--fix adds workspace.yml to .gitignore. Commit that change:
git add .gitignore git commit -m "Ignore workspace.yml" git push
Step 10: Final check and start Claude Code
Run this block. Every line should succeed.
cd ~/taxi-course snow sql -c taxi -q "SELECT CURRENT_USER(), CURRENT_ROLE();" coa --version coa doctor git status
git status should say nothing to commit, working tree clean.
Install Claude Code if you don’t have it, then start it from inside the repo:
npm install -g @anthropic-ai/claude-code cd ~/taxi-course claude
Always start Claude Code from ~/taxi-course, since the setup prompt scans that folder. Paste the setup prompt from Define, step 0. When it asks, answer:
| Question | Answer |
|---|---|
| Snowflake connection | taxi |
| coa profile | taxi |
| Warehouse | COMPUTE_WH |
Step 11 (optional): Connect the Coalesce MCPs
The course works without them. With them, your agent can look up tables and owners in Catalog, check environments and runs in Transform, and read and triage issues in Quality, as in the Define, Govern, and Observe lessons. The commands below are for Claude Code; each product’s docs also cover Claude Desktop, Cursor, VS Code, and other clients. Run them in Terminal, then restart Claude Code.
Transform. Needs your Coalesce app host (the host you sign in to) and your access token from the Deploy tab, or the token= value in ~/.coa/config. Keep the token out of chats and screenshots. See Transform MCP.
claude mcp add --transport http coalesce-transform "https://<APP_HOST>/api/v1/mcp" --header "Authorization: Bearer <COALESCE_TOKEN>"
Catalog. Needs a Coalesce Catalog account. Use the URL for your Catalog region; the first connection opens a browser to sign in. If it doesn’t, run /mcp inside Claude Code. See Catalog MCP.
# US region claude mcp add --transport http coalesce-catalog https://api.us.castordoc.com/mcp/server # EU region claude mcp add --transport http coalesce-catalog https://api.castordoc.com/mcp/server
Quality. Needs a Coalesce Quality workspace. The first connection opens a browser to sign in and choose a permission level. Read-only access covers most of the course; grant Write access if you want the agent to update issues and incidents in the Observe lesson. See Quality MCP.
# US region claude mcp add synq --transport http https://mcp.us.synq.io/mcp # EU region claude mcp add synq --transport http https://mcp.synq.io/mcp # AU region claude mcp add synq --transport http https://mcp.au.synq.io/mcp
Check which servers are connected:
claude mcp list
Troubleshooting
Every error below came up during testing.
| Where | Error | Fix |
|---|---|---|
| Coalesce activation | Something went wrong, please try again later | The account exists. Click Log in, then Forgot password. |
| Snowsight | ALTER USER fails | Check there is a space between the user name and SET, and run all lines. |
| Coalesce workspace | Snowflake user authentication unsuccessful: Request to Snowflake failed | Use <ACCOUNT> (orgname-accountname) as the account URL, not the short locator. Check the browser didn’t autofill another user name. |
| Coalesce workspace | Fetching Unsuccessful: Please review your credentials | Make sure the repo has a README commit. Use a classic token with the repo scope. Delete duplicate version control accounts. |
| Coalesce workspace | Duplicate Mapping | Delete SRC. Only one location can point to PC_COALESCE_DB.PUBLIC. |
| Coalesce workspace | No current git branch | Click branch in the yellow banner, Fetch, attach main. |
| git push | Password authentication is not supported | Run gh auth login (Step 5), then push again. |
| pipx install | pipx needs uv>=0.9.17 | Add --backend pip to the install command. |
| snow connection add | Path ~/.snowflake/keys/rsa_key.p8 does not exist | Use the full path or $HOME, as in Step 8. |
| coa doctor | data.yml not found, locations.yml not found | Commit and push in Coalesce (Step 6c), then git pull (Step 7). |
| coa | NodeVersionSupportWarning about Node 22 | Safe to ignore for now. |
Define
What you end up with: a spec in Git, signed off by the stakeholder, that the agent builds from.
Most work starts with requirements. The product team may have shipped a new feature and needs to set up tracking for product adoption, or the marketing team may want to measure attribution using a new media source.
Historically, this context was captured sporadically in meeting notes and back-and-forth threads, and rarely kept in one place.
| Traditional workflow | Agentic workflow |
|---|---|
| Requirements arrive in a document or ticket, get rewritten by an analyst, then again by a data engineer. Definitions live in people's heads and slide decks | Business context is captured once and turned into a spec next to the metric definitions and company-wide policies. ~80% is automated and the human is left to make a few judgment calls based on the specific business requirements |
In this section, you turn a request into a spec. This includes a markdown file in Git that holds the business questions, the data sources and metrics to build from, and the governance and quality expectations. The agent builds from this file in the Build section, and it’s the record you go back to when someone asks why a number looks the way it does.
Each part of the spec comes from a different place. The intent comes from the stakeholder, the sources and metrics from the catalog, and the quality and modeling rules from skills your team has set up (more on these in Govern). If anything is still unclear, ask a question about that section, and the spec is done when each section is signed off by its owner.
From request to signed-off spec. The steps below follow the same order.
Throughout this section we use a dataset of New York yellow cab trips as the example. The request we work through is from the operations team, who want a new data model around trip distance to use in a pricing model.
0. Set up your environment
New to Snowflake or Coalesce? Follow the Snowflake and Coalesce setup guide in the Introduction first. It takes about 45 minutes and gets you a Snowflake trial, a Coalesce workspace connected to GitHub, and the command-line tools this step needs.
To follow along, you need the taxi data in your own Snowflake, built the way your team builds things. Your agent does this for you. It scans your existing Coalesce workspace to work out your model pattern and storage locations, loads the NYC yellow cab data into a new sandbox database, and builds it in your pattern. It also writes the call transcript and spec template used in step 1.
You need a Snowflake login with a role that can create a database, a Snowflake client already set up (the Snowflake CLI or the Python connector), the coa CLI with coa doctor passing, an agent that can run commands on your machine (Claude Code, Codex, Cursor), and your Coalesce workspace cloned locally if you have one. Open the agent in that workspace, or in an empty folder if you have none, and paste the prompt below. It works on its own branch and a new sandbox database, and it stops for your approval after the scan, after the plan, and before it creates anything. Setup takes about 20 minutes, mostly for the data download.
Set me up to follow the Agentic Data Development Lifecycle course with the NYC yellow cab dataset, built the way my team builds things. Work in four phases and stop where a phase says to. If something is unclear or fails, stop and ask me rather than guessing.
Ground rules for every phase
- Work on a new git branch named course/taxi-setup. Never commit to the default branch, and never merge this branch.
- Don't open credential files (*.p8, *.pem, tokens, .env, ~/.coa/config, ~/.snowflake). List coa profiles with `coa profile list` only. Never ask me to paste a password or key into the chat.
- Run SQL and file uploads through a Snowflake client I already have set up: the Snowflake CLI (`snow sql -c <connection>`) or the Python connector with a named connection. If neither is set up, tell me what to install and stop.
- Scope every `coa create` and `coa run` with --include to the setup subgraph, show me the --dry-run output first, and wait for my yes. Never run `coa deploy` or `coa refresh`.
- Use an existing warehouse I name, XS is enough. Don't create warehouses.
- Keep downloads outside this repo, in ~/.cache/nyc_tlc/.
Phase 1 - Scan my existing workspace (read-only, change nothing)
Scan the existing Coalesce workspace in this folder and determine:
- The model pattern: the layers data moves through from landing to consumption, what each layer is for, and the rules each layer follows (for example, whether a layer may filter, rename or aggregate)
- The storage locations: every location in locations.yml, which database and schema each maps to, and which layer each one serves
- Naming conventions: prefixes and suffixes on node names, and how source systems appear in names
- Node types and materializations used in each layer
- Source handling: how landing data arrives, and how deletes or history are handled and in which layer
- Rules checked in code: pattern docs, YAML declarations, checker scripts, hooks, CI steps
- Agent guidance and work tracking: CLAUDE.md, AGENTS.md, spec or ticket templates, backlogs, decision logs
Only report what the files show, and cite the file for every pattern. Write the result to .lifecycle/patterns.md, then list what you looked for and did not find. If there is no Coalesce workspace here, say so and propose the course default: BRONZE landing, SILVER staging, GOLD facts and dimensions.
Stop. Show me the summary and wait for me to confirm or correct it.
Phase 2 - Plan the taxi build in my pattern
Write the plan to .lifecycle/taxi_plan.md as a table: lesson name, name in my convention, layer, storage location, node type, and whether it is trusted or deprecated. Cover:
- Landing tables for trips (the lesson's CAB_TRIPS), taxi zones (LOCATION), vendor (VENDOR), payment type (PAYMENT_TYPE) and rate code (RATE_CODE)
- Every layer my pattern puts between landing and consumption
- A trusted staging table and a trusted trip fact (the lesson's STG_YELLOW_CAB_TRIPS and FCT_YELLOW_CAB_TRIPS), named in my convention
- One deprecated look-alike of the fact with a slightly different trip-distance definition, so the lesson has a wrong table to reject
- A setup subgraph named TAXI_SETUP that holds every node above
- The sandbox database NY_TAXI_<my Snowflake user name>, with new storage locations that mirror mine. It must not exist yet. Record it in taxi_plan.md as created by this setup; from then on, write only to databases recorded there.
- The column map, applied in the staging layer: tpep_pickup_datetime to PICKUP_DATETIME, tpep_dropoff_datetime to DROPOFF_DATETIME, VendorID to VENDOR_ID, RatecodeID to RATE_CODE_ID, PULocationID to PU_LOCATION_ID, DOLocationID to DO_LOCATION_ID; keep TRIP_DISTANCE
- Owner, tier and domain for the trusted tables: ask me, or use the course's (owners Doug Barrett and Data Engineering, Tier 1, domain taxi)
Ask me which Snowflake connection, coa profile and warehouse to use.
Stop. Wait for me to approve the plan.
Phase 3 - Load and build
- Data: the Yellow Taxi parquet files for January, February and March 2025, and the Taxi Zone Lookup CSV, from the NYC TLC Trip Record Data page (https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page). Take the links from the page. If the page returns 403, retry once with a browser User-Agent header; if it still fails, stop and ask me for the links. Don't construct URLs.
- Create the sandbox database and an internal stage in it, and upload the files there.
- Landing tables: create them from INFER_SCHEMA(..., IGNORE_CASE => TRUE) and load with COPY INTO ... MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE. For the zone CSV, use a file format with PARSE_HEADER = TRUE.
- Seed vendor, payment type and rate code from the TLC "Data Dictionary - Yellow Taxi Trip Records" PDF, linked from the same page (same 403 rule). Cite it in a comment. Don't write the codes from memory.
- Build the layers from the plan as Coalesce nodes in the new storage locations, all in the TAXI_SETUP subgraph. With no workspace, write plain SQL files under .lifecycle/sql/ instead. Add Source nodes with `coa sources add --location <new landing location> --include <table>`, dry-run first.
- Put owner, tier and domain in each trusted node's description so the DDL writes them as the table comment. Mark the look-alike as deprecated the same way.
- Run `coa validate`. Then, after I approve the dry-run, run `coa create` and `coa run` with --include '{ subgraph: "TAXI_SETUP" }'. The trusted tables must contain data when you finish.
- Renaming columns is not cleaning. Don't filter or fix any values.
- Measure and write .lifecycle/load_report.md: trips per file month, pickups dated outside their file's month, trips with TRIP_DISTANCE <= 0, trips with pickup after drop-off, trips over 100 miles, and NULL counts for vendor, payment type and rate code. Include the SQL behind every number.
- Make every step safe to re-run without duplicating rows.
Phase 4 - Prepare the lesson
- Write a short scoping-call transcript, labeled as synthetic at the top, to calls/taxi-ops-scoping.txt: an operations lead asking for a trip-distance model to use in pricing. Include the business questions, that no passenger or driver details are needed, the two quality rules (no zero or negative distances, no pickup after drop-off), and an open question about trips over 100 miles.
- Create specs/template.md. Use my team's template if Phase 1 found one; otherwise use these sections: Description, Business questions, Data sources, Model, Metrics, Governance, Quality expectations, Open questions. Every section gets an Owner: line and a Signed off: line, and every metric gets Answers: (which question) and Source: (TABLE.COLUMN).
- Commit everything except the downloads to course/taxi-setup.
- Finish with a table: what you found, what you created (with the row counts you measured), and anything you could not do and why. Then tell me I'm ready for step 1.
You’re set up when:
.lifecycle/patterns.mdnames your layers and storage locations, with a file cited for each.lifecycle/taxi_plan.mdmaps each lesson table to its name in your convention; later steps read it- The build plan uses your naming, or bronze, silver, and gold if you have no workspace
.lifecycle/load_report.mdshows real row counts per month, and non-zero counts of trips with a zero or negative distance or a pickup after drop-off- The trusted tables contain data, and everything is committed to the
course/taxi-setupbranch
1. Capture the intent
Use cases are captured as intent around what the stakeholder wants to know, why they want to know it, and any constraints. In our experience, a call with stakeholders that clearly defines the requirement's scope and goal is a good way to do this. Transcribe the call so you can turn it into a first draft without anyone retyping notes.
After the call, give the transcript to your agent together with your team’s template, and ask it to fill in the template using only what was said on the call. Put anything the call was unclear on under open questions to avoid making assumptions that weren’t agreed upon.
Read the transcript in calls/taxi-ops-scoping.txt and draft an intent using specs/template.md. Only include what was said on the call, and list anything unclear under open questions. Don’t suggest tables or columns yet. Save it as specs/cab_trips.md.
In your environment, this prompt works as-is: step 0 created the transcript and the template.
A snapshot of a well-scoped intent could look like this:
# Description Trip distance data model for the operations team’s pricing work. Status: draft. Author: Ovi Bodnar. Requester: Operations lead ## Business questions to answer What is the average trip distance per month, and how is it trending? How does it differ by vendor, pickup zone, payment type and rate code? ## Governance considerations The output feeds a pricing model, so definitions should match the verified tables already in use No passenger or driver details are needed ## Quality expectations A trip distance can’t be zero or negative A trip can’t have a pickup time after its drop-off time ## Open questions Should very long trips (over 100 miles) count, or are they data errors?
2. Select data sources and metrics
If you’re a one-person data team or just getting started, you likely have very clear definitions and boundaries in your data stack. You likely have fewer than a hundred key tables, no redundancy, and no metrics that mean almost the same thing.
But at a scaleup or a mature enterprise, it’s rarely that simple. There are 10 definitions of the orders table, and the amount column is defined in at least as many ways. Your job is to build on the right one, and not add another model if a suitable one already exists.
The catalog gives you the context to make that call, such as popularity (user and query count), ownership, most common users, and where else an asset is used. Unless your metadata is perfect, you’ll still want a human to sanity-check the choice.
In the example below, STG_YELLOW_CAB_TRIPS looks like a good candidate. It has named owners, about 1,000 read queries, and is used in the NY Taxi Overview dashboards. The banner at the top shows that some of its data quality checks are failing.
STG_YELLOW_CAB_TRIPS in Coalesce Catalog, showing owners, popularity, domain, the tables it’s most often joined with, and the dashboards that use it.
With the Catalog MCP, your agent can do this research for you. A typical session looks like this:
- You ask about the metric you want to build
- The agent searches the catalog for tables and columns that already cover it
- It checks popularity, ownership, freshness, tags, and quality checks on the top candidates
- It recommends a table and lists the ones to avoid and why
The prompt can be as simple as:
I want to calculate the average trip distance as a new key metric. Are there tables you’d recommend me using based on what you know from the NY_TAXI dataset?
In your environment:
I want to calculate the average trip distance as a new key metric. Recommend the table to build on, from the sandbox database recorded in .lifecycle/taxi_plan.md. - If the Catalog MCP is connected, use it: popularity, ownership, freshness, tags and quality checks. - If it isn't, use Snowflake metadata only: INFORMATION_SCHEMA, table comments and tags, and SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY if my role can read it. Say which source you used. Check owner, tier, domain and deprecation notes on each candidate. List the tables to avoid and why. If you used Snowflake metadata only, list what you could not check, such as popularity, dashboard usage and failing quality checks.
The setup in step 0 left owners, tiers, and a deprecated look-alike table for the agent to find. Without Catalog, it can use Snowflake’s own metadata, and it tells you what that can’t show.
This only works if the catalog captures the right context, such as asset popularity and usage, ownership, domain, tags, and quality checks. If that metadata is patchy, the recommendation will be too.
3. Add governance and quality considerations
If data is PII and needs masking, or you want data quality checks to run before changes merge into prod, it's better to know that up front so it isn't an afterthought.
The easiest approach is a combination of the two below, which we’ll go into more detail on in the Govern section.
- Specific quality and governance expectations for this dataset, captured in the spec. For example, trip distance can’t be zero or negative, and pickup has to be before drop-off
- Broader governance policies applied throughout, without you having to capture requirements each time. For example, sources should have volume and freshness monitors, and ownership should be tagged on Tier 1 assets
In our example, the first kind came out of the catalog research in step 2: TRIP_DISTANCE needs a check for zero, negative, and unusually large values, and trips where pickup is after drop-off have to be handled. The second kind stays out of the spec. If you keep writing the same expectation into every spec, it should be a policy instead.
Add governance and quality expectations to specs/cab_trips.md. 1. From the data: use the counts in .lifecycle/load_report.md (trips with TRIP_DISTANCE <= 0, pickup after drop-off, trips over 100 miles). Write each expectation so it names a column and a condition that could become a test. 2. From my patterns: read .lifecycle/patterns.md. If a rule is already enforced as standing policy (a checker, a hook, a layer rule), don't copy it into the spec. List it under "Covered by policy" with the file that enforces it. 3. Governance: tier, owners and domain from .lifecycle/taxi_plan.md, and confirm no passenger or driver details are used. Put anything unresolved under open questions with a named owner.
Keep the spec as a markdown file in the same Git repository as the pipeline, so changes are reviewed and versioned like code. Requirements often grow, and it can be hard to track what changed and when.
This is the kind of detail you’ll want when someone asks why a metric sent to the board changed three months ago.
4. Review the spec
The final spec is similar to a PRD that a product team may write for a feature. It includes context from the conversation with business stakeholders (~80%), plus the 20% we added by sitting down to understand the data sources, confirm we captured the questions correctly, and so on.
Ask the agent to combine the intent from step 1, the tables from step 2, and the expectations from step 3 into one file:
Turn specs/cab_trips.md into a full spec. Model it as a view on top of FCT_YELLOW_CAB_TRIPS that flags trips which fail a quality check, and reuse the existing location, vendor, payment type and rate code dimensions. Keep the same grain and TRIP_DISTANCE definition, add the quality expectations we found in the catalog, and keep anything you’re unsure about under open questions.
In your environment:
Turn specs/cab_trips.md into a full spec. Model it as a view on top of the trusted trip fact listed in .lifecycle/taxi_plan.md, never the deprecated one, that flags trips which fail a quality check. Reuse the existing location, vendor, payment type and rate code dimensions instead of building new ones. Name the view in my team's conventions and place it in my storage locations from .lifecycle/patterns.md. Keep the grain and TRIP_DISTANCE definition of the trusted fact. Keep the quality expectations already in the spec. Every metric must say which business question it answers and its source TABLE.COLUMN. Keep anything you're unsure about under open questions with a named owner.
For our example, the finished spec looks like this:
# Cab trips: trip distance model for pricing Status: in review. Author: Ovi Bodnar. Requester: Operations lead ## Purpose Give the operations team a trip-level data model around trip distance to use in their pricing model ## Data sources Built on: NY_TAXI.GOLD.FCT_YELLOW_CAB_TRIPS (trusted trip fact, same grain and TRIP_DISTANCE definition) Reused dimensions: GOLD.DIM_LOCATION, DIM_VENDOR, DIM_PAYMENT_TYPE, DIM_RATE_CODE ## Model View: GOLD.V_CAB_TRIP_DISTANCE, one row per trip, keyed on SOURCE_FILE + SOURCE_ROW_NUMBER Flags: IS_NON_POSITIVE_DISTANCE, IS_PICKUP_AFTER_DROPOFF, IS_OVER_100_MILES, IS_INCLUDED_IN_AVERAGES No trip data is copied; the flags are calculated from existing columns ## Metrics AVG_TRIP_DISTANCE: sum of V_CAB_TRIP_DISTANCE.TRIP_DISTANCE divided by TRIP_COUNT, in miles, FLOAT TRIP_COUNT: number of trips where IS_INCLUDED_IN_AVERAGES is true EXCLUDED_TRIP_COUNT: number of trips where IS_INCLUDED_IN_AVERAGES is false Reported by month (from pickup time), vendor, pickup zone, payment type and rate code ## Governance Tier 1. Owners: Doug Barrett and Data Engineering. Domain: taxi No passenger or driver details are used ## Quality expectations TRIP_DISTANCE is not null and greater than 0 Pickup time is before drop-off time Vendor, location, payment type and rate code keys are not null Trips that fail a check are kept and flagged, left out of the average and counted in EXCLUDED_TRIP_COUNT ## Open questions Upper limit for a valid trip distance. Proposed: 100 miles, flagged in IS_OVER_100_MILES but kept in averages until confirmed. To confirm: Doug Barrett
Before you sign off, check that:
- Every business question maps to at least one metric
- Every metric names its source table and column
- The grain and the dimensions are stated
- Quality expectations are specific enough to be turned into tests
- Open questions are answered or have a named owner
Check specs/cab_trips.md against the sign-off checklist: every business question maps to at least one metric; every metric names its source table and column; the grain and the dimensions are stated; every quality expectation names a column and a condition that could become a test; every open question is answered or has a named owner. List each item as PASS or FAIL with the line that decides it, and do not edit the spec.
A spec is written by more than one person, so review it section by section. Each section has one owner who signs it off:
| Owner | Sections | Why |
|---|---|---|
| Stakeholder (operations lead) | Purpose, metrics, and how critical the data is | They define the ask and the metrics in business terms |
| Data engineer | Data sources, model, quality expectations | These take technical judgment, such as which table to build on |
| Governance or data ops | Governance | They check that every section has an owner and a sign-off. They track the spec, they don't write it |
At this stage, call the stakeholder the requester rather than the metric owner. Ownership follows once they've written the definition, and asking for it up front tends to put people off.
Then send each section to its owner. The stakeholder should be able to read and confirm theirs without knowing SQL. Once every section is signed off, commit it. The committed spec is what the agent builds from in the next section.
Try yourself
You can write specs yourself without any tools, but that means you won’t have access to the metadata we discussed above. To follow the steps in this section, you need access to Coalesce Catalog, the Catalog MCP connected to your agent, and a Git repository to keep your specs in.
- Run the step 0 prompt to set up the taxi data in your own environment, following your team’s patterns. No Catalog yet? Use the Snowflake-only path in step 2
- Book a demo to see it in action if you don’t have Coalesce Catalog yet
- Generate a read-only API token in Catalog under Settings > API, and connect the Catalog MCP to your agent by following the MCP Integration guide
- Copy the intent and spec examples above into a specs folder in your repository and use them as templates
- Pick one upcoming request and run steps 1 to 4 on it. Note where the agent’s table recommendation differs from what you would have picked, as that often points to missing metadata in the catalog
- Watch the spec-to-pipeline demo (30 minutes) to see how the spec is used in the Build section
Build
What you end up with: a pipeline built from the spec, reviewed and merged through a PR.
Our philosophy is that you’ll want to do ~80% of development using agentic tools like Claude Code or Cortex. You'll often want to review and edit the last 20% yourself, such as a column that needs changing or a data quality test that needs fine-tuning.
If you’ve done the spec step well, the build phase is fast. Code can be written quickly, and standards such as node types and the rules captured in skills (e.g. there should be a staging node after a source before a fact or dimension) mean the pipeline is built the way your team builds pipelines.
This shifts what you spend time on in the build phase. It’s now more about ensuring the definitions are scoped and thought through, and verifying and fine-tuning the result with your knowledge of the data.
| Traditional workflow | Agentic workflow |
|---|---|
| An engineer writes the SQL, sped up by AI coding tools. Standards are enforced through PRs, or not at all | An agent generates the models from the spec, and standards such as naming conventions and data modeling architecture are automatically enforced |
In this section we take cab_trips.md, the spec from the previous section, and build the pipeline from it: a fact on cab trips and dimensions for location, vendor, payment type and rate code.
1. Set up local development
There are four key components to the local development workflow:
- Coalesce CLI (coa) – authors, validates, and runs pipelines locally out of your Git repository. It gives your agent a deterministic execution engine to test DDL and DML directly against your data warehouse without routing code through the cloud.
- Coalesce MCP – connects your local agent to your Coalesce workspace, giving it read and administrative access to inspect run histories, monitor job status, add tests, and query deployed environments.
- Coalesce platform skills – a pre-packaged collection of skills available as a Claude Code plugin that teaches your local AI agent best practices for developing and governing data pipelines.
- Coalesce Desktop – a visual interface reading directly from your local workspace files with real-time, bidirectional sync. Developers run their agent in the terminal on one side of the screen and watch live lineage and node updates render visually on the other.
With this, you can write code with agentic tools like Claude Code, Cortex and Cursor, while still enforcing standards such as naming conventions, node types, and SQL templates.
Check my local Coalesce development setup and tell me what's missing. Don't change credentials; ask me when something needs them. 1. Coalesce CLI: run `coa --version`. If it's missing, install it by following the Coalesce Local Development Setup Guide (it's the npm package @coalescesoftware/coa). Then run `coa doctor` in this workspace and report each check. Don't use `coa doctor --fix`; tell me what it would change instead. 2. Platform skills: check whether the Coalesce platform skills are available to you. If they're not, tell me how to add coalesce-platform-skills to my agent, as a plugin or as plain files. 3. Coalesce MCP: check whether it's connected, and list the workspaces it can see. 4. Coalesce Desktop: ask me whether it's installed and pointed at this folder. Finish with a table: component, status, what I need to do.
2. Set your standards
A challenge with having many people use agents to write code is that you end up without a single standard. Coalesce has ways to avoid this built in. For example, Coalesce uses node types under the hood (e.g. dimension, fact) that enforce standards.
- Naming standard. Every dimension gets the DIM_ prefix, here DIM_REGION.
- Model standard. The node type generates a surrogate key, DIM_REGION_KEY.
- System columns. Every dimension gets a version, current flag, start and end date, and create and update timestamps.
- Storage location. The node is written to the PRESENT storage location, and the same node deploys to each environment’s database.
There are node types for stages, dimensions, facts, views and semantic views, and packages let you add any DDL pattern you want to standardize on, for both Snowflake and Databricks. If your team has a pattern, it can be a node type.
Node types are just one type of standard. You can add custom standards specific to your company or industry and package them as skills.
Read .lifecycle/patterns.md and the node types available in this workspace (nodeTypes/ and the installed packages under .coa/cache/packages/). Then: 1. Map each layer in my model pattern to the node type it uses and the storage location it writes to. Flag any layer with no matching node type. 2. List the standards the node types already enforce (naming prefixes, surrogate keys, system columns, storage locations). 3. List my team's rules that no node type enforces, such as which layers must sit between a source and a fact or dimension, naming rules, or how deletes are handled. 4. Draft those rules as a skill at .claude/skills/modeling-standards/SKILL.md, citing the file each rule came from. Show me the draft before you save it.
3. Build from the spec
With the requirements captured, the context from the catalog, and the standards in place, both the out-of-the-box ones encoded as skills in Coalesce and our own, we can trust the system to build the pipeline the way we want it.
Then we simply ask:
Create a pipeline from the spec cab_trips.md
The agent builds V_CAB_TRIP_DISTANCE from cab_trips.md: a view on top of the trusted FCT_YELLOW_CAB_TRIPS, with a flag column for each quality expectation.
The agent reads the spec and builds one view, V_CAB_TRIP_DISTANCE in GOLD, on top of the trusted FCT_YELLOW_CAB_TRIPS. The four dimensions already exist, so it reuses them instead of building copies, and it adds a flag column for each quality expectation in the spec.
Nothing in our prompt said which tables to build on or which node type to use. The spec names the trusted fact, and because the flags are calculated from existing columns, a view avoids copying trip data. The node type takes care of naming and placement. The same holds for thousands of nodes, since they’re all built from the same building blocks.
In your environment:
Create a pipeline from the spec specs/cab_trips.md, on a new branch made from course/taxi-setup.
- Follow my model pattern, naming and storage locations from .lifecycle/patterns.md, and the rules in .claude/skills/modeling-standards/SKILL.md.
- Use the node types my workspace already has. Don't create new node types.
- Build on the trusted tables listed in .lifecycle/taxi_plan.md. If a source the spec names isn't a Source node yet, add it with `coa sources add --location <location> --include <table>`, dry-run first.
- Put every node you create in one subgraph named CAB_TRIPS.
- Run `coa validate`. Then show me `coa create --include '{ subgraph: "CAB_TRIPS" }' --dry-run` and wait for my yes. Never run `coa create` or `coa run` without --include. Ask me before any `coa run`, and never deploy.
Finish with a table: node, layer, node type, storage location, and the spec line it satisfies.
4. Review the changes
Once the pipeline is built, you can see the result in Coalesce Desktop.
While you can make changes directly in code with agentic tools, smaller edits, like renaming a column or changing a single calculation, are sometimes easier in the UI, where you have full visibility.
You also have full access to the lineage, at a table and column level, in the app and through the MCP, so you can quickly see dependencies before you change something.
Column-level lineage for DROPOFF_DATETIME, from CAB_TRIPS through STG_CAB_TRIPS and FCT_CAB_TRIPS to V_CAB_TRIPS.
Review the pipeline you built from specs/cab_trips.md before I open it in Coalesce Desktop. 1. For every metric and quality expectation in the spec, name the node and column that implements it. List anything in the spec with no implementation. 2. List anything you built that the spec doesn't ask for. 3. Trace column-level lineage for TRIP_DISTANCE and DROPOFF_DATETIME from source to the final view. 4. Check every join: its keys, its type (INNER or LEFT), and whether it can drop or duplicate rows. Don't change anything. Give me the list of edits you'd suggest, and I'll decide which to make.
5. Commit and open a PR
Once you’re happy with the result, commit the changes and open a PR, or ask the agent to do it. The spec and pipeline live in the same repository, so the reviewer sees the requirement and the resulting nodes in one place. After the PR is merged, the pipeline is deployed to production and runs on the set schedule.
You stay in control throughout, since nothing reaches production without a review and a merge. Team members who don’t work locally can open the same project in the Coalesce web app.
Commit only these files: specs/cab_trips.md, the nodes in the CAB_TRIPS subgraph, the subgraph file, the modeling-standards skill, and any locations.yml entries those nodes need. List anything else that changed and ask me about it. Use a commit message that names the spec. Open the PR against course/taxi-setup, not the default branch, so course work never reaches production. In the description, list each spec section with the nodes that implement it, plus the `coa validate` result. Don't merge and don't deploy.
Try yourself
To follow the steps in this section, you need a Coalesce Transform workspace, the coa CLI and Coalesce Desktop installed locally, and the platform skills added to your agent.
- Start for free with Coalesce Transform here
- The Local Development Setup Guide walks through how to get started, step by step
- Add the coalesce-platform-skills to your agent, as a Claude Code plugin or as plain files
- Take the spec you wrote in Define, import the sources it names, and ask the agent to create a pipeline from it
- Review the result in Coalesce Desktop as in step 4, then open a PR
Govern
What you end up with: tests and monitors on the pipeline, policies for everything else, and owners and descriptions on the assets.
There’s no one set definition of well-governed data, as it spans data modeling, standards, discoverability, testing and more.
Below, we’ll focus on making sure data is reliable through testing and discoverable for everyone to use with the right context.
| Traditional workflow | Agentic workflow |
|---|---|
| Data quality checks, descriptions, PII tags, and ownership are a backlog of items added after pipelines ship. Coverage is patchy and needs a lot of upkeep | Policies and standards are managed and applied automatically as the agent builds (tests added, descriptions generated, PII tagged and masked, owners assigned, naming enforced). Humans only have to fine-tune the bespoke needs for the spec |
In Build, the agent created a new pipeline with standards enforced from the start. Most teams also have pipelines that were built by hand years ago, where tests were added late or not at all. In this section, we use one of those as the example: FCT_CAB_TRIPS, an older taxi fact table in our demo warehouse. The same steps apply to the V_CAB_TRIP_DISTANCE view from Build, where the spec expectations are the starting point.
1. Decide what to test
Testing is one of the hardest things to get right as you scale your pipelines. On one hand, you have to invest effort in building tests that actually reflect what could go wrong with the data. When we analyzed workspaces before we started working with them, 90+% of tests were null or uniqueness checks, which hardly reflect the real world.
On the other hand, adding too many tests risks alert overload and missing important issues. Our approach is to test pipelines over individual tables:
2. Turn expectations into tests and monitors
Coalesce Quality can run both deterministic tests and anomaly monitors against your tables:
- Tests catch known unknowns. These are issues you can express in SQL, such as a trip distance that’s zero or negative, or a pickup time after drop-off
- Anomaly monitors catch unknown unknowns. These are issues that are hard to write a rule for, such as one vendor’s feed going quiet while the total volume still looks fine
Expectations for your data should be captured up front, and agreed upon with the business stakeholders who actually use the data.
The spec we saw in the Define section therefore contains these requirements, as they’re captured alongside the build, not separately.
… ## Quality expectations TRIP_DISTANCE is not null and greater than 0 Pickup time is before drop-off time Vendor, location, payment type and rate code keys are not null …
In Transform, these tests can be set up as circuit breakers, so that if a test fails, no downstream nodes are updated. They can also be run in local development, to prevent merging to production if any are failing.
Turn every quality expectation in specs/cab_trips.md into a test.
- Put each test on the node where the failure would first show up, not only on the final fact.
- Use the testing options of my workspace's node types. Where they support it, make the tests on the fact block downstream nodes when they fail (a circuit breaker).
- Then show me how my node types run their tests. If it takes `coa run`, ask me first and scope it with --include '{ subgraph: "CAB_TRIPS" }'. Otherwise, run each test's logic as a read-only SELECT and label the result "ad-hoc check, not the node test".
Report each test as PASS or FAIL, with the failing row count. Don't change the spec. If an expectation is too vague to test, list it and say what's missing.
3. Let the agent recommend the rest
Stakeholder expectations cover only what they know to ask for. For the rest, ask the agent to analyze the pipeline. With the Quality MCP, it can walk the lineage upstream from a data product, read each node's code, check which tests and monitors already exist, and recommend tests to fill the gaps.
Analyze the FCT_CAB_TRIPS pipeline and recommend tests.
The video shows the full session. In short, the agent does three things:
- Runs the analysis. It resolves the table, walks the lineage upstream, and reads the code for each node. Nothing is created at this point. It finds six table stats anomaly monitors and no column or logic tests.
- Recommends tests. Ten in total, one per failure mode, each placed at the layer where the failure would first show up.
- Asks which to add. Before it creates anything, it asks about scope and alerting, and tells you which tests will fail on the first run.
The tests the agent recommends for FCT_CAB_TRIPS, by layer. Most sit at the sources, and two of the mart tests fail today.
Reading the code is what makes the recommendations specific. The agent found three things that no not null or uniqueness test would catch:
- The drop-off zone join is on PU_LOCATION_ID, not DO_LOCATION_ID, so the drop-off zone always equals the pickup zone
- The fact table has 6.03B rows against 24.1M in staging, about 250 times more
- All joins are INNER, so trips with an unmapped vendor, rate code, or zone disappear silently
The agent does the analysis and the SQL. What’s left for you is the judgment call: which tests to create now, and who should be alerted when they fail.
In your environment:
Analyze the CAB_TRIPS pipeline built from specs/cab_trips.md and recommend tests. Start at the fact and walk the lineage upstream. Read the SQL of each node, and list the tests and monitors that already exist. Use the Quality MCP if it's connected; otherwise use the node files and say so. Recommend one test per failure mode, placed at the layer where the failure would first show up. Check in particular: - join keys that point at the wrong column - row counts in the fact against staging (fan-out) - INNER joins that silently drop rows with unmapped keys Don't create anything yet. Tell me which tests would fail on the first run, and ask me which to add and who gets the alert.
4. Set policies for everything else
While you want to add bespoke tests that are captured as part of the pipeline spec, you’ll likely also want some more global policies for testing and monitoring that are applied consistently and don’t have to be discussed each time.
For example:
- Sources should have freshness and volume monitors
- Tier 1 models should have uniqueness and not null tests on their keys
- Financial metrics should have tests to check for historical accuracy
Coalesce Quality has a built-in policy layer where you can create deployment rules. A rule selects assets with a query, for example, all sources or everything tagged tier-1 in Catalog, and deploys monitors or tests to whatever matches. New assets that match are covered automatically.
These apply whether a human or an agent builds the pipeline.
Deployment rules cover assets once they’re in the warehouse. Skills apply the same kind of policy earlier, when you write the spec.
Central teams, such as governance and the data platform team, write the rules once: which tests a dataset gets at each criticality level, how metrics are defined and named, and how models are structured. The person requesting the data answers one question: how critical it is, and the spec applies the matching rules. Each rule in the spec shows which skill it came from, so a reviewer can tell a team standard from a decision made for this spec.
Coalesce generates a starting set of skills during onboarding, based on how your team works. From there, you edit them, as no two teams have the same standards.
Central teams set the rules once, and the requester only picks how critical the data is.
Draft governance policies for this workspace. Read .lifecycle/patterns.md and any existing checks, hooks or quality rules first, so you don't duplicate them. Propose at most five policies, for example: - freshness and volume monitors on every source - uniqueness and not-null tests on the keys of Tier 1 models For each, say which assets it selects (the query) and what it deploys. If synqcli is set up here, write them as YAML next to the code; otherwise write them to .lifecycle/policies.md. Show me the list before creating anything.
5. Fill in the metadata
The other half of governance is the key metadata that helps people and agents understand how to use the data. It’s the same metadata the agent relied on in Define to pick a table.
Examples include:
- Descriptions: what tables mean and how they’re supposed to be used
- Ownership: who owns the assets (technical or business)
- Criticality: whether it’s a Tier 1 asset
- PII tags: whether data access should be limited
Again, you can infer a lot of this from the build. If the spec is sufficiently documented, a lot of this will write itself.
In your environment:
Fill in the metadata for the CAB_TRIPS pipeline, using specs/cab_trips.md as the source: - a description on every node and column, in plain language, that says what it means and how to use it - owner, tier and domain from the spec's Governance section - PII: confirm no passenger or driver details are present, and flag any column that looks like PII Write it into the nodes, run `coa validate`, and show me the diff. Don't invent an owner the spec doesn't name. For any gap, suggest one only from git history or, if my role can read it, Snowflake query history, and say which you used.
But you may also have policies in place, for example, that every Tier 1 table has an owner and a description, or that PII columns are tagged before you share a table.
You can also connect the dots where metadata is missing. For example, if no owner is assigned, you can ask the Catalog MCP to use information about frequent users or recent code commits and assign ownership based on that. These actions can also be taken in bulk:
Find tier-1 tables in NY_TAXI without an owner. Suggest an owner for each based on the most frequent users and recent commits, and show me the list before you assign anything.
If you’re starting from scratch, the order matters. We run governance rollouts as a playbook with six steps:
All of this is what makes assets discoverable. Once tables have owners, tiers, descriptions, and a quality status, people can find the right table in Catalog, and the agent can do what we saw in Define, where it recommended a table and explained why.
Try yourself
To follow the steps in this section, you need Coalesce Quality connected to your warehouse and the Quality MCP connected to your agent. For step 5 you also need the Catalog MCP from the Define section.
- Book a demo to see it in action if you don’t have Coalesce Quality yet
- Connect the Quality MCP to your agent. Hands-On With Coalesce MCPs walks through the setup for all three MCPs
- Pick one data product that matters and ask the agent to analyze the pipeline behind it by lineage and severity. Read the findings from the code before you look at the recommended tests
- Create the tests that pass today first. For the ones that would fail, agree on who gets the alert before you add them. The Observe section picks up from there
- Write down two or three policies, such as freshness and volume monitors on all sources, and set them up as deployment rules. With synqcli you can keep them as YAML next to your code
- Ask the agent to list Tier 1 tables without an owner or a description, and fill the gaps in bulk
Observe
What you end up with: issues routed to owners, root causes found, incidents recorded, and expectations fed back into the spec.
Data products like the cab trips model feed the operations team’s pricing decisions, so we want to be rigorous in how we monitor them and treat it the way engineers treat production services.
This includes acting on issues, giving feedback on tests and monitors, documenting important issues as incidents, and, ideally right away, making it clear to everyone else using the data product that an issue is under investigation.
Below are the steps you take once those tests and monitors are live. Agents can do a lot of the work, as you’ll see, but you stay in the loop on the decisions that matter.
| Traditional workflow | Agentic workflow |
|---|---|
| Alerts land in one Slack channel. Whoever notices digs through lineage, commits, and dashboards by hand. Root causes take hours, most issues never become incidents, and consumers find out when a number looks wrong | Alerts go to the owner with impact and severity attached. The agent runs the root cause playbook, triages the queue overnight, and proposes fixes. Humans decide what’s an incident, what’s expected, and what gets merged |
In this section we pick up from Govern. Two of the ten tests on FCT_CAB_TRIPS fail on the first run: the row count check against staging and the drop-off zone lookup. Both open an issue in Coalesce Quality. We follow them from alert to fix, and then look at how the same flow runs for the queue of issues you get on a larger project.
1. Route alerts to the owner
An issue is only useful if it reaches someone who can act on it. Coalesce Quality routes alerts based on the ownership and priority set in Catalog, which we filled in during Govern. FCT_CAB_TRIPS is Tier 1 and owned by Doug Barrett and the Data Engineering team, so both issues go to the Data Engineering channel with Doug tagged, and the alert states which downstream products are affected.
Who is on call, where alerts go, and who else should know are decisions to make up front. Our guide to building data products covers ownership and alerting in detail.
If the Coalesce Quality MCP isn't connected, say so and stop. Don't infer issues from anything else. List the Tier 1 assets in the CAB_TRIPS pipeline. For each, show its owner in Coalesce Quality, its owner in Catalog or the spec, and the downstream data products it feeds. Flag any asset with no owner, or where the owners don't match. For assets without an owner, suggest one based on the spec and recent commits. Then list the decisions I still need to make, such as who covers for each owner and what response time we commit to. Don't assign or change any owners; show me the list and I'll decide.
2. Triage and give feedback
The alert carries what you need to triage. For the row count issue, it shows the expected and actual counts, the downstream products, and that a second issue on the same table was opened in the same run.
Then set a status. Investigating means someone owns it. Expected means the data is right and the test or monitor is wrong, which is common for anomaly monitors after a seasonal change or a planned backfill. No action needed closes it. This feedback matters beyond the single issue: anomaly monitors learn from it, and the issue-to-incident rate per test tells you which checks are worth keeping.
An alert on an anomaly monitor, with the status set by the alert. Expected and no action needed feedback into the monitor. The screenshot shows a volume monitor, but the flow is the same for the two failing tests.
The prompts from here on work on real issues in Coalesce Quality. A new sandbox often has none yet. If so, the agent will say there’s nothing to triage; come back once your tests and monitors have opened some.
If the Coalesce Quality MCP isn't connected, say so and stop. Don't infer issues from anything else. List the open issues on the CAB_TRIPS pipeline. For each one, give the expected and actual values, the downstream products affected, and any other issue on the same table from the same run. Recommend a status for each (Investigating, Expected or No action needed) with the evidence for it. Don't set any status; I'll decide.
3. Find the root cause with the agent
Root cause analysis can easily take several hours. If you’re lucky, a test captures the issue with a clear error message you can use. More often, you have to untangle upstream changes you don’t know about, code changes, similar issues, and more.
With the Quality MCP, the agent can access all this metadata, and a root cause skill turns it into a fixed playbook of eight checks, run in order: code changes, schema changes, upstream dependencies, transformation logic, similar segments, history, trace to source, and a conclusion. For the row count issue, the prompt is:
What are potential root causes for this issue: Row count equals staging row count - FCT_CAB_TRIPS
The agent runs the checks and reports whether each one passes or fails. In our example, the first three come back clean: no commits on the table in the last 14 days, no schema changes upstream, and staging is stable at 24.1M rows. Check four is where it gets interesting. The incremental load appends the full window on every run and has no unique key, and the history confirms it: the row count has grown every run since the incremental load was added. That explains the 250x fanout. The drop-off zone issue is a separate join error, so the two issues are unrelated.
The root-cause playbook applied to the row-count issue. This walkthrough is illustrative. The recorded session below follows the same eight checks on a different issue: a revenue drop for one vendor.
The agent can also propose the fix, in this case adding a unique key to the incremental config and rebuilding the table. That change goes through the same path as any other: a branch, a PR, and a review, as in step 5 of Build. Once merged and rebuilt, the row count test passes and the issue closes.
In your environment:
If the Coalesce Quality MCP isn't connected, say so and stop. Don't infer issues from anything else. What are potential root causes for this issue: <issue title, as shown in Coalesce Quality, for example "Row count equals staging row count - FCT_CAB_TRIPS"> Work through these checks in order, and for each one say what it rules in or out, with the evidence (commit, query or run): code changes, schema changes, upstream dependencies, transformation logic, similar segments, history, trace to source, then a conclusion. If you find the cause, draft the fix on a local branch and show me the diff. Ask me before pushing or opening a PR. If a <placeholder> above is still unfilled, ask me for it before you start.
4. Let agents triage the queue
Doing root cause analysis one issue at a time saves a lot of time, but on larger projects you’ll often have a queue of issues to work through. For this, we run agents that automatically triage new issues, group related ones, assess likely root causes, and recommend next steps. When you come in, you'll see a triaged list with a recommended action for each, such as no action, mark as expected, or declare an incident, so you can start there instead of from the raw alerts.
The triage view in Coalesce Quality. Related issues are grouped, each with a likely cause and a suggested action to accept or override.
For issues with a clear fix, the agent can open the PR right away. You still review it before it merges.
If the Coalesce Quality MCP isn't connected, say so and stop. Don't infer issues from anything else. Triage every issue opened on this project since <date>. Group related issues. For each group, give the likely root cause and one recommended action: no action, mark as expected, fix, or declare an incident. Where the fix is clear, draft it on a local branch. List the branches and ask me before pushing any or opening a PR. Don't set any statuses. Order the list by severity. If a <placeholder> above is still unfilled, ask me for it before you start.
5. Declare incidents and close the loop
For important issues, declare them as incidents. The system generates the description for you, and you add context the agent can’t know, such as the Slack thread where the discussion happened and who was told. It may seem tedious, but this feeds back into the context layer, so the next time a similar issue occurs, the agent brings in what happened last time and how it was fixed. Err on the side of declaring too many incidents rather than too few. You can always lower the severity later.
In our example, the row count issue is worth an incident. FCT_CAB_TRIPS feeds Tier 1 reporting, and the numbers were off by 250x for as long as the bug was live. The drop-off zone bug is fixed in the same PR and can stay an issue.
Catalog shows live issues and incidents on the asset. This closes the loop with consumers: when someone opens FCT_CAB_TRIPS or a dashboard built on it, they see there’s an open incident before they use the numbers, without anyone having to send a message.
The last step of the loop goes back to Define. If the incident revealed an expectation that was never written down, add it to the spec so the next build starts with it. The row count check is an example. FCT_CAB_TRIPS was built without a spec, but for a pipeline like the one built from cab_trips.md, this expectation belongs in the spec from the start.
If the Coalesce Quality MCP isn't connected, say so and stop. Don't infer issues from anything else. For the incident on <table>, draft the incident description: what broke, when, the impact on downstream products, the root cause and the fix PR. Leave placeholders for the Slack thread and who was told; I'll add those. Then check specs/cab_trips.md: if the incident revealed an expectation that was never written down, add it under Quality expectations with a note naming the incident. Commit the spec change on a local branch and ask me before pushing or opening a PR. If a <placeholder> above is still unfilled, ask me for it before you start.
Try yourself
To follow the steps in this section, you need Coalesce Quality with alerts routed to Slack, the Quality MCP connected to your agent, and ownership set on the assets you care about, which we covered in Govern.
- Set up alert routing so that issues on Tier 1 assets go to the owning team’s channel with the owner tagged, and agree on who is on call and what response time you commit to
- For one week, set a status on every alert. Note which tests and monitors keep coming back as expected or no action needed. Those are candidates to tune or remove
- Take an open issue and ask the agent for potential root causes. Compare its findings to what you would have checked first
- Turn on automated triage and review the suggested actions each morning for a week before you let it set statuses on its own
- Declare your next important issue as an incident and add the Slack thread and the fix PR. Check that the incident shows on the asset in Catalog
- After the incident is resolved, add the missing expectation to the spec and commit it