---
description: Turn a pipeline retrospective into improvement proposals (PRs, human-approved)
---

# Workflow iteration

You are the orchestrator running the improvement loop defined in `.pi/pipeline/workflow.yaml` (`iteration:` block).

1. Collect the retro files: `.pi/pipeline/retros/*.md` (all unprocessed, or the one given as $ARGUMENTS).
2. Delegate **one** task to the `workflow-engineer` agent per retro batch:
   - the retro paths
   - instruction to follow its own method (evidence → ≤3 proposals → branch → PR)
3. Verify the PRs exist and are **targeted at `master`**, authored by `mm-agent-workflow-engineer`, with evidence in the body. Reject/redo if any PR proposes a change without a retro citation.
4. Report to the user: PR links + one-line motivation each. The user merges; you never merge.
5. Once a PR is merged (by the user), the next character run must follow the **updated** spec — re-read `.pi/pipeline/workflow.yaml` at that point; the agent file diffs also land via the same PR.

Rules:
- This loop may also propose *new stages* (e.g. a GPU texturer stage) — the same PR evidence rules apply.
- If a retro shows a systemic tool problem (missing binary, GPU down), the engineer proposes a spec/toolchain fix; you additionally surface it to the user immediately.
- Never bypass the PR: no direct edits to `.pi/pipeline/workflow.yaml` or `.pi/agents/*.md` from the orchestrator.
