pi-dev-flow 0.90.0 → 0.90.1

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.
@@ -0,0 +1,73 @@
1
+ # Reflections: the agent's notes to you
2
+
3
+ When something costs the agent a step, it writes the problem down instead of quietly working
4
+ around it. Examples: a playbook command that no longer exists, a guard that blocked the wrong thing,
5
+ or a gate that forced a detour. That is how your playbook stays in sync with your project.
6
+
7
+ Reflections are advisory. They never block a gate, and nothing is fixed without your word.
8
+
9
+ ## Where notes go
10
+
11
+ `.dev-flow/reflections.md` is your project's queue. It has two sections:
12
+
13
+ | Section | The fix lives in | Fixed by |
14
+ |---|---|---|
15
+ | `## playbook` | `.dev-flow/project.md` | a docs flow |
16
+ | `## code` | your project's code | a patch flow |
17
+
18
+ **Feedback about dev-flow itself never goes into your project.** It becomes a GitHub issue on the
19
+ dev-flow repo, filed only when you say so.
20
+
21
+ | Command | Does |
22
+ |---|---|
23
+ | `flow reflect --playbook "<note>"` | adds a playbook note |
24
+ | `flow reflect --code "<note>"` | adds a code note |
25
+ | `flow reflect --plugin "<note>"` | prints how to file a dev-flow issue (search first, then `gh issue create`); writes nothing |
26
+ | `flow reflect "<note>"` | guesses the section from the wording and says why |
27
+ | `flow reflect list` | numbers the open notes |
28
+ | `flow reflect move <n> --code` | moves a note to the other section |
29
+ | `flow reflect done <n> "<what>"` | checks a note off as fixed |
30
+ | `flow reflect tidy` | removes the checked-off notes |
31
+
32
+ `flow status` and `flow doctor` show how many notes are open.
33
+
34
+ ## The closing review at finish
35
+
36
+ Before `flow finish` removes anything, a fresh read-only reviewer reads the whole session: the main
37
+ transcript and every worker's. It checks the findings against the open notes and the upstream
38
+ issues, then gives you a numbered list. Each finding is marked docs, code or plugin, with a
39
+ suggestion to **fold** (keep) or **drop** it.
40
+
41
+ You answer per item, for example `fold 1,3 drop 2`. Folding records a note, or files the issue for a
42
+ plugin finding. Dropping records nothing.
43
+
44
+ The review is skipped when the flow ran into no friction: no gate refusal, no guard block, no code change
45
+ after Verified?, and no `--note`. Set `reflect = always` in the playbook's `## release` section to run it every time. Only
46
+ your explicit `--no-reflect` skips it; *yolo* doesn't.
47
+
48
+ ## Nudges
49
+
50
+ The agent suggests working through the notes only at good moments: at finish, between flows, or in
51
+ `flow doctor`, and never in the middle of a feature.
52
+
53
+ - **"Fix the open reflections now?"** appears when a note came up again this session, a note is 14
54
+ days old, three playbook notes could share one docs flow, or a code note is waiting while you're
55
+ between flows.
56
+ - **"Tidy?"** appears once 5 notes are closed, closed notes outnumber open ones, or a closed note is
57
+ a month old.
58
+
59
+ To fix them, ask the agent to go through them, usually with `flow doctor`. It sends each note to the
60
+ flow that should fix it: playbook notes to a docs flow, code notes to a patch flow.
61
+
62
+ ## GitHub issues alongside
63
+
64
+ If the repo has a GitHub remote, `flow doctor` and `flow reflect list` also show open GitHub issues
65
+ next to your notes:
66
+
67
+ - a note that an open issue already covers is marked `⟷ gh#120`;
68
+ - the other issues are listed below as upstream rows;
69
+ - a possible duplicate is flagged (`~ gh#NNN may duplicate`), never merged automatically.
70
+
71
+ This view is display-only. Issues are closed on GitHub and notes are checked off in the file. If
72
+ `gh` is missing or fails, you get one line saying so. Set `DEV_FLOW_NO_ISSUES=1` to turn the view
73
+ off.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dev-flow",
3
- "version": "0.90.0",
3
+ "version": "0.90.1",
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": [