pi-dev-flow 0.88.0 → 0.90.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/CHANGELOG.md CHANGED
@@ -4,6 +4,28 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.90.0] - 2026-11-10
8
+
9
+ **Operator answers are checked everywhere they are given, docs flows stop being asked for impossible checks, and stage workers get the project's setup.**
10
+
11
+ ### Added
12
+ - **Playbook setup for stage workers (gh#201).** A `flow-worker` block under `## global` in `project.md` holds the setup lines a stage worker needs before it can run your checks, for example exporting a test password read from a gitignored file. `flow_stage` copies those lines into every worker brief, so the driver no longer has to remember them. A review worker that still couldn't run a check now has to name it under `checks not run:` instead of returning a quiet PASS.
13
+
14
+ ### Fixed
15
+ - **`--replace` and `--port=<n>` need your answer too (gh#203).** When another flow holds the dev port, `flow verify` asks *Dev port?* and takes `--replace` or `--port=<n>` as the answer. Unlike `--confirmed`, those two were accepted without any message from you, and the deploy record then said the replacement was "the operator's answer". They now bind the same way: a re-run carrying either one is refused until you have sent a message since the question.
16
+ - **A docs flow is no longer asked to tick checks it cannot run, and an open checklist says which items are open (gh#207).** A `--docs` flow skips build, deploy and health at implement, but the `## implement` checklist items (container tests, click-throughs) still counted as open. The stage line showed `tier-2 3 open` with no way to find them, since "tier-2" appears nowhere in `project.md`. On a docs flow, implement items now stand down unless you tag one `(docs)`. Wherever the count shows up (the verify and release refusals, the next-step hint, the stage guidance), it now lists the open items by their text and the `## <stage>` section that holds them.
17
+ - **`flow reflect done <n>` no longer closes the wrong item in a batch (gh#197).** The numbers counted only the open items, so after the first `done` every later number pointed one row further down than the list you were reading, and each closing note landed on the wrong item. Numbers are now row numbers that stay put when an item is checked off, so a batch of `done` calls read off one `list` closes exactly the rows it named. A number that points at a row already checked off is refused and names that row's note, and the confirmation line repeats the note and what fixed it. `move` and `tidy` still renumber, and they now say so.
18
+ - **Finish no longer skips the after-merge checklist (gh#205).** Items under `## release` in the playbook (for example a build and deploy check run from the default branch after the merge) were named only by `flow release-done`. An unversioned flow, or any flow that let `flow finish` record the release itself, did the recording and the cleanup in one call. The items were never shown while the worktree still stood. Now, when finish records the release and release-stage items are open, it stops before removing anything, lists them, and asks Finish?. The Finish? question also names the items its answer closes.
19
+ - **The deploy record names the stack it touched (gh#204).** The `dev ran (…)` line printed the playbook command as written, `$DEV_FLOW_SUFFIX` and all. On the default port that variable is empty, which is the difference between a private stack and the machine's one shared stack, and after a failed deploy the only way to find out which one was hit was to read dev-flow's source. The `dev ran` and `dev deploy FAILED` lines now add what the command resolved to: the `DEV_FLOW_*` values it reads and the compose project it lands on.
20
+ - **An operator-granted refusal says when a grant counts (gh#206).** A `flow start --docs` (or `--patch`, `--ui`) without `--confirmed` is refused, and since gh#190 an immediate `--confirmed` re-run is refused too, because only a message sent after the refusal counts. The agent used to learn that by burning a second call, then had to ask you to repeat a permission you had already given. The refusal now says so up front, and the playbook tells the agent to pass `--confirmed` on the first call when your request already grants the mode.
21
+
22
+ ## [0.89.0] - 2026-11-09
23
+
24
+ **The release call is made with Verified?, and Release? answers itself when nothing but the release prep changed.**
25
+
26
+ - The versioned-or-unreleased call is now made with Verified? instead of at Release? (gh#198). On a versioned project the Verified? question also asks "a patch, minor or major release, or merge unreleased?", and `flow verify --confirmed --version=patch|minor|major` (or an exact version) / `--no-version` records the answer, so pre-release prepares the right bump (or the Unreleased line) the first time. A playbook can make the call for every flow with `version = versioned | unversioned`. A patch/minor/major call is counted from the newest tag at release time, so when another flow ships the number first the gate names the next one instead of looping between "already tagged" and "not the chosen version". The release gate refuses a bump that doesn't match the call, an exact version another flow already took (with a request to ask the operator again), and a bump on a flow that merges unreleased.
27
+ - Release? now answers itself by default (`ask = on-change` in `## release`) when the call is on record and nothing but release prep landed after Verified?. It still asks, and says why, when code changed after Verified?, no call is recorded, the session build is stale, `yolo = until-release` is set, or a playbook-made versioned call turns out to be a major bump. Set `ask = always` to have Release? asked on every flow, as before.
28
+
7
29
  ## [0.88.0] - 2026-11-09
8
30
 
9
31
  **Recording a release waits for its CI, review fixes can be re-verified, and `--confirmed` needs your actual word.**
package/README.md CHANGED
@@ -103,6 +103,7 @@ walking five stages with a gate between each:
103
103
  │ pre-release │ review, docs, changelog entry, version bump
104
104
  └────────┬────────┘
105
105
  Release? · refuses unless the version passes the last tag and the changelog agrees
106
+ (answers itself when only that prep changed since Verified?)
106
107
  ┌────────▼────────┐
107
108
  │ release │ PR → merge → annotated tag → release notes
108
109
  └────────┬────────┘
@@ -115,12 +116,12 @@ walking five stages with a gate between each:
115
116
  | Stage | What the agent does | It asks you |
116
117
  |---|---|---|
117
118
  | **plan** | reads the code, asks its clarifying questions, writes the spec to `.dev-flow/session-renewal/plan/plan.md` | **Approve?** — the plan is right, build it |
118
- | **implement** | works in a fresh worktree on `feat/session-renewal`, commits in small steps, runs your `test` command to green, walks the manual checks with you | **Verified?** — after you used it running |
119
- | **pre-release** | review and fixes, docs, changelog, version bump, checks re-run; shows the PR summary and the version it means to tag | **Release?** — ship it |
119
+ | **implement** | works in a fresh worktree on `feat/session-renewal`, commits in small steps, runs your `test` command to green, walks the manual checks with you | **Verified?** — after you used it running; with it, the release call: a patch, minor or major release, or merge unreleased |
120
+ | **pre-release** | review and fixes, docs, changelog, the bump you chose, checks re-run; shows the PR summary and the version it tags | **Release?** — only when something beyond that prep changed since Verified? (set `ask = always` under `## release` to be asked every time) |
120
121
  | **release** | PR → merge → annotated tag → release notes; only here may git touch main | **Finish?** — clean up, we're done |
121
122
  | **done** | removes the worktree, branch and `.dev-flow/session-renewal/` | — |
122
123
 
123
- Four answers from you; everything between them was the agent's problem and your playbook's gates. If
124
+ Three or four answers from you; everything between them was the agent's problem and your playbook's gates. If
124
125
  the feature grows mid-flight it is folded into this one (the plan gains an `Added mid-stage:` line and
125
126
  checks re-run); a *different* problem waits for the next flow — one feature, one plan, one PR.
126
127
 
@@ -131,8 +132,10 @@ Your answers at a checkpoint:
131
132
  back with every check still enforced. Attach your wishes to the word: *"yolo, patch bump"*,
132
133
  *"yolo, no tag"*. Release? is asked anyway when commits landed after Verified?, or always when
133
134
  the playbook sets `yolo = until-release` under `## release`.
134
- - **no version this time** (at Release?) — merge and changelog land, no bump or tag; the next
135
- versioned release folds your `Unreleased` entry under its heading.
135
+ - **merge unreleased** (the release call at Verified?, or a change of mind at Release?) — merge and
136
+ changelog land, no bump or tag; the next versioned release folds your `Unreleased` entry under its
137
+ heading. A patch/minor/major call is turned into a number when the release runs, so a parallel flow
138
+ that ships first just moves yours to the next one.
136
139
 
137
140
  Two things you grant rather than run: a **mode** when the agent proposes one (`normal` is the
138
141
  default; `--patch` for a small change you intend to ship now, `--docs` for docs-only work — both skip
@@ -36,7 +36,9 @@ who holds the port (stage, commit, age), the available RAM and free disk against
36
36
  `instanceMem` / `instanceDisk`, and the options — run alongside on the next free port
37
37
  (`flow verify --port=<n>`), replace that deploy (`--replace`), or wait. Running alongside is offered
38
38
  only when the playbook allows it (`parallelDev` is not `no`, `dev`/`health` read `$DEV_FLOW_PORT`) and
39
- the resources fit. A finished or aborted flow holds no port. `flow finish` stops a flow's
39
+ the resources fit. `--port=<n>` and `--replace` are the operator's answer, so they bind like
40
+ `--confirmed` (gh#203): a re-run carrying either before the operator has sent a message since
41
+ `Dev port?` was asked is refused. A finished or aborted flow holds no port. `flow finish` stops a flow's
40
42
  non-default-port instance with `devDown`.
41
43
 
42
44
  **The review is of the tree that ships.** Parallel flows release while others are still implementing,
package/docs/gates.md CHANGED
@@ -17,10 +17,10 @@ so it needs no `--confirmed`. The agent's own `flow` call never opens a dialog (
17
17
  | `test` | records a check | — (runs the `test` command/check, records pass/fail) |
18
18
  | `check` | records all tier-1 checks | — (runs every `flow-check`/test/health from project.md `## implement`); a `--docs` feature runs none of them and says `docs mode: project commands skipped` — a docs flow builds nothing, so a fresh checkout must not read as a failed deploy (#96) |
19
19
  | `health` | records a check | — (runs `seedData` + the health command, retrying up to `healthWait` seconds; app must be up locally with real data) |
20
- | `verify [--yolo] [--port=<n>\|--replace]` | implement → pre-release | **at pre-release it is the re-verify** (gh#187): after review fixes it runs the same build, deploy and probes over the current tree (no rebase), re-asks Verified? — a standing yolo never answers it — and on the answer moves the verdict (`verifiedHead`) to that tree, staying in pre-release; **without `--confirmed` it is the review deploy**: it fetches and, when the branch is behind `origin/<default>` (or local `<default>` with no remote), **rebases** it — untracked files never block, uncommitted tracked edits and conflicts refuse (the rebase is aborted, the branch untouched); when the dev port (playbook `port`, or the whole stack when none is set) was last deployed by **another live flow** it refuses with `NEEDS-OPERATOR Dev port?`, the measured RAM/disk against `instanceMem`/`instanceDisk`, and the options: run alongside on the next free port (offered only when `parallelDev` is not `no`, `dev`/`health` read `$DEV_FLOW_PORT`, and the resources fit), `--replace`, or wait — nothing is built first; then it deploys and returns `deployed for review` with the chat question. **With `--confirmed`** it never rewrites history: a default branch that moved since refuses (re-run `flow verify`). With `servedBuild` set the served commit must be the worktree's HEAD. Otherwise: all tier-1 checks green — a check with no passing record is **run by the gate itself** (`checks ran at the gate (test)`) rather than refused and pointed at `flow check`, since entering the stage or editing the worktree is what cleared it — and so is a record whose worktree fingerprint differs from the tree now (`stale record(s) rerun after a worktree change: …`): a change made through bash fires no edit-tool hook, the fingerprint is what notices the tree moved — and a failure there prints the run output, **the feature branch holds at least one commit** (verify refuses a branch with nothing committed — the checks describe the working tree, so an uncommitted state has never been recorded — except a **release-only flow** (#161): on a versioned project an empty branch over unreleased commits on the default branch (since the newest local version tag, or all of them before the first release) passes, the line says `release-only flow: N unreleased commit(s)`, and the version bump is the pre-release commit; with nothing unreleased the refusal says there is nothing to release; and prints `commits: N ahead of <default>, M uncommitted path(s)` with what it ran; uncommitted paths are reported, never gated), build (if configured) green, `dev` deploy (if configured) runs first so you can review the running app **and the health probe (if configured) re-runs against what it just deployed, retrying every 2s up to `healthWait` seconds** (a failing probe refuses the gate and reports how many attempts it took: the `flow check` PASS predates the deploy, and a service that needs seconds after its container starts is not a broken deploy; with no probe the output says `health: none configured`); with **no `dev` command but a `health` probe configured the gate live-re-probes the app before asking** (`health: live re-probe PASS` — a killed server refuses with `live probe FAILED`, because process death dirties no worktree fingerprint and a green record alone cannot prove liveness: start the app and rerun), tier-2 checklist (ui-only items excluded for non-UI features) confirmed as a set; a `--docs` feature runs none of it (`docs mode: project commands skipped`) and only asks you; **one question** — or `--confirmed`; `--yolo --confirmed` = you answered 'yolo' at Verified? — answers it and pre-confirms the rest |
21
- | `release [--yolo|--no-version|--no-fold-check|--no-marker-check]` | pre-release → release | checks re-greened after the prep edits; `release.preflight` (when set) passes in the worktree — the build the tag will trigger, proven before anything ships; **the branch adds no merge-conflict marker lines** vs its merge base (#164: a hand-resolved merge that kept a `<<<<<<<`/`>>>>>>>` line is refused with `file:line`; `--no-marker-check` on the operator's word when the lines are meant); **commits after Verified?** are named in the Release? question and the approved line (#162: the operator's word covers the HEAD verify stamped — a warning, never a refusal); a **standing yolo** (given at an earlier checkpoint) does not answer Release? when such commits exist, nor ever under `yolo = until-release` in `## release` — the gate returns NEEDS-OPERATOR Release? (gh#176), while `--confirmed` (the operator's answer, a yolo said at Release? included) still passes; **the worktree holds no uncommitted paths** (gh#131: a merge ships the branch, not the working tree — an uncommitted fix at this gate is a fix that never ships; the refusal lists the paths, and the approved line prints `commits: N ahead of <default>, M uncommitted path(s)` like verify's); with `versioning.file`: the manifest version parses and is **not tagged yet** (the bump must be ahead of the last release); with `release.changelog` the gate **proves the entry mechanically** (#97): a **heading names the version** (prose that mentions it, or a `1.2.0-beta` section when releasing `1.2.0`, is not an entry), **this branch touched the file** (an inherited changelog is not release prep), **every entry that was pending before the release survives inside the new section** — compared on normalized lines, so re-indenting a fold is free while rewording or deleting one is refused by naming the line — and **nothing is left under `Unreleased`**. The proofs guard the **baseline's** pending lines — they do not freeze the wording of the entry this flow writes, so a branch that landed as several iteration commits is free to state its result as one entry (see the changelog-writer rule in the pre-release reference). The pending baseline is the newest tag's changelog (what actually shipped), else the branch's merge base; when neither resolves, the two git-dependent proofs are skipped **with a printed advisory** rather than refusing a legal release for a topology reason, and the content proofs (the heading, its body) always run; tier-2 `## pre-release` checklist confirmed; the manifest version it validates is **stamped as the release's version of record** (`release-done` publishes that, whatever the checkouts say later); **one question** (Release?) — or `--confirmed`; `--no-version` (your call at Release?) ships this flow as **merge + changelog** — the bump/tag requirements and the tag checks at `release-done` are skipped for it, but the branch must still add its **own line under `Unreleased`** (a `--docs` flow is exempt — #163: a playbook/docs change owes no user-facing entry; one it writes is welcome, not proven) (editing an older section releases nothing) and it rides there until the next versioned release folds it (default: versioned); `--no-fold-check` is the operator-granted escape from the line-level fold proofs — one flow, stamped in the gate output, the heading and touched proofs stay; **stale session build** (loaded build behind the checkout): the gate prints both builds, lists what shipped between them (those proofs will not run this release) and folds *update (/reload, then re-run) or proceed with the old release?* into the Release? question — the operator's word, recorded in the release output, **never a block**: publishing under an older gate is a legitimate choice (hotfix, offline reload) |
20
+ | `verify [--yolo] [--port=<n>\|--replace] [--version=<v>\|--no-version]` | implement → pre-release | **the release call rides on Verified?** (gh#198): on a versioned project (`versionFile`) whose playbook leaves `version = ask`, the NEEDS-OPERATOR Verified? also asks *a patch, minor or major release (each with the number it makes from the manifest's current version), or merge unreleased?*, and `--confirmed --version=patch|minor|major` (or an exact `--version=<v>`) / `--confirmed --no-version` records the answer (`release call: …` in the output, the version on the stage line) so pre-release prepares the right thing; a playbook `version = versioned \| unversioned` makes the call for every flow, and a re-verify keeps the recorded call unless it is given again; **at pre-release it is the re-verify** (gh#187): after review fixes it runs the same build, deploy and probes over the current tree (no rebase), re-asks Verified? — a standing yolo never answers it — and on the answer moves the verdict (`verifiedHead`) to that tree, staying in pre-release; **without `--confirmed` it is the review deploy**: it fetches and, when the branch is behind `origin/<default>` (or local `<default>` with no remote), **rebases** it — untracked files never block, uncommitted tracked edits and conflicts refuse (the rebase is aborted, the branch untouched); when the dev port (playbook `port`, or the whole stack when none is set) was last deployed by **another live flow** it refuses with `NEEDS-OPERATOR Dev port?`, the measured RAM/disk against `instanceMem`/`instanceDisk`, and the options: run alongside on the next free port (offered only when `parallelDev` is not `no`, `dev`/`health` read `$DEV_FLOW_PORT`, and the resources fit), `--replace`, or wait — nothing is built first; then it deploys and returns `deployed for review` with the chat question. **With `--confirmed`** it never rewrites history: a default branch that moved since refuses (re-run `flow verify`). With `servedBuild` set the served commit must be the worktree's HEAD. Otherwise: all tier-1 checks green — a check with no passing record is **run by the gate itself** (`checks ran at the gate (test)`) rather than refused and pointed at `flow check`, since entering the stage or editing the worktree is what cleared it — and so is a record whose worktree fingerprint differs from the tree now (`stale record(s) rerun after a worktree change: …`): a change made through bash fires no edit-tool hook, the fingerprint is what notices the tree moved — and a failure there prints the run output, **the feature branch holds at least one commit** (verify refuses a branch with nothing committed — the checks describe the working tree, so an uncommitted state has never been recorded — except a **release-only flow** (#161): on a versioned project an empty branch over unreleased commits on the default branch (since the newest local version tag, or all of them before the first release) passes, the line says `release-only flow: N unreleased commit(s)`, and the version bump is the pre-release commit; with nothing unreleased the refusal says there is nothing to release; and prints `commits: N ahead of <default>, M uncommitted path(s)` with what it ran; uncommitted paths are reported, never gated), build (if configured) green, `dev` deploy (if configured) runs first so you can review the running app **and the health probe (if configured) re-runs against what it just deployed, retrying every 2s up to `healthWait` seconds** (a failing probe refuses the gate and reports how many attempts it took: the `flow check` PASS predates the deploy, and a service that needs seconds after its container starts is not a broken deploy; with no probe the output says `health: none configured`); with **no `dev` command but a `health` probe configured the gate live-re-probes the app before asking** (`health: live re-probe PASS` — a killed server refuses with `live probe FAILED`, because process death dirties no worktree fingerprint and a green record alone cannot prove liveness: start the app and rerun), tier-2 checklist (ui-only items excluded for non-UI features) confirmed as a set; a `--docs` feature runs none of it (`docs mode: project commands skipped`) and only asks you; **one question** — or `--confirmed`; `--yolo --confirmed` = you answered 'yolo' at Verified? — answers it and pre-confirms the rest |
21
+ | `release [--yolo|--version=<v>|--no-version|--no-fold-check|--no-marker-check]` | pre-release → release | **the branch carries the release call** (gh#198), checked before the generic version proofs: a patch/minor/major call is **counted from the newest tag at release time**, so when a parallel flow released the number first the refusal names the new one (`bump VERSION to 1.2.0 (minor past 1.1.0) — v1.1.0 was released since Verified?`) and the call still stands; an exact version another flow already tagged is refused as **taken**, for the operator to re-make; a manifest that does not say the version the operator chose, or a bump on a flow whose call is *merge unreleased* (the manifest differs from the merge base's), is refused — re-make the call with `--version=<v>` / `--no-version` and `--confirmed` on the operator's word; **`release.ask = on-change`** (the default; `ask = always` asks every time) answers Release? itself (`auto-answered: release.ask = on-change — …` in the approved line) when the call is on record, a Verified? tree is on record, nothing but release prep landed after it, the session build is current, the playbook does not set `yolo = until-release`, and a playbook-made versioned call is not a major bump — otherwise Release? is asked as before, naming why (`asked: …`) — a call re-made on the release command without `--confirmed` is one of those reasons, since the call is the operator's, and with no call on record it asks that too; checks re-greened after the prep edits; `release.preflight` (when set) passes in the worktree — the build the tag will trigger, proven before anything ships; **the branch adds no merge-conflict marker lines** vs its merge base (#164: a hand-resolved merge that kept a `<<<<<<<`/`>>>>>>>` line is refused with `file:line`; `--no-marker-check` on the operator's word when the lines are meant); **commits after Verified?** are named in the Release? question and the approved line (#162: the operator's word covers the HEAD verify stamped — a warning, never a refusal); a **standing yolo** (given at an earlier checkpoint) does not answer Release? when such commits exist, nor ever under `yolo = until-release` in `## release` — the gate returns NEEDS-OPERATOR Release? (gh#176), while `--confirmed` (the operator's answer, a yolo said at Release? included) still passes; **the worktree holds no uncommitted paths** (gh#131: a merge ships the branch, not the working tree — an uncommitted fix at this gate is a fix that never ships; the refusal lists the paths, and the approved line prints `commits: N ahead of <default>, M uncommitted path(s)` like verify's); with `versioning.file`: the manifest version parses and is **not tagged yet** (the bump must be ahead of the last release); with `release.changelog` the gate **proves the entry mechanically** (#97): a **heading names the version** (prose that mentions it, or a `1.2.0-beta` section when releasing `1.2.0`, is not an entry), **this branch touched the file** (an inherited changelog is not release prep), **every entry that was pending before the release survives inside the new section** — compared on normalized lines, so re-indenting a fold is free while rewording or deleting one is refused by naming the line — and **nothing is left under `Unreleased`**. The proofs guard the **baseline's** pending lines — they do not freeze the wording of the entry this flow writes, so a branch that landed as several iteration commits is free to state its result as one entry (see the changelog-writer rule in the pre-release reference). The pending baseline is the newest tag's changelog (what actually shipped), else the branch's merge base; when neither resolves, the two git-dependent proofs are skipped **with a printed advisory** rather than refusing a legal release for a topology reason, and the content proofs (the heading, its body) always run; tier-2 `## pre-release` checklist confirmed; the manifest version it validates is **stamped as the release's version of record** (`release-done` publishes that, whatever the checkouts say later); **one question** (Release?) — or `--confirmed`; `--no-version` (your call at Release?) ships this flow as **merge + changelog** — the bump/tag requirements and the tag checks at `release-done` are skipped for it, but the branch must still add its **own line under `Unreleased`** (a `--docs` flow is exempt — #163: a playbook/docs change owes no user-facing entry; one it writes is welcome, not proven) (editing an older section releases nothing) and it rides there until the next versioned release folds it (default: versioned); `--no-fold-check` is the operator-granted escape from the line-level fold proofs — one flow, stamped in the gate output, the heading and touched proofs stay; **stale session build** (loaded build behind the checkout): the gate prints both builds, lists what shipped between them (those proofs will not run this release) and folds *update (/reload, then re-run) or proceed with the old release?* into the Release? question — the operator's word, recorded in the release output, **never a block**: publishing under an older gate is a legitimate choice (hotfix, offline reload) |
22
22
  | `release-done` | records the release (the stage stays `release`) | **no question — the Release? answer covered the publication**; verify approval; the version published is the one `release` **stamped** from the manifest it validated (a main checkout still behind cannot republish the previous version), and it must not be older than the newest matching tag **on origin** (tag lists come from `git ls-remote`, so an unfetched clone does not decide what exists; when an origin exists but cannot be asked (offline, no ssh agent) **both release gates refuse** rather than answering with local tags); with `versioning.file`: that tag exists, is reachable from the default branch **and is on origin** (a local-only tag is not a release); with `release.artifact`: the published-artifact check runs (`{version}`/`{tag}` placeholders — the line it prints names the version it verified; skip once with `--no-artifact-check`, operator-instructed only; on GitHub a miss right after the tag push **waits for the CI runs that tag started** — up to 15 min, plus a minute's grace for a registry that lags the green run — then probes again, and a refusal names a failed or still-running run with its URL, gh#179) · creates the forge release from the tag, its body **the `release.changelog` entry for that version** — the changelog is the source of truth, and the tag's annotation stands in only when the changelog has no entry for the version, else nothing (and it says why — a body that is really a shell error is dropped, never shipped) — `gh` for GitHub, `glab` for GitLab) and then **proves the release exists**: it asks the forge (`gh release view <tag>` / `glab release view <tag>`) and refuses when nothing is there, because #51, #60 and #63 were three ways of ending `release recorded as complete` with nothing published — and when the changelog was the body it **reads the stored body back** and refuses a mismatch, so the release page and the changelog cannot drift (#97; normalized before comparing, skipped with a printed note on another forge). Skipping is deliberate and loud — `--no-release-create`, `release.releases = false` or `forge = self` each print that no forge release was created, and the view check is skipped for them; **with a `merge` policy** it also proves the merge that shipped matches it — branch ancestry plus what the forge says (`gh pr view` / `glab api`), so a squash under `merge = merge` (or a merge commit under `merge = squash`) refuses the release record, while a shape it cannot see prints an advisory instead (#97's split: an invisible topology never blocks a legal release); when the release went out on a stale build the operator acknowledged at the release gate, it prints that acknowledgement in place of the after-the-fact version-skew warning, and that warning prints the session vs disk version pair plus the duplicate-copy note when a second copy is registered (#117) |
23
- | `finish [--yolo] [--no-reflect] [--note=<text>] [slug]` | release → done — **records an unrecorded release first** (published but `release-done` never ran: finish runs its proofs itself — that gate asks nothing, so it is not a separate step; its refusal is finish's) — **then the closing reflection**: while no reflection is recorded for the flow, finish starts the reflect worker before it touches anything and stops for the operator's fold/drop (or Finish? when nothing was found); a flow with **no friction** (no gate refusal, no guard block, no `--note`) skips the worker unless the playbook sets `reflect = always`; the re-run with `--confirmed` does the cleanup. `--no-reflect --confirmed` skips it on the operator's explicit word (yolo never does); `--note=` hands the worker the operator's friction notes. Cleanup (removes worktree + branch, deletes `.dev-flow/<slug>/`, and deletes `origin/<branch>` **only** when its merged state is verified — ancestor of the default branch or a merged PR/MR via `gh`/`glab`; unverifiable branches stay with a note) | a release is recorded (`release-done` ran), the main checkout is clean **and** pushed to `origin/<default>`, and the worktree has no uncommitted changes (the refusal lists the paths, not just the count — gh#131); when the clean checkout trails `origin/<default>` the gate **fast-forwards local main** as it closes out (never a merge — anything that cannot fast-forward prints the operator's exact `git pull --ff-only` command); **one question** (Finish? — mentions unmerged-looking commits with the playbook's `merge` policy in mind, and warns when the forge release create failed at `release-done` and no retry succeeded) — or `--confirmed`; under `merge = merge`, commits that never reached the default branch are a **policy violation**: `yolo` does not answer it, only your explicit answer does; to abandon an unreleased feature use `abort` |
23
+ | `finish [--yolo] [--no-reflect] [--note=<text>] [slug]` | release → done — **records an unrecorded release first** (published but `release-done` never ran: finish runs its proofs itself — that gate asks nothing, so it is not a separate step; its refusal is finish's; when the playbook's `## release` checklist has open items, that call stops after recording, before anything is removed, and asks Finish? with the items listed — gh#205) — **then the closing reflection**: while no reflection is recorded for the flow, finish starts the reflect worker before it touches anything and stops for the operator's fold/drop (or Finish? when nothing was found); a flow with **no friction** (no gate refusal, no guard block, no `--note`) skips the worker unless the playbook sets `reflect = always`; the re-run with `--confirmed` does the cleanup. `--no-reflect --confirmed` skips it on the operator's explicit word (yolo never does); `--note=` hands the worker the operator's friction notes. Cleanup (removes worktree + branch, deletes `.dev-flow/<slug>/`, and deletes `origin/<branch>` **only** when its merged state is verified — ancestor of the default branch or a merged PR/MR via `gh`/`glab`; unverifiable branches stay with a note) | a release is recorded (`release-done` ran), the main checkout is clean **and** pushed to `origin/<default>`, and the worktree has no uncommitted changes (the refusal lists the paths, not just the count — gh#131); when the clean checkout trails `origin/<default>` the gate **fast-forwards local main** as it closes out (never a merge — anything that cannot fast-forward prints the operator's exact `git pull --ff-only` command); **one question** (Finish? — mentions unmerged-looking commits with the playbook's `merge` policy in mind, and warns when the forge release create failed at `release-done` and no retry succeeded) — or `--confirmed`; under `merge = merge`, commits that never reached the default branch are a **policy violation**: `yolo` does not answer it, only your explicit answer does; to abandon an unreleased feature use `abort` |
24
24
  | `reflect ["<note>"|list|tidy|move <n> --playbook|--code|done <n> ["<what>"]]` | — | `reflect "<note>"` queues a suggestion in **this project's** `reflections.md` (never gates; gate flags such as `--confirmed` are ignored, they never become part of the note). `--playbook` (alias `--docs`) files it under `## playbook` — the fix lives only in `project.md`, a docs flow implements it; `--code` files it under `## code` — the fix touches project code, a patch flow implements it. `--plugin` **never writes**: dev-flow feedback is filed upstream, so it prints the recipe — `gh issue list --repo <dev-flow repo> --state all --search …` first, then `gh issue create` with a body ending `— reflection from <slug> <date>` (in the dev-flow repo itself plugin is code → `## code`). With no flag the wording guesses (plugin-shaped → the recipe; otherwise `## playbook`) and the echo prints why. `reflect list` numbers the open items with their section; `reflect move <n> --playbook|--code` re-files one; `reflect done <n> ["<what>"]` checks a fixed one off (`— fixed: <date> <slug> — <what>`) so doctor stops re-reporting it; a legacy `## plugin` row is flagged by list and doctor (file it upstream, check it off `— filed: gh#NNN`). `reflect tidy` drops the closed (`- [x]`) items — the preamble and open items stay verbatim and a `## section` heading left empty goes with its items. **Nudges are timed, not constant**: `⚑ fix the open reflections now?` prints when an item recurred this session, is ≥ 14 days old, ≥ 3 playbook items wait, or a code item waits while between flows — at finish, in an unbound session and in doctor, never mid-feature; `↻ N closed reflection(s)` prints at ≥ 5 closed, closed ≥ open (≥ 3), or a closed item ≥ 30 days old. Bare `reflect` prints the **session-reflection protocol** (from the `/flow reflect` bar it additionally wakes the model): bound to a flow, delegate the review to `flow_stage` op `reflect`; unbound, review inline; re-check every open item against the playbook and **newer dev-flow versions** (`npm view pi-dev-flow version`; the operator performs updates); show the operator a numbered list with a fold/drop recommendation per finding and stop; fold docs/code → `reflect --playbook|--code`, fold plugin → the upstream issue, drop → nothing recorded |
25
25
  | `roadmap [add "<feature>" [--slug=<slug>] [--brief=<notes>\|--brief-file=<path>] \| pick <n> <slug> \| done <n> \| drop <n> \| tidy]` | — | manages `.dev-flow/roadmap.md`, the gitignored backlog of future features (`- [ ]` checklist): bare prints the numbered open items, `add` appends one (`--slug=` stamps it like pick, `--brief=`/`--brief-file=` keeps notes under it as ` > ` lines, and a bound session records `— split from <slug>` — the spin-off route for a new feature surfaced mid-flow), `pick <n> <slug>` stamps open item n with `(slug)` so `flow start <slug>` can take it (start seeds `plan/plan.md` with the item and its brief) — **`finish` checks the stamped item off when that feature ships**; `done <n>` checks off by hand (items shipped outside a flow), `drop <n>` (alias `remove`) deletes an open item and its brief that nobody wants any more — `done` would record it as shipped — `tidy` drops the checked lines. Never gates; the open count is surfaced in `status` and session context |
26
26
  | `doctor ["<issue note>"]` | — | read-only findings: playbook drift, dead commands/scripts, untracked playbook, ghost feature dirs, orphan worktrees/branches — the state of an **aborted** feature is never a finding (its worktree cleanup is by design — gh#138) — **plus a review of every open reflection, each routed to the flow that should fix it** (playbook item → docs flow; plugin item → upstream issue, or a patch/normal flow inside the dev-flow repo) — every item is labelled from the `## section` it is filed under (the file is the record, so the table cannot disagree with it) and items sitting outside both sections are named rather than silently bucketed. It writes nothing and asks nothing, safe for agents and CI at any stage; the agent investigates, you confirm, the routed flow implements. `doctor "<note>"` prints an investigation brief and a fix route for a fresh observation, including the section it would be filed under and why |
package/docs/playbook.md CHANGED
@@ -52,7 +52,8 @@ executable checks and hard safety rules:
52
52
  |---|---|---|
53
53
  | 1 — executable | ` ```flow` (`key = value`) config blocks; ` ```flow-check <name>` command blocks | gates run every check, record pass/fail against a worktree fingerprint, a changed tree makes them stale — hard |
54
54
  | 1 — guard | ` ```flow-guard ` (`deny`/`confirm`/`protect`/`forbid`) rules in `## global` | enforced on every bash command and every edit/write path, at every stage — hard block or operator confirmation |
55
- | 2 — checklist | `- [ ] item` lines (`- [ ] (ui) item` = only for `--ui` features; `- [ ] (versioned) item` = only when the flow ships a version — it stands down on `--no-version`) | gate confirms cover them as a set (hashed: changing the items asks again); `(ui)` items never appear for non-UI features, `(versioned)` items never for an unversioned flow (a deploy proof of the tagged image, say) |
55
+ | 1 — worker setup | ` ```flow-worker ` lines in `## global` (e.g. `export APP_TEST_PASSWORD="$(cat /path/to/.secrets/test-password)"`) | copied into every `flow_stage` worker's brief as a setup block to run before any project check, so a check that needs a variable or file the worktree lacks still runs there; a reviewer that could not run a check must say so (`checks not run:`) instead of passing |
56
+ | 2 — checklist | `- [ ] item` lines (`- [ ] (ui) item` = only for `--ui` features; `- [ ] (versioned) item` = only when the flow ships a version — it stands down on `--no-version`; on a `--docs` flow the `## implement` items stand down, since nothing is built or deployed, except those tagged `- [ ] (docs) item`; an open count names its items and the section they sit under) | gate confirms cover them as a set (hashed: changing the items asks again); `(ui)` items never appear for non-UI features, `(versioned)` items never for an unversioned flow (a deploy proof of the tagged image, say) |
56
57
  | 3 — prose | any other text | injected to the agent when its stage begins — advisory |
57
58
 
58
59
  Example `## implement` section:
@@ -89,7 +90,9 @@ servedBuild = curl -fsS http://127.0.0.1:$DEV_FLOW_PORT/version # must print t
89
90
  ```
90
91
 
91
92
  `$DEV_FLOW_SUFFIX` is empty on the default port and `-<slug>` on any other, so a second instance gets its own
92
- compose project. `flow verify` records who deployed on which port in `.dev-flow/dev-ports.json`; when the
93
+ compose project. The `dev ran (…)` and `dev deploy FAILED` lines print the command as written, followed by what
94
+ it resolved to (`resolved: DEV_FLOW_PORT=8090, DEV_FLOW_SUFFIX="", compose project app`), so a record says
95
+ which stack a deploy touched. `flow verify` records who deployed on which port in `.dev-flow/dev-ports.json`; when the
93
96
  port it would use belongs to another live flow it asks you first (see [concurrency](concurrency.md)).
94
97
  `flow finish` runs `devDown` for an instance on a non-default port. `servedBuild` turns "something answers"
95
98
  into "this branch answers": verify refuses when its output names no prefix of the worktree's HEAD.
@@ -171,6 +174,12 @@ gate prints `health: none configured` and `flow doctor` flags the combination. T
171
174
  `merge = squash | merge | rebase | any` — how a merged PR lands on the default branch (see below) — and
172
175
  `yolo = all | until-release`: with `until-release` a yolo given at an earlier checkpoint never answers Release?
173
176
  (for repos whose rules want the release word given after the commits exist; default `all`) — and
177
+ `version = ask | versioned | unversioned` (gh#198): who makes the release call — `ask` (default) puts *a patch, minor or
178
+ major release, or merge unreleased?* into the Verified? question (a kind is turned into a number at release, from the
179
+ newest tag, so parallel flows never fight over one); the other two make it for every flow — and
180
+ `ask = on-change | always`: with `on-change` (default) Release? answers itself when the call is on record and nothing but
181
+ release prep (the bump, the changelog) changed since Verified? (a stale build, `yolo = until-release` or a major
182
+ bump the operator did not name still ask; `always` asks it every flow, as before 0.89) — and
174
183
  `reflect = on-friction | always`: when `flow finish` runs the closing reflection worker. `on-friction` (default)
175
184
  skips it for a flow that hit no gate refusal and no guard block and carries no `--note`; `always` runs it every
176
185
  time. `## global` also takes
@@ -24,7 +24,7 @@ import path from "node:path";
24
24
  import { Type } from "typebox";
25
25
  import { compact, defineTool, isToolCallEventType, type AgentSession, type ExtensionContext } from "@earendil-works/pi-coding-agent";
26
26
  import { type ExtensionAPI, type ToolCallEvent, type ToolCallEventResult, type TurnEndEvent, type TurnEndEventResult } from "@earendil-works/pi-coding-agent";
27
- import { ALLOW_REWRITE, applicableItems, bashFlowGuard, checklistPending, checkoutInvocation, claimBlocks, featureBranchPrefix, FLOW_SHELL_HINT, flowShellInvocation, forcePushInvocation, freshenChecks, gitInvocation, guardBash, guardPath, mergeStyleInvocation, parsePushRefs, playbookTamper, playbookOnlyChange, pluginVersion, reflectionNudges, buildReflectBrief, parseReflectReport, renderReflectFindings, childSessionFiles, workerSteer, WORKER_STEER_AT, WORKER_SALVAGE, WORKER_SALVAGE_MS, WORKER_NUDGE_READONLY, stageReference, needsOperator, NEEDS_OPERATOR, nextHint, roadmapOpenCount, shouldTakeOverCompaction, stageGuidance, stateTamper, statusFor, sq, featureTmpDir, compactionStateBlock, withTmpDir, widgetLines, chipLabel, writeGuard, buildWorkerBrief, clampBudgetMin, parseWorkerReport, workerTurnError, hollowStop, hollowStopNote, workerOpError, WORKER_NUDGE, WORKER_NUDGES, releaseOrderInvocation, type WorkerOp, type FlowState, type PushRef } from "../src/core.ts";
27
+ import { ALLOW_REWRITE, applicableItems, openItemsNote, bashFlowGuard, checklistPending, checkoutInvocation, claimBlocks, featureBranchPrefix, FLOW_SHELL_HINT, flowShellInvocation, forcePushInvocation, freshenChecks, gitInvocation, guardBash, guardPath, mergeStyleInvocation, parsePushRefs, playbookTamper, playbookOnlyChange, pluginVersion, reflectionNudges, buildReflectBrief, parseReflectReport, renderReflectFindings, childSessionFiles, workerSteer, WORKER_STEER_AT, WORKER_SALVAGE, WORKER_SALVAGE_MS, WORKER_NUDGE_READONLY, stageReference, needsOperator, NEEDS_OPERATOR, nextHint, roadmapOpenCount, shouldTakeOverCompaction, stageGuidance, stateTamper, statusFor, sq, featureTmpDir, compactionStateBlock, withTmpDir, widgetLines, chipLabel, writeGuard, buildWorkerBrief, clampBudgetMin, parseWorkerReport, workerTurnError, hollowStop, hollowStopNote, workerOpError, WORKER_NUDGE, WORKER_NUDGES, releaseOrderInvocation, type WorkerOp, type FlowState, type PushRef } from "../src/core.ts";
28
28
  import { loadProject } from "../src/projectmd.ts";
29
29
  import { bashTimeout, requireTimeout, timeoutClass } from "../src/timeouts.ts";
30
30
  import { AGENT_MARK, operatorCommandAsks, operatorCommandCorrection, viewHeader, askLine, type GateView } from "../src/present.ts";
@@ -341,6 +341,7 @@ export default function devFlow(pi: ExtensionAPI) {
341
341
  commits: await git(`git log --oneline ${sq(cfg.defaultBranch)}..HEAD`),
342
342
  status: await git("git status --short"),
343
343
  checks: cfg.checkList.map((c) => ({ name: c.name, command: c.cmd })),
344
+ preamble: cfg.workerPreamble,
344
345
  note: String(params.note ?? ""),
345
346
  });
346
347
  // pi-web visibility needs both halves of the lineage: the id the Agents menu links the child
@@ -878,7 +879,7 @@ export default function devFlow(pi: ExtensionAPI) {
878
879
  if (prose) guidance.push(`Stage guidance (${prose.source}): ${prose.text}`);
879
880
  guidance.push("Stage reports: open with the stage line the last gate returned, pasted as is; a checkpoint closes with `Done:` / `Next steps:` (see the ground rules).");
880
881
  const pend = checklistPending(cfg, state, state.stage);
881
- 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" : ""}`);
882
+ if (pend) guidance.push(`Tier-2 checklist NOT yet confirmed — ${openItemsNote(cfg, state, state.stage)}${state.stage === "release" ? " — release-stage items close with the operator's Finish? answer; no earlier gate records them" : ""}`);
882
883
  // mid-feature is the wrong moment to divert into old reflections — they surface at the release
883
884
  // stage (finish runs the reflection), between flows, and in status/doctor
884
885
  if (state.stage === "release") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dev-flow",
3
- "version": "0.88.0",
3
+ "version": "0.90.0",
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": [
@@ -28,14 +28,22 @@ note). Other sessions' worktrees are theirs.
28
28
  deploy and the health probe against what it deployed, and returns
29
29
  `NEEDS-OPERATOR Verified?`. It never opens a dialog.
30
30
  - Another flow holds the dev port → `NEEDS-OPERATOR Dev port?` with free
31
- RAM/disk: ask, then re-run with `--port=<n>` or `--replace`.
31
+ RAM/disk: ask, stop, then re-run with `--port=<n>` or `--replace` on
32
+ their answer. "wait" means wait; a later "proceed" about the feature is
33
+ not a yes to replacing another flow's stack.
32
34
  - The health probe retries every 2s up to `healthWait` (default 30s); a
33
35
  service that needs a moment is not a broken deploy.
34
36
  2. Look at the change yourself, **keep the app running**, ask **Verified?**
35
37
  — say what changed for the user and how to see it, not which modules
36
38
  changed.
37
39
  Report opening: **🔨 implement · `<slug>`** (the gate's stage line).
38
- 3. Answer → `flow verify --confirmed` (yolo → `--yolo --confirmed`). If the
40
+ - Versioned project, playbook `version = ask` (the default): the gate's
41
+ question also asks the **release call** — a patch, minor or major
42
+ release (propose one by the playbook's versioning rule) or merge
43
+ unreleased. Record the kind, not a number, unless the operator names one:
44
+ the gate counts it from the newest tag, so a parallel release moves it.
45
+ 3. Answer → `flow verify --confirmed` (yolo → `--yolo --confirmed`), plus
46
+ `--version=patch|minor|major` (or `--version=<exact>`) or `--no-version`. If the
39
47
  default branch moved since the review deploy it refuses: run `flow verify`
40
48
  again first. Fixes → iterate and re-verify; that loop is free.
41
49
 
@@ -17,7 +17,11 @@ and settle the scheme with the operator; never invent one.
17
17
  Otherwise `flow release` warns that the fix shipped after Verified?.
18
18
  2. **Docs**: update them to match the change.
19
19
  3. **Changelog + bump** — manifest, changelog heading and tag must agree;
20
- commit the prep on the feature branch.
20
+ commit the prep on the feature branch. The release call recorded with
21
+ Verified? decides which: its kind, counted from the newest tag (the gate
22
+ names the number — another flow that released first moves it), an exact
23
+ version (taken by another flow → ask again, never pick one), or
24
+ *merge unreleased* — no bump, the line goes under `Unreleased`.
21
25
  - **The changelog writer reviews the branch, not its commit list**: read
22
26
  `git log <default>..HEAD` *and* `git diff <default>...HEAD`, then write
23
27
  what the branch delivers in the reader's terms (what was broken, what
@@ -32,17 +36,25 @@ and settle the scheme with the operator; never invent one.
32
36
  changelog this branch never touched. `--no-fold-check` only on the
33
37
  operator's word.
34
38
  4. `flow check` — the prep made the earlier checks stale.
35
- 5. **Ask Release? and stop.** Say in a few lines what the PR delivers (the
36
- changelog entry usually is that), plus the version. Report opening: **🔍 pre-release · `<slug>`** (the gate's
37
- stage line; the version field reads `pending` until decided — never
38
- invent a bump or a no-version decision). Answer → `flow release
39
- --confirmed`.
39
+ 5. **Run `flow release`.** By default (`ask = on-change`) it answers
40
+ Release? itself when the release call is on record and only the prep
41
+ landed since Verified? — say in a few lines what the PR delivers (the
42
+ changelog entry usually is that) and the version, and carry on with the
43
+ release stage.
44
+ 6. **It returned `NEEDS-OPERATOR Release?`** (it says why: code after
45
+ Verified?, no call on record, a stale build, `yolo = until-release`, a
46
+ major bump, or the playbook's `ask = always`) → **ask Release? and
47
+ stop**, with the same summary and the version. Report opening:
48
+ **🔍 pre-release · `<slug>`** (the gate's stage line; the version field
49
+ reads `pending` until decided — never invent a bump or a no-version
50
+ decision). Answer → `flow release --confirmed`.
40
51
  - Standing yolo → run `flow release` without asking. It still returns
41
52
  `NEEDS-OPERATOR Release?` when commits landed after Verified? or the
42
53
  playbook says `yolo = until-release` — then ask.
43
54
  - Operator ships **without a version** → `flow release --no-version
44
55
  --confirmed`: no bump or tag, but the branch must add its line under
45
- `Unreleased`.
56
+ `Unreleased`. A changed call is `--version=<v>` / `--no-version` with
57
+ `--confirmed`, on their word.
46
58
 
47
59
  The gate re-checks tier-1, requires the manifest ahead of the last tag and a
48
60
  changelog **heading** for that version written on this branch.
@@ -19,7 +19,10 @@ friction only, never the same issue twice. `.dev-flow/reflections.md` holds
19
19
  - No flag → the wording decides and the printed line says why.
20
20
  - `flow reflect list` numbers the queue; `flow reflect move <n>
21
21
  --playbook|--code` re-files; `flow reflect done <n> ["<what fixed it>"]`
22
- checks one off; `flow reflect tidy` drops closed items.
22
+ checks one off; `flow reflect tidy` drops closed items. The numbers are
23
+ row numbers: checking items off leaves the others' numbers alone, so a
24
+ batch of `done` calls read off one `list` is safe; after `move` or `tidy`,
25
+ list again.
23
26
  - `flow doctor "<observation>"` prints an investigation brief without queueing.
24
27
  - The end-of-session reflection runs at finish (see [finish.md](finish.md)).
25
28
 
@@ -3,7 +3,8 @@
3
3
  ## Stage: release
4
4
 
5
5
  Main-repo git (merge, tag, push on the default branch) is allowed only here.
6
- Nothing in this stage asks the operator anything — Release? covered it. Report
6
+ Nothing in this stage asks the operator anything — Release? covered it (answered
7
+ by the operator, or by the gate itself under `ask = on-change`). Report
7
8
  each step with the gate's stage line, **🚀 release · `<slug>`**; no `Done:` /
8
9
  `Next steps:` block.
9
10
 
@@ -34,7 +34,10 @@ knobs · merge-policy state.
34
34
  the mode (`normal` default, or `--patch` / `--docs`), `--ui` when screens
35
35
  change, and the merge policy if the playbook has none —
36
36
  `flow start <slug> [--ui] [--patch|--docs] [--merge=<style>] --confirmed`.
37
- Never grant any of them yourself.
37
+ Never grant any of them yourself. When the operator's own request already
38
+ grants one ("start a docs flow"), that is their word: pass `--confirmed` on
39
+ the first call. After a refusal, only a message sent later counts, so a
40
+ `--confirmed` re-run right away is refused too. Ask once.
38
41
  - No merge policy → the gate refuses with `NEEDS-OPERATOR Merge policy?` and a
39
42
  suggestion read off the repo's history. Ask: squash, merge, rebase or any.
40
43
  The answer is written into `## release` once.