The build pipeline
Once an epic is approved, /we:master takes its stories from plan to merged pull request — largely on its own.
What it is
Section titled “What it is”/we:master is the epic’s master. It reads where each story stands from git and the ticket, and decides what the story needs next: a story without a plan gets a refiner worker that writes one with /we:plan-story; a story with a plan gets a build worker that runs /we:develop. The build worker implements the plan’s phases in its own worktree, runs the local gates, commits and reports — it opens no PR and runs no CI. The master checks the report, merges the base branch, pushes once and opens one PR per story.
Local review stays deterministic — hooks and the affected tests. The only local LLM review is one code review for a change that touches money, auth, tenant isolation or a migration; every other review runs once, in CI, on the pull request.
Why it matters to you
Section titled “Why it matters to you”One PR per story keeps every change small enough to read and to revert. Running review, static analysis and CI on the PR, not in every worker, means each step happens once. You still decide what matters: you approve the epic, and a change in the one-way class waits for your merge.
How you use it
Section titled “How you use it”Run /we:master for an approved epic. It goes through the same sequence for every story:
- Pull — the next selected story of the epic.
- Plan or build — a refiner worker for a story without a plan, a build worker for a story with one.
- Check — the master reads the worker’s report against the plan.
- PR — merge the base branch, push once, open one PR for the story (
/we:prdoes the same by hand). - CI review — once CI concludes,
/we:ci-reviewcollects every CI and review finding, fixes by severity and pushes once, up to three rounds./we:lensand/we:ac-reviewjudge a plan or a branch on demand. - Merge — Claude arms auto-merge once the checks and the Codex review are in. A diff in the one-way class — a money path, a destructive migration, Terraform or secrets, a loosened tenant, auth or trust rule — waits for you.
- Close out — after the merge,
/we:mergedtears down worktrees and branches and moves each landed story to In Review.
Limits & edge cases
Section titled “Limits & edge cases”- Three red gates stop a worker. When the same gate fails three times, the worker stops and reports instead of thrashing.
- The one-way class is never armed. No session merges or arms it; you merge it.
- Done follows acceptance. A merged story sits in In Review until it is accepted —
/we:acceptcarries an acceptance run’s verdict onto the board and moves the green stories to Done.
