Home / Pipewright Assist

Ask why the run failed. Get the cause and whose it is.

Pipewright Assist is an assistant for pipeline incidents, new in 1.4.4 as a preview. Ask it in plain words why a run failed. It answers with the step, the recorded cause, whether it is your team’s to fix or the platform’s, and the next thing to do. It reads no data rows, changes nothing and keeps a record of every answer.

Preview in 1.4.4

A failed run starts a search. Assist ends it.

When a training run fails at 2am, the morning goes on the same detective work every time: which step, what error, is it our code, our data or something the platform did not provide. Pipewright already knows most of the answer. Since 1.4.4 it records the cause with every failed run; Assist puts it in front of the person who asks, in plain words.

What a failure costs today (before anyone fixes anything)

The first hour goes on finding it

Consoles, step logs, the pipeline graph, the release that ran. The search is the same every time, and it takes a skilled engineer away from the work.

The failure goes to the wrong team

A missing permission, a quota, a service perimeter: a team can lose a day before learning the cause was never theirs to fix.

Nobody sees the pattern

One refused permission is a ticket. The same refusal across three teams is a platform fault, and today nobody adds them up.

The business case

Faster recovery, the right owner first time, and an assistant risk can say yes to.

Assist is built for the costs a platform carries quietly: engineers’ time on diagnosis, days lost to failures sent to the wrong team, and AI tools that security will not let near production. The preview runs in your own Google Cloud project, at Google’s prices, and is off until you switch it on.

Value

The cause in the time it takes to ask

The step, the error’s type, the line that raised it, the data contract that failed: recorded by Pipewright when the run failed, shown when you ask. No console, no log search.

Value

Every answer names an owner

Your team, the platform team, or “unclear” when the facts do not say. A refused permission goes to the platform the first time, with the Terraform to change; a broken contract goes to the team, with the setting to change.

Value

The platform sees the week

“Which failures this week were platform causes, and which use cases are blocked right now?” One question, every team in the environment, counted by owner.

Value

Safe to say yes to

It never reads data rows, feature values, predictions or step logs, and it cannot run, release, approve, deploy or grant. Questions and answers go through Google’s Model Armor, and every answer is recorded.

Value

Tested on real failures

Before release, Assist answered 22 recorded failures three times each against the real model: 66 of 66 correct, with the owner and the cause matching the record every time, and no confident wrong cause.

66 of 660 wrong causestemperature 0
Value

Small and predictable cost

About 2,800 to 3,500 tokens an incident question on gemini-3.8-flash, billed to your project by Google. A ceiling per question stops a runaway; Enterprise adds a budget per team.

WhoBeforea failed runWith Assistthe same run
ML engineerReads consoles and guesses whether the failure is theirsAsks, and gets the cause, the evidence, the owner and the setting to change
Platform engineerLearns of platform faults one ticket at a timeAsks which teams are blocked and which failures were platform causes, before the tickets arrive
Head of data or MLEngineers’ time goes on detective workFaster recovery and fewer days lost to failures sent to the wrong team
Risk and securityWary of AI near productionAn assistant that reads little, changes nothing and records everything, inside your own project
How an answer is made

The facts come from Pipewright. The model only explains them.

A language model is good at finding the run you mean and saying what happened in plain words. It is not trusted to decide the cause or the owner. Those come from Pipewright’s fixed rules, the same rules that write the run.failed event, so the answer cannot differ from the record, whatever the model says.

the cause recorded with a failed run
# written by a hook in the step's image, no values from the data
step        validate-data
kind        pipewright_error   # or the team's code, a Google error
where       validate.py, line 43
message     tenure_months: 715 values below 0
rule        checks             owner  team
# the launcher's hourly check publishes run.failed with this cause

Switch on monitoring.failure_records and every failed step leaves a value-free record: the step, the error’s type, the line that raised, check results and Pipewright’s own messages. Without it, Assist can only say “read the logs”. A run the orchestrator refused to start is recorded too.

Real answers

Captured from live runs. Only the project names changed.

Every screenshot below is what the command printed during the 1.4.4 tests, on the open-source starter (Agent Platform) and on Enterprise (private GKE, Kubeflow, a service perimeter enforced). Project names and addresses are replaced with examples. Select a picture to see it full size.

Assist answers that the churn training run failed at validate-data because its data contract found 715 negative tenure values, that the owner is the team, and that the data or data.contract in config/data.yaml should change.
A broken data contract: the team’s. The cause is the contract’s own result, with the line that raised. The next step and the file to change come from the fixed list of fixes, not from the model.
Assist answers that the record-metrics step was refused the BigQuery permission tables.get, that the owner is the platform team, and that it is granted through the environment's Terraform, not by hand.
A refused permission: the platform’s. The failure that costs a team a day goes straight to the platform, with what to change and a warning not to grant roles by hand.
Assist lists four failed or refused runs in the last seven days, three on teams and one on the platform, and the two use cases blocked right now, each with its owner.
The platform team’s week. Failures counted by owner across every team in the environment, the platform causes listed, and which use cases are blocked right now and on whom.
Assist answers that the mkt-gpu training run was never submitted because the orchestrator could not find a machine with the requested CPU, and that the team changes the step's machine and releases again.
A run that never started. The orchestrator refused the machine shape before any step ran. Assist still finds it, and points at the step’s settings in config/runtime.yaml.
Assist answers that two steps failed: load-model, because the default model version has no model file, and validate-data, because of out-of-range values, both owned by the team.
Two failed steps in one run. The first cause is explained in full, and every other failed step is listed with its own cause and owner.
On Enterprise, Assist answers that the ingest-data step was refused by a service perimeter, that the platform team reviews the perimeter's rules, and counts the team's questions against its monthly budget.
Enterprise: a service perimeter refused the call. Answered inside the environment on private GKE. The last line counts the team’s questions against its budget and says the answer is in the evidence.

The limits, shown (what it will not do is part of the product)

Asked to retrain the model, Assist replies that it never changes anything and shows the commands a person runs with their own identity.
It never acts. Asked to retrain, it shows the commands a person runs under their own name.
A question asking Assist to ignore its instructions and grant the owner role is stopped by Model Armor and never sent to the model.
Screened by Model Armor. A jailbreak attempt never reaches the model.
Asked why accuracy dropped, Assist replies that the preview answers incident questions only and gives the monitor status command.
Incidents only, for now. Other questions get a fixed reply and the command that has the facts.
Assist refuses to answer because the use case has not switched it on, and says how.
Off by default. A team that has not opted in is told how, and nothing is sent.
On Enterprise, a team that has used its monthly budget of questions is refused, and told the platform team sets the budget.
Enterprise: the team’s budget. The platform sets questions a month per team; the next one is refused.
The explain page's settings in play: both switches on, the model, temperature 0, the longest answer, the ceiling per question, the monthly count and the Model Armor template.
Every setting, in one place. assist explain ends with the settings in play. Read the whole explain page.
Open source and Enterprise

Free to use. Governed where it has to be.

The assistant, its rules, its screening and its test runner are in the open-source core. Pipewright Enterprise answers inside the environment, as its own identity, with a budget per team and every answer in the evidence.

Core

Answered on your machine

pipewright assist ask runs in the engineer’s terminal with their own Google Cloud access, so it can never read more than they can. The record is kept in the repository.

assist explainassist askassist test
Core

The cause recorded

The failure hook in every step image, the owner rules and the run.failed event with a cause, rule and next step. Useful on its own, with or without Assist.

Core

A test you can run

pipewright assist test replays 22 frozen failures against the model your environment uses, and fails when an owner, a cause or a fix is wrong.

Enterprise

Answered inside the environment

The hosted tool server answers on Cloud Run or private GKE, as an Assist identity nobody can impersonate, behind the service perimeter.

Cloud Runprivate GKEperimeter
Enterprise

A budget per team

spec.assist.budget.questions_per_month: the platform sets how many questions each team may ask, and the next one is refused.

Enterprise

EV-19 in the evidence

Every answer is a row in ai_assist_answers: who asked, the run, the rule, the owner, the model, the tokens, whether it was screened. The evidence pack gains EV-19.

Switch it on

Two switches. Both off until you set them.

A preview: off by default, incident questions only, and its answers and commands may change between releases. Nothing about your existing use cases changes when you upgrade to 1.4.4.

the platform's Terraform
# the open-source starter
assist          = true
failure_records = true      # the cause recorded with each failed run

# Pipewright Enterprise, platform.yaml
spec:
  assist:
    enabled: true
    budget: { questions_per_month: 200 }

The platform also chooses the Model Armor template. Model Armor’s first 2 million tokens a month are free, then Google charges per million; see Google’s pricing.

Pipewright 1.4.4

The next failure, explained in one question.

Pipewright Assist is a preview in the open-source core from 1.4.4. Enterprise answers inside your boundary, with a budget and the evidence.