Manual / Guides

Synthetic data

Off until your team needs it. A synthetic section in the use case switches it on; without it nothing is built, compiled or released for it. Synthetic rows are learned inside your environment, scored against the real data the engine never saw, and published only when every gate passes. The overview is on the synthetic data page; this page is the how-to.

# config/synthetic.yaml
synthetic:
  enabled: true                          # may differ per environment
  purpose: test-data                     # test-data stays in the organisation; sharing leaves it (stricter gates)
  tier: learned                          # or contract: no real data at all
  source_uri: bq://${project}.${resources.bigquery_dataset}.customers
  output_table: synthetic_customers      # in outputs.bigquery.tables
  rows: 10000                            # default: as many as the source
  columns:
    customer_id: { rule: key, prefix: "SYN-" }       # keys and personal data are never learned
    email:       { rule: fake, provider: email }      # example.com addresses

Two tiers

TierHowRun it
learnedAn engine learns from the real data inside the environment, in a synthetic pipeline Pipewright provides (no code to write)pipewright run --env dev --usecase churn --pipeline synthetic, or a schedule with pipeline: synthetic
contractRows from the data contract and column rules alone: no real data, no machine learningpipewright synthetic generate --env dev --usecase churn --out rows.csv, for development, CI and demos

Engines

MOSTLY AI’s Synthetic Data SDK in local mode (Apache-2.0) is the default; it makes no network calls. SDV is available as an engine your team installs itself (synthetic.requirements), under its own licence (Business Source Licence 1.1); Pipewright never ships it. synthetic.candidates tries engine variants side by side (by default sampling temperatures 1.0 and 1.3).

Gated, never trusted

Each candidate is scored the same way, against a real holdout the engine never saw (holdout_fraction, 0.2):

Gate familyMeasures
FidelityHow closely the columns and their relationships match the real data
UtilityA model trained on synthetic data, tested on the real holdout
PrivacyExact copies, distance to the closest real record, singling-out, linkability and inference attacks (on the label and sensitive_columns)

Pipewright recomputes the purpose’s gates and publishes the best candidate that passes all of them, or nothing. pipewright synthetic gates lists them with their defaults; privacy gates may only be made stricter. The platform can set its own (policies.synthetic).

Column rules

ruleGives
keyNew unique keys (prefix)
fakeMade-up personal data: provider email, name, phone, uuid or text (emails use example.com)
constant, dropOne value; null
timeDates on a grid (from, to, step: day or month_end)
values, rangeA categorical with weights; numbers between min and max

Personal-data columns (data_protection.personal_data_columns) and keys are never learned: a personal-data column without a rule gets new values.

Relational and sequential

mode: relational learns the entity table together with the feature tables of data.features_from and event tables in synthetic.sequences, as one model. Keys stay consistent across tables, each entity’s history keeps its timing against each cut-off, and the gates are measured on the point-in-time join of the synthetic tables. Each table goes to its own output table (synthetic.output_tables), so a team can train on synthetic data with the same features_from block pointed at them.

Repeatable runs (1.4.3)

A learned engine trained twice on the same rows can give different copies. Set synthetic.engine.seed and max_epochs (also per candidate) and a run repeats; the evaluation record says whether each candidate repeats, and why not when it cannot. Useful when an auditor asks you to regenerate the copy they approved.

Released like any pipeline

The synthetic pipeline runs on two images Pipewright builds (the engine and the evaluation), recorded in the release contract by digest, verified, and copied by promote. Events synthetic.evaluated, synthetic.rejected and synthetic.generated carry the gates, the chosen candidate and where the rows went.

Pipewright Enterprise

Approval of a synthetic release by named approver groups, releasing it into other environments (pipewright synthetic-release), evidence, and per-environment privacy policy.