Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Build journey with AI

Build a Data Product end to end by talking to an AI agent that uses builder skills and the Data Product MCP.

Building a Data Product normally means reading docs, writing SQL by hand, figuring out YAML syntax, and keeping dozens of files consistent. An AI agent powered with builder skills turns this into a conversation. You describe what you want. The agent writes the files, catches mistakes, and explains every step.

This page walks through that conversation end to end, using the orders-analytics Data Product as the example: a governed e-commerce analytics product for a sales operations team on PostgreSQL.

For how AI activation and the Data Product MCP work, see References → Interfaces → AI activation.

Prerequisites

Setting up the build journey has two parts: scaffold the skills, docs, and CLI wheel into your project, then connect the Data Product MCP to your AI agent or tool.

You need:

  • Your DataOS instance URL, such as dataossanbox.instance.dataos.cloud.

  • A DataOS API token. In your DataOS instance, open Home, select API Tokens from the profile menu, then select + New. Or run dataos-ctl user apikey create.

  • A way to run the scaffolder: Node.js ≥ 16 (npx) or Python with uvx / pipx (no Node required).

  • Vulcan CLI installed in a Python 3.10 to 3.13 virtual environment, from the wheel the scaffolding command provides (see the first step below).

1

Scaffold the skills, docs, and CLI wheel

Run the scaffolding command in your project directory. Use npx if you have Node, or uvx / pipx if you only have Python:

npx dataproduct-builder-skills
# or
uvx dataproduct-builder-skills
# or
pipx run dataproduct-builder-skills

This drops everything the agent and CLI need into your project:

.cursor/skills/
  design-data-product/         ← guides the design conversation (Parts 1–3)
  build-data-product/          ← turns the spec into a deployed product (Parts 4–6)
  fix-data-product/            ← interprets a vulcan review report after Validate
dpbs-docs/
  vulcan-docs/                 ← Vulcan CLI & framework reference the agent reads
  vulcan-examples/<engine>/    ← real working examples for your engine
  dataos-philosophy/           ← DataOS core concepts
  vulcan-*.whl                 ← the Vulcan CLI wheel you install next

Check your Python version with python --version. It must be 3.10 to 3.13; if it isn't, install a supported version from python.org/downloads. Then install the CLI from the scaffolded wheel into a virtual environment (include your engine as an extra):

python -m venv .venv
source .venv/bin/activate
pip install "dpbs-docs/vulcan-*.whl[<engine>]"   # e.g. dpbs-docs/vulcan-*.whl[postgres]
vulcan --version

Optional — vulcan review is a separate extra. Install it only if you want the Validate-step review. Extras are not cumulative: if you later reinstall with an engine extra, pass review again.

pip install "dpbs-docs/vulcan-*.whl[review]"
vulcan review --help
2

Connect the Data Product MCP

This walkthrough uses Cursor. Follow these steps to add the Data Product MCP.

1

Open the MCP configuration

In DataOS, open a Data Product and select Activate → MCP, then select Cursor. The modal shows a JSON configuration block. Replace <API_TOKEN> with your DataOS API token and <instance-url> with your DataOS instance URL.

{
  "mcpServers": {
    "DataProduct-MCP": {
      "url": "https://<instance-url>/dataproduct-mcp/api/v1",
      "headers": {
        "apikey": "<API_TOKEN>"
      }
    }
  }
}
2

Open Cursor from DataOS

Click Open in Cursor. Approve the browser prompt to continue the MCP setup in Cursor.

3

Install the MCP server

Cursor opens Tools & MCPs with the server fields populated. Confirm the following values, then click Install.

Field
Value

Name

DataProduct-MCP

Type

streamableHttp

URL

https://<instance-url>/dataproduct-mcp/api/v1

Header key

apikey

Header value

Your DataOS API token

4

Enable the server

Under Installed MCP Servers, turn on DataProduct-MCP.

Verify: Open a new Cursor chat and ask What data products are available to consume?. If the connection works, Cursor returns Data Products from your DataOS instance.

For the complete Cursor setup guide with screenshots, see Connect Cursor.

Follow the Claude-specific setup guide: Connect Claude.

Follow the Copilot in VS Code setup guide: Connect Copilot in VS Code.

Follow the ChatGPT Desktop (Codex) setup guide: Connect ChatGPT Desktop (Codex).

For agentic frameworks such as LangChain, Vercel AI SDK, and AgentScope, see Connect an agentic framework.

What you will build

orders-analytics is a Data Product that turns raw order, customer, product, shipment, warehouse, supplier, and region data into trusted business metrics.

Engine

PostgreSQL

Architecture

Medallion: Bronze, Silver, Gold, Semantic Layer, Metrics

Metrics

Daily revenue, weekly revenue, customer lifetime value, RFM value by segment, fulfillment conversion

Total files

43 governed files across SQL models, semantic YAMLs, DQ checks, assertions, and tests

The builder skills

Three skills drive this journey, scaffolded into .cursor/skills/ in the first setup step.

design-data-product runs the structured Q&A on business context, sources, grain, measures, and metrics. It discovers tables through the Data Product MCP, classifies model kinds, and suggests joins, then drafts quality rules, ai_context, and semantic behavior along the way. The output is a confirmed data-product-plan.md spec: a rough idea turned into a file the agent can build from.

build-data-product turns that confirmed spec into SQL/YAML models, DQ checks, and tests. It runs vulcan plan and evaluate, enriches metadata, and carries the product through dev and prod deploy.

fix-data-product reads an existing vulcan review report rather than generating one, and summarizes the findings by severity. Once you agree with the read, it fixes blocker and high issues along with the required AI-readiness gaps; medium and low findings stay tracked, not auto-fixed.

The journey

Phase
Goal
What the agent does
What you provide

Discover

Find what already exists

Searches the catalog and table index

A topic or domain

Design

Frame the problem

Asks business questions; works right to left

Pain points, consumers, key questions

Plan

Lock the spec

3 batches of Q&A build data-product-plan.md

Answers about entities, joins, measures, grain, freshness

Build

Generate the files

Writes all SQL, YAML, DQ, assertion, and test files

Confirmation to proceed

Validate

Confirm it works

Guides you through vulcan commands; fix-data-product acts on an optional review report

Review of command results; you run vulcan review in your own shell first

Deploy

Ship the product

Hands the validated project to Git and deployment

Git repository and the deployment: block in config.yaml

Starting the design journey

Before the discovery and design conversation begins, type /design-data-product in your chat session to invoke the design skill. The skill runs two prerequisite checks and reports the result before the session starts.

You:

/design-data-product

Agent:

The agent confirmed the Data Product MCP connection (no auth or connection error), so both prerequisite checks pass.

Prerequisites check passed. • Data Product MCP (dataproduct-mcp/api/v1): connected • search tool: available

Ready to begin the design session.

So, in your own words:

What's the Data Product you have in mind? A rough description is fine, for example, "I want something that tracks how our subscriptions are performing," or "I need a view of supply-chain delays by region." Don't worry about tables, columns, or technical structure yet. I just want to understand the idea and the problem behind it.

What are you trying to build?

Once the check passes, the skill automatically searches the Data Product catalog and opens the Stage 1: Discover conversation. If either check fails, the skill reports which connection or tool is missing so you can resolve it before continuing.

Part 1: Discover

Before building anything, check what already exists in the Data Product catalog. You might find something to reference directly rather than rebuild. Even if you don't, you get a clear picture of the raw tables available before committing to any design.

The agent searches the Data Product catalog and the table index.

Step 1: search the Data Product catalog

You: Before I explain my use case, can you check if there's anything already in the Data Product catalog related to orders or e-commerce analytics? No point rebuilding something that already exists.

Agent: Searched the catalog for "orders", "e-commerce", and "sales analytics". No existing governed Data Products found matching this domain. The catalog is clear. Moving on to find the raw source tables.

If the catalog returns a match (say, a customer-intelligence Data Product that already exposes customer segments), evaluate its metrics, quality status, and lineage before deciding. If it covers your need as-is, reference it as EXTERNAL. If you need to modify it, build your own model on top.

Step 2: find the raw source tables

The agent searches the table index for your data source. This confirms what columns exist before you commit to any model design.

Agent: Found 9 raw tables in your PostgreSQL source schema public:

All tables are owned by the raw source system.

Table
Grain
Key Columns
Purpose

orders_ext

order_id

order_id, customer_id, order_date, warehouse_id, order_status

Order transactions

order_items_ext

order_id, item_id

order_id, product_id, quantity, unit_price

Line-item sales detail

customers_ext

customer_id

customer_id, region_id, name, email, signup_date

Customer master

products_ext

product_id

product_id, supplier_id, name, category, price

Product catalog

regions_ext

region_id

region_id, region_name

Geography

shipments_ext

shipment_id

shipment_id, order_id, shipped_date, carrier

Fulfillment events

warehouses_ext

warehouse_id

warehouse_id, region_id, name

Warehouse locations

suppliers_ext

supplier_id

supplier_id, region_id, name

Supplier master

dim_dates_ext

dt

dt, year, month, day_of_week

Calendar dimension

You: Those all look right. We also maintain one seed file ourselves: seeds/order_status_lookup.csv. It maps raw status codes to business labels and flags which ones count as revenue-bearing.

Plan: everything in *_ext stays EXTERNAL. The status CSV is a SEED. Everything we build on top is owned by us.

Discovery outcome

Source
Owned By
Vulcan Kind
Used For

orders_ext

Raw source system

EXTERNAL

Orders Bronze model

order_items_ext

Raw source system

EXTERNAL

Order Items Bronze model

customers_ext

Raw source system

EXTERNAL

Customers Bronze model

products_ext

Raw source system

EXTERNAL

Products Bronze model

regions_ext

Raw source system

EXTERNAL

Regions Bronze model

shipments_ext

Raw source system

EXTERNAL

Shipments Bronze model

warehouses_ext

Raw source system

EXTERNAL

Warehouses Bronze model

suppliers_ext

Raw source system

EXTERNAL

Suppliers Bronze model

dim_dates_ext

Raw source system

EXTERNAL

Dates Bronze model

order_status_lookup.csv

This Data Product

SEED

Static order status classification

Part 2: Design

The right-to-left approach

The agent starts at the business question and works backwards to the data. Traditional design goes from "here are my tables, what can I build?" The agent goes from "what decision needs to be made?" to "which source columns are required?"

Every model, every join, and every column ends up in the design because it was required by a specific business question.

Opening the conversation

You: I want to build a Data Product.

Agent: Great. Let's figure out exactly what to build. I'll start with a few business questions before we touch any tables or schemas.

First: what problem are you trying to solve? What's broken or missing today that this Data Product is supposed to fix?

Q1: pain points and gaps

Agent asks: What pain points or gaps exist today that this Data Product is meant to address?

You: Honestly, every team is running their own numbers and they never match. Sales has one revenue figure, product has another. We have no agreed-on way to figure out which customers are slipping away. Everyone's just doing it differently in their own spreadsheets. And if someone wants to know where orders are dropping off between placement and shipment by region, they have to join five tables by hand every single time. It's slow, it's inconsistent, and nobody really trusts the output.

Q2: use case statement

Agent asks: In one sentence, what does this Data Product do and what decisions does it support?

You: It takes our order, customer, product, and shipment data and gives us one trusted place to measure revenue, see which products are moving, understand customer behavior, and track how well we're fulfilling orders. So teams stop rebuilding the same joins every week and actually trust the numbers they use to make decisions.

Q3: consumers

Agent asks: Who are the primary consumers: which teams, roles, or tools will use it, and what will they do with it?

You: Sales ops for daily and weekly revenue by region. The product team for category and product performance: best sellers, slow movers. Marketing for customer segments: who's a champion, who's at risk, who should get a win-back campaign. Fulfillment ops for order-to-shipment rate. And we want our AI assistant to be able to answer plain-English questions against this without someone writing SQL every time.

Q4: key questions and metrics

Agent asks: What are the key questions this Data Product should answer, and what numbers or trends matter most?

You: Which regions are driving the most revenue this week? Are Electronics outperforming Home Goods? Who are our top customers and who's about to churn? What percentage of orders actually get shipped in each region? How's average order value trending? And for the retention team: which customers are Champions, which are At Risk, and what's the recommended action for each segment?

Part 3: Plan

With the business context confirmed, the agent moves into structured planning. Three batches of questions lock the full spec before any file is generated.

Batch 1: data and structure

Q5: engine and data source

Agent asks: Where is your data located? And which engine does this Data Product use?

You: It's all in PostgreSQL. We're using hosted serverless Postgres. The tables are already in the public schema as external tables, which we confirmed in Discover. Engine is Postgres.

Entity inference

Agent: Based on what you've described, the core entities seem to be: Orders, Order Items, Customers, Products, Regions, Shipments, Warehouses, and Suppliers. Does that sound right? Anything to add or remove?

You: Yes, that's right. Add two more: a Dates dimension table for calendar attributes, and an Order Status lookup. We have a seed CSV for that. It maps raw status codes to labels and marks which ones are revenue-bearing.

Table and model kind classification

Agent: Matching confirmed entities to tables from Discover. Here is my classification for each source:

Does this look right? Any ownership or kind to change?

Source
Owned By
Kind
Reason

orders_ext, customers_ext ... (all 9 ext tables)

Raw source system

EXTERNAL

Read-only; this DP does not own or transform them

order_status_lookup.csv

This Data Product

SEED

We maintain this lookup; load as a seed model

bronze.*, silver.*, gold.* (models we will build)

This Data Product

FULL

We own the transformation; FULL rebuilds cleanly on each run

You: That's correct. The raw tables aren't ours so EXTERNAL makes sense. The status CSV we own and maintain, so SEED is right. Everything we build on top is FULL.

Join recommendations

Agent: Based on the fetched column lists, here are the suggested joins:

Do these joins look correct? Anything missing or wrong?

Join
Left Table
Right Table
Key

Orders to Customers

bronze.orders

bronze.customers

customer_id

Customers to Regions

bronze.customers

bronze.regions

region_id

Order Items to Orders

bronze.order_items

bronze.orders

order_id

Order Items to Products

bronze.order_items

bronze.products

product_id

Products to Suppliers

bronze.products

bronze.suppliers

supplier_id

Orders to Warehouses

bronze.orders

bronze.warehouses

warehouse_id

Warehouses to Regions

bronze.warehouses

bronze.regions

region_id

Shipments to Orders

bronze.shipments

bronze.orders

order_id

You: All correct. One important note for revenue: always compute it as order_items.unit_price × quantity at the line-item level. Don't use any pre-aggregated column from the orders table. The authoritative revenue number comes from the items, not the order header.

Q6: population filters

Agent asks: What business rules filter which records are included before or during the join? If none, say "none."

You: Exclude canceled orders from everything: revenue, order volume, RFM history, funnel metrics. The filter is order_status <> 'Canceled'. Apply it in every model that touches revenue or customer spend. For shipments: use a LEFT JOIN so orders with no shipment still appear in order counts with a shipment rate of zero. Don't use an INNER JOIN or you'll drop unshipped orders from the denominator.

Measures, dimensions, and metrics

Agent: Based on your key questions, here are the recommended measures, dimensions, and metrics:

RFM scoring uses static thresholds, not percentiles:

Score
Recency (days since last order)
Frequency (order count)
Monetary (total revenue)

5

30 days or fewer

4 or more orders

$1,000 or more

4

60 days or fewer

3 or more orders

$750 or more

3

90 days or fewer

2 or more orders

$500 or more

2

180 days or fewer

1 or more orders

More than $0

1

More than 180 days

0 orders

$0

Measure
Formula
Aggregation
Filter

total_daily_revenue

SUM(quantity x unit_price)

SUM

Non-canceled orders

total_daily_orders

COUNT(DISTINCT order_id)

COUNT DISTINCT

Non-canceled orders

average_order_value

total_revenue / order_count

Derived ratio

Safe divide, 0 when denominator is 0

average_shipment_rate

shipped_orders / total_orders

Derived ratio

Shipped = distinct orders with a shipment row

avg_customer_lifetime_value

AVG(customer total_revenue)

AVG

Per customer by segment

total_rfm_value

SUM(monetary_value)

SUM

By RFM segment

at_risk_count

COUNT DISTINCT customer_id WHERE segment = 'At Risk'

COUNT DISTINCT

At Risk segment only

avg_order_to_shipment_conversion

AVG(order_to_shipment_rate)

AVG

By region

You: Those measures look right. Two clarifications: for shipment rate, count shipped orders, not shipment rows. One order can have multiple shipments and we don't want to double-count. And yes, RFM scoring is fixed thresholds. Those buckets are the business's agreed-upon definitions, not something computed dynamically.

Grain definition

Agent: Based on the confirmed measures and dimensions, here is what one row represents in each model:

Model
Grain

silver.fct_daily_sales

One order_date x region x customer x product

silver.fct_weekly_sales

One ISO week x region x category

silver.dim_customer_profile

One customer, lifetime purchase snapshot

silver.dim_product_profile

One product, catalog performance snapshot

gold.rfm_customer_segmentation

One customer, current RFM score and segment

gold.sales_funnel_analysis

One funnel_date x region

You: Yes, that's right for all of them. The daily sales grain at customer x product level gives us the slice-and-dice flexibility we need for both product and customer analysis. The funnel snapshot by region is fine for the demo; in production we'd want a date-partitioned version.

Modeling approach

Agent: Based on your data structure (multiple operational sources, shared join logic across several gold models, and layered cleaning), I recommend Medallion Architecture. A single star schema wouldn't cleanly support both RFM segmentation and funnel analysis sharing the same Bronze joins.

Which would you like to go with, Medallion or Star Schema?

Layer
Purpose

Bronze

Source-aligned models reading from EXTERNAL tables. No business logic.

Silver

Cleaned and joined fact tables and dimension profiles. Shared join logic lives here.

Gold

Business aggregates: RFM scoring and sales funnel conversion.

Semantic + Metrics

Queryable surface for AI agents, dashboards, and analysts.

You: Medallion. The Bronze and Silver layers are shared inputs for both the RFM and funnel gold models. Duplicating all that join logic in a flat star schema would be messy. Medallion is the right call.

Batch 2: delivery and freshness

Q7: consumption pattern

Agent asks: Where will this Data Product be consumed: AI agents, BI dashboards, API, ad-hoc queries, or embedded in an app?

You: Mostly AI agents through the Data Product MCP. We want people to ask plain-English questions and get answers without writing SQL. We also have BI dashboards pulling from the semantic layer, and analysts doing ad-hoc queries through Vulcan directly.

Q8: refresh cadence

Agent asks: How often does the data need to be refreshed: real-time, hourly, daily, weekly?

You: Every 15 minutes for this demo, just to show the pipeline actually runs. In production I'd move most models to daily. Sales ops checks numbers in the morning; they don't need sub-hourly. We can revisit if fulfillment ops wants more frequent updates later.

Q9: backfill

Agent asks: Do you need historical data loaded from the start, and if so, how far back?

You: Yes, one year. Our data generator creates 365 days of synthetic order history. Project start date is 2025-01-01. For a real production deployment we'd backfill from the earliest order in the source system.

Assumptions review

Before moving to Build, the agent lists every assumption it made during planning.

Agent: Here are the assumptions I applied. Please confirm or correct each one:

  • Canceled orders are excluded from all revenue, CLV, RFM, and funnel metrics (order_status <> 'Canceled')

  • RFM scoring uses fixed business-rule thresholds, not dynamic NTILE percentiles

  • Sales funnel snapshot uses the current registered customer base aggregated by region, not a historical registration event stream

  • Revenue is computed as unit_price x quantity from order_items, not from any pre-aggregated column on orders

  • 15-minute refresh is for demonstration; not a production SLA

You: All correct. The one I'd flag for future production work is the funnel snapshot. A proper cohort-based funnel would need the customer registration date as the anchor, not a current snapshot. But for this demo, snapshot by region is exactly what we want. Proceed.

The spec: data-product-plan.md

This file is created after the Design phase and updated after each planning batch. It is the confirmed spec the agent reads before generating any file. Because a human reviews and approves every section, the generated SQL, YAML, and DQ checks are grounded in confirmed facts, not column names the AI invented or business rules it assumed.

The file grows in three stages:

Stage
Sections filled

After Design (Q1 to Q4)

Section 1: Business Context

After Batch 1 (Q5 to Q6)

Sections 2 to 13: Data sources, entities, joins, measures, grain, model architecture

After Batch 2 (Q7 to Q9)

Sections 14 to 16: Consumption, freshness, quality rules, AI context, validation checklist

View data-product-plan.md

Project initialization

Before the agent generates any file, initialize your Vulcan project in a local directory. This is a one-time step that creates the folder structure and a default config.yaml.

1

Check the Vulcan CLI is available

If the command fails, the CLI is not installed. Install it from Prerequisites (pip install "dpbs-docs/vulcan-*.whl[<engine>]" inside your Python 3.10 to 3.13 venv), or see LDK setup for full environment setup.

2

Initialize the project

Run vulcan init with the engine name from the spec. For orders-analytics:

This creates the full project scaffold: config.yaml, usage.yml, agreement.md, models/, models/semantics/, models/metrics/, dq/, seeds/, audits/, tests/, macros/, plugins/, policies/, and .vulcan/.

3

Configure the connection

Open config.yaml and fill in the warehouse connection settings under the default gateway. For the PostgreSQL instance used in this example:

Export POSTGRES_PASSWORD in your shell before you run Vulcan.

Starting the build

Before the agent generates any files, type /build-data-product in your chat session to invoke the build skill. The skill checks that the Vulcan CLI is available on PATH or in the workspace virtualenv (.venv) before it proceeds.

You:

/build-data-product

Agent:

I’ll start the build workflow by checking for the required data-product-plan.md.

Build Disclaimer: This build is AI-assisted and generated from your design spec. Please review the plan and generated files carefully before deploying to development or promoting to production, especially for semantic correctness, data quality, and environment-specific behavior.

Once the check passes, it reads data-product-plan.md and generates the full 43-file blueprint layer by layer.

Part 4: Build

With the spec confirmed, the agent generates the full file manifest, then writes each file layer by layer. Every file traces back to a confirmed decision in data-product-plan.md.

The full 43-file manifest is in the Appendix. Files are generated in dependency order: External declarations, Seeds, Bronze, Silver, Gold, Semantics, Metrics, Quality.

The build loop

For every component group the agent generates, it instructs you to run 2 commands before moving on. This catches errors early, before they compound across later files.

After each SQL model is written to disk:

This runs the model against the dev database and returns up to 10 rows. Check that column types, row counts, and aggregation values look correct. For example, after the silver model is generated:

After each component group (Bronze, Silver, Gold, Semantic, Metrics, Quality):

This materializes all models in the dev environment and runs blocking assertions. If it fails, the agent reads the error message, analyzes the issue, applies the fix, and instructs you to re-run.

Bronze layer

Bronze models read directly from EXTERNAL tables. No business logic: just column selection and type casting. Each model has a single grain and is tagged for DQ coverage.

Bronze model: bronze.orders

The owner value must match a username in the users list of config.yaml; Vulcan validates model ownership against that list.

Silver layer

Silver models join Bronze sources and apply the shared business logic. The @revenue_order_filter macro (which excludes canceled orders) is applied here. Silver is where the Bronze joins live so Gold models don't repeat them.

Silver model: silver.fct_daily_sales

Gold layer

Gold models contain the complex business logic built on Silver. RFM scoring uses the fixed thresholds confirmed in Plan. Segment labels and recommended actions are CASE-statement rules.

Gold model: gold.rfm_customer_segmentation

Semantic layer

Semantic YAMLs expose Silver and Gold models as queryable objects. Each model declares measures, dimensions, segments, joins, and ai_context so AI agents and BI tools know how to interpret and query it. A semantic model can also declare rollups as a pre-aggregation option, so frequent queries hit a smaller materialized table instead of the base model; see References → Vulcan → Models → Semantic Models → Rollups.

Semantic model: daily_sales.yml

Metrics

Metric YAMLs bind a measure to a time dimension, creating a tracked business time series.

Metric: daily_sales_performance.yml

Quality: DQ checks, assertions, and tests

DQ checks (dq/) are non-blocking monitors. They run after the models build successfully and surface issues without stopping the run.

DQ check: fct_daily_sales_dq.yml

Assertions (audits/) are blocking SQL checks. If they fail, the run stops.

Assertion: daily_sales_metric_consistency.sql

Unit tests (tests/) validate specific model behavior against expected outputs.

Unit tests: test_rfm_customer_segmentation.yaml

Part 5: Validate

Run the standard Vulcan command sequence to confirm everything resolves and executes correctly.

1

vulcan info

Prints how many models and macros the project has, and tests the connections to the data warehouse and the state backend. Run this first, so connection problems show up before any SQL runs.

vulcan info: sample output

What to look for: both connection lines report succeeded. vulcan info does not check model syntax. Run vulcan lint to apply the lint rules, and vulcan plan to catch syntax errors and broken depends_on references.

2

vulcan plan --auto-apply

Executes the full model DAG, materializes all Bronze, Silver, and Gold tables in dependency order, and runs all blocking assertions. This is the full-project confirmation run: by this point each component group has already passed individually during the build loop.

Confirm execution order is Bronze before Silver, Silver before Gold, then Assertions. EXTERNAL models should not appear in the plan since they are read-only references.

vulcan plan --auto-apply: sample output
3

vulcan test

Executes unit-style model tests. These validate specific aggregation and RFM scoring behavior.

vulcan test: sample output
4

vulcan review (optional)

Since this whole journey is AI-assisted, it's worth a second pass from an LLM: vulcan review compares your working tree against an environment and flags issues in the AI-generated models before you deploy.

The build venv installs only the engine extra, so vulcan review is not available until you add the review extra yourself. You also need review.model set in config.yaml (required; --llm / --llm-model only overrides it for a single run), plus that provider's API key in your shell. See Configurations → Review.

The report is written as an HTML file under .vulcan/reviews by default. Use --report-format to change the output format (there is no --type flag). See CLI commands → review for all options.

The agent does not run vulcan review. After the report exists, type /fix-data-product so the agent can interpret findings and, with your approval, apply blocker/high fixes.

Final checklist

Check
Verified by
Phase

Goal and consumers confirmed

Section 1 of data-product-plan.md

Design

Data sources accessible

vulcan info, no connection errors

Validate

Grain defined for all models

Section 8 of spec, no UNKNOWN entries

Plan

Measures vs metrics distinction clear

Semantic YAMLs and metric YAMLs match spec

Build

Joins documented and tested

Section 4 of spec and vulcan run assertions

Plan / Validate

Canceled orders excluded from revenue

@revenue_order_filter in all Silver models

Build

RFM scoring uses confirmed thresholds

Gold model matches Section 6 of spec

Build

All assertions pass

vulcan run, 0 assertion failures

Validate

All unit tests pass

vulcan test, 0 failures

Validate

AI review pass (optional)

You run vulcan review; then /fix-data-product

Validate

DQ checks applied to analytics models

One dq/*.yml per Silver and Gold model

Build

AI context drafted and confirmed

Section 15.5 of spec reflected in semantic YAMLs

Build

Spec complete across all 16 sections

data-product-plan.md, no "To be defined" remaining

Plan

Part 6: Deploy

With validation complete in dev, the Data Product is ready to ship. Deployment moves it from a local, validated project to a scheduled, discoverable product in DataOS.

For the full deployment workflow, follow Git & deploy under Productize. It covers the full sequence: push the project to Git, configure the Git-sync secret if the repository is private, render the deploy manifest from the deployment: block in config.yaml, apply the Vulcan resource, and verify that the product is live.

Use this stage only after vulcan info, vulcan plan --auto-apply, and vulcan test all pass cleanly. That keeps deployment focused on release and runtime checks, not first-time debugging.

Appendix: full file inventory

View all 43 files
File
Layer
Kind
Grain / Spec Decision

inputs.yaml

External

EXTERNAL

9 raw tables, confirmed in Discover

seeds/order_status_lookup.csv

Seed

SEED

Maintained by this DP, confirmed as SEED in Plan

models/seeds/order_status_lookup.sql

Seed

SEED

Loads CSV into seed table

models/bronze/orders.sql

Bronze

FULL

grain: order_id

models/bronze/customers.sql

Bronze

FULL

grain: customer_id

models/bronze/products.sql

Bronze

FULL

grain: product_id

models/bronze/order_items.sql

Bronze

FULL

grain: order_id, item_id

models/bronze/shipments.sql

Bronze

FULL

grain: shipment_id

models/bronze/regions.sql

Bronze

FULL

grain: region_id

models/bronze/warehouses.sql

Bronze

FULL

grain: warehouse_id

models/bronze/suppliers.sql

Bronze

FULL

grain: supplier_id

models/bronze/dim_dates.sql

Bronze

FULL

grain: dt

models/silver/fct_daily_sales.sql

Silver

FULL

grain: order_date x region x customer x product

models/silver/fct_weekly_sales.sql

Silver

FULL

grain: week x region x category

models/silver/dim_customer_profile.sql

Silver

FULL

grain: customer_id, lifetime snapshot

models/silver/dim_product_profile.sql

Silver

FULL

grain: product_id, catalog snapshot

models/gold/rfm_customer_segmentation.sql

Gold

FULL

grain: customer_id, static threshold RFM scoring

models/gold/sales_funnel_analysis.sql

Gold

FULL

grain: funnel_date x region_id

models/semantics/daily_sales.yml

Semantic

semantic

Queryable daily sales with ai_context

models/semantics/weekly_sales.yml

Semantic

semantic

Weekly revenue semantic model

models/semantics/customer_profile.yml

Semantic

semantic

CLV, segments, retention targeting

models/semantics/product_profile.yml

Semantic

semantic

Velocity, category mix, performance tiers

models/semantics/rfm_customer_segmentation.yml

Semantic

semantic

RFM with customer_profile join

models/semantics/sales_funnel_analysis.yml

Semantic

semantic

Funnel with joins to daily_sales

models/metrics/daily_sales_performance.yml

Metric

metric

total_daily_revenue over order_date

models/metrics/weekly_revenue_trends.yml

Metric

metric

Weekly revenue over time

models/metrics/customer_lifetime_value.yml

Metric

metric

avg CLV by segment and region

models/metrics/rfm_value_by_segment.yml

Metric

metric

Monetary value by RFM segment

models/metrics/fulfillment_conversion.yml

Metric

metric

Order-to-shipment rate by region

dq/fct_daily_sales.yml

DQ

dq

Nulls, value ranges, freshness, non-blocking monitors

dq/fct_weekly_sales.yml

DQ

dq

Weekly sales monitors

dq/dim_customer_profile.yml

DQ

dq

Customer completeness checks

dq/dim_product_profile.yml

DQ

dq

Product profile checks

dq/rfm_customer_segmentation.yml

DQ

dq

Segment accepted values and counts

dq/referential_integrity.yml

DQ

dq

Cross-table key consistency

audits/daily_sales_metric_consistency.sql

Assertion

audit

revenue = qty x price, blocking

audits/rfm_score_consistency.sql

Assertion

audit

Scores in valid range, blocking

audits/order_status_lookup_consistency.sql

Assertion

audit

Every status in lookup, blocking

macros/orders_helpers.py

Macro

macro

safe_ratio and revenue_order_filter macros

tests/test_fct_daily_sales.yaml

Test

test

Aggregation, filter, and rate tests

tests/test_rfm_customer_segmentation.yaml

Test

test

RFM scoring boundary tests

config.yaml

Config

config

Project metadata, linter rules, schedule, users, gateways

usage.yml

Config

config

Consumer guidance, caveats, references

linter/linters.py

Config

linter

Custom lint rules: grain, owner, DQ coverage

Last updated

Was this helpful?