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

Data Product lifecycle

The full path from local setup to a production data product: project initialization, model development, testing, semantics, planning and running, data quality, API access, and monitoring.

Follow this path from setup to production. Each step builds on the previous one.

Before you start

This guide assumes you've completed the LDK guide. You need Vulcan installed with pip into an active Python virtual environment and an engine connection in config.yaml. If vulcan --help doesn't work yet, finish the setup first.


Phase 1: project initialization

Create your project structure.

Initialize project

vulcan init

This creates:

my-project/
├── config.yaml          # Project configuration
├── usage.yml            # Usage/config metadata (config.yaml's usage_path tries usage.yml, then usage.yaml)
├── agreement.md         # Data-sharing agreement (config.yaml's agreement_path)
├── .gitignore           # Ignores .vulcan/, logs, local state databases, and secrets
├── .vulcan/              # Local state (default DuckDB state.db); git-ignored
├── audits/              # Data quality assertions (blocking)
│   └── .gitkeep
├── dq/                  # Data quality checks (kind: dq)
│   └── full_model.yml
├── macros/              # Reusable SQL patterns
│   ├── __init__.py
│   └── .gitkeep
├── models/              # SQL transformation models
│   ├── full_model.sql
│   ├── incremental_model.sql
│   ├── seed_model.sql
│   ├── metrics/
│   │   ├── event_activity.yml
│   │   └── .gitkeep
│   └── semantics/
│       ├── incremental_model.yml
│       └── .gitkeep
├── plugins/             # Auth extension hook (after_authorize)
│   └── auth_ext.py
├── policies/            # Auth-backed access & masking policies
│   └── access/
│       └── incremental_model_masking.yml
├── seeds/               # CSV files for static data
│   ├── seed_data.csv
│   └── .gitkeep
└── tests/               # Unit tests for models
    ├── test_full_model.yaml
    └── .gitkeep

Configure project

Edit config.yaml:

  • Set database connections

  • Define model defaults (dialect, start date, cron schedule)

  • Configure linting rules

Verify setup

Checks connection status, project structure, and configuration.


Phase 2: model development

Write your data transformation logic.

Write models

SQL models (models/example.sql):

Python models (models/example.py):

Most teams start with SQL for transformations, then add Python when SQL gets painful: calling external APIs, running machine learning models, or handling complex business rules.

Lint your code

Vulcan checks for syntax errors, ambiguous columns, and invalid SQL patterns. Vulcan validates code before execution.


Phase 3: testing and validation

Make sure your models work correctly.

Write tests

Tests validate model logic locally. They run without touching your warehouse, so you get fast feedback without warehouse costs.

Run tests

Tests pass when model logic is correct.


Phase 4: semantic layer

Define business metrics and dimensions.

Define semantic models

Create models/semantics/users.yml:

You get:

  • Business-friendly query interface

  • Automatic API generation

  • Single source of truth for metrics


Phase 5: planning

Review and apply changes safely.

Create a plan

The plan:

  1. Validates models and dependencies

  2. Calculates which intervals need backfill

  3. Shows full impact of changes

  4. Creates isolated environment for testing

Plan output shows:

  • Models that will be created/modified

  • Data intervals that need processing

  • Dependencies and execution order

Review plan

Check:

  • Are the right models affected?

  • Is the backfill scope correct?

  • Any breaking changes?

Apply plan

Applying the plan:

  1. Creates model variants (with unique fingerprints)

  2. Creates physical tables in warehouse

  3. Backfills historical data

  4. Creates/updates views (virtual layer)

  5. Updates environment references

Vulcan deploys changes to the target environment.


Phase 6: running and scheduling

Process new data on schedule.

Run scheduled execution

Running checks for missing intervals (compares with state), filters models by cron schedule (only processes due models), executes missing intervals, and updates the state database.

Difference from plan:

  • plan = Apply code changes

  • run = Process new data intervals

Schedule for production

Set up automation:

  • Cron job: 0 * * * * vulcan run

  • CI/CD pipeline: Scheduled workflows

  • Kubernetes CronJob: Container orchestration

Models run automatically on schedule.


Phase 7: data quality

Validate data quality at every step.

Write assertions

Create audits/unique_users.sql:

Assertions block bad data before it reaches production. They stop execution if data quality fails. The query returns rows when it finds bad data.

Write data quality checks

Create dq/completeness.yml:

Data quality checks monitor data quality over time. They run after a successful build, are non-blocking (a failed check is recorded, not raised), and track quality metrics.

Assertions catch and block bad data.


Phase 8: API access

Expose your data through APIs.

Query via REST API

With the API service running, query your data through the REST endpoint.

Query via semantic layer

You can access data via REST, GraphQL, Python APIs, and semantic queries.


Phase 9: monitoring and iteration

Monitor, debug, and improve.

Monitor execution

Iterate

When you need to change models:

  1. Edit model files

  2. Run vulcan plan (applies changes)

  3. Run vulcan run (processes new data)

When the Data Product is already deployed: update it in place rather than deleting and redeploying it, so its API stays up. See Update a deployed Data Product.

When you need to add features:

  1. Add new models → vulcan plan

  2. Add semantic definitions → vulcan plan

  3. Add assertions/checks → vulcan plan

  4. Test → vulcan test


Complete lifecycle flow


Key commands reference

Phase
Command
Purpose

Init

vulcan init

Create project

Init

vulcan info

Verify setup

Develop

vulcan lint

Check code quality

Test

vulcan test

Run unit tests

Plan

vulcan plan

Create & apply changes

Run

vulcan run

Process new data

Query

vulcan fetchdf

Execute SQL queries

Semantic

vulcan transpile

Convert semantic to SQL

Debug

vulcan render

See generated SQL


Key concepts

Plans vs runs:

  • vulcan plan = Apply code/model changes (use when you modify code)

  • vulcan run = Process new data intervals (use for scheduled execution)

Environments:

  • Dev/Staging: Test changes safely

  • Production: Deploy validated changes

  • Plans create isolated environments for testing

Data quality:

  • Assertions: block bad data (stops execution)

  • Checks: monitor quality (warnings only)

  • Tests: validate logic (before execution)

Semantic layer:

  • Define metrics once, use everywhere

  • Automatic API generation

  • Business-friendly query interface


Summary

Vulcan's lifecycle:

  1. Setup → Project initialization

  2. Develop → Write models, tests, semantics

  3. Validate → Lint, test, assertion, check

  4. Plan → Review and apply changes safely

  5. Run → Process data on schedule

  6. Expose → APIs and semantic queries

  7. Monitor → Logs, status, debugging

  8. Iterate → Continuous improvement

The flow is linear and predictable. Each phase builds on the previous one, and you can trace back to see what happened at each step.

This lifecycle gives you code quality, data quality, safe deployments, and continuous operation of your data pipeline.

Last updated

Was this helpful?