flow-workflows 0.97.0 → 0.97.2

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.
Files changed (27) hide show
  1. package/adapters/codex/CORE.md +11 -5
  2. package/adapters/codex/skills/flow-bug-validate/SKILL.md +1 -1
  3. package/adapters/codex/skills/flow-feat-build/SKILL.md +2 -2
  4. package/adapters/codex/skills/flow-feat-validate/SKILL.md +5 -4
  5. package/adapters/codex/skills/flow-work-green/SKILL.md +2 -2
  6. package/adapters/codex/skills/flow-work-respond/SKILL.md +2 -2
  7. package/adapters/gemini/CORE.md +11 -5
  8. package/adapters/gemini/commands/flow/bug/validate.toml +1 -1
  9. package/adapters/gemini/commands/flow/feat/build.toml +2 -2
  10. package/adapters/gemini/commands/flow/feat/validate.toml +5 -4
  11. package/adapters/gemini/commands/flow/work/green.toml +2 -2
  12. package/adapters/gemini/commands/flow/work/respond.toml +2 -2
  13. package/adapters/hermes/CORE.md +11 -5
  14. package/adapters/hermes/skills/flow-bug-validate/SKILL.md +1 -1
  15. package/adapters/hermes/skills/flow-feat-build/SKILL.md +2 -2
  16. package/adapters/hermes/skills/flow-feat-validate/SKILL.md +5 -4
  17. package/adapters/hermes/skills/flow-work-green/SKILL.md +2 -2
  18. package/adapters/hermes/skills/flow-work-respond/SKILL.md +2 -2
  19. package/adapters/opencode/CORE.md +11 -5
  20. package/adapters/opencode/commands/flow-bug-validate.md +1 -1
  21. package/adapters/opencode/commands/flow-feat-build.md +2 -2
  22. package/adapters/opencode/commands/flow-feat-validate.md +5 -4
  23. package/adapters/opencode/commands/flow-work-green.md +2 -2
  24. package/adapters/opencode/commands/flow-work-respond.md +2 -2
  25. package/package.json +1 -1
  26. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  27. package/plugins/flow/CHANGELOG.md +26 -0
@@ -17,7 +17,7 @@ Every `$flow-*` command assumes these rules. They are stated once, here, so a co
17
17
  carries what is specific to its phase. Read this once per session; a command that says "load
18
18
  `flow-core`" means this file.
19
19
 
20
- **This file belongs to flow `0.97.0`.** Compare it once, at the start of the session, against
20
+ **This file belongs to flow `0.97.2`.** Compare it once, at the start of the session, against
21
21
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
22
22
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
23
23
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -321,9 +321,15 @@ assumed:
321
321
  - **Exactly one closing order per run** — `ask`, `publish`, `blocked` or `done` — and the run ends
322
322
  right after it: no further phase starts. The one write that follows it is its own result in
323
323
  `meta.json` — `publish` marking what it published (`$flow-feat-ship`) — inside the work folder,
324
- never committed. A closing order that exits ≠ 0 → print its stderr in the
325
- stop header and end; **never try another closing order** in its place, and never retry a question
326
- as a different one.
324
+ never committed. A closing order that exits ≠ 0 closed nothing — the orchestrator records an
325
+ order only when it accepts it. When its stderr names something this run wrote — an argument, a
326
+ file, an uncommitted tree — fix that and send **the same order once more**; a second refusal, or
327
+ one about something the run cannot change → print its stderr in the stop header and end.
328
+ **Never try another closing order** in its place, and never retry a question as a different one.
329
+ - **`--part N --of M` belongs to the publish that opens an MR/PR** of a split work
330
+ (`$flow-feat-ship`). A publish that updates one already open — `$flow-work-green`,
331
+ `$flow-work-respond` — carries neither: the MR/PR is already that part, and an orchestrator may
332
+ refuse a part declared on a run launched for `pipeline`, `conflict` or `review`.
327
333
  - **Free text travels in files, never on the command line.** Question, options (one per line, the
328
334
  recommended one first), title, body, reason and summary are written into the work folder
329
335
  (`ask-question.md`, `ask-options.md`, `publish-title.md`, `publish-body.md`, `blocked-reason.md`,
@@ -401,7 +407,7 @@ person asking for changes, a ticket that already has code — is `$flow-work-run
401
407
  | Writing a DB schema change, index or migration — in any phase, a review's own fixes included — or applying one (`validate`) | question `migration`, before the first line of it is written or run — except in `respond` and `green`, where it is blocked: a schema change agreed after the MR/PR exists goes back through `build`. Writing one whose every object `approved-schema.md` lists is not asked (§2, a schema approved with the study) |
402
408
  | `review` with blockers or high-severity findings | question `high_findings` |
403
409
  | `validate` with a criterion `unproven` | blocked — the phase does not advance and does not chain |
404
- | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **one repair round per MR/PR**: this MR/PR's plan (`05-implementation.md` / `04-fix.md`) has no `### Red suite at validate (unattended)` heading yet → write it under the plan with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"<n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `$flow-feat-build` (`$flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. The heading already there → it is the same check failing a second time: blocked, naming the tests still red |
410
+ | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **repair rounds while they make progress, at most three per MR/PR**: each round is a heading under this MR/PR's plan (`05-implementation.md` / `04-fix.md`), `### Red suite at validate (unattended), round <k>: <n> red`. No such heading yet, or the last one's `<n>` above the count red now and `<k>` below 3 → write the next heading with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"round <k>, <n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `$flow-feat-build` (`$flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. A round that did not lower the count, or a third round still red → blocked, naming the tests still red and the count each round left |
405
411
  | A product decision (§7 `decision`) | question `decision` |
406
412
  | Clarifying questions on the ticket (`start`) | question `clarify` — after the branch and the work folder exist, with the questions also written to `01-context.md` |
407
413
  | An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
@@ -97,7 +97,7 @@ this is the same gate as a red test.
97
97
 
98
98
  ## 5. Close
99
99
 
100
- - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise the one repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `$flow-bug-fix`, which chains back here; red a second time → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
100
+ - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise a repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `$flow-bug-fix`, which chains back here; rounds go on while each lowers the red count, three at most, and one that does not, or a third still red → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
101
101
  - Green → `phase = "validate"`, add to `phases_done`; in the same write record `validated_sha` = `git rev-parse HEAD` — the tree the regression test passed on, which `$flow-bug-ship §0` reads. Suggest `$flow-bug-review`.
102
102
  - **Other bugs detected become `followups[]` entries** (flow-core §7) when they clear its bar — a reproducible symptom with someone who suffers it, not «this looks fragile» — per the output template.
103
103
  - **Stage what the validation taught** (`knowledge.stage` set; silence by default): a mutation that stayed green, a disguise the scenario wore, a fixture that could not produce the case — findings about how this codebase is tested, not about this diff. Same rule and evidence line as the review's Close.
@@ -93,8 +93,8 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
93
93
  there → it is a question like any other.
94
94
  Chained from a review's `high_findings` *Fix them* → the findings are unticked steps at the end of
95
95
  this MR/PR's plan: build them in order, then chain into `$flow-feat-review`. Chained from a red
96
- suite at validate (flow-core §2.1) → the same, under the plan's `### Red suite at validate
97
- (unattended)`: one step per failing test, and a test reaches green by fixing the code or by an
96
+ suite at validate (flow-core §2.1) → the same, under the plan's latest `### Red suite at validate
97
+ (unattended), round <k>` heading: one step per failing test, and a test reaches green by fixing the code or by an
98
98
  assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
99
99
  step's test with `quality.test_one` before ticking it.
100
100
 
@@ -232,9 +232,10 @@ Write `.claude/work/<TICKET>/07-validation.md`:
232
232
  it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
233
233
  failing tests on the base, and write each name, its result there and the base sha under "Suite
234
234
  results" in `07-validation.md`. Calling a failure "pre-existing" without that run is not the
235
- exception — it is a red suite. Short of it, the red suite gets its one repair round (the same
236
- row): the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
237
- chains into `$flow-feat-build`, then review and this phase again. Red a second time → `blocked`,
238
- naming the tests still red.
235
+ exception — it is a red suite. Short of it, the red suite gets a repair round (the same row):
236
+ the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
237
+ chains into `$flow-feat-build`, then review and this phase again. Rounds go on while each lowers
238
+ the red count, three at most; one that does not, or a third still red → `blocked`, naming the
239
+ tests still red.
239
240
 
240
241
  In `guided`/`auto` this is, together with the brief in `$flow-feat-build §2`, **the only stop of the whole MR/PR** — everything between them ran without a person. It carries the **full stop header** and the body answers, in this order: what is green, what this MR/PR proves and what it does not, and what shipping it takes. Assume the user has read none of the build and review.
@@ -80,8 +80,8 @@ others resolve this way:
80
80
  - **§7 before the closing order** — logged as written; offers are `Later`; re-posting the
81
81
  performance comment is not done — a changed number goes into `publish-body.md`.
82
82
  - **§6** — no push, no rerun, no watch. The closing order, after the WIP commit (flow-core §2.1): `publish` with the
83
- work's `publish-title.md` / `publish-body.md` and the `--part/--of` `$flow-feat-ship` passed; the
84
- orchestrator pushes and the pipeline runs again.
83
+ work's `publish-title.md` / `publish-body.md` and no `--part/--of` — the MR/PR is already open
84
+ (flow-core §2.1); the orchestrator pushes and the pipeline runs again.
85
85
 
86
86
  ## 1. Pre-flight — locate the work and the MR/PR
87
87
 
@@ -100,8 +100,8 @@ back through it, and the hard gates above resolve this way:
100
100
  ≠ 0 is recorded in `08-feedback.md` and the remaining replies still go out.
101
101
  - **The one closing order**, after the WIP commit (flow-core §2.1): code changed this round →
102
102
  `publish` with the work's `publish-title.md` / `publish-body.md` (updated when the round changed
103
- what they say, and naming any thread whose reply failed) and the `--part/--of` `$flow-feat-ship`
104
- passed — the commits the replies name must reach the branch; no code changed and every reply went
103
+ what they say, and naming any thread whose reply failed) and no `--part/--of` — the MR/PR is
104
+ already open (flow-core §2.1) — so the commits the replies name reach the branch; no code changed and every reply went
105
105
  out → `done`, the summary listing the threads answered; no code changed and a reply failed →
106
106
  `blocked`, naming those threads.
107
107
 
@@ -16,7 +16,7 @@ Every `/flow:*` command assumes these rules. They are stated once, here, so a co
16
16
  carries what is specific to its phase. Read this once per session; a command that says "load
17
17
  `flow-core`" means this file.
18
18
 
19
- **This file belongs to flow `0.97.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.97.2`.** Compare it once, at the start of the session, against
20
20
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
21
21
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
22
22
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -320,9 +320,15 @@ assumed:
320
320
  - **Exactly one closing order per run** — `ask`, `publish`, `blocked` or `done` — and the run ends
321
321
  right after it: no further phase starts. The one write that follows it is its own result in
322
322
  `meta.json` — `publish` marking what it published (`/flow:feat:ship`) — inside the work folder,
323
- never committed. A closing order that exits ≠ 0 → print its stderr in the
324
- stop header and end; **never try another closing order** in its place, and never retry a question
325
- as a different one.
323
+ never committed. A closing order that exits ≠ 0 closed nothing — the orchestrator records an
324
+ order only when it accepts it. When its stderr names something this run wrote — an argument, a
325
+ file, an uncommitted tree — fix that and send **the same order once more**; a second refusal, or
326
+ one about something the run cannot change → print its stderr in the stop header and end.
327
+ **Never try another closing order** in its place, and never retry a question as a different one.
328
+ - **`--part N --of M` belongs to the publish that opens an MR/PR** of a split work
329
+ (`/flow:feat:ship`). A publish that updates one already open — `/flow:work:green`,
330
+ `/flow:work:respond` — carries neither: the MR/PR is already that part, and an orchestrator may
331
+ refuse a part declared on a run launched for `pipeline`, `conflict` or `review`.
326
332
  - **Free text travels in files, never on the command line.** Question, options (one per line, the
327
333
  recommended one first), title, body, reason and summary are written into the work folder
328
334
  (`ask-question.md`, `ask-options.md`, `publish-title.md`, `publish-body.md`, `blocked-reason.md`,
@@ -400,7 +406,7 @@ person asking for changes, a ticket that already has code — is `/flow:work:run
400
406
  | Writing a DB schema change, index or migration — in any phase, a review's own fixes included — or applying one (`validate`) | question `migration`, before the first line of it is written or run — except in `respond` and `green`, where it is blocked: a schema change agreed after the MR/PR exists goes back through `build`. Writing one whose every object `approved-schema.md` lists is not asked (§2, a schema approved with the study) |
401
407
  | `review` with blockers or high-severity findings | question `high_findings` |
402
408
  | `validate` with a criterion `unproven` | blocked — the phase does not advance and does not chain |
403
- | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **one repair round per MR/PR**: this MR/PR's plan (`05-implementation.md` / `04-fix.md`) has no `### Red suite at validate (unattended)` heading yet → write it under the plan with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"<n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow:feat:build` (`/flow:bug:fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. The heading already there → it is the same check failing a second time: blocked, naming the tests still red |
409
+ | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **repair rounds while they make progress, at most three per MR/PR**: each round is a heading under this MR/PR's plan (`05-implementation.md` / `04-fix.md`), `### Red suite at validate (unattended), round <k>: <n> red`. No such heading yet, or the last one's `<n>` above the count red now and `<k>` below 3 → write the next heading with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"round <k>, <n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow:feat:build` (`/flow:bug:fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. A round that did not lower the count, or a third round still red → blocked, naming the tests still red and the count each round left |
404
410
  | A product decision (§7 `decision`) | question `decision` |
405
411
  | Clarifying questions on the ticket (`start`) | question `clarify` — after the branch and the work folder exist, with the questions also written to `01-context.md` |
406
412
  | An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
@@ -93,7 +93,7 @@ this is the same gate as a red test.
93
93
 
94
94
  ## 5. Close
95
95
 
96
- - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise the one repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow:bug:fix`, which chains back here; red a second time → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
96
+ - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise a repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow:bug:fix`, which chains back here; rounds go on while each lowers the red count, three at most, and one that does not, or a third still red → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
97
97
  - Green → `phase = "validate"`, add to `phases_done`; in the same write record `validated_sha` = `git rev-parse HEAD` — the tree the regression test passed on, which `/flow:bug:ship §0` reads. Suggest `/flow:bug:review`.
98
98
  - **Other bugs detected become `followups[]` entries** (flow-core §7) when they clear its bar — a reproducible symptom with someone who suffers it, not «this looks fragile» — per the output template.
99
99
  - **Stage what the validation taught** (`knowledge.stage` set; silence by default): a mutation that stayed green, a disguise the scenario wore, a fixture that could not produce the case — findings about how this codebase is tested, not about this diff. Same rule and evidence line as the review's Close.
@@ -89,8 +89,8 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
89
89
  there → it is a question like any other.
90
90
  Chained from a review's `high_findings` *Fix them* → the findings are unticked steps at the end of
91
91
  this MR/PR's plan: build them in order, then chain into `/flow:feat:review`. Chained from a red
92
- suite at validate (flow-core §2.1) → the same, under the plan's `### Red suite at validate
93
- (unattended)`: one step per failing test, and a test reaches green by fixing the code or by an
92
+ suite at validate (flow-core §2.1) → the same, under the plan's latest `### Red suite at validate
93
+ (unattended), round <k>` heading: one step per failing test, and a test reaches green by fixing the code or by an
94
94
  assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
95
95
  step's test with `quality.test_one` before ticking it.
96
96
 
@@ -228,10 +228,11 @@ Write `.claude/work/<TICKET>/07-validation.md`:
228
228
  it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
229
229
  failing tests on the base, and write each name, its result there and the base sha under "Suite
230
230
  results" in `07-validation.md`. Calling a failure "pre-existing" without that run is not the
231
- exception — it is a red suite. Short of it, the red suite gets its one repair round (the same
232
- row): the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
233
- chains into `/flow:feat:build`, then review and this phase again. Red a second time → `blocked`,
234
- naming the tests still red.
231
+ exception — it is a red suite. Short of it, the red suite gets a repair round (the same row):
232
+ the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
233
+ chains into `/flow:feat:build`, then review and this phase again. Rounds go on while each lowers
234
+ the red count, three at most; one that does not, or a third still red → `blocked`, naming the
235
+ tests still red.
235
236
 
236
237
  In `guided`/`auto` this is, together with the brief in `/flow:feat:build §2`, **the only stop of the whole MR/PR** — everything between them ran without a person. It carries the **full stop header** and the body answers, in this order: what is green, what this MR/PR proves and what it does not, and what shipping it takes. Assume the user has read none of the build and review.
237
238
  """
@@ -76,8 +76,8 @@ others resolve this way:
76
76
  - **§7 before the closing order** — logged as written; offers are `Later`; re-posting the
77
77
  performance comment is not done — a changed number goes into `publish-body.md`.
78
78
  - **§6** — no push, no rerun, no watch. The closing order, after the WIP commit (flow-core §2.1): `publish` with the
79
- work's `publish-title.md` / `publish-body.md` and the `--part/--of` `/flow:feat:ship` passed; the
80
- orchestrator pushes and the pipeline runs again.
79
+ work's `publish-title.md` / `publish-body.md` and no `--part/--of` — the MR/PR is already open
80
+ (flow-core §2.1); the orchestrator pushes and the pipeline runs again.
81
81
 
82
82
  ## 1. Pre-flight — locate the work and the MR/PR
83
83
 
@@ -96,8 +96,8 @@ back through it, and the hard gates above resolve this way:
96
96
  ≠ 0 is recorded in `08-feedback.md` and the remaining replies still go out.
97
97
  - **The one closing order**, after the WIP commit (flow-core §2.1): code changed this round →
98
98
  `publish` with the work's `publish-title.md` / `publish-body.md` (updated when the round changed
99
- what they say, and naming any thread whose reply failed) and the `--part/--of` `/flow:feat:ship`
100
- passed — the commits the replies name must reach the branch; no code changed and every reply went
99
+ what they say, and naming any thread whose reply failed) and no `--part/--of` — the MR/PR is
100
+ already open (flow-core §2.1) — so the commits the replies name reach the branch; no code changed and every reply went
101
101
  out → `done`, the summary listing the threads answered; no code changed and a reply failed →
102
102
  `blocked`, naming those threads.
103
103
 
@@ -17,7 +17,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
17
17
  carries what is specific to its phase. Read this once per session; a command that says "load
18
18
  `flow-core`" means this file.
19
19
 
20
- **This file belongs to flow `0.97.0`.** Compare it once, at the start of the session, against
20
+ **This file belongs to flow `0.97.2`.** Compare it once, at the start of the session, against
21
21
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
22
22
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
23
23
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -321,9 +321,15 @@ assumed:
321
321
  - **Exactly one closing order per run** — `ask`, `publish`, `blocked` or `done` — and the run ends
322
322
  right after it: no further phase starts. The one write that follows it is its own result in
323
323
  `meta.json` — `publish` marking what it published (`/flow-feat-ship`) — inside the work folder,
324
- never committed. A closing order that exits ≠ 0 → print its stderr in the
325
- stop header and end; **never try another closing order** in its place, and never retry a question
326
- as a different one.
324
+ never committed. A closing order that exits ≠ 0 closed nothing — the orchestrator records an
325
+ order only when it accepts it. When its stderr names something this run wrote — an argument, a
326
+ file, an uncommitted tree — fix that and send **the same order once more**; a second refusal, or
327
+ one about something the run cannot change → print its stderr in the stop header and end.
328
+ **Never try another closing order** in its place, and never retry a question as a different one.
329
+ - **`--part N --of M` belongs to the publish that opens an MR/PR** of a split work
330
+ (`/flow-feat-ship`). A publish that updates one already open — `/flow-work-green`,
331
+ `/flow-work-respond` — carries neither: the MR/PR is already that part, and an orchestrator may
332
+ refuse a part declared on a run launched for `pipeline`, `conflict` or `review`.
327
333
  - **Free text travels in files, never on the command line.** Question, options (one per line, the
328
334
  recommended one first), title, body, reason and summary are written into the work folder
329
335
  (`ask-question.md`, `ask-options.md`, `publish-title.md`, `publish-body.md`, `blocked-reason.md`,
@@ -401,7 +407,7 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
401
407
  | Writing a DB schema change, index or migration — in any phase, a review's own fixes included — or applying one (`validate`) | question `migration`, before the first line of it is written or run — except in `respond` and `green`, where it is blocked: a schema change agreed after the MR/PR exists goes back through `build`. Writing one whose every object `approved-schema.md` lists is not asked (§2, a schema approved with the study) |
402
408
  | `review` with blockers or high-severity findings | question `high_findings` |
403
409
  | `validate` with a criterion `unproven` | blocked — the phase does not advance and does not chain |
404
- | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **one repair round per MR/PR**: this MR/PR's plan (`05-implementation.md` / `04-fix.md`) has no `### Red suite at validate (unattended)` heading yet → write it under the plan with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"<n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow-feat-build` (`/flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. The heading already there → it is the same check failing a second time: blocked, naming the tests still red |
410
+ | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **repair rounds while they make progress, at most three per MR/PR**: each round is a heading under this MR/PR's plan (`05-implementation.md` / `04-fix.md`), `### Red suite at validate (unattended), round <k>: <n> red`. No such heading yet, or the last one's `<n>` above the count red now and `<k>` below 3 → write the next heading with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"round <k>, <n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow-feat-build` (`/flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. A round that did not lower the count, or a third round still red → blocked, naming the tests still red and the count each round left |
405
411
  | A product decision (§7 `decision`) | question `decision` |
406
412
  | Clarifying questions on the ticket (`start`) | question `clarify` — after the branch and the work folder exist, with the questions also written to `01-context.md` |
407
413
  | An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
@@ -97,7 +97,7 @@ this is the same gate as a red test.
97
97
 
98
98
  ## 5. Close
99
99
 
100
- - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise the one repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow-bug-fix`, which chains back here; red a second time → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
100
+ - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise a repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow-bug-fix`, which chains back here; rounds go on while each lowers the red count, three at most, and one that does not, or a third still red → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
101
101
  - Green → `phase = "validate"`, add to `phases_done`; in the same write record `validated_sha` = `git rev-parse HEAD` — the tree the regression test passed on, which `/flow-bug-ship §0` reads. Suggest `/flow-bug-review`.
102
102
  - **Other bugs detected become `followups[]` entries** (flow-core §7) when they clear its bar — a reproducible symptom with someone who suffers it, not «this looks fragile» — per the output template.
103
103
  - **Stage what the validation taught** (`knowledge.stage` set; silence by default): a mutation that stayed green, a disguise the scenario wore, a fixture that could not produce the case — findings about how this codebase is tested, not about this diff. Same rule and evidence line as the review's Close.
@@ -93,8 +93,8 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
93
93
  there → it is a question like any other.
94
94
  Chained from a review's `high_findings` *Fix them* → the findings are unticked steps at the end of
95
95
  this MR/PR's plan: build them in order, then chain into `/flow-feat-review`. Chained from a red
96
- suite at validate (flow-core §2.1) → the same, under the plan's `### Red suite at validate
97
- (unattended)`: one step per failing test, and a test reaches green by fixing the code or by an
96
+ suite at validate (flow-core §2.1) → the same, under the plan's latest `### Red suite at validate
97
+ (unattended), round <k>` heading: one step per failing test, and a test reaches green by fixing the code or by an
98
98
  assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
99
99
  step's test with `quality.test_one` before ticking it.
100
100
 
@@ -232,9 +232,10 @@ Write `.claude/work/<TICKET>/07-validation.md`:
232
232
  it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
233
233
  failing tests on the base, and write each name, its result there and the base sha under "Suite
234
234
  results" in `07-validation.md`. Calling a failure "pre-existing" without that run is not the
235
- exception — it is a red suite. Short of it, the red suite gets its one repair round (the same
236
- row): the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
237
- chains into `/flow-feat-build`, then review and this phase again. Red a second time → `blocked`,
238
- naming the tests still red.
235
+ exception — it is a red suite. Short of it, the red suite gets a repair round (the same row):
236
+ the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
237
+ chains into `/flow-feat-build`, then review and this phase again. Rounds go on while each lowers
238
+ the red count, three at most; one that does not, or a third still red → `blocked`, naming the
239
+ tests still red.
239
240
 
240
241
  In `guided`/`auto` this is, together with the brief in `/flow-feat-build §2`, **the only stop of the whole MR/PR** — everything between them ran without a person. It carries the **full stop header** and the body answers, in this order: what is green, what this MR/PR proves and what it does not, and what shipping it takes. Assume the user has read none of the build and review.
@@ -80,8 +80,8 @@ others resolve this way:
80
80
  - **§7 before the closing order** — logged as written; offers are `Later`; re-posting the
81
81
  performance comment is not done — a changed number goes into `publish-body.md`.
82
82
  - **§6** — no push, no rerun, no watch. The closing order, after the WIP commit (flow-core §2.1): `publish` with the
83
- work's `publish-title.md` / `publish-body.md` and the `--part/--of` `/flow-feat-ship` passed; the
84
- orchestrator pushes and the pipeline runs again.
83
+ work's `publish-title.md` / `publish-body.md` and no `--part/--of` — the MR/PR is already open
84
+ (flow-core §2.1); the orchestrator pushes and the pipeline runs again.
85
85
 
86
86
  ## 1. Pre-flight — locate the work and the MR/PR
87
87
 
@@ -100,8 +100,8 @@ back through it, and the hard gates above resolve this way:
100
100
  ≠ 0 is recorded in `08-feedback.md` and the remaining replies still go out.
101
101
  - **The one closing order**, after the WIP commit (flow-core §2.1): code changed this round →
102
102
  `publish` with the work's `publish-title.md` / `publish-body.md` (updated when the round changed
103
- what they say, and naming any thread whose reply failed) and the `--part/--of` `/flow-feat-ship`
104
- passed — the commits the replies name must reach the branch; no code changed and every reply went
103
+ what they say, and naming any thread whose reply failed) and no `--part/--of` — the MR/PR is
104
+ already open (flow-core §2.1) — so the commits the replies name reach the branch; no code changed and every reply went
105
105
  out → `done`, the summary listing the threads answered; no code changed and a reply failed →
106
106
  `blocked`, naming those threads.
107
107
 
@@ -16,7 +16,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
16
16
  carries what is specific to its phase. Read this once per session; a command that says "load
17
17
  `flow-core`" means this file.
18
18
 
19
- **This file belongs to flow `0.97.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.97.2`.** Compare it once, at the start of the session, against
20
20
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
21
21
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
22
22
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -320,9 +320,15 @@ assumed:
320
320
  - **Exactly one closing order per run** — `ask`, `publish`, `blocked` or `done` — and the run ends
321
321
  right after it: no further phase starts. The one write that follows it is its own result in
322
322
  `meta.json` — `publish` marking what it published (`/flow-feat-ship`) — inside the work folder,
323
- never committed. A closing order that exits ≠ 0 → print its stderr in the
324
- stop header and end; **never try another closing order** in its place, and never retry a question
325
- as a different one.
323
+ never committed. A closing order that exits ≠ 0 closed nothing — the orchestrator records an
324
+ order only when it accepts it. When its stderr names something this run wrote — an argument, a
325
+ file, an uncommitted tree — fix that and send **the same order once more**; a second refusal, or
326
+ one about something the run cannot change → print its stderr in the stop header and end.
327
+ **Never try another closing order** in its place, and never retry a question as a different one.
328
+ - **`--part N --of M` belongs to the publish that opens an MR/PR** of a split work
329
+ (`/flow-feat-ship`). A publish that updates one already open — `/flow-work-green`,
330
+ `/flow-work-respond` — carries neither: the MR/PR is already that part, and an orchestrator may
331
+ refuse a part declared on a run launched for `pipeline`, `conflict` or `review`.
326
332
  - **Free text travels in files, never on the command line.** Question, options (one per line, the
327
333
  recommended one first), title, body, reason and summary are written into the work folder
328
334
  (`ask-question.md`, `ask-options.md`, `publish-title.md`, `publish-body.md`, `blocked-reason.md`,
@@ -400,7 +406,7 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
400
406
  | Writing a DB schema change, index or migration — in any phase, a review's own fixes included — or applying one (`validate`) | question `migration`, before the first line of it is written or run — except in `respond` and `green`, where it is blocked: a schema change agreed after the MR/PR exists goes back through `build`. Writing one whose every object `approved-schema.md` lists is not asked (§2, a schema approved with the study) |
401
407
  | `review` with blockers or high-severity findings | question `high_findings` |
402
408
  | `validate` with a criterion `unproven` | blocked — the phase does not advance and does not chain |
403
- | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **one repair round per MR/PR**: this MR/PR's plan (`05-implementation.md` / `04-fix.md`) has no `### Red suite at validate (unattended)` heading yet → write it under the plan with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"<n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow-feat-build` (`/flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. The heading already there → it is the same check failing a second time: blocked, naming the tests still red |
409
+ | `validate` with a red suite | **One exception, and it is measured, never judged**: every failing test also fails, under the same name, on the base (`git merge-base HEAD <git.default_base>`, run in a detached worktree), none of them lives in a file this diff touches, and none is the test that proves an acceptance criterion → record `{"key":"unattended:validate-red-base","default":"<n> red on HEAD and on base <short sha>: <test names>","phase":"validate"}` and advance; `ship` lists those tests under "Not verified — needs a human". Short of that, **repair rounds while they make progress, at most three per MR/PR**: each round is a heading under this MR/PR's plan (`05-implementation.md` / `04-fix.md`), `### Red suite at validate (unattended), round <k>: <n> red`. No such heading yet, or the last one's `<n>` above the count red now and `<k>` below 3 → write the next heading with one unticked step per failing test (its name and the first line of its failure), each ending *fix the code, or update an assertion whose expected value this MR/PR's design or fix changed — never delete, skip or loosen a test*; record `{"key":"unattended:validate-red-loop","default":"round <k>, <n> red: <test names>","phase":"validate"}`, leave `phase = build` (`fix`) and chain into `/flow-feat-build` (`/flow-bug-fix`) — whose steps then run through the phases that follow it as always, review and validate included. A review of that round treats a test the round deleted, skipped or loosened as a blocker. A round that did not lower the count, or a third round still red → blocked, naming the tests still red and the count each round left |
404
410
  | A product decision (§7 `decision`) | question `decision` |
405
411
  | Clarifying questions on the ticket (`start`) | question `clarify` — after the branch and the work folder exist, with the questions also written to `01-context.md` |
406
412
  | An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
@@ -95,7 +95,7 @@ this is the same gate as a red test.
95
95
 
96
96
  ## 5. Close
97
97
 
98
- - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise the one repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow-bug-fix`, which chains back here; red a second time → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
98
+ - Red test, regressions, **or the original symptom still reproducible in §2.5** → `phase` stays at `fix`; the user iterates. A red gate stops in every mode except `unattended`, where flow-core §2.1 decides: every failing test also red on the base → its exception advances (the reproduction test lives in a file this diff touches, so it never qualifies); otherwise a repair round of that row — the failing tests become unticked steps of `04-fix.md`'s plan, `phase = fix`, chain into `/flow-bug-fix`, which chains back here; rounds go on while each lowers the red count, three at most, and one that does not, or a third still red → `blocked`, naming the tests still red. The original symptom still reproducible in §2.5 is not a failing test: `blocked`, naming it.
99
99
  - Green → `phase = "validate"`, add to `phases_done`; in the same write record `validated_sha` = `git rev-parse HEAD` — the tree the regression test passed on, which `/flow-bug-ship §0` reads. Suggest `/flow-bug-review`.
100
100
  - **Other bugs detected become `followups[]` entries** (flow-core §7) when they clear its bar — a reproducible symptom with someone who suffers it, not «this looks fragile» — per the output template.
101
101
  - **Stage what the validation taught** (`knowledge.stage` set; silence by default): a mutation that stayed green, a disguise the scenario wore, a fixture that could not produce the case — findings about how this codebase is tested, not about this diff. Same rule and evidence line as the review's Close.
@@ -91,8 +91,8 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
91
91
  there → it is a question like any other.
92
92
  Chained from a review's `high_findings` *Fix them* → the findings are unticked steps at the end of
93
93
  this MR/PR's plan: build them in order, then chain into `/flow-feat-review`. Chained from a red
94
- suite at validate (flow-core §2.1) → the same, under the plan's `### Red suite at validate
95
- (unattended)`: one step per failing test, and a test reaches green by fixing the code or by an
94
+ suite at validate (flow-core §2.1) → the same, under the plan's latest `### Red suite at validate
95
+ (unattended), round <k>` heading: one step per failing test, and a test reaches green by fixing the code or by an
96
96
  assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
97
97
  step's test with `quality.test_one` before ticking it.
98
98
 
@@ -230,9 +230,10 @@ Write `.claude/work/<TICKET>/07-validation.md`:
230
230
  it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
231
231
  failing tests on the base, and write each name, its result there and the base sha under "Suite
232
232
  results" in `07-validation.md`. Calling a failure "pre-existing" without that run is not the
233
- exception — it is a red suite. Short of it, the red suite gets its one repair round (the same
234
- row): the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
235
- chains into `/flow-feat-build`, then review and this phase again. Red a second time → `blocked`,
236
- naming the tests still red.
233
+ exception — it is a red suite. Short of it, the red suite gets a repair round (the same row):
234
+ the failing tests become unticked steps of this MR/PR's plan, `phase = build`, and the run
235
+ chains into `/flow-feat-build`, then review and this phase again. Rounds go on while each lowers
236
+ the red count, three at most; one that does not, or a third still red → `blocked`, naming the
237
+ tests still red.
237
238
 
238
239
  In `guided`/`auto` this is, together with the brief in `/flow-feat-build §2`, **the only stop of the whole MR/PR** — everything between them ran without a person. It carries the **full stop header** and the body answers, in this order: what is green, what this MR/PR proves and what it does not, and what shipping it takes. Assume the user has read none of the build and review.
@@ -78,8 +78,8 @@ others resolve this way:
78
78
  - **§7 before the closing order** — logged as written; offers are `Later`; re-posting the
79
79
  performance comment is not done — a changed number goes into `publish-body.md`.
80
80
  - **§6** — no push, no rerun, no watch. The closing order, after the WIP commit (flow-core §2.1): `publish` with the
81
- work's `publish-title.md` / `publish-body.md` and the `--part/--of` `/flow-feat-ship` passed; the
82
- orchestrator pushes and the pipeline runs again.
81
+ work's `publish-title.md` / `publish-body.md` and no `--part/--of` — the MR/PR is already open
82
+ (flow-core §2.1); the orchestrator pushes and the pipeline runs again.
83
83
 
84
84
  ## 1. Pre-flight — locate the work and the MR/PR
85
85
 
@@ -98,8 +98,8 @@ back through it, and the hard gates above resolve this way:
98
98
  ≠ 0 is recorded in `08-feedback.md` and the remaining replies still go out.
99
99
  - **The one closing order**, after the WIP commit (flow-core §2.1): code changed this round →
100
100
  `publish` with the work's `publish-title.md` / `publish-body.md` (updated when the round changed
101
- what they say, and naming any thread whose reply failed) and the `--part/--of` `/flow-feat-ship`
102
- passed — the commits the replies name must reach the branch; no code changed and every reply went
101
+ what they say, and naming any thread whose reply failed) and no `--part/--of` — the MR/PR is
102
+ already open (flow-core §2.1) — so the commits the replies name reach the branch; no code changed and every reply went
103
103
  out → `done`, the summary listing the threads answered; no code changed and a reply failed →
104
104
  `blocked`, naming those threads.
105
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-workflows",
3
- "version": "0.97.0",
3
+ "version": "0.97.2",
4
4
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  "name": "flow",
4
4
  "displayName": "Flow — guided dev workflows",
5
5
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
6
- "version": "0.97.0",
6
+ "version": "0.97.2",
7
7
  "author": {
8
8
  "name": "Alberto Vioque",
9
9
  "email": "mashware@gmail.com"
@@ -5,6 +5,32 @@ plugin and is what `/flow:news` reads to show you what changed since your previo
5
5
 
6
6
  The canonical, richest notes live in the [GitHub Releases](https://github.com/mashware/flow-workflows/releases).
7
7
 
8
+ ## v0.97.2 — An update to an open MR/PR no longer declares a part · 2026-10-20
9
+
10
+ **In short**
11
+ - **Updating an MR/PR that is already open publishes without `--part/--of`.** `/flow:work:green`
12
+ and `/flow:work:respond` used to repeat the part `ship` declared; an orchestrator may refuse a
13
+ part on a run launched for a pipeline, a conflict or a review.
14
+ - **A refused closing order can be corrected once.** An order that exits ≠ 0 closed nothing: when
15
+ its error names something the run wrote — an argument, a file, an uncommitted tree — the run
16
+ fixes it and sends the same order again. A second refusal still ends the run.
17
+
18
+ A conflict run merged the base, got its suite green and then sent `publish --part 1 --of 2`; the
19
+ orchestrator refused the part, and the rule against a second closing order left the run nothing
20
+ to do but exit — the work was done and never handed over.
21
+
22
+ ## v0.97.1 — Repair rounds go on while the red count drops · 2026-10-20
23
+
24
+ **In short**
25
+ - **An unattended run keeps repairing a red suite while it makes progress.** Each round must leave
26
+ fewer tests red than the one before; three rounds at most per MR/PR.
27
+ - **It blocks as soon as a round does not lower the count**, or after a third round still red,
28
+ naming the tests left and the count each round left.
29
+
30
+ The first run under v0.97.0 took 11 red tests down to 1 in its single round, then blocked on a
31
+ fixture the round's own fix had exposed. One round was too tight for a run that was converging;
32
+ the count is what tells converging from going in circles.
33
+
8
34
  ## v0.97.0 — An unattended run fixes a red suite once before it blocks · 2026-10-20
9
35
 
10
36
  **In short**