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
tenantThe 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_inThe 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
includeGlob 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
resourcesOverrides 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_accountThe service account pipeline runs use. Comes from the tenant in the manifest.
type string · per environment no
resources.bigquery_datasetThe BigQuery dataset for the use case's tables. Comes from the tenant in the manifest.
type string · per environment no
resources.landing_prefixThe landing bucket prefix where files for this use case arrive. Comes from the tenant in the manifest.
type string · per environment no
resources.outputs_uriThe 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
pipelineA single pipeline, shorthand for pipelines.training. Use pipelines for training plus inference.
type mapping · per environment no
pipeline.fileThe Python file that defines the monitoring pipeline, relative to the use case folder.
type string · per environment no
pipeline.functionThe @dsl.pipeline function in that file.
type string · per environment no

pipelines

Key (under spec)Meaning
pipelinesThe use case's pipelines by role. Training is required for model work; inference is optional.
type mapping · per environment no
pipelines.trainingThe pipeline that trains, evaluates and registers a model.
type mapping · per environment no
pipelines.training.fileThe Python file that defines the monitoring pipeline, relative to the use case folder.
type string · per environment no
pipelines.training.functionThe @dsl.pipeline function in that file.
type string · per environment no
pipelines.inferenceThe pipeline that scores new data with the champion model.
type mapping · per environment no
pipelines.inference.fileThe Python file that defines the monitoring pipeline, relative to the use case folder.
type string · per environment no
pipelines.inference.functionThe @dsl.pipeline function in that file.
type string · per environment no
pipelines.monitoring1.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.fileThe Python file that defines the monitoring pipeline, relative to the use case folder.
type string · per environment no
pipelines.monitoring.functionThe @dsl.pipeline function in that file.
type string · per environment no

components

Key (under spec)Meaning
componentsWhere the pipeline components' code lives. It is built into the component image every step runs in.
type mapping · per environment no
components.dirThe folder of component code, relative to the use case folder.
type string · per environment no
components.requirementsThe requirements file installed into the component image.
type string · per environment no
components.ray_requirementsExtra 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_imageThe 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
frameworkThe ML framework of the component image.
allowed pytorch · per environment no

triggers

Key (under spec)Meaning
triggersWhat starts a run, and which pipeline it starts.
type mapping · per environment yes
triggers.landingA 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.suffixesFile 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.pipelineThe pipeline a landed file starts.
allowed training, inference, synthetic, monitoring · per environment yes
triggers.schedulesRuns on a schedule (Cloud Scheduler jobs, created by pipewright schedules sync).
type list of mappings · per environment yes
triggers.schedules.nameThe schedule's name, unique in the use case.
type string · per environment yes
triggers.schedules.cronWhen it runs, in cron syntax, for example "0 6 * * *" (06:00 every day).
type string · per environment yes
triggers.schedules.timezoneThe time zone the cron expression is read in, for example Europe/London.
type string · per environment yes
triggers.schedules.source_uriThe gs:// data the scheduled run reads. ${buckets.landing} and other manifest names may be used.
type string · per environment yes
triggers.schedules.pipelineThe pipeline the schedule starts.
allowed training, inference, synthetic, online_sync, monitoring · per environment yes
triggers.apiWhether 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
parametersValues 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_stepThe 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>.cpuCPUs for the step, for example 4 or "500m".
type number or string · per environment yes
resources_per_step.<name>.memoryMemory for the step, for example 8G.
type string · per environment yes
resources_per_step.<name>.gpuAn accelerator for the step.
type mapping · per environment yes
resources_per_step.<name>.gpu.typeThe accelerator type, for example NVIDIA_TESLA_T4.
type string · per environment yes
resources_per_step.<name>.gpu.countHow many accelerators.
type integer · limits at least 1 · per environment yes
resources_per_step.<name>.retriesHow many times a failed step is retried.
type integer · limits at least 0, at most 10 · per environment yes
resources_per_step.<name>.cacheWhether the step may reuse a cached result from an identical earlier run.
type boolean · per environment yes
resources_per_step.<name>.rayA 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_machineThe 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_machineThe worker nodes' machine type. Left out, the same as the head.
type string · per environment yes
resources_per_step.<name>.ray.workersHow 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.acceleratorAn 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.typeThe accelerator type, for example NVIDIA_TESLA_T4.
type string · per environment yes
resources_per_step.<name>.ray.accelerator.countHow many accelerators per node.
type integer · limits at least 1 · per environment yes
resources_per_step.<name>.ray.max_minutesThe 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
stepsCompute 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>.cpuCPUs for the step, for example 4 or "500m".
type number or string · per environment yes
steps.<name>.memoryMemory for the step, for example 8G.
type string · per environment yes
steps.<name>.gpuAn accelerator for the step.
type mapping · per environment yes
steps.<name>.gpu.typeThe accelerator type, for example NVIDIA_TESLA_T4.
type string · per environment yes
steps.<name>.gpu.countHow many accelerators.
type integer · limits at least 1 · per environment yes
steps.<name>.retriesHow many times a failed step is retried.
type integer · limits at least 0, at most 10 · per environment yes
steps.<name>.cacheWhether the step may reuse a cached result from an identical earlier run.
type boolean · per environment yes
steps.<name>.rayA 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_machineThe 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_machineThe worker nodes' machine type. Left out, the same as the head.
type string · per environment yes
steps.<name>.ray.workersHow 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.acceleratorAn 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.typeThe accelerator type, for example NVIDIA_TESLA_T4.
type string · per environment yes
steps.<name>.ray.accelerator.countHow many accelerators per node.
type integer · limits at least 1 · per environment yes
steps.<name>.ray.max_minutesThe 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
dataThe data contract, the label and how data is split. Passed to pipelines in ml_config.
type mapping · per environment no
data.contractWhat 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.columnsThe expected columns. pipewright new-usecase --from-bq drafts them from a BigQuery table.
type list of mappings · per environment no
data.contract.columns.nameThe column name.
type string · per environment no
data.contract.columns.typeThe column's type.
allowed string, integer, float, boolean, date, timestamp · per environment no
data.contract.columns.requiredWhether the column must be present.
type boolean · per environment no
data.contract.columns.minThe smallest allowed value.
type number · per environment no
data.contract.columns.maxThe largest allowed value.
type number · per environment no
data.contract.columns.allowedThe only values allowed.
type array · per environment no
data.contract.columns.max_null_fractionThe 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_rowsThe fewest rows a run accepts.
type integer · limits at least 1 · per environment no
data.contract.max_null_fractionThe 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.uniqueColumns whose values must not repeat, such as an ID.
type list of strings · per environment no
data.contract.allow_extra_columnsWhether columns not in the contract are allowed. When false, they stop the run.
type boolean · per environment no
data.labelThe column the model learns to predict.
type mapping · default not set · per environment no
data.label.columnThe label column's name.
type string · per environment no
data.label.valuesThe label's possible values, for example [0, 1].
type array · per environment no
data.label.positiveThe value that counts as positive for metrics such as precision and recall.
per environment no
data.label.taskWhat 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.splitHow data is divided into training, validation and test sets.
type mapping · per environment no
data.split.strategyrandom, 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_columnThe column that orders rows in time; needed with strategy time.
type string · default not set · per environment no
data.split.test_fractionThe share of rows held back for testing.
type number · limits above 0, below 1 · default 0.2 · per environment no
data.split.validation_fractionThe 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.seedThe random seed, so a split can be repeated.
type integer · per environment no
data.snapshot_tableThe 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_sourceTake 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.tableThe 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.keyThe 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_columnWhen each event happened, a date or timestamp column of the label table.
type string · per environment no
data.label_source.window_daysHow 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_columnThe 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_fromRead 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.entityThe entity table's key and cut-off columns.
type mapping · per environment no
data.features_from.entity.columnsThe columns that identify an entity, such as customer_id.
type list of strings · per environment no
data.features_from.entity.time_columnThe 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.sourcesThe feature tables to read, owned by whoever produces the features.
type list of mappings · per environment no
data.features_from.sources.tableA 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_groupA 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.projectThe project the feature group is registered in. Default the environment's project.
type string · per environment no
data.features_from.sources.regionThe region the feature group is registered in. Default the environment's region.
type string · per environment no
data.features_from.sources.entity_columnsThe 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_columnThe table's column saying when each value became true. Default feature_timestamp.
type string · per environment no
data.features_from.sources.featuresThe 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.prefixAdded 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_viewThe 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
featuresWhich columns the model uses.
type mapping · per environment no
features.includeOnly 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.excludeColumns never used as features, such as IDs and dates.
type list of strings · default [] · per environment no

training

Key (under spec)Meaning
trainingHyperparameters, the experiment and tuning.
type mapping · per environment yes
training.hyperparametersValues 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.seedThe random seed for training, so a run can be repeated.
type integer · default 42 · per environment no
training.experimentThe Agent Platform experiment runs are recorded in.
type mapping · per environment no
training.experiment.nameThe experiment's name. Left out, one is named after the use case.
type string · default not set · per environment no
training.tuningHyperparameter tuning, which runs several trials and keeps the best.
type mapping · per environment yes
training.tuning.enabledWhether training tunes before the final fit.
type boolean · default false · per environment yes
training.tuning.metricThe metric trials are compared on. Left out, evaluation.primary_metric.
type string · default not set · per environment no
training.tuning.goalWhether a larger (maximize) or smaller (minimize) metric is better.
allowed maximize, minimize · default "maximize" · per environment no
training.tuning.max_trialsThe most trials in one run.
type integer · limits at least 1, at most 50 · default 8 · per environment yes
training.tuning.parallel_trialsHow many trials run at the same time.
type integer · limits at least 1, at most 20 · default 4 · per environment yes
training.tuning.search_spaceThe 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>.typedouble and integer take min and max; discrete and categorical take values.
allowed double, integer, discrete, categorical · per environment no
training.tuning.search_space.<name>.minThe smallest value tried.
type number · per environment no
training.tuning.search_space.<name>.maxThe largest value tried.
type number · per environment no
training.tuning.search_space.<name>.valuesThe values tried.
type array · per environment no
training.tuning.search_space.<name>.scalelinear, or log for ranges over orders of magnitude such as learning rates.
allowed linear, log · per environment no

evaluation

Key (under spec)Meaning
evaluationHow 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_metricThe metric that matters most; used by tuning and the champion comparison when they name none.
type string · default "auc" · per environment no
evaluation.decision_thresholdThe 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.metricsThe 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.gatesMinimums 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.metricThe metric the gate checks.
type string · per environment no
evaluation.gates.minThe lowest value allowed.
type number · per environment no
evaluation.gates.maxThe highest value allowed.
type number · per environment no
evaluation.gates.per_seriesFor 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.championComparison with the current champion on the same test data.
type mapping · per environment no
evaluation.champion.enabledWhether a new model must beat the champion.
type boolean · default true · per environment no
evaluation.champion.metricThe metric compared. Left out, evaluation.primary_metric.
type string · default not set · per environment no
evaluation.champion.min_improvementHow much better the new model must be.
type number · default 0.0 · per environment no
evaluation.slicesColumns whose values form slices (groups) the model is also measured on.
type list of strings · default [] · per environment no
evaluation.slice_gatesThe largest gap allowed between a slice and the overall result.
type list of mappings · default [] · per environment no
evaluation.slice_gates.metricThe metric compared per slice.
type string · per environment no
evaluation.slice_gates.max_gapThe largest amount a slice may be worse than overall.
type number · limits at least 0 · per environment no
evaluation.slice_gates.min_rowsSlices with fewer test rows are not checked.
type integer · limits at least 1 · per environment no
evaluation.fairnessBias 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.attributesColumns 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.metricsdemographic_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.gatesA 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.metricThe fairness measure this gate limits.
allowed demographic_parity_difference, equal_opportunity_difference, equalized_odds_difference · per environment no
evaluation.fairness.gates.maxThe 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_rowsGroups 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
explainabilityWhich features drive the model's predictions, recorded with each version.
type mapping · per environment no
explainability.enabledWhether training computes feature importance.
type boolean · default false · per environment no
explainability.methodHow importance is measured.
allowed permutation · default "permutation" · per environment no
explainability.top_kHow many of the most important features are recorded.
type integer · limits at least 1 · default 10 · per environment no

registry

Key (under spec)Meaning
registryHow versions in the Model Registry become the default (the champion).
type mapping · per environment no
registry.set_defaulton_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_cardText for the model card stored with each version.
type mapping · per environment no
model_card.intended_useWhat the model is for and who uses its output.
type string · per environment no
model_card.out_of_scopeUses the model is not suitable for.
type string · per environment no
model_card.limitationsKnown weaknesses, such as data it has not seen.
type string · per environment no
model_card.ethical_considerationsFairness and other risks, and how they are handled.
type string · per environment no

inference

Key (under spec)Meaning
inferenceScoring with the champion model.
type mapping · per environment no
inference.output_tableThe table predictions are written to.
type string · default not set · per environment no
inference.decision_thresholdThe 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
monitoringChecks run on each inference, for drift, prediction drift and performance against observed outcomes.
type mapping · per environment yes
monitoring.online1.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.enabledWhether online monitoring runs. Default false.
type boolean · per environment yes
monitoring.online.scheduleWhen it runs, a cron expression. Default 0 6 * * * (daily); hourly for busy models.
type string · per environment yes
monitoring.online.window_hoursHow much live traffic each run reads. Default 24.
type number · limits above 0 · per environment yes
monitoring.online.min_samplesBelow 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.outcomes1.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.tableThe outcomes table in the tenant's dataset.
type string · per environment yes
monitoring.online.outcomes.keyThe column holding the prediction ID. Default prediction_id.
type string · per environment yes
monitoring.online.outcomes.labelThe column holding the observed outcome.
type string · per environment yes
monitoring.online.attribution1.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.enabledWhether attribution is measured. Default false.
type boolean · per environment yes
monitoring.online.attribution.sample_rowsRows 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.thresholdThe 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.health1.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.enabledWhether health policies are kept for the deployed versions. Default false.
type boolean · per environment yes
monitoring.health.error_rateThe 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.warningThe 95th percentile latency (ms) that opens a warning incident.
type number · limits above 0 · per environment yes
monitoring.health.error_rate.criticalThe 95th percentile latency (ms) that opens a critical incident.
type number · limits above 0 · per environment yes
monitoring.health.latency_p95_msThe 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.warningThe 95th percentile latency (ms) that opens a warning incident.
type number · limits above 0 · per environment yes
monitoring.health.latency_p95_ms.criticalThe 95th percentile latency (ms) that opens a critical incident.
type number · limits above 0 · per environment yes
monitoring.health.min_ready_replicasFewer ready replicas than this is degraded. Default 1.
type integer · limits at least 0 · per environment yes
monitoring.health.scaling_minutesReplicas 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_hoursAbove 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_records1.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_failed1.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.alertsEmail for Pipewright events, set up by pipewright alerts sync.
type mapping · per environment yes
monitoring.alerts.notifyEmail addresses, distribution lists included.
type list of strings · default [] · per environment yes
monitoring.alerts.eventsThe 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.severityThe severity of the alert policies.
allowed CRITICAL, ERROR, WARNING · default "WARNING" · per environment yes
monitoring.driftWhether the scored data has moved away from the training data, feature by feature.
type mapping · per environment no
monitoring.drift.enabledWhether drift is checked.
type boolean · default false · per environment no
monitoring.drift.methodHow drift is measured (population stability index).
allowed psi · default "psi" · per environment no
monitoring.drift.thresholdThe 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.featuresThe features checked. Left out, all of them.
type list of strings · default not set · per environment no
monitoring.prediction_driftWhether the model's predictions have moved away from those at training time.
type mapping · per environment no
monitoring.prediction_drift.enabledWhether prediction drift is checked.
type boolean · default false · per environment no
monitoring.prediction_drift.thresholdThe drift above which an alert is raised.
type number · limits above 0 · default 0.2 · per environment no
monitoring.performanceHow the model does on outcomes observed after scoring.
type mapping · per environment no
monitoring.performance.enabledWhether performance is checked.
type boolean · default false · per environment no
monitoring.performance.labelsWhere the observed outcomes are.
type mapping · default not set · per environment no
monitoring.performance.labels.tableThe table of observed outcomes.
type string · per environment no
monitoring.performance.labels.keyThe column that joins outcomes to predictions.
type string · per environment no
monitoring.performance.labels.labelThe column holding the observed outcome.
type string · per environment no
monitoring.performance.labels.time_columnThe 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.metricThe metric computed on observed outcomes.
type string · default not set · per environment no
monitoring.performance.minThe value below which an alert is raised.
type number · default not set · per environment no
monitoring.output_tableThe table monitoring results are written to.
type string · default not set · per environment no

retraining

Key (under spec)Meaning
retrainingWhat drift or a performance drop leads to, and who decides on a retrain.
type mapping · per environment yes
retraining.modeoff (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.enabledThe older switch. true means mode propose, false means off.
type boolean · default not set · per environment yes
retraining.whenWhat 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_daysDays 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_uriThe training data an approved retrain uses by default; an approver may choose another.
type string · default not set · per environment no
retraining.loopThe 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.enabledSwitch 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.safeguardsLimits 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_loopsAutomatic loops allowed per period (default 1).
type integer · limits at least 1 · per environment yes
retraining.loop.safeguards.per_daysThe period for max_loops, in days (default 7).
type integer · limits at least 1 · per environment yes
retraining.loop.safeguards.pause_after_failuresAutomatic 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_runsA 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.canaryThe 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.percentThe 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_minutesHow 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_increaseHow 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_increaseHow 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_ms1.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_requestsCanary 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.probeWhether 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.dataWhose 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.decisionsHow people hear about a retrain case and how long they have to decide.
type mapping · per environment yes
retraining.decisions.notifyWho is emailed a case's summary and ID. Email never approves anything.
type list of strings · default [] · per environment yes
retraining.decisions.publishWhether 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_daysDays without a decision before the case is escalated.
type integer · limits at least 1 · default 3 · per environment yes
retraining.decisions.escalate_notifyWho is emailed when a case is escalated.
type list of strings · default [] · per environment yes
retraining.decisions.digestWhether a weekly summary of open cases and decisions is sent.
type boolean · default true · per environment yes
retraining.approvalsWho must agree before a retrain runs.
type mapping · per environment yes
retraining.approvals.requiredApprover 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_requesterWhether the person who asked for the retrain may also approve it.
type boolean · default true · per environment yes
retraining.snoozePutting off a decision.
type mapping · per environment yes
retraining.snooze.max_daysThe 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_byA 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
syntheticSynthetic data generation. Off unless enabled; with it off nothing is compiled, built or released for it.
type mapping · per environment yes
synthetic.enabledSwitches 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.purposeSets 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.tierlearned (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_uriThe 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_tableThe 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.rowsHow 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_fractionReal 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.seedSeed for the holdout split and the rules. Default: training.seed.
type integer or null · default not set · per environment no
synthetic.engineThe engine and its settings. Every candidate starts from these.
type mapping · per environment yes
synthetic.engine.typeAs synthetic.engine.type, for this candidate.
allowed mostlyai, sdv · default "mostlyai" · per environment no
synthetic.engine.modelAs synthetic.engine.model, for this candidate.
type string or null · default not set · per environment no
synthetic.engine.max_training_minutesAs synthetic.engine.max_training_minutes, for this candidate.
type number · limits above 0 · default 10 · per environment yes
synthetic.engine.differential_privacyAs synthetic.engine.differential_privacy, for this candidate.
type object or null · default not set · per environment no
synthetic.engine.differential_privacy.epsilonThe privacy budget for this candidate.
type number · limits above 0 · per environment no
synthetic.engine.sampling_temperatureAs synthetic.engine.sampling_temperature, for this candidate.
type number · limits above 0, at most 2 · default 1.0 · per environment no
synthetic.engine.rare_categoriesAs synthetic.engine.rare_categories, for this candidate.
allowed constant, sample · default "constant" · per environment no
synthetic.engine.epochsAs synthetic.engine.epochs, for this candidate.
type integer · limits at least 1 · default 300 · per environment no
synthetic.engine.max_epochsAs synthetic.engine.max_epochs, for this candidate.
type number or null · limits above 0 · default not set · per environment no
synthetic.engine.seedAs synthetic.engine.seed, for this candidate.
type integer or null · limits at least 0 · default not set · per environment no
synthetic.candidatesVariants 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.typeAs synthetic.engine.type, for this candidate.
allowed mostlyai, sdv · per environment no
synthetic.candidates.modelAs synthetic.engine.model, for this candidate.
type string or null · per environment no
synthetic.candidates.max_training_minutesAs synthetic.engine.max_training_minutes, for this candidate.
type number · limits above 0 · per environment no
synthetic.candidates.differential_privacyAs synthetic.engine.differential_privacy, for this candidate.
type object or null · per environment no
synthetic.candidates.differential_privacy.epsilonThe privacy budget for this candidate.
type number · limits above 0 · per environment no
synthetic.candidates.sampling_temperatureAs synthetic.engine.sampling_temperature, for this candidate.
type number · limits above 0, at most 2 · per environment no
synthetic.candidates.rare_categoriesAs synthetic.engine.rare_categories, for this candidate.
allowed constant, sample · per environment no
synthetic.candidates.epochsAs synthetic.engine.epochs, for this candidate.
type integer · limits at least 1 · per environment no
synthetic.candidates.max_epochsAs synthetic.engine.max_epochs, for this candidate.
type number or null · limits above 0 · per environment no
synthetic.candidates.seedAs synthetic.engine.seed, for this candidate.
type integer or null · limits at least 0 · per environment no
synthetic.columnsColumns 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>.rulekey (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>.prefixrule key: the text before the number (default SYN-).
type string · per environment no
synthetic.columns.<name>.providerrule 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>.valuerule constant: the value.
per environment no
synthetic.columns.<name>.fromrule time: the first date (YYYY-MM-DD).
type string · per environment no
synthetic.columns.<name>.torule time: the last date (YYYY-MM-DD).
type string · per environment no
synthetic.columns.<name>.steprule time: day (any day) or month_end (the last day of each month).
allowed day, month_end · per environment no
synthetic.columns.<name>.valuesrule values: the values to choose from.
type array · per environment no
synthetic.columns.<name>.weightsrule values: how often each value appears, one number per value.
type list of numbers · limits at least 0 · per environment no
synthetic.columns.<name>.minrule range: the lowest value.
type number · per environment no
synthetic.columns.<name>.maxrule range: the highest value.
type number · per environment no
synthetic.sensitive_columnsColumns an inference attack tries to recover, besides the label (for example a health condition).
type list of strings · default [] · per environment no
synthetic.gatesOverrides 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.fidelityHow closely the synthetic data matches the real data's distributions (SDMetrics quality score, 0 to 1).
type mapping · per environment no
synthetic.gates.fidelity.minDefaults: 0.9 (test-data), 1.0 (sharing).
type number · per environment no
synthetic.gates.tstr_dropHow 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.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.gates.exact_copiesThe share of synthetic rows identical to a training row.
type mapping · per environment no
synthetic.gates.exact_copies.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.gates.dcr_ratioHow 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.minDefaults: 0.9 (test-data), 1.0 (sharing).
type number · per environment no
synthetic.gates.closer_than_p5The 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.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.gates.singling_outThe risk that an attacker can single out one real person (Anonymeter, upper confidence bound).
type mapping · per environment no
synthetic.gates.singling_out.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.gates.linkabilityThe risk that an attacker can link records of one real person (Anonymeter, upper confidence bound).
type mapping · per environment no
synthetic.gates.linkability.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.gates.inferenceThe 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.maxDefaults: 0.50 (test-data), 0.25 (sharing).
type number · per environment no
synthetic.evaluationHow candidates are scored.
type mapping · per environment no
synthetic.evaluation.attacksAnonymeter 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.requirementsA 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.modeflat (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_tablesrelational: 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.sequencesrelational: 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.nameThe child table's name (output_tables uses it).
type string · per environment no
synthetic.sequences.source_uriThe event table, bq://project.dataset.table. Only rows of the source's entities are read.
type string · per environment no
synthetic.sequences.keyThe column that refers to the entity table's key.
type string · per environment no
synthetic.sequences.order_byThe column the events are ordered by within each entity (usually a timestamp).
type string · per environment no
synthetic.sequences.columnsThe 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_testA/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.enabledSwitches 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.nameThe 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.modeab (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.unitThe 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.armsWhat each arm serves.
type mapping · per environment yes
ab_test.arms.controlchampion: the default version when the test starts (the only control).
allowed champion · default "champion" · per environment yes
ab_test.arms.treatmentThe candidate.
type mapping · per environment yes
ab_test.arms.treatment.model_versionThe 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.allocationHow many units go to the treatment.
type mapping · per environment yes
ab_test.allocation.treatment_bpThe 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.layerOff 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.nameThe 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_bpThe 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.metricThe 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.nameWhat the metric is called in the results, such as renewed_90d.
type string · default not set · per environment no
ab_test.metric.sourceA 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.keyThe 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_columnWhen 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_columnmean 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_columnratio 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.whereA 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_daysDays 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.typeproportion (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.directionhigher or lower: which way is better (default higher).
allowed higher, lower · default "higher" · per environment no
ab_test.metric.minimum_effectThe 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.guardrailsWhat must not get worse. Technical guardrails stop the treatment automatically; business guardrails open a decision case.
type mapping · per environment no
ab_test.guardrails.technicalOnline 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_increaseThe 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_increaseThe 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_requestsCalls 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.breakerThe 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.windowThe 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_rateTripped 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.businessBusiness metrics that must not drop, each measured like the primary metric.
type list of mappings · default [] · per environment no
ab_test.guardrails.business.nameThe guardrail's name in the results.
type string · per environment no
ab_test.guardrails.business.sourceA bq:// table of events, as for the metric.
type string · per environment no
ab_test.guardrails.business.keyThe unit key's column in the source. Left out: ab_test.unit.
type string or null · per environment no
ab_test.guardrails.business.time_columnWhen each event happened.
type string · per environment no
ab_test.guardrails.business.value_columnmean and ratio: the value summed per unit.
type string or null · per environment no
ab_test.guardrails.business.denominator_columnratio: the denominator summed per unit.
type string or null · per environment no
ab_test.guardrails.business.whereA SQL condition on the source's rows.
type string or null · per environment no
ab_test.guardrails.business.window_daysDays after first exposure (default: the metric's).
type integer · limits at least 1, at most 365 · per environment no
ab_test.guardrails.business.typeproportion (the default, as for the metric), mean or ratio.
allowed proportion, mean, ratio · per environment no
ab_test.guardrails.business.directionhigher or lower: which way is better (default higher).
allowed higher, lower · per environment no
ab_test.guardrails.business.max_dropThe 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.durationHow long the test may run.
type mapping · per environment yes
ab_test.duration.min_daysNo 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_daysA 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.analysisHow the arms are compared.
type mapping · per environment no
ab_test.analysis.methodfixed (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.alphaThe 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.powerThe 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.scheduleWhen the launcher analyses the test (cron, UTC; default daily at 06:00).
type string · default "0 6 * * *" · per environment no
ab_test.analysis.cupedVariance 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.enabledSwitches CUPED on (default off).
type boolean · default false · per environment no
ab_test.analysis.cuped.covariateA 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.sourceA 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.segmentsData 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.tausequential 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.decisionWho decides the winner.
type mapping · per environment yes
ab_test.decision.approvalsApprovals the decision needs.
type mapping · per environment yes
ab_test.decision.approvals.requiredApprover groups registered in the manifest; one approval from each, as for retrain decisions.
type list of strings · default [] · per environment yes
ab_test.publishA 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.eventsThe test's events: started, analysed, guardrail breached, decided (aggregates only).
type boolean · default false · per environment yes
ab_test.publish.exposuresPer-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_byKeep 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_tableThe 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.callersOnline, 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
bqmlBigQuery 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_typeThe 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.forecastA 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.enginearima_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.horizonHow 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_columnsThe 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_levelThe 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.modelai_forecast only: the TimesFM model. TimesFM 2.5 (generally available).
allowed TimesFM 2.5 · per environment no
bqml.forecast.context_windowai_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.importA 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.formattensorflow or onnx (XGBoost imports need input and output schemas: not supported yet).
allowed tensorflow, onnx · per environment no
bqml.import.pathgs://.../* : the model's files, readable by the tenant's runner. Their checksums are recorded with the run.
type string · per environment no
bqml.import.outputsWhich 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.scoreThe output column with the positive class probability (binary classification).
type string · per environment no
bqml.import.outputs.score_indexWhen 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.labelThe output column with the predicted class (multi-class; optional for binary).
type string · per environment no
bqml.import.outputs.predictionThe output column with the prediction (regression).
type string · per environment no
bqml.optionsCREATE 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.transformA .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.prepareA .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_tableA 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_onWhich 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.explainCompute global explanations when the model is created (ML.GLOBAL_EXPLAIN). Left out, explainability.enabled.
type boolean · per environment no
bqml.max_bytes_billedThe 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_contractThe 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.versionThe 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.sourcesOne entry per data.features_from source.
type list of mappings · per environment no
feature_contract.sources.nameThe source's name: its feature group, or its table's ID (the same in every environment).
type string · per environment no
feature_contract.sources.kindview, 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_sha256SHA-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_sha256SHA-256 of the schema as names, types and modes (never descriptions).
type string · per environment no
feature_contract.sources.schemaThe schema, one name TYPE MODE per column, for a readable diff.
type list of strings · per environment no
feature_contract.sources.sql_fileA 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_filesA 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_sha256Recorded 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_queryA 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.featuresThe 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>.typeThe feature's BigQuery type, from the source's schema.
type string · per environment no
feature_contract.sources.features.<name>.descriptionWhat the feature means, in business terms (yours to write; kept on updates).
type string · per environment no

data_protection

Key (under spec)Meaning
data_protectionPersonal data in the use case's tables.
type mapping · per environment no
data_protection.personal_data_columnsColumns that hold personal data; recorded in the release and kept out of logs.
type list of strings · default [] · per environment no
data_protection.erasureHow a data subject's rows are found for pipewright data erase.
type mapping · default not set · per environment no
data_protection.erasure.key_columnThe column that identifies a data subject, such as customer_id.
type string · per environment no

tests

Key (under spec)Meaning
testsHow 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.commandThe command run in the use case folder; it must exit 0.
type string · per environment no
tests.on_releaseWhen 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.environmentWhere 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
outputsWhere the use case's tables are written.
type mapping · per environment yes
outputs.storebigquery (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.gcsParquet output on Cloud Storage, when outputs.store is gcs or both.
type mapping · per environment no
outputs.gcs.formatThe file format.
allowed parquet · per environment no
outputs.gcs.external_tablesWhether BigQuery external tables of the same names are created over the files, so SQL keeps working.
type boolean · per environment no
outputs.bigqueryBigQuery tables the use case owns, created and evolved by pipewright tables sync (additive changes only).
type mapping · per environment yes
outputs.bigquery.tablesThe 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_daysDays before partitions are deleted.
type integer · limits at least 1 · per environment yes

model

Key (under spec)Meaning
modelThe model in the Model Registry and how it is served.
type mapping · per environment yes
model.nameThe model's display name in the Model Registry.
type string · per environment no
model.promotionHow 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.servingOnline serving on an endpoint, deployed with pipewright deploy-model.
type mapping · per environment yes
model.serving.enabledWhether the model is served online. Needs online serving for the tenant.
type boolean · per environment yes
model.serving.targetWhere it is served.
allowed vertex, kserve · per environment yes
model.serving.featuresonline: 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.machineThe machine type, for example n1-standard-2.
type string or null · per environment yes
model.serving.replicasHow many replicas serve.
type mapping · per environment yes
model.serving.replicas.minThe fewest replicas.
type integer · limits at least 0 · per environment yes
model.serving.replicas.maxThe most replicas, reached under load.
type integer · limits at least 1 · per environment yes
model.serving.canary_percentThe 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.acceleratorA 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.typeThe accelerator type, for example NVIDIA_L4.
type string · per environment yes
model.serving.accelerator.countHow many per replica (default 1).
type integer · limits at least 1 · per environment yes
model.serving.capture1.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.enabledWhether capture is on. Default false.
type boolean · per environment yes
model.serving.capture.sample_rateThe share of requests recorded. Default 0.05.
type number · limits above 0, at most 1 · per environment yes
model.serving.capture.max_per_dayAt 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_daysDays the records are kept (the table's partition expiry). Default 30.
type integer · limits at least 1 · per environment yes
model.serving.scale_to_zeroWith 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_secondsSeconds 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_missingThe 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.poolModel 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_storeWhich 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.typebigtable (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.bigquerySettings for type bigquery.
type mapping · per environment yes
model.serving.online_store.bigquery.tableThe 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_msHow 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.cloudsqlSettings for type cloudsql.
type mapping · per environment yes
model.serving.online_store.cloudsql.schemaThe 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.tableThe 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.httpSettings for type http.
type mapping · per environment yes
model.serving.online_store.http.urlYour 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.audienceThe ID token audience the endpoint calls it with (default the URL).
type string · per environment yes
model.serving.online_store.http.timeout_msHow long a lookup may take (default 1000).
type integer · limits at least 50, at most 30000 · per environment yes
model.serving.online_store.lookupWhat 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.modelookup (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.retriesWith 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.callersWith 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.providerpipewright: 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.readerWith 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.cpuvCPU 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.memoryMemory 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_instancesInstances 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_instancesThe 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.concurrencyRequests 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_sizeDatabase 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_msHow 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_boostStartup 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.billingrequest (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.syncHow 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.modefull (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.exportPublish 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.enabledTurn the export on (default false).
type boolean · per environment yes
model.serving.online_store.export.uriWhere 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.keepHow 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.readersService 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
approvalsWhich changes need a person.
type mapping · per environment yes
approvals.promote_modelmanual - a passing model is a candidate until pipewright model approve; auto - training makes it the default.
allowed manual, auto · per environment yes
approvals.deploy_modelmanual - 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.approversWho may approve, as user:<email> or group:<email>.
type list of strings · per environment yes
approvals.batch_scoringauto (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_hoursHow 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
assistPipewright 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.enabledtrue - this team opts in. Where the environment has a platform manifest, the platform must also allow Assist.
type boolean · per environment no
assist.understoodThe 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_storeReserved for a later version; leave it out.
type null · per environment no

environments

Key (under spec)Meaning
environmentsPer-environment overrides, by environment name. Usually kept in environments/<env>.yaml instead.
type mapping · per environment no