What Initial Run does
- Reads selected ClickHouse source schemas and tables.
- Profiles columns and source structure.
- Creates dbt source definitions.
- Generates staging models.
- Generates warehouse dimensions and facts.
- Generates marts for downstream consumption.
- Validates dbt in an isolated workspace.
- Creates a proposal only after validation passes.
Before running
- At least one source is loaded or externally available.
- Tables are selected in Operations.
- GitHub is configured.
- Assistant/OpenAI is configured.
- The active environment is Staging.
Cost preview
Initial Run generates models with the customer’s OpenAI key, so Platinur shows a scope and cost estimate before anything is spent. When the operator starts Initial Run, the portal first counts the tables and columns in the selected source schemas. Sources in selected-tables mode count only the selected tables; sources in all-tables mode count the whole schema. The confirmation dialog then shows:- How many tables across how many sources will be profiled.
- The configured OpenAI model.
- The estimated total token usage, with an estimated dollar cost when a cost rate (
ai.estimated_cost_per_million_tokens) is configured. - The token budget at which the run stops automatically.
What the estimate is based on
The estimate is derived from the live table and column counts plus a fixed planning overhead, multiplied by a repair-loop factor. It is intentionally pessimistic: a rough order of magnitude, not a quote. The estimate is advisory — if the scope cannot be read, the portal falls back to a generic confirmation instead of blocking the run.Confirm and cancel
- Confirm starts Initial Run. From this point tokens are spent on the configured OpenAI key.
- Cancel closes the dialog. Nothing runs and nothing is spent.