Pipewright Assist (preview)
Pipewright Assist answers incident questions about your pipeline runs: why did this run fail, whose is it to fix, and what do I do next. It is new in 1.4.4, off by default and a preview: its answers and commands may change between releases. Read this page, or pipewright assist explain, before you switch it on. For the business case and real answers, see Pipewright Assist.
$ pipewright assist ask "why did last night's churn training fail?" --env test --usecase churn
The training run r4f7fc4901cbb of churn failed at prepare-data.
Cause: TypeError in prepare.py, line 39
df["charge_per_customer"] = df["monthly_charges"] / df["customer_id"]
The prepare-data step failed while dividing monthly_charges by customer_id.
Owner: your team.
Next: Fix the line shown and release the use case again. Nothing is wrong with the platform.
Where: the file and line in the cause
(Generated advice (preview). Check it before you act: Assist changes nothing and approves nothing.
1 tool call, 3,275 tokens. Not screened by Model Armor.)
Where the answer comes from
Since 1.4.4 Pipewright records why a run failed: a hook in each step’s image writes a value-free failure record, and the launcher’s hourly check reads it (or Google’s own error line, or a pod’s status) and keeps the cause with the run. The run.failed event carries the cause, its rule, its owner and the next step. Assist reads that.
| Line of the answer | Written by |
|---|---|
| Which run, which step, the state | Pipewright, from the run |
| Cause | Pipewright, from the recorded cause |
| Owner: your team, the platform team, or unclear | Pipewright’s fixed rules, the same as run.failed |
| Next, Where | Pipewright’s fixed list of fixes, one per rule |
| The short explanation in between | The model |
The model has two jobs: finding the run you mean, and a few plain sentences about the recorded facts. It cannot change the owner, the cause or the advice. An explanation that names a role, an address or a link is dropped. When no cause was recorded, Assist says so and where to look. It does not guess.
When Pipewright itself refuses a step (a champion whose model is gone, a launcher the step cannot reach), the refusal names its owner where it is raised: use_case_settings for the team, platform_settings for the platform. The full list of rules is in Troubleshooting and in the core’s docs/FAILURES.md.
What it reads, and never reads
| Reads | Never reads |
|---|---|
| A use case’s recent runs and their recorded cause | Data rows, feature values, predictions |
| Which release is live, and its settings | Step logs, pod logs |
The environment checks of pipewright doctor | Monitoring results, audit logs, the cluster |
One line of your own source code can be part of a recorded cause: the line that raised. Assist changes nothing: it does not run, retrain, release, approve, deploy or grant. No answer of Assist is an approval.
Switching it on
Two switches. Neither alone turns it on.
1. The platform allows it for the environment (only where the environment has a platform manifest). In the open-source starter:
assist = true
failure_records = true # every use case records why a failed step failed
assist_settings = {
screening_template = "projects/<project>/locations/<location>/templates/<name>" # Model Armor
}
In Pipewright Enterprise, spec.assist.enabled: true in the platform file. An environment with no platform manifest (a team on open source without a platform team) has no platform switch.
2. Your team opts in, in the use case’s usecase.yaml, after reading pipewright assist explain:
spec:
assist: { enabled: true, understood: "1.4.4" } # the version of the explain page you read
monitoring:
failure_records: true # without recorded causes, Assist can only say "read the logs"
Install the extra (Google’s Agent Development Kit, pinned): pip install "pipewright-mlops[gcp,assist]==1.4.5". pipewright doctor --env <env> says whether Assist is on for a use case, and why not. When a release changes what Assist reads or does, the explain page’s version changes and your team confirms again.
Asking
pipewright assist ask "why did training run r4f7fc4901cbb fail?" --env test --usecase churn
pipewright assist ask "which of our runs failed this week?" --env test --tenant retail
pipewright assist ask "which use cases are blocked, and on whom?" --env test --platform
| Flag | Who asks | What it covers |
|---|---|---|
--usecase | A member of the team | That use case’s runs |
--tenant | A member of the team | The team’s use cases that have Assist on |
--platform | The platform team | The whole environment: failures of the last 7 days by owner, and what is blocked now |
A use case is blocked when the latest run of one of its pipelines failed, or could not be submitted, and none has succeeded since. A run waiting for an approver is waiting, not blocked.
Assist answers incident questions only. Anything else gets one of three fixed replies: “not covered in the preview” (with the command that shows the facts today), “Assist never changes anything” (with the command a person runs), or a one-line decline.
The model, and the settings in play
pipewright assist explain --env <env> --usecase <use case> ends with the settings in play:
| Setting | Default |
|---|---|
| Model | gemini-3.8-flash, called from the global endpoint |
| Called as | You, with your own Google Cloud access (Enterprise: the environment’s Assist identity) |
| Temperature | 0 |
| Longest answer | 1,024 tokens |
| Ceiling per question | 8 tool calls, 40,000 tokens |
| Questions per team per month | 200 (counted everywhere; enforced by Pipewright Enterprise) |
| Screening (Model Armor) | Off until a template is named |
The platform sets the model and where it is called (ai.assist.model, ai.assist.location in the manifest). The fast model runs only from the global endpoint; a platform that needs processing in its region names a regional model.
Who pays. The model is called in your own Google Cloud project, and your project pays Google at Google’s prices. An incident question used about 2,800 to 3,500 tokens in our tests; each answer ends with the tokens it used. Nothing is sent to Pipewright’s maker.
Screening with Model Armor
Questions and answers should go through Google’s Model Armor. With a template named (ai.assist.screening: { enabled: true, template: ... }), Assist screens three things on every question: your question, each text field a tool returns (one by one), and the answer before you see it. A question or answer that matches is refused with a plain line. Without a template, every answer ends with “Not screened by Model Armor.”
Model Armor is the second layer. The first is structure: tool text is handed to the model as data, the owner and the advice come from fixed lists, and text that reads like an instruction is left out and the answer says so. Not every Model Armor filter is offered in every region. Model Armor’s first 2 million tokens a month are free (Google’s pricing).
What is kept
Every question and answer is written to .pipewright/assist-log.jsonl in your repository: the question as you typed it, the tools called, the run, the rule and owner given, the answer, the model and the tokens. It is your own record, not evidence (you can edit it). Do not type personal data into a question.
How it is tested
pipewright assist test --env <env> replays 22 frozen incidents against the model, three times each, with no Google Cloud call except the model. They are real failures made while testing 1.4.4 on Agent Platform and on Kubeflow, plus traps: a run that did not fail, a planted instruction, another team’s run, a failure with no cause recorded. --scripted runs the same cases with no model, to check the harness itself.
| The pass mark | Required | 1.4.4 release test |
|---|---|---|
| The owner and the rule match the recorded ones | Every case, every run | 57 of 57 incident runs |
| The advice is the known fix for that rule | At least nine cases in ten | 19 of 19 |
| A confident wrong cause | None | None |
| A planted instruction is ignored, and the answer says so | Every run | Every run |
| Another team’s run is refused | Every run | Every run |
A release of Pipewright does not ship below the pass mark. The 1.4.4 run passed 66 of 66.
With Pipewright Enterprise
Where the environment has a hosted tool server for your team, the same command sends your question there, and it is answered inside the environment: the tools read as the server’s metadata-only identity, the model is called as the environment’s Assist identity, your team’s budget (spec.assist.budget.questions_per_month, default 200) is enforced, and the answer is recorded in the evidence dataset (ai_assist_answers, evidence control EV-19) before you see it. Nothing of the assistant runs on your machine.
pipewright assist ask "why did last night's training fail?" --env prod --usecase churn
pipewright assist ask "..." --env prod --usecase churn --server http://localhost:8765 # through a local proxy
--local answers on your machine with your own access instead; the platform then neither counts nor records it.
In a private environment
Your terminal must be allowed to reach the environment, as for every other pipewright command. For a tool server inside private GKE, a port-forward carries your Google ID token, which the server verifies.
A preview
Off by default, with no stability promise yet. Later steps, each designed and tested before it is added: a chat inside Fleet View (Enterprise), an answer sent with the alert, and further kinds of question.
Related: Pipewright Assist, Troubleshooting, Events, lineage and reports, AI build assistance.