Events, lineage and reports
Auditors and model-risk teams ask which data trained a model, who approved it, where it runs and why it was retrained. Pipewright records the answers as it goes: every key moment is a lifecycle event and a labelled log line, with who did it. Tools and people read the record instead of reconstructing it.
Lifecycle events
Events go to the environment’s events topic (Pub/Sub) and to Cloud Logging, with no vendor code in your pipelines. Each carries the use case, environment, tenant, run and release, and the event’s own fields.
| Area | Events |
|---|---|
| Releases | release.live, release.promoted, release.rolled_back |
| Runs | run.submitted, run.duplicate, run.failed, run.integrity |
| Data | data.features.resolved, data.labels.resolved, data.snapshot.written, data.snapshot.replayed, data.erased |
| Models | training.evaluated, training.rejected, model.registered, model.approved, model.deployed, model.undeployed, model.promoted, model.restored, model.retired, model.lineage.recorded |
| Integrity | model.integrity, model.integrity.check (the heartbeat), model.lock.renewed, model.lock.failed, model.lock.reconciliation, policy.override |
| Monitoring and decisions | monitoring.recorded, monitoring.alert, retrain.requested, retrain.approval, retrain.approved, retrain.declined, retrain.snoozed, retrain.training_failed, retrain.training_retried, retrain.digest, loop.<state>, loop.paused |
| Serving and stores | serving.pool.change (1.4.2), online.synced; 1.4.3: serving.degraded, serving.recovered, serving.capture_gap, serving.capture_silent, monitoring.insufficient_data, monitoring.attribution_drift |
| A/B tests (1.4.3) | ab_test.started, ab_test.allocation_changed, ab_test.paused, ab_test.resumed, ab_test.analysed, ab_test.guardrail_breached, ab_test.decision, ab_test.decided, ab_test.stopped |
| Ray and synthetic data | ray.cluster.created, ray.cluster.used, synthetic.evaluated, synthetic.rejected, synthetic.generated |
Decisions record how they were approved: model.approved, model.deployed, model.undeployed, model.promoted, release.live, release.promoted, release.rolled_back and the retrain decisions carry the person, or the CI identity with the GitHub reviewers, their comment and the workflow run.
A team can receive its decision events on its own subscription (the decision feed: retraining.decisions.publish), for its own apps. Enterprise builds evidence packs from the same record.
Structured logs
Components log with pipewright_runtime.log(...): JSON lines labelled with the use case, tenant, run and release, so one filter in Cloud Logging finds a run’s whole story. monitoring.alerts turns chosen events into email through Cloud Monitoring alert policies (pipewright alerts sync).
What is live: status
pipewright status --env prod [--usecase churn] [--json]
Each use case’s live release (commit, when, by whom, from where it was promoted), its schedules and pipelines. --json has stable field names for scripts; model list, monitor status, retrain list, retrain show, lineage and decisions pending take --json too.
Is the environment right: doctor
pipewright doctor --env prod is read-only and checks the live environment against the manifest and your use cases: the tenant’s resources and grants, the launcher and its subscription, the events topic, approver groups and who can publish to them, feature tables and online stores, endpoints and pools, integrity settings (locks, the watch, DATA_WRITE logs, audit retention, who can write the artifacts bucket). Each failure says who to ask: you or the platform team.
Lineage: a model version back to where it came from
pipewright lineage --env prod --usecase churn [--version 5]
The run that trained it; the release it ran (commit, template and image digests); a digest of its configuration and SQL files; the exact rows it trained on (its snapshot or BigQuery ML rows table, the row count and read time); the entity, feature and label sources; its evaluation against the champion; and its integrity: whether its files, image and evaluation are still the approved ones, the lock, each approval checked against Cloud Audit Logs, and, for a changed file, who wrote it. A promoted version points to the version it came from.
Every use case on one page
pipewright report fleet --out fleet.html [--mask]
Reads every environment of your MLOps repository and writes one read-only HTML page: each use case’s live release, champion, runs, pipeline hours, decisions, what waits for a person, and whether each champion is still the version approved. --mask replaces email addresses before you share it. It reads only what Pipewright records, never a row of data. Pipewright Enterprise’s Fleet View is the hosted, access-controlled version for a whole organisation.