@tianhai/pi-workflow-kit 2.1.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -22
- package/agents/pwk-spec-reviewer.md +1 -1
- package/agents/pwk-tracing-reviewer.md +1 -1
- package/docs/developer-usage-guide.md +13 -19
- package/docs/oversight-model.md +12 -10
- package/docs/provider-delegation-contract.md +1 -1
- package/docs/workflow-phases.md +19 -19
- package/extensions/workflow-guard.ts +4 -10
- package/package.json +1 -1
- package/skills/pwk-brainstorming/SKILL.md +28 -24
- package/skills/pwk-code-review/SKILL.md +25 -17
- package/skills/pwk-executing-tasks/SKILL.md +98 -59
- package/skills/pwk-finalizing/SKILL.md +27 -29
- package/skills/pwk-status/SKILL.md +9 -11
- package/skills/pwk-walkthrough/SKILL.md +2 -2
- package/skills/pwk-diagnose/SKILL.md +0 -59
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# pi-workflow-kit
|
|
2
2
|
|
|
3
|
-
> Stop AI agents from rushing to code. Enforce a structured
|
|
3
|
+
> Stop AI agents from rushing to code. Enforce a structured design → execute → finalize workflow with test-first discipline and a feature-gate execution model.
|
|
4
4
|
|
|
5
|
-
AI coding agents tend to skip design and jump straight into implementation, producing over-engineered or misaligned code. **pi-workflow-kit** solves this by hard-blocking write operations during
|
|
5
|
+
AI coding agents tend to skip design and jump straight into implementation, producing over-engineered or misaligned code. **pi-workflow-kit** solves this by hard-blocking write operations during the design phase — the agent *literally cannot modify your source files* until you approve the design.
|
|
6
6
|
|
|
7
7
|
[pi](https://github.com/badlogic/pi-mono) package. Skills are portable; the workflow guard and `/pwk-setup` command are Pi integrations.
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ For Pi delegation providers that discover project agents, install the canonical
|
|
|
18
18
|
/pwk-setup
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
This creates the five role definitions under `.agents/agents/`. It does not install or configure a provider. Existing customized files are preserved; use `/pwk-setup --force` only when you explicitly want to replace differing role files. Run setup before `/skill:pwk-brainstorming`; the command is refused during
|
|
21
|
+
This creates the five role definitions under `.agents/agents/`. It does not install or configure a provider. Existing customized files are preserved; use `/pwk-setup --force` only when you explicitly want to replace differing role files. Run setup before `/skill:pwk-brainstorming`; the command is refused during the design phase.
|
|
22
22
|
|
|
23
23
|
Optionally set a fast-tier model for the smell/hazard reviewers (they carry `thinking: low` and a turn budget by default): `/pwk-setup --fast-model <model>` — or pick one interactively when setup offers — and `--all-roles` to apply it to all four reviewers. The hint is advisory; hosts that cannot honor it keep the default model. Bare re-runs keep the recorded choice; only `--force` replaces local edits beyond the model line.
|
|
24
24
|
|
|
@@ -51,32 +51,32 @@ Enforces phase-appropriate tool access — not just guidelines, but hard blocks:
|
|
|
51
51
|
| Phase | `write` / `edit` | `bash` |
|
|
52
52
|
|-------|:-:|:-:|
|
|
53
53
|
| **Design** | 🔒 Blocked outside `docs/plans/` | 🔒 Destructive commands blocked (simple blacklist) |
|
|
54
|
-
| **Execute** / **Code-review** / **Finalize** / **
|
|
54
|
+
| **Execute** / **Code-review** / **Finalize** / **Walkthrough** | ✅ Full access | ✅ Full access |
|
|
55
|
+
| **Status** | Unchanged — status never exits the gate (read-only orientation) | Unchanged — the active phase's bash rules still apply |
|
|
55
56
|
|
|
56
57
|
The agent can read code and discuss design with you during the design phase, but it physically cannot modify source files. Bash during gated phases is governed by a simple common-blacklist (a command is allowed unless it matches a destructive pattern), and a short phase reminder is shown once when the gated phase begins so the model self-restricts.
|
|
57
58
|
|
|
58
|
-
Phases transition only when you invoke a skill (`/skill:pwk-brainstorming` → read-only; `/skill:pwk-executing-tasks` → unrestricted) — no message keyword unlocks the guard. Unlocking skills: `pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, `pwk-
|
|
59
|
+
Phases transition only when you invoke a skill (`/skill:pwk-brainstorming` → read-only; `/skill:pwk-executing-tasks` → unrestricted) — no message keyword unlocks the guard. Unlocking skills: `pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, `pwk-walkthrough` (all write beyond `docs/plans/`, so all exit the gate); `pwk-status` stays read-only and runs inside the gate. The canonical list is the exported `UNLOCK_SKILLS` in `extensions/workflow-guard.ts`, lint-asserted against the skills by `npm run check`. Need to override it? `/pwk-guard on` forces a read-only lock, `off` disables the guard entirely, `auto` (default) returns to skill-driven phases. The subcommands autocomplete after the command.
|
|
59
60
|
|
|
60
|
-
### 🧠
|
|
61
|
+
### 🧠 6 Workflow Skills
|
|
61
62
|
|
|
62
63
|
Guide the agent through a disciplined development process:
|
|
63
64
|
|
|
64
65
|
```
|
|
65
66
|
brainstorm → executing-tasks → finalizing
|
|
66
|
-
(feature-gate: write feature E2E →
|
|
67
|
+
(feature-gate: write feature E2E → report it → implement → review → ⏸ ship checkpoint)
|
|
67
68
|
↕
|
|
68
|
-
|
|
69
|
+
status (anytime)
|
|
69
70
|
```
|
|
70
71
|
|
|
71
|
-
A **design doc is one PR**; a **requirement is one testable slice within it**. A requirement too big for one design doc but shipping as one PR is an **umbrella** —
|
|
72
|
+
A **design doc is one PR**; a **requirement is one testable slice within it**. **One folder per topic** — `docs/plans/<date>-<topic>/` holds the topic's design doc, progress file, and review packet, and is the unit disposed at finalize. A requirement too big for one design doc but shipping as one PR is an **umbrella** — more than one leaf in that same folder, under one status-free overview, on one branch, finalized once.
|
|
72
73
|
|
|
73
74
|
| Phase | Trigger | What Happens |
|
|
74
75
|
|-------|---------|--------------|
|
|
75
76
|
| **Brainstorm** | `/skill:pwk-brainstorming` | Explore approaches, produce a design doc opening with a `## At a glance` digest (plain summary → **Key decisions** — rejected-alternative clauses only for real forks — → `| R# | Requirement in one line | Risk |` table) before the `## Requirements` blocks; each requirement block carries its own acceptance criteria + review tags. Interviews in **frontier rounds**: numbered questions each with a recommended answer, facts looked up rather than asked, an assumption gate before the design is presented. On non-trivial topics, requests the logical `codebase-recon` capability; if unavailable or unsafe, performs the `pwk-recon-scout` role inline. |
|
|
76
|
-
| **Execute** | `/skill:pwk-executing-tasks` | Create the feature branch, then: write the feature E2E (red) → **
|
|
77
|
+
| **Execute** | `/skill:pwk-executing-tasks` | Create the feature branch, then: write the feature E2E (red) → **report it, no stop** → implement the design doc's `### R<n>` requirement blocks → feature review (risk-scaled: four roles or one inline pass) → **ship checkpoint** (execution summary + code digest + coverage table; full diff on request) |
|
|
77
78
|
| **Code review** | `/skill:pwk-code-review` | Feature-level (default) or per-requirement: code tracing, spec alignment, code smells (applies fixes), production hazard check. Delegated review uses four tiered logical roles (smell/hazard on a fast model via `/pwk-setup --fast-model`) over a script-assembled review packet when a safe provider is available; otherwise it runs inline. |
|
|
78
79
|
| **Finalize** | `/skill:pwk-finalizing` | Delete consumed plan docs or archive them under `docs/plans/completed/` (discovery always runs excluding docs/plans/completed/, so archived work never resurfaces as in flight — single source: the `pwk-executing-tasks` glob wording), update README/CHANGELOG, create PR |
|
|
79
|
-
| **Diagnose** | `/skill:pwk-diagnose` | Debugging loop: reproduce → hypothesise → instrument → fix → cleanup. **Exits the gated phase** (debugging writes tests/instrumentation) |
|
|
80
80
|
| **Walkthrough** | `/skill:pwk-walkthrough` | On demand: generate a detailed, file:line-anchored walkthrough of a shipped feature into `docs/walkthroughs/<topic>.md` (Summary / How it works / Key flows / Gotchas & invariants / Change map); stamped with the commit range, regenerated wholesale, never disposed. **Exits the gated phase** |
|
|
81
81
|
| **Status** | `/skill:pwk-status` | Read-only overview of all active design topics — phase + progress. Use when resuming or juggling several designs in parallel worktrees. Not a pipeline phase; **does not exit the gated phase**. |
|
|
82
82
|
|
|
@@ -102,9 +102,9 @@ The design doc specifies *what*, not *how*. Each `### R<n>:` requirement block g
|
|
|
102
102
|
The feature is implemented via the feature-gate flow:
|
|
103
103
|
|
|
104
104
|
1. Write the feature-acceptance E2E test (red)
|
|
105
|
-
2.
|
|
105
|
+
2. **Report it — no stop** — one or two lines saying what the E2E proves, plus its failing output; the run continues straight into implementation (that text was already approved as `## Feature acceptance` during brainstorm, so this is the window to object before code is written, not a sign-off gate)
|
|
106
106
|
3. Implement the requirements back-to-back (TDD: meaningful test → red → green per slice; full autonomy)
|
|
107
|
-
4. Feature review
|
|
107
|
+
4. Feature review — risk-scaled: four fresh-context roles over a script-assembled review packet when the design carries production-risk content, otherwise one inline pass
|
|
108
108
|
5. ⏸ **ship checkpoint** — full suite + feature E2E green; you review the execution summary + coverage table (full diff on request)
|
|
109
109
|
|
|
110
110
|
Per-requirement checkpoints/reviews are opt-in (default off); the feature-level review covers everything.
|
|
@@ -115,7 +115,6 @@ A persistent rules file (`docs/lessons.md`) helps the agent learn from repeat mi
|
|
|
115
115
|
|
|
116
116
|
```
|
|
117
117
|
brainstorm → reads lessons (design context)
|
|
118
|
-
plan → reads lessons (acceptance criteria / tests)
|
|
119
118
|
execute → reads lessons per requirement, writes new ones on repeat mistakes
|
|
120
119
|
finalize → reviews, generalizes, and retires stale rules
|
|
121
120
|
```
|
|
@@ -128,16 +127,16 @@ Rules are simple imperative bullets:
|
|
|
128
127
|
|
|
129
128
|
No configuration needed — the agent creates `docs/lessons.md` on first use and it grows as the agent learns.
|
|
130
129
|
|
|
131
|
-
###
|
|
130
|
+
### Feature-Level Checkpoints
|
|
132
131
|
|
|
133
|
-
The feature-gate flow
|
|
132
|
+
The feature-gate flow's hard human-review gates (not optional) — **two hard stops when the design carries `## Setup`** (setup + ship), otherwise one (ship):
|
|
134
133
|
|
|
135
134
|
| Checkpoint | What's done | What you review |
|
|
136
135
|
|---|---|---|
|
|
137
|
-
| **
|
|
138
|
-
| **ship** | All requirements implemented; full suite + E2E green; feature review collected | Execution summary + per-requirement coverage table — built as promised? (full diff on request) |
|
|
136
|
+
| **setup** *(only when the design has a `## Setup` section)* | Dependencies installed, migrations applied, existing suite run | Setup results — approve before implementation starts |
|
|
137
|
+
| **ship** | All requirements implemented; full suite + E2E green; feature review collected | Execution summary + code digest + per-requirement coverage table — built as promised? (full diff on request) |
|
|
139
138
|
|
|
140
|
-
The agent stops and waits
|
|
139
|
+
The agent stops and waits there — approve, request changes, or send it back. The feature-acceptance E2E is still written first and still gated at the ship checkpoint; it is reported before implementation without pausing, because its text was approved as `## Feature acceptance` during brainstorm.
|
|
141
140
|
|
|
142
141
|
### Before You Ship: the Ship Gate
|
|
143
142
|
|
|
@@ -159,7 +158,7 @@ pi install npm:@tianhai/pi-workflow-kit
|
|
|
159
158
|
|
|
160
159
|
> /skill:pwk-executing-tasks
|
|
161
160
|
|
|
162
|
-
# (feature-gate: creates the branch
|
|
161
|
+
# (feature-gate: creates the branch → setup stop when the design carries `## Setup` → writes feature E2E → notice → implements the blocks → feature review → ship checkpoint)
|
|
163
162
|
|
|
164
163
|
> /skill:pwk-finalizing
|
|
165
164
|
|
|
@@ -170,7 +169,7 @@ pi install npm:@tianhai/pi-workflow-kit
|
|
|
170
169
|
|
|
171
170
|
- **AI agents skip design.** Left unchecked, they jump to code and over-engineer. This forces a think-first workflow.
|
|
172
171
|
- **Specs beat recipes.** Plans are behavioral specs (acceptance criteria + tests), not implementation recipes — they don't invalidate when details change.
|
|
173
|
-
- **You stay in control.**
|
|
172
|
+
- **You stay in control.** One or two feature-level stops (setup when the design carries `## Setup`, then ship) let you sign off the finished implementation — execution summary, code digest, and coverage table — before the agent ships; the E2E is reported before implementation so you can object early.
|
|
174
173
|
- **Enforced, not suggested.** Hard blocks mean the agent can't ignore the rules — not even accidentally.
|
|
175
174
|
|
|
176
175
|
## Project
|
|
@@ -185,7 +184,6 @@ pi-workflow-kit/
|
|
|
185
184
|
│ ├── pwk-code-review/SKILL.md
|
|
186
185
|
│ ├── pwk-finalizing/SKILL.md
|
|
187
186
|
│ ├── pwk-status/SKILL.md
|
|
188
|
-
│ ├── pwk-diagnose/SKILL.md
|
|
189
187
|
│ └── pwk-walkthrough/SKILL.md # on-demand explainer; docs/walkthroughs/ output
|
|
190
188
|
├── agents/ # canonical role contracts; /pwk-setup copies them to .agents/agents/
|
|
191
189
|
├── docs/
|
|
@@ -28,7 +28,7 @@ The task provides a review packet: the diff under review plus the acceptance cri
|
|
|
28
28
|
|
|
29
29
|
For each acceptance criterion, point to the code and the test that satisfy it. A criterion with no covering code or no test is a **gap**. Code that does more than the criteria specify is **scope creep** — flag it.
|
|
30
30
|
|
|
31
|
-
**Open the report with a coverage table** — one row per requirement, keyed by the packet's `##
|
|
31
|
+
**Open the report with a coverage table** — one row per requirement, keyed by the design doc's `### R<n>:` headings as carried verbatim in the packet's `## Acceptance criteria` section (R# = n):
|
|
32
32
|
|
|
33
33
|
| R# | Verdict | Evidence |
|
|
34
34
|
|----|---------|----------|
|
|
@@ -26,4 +26,4 @@ The task provides a review packet: the diff under review plus the acceptance cri
|
|
|
26
26
|
|
|
27
27
|
### Code tracing
|
|
28
28
|
|
|
29
|
-
Trace the new or changed code paths end-to-end against the
|
|
29
|
+
Trace the new or changed code paths end-to-end against the acceptance criteria and the feature-acceptance E2E scenarios in the packet. For each path, determine whether data flows correctly from entry to the asserted outcome. Note any branch the tests do not exercise, any dead branch, or any path where the trace breaks.
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
How to install and use `pi-workflow-kit` with Pi, and how its workflow roles map to other agent hosts.
|
|
4
4
|
|
|
5
|
+
The kit enforces a design → execute → finalize workflow: one buildable design doc per feature, executed through the feature gate, shipped once.
|
|
6
|
+
|
|
5
7
|
## What you get
|
|
6
8
|
|
|
7
9
|
- **4 pipeline skills** — brainstorm → executing-tasks → finalizing, with code-review running at the feature level during execution.
|
|
8
|
-
- **2 utility skills** —
|
|
10
|
+
- **2 utility skills** — status (multi-topic overview) and walkthrough (on-demand explainer), both invoked on demand.
|
|
9
11
|
- **1 extension** — hard-blocks source writes during the design phase, and blocks destructive bash via a simple common-blacklist.
|
|
10
12
|
|
|
11
13
|
## Installation
|
|
@@ -32,7 +34,7 @@ Or in `.pi/settings.json` / `~/.pi/agent/config.json`:
|
|
|
32
34
|
|
|
33
35
|
## The workflow
|
|
34
36
|
|
|
35
|
-
You control each phase by invoking the skill. A design doc is one PR; a requirement is one testable slice within it. A requirement too big for one design doc but shipping as one PR is an **umbrella** —
|
|
37
|
+
You control each phase by invoking the skill. One folder per topic: `docs/plans/<date>-<topic>/` holds the topic's design doc, progress file, and review packet, and is the unit disposed at finalize. A design doc is one PR; a requirement is one testable slice within it. A requirement too big for one design doc but shipping as one PR is an **umbrella** — more than one leaf in that same folder, under one status-free overview, on one branch, finalized once:
|
|
36
38
|
|
|
37
39
|
```
|
|
38
40
|
/skill:pwk-brainstorming → /skill:pwk-executing-tasks → /skill:pwk-finalizing
|
|
@@ -46,7 +48,7 @@ Before entering the gated phase in Pi, optionally install the canonical role def
|
|
|
46
48
|
/pwk-setup
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
The command creates `.agents/agents/` and installs the five PWK roles. It preserves differing files unless `--force` is supplied and is refused during
|
|
51
|
+
The command creates `.agents/agents/` and installs the five PWK roles. It preserves differing files unless `--force` is supplied and is refused during the design phase. It does not install a delegation provider.
|
|
50
52
|
|
|
51
53
|
```
|
|
52
54
|
/skill:pwk-brainstorming
|
|
@@ -54,7 +56,7 @@ The command creates `.agents/agents/` and installs the five PWK roles. It preser
|
|
|
54
56
|
|
|
55
57
|
Explore the idea through collaborative dialogue. The agent reads code, asks questions, proposes approaches, and presents the design for your review. Questioning runs in **frontier rounds**: numbered questions each carrying a recommended answer, facts looked up rather than asked, an assumption gate before the design is presented, and a frontier-empty stop rule (nothing left silently assumed). On non-trivial topics with prior art, the skill requests the logical `codebase-recon` capability using the `pwk-recon-scout` role. A compatible host may dispatch that role in a fresh, bounded, read-only worker; otherwise the skill reports `Scout: unavailable` and performs the same five-section recon inline.
|
|
56
58
|
|
|
57
|
-
Outcome: `docs/plans
|
|
59
|
+
Outcome: `docs/plans/<date>-<topic>/<leaf>-design.md` — descriptive, opening with a `## At a glance` digest for the human (plain-language summary → **Key decisions** — `(rejected: …)` clauses only for real forks — → `| R# | Requirement in one line | Risk |` table) immediately before the `## Requirements` blocks. For a too-big requirement, may start an **umbrella** (writes a status-free `overview.md` + the first leaf's design doc in the same folder). ADRs go to `docs/adr/` (permanent).
|
|
58
60
|
|
|
59
61
|
### 2. Execute
|
|
60
62
|
|
|
@@ -62,11 +64,11 @@ Outcome: `docs/plans/YYYY-MM-DD-<topic>-design.md` — descriptive, opening with
|
|
|
62
64
|
/skill:pwk-executing-tasks
|
|
63
65
|
```
|
|
64
66
|
|
|
65
|
-
Implement via the **feature-gate flow** with full autonomy: write the feature-acceptance E2E test (red) → **
|
|
67
|
+
Implement via the **feature-gate flow** with full autonomy: write the feature-acceptance E2E test (red) → **report it (no stop)** → implement the requirements back-to-back → feature review → **ship checkpoint** (full suite + E2E green; you review the execution summary + code digest + coverage table — full diff on request). After the review passes, the executor writes the code digest into the progress file from the review packet. Two hard stops when the design carries `## Setup` (setup + ship); otherwise one (ship) at the feature level. Per-requirement checkpoints/reviews are opt-in (default off).
|
|
66
68
|
|
|
67
69
|
### 3. Code review (feature level)
|
|
68
70
|
|
|
69
|
-
The `pwk-executing-tasks` skill requests the `parallel-review` capability for four logical roles over the whole feature diff
|
|
71
|
+
The `pwk-executing-tasks` skill resolves the design's `### Feature review` tag (`auto` by default) and then either requests the `parallel-review` capability for four logical roles over the whole feature diff — spec alignment, code tracing, code smells, and production hazards — when the design carries production-risk content, or runs one inline pass when it does not. The scope is a script-assembled review packet (diff + acceptance criteria verbatim) handed to every role via a one-liner pointer — the packet never rides in spawn arguments. The roles are independent, fresh-context, read-only reporters; the main agent collects their results, applies smell fixes itself, runs the tests, and flags other findings for the human. The review runs before the ship checkpoint, so your final approval is fully informed: execution summary, per-requirement coverage table, findings status, full diff on request.
|
|
70
72
|
|
|
71
73
|
In Pi, `/pwk-setup` installs the canonical role definitions into `.agents/agents/`, where compatible providers such as `@tintinweb/pi-subagents` can discover them. `/pwk-setup --fast-model <model>` (or the interactive picker) sets the fast-tier model for the smell/hazard reviewers — an advisory hint hosts may honor. Tintinweb may run the roles through its native `Agent` mechanism or map recon to its built-in read-only `Explore` type. The core kit does not require Tintinweb or any other provider.
|
|
72
74
|
|
|
@@ -80,12 +82,6 @@ In Pi, `/pwk-setup` installs the canonical role definitions into `.agents/agents
|
|
|
80
82
|
|
|
81
83
|
**Pre-check: run the full test suite** — never ship a red suite (resume spans sessions). Then archive or delete consumed plan docs (the human's choice; archived docs land in `docs/plans/completed/`, and every discovery glob runs excluding docs/plans/completed/ so archived work never resurfaces as in flight — single source: the `pwk-executing-tasks` glob wording), curate lessons, update CHANGELOG/README, create PR or merge.
|
|
82
84
|
|
|
83
|
-
### Diagnose (on demand)
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
/skill:pwk-diagnose
|
|
87
|
-
```
|
|
88
|
-
|
|
89
85
|
### Walkthrough (on demand)
|
|
90
86
|
|
|
91
87
|
```
|
|
@@ -94,8 +90,6 @@ In Pi, `/pwk-setup` installs the canonical role definitions into `.agents/agents
|
|
|
94
90
|
|
|
95
91
|
Generate a detailed, file:line-anchored walkthrough of a shipped feature or branch into `docs/walkthroughs/<topic>.md` — Summary / How it works / Key flows / Gotchas & invariants / Change map — stamped with the commit range, regenerated wholesale on re-run, never disposed. Exits the gated design phase.
|
|
96
92
|
|
|
97
|
-
A debugging loop you invoke when something is broken. Not a pipeline phase. **Invoking it exits the gated design phase** — diagnosis needs to write failing tests and debug instrumentation. If you only want read-only investigation mid-design, use `pwk-status` or re-lock with `/pwk-guard on`.
|
|
98
|
-
|
|
99
93
|
### Status (on demand)
|
|
100
94
|
|
|
101
95
|
```
|
|
@@ -109,8 +103,8 @@ A read-only overview of all active design topics — which phase each is in and
|
|
|
109
103
|
The `workflow-guard` extension registers `/pwk-setup` and watches `write`/`edit` and `bash` tool calls:
|
|
110
104
|
|
|
111
105
|
- **During the design phase**: blocks writes outside `docs/plans/`, and blocks destructive bash via a simple common-blacklist (a command is allowed unless it matches a destructive pattern). A short phase reminder is shown once when the gated phase begins so the model self-restricts.
|
|
112
|
-
- **During executing-tasks, code-review, finalizing,
|
|
113
|
-
- **Phases are skill-driven**: the guard follows the skill you invoke — it never unlocks on message keywords. The exact unlock set is `pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, `pwk-
|
|
106
|
+
- **During executing-tasks, code-review, finalizing, walkthrough**: no restrictions.
|
|
107
|
+
- **Phases are skill-driven**: the guard follows the skill you invoke — it never unlocks on message keywords. The exact unlock set is `pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, `pwk-walkthrough` (walkthrough writes explainer output under `docs/walkthroughs/`); `pwk-status` stays read-only and runs inside the gate. To override, run `/pwk-guard on` (force read-only), `off` (disable), or `auto` (default; skill-driven). Subcommands autocomplete.
|
|
114
108
|
|
|
115
109
|
The destructive blacklist covers common file-mutating vectors (redirects, `tee`, `cp`/`mv`/`touch`/`rm`, `git commit`/`apply`, `npm install`, in-place editors like `sed -i`/`perl -i`, `patch`, `find -delete`). Exotic vectors (interpreter escapes like `node -e`, `python -c`, `| bash`) rely on the phase reminder — the guard is advisory, not a security boundary.
|
|
116
110
|
|
|
@@ -118,12 +112,12 @@ No configuration needed. It activates automatically after install.
|
|
|
118
112
|
|
|
119
113
|
## Test-first discipline
|
|
120
114
|
|
|
121
|
-
|
|
115
|
+
Design docs specify *what* (acceptance criteria + end-to-end scenarios); the executor writes the feature-acceptance E2E first (red), then implements to green. This keeps the spec stable — implementation details can change without invalidating the design.
|
|
122
116
|
|
|
123
117
|
## Tips
|
|
124
118
|
|
|
125
119
|
- Start with brainstorming for anything non-trivial.
|
|
126
120
|
- The design doc is a behavioral spec, not an implementation recipe — let the executor choose how.
|
|
127
|
-
- The feature-gate flow has two
|
|
128
|
-
- **Right-size each requirement at design time** with the `### Checkpoints` (`none`/`full
|
|
121
|
+
- The feature-gate flow has two hard stops when the design carries `## Setup` (setup + ship), otherwise one (ship): the E2E is written and reported before implementation without pausing (its content was approved as `## Feature acceptance` during brainstorm), and the ship checkpoint signs off the finished implementation (digest + coverage, diff on request).
|
|
122
|
+
- **Right-size each requirement at design time** with the `### Checkpoints` (`none`/`full`, default `none` — the acceptance criteria were approved at design time, so there is no per-requirement correctness stop) and `### Review` (`skip`/`parallel`/`inline`, default `skip`) tags — per-requirement ceremony is opt-in. The risk-scaled feature-level `### Feature review` covers the whole diff. A trivial fix can also use the brainstorming trivial fast-path (one-turn brainstorm, minimal design doc). Nothing is tagged silently: **only the human tags** a requirement for a per-requirement review, and the always-on feature-level `### Feature review` covers what is left.
|
|
129
123
|
- Put all design artifacts under `docs/plans/`; ADRs under `docs/adr/`.
|
package/docs/oversight-model.md
CHANGED
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
`pi-workflow-kit` combines **skills** and **one extension**.
|
|
4
4
|
|
|
5
|
+
The kit enforces a design → execute → finalize workflow: one buildable design doc per feature, executed through the feature gate, shipped once.
|
|
6
|
+
|
|
5
7
|
## Skills
|
|
6
8
|
|
|
7
|
-
Skills teach the agent the workflow. There are
|
|
9
|
+
Skills teach the agent the workflow. There are 4 pipeline skills plus 2 utility skills:
|
|
8
10
|
|
|
9
|
-
- **pwk-brainstorming** — explore ideas, produce the single buildable design doc (each `### R<n>:` block carries its acceptance criteria + review tags) that opens with a `## At a glance` digest for the human (plain-language summary → **Key decisions** with rejected-alternative clauses only for real forks → `| R# | Requirement in one line | Risk |` table) immediately before the `## Requirements` blocks. For a requirement too big for one design doc, may start an **umbrella** (multiple design docs under one status-free overview, shipping as one PR). On non-trivial topics, requests the logical `codebase-recon` capability and falls back to the
|
|
10
|
-
- **pwk-executing-tasks** — feature-gate flow: write the feature E2E first, implement the design doc's `### R<n>` requirement blocks, then one feature-level review before the **ship checkpoint** (execution summary + coverage table presented for approval; full diff on request); two
|
|
11
|
-
- **pwk-code-review** — the inline reviewer (code tracing, spec alignment, code smells, production hazards). During `pwk-executing-tasks`, the feature-level review
|
|
12
|
-
- **pwk-finalizing** — dispose consumed
|
|
11
|
+
- **pwk-brainstorming** — explore ideas, produce the single buildable design doc (each `### R<n>:` block carries its acceptance criteria + review tags) that opens with a `## At a glance` digest for the human (plain-language summary → **Key decisions** with rejected-alternative clauses only for real forks → `| R# | Requirement in one line | Risk |` table) immediately before the `## Requirements` blocks. For a requirement too big for one design doc, may start an **umbrella** (multiple design docs under one status-free overview, shipping as one PR). On non-trivial topics, requests the logical `codebase-recon` capability using the `pwk-recon-scout` role and falls back to the same five-section recon inline when unavailable or unsafe.
|
|
12
|
+
- **pwk-executing-tasks** — feature-gate flow: write the feature E2E first, report it (no stop), implement the design doc's `### R<n>` requirement blocks, then one risk-scaled feature-level review before the **ship checkpoint** (execution summary + code digest + coverage table presented for approval; full diff on request); two hard stops when the design carries `## Setup` (setup + ship), otherwise one (ship), per-requirement ceremony opt-in
|
|
13
|
+
- **pwk-code-review** — the inline reviewer (code tracing, spec alignment, code smells, production hazards). During `pwk-executing-tasks`, the feature-level review resolves the design's `### Feature review` tag (`auto` by default): four logical fresh-context, read-only roles when the design carries production-risk content, otherwise one inline pass. Successful reports are retained and missing roles are retried or completed inline. It falls back to inline review when no safe compatible provider exists. The canonical provider contract is documented in `docs/provider-delegation-contract.md`.
|
|
14
|
+
- **pwk-finalizing** — dispose the consumed topic folder `docs/plans/<date>-<topic>/` as one unit (archive or delete; a single-leaf topic and an umbrella alike), curate lessons, update docs, create PR or merge
|
|
13
15
|
|
|
14
|
-
Plus 2 on-demand skills:
|
|
16
|
+
Plus 2 on-demand utility skills:
|
|
15
17
|
|
|
16
18
|
- **pwk-status** — read-only overview of all active design topics (phase + progress), for resuming or juggling parallel designs
|
|
17
|
-
- **pwk-
|
|
19
|
+
- **pwk-walkthrough** — on-demand explainer; renders a file:line-anchored walkthrough of a shipped feature into `docs/walkthroughs/<topic>.md`, regenerated wholesale, never disposed
|
|
18
20
|
|
|
19
21
|
They explain *what* to do and *when* to do it. Phase control is manual — you invoke each skill with `/skill:`; the agent never advances on its own.
|
|
20
22
|
|
|
@@ -22,15 +24,15 @@ They explain *what* to do and *when* to do it. Phase control is manual — you i
|
|
|
22
24
|
|
|
23
25
|
The `workflow-guard` extension registers the Pi-only `/pwk-setup` command and enforces one workflow rule:
|
|
24
26
|
|
|
25
|
-
> During
|
|
27
|
+
> During the design phase, `write` and `edit` are **hard-blocked** outside `docs/plans/`.
|
|
26
28
|
|
|
27
29
|
The agent can still use `read` and `bash` for investigation. During those gated phases, `bash` is governed by a simple destructive-command blacklist (`rm`, `>`, `git commit`, `npm install`, in-place editors, etc.) — a command is allowed unless it matches a destructive pattern. A short phase reminder is shown once when the gated phase begins so the model self-restricts.
|
|
28
30
|
|
|
29
|
-
During executing-tasks, code-review, finalizing,
|
|
31
|
+
During executing-tasks, code-review, finalizing, and walkthrough, nothing is restricted. `pwk-status` stays inside the gate.
|
|
30
32
|
|
|
31
33
|
Canonical role contracts live in `agents/pwk-*.md` (single source of truth) and can be installed into `.agents/agents/` with `/pwk-setup`. `pwk-executing-tasks` requests logical review roles through the host’s delegation capabilities and passes each role a one-liner pointer to a script-assembled review packet — the packet defines the scope per review level (feature review: the whole feature diff; per-requirement: just that slice).
|
|
32
34
|
|
|
33
|
-
Phases follow the skill you invoke — there is no message-keyword unlock. Invoking `/skill:pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, or `pwk-
|
|
35
|
+
Phases follow the skill you invoke — there is no message-keyword unlock. Invoking `/skill:pwk-executing-tasks`, `pwk-finalizing`, `pwk-code-review`, or `pwk-walkthrough` exits the gated phase (those skills write — walkthrough writes its explainer output under `docs/walkthroughs/`); `pwk-status` deliberately does **not** (read-only orientation). `/pwk-guard on|off|auto` manually overrides the guard.
|
|
34
36
|
|
|
35
37
|
## Enforcement style
|
|
36
38
|
|
|
@@ -115,6 +115,6 @@ Providers may cache role definitions. Hosts should tell the user when `/reload`
|
|
|
115
115
|
|
|
116
116
|
## Safety boundary
|
|
117
117
|
|
|
118
|
-
The provider is responsible for enforcing any capability it advertises. The role prompt is defense in depth, not a security boundary. The Pi workflow guard protects the main Pi session
|
|
118
|
+
The provider is responsible for enforcing any capability it advertises. The role prompt is defense in depth, not a security boundary. The Pi workflow guard protects the main Pi session's design phase; it does not automatically protect Claude Code or another host, and it does not replace delegated-worker tool restrictions.
|
|
119
119
|
|
|
120
120
|
The `/pwk-setup` installer itself is hardened in depth: it opens the target with `O_NOFOLLOW` and does every subsequent check, read, and write through that one descriptor (`fstat` regular-file check, content comparison, and post-write verification), so nothing swapped in on the path afterward can affect what is read or written. On platforms where `O_NOFOLLOW` is unavailable, a symlink swapped in before the initial open remains a narrow advisory window; setup is a user-invoked development command, not a security boundary.
|
package/docs/workflow-phases.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# Workflow Phases
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The kit enforces a design → execute → finalize workflow. Each phase below names the skill that drives it:
|
|
4
|
+
|
|
5
|
+
`pi-workflow-kit` has 4 pipeline skills plus 2 utility skills. You invoke each one explicitly with `/skill:`.
|
|
4
6
|
|
|
5
7
|
```
|
|
6
8
|
brainstorm → executing-tasks → finalizing
|
|
7
|
-
(feature-gate: write feature E2E →
|
|
9
|
+
(feature-gate: write feature E2E → report it → implement requirements → feature review → ⏸ ship)
|
|
8
10
|
```
|
|
9
11
|
|
|
10
|
-
A design doc is one PR; a requirement is one testable slice within it. A requirement too big for one design doc but shipping as one PR is an **umbrella**: multiple design docs under one status-free overview, on one branch, finalized once (`(brainstorm → execute) × N → finalize`).
|
|
12
|
+
**One folder per topic.** Every topic — a single-part design doc or an umbrella — lives in its own folder `docs/plans/<date>-<topic>/`, and that folder is the unit of creation, discovery, and disposal. Its docs are leaves inside it: `<leaf>-design.md`, `<leaf>-progress.md`, `<leaf>-review-packet*.md`, where `<leaf>` is the part slug (`<topic>` for a single-part topic). A folder holding more than one leaf also carries an `overview.md`. A design doc is one PR; a requirement is one testable slice within it. A requirement too big for one design doc but shipping as one PR is an **umbrella**: multiple design docs (leaves) under one status-free overview, on one branch, finalized once (`(brainstorm → execute) × N → finalize`).
|
|
11
13
|
|
|
12
14
|
## brainstorm
|
|
13
15
|
|
|
@@ -16,8 +18,8 @@ A design doc is one PR; a requirement is one testable slice within it. A require
|
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
- Explore requirements and shape the design. Interviews in **frontier rounds**: questions form a dependency tree seeded by a six-dimension checklist; each round asks the full frontier as numbered questions, each with a recommended answer; facts are looked up, only decisions asked; the interview ends when the frontier is empty — nothing left silently assumed — and an assumption gate sweeps the draft before the design is presented.
|
|
19
|
-
- Produce `docs/plans
|
|
20
|
-
- May start an **umbrella** for a requirement too big for one design doc (human-approved): writes the status-free `docs/plans/<date>-<
|
|
21
|
+
- Produce `docs/plans/<date>-<topic>/<leaf>-design.md` — descriptive, the **single buildable artifact**: a `## At a glance` digest for the human (2–4 sentence plain-language summary → **Key decisions**, one line each: decision + why, a `(rejected: …)` clause only when the fork was real → a `| R# | Requirement in one line | Risk |` table, one row per requirement) immediately before the `## Requirements` blocks — one `### R<n>:` block per requirement carrying its one-line behavior, **acceptance criteria** (Given/When/Then incl. edge/error cases) and Checkpoints/Review tags (no test-name lists, no separate plan doc) — ending with a `## Feature acceptance` section (end-to-end scenarios that prove the requirements compose into the feature — the feature's definition-of-done).
|
|
22
|
+
- May start an **umbrella** for a requirement too big for one design doc (human-approved): writes the status-free `docs/plans/<date>-<topic>/overview.md` (the same topic folder, now with more than one leaf; a `## Parts (build order)` roster of leaves + build order) and the **first** leaf's `<leaf>-design.md` beside it. Later leaves are brainstormed one by one against the overview + implemented predecessors.
|
|
21
23
|
- ADRs go to `docs/adr/` (permanent, never archived).
|
|
22
24
|
|
|
23
25
|
Write boundary: only `docs/plans/` is writable. Source files are hard-blocked.
|
|
@@ -28,11 +30,11 @@ Write boundary: only `docs/plans/` is writable. Source files are hard-blocked.
|
|
|
28
30
|
/skill:pwk-executing-tasks
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
- **Feature-gate flow:** write the feature-acceptance E2E test (red) →
|
|
33
|
+
- **Feature-gate flow:** write the feature-acceptance E2E test (red) → **report it, no stop** (1–2 lines saying what the E2E proves, plus its failing output — the `## Feature acceptance` text was already approved in brainstorm, so the run continues straight into implementation; the report is the human's window to object before code is written) → implement the requirements back-to-back with full autonomy (the executor chooses structure/signatures/internals) → **feature review** (one review over the whole feature diff: the `parallel-review` capability for four logical read-only roles when the design carries production-risk content, otherwise one inline `/skill:pwk-code-review` pass — see [code-review](#code-review)) → **⏸ checkpoint: ship** (full suite + feature E2E green; present the execution summary + code digest + reviewer coverage table; full diff on request).
|
|
32
34
|
- After the review passes, the executor writes a **code digest** into the progress file — plain-language summary, execution flow, gotchas, key files — derived from the review packet; it rides the existing disposal globs.
|
|
33
35
|
- Per-requirement checkpoints/reviews are **opt-in** — they fire only for requirements the design doc tags (default off); see [Proportionality](#proportionality).
|
|
34
36
|
- **Regression check after each commit** — run the full existing suite to catch cross-requirement regressions immediately. The feature E2E stays red until the last requirement and is gated only at the ship checkpoint (the old integration gate folds into it).
|
|
35
|
-
- Progress tracked in `docs/plans
|
|
37
|
+
- Progress tracked in `docs/plans/<date>-<topic>/<leaf>-progress.md` (feature phase + requirement checklist).
|
|
36
38
|
|
|
37
39
|
No write restrictions. All tools available.
|
|
38
40
|
|
|
@@ -40,9 +42,9 @@ No write restrictions. All tools available.
|
|
|
40
42
|
|
|
41
43
|
The **feature-gate flow** is the default: write the feature E2E first, implement the requirements, then one feature-level review. Per-requirement ceremony is opt-in — at design time the human tags only the requirements that need it:
|
|
42
44
|
|
|
43
|
-
- **Checkpoints** — `none` (no per-requirement stop, **default**) | `full` (both stops)
|
|
45
|
+
- **Checkpoints** — `none` (no per-requirement stop, **default**) | `full` (both stops). Test-first is preserved either way: even `none` writes a meaningful test first (red) and implements to green; only the human *stops* are optional. There is no per-requirement correctness stop, because those criteria were approved at design time.
|
|
44
46
|
- **Review** — `skip` (no per-requirement review, **default**) | `parallel` (four fresh-context reviewers) | `inline` (single `pwk-code-review` pass).
|
|
45
|
-
- **Feature review** — `parallel` (four reviewers over the whole feature diff
|
|
47
|
+
- **Feature review** — `auto` (risk-scaled, **default**) | `parallel` (four reviewers over the whole feature diff) | `inline` (one pass). Always on, exactly one per part. `auto` resolves on the design's own production-risk content: `parallel` when the design has a non-empty `## Production-risk areas` section or a non-empty `### Production-risk notes` on any requirement, `inline` otherwise. An explicit `parallel`/`inline` is used as written and always wins over `auto`. The review scope is a script-assembled review packet (diff + criteria verbatim), so reviewers never re-derive scope; smell/hazard reviewers run on the fast tier set via `/pwk-setup --fast-model` (advisory hint).
|
|
46
48
|
|
|
47
49
|
Flag a requirement for a checkpoint when it has complex logic or is the main part of the feature; for a review when it touches production-risk. A trivial fix can also skip the multi-turn brainstorm dialogue via the brainstorming trivial fast-path (compress to one turn, minimal design doc) — the guard still enforces read-only.
|
|
48
50
|
|
|
@@ -54,7 +56,7 @@ Flag a requirement for a checkpoint when it has complex logic or is the main par
|
|
|
54
56
|
|
|
55
57
|
The **inline reviewer**: code tracing, spec alignment (vs acceptance criteria), code smells (applies fixes), production hazard check. Unlocked — may modify code to fix smells.
|
|
56
58
|
|
|
57
|
-
**Not a phase you drive manually.** During `pwk-executing-tasks`, the feature-level review requests four logical roles (`pwk-spec-reviewer`, `pwk-tracing-reviewer`, `pwk-smell-reviewer`, `pwk-hazard-reviewer`) through the host’s `parallel-review` capability. Roles are fresh-context, read-only reporters; successful reports are retained and failed roles are retried or completed inline. If no compatible provider is available, the whole review runs inline. In Pi, `/pwk-setup` installs the canonical role definitions into `.agents/agents/`; [`@tintinweb/pi-subagents`](https://github.com/tintinweb/pi-subagents) is one compatible provider. See `docs/provider-delegation-contract.md` for the provider contract. You can also invoke `/skill:pwk-code-review` standalone for an ad-hoc review of any diff.
|
|
59
|
+
**Not a phase you drive manually.** During `pwk-executing-tasks`, the feature-level review resolves the design's `### Feature review` tag (`auto` by default) and either requests four logical roles (`pwk-spec-reviewer`, `pwk-tracing-reviewer`, `pwk-smell-reviewer`, `pwk-hazard-reviewer`) through the host’s `parallel-review` capability — when the design carries production-risk content — or runs one inline pass when it does not. Roles are fresh-context, read-only reporters; successful reports are retained and failed roles are retried or completed inline. If no compatible provider is available, the whole review runs inline. In Pi, `/pwk-setup` installs the canonical role definitions into `.agents/agents/`; [`@tintinweb/pi-subagents`](https://github.com/tintinweb/pi-subagents) is one compatible provider. See `docs/provider-delegation-contract.md` for the provider contract. You can also invoke `/skill:pwk-code-review` standalone for an ad-hoc review of any diff.
|
|
58
60
|
|
|
59
61
|
No write restrictions.
|
|
60
62
|
|
|
@@ -64,8 +66,8 @@ No write restrictions.
|
|
|
64
66
|
/skill:pwk-finalizing
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
- **Pre-check: run the full test suite** — don't ship a red suite (resume spans sessions; don't trust the last execute session).
|
|
68
|
-
- Dispose of consumed plan docs
|
|
69
|
+
- **Pre-check: verify the repo root, then run the full test suite** — don't ship a red suite (resume spans sessions; don't trust the last execute session).
|
|
70
|
+
- Dispose of consumed plan docs — the unit is the **topic folder** `docs/plans/<date>-<topic>/`, so a single-leaf topic and an umbrella dispose identically as one folder. The human picks **delete** (default — code + tests are the source of truth) or **archive** to `docs/plans/completed/` (keep planning history; every discovery glob runs excluding docs/plans/completed/, so archived work never resurfaces as in flight — single source: the `pwk-executing-tasks` glob wording). ADRs stay at `docs/adr/`. Ships **one PR** per topic.
|
|
69
71
|
- Curate `docs/lessons.md`, update README/CHANGELOG, create PR or merge.
|
|
70
72
|
|
|
71
73
|
No write restrictions.
|
|
@@ -76,17 +78,15 @@ No write restrictions.
|
|
|
76
78
|
/skill:pwk-status
|
|
77
79
|
```
|
|
78
80
|
|
|
79
|
-
Read-only overview of all active pipeline topics (phase + progress) when several designs are in flight; an umbrella rolls up under its overview (
|
|
81
|
+
Read-only overview of all active pipeline topics (phase + progress) when several designs are in flight; an umbrella rolls up under its overview (done / in-flight / not-started). Not a pipeline phase — and it **does not exit the gated phase** (`pwk-status` is read-only; it runs fine under the design-phase write block, so the boundary stays up).
|
|
80
82
|
|
|
81
|
-
##
|
|
83
|
+
## walkthrough
|
|
82
84
|
|
|
83
85
|
```
|
|
84
|
-
/skill:pwk-
|
|
86
|
+
/skill:pwk-walkthrough
|
|
85
87
|
```
|
|
86
88
|
|
|
87
|
-
Not a pipeline phase.
|
|
88
|
-
|
|
89
|
-
No write restrictions.
|
|
89
|
+
Not a pipeline phase. An on-demand utility skill that generates a detailed, file:line-anchored walkthrough of a shipped feature into `docs/walkthroughs/<topic>.md` — Summary / How it works / Key flows / Gotchas & invariants / Change map — stamped with the commit range, regenerated wholesale on re-run, never disposed. Invoking it **exits the gated phase** (it writes its explainer output under `docs/walkthroughs/`).
|
|
90
90
|
|
|
91
91
|
## Manual override
|
|
92
92
|
|
|
@@ -94,4 +94,4 @@ No write restrictions.
|
|
|
94
94
|
|
|
95
95
|
## Continuity across sessions
|
|
96
96
|
|
|
97
|
-
A new session resumes by invoking the skill for the phase to continue. The skill globs `docs/plans/` for its artifact (progress file /
|
|
97
|
+
A new session resumes by invoking the skill for the phase to continue. The skill globs `docs/plans/` for its artifact (progress file / design doc), resumes the single match, or asks if several. Each resumption skill reports what it found on entry — no registry file needed; the `<topic>` slug in the filenames is the identity.
|
|
@@ -477,13 +477,7 @@ const SKILL_TO_PHASE: Record<string, Phase> = {
|
|
|
477
477
|
|
|
478
478
|
/** Skills whose invocation exits a gated phase (used by the input handler; exported for tests/
|
|
479
479
|
* skill-lint). Deliberately excludes pwk-status (read-only by design; stays gated). */
|
|
480
|
-
export const UNLOCK_SKILLS = [
|
|
481
|
-
"pwk-executing-tasks",
|
|
482
|
-
"pwk-finalizing",
|
|
483
|
-
"pwk-code-review",
|
|
484
|
-
"pwk-diagnose",
|
|
485
|
-
"pwk-walkthrough",
|
|
486
|
-
] as const;
|
|
480
|
+
export const UNLOCK_SKILLS = ["pwk-executing-tasks", "pwk-finalizing", "pwk-code-review", "pwk-walkthrough"] as const;
|
|
487
481
|
|
|
488
482
|
/** Phase-aware reminder appended after the user's message each turn while a gated phase is active.
|
|
489
483
|
* Returned as a message (not a system-prompt change) so it sits at the tail of the request and
|
|
@@ -660,9 +654,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
660
654
|
// Phase transitions happen only via skills — no message keyword unlocks the design phase.
|
|
661
655
|
// Run /skill:pwk-executing-tasks (or another write-needing skill) to leave a gated phase.
|
|
662
656
|
//
|
|
663
|
-
// Unlock list rationale: execute/finalize/code-review/
|
|
664
|
-
// source or docs outside docs/plans/ (implement, edit review fixes,
|
|
665
|
-
//
|
|
657
|
+
// Unlock list rationale: execute/finalize/code-review/walkthrough all need to write
|
|
658
|
+
// source or docs outside docs/plans/ (implement, edit review fixes, generate
|
|
659
|
+
// docs/walkthroughs/), so they exit the gate.
|
|
666
660
|
// pwk-status is NOT here on purpose: it is read-only orientation, so it stays inside the
|
|
667
661
|
// gated phase and never drops the write boundary the user is relying on.
|
|
668
662
|
// (Orientation never needs write access; see skills/pwk-status.)
|