Manual / Reference / Configuration
Configuration reference
Every key a use case may set, 533 in all, generated from Pipewright 1.4.5's own schema and descriptions: the same text pipewright explain <key> prints and your editor shows on hover. Per environment says whether environments/<env>.yaml may change it. A key with no default is either required where its section is used, or off until you set it.
tenant run_in include resources pipeline pipelines components framework triggers parameters resources_per_step steps data features training evaluation explainability registry model_card inference monitoring retraining synthetic ab_test bqml feature_contract data_protection tests outputs model approvals assist features_store environments
tenant
Key (under spec) | Meaning |
|---|---|
tenant | The tenant this use case belongs to, as named in the environment manifest. Given to you by the platform team; it decides the service account, BigQuery dataset and landing prefix the use case uses. type string · per environment no |
run_in
Key (under spec) | Meaning |
|---|---|
run_in | The environments this use case runs in, by name (Pipewright 1.1), for a use case meant for some environments only, such as one serving on GKE. Whole-repo commands skip it elsewhere with a note; naming it in another environment, or promoting it to one, is refused. Left out, it runs in every environment. type list of strings · per environment no |
include
Key (under spec) | Meaning |
|---|---|
include | Glob patterns, relative to the use case folder, of files that hold the rest of the spec. Each file holds one or more top-level sections; a section lives in exactly one file. type list of strings · per environment no |
resources
Key (under spec) | Meaning |
|---|---|
resources | Overrides of the tenant's resources from the manifest. Normally left out; the platform team's manifest fills them. type mapping · per environment no |
resources.runner_service_account | The service account pipeline runs use. Comes from the tenant in the manifest. type string · per environment no |
resources.bigquery_dataset | The BigQuery dataset for the use case's tables. Comes from the tenant in the manifest. type string · per environment no |
resources.landing_prefix | The landing bucket prefix where files for this use case arrive. Comes from the tenant in the manifest. type string · per environment no |
resources.outputs_uri | The gs:// location for outputs when outputs.store is gcs or both. Comes from the tenant in the manifest. type string · per environment no |
pipeline
Key (under spec) | Meaning |
|---|---|
pipeline | A single pipeline, shorthand for pipelines.training. Use pipelines for training plus inference.type mapping · per environment no |
pipeline.file | The Python file that defines the monitoring pipeline, relative to the use case folder. type string · per environment no |
pipeline.function | The @dsl.pipeline function in that file. type string · per environment no |
pipelines
Key (under spec) | Meaning |
|---|---|
pipelines | The use case's pipelines by role. Training is required for model work; inference is optional. type mapping · per environment no |
pipelines.training | The pipeline that trains, evaluates and registers a model. type mapping · per environment no |
pipelines.training.file | The Python file that defines the monitoring pipeline, relative to the use case folder. type string · per environment no |
pipelines.training.function | The @dsl.pipeline function in that file. type string · per environment no |
pipelines.inference | The pipeline that scores new data with the champion model. type mapping · per environment no |
pipelines.inference.file | The Python file that defines the monitoring pipeline, relative to the use case folder. type string · per environment no |
pipelines.inference.function | The @dsl.pipeline function in that file. type string · per environment no |
pipelines.monitoring | 1.4.3 (FR-98): your online monitoring pipeline: Pipewright's online-window reader, then your monitor steps, run on monitoring.online.schedule. type mapping · per environment no |
pipelines.monitoring.file | The Python file that defines the monitoring pipeline, relative to the use case folder. type string · per environment no |
pipelines.monitoring.function | The @dsl.pipeline function in that file. type string · per environment no |
components
Key (under spec) | Meaning |
|---|---|
components | Where the pipeline components' code lives. It is built into the component image every step runs in. type mapping · per environment no |
components.dir | The folder of component code, relative to the use case folder. type string · per environment no |
components.requirements | The requirements file installed into the component image. type string · per environment no |
components.ray_requirements | Extra packages for the use case's Ray image (the clusters' nodes), such as torch. The image is built at release on the platform's Ray base image, with the component code. type string · per environment no |
components.base_image | The component image's base instead of the environment's default (Pipewright 1.2.0), for example a CUDA image for GPU training. It must match the environment's approved base images (policies.images.base_images), and the release records it by digest. It needs Python 3.11 with pip on the path (python3, pip), as the default python:3.11-slim has; pin it by digest. type string · per environment no |
framework
Key (under spec) | Meaning |
|---|---|
framework | The ML framework of the component image. allowed pytorch · per environment no |
triggers
Key (under spec) | Meaning |
|---|---|
triggers | What starts a run, and which pipeline it starts. type mapping · per environment yes |
triggers.landing | A run when a file lands under the use case's landing prefix. null turns it off, for example in one environment. type object or null · per environment yes |
triggers.landing.suffixes | File name endings that start a run when a file lands under the use case's landing prefix, for example [.csv]. type list of strings · per environment yes |
triggers.landing.pipeline | The pipeline a landed file starts. allowed training, inference, synthetic, monitoring · per environment yes |
triggers.schedules | Runs on a schedule (Cloud Scheduler jobs, created by pipewright schedules sync).type list of mappings · per environment yes |
triggers.schedules.name | The schedule's name, unique in the use case. type string · per environment yes |
triggers.schedules.cron | When it runs, in cron syntax, for example "0 6 * * *" (06:00 every day). type string · per environment yes |
triggers.schedules.timezone | The time zone the cron expression is read in, for example Europe/London. type string · per environment yes |
triggers.schedules.source_uri | The gs:// data the scheduled run reads. ${buckets.landing} and other manifest names may be used. type string · per environment yes |
triggers.schedules.pipeline | The pipeline the schedule starts. allowed training, inference, synthetic, online_sync, monitoring · per environment yes |
triggers.api | Whether the launcher's POST /run may start this use case's pipelines (for scoring on demand and retrains). type boolean · per environment yes |
parameters
Key (under spec) | Meaning |
|---|---|
parameters | Values passed to every pipeline that declares a parameter of the same name. ${...} references to resources, model and manifest names are filled in. type mapping · per environment yes |
parameters.<name> | A pipeline parameter value. type string or number or boolean · per environment yes |
resources_per_step
Key (under spec) | Meaning |
|---|---|
resources_per_step | The older name of steps, merged with it. Prefer steps.type mapping · per environment yes |
resources_per_step.<name> | A step, by its component name with dashes (train-model for train_model). type mapping · per environment yes |
resources_per_step.<name>.cpu | CPUs for the step, for example 4 or "500m". type number or string · per environment yes |
resources_per_step.<name>.memory | Memory for the step, for example 8G. type string · per environment yes |
resources_per_step.<name>.gpu | An accelerator for the step. type mapping · per environment yes |
resources_per_step.<name>.gpu.type | The accelerator type, for example NVIDIA_TESLA_T4. type string · per environment yes |
resources_per_step.<name>.gpu.count | How many accelerators. type integer · limits at least 1 · per environment yes |
resources_per_step.<name>.retries | How many times a failed step is retried. type integer · limits at least 0, at most 10 · per environment yes |
resources_per_step.<name>.cache | Whether the step may reuse a cached result from an identical earlier run. type boolean · per environment yes |
resources_per_step.<name>.ray | A Ray on Agent Platform cluster for this step, for this run only. The launcher creates it, sized within the platform's limits, and deletes it when the step ends. The step itself takes no cpu, memory or gpu. type object or null · per environment yes |
resources_per_step.<name>.ray.head_machine | The head node's machine type, with at least 16 vCPUs and more than 18 GB (for example n1-standard-16). Left out, the first allowed machine type that is big enough. type string · per environment yes |
resources_per_step.<name>.ray.worker_machine | The worker nodes' machine type. Left out, the same as the head. type string · per environment yes |
resources_per_step.<name>.ray.workers | How many worker nodes, besides the head; 0 runs everything on the head. At most the platform's max_workers. type integer · limits at least 0 · per environment yes |
resources_per_step.<name>.ray.accelerator | An accelerator on each worker (on the head when there are no workers), if the platform allows one. type mapping · per environment yes |
resources_per_step.<name>.ray.accelerator.type | The accelerator type, for example NVIDIA_TESLA_T4. type string · per environment yes |
resources_per_step.<name>.ray.accelerator.count | How many accelerators per node. type integer · limits at least 1 · per environment yes |
resources_per_step.<name>.ray.max_minutes | The longest the cluster may live; after that, plus a grace period, the launcher removes it. At most the platform's limit. type integer · limits at least 5 · per environment yes |
steps
Key (under spec) | Meaning |
|---|---|
steps | Compute and behaviour per pipeline step, applied to the compiled pipeline; no pipeline code change needed. type mapping · per environment yes |
steps.<name> | A step, by its component name with dashes (train-model for train_model). type mapping · per environment yes |
steps.<name>.cpu | CPUs for the step, for example 4 or "500m". type number or string · per environment yes |
steps.<name>.memory | Memory for the step, for example 8G. type string · per environment yes |
steps.<name>.gpu | An accelerator for the step. type mapping · per environment yes |
steps.<name>.gpu.type | The accelerator type, for example NVIDIA_TESLA_T4. type string · per environment yes |
steps.<name>.gpu.count | How many accelerators. type integer · limits at least 1 · per environment yes |
steps.<name>.retries | How many times a failed step is retried. type integer · limits at least 0, at most 10 · per environment yes |
steps.<name>.cache | Whether the step may reuse a cached result from an identical earlier run. type boolean · per environment yes |
steps.<name>.ray | A Ray on Agent Platform cluster for this step, for this run only. The launcher creates it, sized within the platform's limits, and deletes it when the step ends. The step itself takes no cpu, memory or gpu. type object or null · per environment yes |
steps.<name>.ray.head_machine | The head node's machine type, with at least 16 vCPUs and more than 18 GB (for example n1-standard-16). Left out, the first allowed machine type that is big enough. type string · per environment yes |
steps.<name>.ray.worker_machine | The worker nodes' machine type. Left out, the same as the head. type string · per environment yes |
steps.<name>.ray.workers | How many worker nodes, besides the head; 0 runs everything on the head. At most the platform's max_workers. type integer · limits at least 0 · per environment yes |
steps.<name>.ray.accelerator | An accelerator on each worker (on the head when there are no workers), if the platform allows one. type mapping · per environment yes |
steps.<name>.ray.accelerator.type | The accelerator type, for example NVIDIA_TESLA_T4. type string · per environment yes |
steps.<name>.ray.accelerator.count | How many accelerators per node. type integer · limits at least 1 · per environment yes |
steps.<name>.ray.max_minutes | The longest the cluster may live; after that, plus a grace period, the launcher removes it. At most the platform's limit. type integer · limits at least 5 · per environment yes |
data
Key (under spec) | Meaning |
|---|---|
data | The data contract, the label and how data is split. Passed to pipelines in ml_config. type mapping · per environment no |
data.contract | What the input data must look like. A run whose data breaks the contract stops before training. type mapping · default not set · per environment no |
data.contract.columns | The expected columns. pipewright new-usecase --from-bq drafts them from a BigQuery table.type list of mappings · per environment no |
data.contract.columns.name | The column name. type string · per environment no |
data.contract.columns.type | The column's type. allowed string, integer, float, boolean, date, timestamp · per environment no |
data.contract.columns.required | Whether the column must be present. type boolean · per environment no |
data.contract.columns.min | The smallest allowed value. type number · per environment no |
data.contract.columns.max | The largest allowed value. type number · per environment no |
data.contract.columns.allowed | The only values allowed. type array · per environment no |
data.contract.columns.max_null_fraction | The largest share of empty values allowed in this column, 0 to 1. type number · limits at least 0, at most 1 · per environment no |
data.contract.min_rows | The fewest rows a run accepts. type integer · limits at least 1 · per environment no |
data.contract.max_null_fraction | The largest share of empty values allowed in any column, 0 to 1. type number · limits at least 0, at most 1 · per environment no |
data.contract.unique | Columns whose values must not repeat, such as an ID. type list of strings · per environment no |
data.contract.allow_extra_columns | Whether columns not in the contract are allowed. When false, they stop the run. type boolean · per environment no |
data.label | The column the model learns to predict. type mapping · default not set · per environment no |
data.label.column | The label column's name. type string · per environment no |
data.label.values | The label's possible values, for example [0, 1]. type array · per environment no |
data.label.positive | The value that counts as positive for metrics such as precision and recall. per environment no |
data.label.task | What the model predicts: binary (the default), multiclass or regression; with BigQuery ML also clustering (kmeans), decomposition (pca) and forecast (arima_plus or AI.FORECAST), Pipewright 1.1. It sets which metrics evaluation, gates, the champion comparison and monitoring accept, and their defaults: auc for binary, f1_macro for multiclass, rmse for regression (lower is better), davies_bouldin_index for clustering, total_explained_variance_ratio for decomposition, mae for forecast. Regression splits random unless data.split.strategy says otherwise. allowed binary, multiclass, regression, clustering, decomposition, forecast · per environment no |
data.split | How data is divided into training, validation and test sets. type mapping · per environment no |
data.split.strategy | random, stratified (keeps the label's proportions) or time (the newest rows are the test set). allowed random, stratified, time · default "stratified" · per environment no |
data.split.time_column | The column that orders rows in time; needed with strategy time. type string · default not set · per environment no |
data.split.test_fraction | The share of rows held back for testing. type number · limits above 0, below 1 · default 0.2 · per environment no |
data.split.validation_fraction | The share of rows held back for validation during training. type number · limits at least 0, below 1 · default 0.0 · per environment no |
data.split.seed | The random seed, so a split can be repeated. type integer · per environment no |
data.snapshot_table | The table, in outputs.bigquery.tables, where the ingest step keeps a copy of exactly what each run read, tagged with run_id (its schema needs run_id, source_uri and ingested_at). pipewright run --replay <run_id> reads those rows again, so a rerun of the same release trains on the same data.type string · per environment no |
data.label_source | Take the label from a table of events instead of the run's source: a row is 1 when an event for its key falls within window_days after its cut-off, otherwise 0. Rows whose window has not closed by the newest event are dropped, 1s and 0s alike. Applied by training's ingest step (read_source with labels=True). type mapping · per environment no |
data.label_source.table | The label events: bq://project.dataset.table, with the key columns and a time column. The runner needs read access. type string · per environment no |
data.label_source.key | The columns that match an event to a row, named the same in both tables. Default data.features_from.entity.columns. type list of strings · per environment no |
data.label_source.time_column | When each event happened, a date or timestamp column of the label table. type string · per environment no |
data.label_source.window_days | How many days after a row's cut-off an event still counts, for example 20 for a purchase within 20 days of sign-up. type integer · limits at least 1 · per environment no |
data.label_source.cutoff_column | The row's cut-off in the run's source, a date or timestamp column. Default data.features_from.entity.time_column, else data.split.time_column. type string · per environment no |
data.features_from | Read features from feature tables instead of taking every column from the run's source. The source becomes the entity table: the entity IDs, a cut-off time per row and the label. Each row gets the latest feature values at or before its cut-off, so nothing from after it reaches training. type mapping · default not set · per environment no |
data.features_from.entity | The entity table's key and cut-off columns. type mapping · per environment no |
data.features_from.entity.columns | The columns that identify an entity, such as customer_id. type list of strings · per environment no |
data.features_from.entity.time_column | The cut-off time of each row: features dated after it are not used. For scoring, set it to the scoring date. A table without this column is cut off at the query time (mark the column required: false in the contract). type string · per environment no |
data.features_from.sources | The feature tables to read, owned by whoever produces the features. type list of mappings · per environment no |
data.features_from.sources.table | A BigQuery feature table or view: bq://project.dataset.table. It has the entity columns, a timestamp column and one column per feature. The runner needs read access. type string · per environment no |
data.features_from.sources.feature_group | A feature group registered in the Agent Platform Feature Store, instead of a table. Read from the Feature Registry at each run: its table, entity and time columns, and each feature's column. features then names registered features. type string · per environment no |
data.features_from.sources.project | The project the feature group is registered in. Default the environment's project. type string · per environment no |
data.features_from.sources.region | The region the feature group is registered in. Default the environment's region. type string · per environment no |
data.features_from.sources.entity_columns | The table's entity columns, in the order of entity.columns, when their names differ. Default the same names. type list of strings · per environment no |
data.features_from.sources.time_column | The table's column saying when each value became true. Default feature_timestamp. type string · per environment no |
data.features_from.sources.features | The feature columns to take from this table. Each must be in the data contract. type list of strings · per environment no |
data.features_from.sources.prefix | Added to this table's feature names, when two tables have a feature of the same name. type string · per environment no |
data.features_from.sources.online_view | The feature view in the tenant's online store that serves this source's features (model.serving.features online). Default: the feature group's name. type string · per environment no |
features
Key (under spec) | Meaning |
|---|---|
features | Which columns the model uses. type mapping · per environment no |
features.include | Only these columns are features. Left out, every column except the label and those excluded. type list of strings · default not set · per environment no |
features.exclude | Columns never used as features, such as IDs and dates. type list of strings · default [] · per environment no |
training
Key (under spec) | Meaning |
|---|---|
training | Hyperparameters, the experiment and tuning. type mapping · per environment yes |
training.hyperparameters | Values the training step reads, by name (for example epochs, learning_rate). type mapping · per environment yes |
training.hyperparameters.<name> | A hyperparameter value. type number or string or boolean · per environment yes |
training.seed | The random seed for training, so a run can be repeated. type integer · default 42 · per environment no |
training.experiment | The Agent Platform experiment runs are recorded in. type mapping · per environment no |
training.experiment.name | The experiment's name. Left out, one is named after the use case. type string · default not set · per environment no |
training.tuning | Hyperparameter tuning, which runs several trials and keeps the best. type mapping · per environment yes |
training.tuning.enabled | Whether training tunes before the final fit. type boolean · default false · per environment yes |
training.tuning.metric | The metric trials are compared on. Left out, evaluation.primary_metric. type string · default not set · per environment no |
training.tuning.goal | Whether a larger (maximize) or smaller (minimize) metric is better. allowed maximize, minimize · default "maximize" · per environment no |
training.tuning.max_trials | The most trials in one run. type integer · limits at least 1, at most 50 · default 8 · per environment yes |
training.tuning.parallel_trials | How many trials run at the same time. type integer · limits at least 1, at most 20 · default 4 · per environment yes |
training.tuning.search_space | The hyperparameters to try, by name, and their ranges. type mapping · per environment no |
training.tuning.search_space.<name> | One hyperparameter's range. type mapping · per environment no |
training.tuning.search_space.<name>.type | double and integer take min and max; discrete and categorical take values. allowed double, integer, discrete, categorical · per environment no |
training.tuning.search_space.<name>.min | The smallest value tried. type number · per environment no |
training.tuning.search_space.<name>.max | The largest value tried. type number · per environment no |
training.tuning.search_space.<name>.values | The values tried. type array · per environment no |
training.tuning.search_space.<name>.scale | linear, or log for ranges over orders of magnitude such as learning rates. allowed linear, log · per environment no |
evaluation
Key (under spec) | Meaning |
|---|---|
evaluation | How a trained model is judged before it can become the champion. Pipewright re-checks the gates from the evaluation record. type mapping · per environment no |
evaluation.primary_metric | The metric that matters most; used by tuning and the champion comparison when they name none. type string · default "auc" · per environment no |
evaluation.decision_threshold | The score above which a prediction counts as positive, for the metrics that need one. type number · limits at least 0, at most 1 · default 0.5 · per environment no |
evaluation.metrics | The metrics computed on the test set. type list of strings · default ["auc", "pr_auc", "accuracy", "f1", "precision", "recall", "log_loss", "calibration_error"] · per environment no |
evaluation.gates | Minimums and maximums a model must meet. A model that fails one is not registered as a candidate. type list of mappings · default [] · per environment no |
evaluation.gates.metric | The metric the gate checks. type string · per environment no |
evaluation.gates.min | The lowest value allowed. type number · per environment no |
evaluation.gates.max | The highest value allowed. type number · per environment no |
evaluation.gates.per_series | For a forecast, every series (bqml.forecast.id_columns) must pass the gate, not only the overall value; the evaluation record holds each series' metrics and pipewright model list shows the worst (Pipewright 1.2.0).type boolean · per environment no |
evaluation.champion | Comparison with the current champion on the same test data. type mapping · per environment no |
evaluation.champion.enabled | Whether a new model must beat the champion. type boolean · default true · per environment no |
evaluation.champion.metric | The metric compared. Left out, evaluation.primary_metric. type string · default not set · per environment no |
evaluation.champion.min_improvement | How much better the new model must be. type number · default 0.0 · per environment no |
evaluation.slices | Columns whose values form slices (groups) the model is also measured on. type list of strings · default [] · per environment no |
evaluation.slice_gates | The largest gap allowed between a slice and the overall result. type list of mappings · default [] · per environment no |
evaluation.slice_gates.metric | The metric compared per slice. type string · per environment no |
evaluation.slice_gates.max_gap | The largest amount a slice may be worse than overall. type number · limits at least 0 · per environment no |
evaluation.slice_gates.min_rows | Slices with fewer test rows are not checked. type integer · limits at least 1 · per environment no |
evaluation.fairness | Bias measures per attribute on the test set (binary classification, Pipewright 1.1): the largest gap between the attribute's groups. Recorded in the evaluation record and the model card; gates refuse a model above a maximum. type mapping · per environment no |
evaluation.fairness.attributes | Columns of the data contract to measure by, for example gender or age_band. They need not be features and may be personal data: they are measured, never trained on. type list of strings · per environment no |
evaluation.fairness.metrics | demographic_parity_difference (selection rates), equal_opportunity_difference (true positive rates), equalized_odds_difference (the larger of the true and false positive rate gaps). Default: all three. type list · allowed demographic_parity_difference, equal_opportunity_difference, equalized_odds_difference · per environment no |
evaluation.fairness.gates | A maximum per measure, for example {metric: demographic_parity_difference, max: 0.1}. Pipewright rechecks them before a version becomes the default. type list of mappings · per environment no |
evaluation.fairness.gates.metric | The fairness measure this gate limits. allowed demographic_parity_difference, equal_opportunity_difference, equalized_odds_difference · per environment no |
evaluation.fairness.gates.max | The largest gap allowed between the attribute's groups, from 0 to 1. type number · limits at least 0, at most 1 · per environment no |
evaluation.fairness.min_rows | Groups with fewer test rows are listed but not measured (default 30), so a tiny group cannot decide a gate. type integer · limits at least 1 · per environment no |
explainability
Key (under spec) | Meaning |
|---|---|
explainability | Which features drive the model's predictions, recorded with each version. type mapping · per environment no |
explainability.enabled | Whether training computes feature importance. type boolean · default false · per environment no |
explainability.method | How importance is measured. allowed permutation · default "permutation" · per environment no |
explainability.top_k | How many of the most important features are recorded. type integer · limits at least 1 · default 10 · per environment no |
registry
Key (under spec) | Meaning |
|---|---|
registry | How versions in the Model Registry become the default (the champion). type mapping · per environment no |
registry.set_default | on_approval lets training make a passing version the default; manual waits for pipewright model approve. Left out, follows approvals.promote_model.allowed on_approval, manual · default not set · per environment no |
model_card
Key (under spec) | Meaning |
|---|---|
model_card | Text for the model card stored with each version. type mapping · per environment no |
model_card.intended_use | What the model is for and who uses its output. type string · per environment no |
model_card.out_of_scope | Uses the model is not suitable for. type string · per environment no |
model_card.limitations | Known weaknesses, such as data it has not seen. type string · per environment no |
model_card.ethical_considerations | Fairness and other risks, and how they are handled. type string · per environment no |
inference
Key (under spec) | Meaning |
|---|---|
inference | Scoring with the champion model. type mapping · per environment no |
inference.output_table | The table predictions are written to. type string · default not set · per environment no |
inference.decision_threshold | The score above which a prediction is positive. Left out, evaluation.decision_threshold. type number · limits at least 0, at most 1 · default not set · per environment no |
monitoring
Key (under spec) | Meaning |
|---|---|
monitoring | Checks run on each inference, for drift, prediction drift and performance against observed outcomes. type mapping · per environment yes |
monitoring.online | 1.4.3 (FR-98): your monitor steps on live traffic. A monitoring pipeline (spec.pipelines.monitoring) reads the window capture recorded and runs the same drift and performance checks as batch scoring. Needs model.serving.capture. type mapping · per environment yes |
monitoring.online.enabled | Whether online monitoring runs. Default false. type boolean · per environment yes |
monitoring.online.schedule | When it runs, a cron expression. Default 0 6 * * * (daily); hourly for busy models. type string · per environment yes |
monitoring.online.window_hours | How much live traffic each run reads. Default 24. type number · limits above 0 · per environment yes |
monitoring.online.min_samples | Below this many usable rows the window is recorded as insufficient_data and the drift check is skipped: an empty window is never no drift. Default 500. type integer · limits at least 1 · per environment yes |
monitoring.online.outcomes | 1.4.3 (FR-98): live quality. The team's outcomes table, keyed by the prediction ID the lookup gateway returned (or the caller sent as _pw_prediction_id); the monitoring pipeline joins it to the online predictions it records (<usecase>_online_predictions) and checks monitoring.performance's metric and min on live traffic. Default: none. type object or null · per environment yes |
monitoring.online.outcomes.table | The outcomes table in the tenant's dataset. type string · per environment yes |
monitoring.online.outcomes.key | The column holding the prediction ID. Default prediction_id. type string · per environment yes |
monitoring.online.outcomes.label | The column holding the observed outcome. type string · per environment yes |
monitoring.online.attribution | 1.4.3 (FR-98): which features drive the model's answers on the window, against training (permutation Shapley values). A move past the threshold sends monitoring.attribution_drift; in 1.4.3 it does not open a retrain case on its own. type mapping · per environment yes |
monitoring.online.attribution.enabled | Whether attribution is measured. Default false. type boolean · per environment yes |
monitoring.online.attribution.sample_rows | Rows of the window explained, 1 to 5,000. Default 500 (about 15 seconds on 2 vCPU). type integer · limits at least 1, at most 5000 · per environment yes |
monitoring.online.attribution.threshold | The total variation distance between the window's and training's attribution shares above which it is drift. Default 0.10. type number · limits above 0, at most 1 · per environment yes |
monitoring.health | 1.4.3 (FR-98): alert policies on each deployed version's errors, latency and replicas. Their incidents arrive on Pub/Sub as serving.degraded and serving.recovered. type mapping · per environment yes |
monitoring.health.enabled | Whether health policies are kept for the deployed versions. Default false. type boolean · per environment yes |
monitoring.health.error_rate | The share of 5xx answers that is a warning and that is critical. Default 0.01 and 0.05. type mapping · per environment yes |
monitoring.health.error_rate.warning | The 95th percentile latency (ms) that opens a warning incident. type number · limits above 0 · per environment yes |
monitoring.health.error_rate.critical | The 95th percentile latency (ms) that opens a critical incident. type number · limits above 0 · per environment yes |
monitoring.health.latency_p95_ms | The 95th percentile latency (ms) that is a warning and that is critical. Default 500 and 1000. On KServe, from the handler's latency histogram; without one, the mean, labelled so. type mapping · per environment yes |
monitoring.health.latency_p95_ms.warning | The 95th percentile latency (ms) that opens a warning incident. type number · limits above 0 · per environment yes |
monitoring.health.latency_p95_ms.critical | The 95th percentile latency (ms) that opens a critical incident. type number · limits above 0 · per environment yes |
monitoring.health.min_ready_replicas | Fewer ready replicas than this is degraded. Default 1. type integer · limits at least 0 · per environment yes |
monitoring.health.scaling_minutes | Replicas wanted but not ready for this long is degraded (a stuck scale-up; a normal cold start ends sooner). Default 5. type integer · limits at least 1 · per environment yes |
monitoring.health.propose_rollback_hours | Above 0: a critical breach within this many hours of a promotion opens a rollback proposal for the release's approvers. Never automatic. Default 0 (off). type integer · limits at least 0 · per environment yes |
monitoring.failure_records | 1.4.4, off by default. A failed step records why it failed, with no data values (the error's type, the place in your code, check results), and run.failed carries the cause and whose it is: your team's or the platform's. Takes effect at the next release. The platform can also switch it on for a whole environment. type boolean · per environment yes |
monitoring.submit_failed | 1.4.4, off by default. A run the orchestrator refuses at submission (a machine the region cannot provide, a refused permission) is recorded as run.submit_failed, and a refusal that cannot get better is not retried. The platform can also switch it on for a whole environment. type boolean · per environment yes |
monitoring.alerts | Email for Pipewright events, set up by pipewright alerts sync.type mapping · per environment yes |
monitoring.alerts.notify | Email addresses, distribution lists included. type list of strings · default [] · per environment yes |
monitoring.alerts.events | The events that send an email. run.failed (Pipewright 1.2.0) emails a run that ended failed or cancelled, found by the launcher within the hour. type list · allowed monitoring.alert, retrain.requested, training.rejected, training.evaluated, model.registered, run.failed, run.unregistered, model.duplicated, serving.degraded, serving.recovered, rollback.proposed, monitoring.attribution_drift, monitoring.insufficient_data, serving.capture_gap, serving.capture_silent, model.registration_refused, run.submit_failed · default ["monitoring.alert"] · per environment yes |
monitoring.alerts.severity | The severity of the alert policies. allowed CRITICAL, ERROR, WARNING · default "WARNING" · per environment yes |
monitoring.drift | Whether the scored data has moved away from the training data, feature by feature. type mapping · per environment no |
monitoring.drift.enabled | Whether drift is checked. type boolean · default false · per environment no |
monitoring.drift.method | How drift is measured (population stability index). allowed psi · default "psi" · per environment no |
monitoring.drift.threshold | The drift above which a feature raises an alert. 0.2 is a common choice for PSI. type number · limits above 0 · default 0.2 · per environment no |
monitoring.drift.features | The features checked. Left out, all of them. type list of strings · default not set · per environment no |
monitoring.prediction_drift | Whether the model's predictions have moved away from those at training time. type mapping · per environment no |
monitoring.prediction_drift.enabled | Whether prediction drift is checked. type boolean · default false · per environment no |
monitoring.prediction_drift.threshold | The drift above which an alert is raised. type number · limits above 0 · default 0.2 · per environment no |
monitoring.performance | How the model does on outcomes observed after scoring. type mapping · per environment no |
monitoring.performance.enabled | Whether performance is checked. type boolean · default false · per environment no |
monitoring.performance.labels | Where the observed outcomes are. type mapping · default not set · per environment no |
monitoring.performance.labels.table | The table of observed outcomes. type string · per environment no |
monitoring.performance.labels.key | The column that joins outcomes to predictions. type string · per environment no |
monitoring.performance.labels.label | The column holding the observed outcome. type string · per environment no |
monitoring.performance.labels.time_column | The outcome's cut-off column (Pipewright 1.2.0). With it, each outcome is joined to the score made for that cut-off (the scores table's scored_for), never to a later score that already knows the outcome. Without it, outcomes meet each key's latest score, and validate warns. type string · per environment no |
monitoring.performance.metric | The metric computed on observed outcomes. type string · default not set · per environment no |
monitoring.performance.min | The value below which an alert is raised. type number · default not set · per environment no |
monitoring.output_table | The table monitoring results are written to. type string · default not set · per environment no |
retraining
Key (under spec) | Meaning |
|---|---|
retraining | What drift or a performance drop leads to, and who decides on a retrain. type mapping · per environment yes |
retraining.mode | off (alerts only), propose (a case opens and a person decides) or candidate (trains a candidate that is never promoted). Write "off" in quotes, since YAML reads a bare off as false (which also means off). allowed off, propose, candidate · default not set · per environment yes |
retraining.enabled | The older switch. true means mode propose, false means off. type boolean · default not set · per environment yes |
retraining.when | What may open a retrain case (schedule, drift, performance). The key is when, not on, because YAML reads on as true.type list · allowed schedule, drift, performance · default ["schedule"] · per environment no |
retraining.cooldown_days | Days after an approved retrain during which new alerts are recorded but open no case. type integer · limits at least 0 · default 7 · per environment no |
retraining.source_uri | The training data an approved retrain uses by default; an approver may choose another. type string · default not set · per environment no |
retraining.loop | The closed retrain loop: production never trains. An approved case here is trained in the environment this one's releases come from (environments/<env>.yaml promotion.from), on this environment's data through a read-only grant, compared with the model this environment serves, validated by a scoring run there, then promoted, approved and verified here. pipewright loop drives it.type mapping · per environment yes |
retraining.loop.enabled | Switch the closed retrain loop on, usually only in production (environments/<env> file). Off, an approved case trains in this environment, as in 1.0. type boolean · per environment yes |
retraining.loop.safeguards | Limits on loops started without a person (retraining.mode candidate). Held by one, the case opens for a person to decide. {} gives the defaults: 1 loop per 7 days, pause after 2 failures in a row, drift on 2 runs in a row. Off when not set. type mapping · per environment yes |
retraining.loop.safeguards.max_loops | Automatic loops allowed per period (default 1). type integer · limits at least 1 · per environment yes |
retraining.loop.safeguards.per_days | The period for max_loops, in days (default 7). type integer · limits at least 1 · per environment yes |
retraining.loop.safeguards.pause_after_failures | Automatic loops in a row that end rejected, failed or rolled back before automatic retraining pauses until pipewright loop resume (default 2).type integer · limits at least 1 · per environment yes |
retraining.loop.safeguards.drift_runs | A drift trigger starts a loop only when this many scoring runs in a row alerted (default 2); before that, no case opens and the next run that alerts counts it. type integer · limits at least 1, at most 5 · per environment yes |
retraining.loop.canary | The online canary with automatic rollback, for a model served on an Agent Platform endpoint: after the production approval the loop deploys the candidate as a canary, checks it after the soak window, then gives it all traffic or rolls it back. Off when not set. type mapping · per environment yes |
retraining.loop.canary.percent | The canary's share of traffic, in percent (default 10). type integer · limits at least 1, at most 50 · per environment yes |
retraining.loop.canary.soak_minutes | How long the canary serves before it is checked (default 30). type integer · limits at least 5, at most 1440 · per environment yes |
retraining.loop.canary.max_error_rate_increase | How much higher the canary's error rate may be than the current version's, as a fraction of requests (default 0.01). type number · limits at least 0, at most 1 · per environment yes |
retraining.loop.canary.max_latency_increase | How much slower the canary's median latency may be than the current version's, as a ratio (default 0.2). type number · limits at least 0 · per environment yes |
retraining.loop.canary.max_latency_increase_ms | 1.4.3: the canary fails on latency only when it is also slower by more than this many milliseconds (default 20): a new replica's first minutes add a few milliseconds that are noise at any ratio. 0 judges by the ratio alone, as before. type number · limits at least 0 · per environment yes |
retraining.loop.canary.min_requests | Canary requests in the soak window before latency is compared; fewer, and only errors and the probe judge it (default 50). type integer · limits at least 1 · per environment yes |
retraining.loop.canary.probe | Whether the validation rows are sent to the canary; their scores must match what test scored (default true). No request or response is stored. type boolean · per environment yes |
retraining.loop.data | Whose data configuration the loop's training run in test reads: test (default, as before) or production (its feature tables and label window, through the read-only loop_readers grant). allowed test, production · per environment yes |
retraining.decisions | How people hear about a retrain case and how long they have to decide. type mapping · per environment yes |
retraining.decisions.notify | Who is emailed a case's summary and ID. Email never approves anything. type list of strings · default [] · per environment yes |
retraining.decisions.publish | Whether decision events also go to the tenant's decision feed (a subscription the platform provides). type boolean · default false · per environment yes |
retraining.decisions.escalate_after_days | Days without a decision before the case is escalated. type integer · limits at least 1 · default 3 · per environment yes |
retraining.decisions.escalate_notify | Who is emailed when a case is escalated. type list of strings · default [] · per environment yes |
retraining.decisions.digest | Whether a weekly summary of open cases and decisions is sent. type boolean · default true · per environment yes |
retraining.approvals | Who must agree before a retrain runs. type mapping · per environment yes |
retraining.approvals.required | Approver groups registered by the platform (approver_groups in the manifest). One approval is needed from each. type list of strings · default [] · per environment yes |
retraining.approvals.separate_from_requester | Whether the person who asked for the retrain may also approve it. type boolean · default true · per environment yes |
retraining.snooze | Putting off a decision. type mapping · per environment yes |
retraining.snooze.max_days | The longest a case may be snoozed. The environment may set a lower cap. type integer · limits at least 1, at most 365 · default 30 · per environment yes |
retraining.snooze.reopen_when_worse_by | A snoozed or declined case re-opens at once when the worst drift (PSI) rises by this much. type number · limits above 0 · default 0.1 · per environment yes |
synthetic
Key (under spec) | Meaning |
|---|---|
synthetic | Synthetic data generation. Off unless enabled; with it off nothing is compiled, built or released for it. type mapping · per environment yes |
synthetic.enabled | Switches synthetic data on for this use case. May differ per environment (for example on in production-grade environments only). type boolean · default false · per environment yes |
synthetic.purpose | Sets the default gates. test-data stays in the organisation; sharing leaves it and has stricter privacy gates. allowed test-data, sharing · default "test-data" · per environment no |
synthetic.tier | learned (an engine learns from real data inside this environment, in the synthetic pipeline) or contract (rows from the data contract and rules alone, no real data, from pipewright synthetic generate).allowed learned, contract · default "learned" · per environment no |
synthetic.source_uri | The data the engine learns from, bq:// or gs://, read point in time like training (with data.features_from, the entity table; with data.label_source and a table without the label column, its labels come from the label window, as in training; Pipewright 1.2.0). type string · default not set · per environment no |
synthetic.output_table | The table in outputs.bigquery.tables that receives the synthetic rows. Its schema holds the contract's columns and a run_id column. type string · default not set · per environment no |
synthetic.rows | How many rows to generate. Default: as many as the source has. May differ per environment. type integer or null · limits at least 1 · default not set · per environment yes |
synthetic.holdout_fraction | Real rows kept back from the engine, to test utility and privacy against. type number · limits above 0, below 0.5 · default 0.2 · per environment no |
synthetic.seed | Seed for the holdout split and the rules. Default: training.seed. type integer or null · default not set · per environment no |
synthetic.engine | The engine and its settings. Every candidate starts from these. type mapping · per environment yes |
synthetic.engine.type | As synthetic.engine.type, for this candidate. allowed mostlyai, sdv · default "mostlyai" · per environment no |
synthetic.engine.model | As synthetic.engine.model, for this candidate. type string or null · default not set · per environment no |
synthetic.engine.max_training_minutes | As synthetic.engine.max_training_minutes, for this candidate. type number · limits above 0 · default 10 · per environment yes |
synthetic.engine.differential_privacy | As synthetic.engine.differential_privacy, for this candidate. type object or null · default not set · per environment no |
synthetic.engine.differential_privacy.epsilon | The privacy budget for this candidate. type number · limits above 0 · per environment no |
synthetic.engine.sampling_temperature | As synthetic.engine.sampling_temperature, for this candidate. type number · limits above 0, at most 2 · default 1.0 · per environment no |
synthetic.engine.rare_categories | As synthetic.engine.rare_categories, for this candidate. allowed constant, sample · default "constant" · per environment no |
synthetic.engine.epochs | As synthetic.engine.epochs, for this candidate. type integer · limits at least 1 · default 300 · per environment no |
synthetic.engine.max_epochs | As synthetic.engine.max_epochs, for this candidate. type number or null · limits above 0 · default not set · per environment no |
synthetic.engine.seed | As synthetic.engine.seed, for this candidate. type integer or null · limits at least 0 · default not set · per environment no |
synthetic.candidates | Variants of the engine tried side by side, each with a name; the best one that passes every gate is kept. Default for mostlyai: the engine as given and the same at sampling temperature 1.3. type list of mappings · default [] · per environment no |
synthetic.candidates.type | As synthetic.engine.type, for this candidate. allowed mostlyai, sdv · per environment no |
synthetic.candidates.model | As synthetic.engine.model, for this candidate. type string or null · per environment no |
synthetic.candidates.max_training_minutes | As synthetic.engine.max_training_minutes, for this candidate. type number · limits above 0 · per environment no |
synthetic.candidates.differential_privacy | As synthetic.engine.differential_privacy, for this candidate. type object or null · per environment no |
synthetic.candidates.differential_privacy.epsilon | The privacy budget for this candidate. type number · limits above 0 · per environment no |
synthetic.candidates.sampling_temperature | As synthetic.engine.sampling_temperature, for this candidate. type number · limits above 0, at most 2 · per environment no |
synthetic.candidates.rare_categories | As synthetic.engine.rare_categories, for this candidate. allowed constant, sample · per environment no |
synthetic.candidates.epochs | As synthetic.engine.epochs, for this candidate. type integer · limits at least 1 · per environment no |
synthetic.candidates.max_epochs | As synthetic.engine.max_epochs, for this candidate. type number or null · limits above 0 · per environment no |
synthetic.candidates.seed | As synthetic.engine.seed, for this candidate. type integer or null · limits at least 0 · per environment no |
synthetic.columns | Columns decided by rules instead of learned: keys, personal data, time grids. Personal-data columns without a rule become new keys (if unique) or nulls; they are never learned. type mapping · per environment no |
synthetic.columns.<name> | One column decided by a rule instead of learned, by its name in the source table. type mapping · per environment no |
synthetic.columns.<name>.rule | key (new unique keys), fake (made-up personal data), constant, drop (null), time (dates on a grid), values (a categorical with chosen frequencies) or range (uniform between min and max). allowed key, fake, constant, drop, time, values, range · per environment no |
synthetic.columns.<name>.prefix | rule key: the text before the number (default SYN-). type string · per environment no |
synthetic.columns.<name>.provider | rule fake: email, name, phone, uuid or text. Emails use example.com and phone numbers the reserved drama range. allowed email, name, phone, uuid, text · per environment no |
synthetic.columns.<name>.value | rule constant: the value. per environment no |
synthetic.columns.<name>.from | rule time: the first date (YYYY-MM-DD). type string · per environment no |
synthetic.columns.<name>.to | rule time: the last date (YYYY-MM-DD). type string · per environment no |
synthetic.columns.<name>.step | rule time: day (any day) or month_end (the last day of each month). allowed day, month_end · per environment no |
synthetic.columns.<name>.values | rule values: the values to choose from. type array · per environment no |
synthetic.columns.<name>.weights | rule values: how often each value appears, one number per value. type list of numbers · limits at least 0 · per environment no |
synthetic.columns.<name>.min | rule range: the lowest value. type number · per environment no |
synthetic.columns.<name>.max | rule range: the highest value. type number · per environment no |
synthetic.sensitive_columns | Columns an inference attack tries to recover, besides the label (for example a health condition). type list of strings · default [] · per environment no |
synthetic.gates | Overrides of the purpose's gates. Pipewright recomputes every gate before publishing; privacy gates may only be made stricter. type mapping · per environment no |
synthetic.gates.fidelity | How closely the synthetic data matches the real data's distributions (SDMetrics quality score, 0 to 1). type mapping · per environment no |
synthetic.gates.fidelity.min | Defaults: 0.9 (test-data), 1.0 (sharing). type number · per environment no |
synthetic.gates.tstr_drop | How much worse a model trained on synthetic data scores on real data (AUC) than one trained on real data. type mapping · per environment no |
synthetic.gates.tstr_drop.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.gates.exact_copies | The share of synthetic rows identical to a training row. type mapping · per environment no |
synthetic.gates.exact_copies.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.gates.dcr_ratio | How far synthetic rows are from the training rows compared with unseen real rows (median distance to the closest record). Below 1 is a sign of copying. type mapping · per environment no |
synthetic.gates.dcr_ratio.min | Defaults: 0.9 (test-data), 1.0 (sharing). type number · per environment no |
synthetic.gates.closer_than_p5 | The share of synthetic rows closer to a training row than 95% of unseen real rows are. Independent data gives about 5%. type mapping · per environment no |
synthetic.gates.closer_than_p5.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.gates.singling_out | The risk that an attacker can single out one real person (Anonymeter, upper confidence bound). type mapping · per environment no |
synthetic.gates.singling_out.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.gates.linkability | The risk that an attacker can link records of one real person (Anonymeter, upper confidence bound). type mapping · per environment no |
synthetic.gates.linkability.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.gates.inference | The risk that an attacker can infer the label or a sensitive column of a real person (Anonymeter, upper confidence bound, the worst column). type mapping · per environment no |
synthetic.gates.inference.max | Defaults: 0.50 (test-data), 0.25 (sharing). type number · per environment no |
synthetic.evaluation | How candidates are scored. type mapping · per environment no |
synthetic.evaluation.attacks | Anonymeter attacks per risk (default 1000). Fewer give confidence bounds too wide to gate on. type integer · limits at least 100, at most 5000 · default 1000 · per environment no |
synthetic.requirements | A requirements file of extra packages for the synthetic image, for example SDV (installed by your team, which accepts its licence directly). type string · default not set · per environment no |
synthetic.mode | flat (default): one table, the source as training reads it. relational: the entity table and its child tables learned together in one model, the feature tables of data.features_from (history per entity) and synthetic.sequences (events per entity); keys stay consistent and history keeps its timing against each cut-off. allowed flat, relational · default "flat" · per environment no |
synthetic.output_tables | relational: the output table (in outputs.bigquery.tables) of each child table, by its name: a feature table by its feature group or table name, a sequence by its name. Each holds the child's columns and run_id. type mapping · per environment no |
synthetic.output_tables.<name> | The output table of one child table, by the child table's name. type string · per environment no |
synthetic.sequences | relational: event tables per entity, beyond the feature tables (for example transactions or sessions), generated in order with the entity table. type list of mappings · default [] · per environment no |
synthetic.sequences.name | The child table's name (output_tables uses it). type string · per environment no |
synthetic.sequences.source_uri | The event table, bq://project.dataset.table. Only rows of the source's entities are read. type string · per environment no |
synthetic.sequences.key | The column that refers to the entity table's key. type string · per environment no |
synthetic.sequences.order_by | The column the events are ordered by within each entity (usually a timestamp). type string · per environment no |
synthetic.sequences.columns | The columns to learn and generate (default all). Keys and personal data among them are never learned as values. type list of strings · per environment no |
ab_test
Key (under spec) | Meaning |
|---|---|
ab_test | A/B testing of models (Pipewright FR-57): the champion against a candidate. Units are assigned stickily by a hash of the test's name and the unit key, the same in batch scoring and online; a business metric and guardrails are fixed before the start; a person decides. Off unless enabled; with it off nothing changes. Started with pipewright ab start.type mapping · per environment yes |
ab_test.enabled | Switches the test on for this use case. Usually set only in production's environment file. With it off the section is left out of the release. type boolean · default false · per environment yes |
ab_test.name | The test's name: lower case letters, digits and hyphens. It salts the assignment, so a new name re-randomises the units; a name is used once per use case. type string or null · default not set · per environment no |
ab_test.mode | ab (the default): units see their arm's model and the outcome is compared. shadow: the candidate scores copies of the live calls and nothing acts on its answers, to compare predictions, errors and latency before an A/B test. allowed ab, shadow · default "ab" · per environment no |
ab_test.unit | The data contract column units are assigned by, such as customer_id. Left out: data_protection.erasure.key_column, else the entity's first column. type string or null · default not set · per environment no |
ab_test.arms | What each arm serves. type mapping · per environment yes |
ab_test.arms.control | champion: the default version when the test starts (the only control). allowed champion · default "champion" · per environment yes |
ab_test.arms.treatment | The candidate. type mapping · per environment yes |
ab_test.arms.treatment.model_version | The candidate's model version. It must have passed its gates and carry an approval record of its files (pipewright model approve --candidate records one without making it the default).type integer or string or null · default not set · per environment yes |
ab_test.allocation | How many units go to the treatment. type mapping · per environment yes |
ab_test.allocation.treatment_bp | The treatment's share in whole basis points (2000 is 20%; default 1000). While a test runs it may only go down (pipewright ab set --allocation), so units only ever move to the control. May differ per environment.type integer · limits at least 1, at most 9999 · default 1000 · per environment yes |
ab_test.layer | Off unless set (FR-123). Tests of any use case in this environment that name the same layer never share a unit: each claims its own range of the layer's units when it starts, and units outside the range are not in the test (the default serves them; they are never exposures). The price is a smaller sample. Without a layer, tests split all units and policies.ab_test.overlap judges tests that share a unit. May differ per environment. type object or null · default not set · per environment yes |
ab_test.layer.name | The layer, 3 to 42 lower case letters, digits and hyphens. A layer holds one unit (the first test to claim it sets it). type string · per environment yes |
ab_test.layer.share_bp | The test's share of the layer's units in whole basis points (3000 is 30%; 10000 is all of them). ab start refuses when the layer has no free range that large.type integer · limits at least 1, at most 10000 · per environment yes |
ab_test.metric | The primary metric, fixed before the start (its digest is recorded): the outcome per unit within a window after the unit's first exposure. type mapping · per environment no |
ab_test.metric.name | What the metric is called in the results, such as renewed_90d. type string · default not set · per environment no |
ab_test.metric.source | A bq:// table of outcome events: one row per event, with the unit key and a time. type string · default not set · per environment no |
ab_test.metric.key | The unit key's column in the source. Left out: ab_test.unit. type string or null · default not set · per environment no |
ab_test.metric.time_column | When each event happened. Events count within window_days after a unit's first exposure, and only for units whose window has closed, so slow outcomes are not read as failures. type string · default not set · per environment no |
ab_test.metric.value_column | mean and ratio metrics: the value summed per unit, such as revenue. type string or null · default not set · per environment no |
ab_test.metric.denominator_column | ratio metrics: the denominator summed per unit, such as sessions. The interval uses the delta method. type string or null · default not set · per environment no |
ab_test.metric.where | A SQL condition on the source's rows, such as event_type = 'renewal'. type string or null · default not set · per environment no |
ab_test.metric.window_days | Days after a unit's first exposure in which its outcome counts (default 30). type integer · limits at least 1, at most 365 · default 30 · per environment no |
ab_test.metric.type | proportion (a unit with at least one event in its window counts as 1), mean (the value summed per unit) or ratio (sum of value over sum of denominator). allowed proportion, mean, ratio · default "proportion" · per environment no |
ab_test.metric.direction | higher or lower: which way is better (default higher). allowed higher, lower · default "higher" · per environment no |
ab_test.metric.minimum_effect | The smallest absolute change worth detecting, such as 0.02 for two percentage points. It sizes the test: pipewright ab plan says how many units each arm needs.type number or null · limits above 0 · default not set · per environment no |
ab_test.guardrails | What must not get worse. Technical guardrails stop the treatment automatically; business guardrails open a decision case. type mapping · per environment no |
ab_test.guardrails.technical | Online only: errors and latency per arm, from the gateway's breaker at once and Cloud Monitoring on the launcher's tick. type mapping · per environment no |
ab_test.guardrails.technical.max_error_rate_increase | The most the treatment's error rate may exceed the control's (default 0.01). type number · limits at least 0 · default 0.01 · per environment no |
ab_test.guardrails.technical.max_latency_increase | The most the treatment's median latency may exceed the control's, as a fraction (default 0.2). type number · limits at least 0 · default 0.2 · per environment no |
ab_test.guardrails.technical.min_requests | Calls per arm before latency is judged, so a cold start is not held against the treatment (default 200). type integer · limits at least 1 · default 200 · per environment no |
ab_test.guardrails.technical.breaker | The gateway's own check, so a broken treatment stops within seconds rather than at the next tick. type mapping · per environment no |
ab_test.guardrails.technical.breaker.window | The treatment's last N calls the breaker looks at (default 200). type integer · limits at least 20 · default 200 · per environment no |
ab_test.guardrails.technical.breaker.max_error_rate | Tripped when more than this share of those calls failed (default 0.05): the treatment's units go to the control at once and the test is stopped. type number · limits above 0, at most 1 · default 0.05 · per environment no |
ab_test.guardrails.business | Business metrics that must not drop, each measured like the primary metric. type list of mappings · default [] · per environment no |
ab_test.guardrails.business.name | The guardrail's name in the results. type string · per environment no |
ab_test.guardrails.business.source | A bq:// table of events, as for the metric. type string · per environment no |
ab_test.guardrails.business.key | The unit key's column in the source. Left out: ab_test.unit. type string or null · per environment no |
ab_test.guardrails.business.time_column | When each event happened. type string · per environment no |
ab_test.guardrails.business.value_column | mean and ratio: the value summed per unit. type string or null · per environment no |
ab_test.guardrails.business.denominator_column | ratio: the denominator summed per unit. type string or null · per environment no |
ab_test.guardrails.business.where | A SQL condition on the source's rows. type string or null · per environment no |
ab_test.guardrails.business.window_days | Days after first exposure (default: the metric's). type integer · limits at least 1, at most 365 · per environment no |
ab_test.guardrails.business.type | proportion (the default, as for the metric), mean or ratio. allowed proportion, mean, ratio · per environment no |
ab_test.guardrails.business.direction | higher or lower: which way is better (default higher). allowed higher, lower · per environment no |
ab_test.guardrails.business.max_drop | The largest relative drop tolerated, such as 0.02. Breached when the drop is larger and significant (one-sided at analysis.alpha). type number · limits above 0, below 1 · per environment no |
ab_test.duration | How long the test may run. type mapping · per environment yes |
ab_test.duration.min_days | No decision before this many days, whatever the numbers say (default 14): weekly patterns need at least two weeks. type integer · limits at least 1, at most 365 · default 14 · per environment yes |
ab_test.duration.max_days | A decision case opens at this age even without the planned sample (default 60). type integer · limits at least 1, at most 365 · default 60 · per environment yes |
ab_test.analysis | How the arms are compared. type mapping · per environment no |
ab_test.analysis.method | fixed (the default): decide once the planned sample and min_days are reached. sequential: an always-valid p-value (mSPRT), so the test may stop as soon as the evidence is clear without inflating false positives. allowed fixed, sequential · default "fixed" · per environment no |
ab_test.analysis.alpha | The false positive rate the test accepts (default 0.05). type number · limits above 0, below 0.5 · default 0.05 · per environment no |
ab_test.analysis.power | The chance of detecting minimum_effect when it is real (default 0.8). type number · limits at least 0.5, below 1 · default 0.8 · per environment no |
ab_test.analysis.schedule | When the launcher analyses the test (cron, UTC; default daily at 06:00). type string · default "0 6 * * *" · per environment no |
ab_test.analysis.cuped | Variance reduction with a pre-period covariate per unit (CUPED): the same confidence with fewer units. Spike S6: 10 to 15% on the book's data. type mapping · per environment no |
ab_test.analysis.cuped.enabled | Switches CUPED on (default off). type boolean · default false · per environment no |
ab_test.analysis.cuped.covariate | A value per unit known before the test, best last period's value of the metric itself: a column of cuped.source, read as of the test's start. type string or null · default not set · per environment no |
ab_test.analysis.cuped.source | A bq:// table with the unit key, the covariate and feature_timestamp (a feature table): the newest value at or before the test's start is used. type string or null · default not set · per environment no |
ab_test.analysis.segments | Data contract columns to break the result down by, such as country. Reported for reading, never used to decide (many segments find differences by chance). type list of strings · default [] · per environment no |
ab_test.analysis.tau | sequential only: the mixing scale of the mSPRT. Left out: minimum_effect. type number or null · limits above 0 · default not set · per environment no |
ab_test.decision | Who decides the winner. type mapping · per environment yes |
ab_test.decision.approvals | Approvals the decision needs. type mapping · per environment yes |
ab_test.decision.approvals.required | Approver groups registered in the manifest; one approval from each, as for retrain decisions. type list of strings · default [] · per environment yes |
ab_test.publish | A copy of the test for the team's own tools, over the Pub/Sub topic the platform provides per tenant (tenants.<t>.ab_test_feed). BigQuery stays the record. Off by default. type mapping · per environment yes |
ab_test.publish.events | The test's events: started, analysed, guardrail breached, decided (aggregates only). type boolean · default false · per environment yes |
ab_test.publish.exposures | Per-unit exposure lines with a pseudonymised unit (a keyed hash), only where the platform allows it (policies.ab_test.feed_exposures). They reach the topic through a log sink, which adds no attributes: filter them in the subscriber's code (docs/AB_TESTING_WALKTHROUGH.md section 7). type boolean · default false · per environment yes |
ab_test.publish.include_by | Keep who acted (by, a person's email or a service account) in the feed's copy of each event. Off by default (FR-122): the feed goes to the team's own tools, while the event log, Fleet View and lineage keep it.type boolean · default false · per environment yes |
ab_test.results_table | The table the analysis writes its results to, in the use case's dataset. Left out: <usecase>_ab_results, created by the analysis. type string or null · default not set · per environment no |
ab_test.callers | Online, for use cases whose callers send features: who may call the router the test runs behind (members such as serviceAccount:checkout@p.iam.gserviceaccount.com). With online features the gateway's callers apply (model.serving.online_store.lookup.callers). type list of strings · default [] · per environment no |
bqml
Key (under spec) | Meaning |
|---|---|
bqml | BigQuery ML as the training engine. Pipewright then provides the training and scoring pipelines: they run on the environment's orchestrator, their steps submit BigQuery jobs, and the data and the model stay in BigQuery. A bqml use case has no pipelines, components or framework of its own. type mapping · per environment no |
bqml.model_type | The BigQuery ML model type, matching data.label.task: logistic_reg, boosted_tree_classifier or random_forest_classifier for binary and multiclass; linear_reg, boosted_tree_regressor or random_forest_regressor for regression; kmeans for clustering, pca for decomposition and arima_plus for forecast (Pipewright 1.1). allowed logistic_reg, boosted_tree_classifier, random_forest_classifier, linear_reg, boosted_tree_regressor, random_forest_regressor, kmeans, pca, arima_plus · per environment no |
bqml.forecast | A forecast (data.label.task forecast, Pipewright 1.1): the series is data.label.column over data.split.time_column, one series per id_columns value. Training holds out the latest period (data.split.test_fraction of the time range), forecasts it and measures the forecast against what happened (mae, rmse, mape); scoring writes the next horizon points to inference.output_table (forecast_timestamp, forecast_value, the interval and the ID columns). type mapping · per environment no |
bqml.forecast.engine | arima_plus (the default: CREATE MODEL ARIMA_PLUS, registered like any BigQuery ML model) or ai_forecast (AI.FORECAST with Google's TimesFM model: no model is trained, the version holds the settings it was measured with). ai_forecast sends the series to a Google foundation model, an exception to C-08 the platform allows with policies.bqml.ai_forecast. allowed arima_plus, ai_forecast · per environment no |
bqml.forecast.horizon | How many time points scoring forecasts, per series (at most 10000). type integer · limits at least 1, at most 10000 · per environment no |
bqml.forecast.id_columns | The columns that tell series apart (for example a store), from data.contract.columns. Left out, the rows are one series. type list of strings · per environment no |
bqml.forecast.confidence_level | The share of future values the prediction interval should hold. Default 0.95. type number · limits at least 0, below 1 · per environment no |
bqml.forecast.model | ai_forecast only: the TimesFM model. TimesFM 2.5 (generally available). allowed TimesFM 2.5 · per environment no |
bqml.forecast.context_window | ai_forecast only: how many of the latest points the model reads. Left out, the smallest window that covers the history. allowed 64, 128, 256, 512, 1024, 2048, 4096, 8192, 15360 · per environment no |
bqml.import | A model trained elsewhere (TensorFlow SavedModel or ONNX), imported into BigQuery ML instead of trained there, then evaluated on the run's test rows, gated and registered like a trained one (Pipewright 1.1). Instead of bqml.model_type; no options, transform or explain. type mapping · per environment no |
bqml.import.format | tensorflow or onnx (XGBoost imports need input and output schemas: not supported yet). allowed tensorflow, onnx · per environment no |
bqml.import.path | gs://.../* : the model's files, readable by the tenant's runner. Their checksums are recorded with the run. type string · per environment no |
bqml.import.outputs | Which output column of the model holds what: score (the positive class probability, binary), label (the predicted class, multi-class) or prediction (regression). type mapping · per environment no |
bqml.import.outputs.score | The output column with the positive class probability (binary classification). type string · per environment no |
bqml.import.outputs.score_index | When the score column is an array of class probabilities: the positive class's position in it (from 0). type integer · limits at least 0 · per environment no |
bqml.import.outputs.label | The output column with the predicted class (multi-class; optional for binary). type string · per environment no |
bqml.import.outputs.prediction | The output column with the prediction (regression). type string · per environment no |
bqml.options | CREATE MODEL options, for example {max_iterations: 50, l2_reg: 0.1}. Pipewright sets the label, the split, the key, the registry and explanations itself, so those options are refused. type mapping · per environment no |
bqml.transform | A .sql file with the expressions of a TRANSFORM clause (without TRANSFORM ( ... )), for preparation the model needs when it is served: BigQuery ML applies it in ML.PREDICT and at a Model Registry endpoint. Pinned by the release. type string · per environment no |
bqml.prepare | A .sql file with a SELECT over {rows} (the run's rows): preparation in SQL, pinned by the release. Its output is written into the run's rows before training; scoring runs the same file. An endpoint runs no SQL, so preparation needed online belongs in bqml.transform. type string · per environment no |
bqml.metrics_table | A table in outputs.bigquery.tables that gets one row per training run, approved or refused, with the columns of the churn example's model_metrics.json (run_id, decision, primary_value, champion_value and the rest), so BigQuery ML runs sit in the same history as container runs (Pipewright 1.2.0). type string · per environment no |
bqml.contract_on | Which rows the data contract checks: prepared (the default) checks the output of bqml.prepare; source checks the rows as read, before bqml.prepare, as the container path does, so preparation may rescale or derive columns without breaking the contract's ranges (Pipewright 1.2.0). allowed prepared, source · per environment no |
bqml.explain | Compute global explanations when the model is created (ML.GLOBAL_EXPLAIN). Left out, explainability.enabled. type boolean · per environment no |
bqml.max_bytes_billed | The most bytes one BigQuery ML job of this use case may bill. Left out, the platform's policies.bqml.max_bytes_billed, else 100 GiB. Tree models bill far more bytes than linear ones. type integer · limits at least 1 · per environment no |
feature_contract
Key (under spec) | Meaning |
|---|---|
feature_contract | The approved definitions of the feature sources the use case reads (data.features_from), one entry per source (Pipewright 1.4.1, FR-103). pipewright features contract writes it from the live sources; commit it with the use case. It travels in the release contract, approvals record it, and with policies.integrity.features check on a definition that differs is an integrity problem. Without it, nothing changes.type mapping · per environment no |
feature_contract.version | The contract's semantic version, MAJOR.MINOR.PATCH. pipewright features contract sets it: a removed or retyped column is major, changed SQL or an added column minor, descriptions a patch.type string · per environment no |
feature_contract.sources | One entry per data.features_from source. type list of mappings · per environment no |
feature_contract.sources.name | The source's name: its feature group, or its table's ID (the same in every environment). type string · per environment no |
feature_contract.sources.kind | view, materialized_view, table (built by a query, a pipeline or dbt) or scheduled_query: what the source's BigQuery object is. allowed view, materialized_view, table, scheduled_query · per environment no |
feature_contract.sources.sql_sha256 | SHA-256 of the defining SQL, whitespace normalised and the source's own project written {project}: a view's or materialized view's from the object, a table's from its sql_file or scheduled query. Null for a table with neither (checked by schema only). type string or null · per environment no |
feature_contract.sources.schema_sha256 | SHA-256 of the schema as names, types and modes (never descriptions). type string · per environment no |
feature_contract.sources.schema | The schema, one name TYPE MODE per column, for a readable diff.type list of strings · per environment no |
feature_contract.sources.sql_file | A table built by a query: the file holding the SQL that builds it, relative to the use case folder. With policies.integrity.features built_tables on, the SQL of the job that last wrote the table must match it. type string · per environment no |
feature_contract.sources.sql_files | A table several jobs write (for example a backfill and a monthly append): each job's SQL file, relative to the use case folder. The first is recorded as sql_sha256, the others as also_sql_sha256; the built-table check accepts any of them (1.4.2). type list of strings · per environment no |
feature_contract.sources.also_sql_sha256 | Recorded from sql_files: the SHA-256 of each SQL file after the first. Part of the contract's digest. type list of strings · per environment no |
feature_contract.sources.scheduled_query | A table built by a BigQuery scheduled query: its transfer config name (projects/.../transferConfigs/...). Its SQL is fingerprinted from the config. type string · per environment no |
feature_contract.sources.features | The features the use case reads from the source, each with its type and an optional description (kept when the contract is updated). type mapping · per environment no |
feature_contract.sources.features.<name> | One feature the use case reads from the source, by its column name. type mapping · per environment no |
feature_contract.sources.features.<name>.type | The feature's BigQuery type, from the source's schema. type string · per environment no |
feature_contract.sources.features.<name>.description | What the feature means, in business terms (yours to write; kept on updates). type string · per environment no |
data_protection
Key (under spec) | Meaning |
|---|---|
data_protection | Personal data in the use case's tables. type mapping · per environment no |
data_protection.personal_data_columns | Columns that hold personal data; recorded in the release and kept out of logs. type list of strings · default [] · per environment no |
data_protection.erasure | How a data subject's rows are found for pipewright data erase.type mapping · default not set · per environment no |
data_protection.erasure.key_column | The column that identifies a data subject, such as customer_id. type string · per environment no |
tests
Key (under spec) | Meaning |
|---|---|
tests | How pipewright test checks the use case's code (the CI pull-request workflow runs it), and with tests.on_release pipewright release too.type mapping · per environment no |
tests.command | The command run in the use case folder; it must exit 0. type string · per environment no |
tests.on_release | When true, pipewright release runs tests.command before it builds anything and stops on a non-zero exit (default false, so the release does not run the tests; Pipewright 1.2.0).type boolean · per environment no |
tests.environment | Where tests.command runs. pipewright (the default) is Pipewright's own interpreter; components is a virtual environment built from components/requirements.txt and cached by its hash, so a test that imports a component finds numpy, pandas or torch in CI too (Pipewright 1.2.0). allowed pipewright, components · per environment no |
outputs
Key (under spec) | Meaning |
|---|---|
outputs | Where the use case's tables are written. type mapping · per environment yes |
outputs.store | bigquery (tables), gcs (Parquet files plus BigQuery external tables) or both, for example while moving to a lake. allowed bigquery, gcs, both · per environment no |
outputs.gcs | Parquet output on Cloud Storage, when outputs.store is gcs or both. type mapping · per environment no |
outputs.gcs.format | The file format. allowed parquet · per environment no |
outputs.gcs.external_tables | Whether BigQuery external tables of the same names are created over the files, so SQL keeps working. type boolean · per environment no |
outputs.bigquery | BigQuery tables the use case owns, created and evolved by pipewright tables sync (additive changes only).type mapping · per environment yes |
outputs.bigquery.tables | The tables, by name. type mapping · per environment no |
outputs.bigquery.tables.<name> | A table, with its schema file, partitioning, clustering and description. per environment no |
outputs.bigquery.retention_days | Days before partitions are deleted. type integer · limits at least 1 · per environment yes |
model
Key (under spec) | Meaning |
|---|---|
model | The model in the Model Registry and how it is served. type mapping · per environment yes |
model.name | The model's display name in the Model Registry. type string · per environment no |
model.promotion | How a model reaches the next environment with pipewright promote: model copies the approved version's files and registers them there as a candidate, retrain trains it again there from the same release. A BigQuery ML model is promoted by retraining, except logistic_reg and linear_reg, which may use model (exported, imported and checked to score the same).allowed model, retrain · per environment no |
model.serving | Online serving on an endpoint, deployed with pipewright deploy-model.type mapping · per environment yes |
model.serving.enabled | Whether the model is served online. Needs online serving for the tenant. type boolean · per environment yes |
model.serving.target | Where it is served. allowed vertex, kserve · per environment yes |
model.serving.features | online: the endpoint takes entity IDs (data.features_from.entity.columns) and reads every feature from the tenant's online store, so serving, batch scoring and training share one feature definition (Pipewright 1.1). request (the default): callers send the feature values. allowed request, online · per environment yes |
model.serving.machine | The machine type, for example n1-standard-2. type string or null · per environment yes |
model.serving.replicas | How many replicas serve. type mapping · per environment yes |
model.serving.replicas.min | The fewest replicas. type integer · limits at least 0 · per environment yes |
model.serving.replicas.max | The most replicas, reached under load. type integer · limits at least 1 · per environment yes |
model.serving.canary_percent | The share of traffic a new version gets with deploy-model --canary.type integer · limits at least 1, at most 100 · per environment yes |
model.serving.accelerator | A GPU for each replica (Pipewright 1.2.0), within the environment's policies.accelerators.serving. The machine must take it, for example g2-standard-8 with NVIDIA_L4. type mapping · per environment yes |
model.serving.accelerator.type | The accelerator type, for example NVIDIA_L4. type string · per environment yes |
model.serving.accelerator.count | How many per replica (default 1). type integer · limits at least 1 · per environment yes |
model.serving.capture | 1.4.3 (FR-98): record a sample of what the deployed version receives and answers, in the tenant's dataset (Agent Platform request-response logging; on KServe, the logger through a receiver and a log sink). type mapping · per environment yes |
model.serving.capture.enabled | Whether capture is on. Default false. type boolean · per environment yes |
model.serving.capture.sample_rate | The share of requests recorded. Default 0.05. type number · limits above 0, at most 1 · per environment yes |
model.serving.capture.max_per_day | At most this many records a day; above it records are dropped and counted. Default 100,000. type integer · limits at least 1 · per environment yes |
model.serving.capture.retention_days | Days the records are kept (the table's partition expiry). Default 30. type integer · limits at least 1 · per environment yes |
model.serving.scale_to_zero | With replicas.min 0, an idle endpoint runs no replica and costs nothing while idle; the first request after a quiet spell waits for a replica to start (Pipewright 1.2.0, an Agent Platform preview). Without it, min 0 deploys one replica, as in 1.x. type boolean · per environment yes |
model.serving.drain_seconds | Seconds a version that no longer takes traffic keeps serving before it is undeployed, on a replace, a promote or an abandoned canary (Pipewright 1.4.2, FR-109, default 240). After the traffic moves, the endpoint goes on routing requests to the old version for a few minutes; undeploying it at once answered them with 404. 0 undeploys at once, as before 1.4.2. type integer · limits at least 0, at most 3600 · per environment yes |
model.serving.fill_missing | The endpoint fills an empty feature (request or online) with the median the model was trained with, as batch scoring does (Pipewright 1.2.0, default true). Set false to answer an error naming the feature instead. type boolean · per environment yes |
model.serving.pool | Model co-hosting (Pipewright 1.4.2): deploy onto this shared pool of the environment (manifest serving.pools) instead of the use case's own machines, so several models share its machines. Only when your team wants co-hosting; leave it out and the use case deploys on its own machines as before. A pool runs Google's prebuilt TensorFlow or PyTorch (Preview) serving image only, the same one for every model on it; a custom serving image stays on dedicated machines. The pool sets the machines, so machine, replicas, accelerator and scale_to_zero are refused with it. Every change to any model on a pool restarts all its machines: Pipewright makes such changes one at a time and announces them. type string · per environment yes |
model.serving.online_store | Which online store serves the features (FR-104). Leave it out for the tenant's Bigtable online store (Pipewright 1.1). Needs model.serving.features online; the environment lists the types it offers. pipewright doctor shows each choice's standing cost.type mapping · per environment yes |
model.serving.online_store.type | bigtable (Feature Store, the default: about 12 ms, about $781 a month per node); bigquery (BigQuery with the environment's BI Engine reservation: about 200 ms, no copy of the data; unaccelerated lookups are billed as a full table read, for minutes after each refresh); cloudsql (PostgreSQL synced by Pipewright: about 3 ms direct, 12 ms through the lookup service, about $61 a month for the default instance); http (your own store answering POST /lookup). allowed bigtable, bigquery, cloudsql, http · per environment yes |
model.serving.online_store.bigquery | Settings for type bigquery. type mapping · per environment yes |
model.serving.online_store.bigquery.table | The served table in the tenant's dataset, one row per entity, refreshed by the sync. Default pw_online_<usecase>. type string · per environment yes |
model.serving.online_store.bigquery.timeout_ms | How long a lookup may take before the endpoint fills or refuses the features (default 1000). type integer · limits at least 50, at most 30000 · per environment yes |
model.serving.online_store.cloudsql | Settings for type cloudsql. type mapping · per environment yes |
model.serving.online_store.cloudsql.schema | The PostgreSQL schema the table goes in, created by the sync. Default public; in an instance other teams share, give your team a schema of its own (doctor warns about public). Pipewright never writes a schema or table another tenant owns. type string · per environment yes |
model.serving.online_store.cloudsql.table | The table, one row per entity, created and replaced at each sync without lookups seeing half a load. Default pw_online_<usecase>. type string · per environment yes |
model.serving.online_store.http | Settings for type http. type mapping · per environment yes |
model.serving.online_store.http.url | Your lookup, an https:// URL answering POST /lookup {"entity_ids": [...]} with {"features": {id: {name: value}}}. Pipewright checks the names and types it gets back; what happens inside your store is yours. type string · per environment yes |
model.serving.online_store.http.audience | The ID token audience the endpoint calls it with (default the URL). type string · per environment yes |
model.serving.online_store.http.timeout_ms | How long a lookup may take (default 1000). type integer · limits at least 50, at most 30000 · per environment yes |
model.serving.online_store.lookup | What sits between the endpoint and Cloud SQL: Pipewright's Cloud Run lookup service (provider pipewright, the default) sized here, or your own (provider own). type mapping · per environment yes |
model.serving.online_store.lookup.mode | lookup (the default): the endpoint calls the lookup service for its features. gateway (Pipewright 1.4.2): callers send entity IDs to the lookup service inside the network, which reads the features and calls the endpoint itself, so the endpoint never needs to reach into the network (Agent Platform endpoints cannot). With type cloudsql it reads Cloud SQL; with type http it calls your own lookup service inside the network (the Pipewright custom solution). allowed lookup, gateway · per environment yes |
model.serving.online_store.lookup.retries | With mode gateway: how many more times a prediction is tried on 503, 429 or a dropped connection (default 3, so 4 tries, 0.25 to 2 seconds apart; 0 turns it off). A shared pool restarts its machines on every change, and the retries keep callers from seeing it. type integer · limits at least 0, at most 5 · per environment yes |
model.serving.online_store.lookup.callers | With mode gateway: who may call the gateway, as serviceAccount:, group: or user: members; they get run.invoker on the lookup service. Each call is logged with the caller's identity, never an ID or a feature value. type list of strings · per environment yes |
model.serving.online_store.lookup.provider | pipewright: Pipewright deploys and updates the lookup service with deploy-model. own: Pipewright syncs the table and grants reader; you decide what sits between the endpoint and the database (a service on GKE, your own Cloud Run, anything).allowed pipewright, own · per environment yes |
model.serving.online_store.lookup.reader | With provider own, the tenant's service account that reads the table; Pipewright grants it SELECT on the table only. type string · per environment yes |
model.serving.online_store.lookup.cpu | vCPU per instance, 1, 2, 4, 6 or 8 (default 1). Cloud Run's fractional CPU is refused, since it serves one request at a time. type number · per environment yes |
model.serving.online_store.lookup.memory | Memory per instance (default 512Mi). Cloud Run takes up to 4Gi per vCPU, and at least 2Gi with 4 vCPU and 4Gi with 6 or 8. type string · per environment yes |
model.serving.online_store.lookup.min_instances | Instances kept warm so callers do not wait for a cold start (default 0, or the environment's default; never below its floor). Best effort: Google may restart one, so 2 keeps a spare. About $14 a month each (1 vCPU, 512Mi, idle). type integer · limits at least 0 · per environment yes |
model.serving.online_store.lookup.max_instances | The most instances under load (default 5). pool_size x max_instances must fit the database's connections. type integer · limits at least 1 · per environment yes |
model.serving.online_store.lookup.concurrency | Requests one instance serves at once (default 80, 1 to 1000). type integer · limits at least 1, at most 1000 · per environment yes |
model.serving.online_store.lookup.pool_size | Database connections per instance (default 8, 1 to 50). A bounded pool keeps a burst from exhausting the database's connections. type integer · limits at least 1, at most 50 · per environment yes |
model.serving.online_store.lookup.timeout_ms | How long one lookup may take (default 1000). type integer · limits at least 50, at most 30000 · per environment yes |
model.serving.online_store.lookup.cpu_boost | Startup CPU boost (default true): double CPU while an instance starts and for 10 seconds after, so cold starts are shorter. About $0.0005 a start. type boolean · per environment yes |
model.serving.online_store.lookup.billing | request (default): idle warm instances are billed at the low idle rate. instance (CPU always allocated): the full rate for each instance's whole life and no per-request charge, cheaper only for steady high traffic (about $60 a month an instance). allowed request, instance · per environment yes |
model.serving.online_store.sync | How Pipewright refreshes the served table (bigquery and cloudsql), on a schedule with pipeline online_sync. type mapping · per environment yes |
model.serving.online_store.sync.mode | full (default): every row at each sync. changed: only rows whose values changed, so the database works less while lookups run (a full 1M-row load on one vCPU raised lookup latency for about a minute). allowed full, changed · per environment yes |
model.serving.online_store.export | Publish each generation as Parquet files with a manifest, for a store you build yourself (off by default). Off, nothing is published: Pipewright's own sync moves the rows through a staging extract it deletes after the swap. type mapping · per environment yes |
model.serving.online_store.export.enabled | Turn the export on (default false). type boolean · per environment yes |
model.serving.online_store.export.uri | Where the generations go, gs://bucket/prefix. Default gs://<artifacts bucket>/online-export/<tenant>/<usecase>; it must be somewhere your runner may write. type string · per environment yes |
model.serving.online_store.export.keep | How many generations are kept (default 3); older ones are deleted after a successful sync. type integer · limits at least 1, at most 100 · per environment yes |
model.serving.online_store.export.readers | Service accounts of your tenant given read on the export, for example the job that loads your own store. type list of strings · per environment yes |
approvals
Key (under spec) | Meaning |
|---|---|
approvals | Which changes need a person. type mapping · per environment yes |
approvals.promote_model | manual - a passing model is a candidate until pipewright model approve; auto - training makes it the default.allowed manual, auto · per environment yes |
approvals.deploy_model | manual - pipewright deploy-model asks for --approve; auto - no confirmation; ci (Pipewright 1.2.0) - pipewright decisions pending lists a deploy-approve item for each new default version that passes its gates and is not served, and a pipewright-gate run deploys it once the GitHub environment's reviewers approve; on_register (1.2.0) - the pipewright-decisions workflow deploys such a version without a person.allowed manual, auto, ci, on_register · per environment yes |
approvals.approvers | Who may approve, as user:<email> or group:<email>. type list of strings · per environment yes |
approvals.batch_scoring | auto (the default) - a scoring run starts when it is triggered; manual (Pipewright 1.4.3) - the launcher holds every scoring run, whatever triggered it, until a person approves it with pipewright scoring approve or a pipewright-gate run (score-approve in pipewright decisions pending); rejected or expired runs never start. The platform can require manual (policies.batch_scoring).allowed auto, manual · per environment yes |
approvals.batch_scoring_hold_hours | How long a held scoring run waits for a decision before it expires (1 to 168, default 24). type integer · limits at least 1, at most 168 · per environment yes |
assist
Key (under spec) | Meaning |
|---|---|
assist | Pipewright Assist (preview, 1.4.4, off by default): an assistant that answers incident questions about this use case from what Pipewright recorded (why did a run fail, whose is it). It reads no data rows and no logs, and changes nothing. Read pipewright assist explain first.type mapping · per environment no |
assist.enabled | true - this team opts in. Where the environment has a platform manifest, the platform must also allow Assist. type boolean · per environment no |
assist.understood | The version of the pipewright assist explain page the team read, for example "1.4.4". Assist does not start without it, or when the page has changed since.type string · per environment no |
features_store
Key (under spec) | Meaning |
|---|---|
features_store | Reserved for a later version; leave it out. type null · per environment no |
environments
Key (under spec) | Meaning |
|---|---|
environments | Per-environment overrides, by environment name. Usually kept in environments/<env>.yaml instead. type mapping · per environment no |