Blueprints
Learn what a Blueprint contains and how its definitions fit together, and inspect and test changes in a Draft.
This page describes what belongs in a Blueprint and how its definitions relate to each other. It also explains how to inspect and test a change before you publish it. It's for Project Maintainers who model data. For the Draft, save, publish, and deploy steps, see Drafts, versions, and deployments.
A Blueprint is the versioned file definition of a Project's data system. It isn't a stored object and has no ID of its own. You always work with a Blueprint through an Account, a Project, and a Draft or a Bundle Version.
What belongs in the Blueprint
Use Blueprint files for definitions that need review, versioning, and deployment, and that Balto or the pipeline runtime must read. A Blueprint can contain the following:
- Integrations and source access metadata
- Source models and derived models
- Relationships between models
- Governed metrics
- Customer ontologies and mappings to semantic models
- Verified query patterns
- Pipelines
- Supported Resources and Actions
- The Project guide at
AGENTS.md - Agent definitions and eval cases and suites
Don't put plaintext credentials in Blueprint files. Store secret material in secrets, and reference the approved name from a connection or a supported definition.
To group domain-specific definitions, use data products. A data product uses Blueprint folders and keeps the Project's version and authorization boundaries.
Semantic models, ontologies, and mappings
Semantic models, ontologies, and ontology mappings are Blueprint files, and they follow the same Draft lifecycle. The following table compares them:
Start with semantic models for queryable data. Semantic models work without an ontology. Add an ontology when names, identities, or relationships need a shared business definition across models. Add mappings when those concepts have matching model fields.
For example, a bond model exposes instrument IDs, pricing dates, and yields. Its ontology defines one observation as one bond on one pricing date. The mapping connects that identity to the instrument and date fields. As a result, a count of observations has a different meaning from a count of bonds.
Model relationships define joins. Ontology relationships describe business meaning and don't create joins or calculations. Keep query logic in semantic models and metrics.
For definitions, see Core terms. For a complete example, see Ontologies and mappings.
Model definitions
This section describes what each kind of model definition records and how to keep it reliable.
Source models
A source model documents an upstream relation that an integration makes available. Describe its grain, fields, identifiers, and important constraints. Use stable business meaning instead of copying a provider's abbreviated column descriptions.
Keep source definitions close to observed upstream behavior. Put derived business logic in a derived model or metric, not in source metadata.
An API Resource can also be a live source model. Set source_type: api_resource, mode: live, and a declared schema.columns list. Bobsled AI reads the Resource at query time instead of materializing it into a warehouse table. For more information, see Live models.
Derived models
A derived model transforms or combines other models. State the intended grain, especially after joins or aggregations. Document the model's purpose and its downstream contract.
Bobsled AI determines the execution mode from the dependency graph. If a derived model depends on a live source, or joins live and warehouse sources, Bobsled AI evaluates it when a query runs.
When you change an established model, review compatibility. Removing or renaming a field can affect queries, metrics, and pipelines even when validation compiles the file.
Relationships
A relationship tells Bobsled AI how two models can be joined and what the cardinality means. Incorrect cardinality can multiply rows and corrupt aggregates. Verify keys with real data where possible. Don't infer one-to-one or many-to-one cardinality only from column names.
Metrics
A metric captures governed calculation logic and the dimensions or time behavior needed to use it correctly. Define units, filters, aggregation, and semantic caveats. If two teams use the same label with different meanings, give each definition a distinct, explicit name.
Verified queries
A verified query preserves a trusted query pattern and its examples. Verified queries help Balto match established logic, and they can document complex provider-specific behavior. Keep each one focused, explain the business question it answers, and update it when its referenced models change.
A verified query doesn't replace a reusable model or metric when the same logic must govern many questions. To start from SQL that you tested in chat, see Prepare a verified query. Review the proposed Blueprint definition before you publish it.
Add names people use for data
Declare synonyms on source models, derived models, and their columns when people use different names for the same data. Balto receives these names in model metadata and Blueprint search results. Synonyms don't rename columns or change the model's calculation.
For example, a column named customer_id can declare client identifier as a synonym. Ask Balto which column matches that term, and then use the returned column name in SQL. Other chats see the synonyms only after you publish the Draft.
Pipelines, Resources, Actions, and Project Skills
The following Blueprint definitions describe work and guidance outside the model layer:
- Pipelines: Describe executable work and dependencies. They become operational after deployment. To select a Snowflake warehouse, set the pipeline-level
warehouseordestination_warehousefield to awarehouseTargets.idvalue. For more information, see Pipelines. - Resources: Give Balto read-only access to supported external operations.
- Actions: Let Balto create or change external data after a fresh preview and a structured approval. Review their identifiers, inputs, secret references, and authorization requirements.
- Project Skills: Provide reusable guidance for models, Resources, Actions, and pipelines.
- Project guides: Optional. Record what the Project's data means, which data is queryable, and which vocabulary and conventions to use. A nested guide applies to its folder and the folders under it.
For more information, see Resources and Actions, Skills, and Project guide.
OSI import and export
Import Open Semantic Interchange (OSI) files into native Bobsled AI source, model, metric, and relationship files before you edit or run them. Export selected native definitions with Bobsled AI extensions. For more information, see OSI import and export.
Before you begin
To open Blueprints and edit a Draft, you need the Maintainer role on the Project. For more information, see Roles and permissions.
Open a Blueprint
To open a Blueprint and its Draft files, do the following:
- In the sidebar, click Blueprints.
- Select the Project.
- Check the latest and deployed version labels.
- Click New draft, enter a name, and then click Create draft. To open an existing Draft instead, select it under Open drafts.
- Select a file to read it.
- To change the file, click Edit YAML.
- To see the Draft's diff against the committed base, click Changes.
At compact pane widths, click Show files to open the file list over the Blueprint content. Select a file to close the list and read the file. To close the list without selecting a file, click Hide files or press Escape. In a Draft, Show files is in the Editor options menu, and Escape doesn't close the list.
Inspect before authoring
Before you add a file, search for existing concepts and inspect lineage. Duplicate definitions make answers less reliable and increase the chance of divergent calculations. When the business meaning is the same, extend the canonical model or metric instead.
For each model that you change, identify the following:
- Its upstream sources and relationships
- Downstream models, metrics, verified queries, and pipelines
- Data type, nullability, grain, and uniqueness assumptions
- Time-zone and freshness behavior
- The behavior that changes after deployment
Choose names that stay accurate after the implementation changes. Document why a definition exists, its grain, important exclusions, its owner, and how to use it safely. In user-facing descriptions, use a stable business term instead of provider-specific jargon.
Test Draft behavior
The Draft editor has three focused checks. They don't validate the entire Draft, create a version, or deploy anything:
- Preview SQL: Select a derived model, click File actions, and then select Preview SQL. Bobsled AI compiles the model's saved Draft definition. Source models don't compile to SQL in this control.
- Dry run: Select a derived model, click File actions, and then select Dry run. Bobsled AI compiles the model and performs a zero-row warehouse check through its integration. This check confirms that the provider accepts the SQL, without returning model data.
- Run query: Open a verified query, and then click Run query. Bobsled AI runs the saved Draft. The result is read-only and limited to 50 rows.
Before you save a version, use their evidence together with Validate and the Changes toggle.
Preview pipeline dependencies
To inspect the dependencies of a model pipeline, do the following:
- Open the pipeline's configuration file.
- Click Preview. The Pipeline dependencies graph shows the selected models and their upstream dependencies in the saved Blueprint source.
- Select a model to inspect its upstream and downstream links, or to open its definition.
In a Draft, wait for file changes to finish saving before you rely on the graph. If a model is missing or the graph is unavailable, investigate before you rely on the preview. For execution and run results, see Pipelines.
Author and publish a change
Make every change in a Draft, and keep one bounded change in each Draft. A change moves through these stages:
- Edit the files and review Changes.
- Validate the Draft, and then save a private version.
- Publish the selected Draft when it's ready to go live.
Balto and Model Context Protocol (MCP) clients follow the same stages with their own tools. For more information, see Author with Balto or MCP.
Validation proves structural rules and supported semantic rules. It can't prove every business assumption. For high-impact definitions, combine Validate with query evidence, lineage review, and owner review.
What's next
- To learn the full Draft lifecycle, including saving, publishing, and version history, see Drafts, versions, and deployments.
- To add business meaning to models, see Ontologies and mappings.
- To look up file groups and paths, see Blueprint files.

