pi-dev-flow 0.77.0 → 0.77.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.77.1] - 2026-11-03
8
+
9
+ ### Changed
10
+ - The implement stage spells out when to hand a slice to a `flow_stage` worker and when to stay inline: delegate a slice that is in the plan, provable by `flow check`, needs no operator input and is big enough (≈4+ files or heavy reading) to crowd the driver's context; keep small fixes, mid-debug work, operator-judged work, exploration and final integration inline. Plus how to run workers (one slice at a time, read each diff, review before Verified?). Still advisory: no gate asks who wrote a commit.
11
+
7
12
  ## [0.77.0] - 2026-11-03
8
13
 
9
14
  **The finish reflection is done by a separate reviewer, and plugin feedback goes upstream.** The driving agent used to review its own session inline (biased, and blind to its workers' transcripts), wrote findings straight into the project's `reflections.md` — dev-flow complaints included — and reminded the operator about open reflections on every turn.
@@ -2269,7 +2269,7 @@ export default function devFlow(pi: ExtensionAPI) {
2269
2269
  name: "flow_stage",
2270
2270
  label: "Stage worker",
2271
2271
  description:
2272
- 'Optional: hand a slice of work to a fresh pi session so this conversation stays lean. op "implement" (stage implement) — the worker edits and commits a slice on the feature branch; op "review" (implement or pre-release) — a fresh read-only reviewer that returns findings and a PASS/FAIL verdict (advisory: no gate depends on it); op "reflect" (any stage, standard at finish) — a fresh read-only reviewer of this session\'s transcript and every worker transcript that returns classified reflection findings (docs / code / plugin) with a fold-or-drop recommendation each, for the operator to decide. The plan path, branch, commits so far and the project checks are added to the brief automatically — `note` is just the slice: what to do, operator answers and decisions the worker cannot see. The worker holds no flow tool; gates and checkpoints stay with you. Small work and small fixes are fine to do inline. In pi-web the worker appears in the session\'s Agents menu as a subagent (running while it works, then its final status); the opened transcript holds its report.',
2272
+ 'Optional: hand a slice of work to a fresh pi session so this conversation stays lean. op "implement" (stage implement) — the worker edits and commits a slice on the feature branch; op "review" (implement or pre-release) — a fresh read-only reviewer that returns findings and a PASS/FAIL verdict (advisory: no gate depends on it); op "reflect" (any stage, standard at finish) — a fresh read-only reviewer of this session\'s transcript and every worker transcript that returns classified reflection findings (docs / code / plugin) with a fold-or-drop recommendation each, for the operator to decide. The plan path, branch, commits so far and the project checks are added to the brief automatically — `note` is just the slice: what to do, operator answers and decisions the worker cannot see. The worker holds no flow tool; gates and checkpoints stay with you. Delegate an implement slice when it is in the plan, provable by flow check, needs no operator input mid-slice and is big enough (≈4+ files or heavy reading) to crowd this context; small work, small fixes, mid-debug work, operator-judged work and final integration stay inline (criteria: references/implement.md). In pi-web the worker appears in the session\'s Agents menu as a subagent (running while it works, then its final status); the opened transcript holds its report.',
2273
2273
  promptSnippet: 'flow_stage(op: "implement"|"review"|"reflect", note, label?) — optional fresh-session worker for a big implement slice, an independent review, or the end-of-session reflection (finish); gates stay with you; in pi-web workers show up as subagents in the Agents menu',
2274
2274
  parameters: Type.Object({
2275
2275
  op: Type.String({ description: '"implement" (a worker edits + commits a slice), "review" (read-only reviewer, findings + verdict) or "reflect" (read-only reviewer of the session transcripts, reflection findings + fold/drop recommendations)' }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dev-flow",
3
- "version": "0.77.0",
3
+ "version": "0.77.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": [
@@ -50,6 +50,45 @@ Big slices can go to a worker so this conversation stays lean; small work and
50
50
  small fixes are fine inline. **Delegation is a tool, not a rule** — no gate
51
51
  asks who wrote a commit.
52
52
 
53
+ **The rule of thumb:** delegate a slice when it is in the plan, provable by
54
+ `flow check`, needs no operator input, and is large enough (≈4+ files or heavy
55
+ reading) that doing it here would crowd out the context you need for verify;
56
+ otherwise do it inline. The worker starts fresh and is briefed with the plan,
57
+ commits and checks, but it cannot see this chat, cannot ask the operator and
58
+ holds no gate.
59
+
60
+ Delegate when most of these hold:
61
+ - **Specifiable** — the slice fits a short `note`; its decisions are in
62
+ `plan.md`, not only in chat (write them there first if they are not).
63
+ - **Mechanically done** — `flow check` green plus an acceptance criterion you
64
+ can state proves it.
65
+ - **Broad** — ≈4+ files, a few hundred lines, or a lot of reading this session
66
+ will not need again (a mechanical sweep, a new module with its tests, a
67
+ migration).
68
+ - **Clean boundary** — it does not overlap uncommitted work in progress.
69
+ - **Context pressure** — this conversation is past ~40–50% of its window;
70
+ delegating beats compacting away detail.
71
+ - **Hands-off** — nothing mid-slice needs the operator.
72
+
73
+ Stay inline when any of these hold:
74
+ - **Small** — one or two files, a review finding, a verify follow-up, an
75
+ operator tweak: the note would cost more than the change.
76
+ - **Context already loaded** — mid-debug, you hold the failure; a handoff
77
+ throws that away.
78
+ - **Still being decided** — the approach is still moving in chat.
79
+ - **Operator-judged** — a UI pass, tier-2 items, anything that ends in a
80
+ question to the operator.
81
+ - **Integration** — the final wiring and polish before Verified? is yours: you
82
+ own verify.
83
+ - **Exploratory** — "find out why X": what you learn shapes the next step, and
84
+ a worker's summary is lossy.
85
+
86
+ Running it: one slice per worker, in sequence — read each returned diff before
87
+ briefing the next. Slice along the plan's steps, never into half-working
88
+ commits. When workers wrote most of the code, run a `review` before Verified?.
89
+ A worker that fails or stalls → take the slice over inline rather than
90
+ resending the same note.
91
+
53
92
  - `flow_stage({ op: "implement", note, label })` — a fresh pi session in the
54
93
  worktree, with read/bash/edit/write, edits and commits one slice. The tool
55
94
  adds the facts itself: the absolute plan path, the branch's commits, the