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 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 prose convention, not a gate)
178
-
179
- The gates enforce *state*; how the agent *talks* about that state at each stage is a tier-3 convention β€”
180
- type `prose.implement`-style guidance into the stage sections and every session inherits it. The contract
181
- this repo runs on has two fixed shapes, both **plain markdown inline lines β€” never fenced** (a code block
182
- renders monospace with a horizontal scrollbar in web UIs; fences stay for diffs and command output).
183
-
184
- **The stage line.** Every stage report opens with one inline line: a `β—†` marker, the stage and slug, then
185
- the *decision record* as `Β·`-separated `key value` pairs with backticked values. The core β€” stage Β· slug Β·
186
- mode (+ grant mark: `βœ“` operator-granted, `?` proposed) Β· ui β€” repeats at every stage; stage-specific
187
- fields append:
188
-
189
- | Stage | Fields after the core | Example |
190
- |---|---|---|
191
- | pre-flow | mode proposal + why, detected knob defaults, merge-policy state | **β—† pre-flow Β· new work** β€” mode `normal` (proposed: touches behavior) Β· ui on Β· forge `github` βœ“ Β· merge policy **missing** |
192
- | plan | plan.md status, mockups `rendered/total`, open questions | **β—† plan Β· `dark-mode`** β€” `normal` βœ“ Β· ui on Β· plan `created` Β· mockups `3/3` Β· open questions `0` |
193
- | implement | commits `N ahead, M uncommitted`, tier-1, tier-2, deploy/health, branch@sha | **β—† implement Β· `dark-mode`** β€” `normal` βœ“ Β· ui on Β· commits `2 ahead, 0 uncommitted` Β· tier-1 `5/5` Β· deploy `health PASS` Β· `feat/dark-mode@a1b2c3` |
194
- | pre-release | **version decision** β€” `pending` / `bump <patch\|minor\|major> β†’ vX.Y.Z (pending your word)` / `no-version [your word]` β€” tag, changelog, fold, review tally, merge style | **β—† pre-release Β· `dark-mode`** β€” `normal` βœ“ Β· ui on Β· version **`bump minor β†’ 0.56.0 (pending your word)`** Β· tag `v0.56.0` Β· changelog `ready` Β· review `0 must / 0 should` Β· merge `merge` |
195
- | release | PR + state, merge style used, tag state, artifact proof, forge release state (one line per step β€” this stage has no checkpoint) | **β—† release Β· `dark-mode`** β€” PR `#131 merged` Β· merge `--merge (playbook)` Β· tag `v0.56.0 pushed` Β· artifact `npm view OK` Β· forge release `created` |
196
- | finish | release recorded, main state, unmerged commits, reflections open, release-checklist open | **β—† finish Β· `dark-mode`** β€” release `recorded` Β· main `clean, pushed` Β· unmerged `0` Β· reflections `2 open` |
197
-
198
- A decision that was *not* made is recorded as `pending` β€” never left unstated, never silently invented
199
- (a version bump needs the operator's word; `no-version` too).
200
-
201
- **The checkpoint.** Exactly one per stage, as a plain chat message (a structured-question tool is
202
- not chat and never licenses `--confirmed`), three markdown bullets and the single verb, **yolo** named
203
- as an available answer:
204
-
205
- > **CHECKPOINT β€” Release?**
206
- > - **context** β€” checks green; manifest ahead of last tag; `Unreleased` folded.
207
- > - **options** β€” *release* β†’ bump minor 0.56.0, tag `v0.56.0`, forge release Β· *no-version* β†’ merge only, entry rides under `Unreleased` Β· *edit* β€” what to change Β· *yolo* β†’ release with the parameters above, remaining gates run back to back
208
- > - **recommend** β€” *release* β€” user-facing feature, minor per playbook semver
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
- > Answer in chat: **Release?** (or yolo)
211
-
212
- After each gate that advances a stage, one short echo line confirms the new state before new work
213
- (`β–Ά stage: implement β€” 2 commits ahead, tier-1 5/5`). Mid-stage additions amend `plan.md` with an
214
- `**Added mid-stage:**` line instead of opening a second checkpoint β€” the verb count stays one per
215
- stage. The contract is advisory like all tier-3 prose: gates refuse what gates refuse regardless of
216
- how neatly the report is formatted.
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.
@@ -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",
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": [
@@ -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`. Fixes = iterate and re-verify; that loop is
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`. The gate re-checks
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). It re-verifies (tag on the default branch, on origin, artifact
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
  ---