pi-dev-flow 0.64.3 β 0.64.4
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/CHANGELOG.md +6 -0
- package/docs/playbook.md +56 -39
- package/extensions/dev-flow.ts +1 -0
- package/package.json +1 -1
- package/skills/dev-flow/SKILL.md +7 -0
- package/skills/dev-flow/references/finish.md +3 -0
- package/skills/dev-flow/references/implement.md +3 -1
- package/skills/dev-flow/references/plan.md +3 -1
- package/skills/dev-flow/references/pre-release.md +5 -1
- package/skills/dev-flow/references/release.md +4 -1
- package/skills/dev-flow/references/start.md +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.64.4] - 2026-10-25
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Stage reports: a uniform output contract for every gate message, carried by the skill itself.** A gate message is now a stage line (the statusbar's own stage glyph π¬ pre-flow / π / π¨ / π / π / π + slug + `Β·`-separated decision fields with provenance marks `β` operator, `βplaybook`/`βdetected` rule, `~` agent-assumed, `?` pending) plus an event title and `Done:`/`Next steps:` blocks β operator verbs in italics (recommended one bold italic), never gate commands, recommended first, *yolo* last, plain "or say what to do differently" closing line. The norm lives in the `SKILL.md` ground rules (budget raised 4000β4500 with the reason noted), each stage reference file names its own fields, the stage-context injection carries a one-line reminder, and `docs/playbook.md` holds the human long form with the worked example β so every repo gets the protocol without writing playbook prose. A consistency test locks the clause, the markers, and every stage file's glyph.
|
|
12
|
+
|
|
7
13
|
## [0.64.3] - 2026-10-25
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/docs/playbook.md
CHANGED
|
@@ -174,43 +174,60 @@ Future features have their own file: `.dev-flow/roadmap.md`, a gitignored backlo
|
|
|
174
174
|
manages (add / pick β `flow start` / done / tidy) β a picked item is checked off by `finish` when
|
|
175
175
|
its feature ships, and it never gates either.
|
|
176
176
|
|
|
177
|
-
### Structured stage reports (a
|
|
178
|
-
|
|
179
|
-
The gates enforce *state*; how the agent *talks* about that state
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
|
195
|
-
|
|
196
|
-
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
177
|
+
### Structured stage reports (a convention, not a gate)
|
|
178
|
+
|
|
179
|
+
The gates enforce *state*; how the agent *talks* about that state is presentation. The norm lives in
|
|
180
|
+
the skill itself β the **Stage reports** clause in `SKILL.md` ground rules, echoed by the
|
|
181
|
+
`Stage reports:` line in every stage-context injection β so every repo using dev-flow gets the same
|
|
182
|
+
output protocol without writing a word of playbook prose. This is the human explanation of it.
|
|
183
|
+
|
|
184
|
+
One gate message = **stage line** + event title + **`Done:`** / **`Next steps:`** blocks, all plain
|
|
185
|
+
markdown, **never fenced** (a fenced block renders monospace with a horizontal scrollbar in web UIs;
|
|
186
|
+
fences stay for diffs and command output).
|
|
187
|
+
|
|
188
|
+
**The stage line** *is* the decision record β one copy of every fact. It opens with the statusbar's
|
|
189
|
+
own stage glyph (the footer is the legend: π¬ pre-flow "operator, your turn" Β· π plan Β· π¨ implement
|
|
190
|
+
Β· π pre-release Β· π release Β· π finish), then `slug β key value` pairs separated by `Β·`, with the
|
|
191
|
+
mode glyphs after the slug as in the footer (β‘ patch Β· π docs Β· π± yolo). Every value carries a
|
|
192
|
+
provenance mark:
|
|
193
|
+
|
|
194
|
+
| mark | meaning |
|
|
195
|
+
|---|---|
|
|
196
|
+
| `β` | operator-decided |
|
|
197
|
+
| `βplaybook` / `βdetected` | decided by a rule or auto-detection |
|
|
198
|
+
| `~` | agent-assumed β vetoable; flips to `β` when the stage's verb is given |
|
|
199
|
+
| `?` | pending the operator's word |
|
|
200
|
+
|
|
201
|
+
A decision not made reads `pending` β never left unstated, never silently invented (a version bump
|
|
202
|
+
needs the operator's word; `no-version` too). Per-stage fields after the core (stage Β· slug Β· mode Β·
|
|
203
|
+
ui): plan status and mockups; commits `N ahead, M uncommitted`, tier-1, deploy/health, `branch@sha`;
|
|
204
|
+
the version decision (`bump <level> β vX.Y.Z ~`) with tag/changelog/fold/review/merge-style beside
|
|
205
|
+
it; PR/tag/artifact/forge proofs at π (stage lines only there β that stage asks nothing); release-
|
|
206
|
+
recorded / main-state / unmerged / reflections at π.
|
|
207
|
+
|
|
208
|
+
**The checkpoint** closes exactly one message per stage (the operator's verb stays a plain-chat word
|
|
209
|
+
β a structured-question tool is not chat). Event title, then the labels **`Done:`** and
|
|
210
|
+
**`Next steps:`** standing alone on their own lines. `Done:` names the review surface β paths, SHAs,
|
|
211
|
+
counts, not vibes. `Next steps:` lists the operator's verbs in italics (the recommended one
|
|
212
|
+
***bold italic***, and no line needs a "(recommended)" tag when the styling carries it) and **never
|
|
213
|
+
gate commands** (the agent runs those): recommended first, then alternatives, then *yolo* last with
|
|
214
|
+
what it pre-confirms, then the plain closing line "or say what to do differently". Example:
|
|
215
|
+
|
|
216
|
+
> **π pre-release Β· `dark-mode`** β `normal` β Β· ui `on β` Β· version **`bump minor β 0.56.0 ~`** Β· tag `v0.56.0 ~` Β· changelog `ready ~` Β· merge `merge βplaybook`
|
|
209
217
|
>
|
|
210
|
-
>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
> **Release prep done**
|
|
219
|
+
>
|
|
220
|
+
> **Done:**
|
|
221
|
+
> review 0 must / 0 should; CHANGELOG `## [0.56.0]` folded from `Unreleased`; manifest bumped
|
|
222
|
+
>
|
|
223
|
+
> **Next steps:**
|
|
224
|
+
> - ***Release*** β tag `v0.56.0`, forge release β locks the `~` fields
|
|
225
|
+
> - *No-version* β merge only, entry rides under `Unreleased`
|
|
226
|
+
> - *Yolo* β release with these parameters, remaining gates back to back
|
|
227
|
+
> - or say what to do differently β bump level, changelog wording
|
|
228
|
+
|
|
229
|
+
Mid-stage (non-checkpoint) reports are the stage line plus a short body β no `Next steps:` block β
|
|
230
|
+
and mid-stage scope additions amend `plan.md` with an `**Added mid-stage:**` line instead of opening
|
|
231
|
+
a second checkpoint. Like all tier-3 prose this is advisory: gates refuse what gates refuse no matter
|
|
232
|
+
how the report is formatted. A project can still set `prose.<stage>` for its own stage guidance β
|
|
233
|
+
that replaces the built-in guidance text but the Stage reports rule keeps applying.
|
package/extensions/dev-flow.ts
CHANGED
|
@@ -2193,6 +2193,7 @@ export default function devFlow(pi: ExtensionAPI) {
|
|
|
2193
2193
|
if (ref) guidance.push(`Stage playbook: read ${path.join(SKILL_DIR, ref)} before gate work in this stage.`);
|
|
2194
2194
|
const prose = stageGuidance(cfg, state.stage);
|
|
2195
2195
|
if (prose) guidance.push(`Stage guidance (${prose.source}): ${prose.text}`);
|
|
2196
|
+
guidance.push("Stage reports: open every report with the stage line (statusbar glyph + slug + provenance-marked decision fields); close a checkpoint with an event title and `Done:` / `Next steps:` on own lines β italic verbs, recommended first, yolo last. See Stage reports in the ground rules.");
|
|
2196
2197
|
const pend = checklistPending(cfg, state, state.stage);
|
|
2197
2198
|
if (pend) guidance.push(`Tier-2 checklist NOT yet confirmed (${pend} item(s)): ${applicableItems(cfg, state, state.stage).map((i) => i.text).join(" | ")}${state.stage === "release" ? " β release-stage items close with the operator's Finish? answer; no earlier gate records them" : ""}`);
|
|
2198
2199
|
const refl = readReflections(ctx.cwd);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-dev-flow",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.4",
|
|
4
4
|
"description": "Enforced feature workflow for Pi: plan β implement β pre-release β release, gated checkpoints, self-improvement reflections, one git worktree per feature, changelog + publish as part of the release",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
package/skills/dev-flow/SKILL.md
CHANGED
|
@@ -33,6 +33,13 @@ Ground rules:
|
|
|
33
33
|
when the session is demonstrably wrong, stuck, or claiming a gate result it
|
|
34
34
|
never ran (and `/reload` when `flow version` says this session runs an older
|
|
35
35
|
build).
|
|
36
|
+
- **Stage reports** β a gate message = a **stage line** (statusbar glyph π¬ pre-flow / π / π¨ / π / π / π
|
|
37
|
+
+ slug + `Β·`-separated decision fields, provenance-marked `β` operator Β· `βplaybook`/`βdetected` rule
|
|
38
|
+
Β· `~` agent-assumed Β· `?` pending; never fenced; undecided reads `pending`, never invented) + event
|
|
39
|
+
title + **`Done:`**/**`Next steps:`** on own lines: verbs italic (***bold italic*** = recommended),
|
|
40
|
+
no gate commands; recommended first, *yolo* last, plain closing line
|
|
41
|
+
"or say what to do differently". Long form: docs/playbook.md;
|
|
42
|
+
per-stage fields: the stage reference file.
|
|
36
43
|
- **yolo** at any checkpoint β run that gate `--yolo --confirmed`; every later
|
|
37
44
|
checkpoint is pre-confirmed β run the remaining gates back to back without
|
|
38
45
|
asking, honoring guidance attached to the word ("yolo, create a patch
|
|
@@ -14,6 +14,9 @@ the session context goes with it. Run the end-of-session reflection (bare
|
|
|
14
14
|
`flow doctor`, drop = discard them. The answer replaces **Finish?** β act
|
|
15
15
|
on it, then run `flow finish --confirmed` without asking again;
|
|
16
16
|
- nothing parked β ask the operator **Finish?** β `flow finish --confirmed`.
|
|
17
|
+
Checkpoint report: stage line **π finish Β· `<slug>`** β release recorded Β·
|
|
18
|
+
main state Β· unmerged count Β· reflections open Β· release-checklist open,
|
|
19
|
+
then `Done:`/`Next steps:` per the Stage reports rule.
|
|
17
20
|
|
|
18
21
|
The question covers the whole cleanup and mentions any commits that look
|
|
19
22
|
unmerged. `flow finish [slug]`:
|
|
@@ -36,7 +36,9 @@ feature).
|
|
|
36
36
|
container starts is not a failed deploy; say so rather than declaring a
|
|
37
37
|
healthy deploy broken. Walk the **tier-2 checklist** (`- [ ]`) with the
|
|
38
38
|
operator honestly β it cannot be scripted. Then ask **Verified?** β
|
|
39
|
-
`flow verify --confirmed`.
|
|
39
|
+
`flow verify --confirmed`. Checkpoint report: stage line **π¨ implement Β·
|
|
40
|
+
`<slug>`** β commits `N ahead, M uncommitted` Β· tier-1 Β· tier-2 Β· deploy/
|
|
41
|
+
health Β· `branch@sha`, then `Done:`/`Next steps:` per the Stage reports rule. Fixes = iterate and re-verify; that loop is
|
|
40
42
|
free.
|
|
41
43
|
|
|
42
44
|
`flow verify` re-runs build, runs the `dev` deploy when configured (the
|
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
via DOM/code and move on β screenshots are a spot-check, not a test loop.
|
|
47
47
|
5. Tell the user the plan is ready and **stop** β one word: **Approve?**
|
|
48
48
|
Answered β `flow approve --confirmed` (yolo β `flow approve --yolo
|
|
49
|
-
--confirmed`).
|
|
49
|
+
--confirmed`). Checkpoint report: stage line **π plan Β· `<slug>`** β mode Β·
|
|
50
|
+
ui Β· plan status Β· mockups `rendered/total` Β· open questions, then
|
|
51
|
+
`Done:`/`Next steps:` per the Stage reports rule.
|
|
50
52
|
|
|
51
53
|
Approval creates the worktree and branch, running `commands.setup` inside when
|
|
52
54
|
configured β a failing setup fails the gate and the next `approve` **retries**
|
|
@@ -25,7 +25,11 @@ invent one mid-release. Sequence:
|
|
|
25
25
|
4. `flow check` β the prep edits invalidated the implement checks; the release
|
|
26
26
|
gate demands them green again.
|
|
27
27
|
5. State what the PR will contain, present version and changelog entry,
|
|
28
|
-
**stop** β **Release?** β `flow release --confirmed`.
|
|
28
|
+
**stop** β **Release?** β `flow release --confirmed`. Checkpoint report:
|
|
29
|
+
stage line **π pre-release Β· `<slug>`** β version decision (`pending` /
|
|
30
|
+
`bump <level> β vX.Y.Z ~` / `no-version β`) Β· tag Β· changelog Β· fold Β·
|
|
31
|
+
review tally Β· merge style, then `Done:`/`Next steps:` per the Stage
|
|
32
|
+
reports rule. The gate re-checks
|
|
29
33
|
tier-1, requires the manifest **ahead of the last tag**, a changelog
|
|
30
34
|
**heading** naming that version (a mention in prose is not an entry) and that
|
|
31
35
|
this branch prepared the entry. Operator ships this flow **without
|
|
@@ -26,7 +26,10 @@ the worktree unless noted:
|
|
|
26
26
|
`Unreleased` until the next versioned release folds it), `release-done`
|
|
27
27
|
asks nothing version-side.
|
|
28
28
|
3. `flow release-done` β **no question** (the Release? answer covered the
|
|
29
|
-
publication).
|
|
29
|
+
publication). Reporting at this stage is stage lines only, one per step β
|
|
30
|
+
**π release Β· `<slug>`** β PR + state Β· merge style used Β· tag state Β·
|
|
31
|
+
artifact Β· forge release (all values `β` β the Release? verb locked them);
|
|
32
|
+
no `Done:`/`Next steps:` block, nothing is asked. It re-verifies (tag on the default branch, on origin, artifact
|
|
30
33
|
when configured) against **the version the release gate stamped** β never a
|
|
31
34
|
re-read from a checkout that may be behind β and refuses anything older than
|
|
32
35
|
the newest matching tag on origin (lists come from `git ls-remote`, so an
|
|
@@ -35,7 +35,9 @@ operator how a merged PR should land on the default branch β `squash`, `merge`
|
|
|
35
35
|
or `any` (no policy) β with the suggestion the refusal read off their own history, then re-run
|
|
36
36
|
`flow start <slug> --merge=<style> --confirmed`. The gate writes the answer into `## release` (single-line
|
|
37
37
|
insert, validated, `.bak` kept) and never asks again. Never pick the style yourself and never write
|
|
38
|
-
`project.md` by hand to get rid of the question.
|
|
38
|
+
`project.md` by hand to get rid of the question. Pre-flow reports open with **π¬ pre-flow Β· new work** β
|
|
39
|
+
mode proposal + why Β· detected knobs Β· merge-policy state (π¬ = "operator, your turn": a grant or
|
|
40
|
+
answer is pending).
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
---
|