flow-workflows 0.97.0 → 0.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/codex/CORE.md +2 -2
- package/adapters/codex/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-build/SKILL.md +2 -2
- package/adapters/codex/skills/flow-feat-validate/SKILL.md +5 -4
- package/adapters/gemini/CORE.md +2 -2
- package/adapters/gemini/commands/flow/bug/validate.toml +1 -1
- package/adapters/gemini/commands/flow/feat/build.toml +2 -2
- package/adapters/gemini/commands/flow/feat/validate.toml +5 -4
- package/adapters/hermes/CORE.md +2 -2
- package/adapters/hermes/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-build/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-feat-validate/SKILL.md +5 -4
- package/adapters/opencode/CORE.md +2 -2
- package/adapters/opencode/commands/flow-bug-validate.md +1 -1
- package/adapters/opencode/commands/flow-feat-build.md +2 -2
- package/adapters/opencode/commands/flow-feat-validate.md +5 -4
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +12 -0
package/adapters/codex/CORE.md
CHANGED
|
@@ -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.
|
|
20
|
+
**This file belongs to flow `0.97.1`.** 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
|
|
@@ -401,7 +401,7 @@ person asking for changes, a ticket that already has code — is `$flow-work-run
|
|
|
401
401
|
| 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
402
|
| `review` with blockers or high-severity findings | question `high_findings` |
|
|
403
403
|
| `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, **
|
|
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, **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
405
|
| A product decision (§7 `decision`) | question `decision` |
|
|
406
406
|
| 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
407
|
| 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
|
|
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)
|
|
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
|
|
236
|
-
|
|
237
|
-
chains into `$flow-feat-build`, then review and this phase again.
|
|
238
|
-
|
|
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.
|
package/adapters/gemini/CORE.md
CHANGED
|
@@ -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.
|
|
19
|
+
**This file belongs to flow `0.97.1`.** 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
|
|
@@ -400,7 +400,7 @@ person asking for changes, a ticket that already has code — is `/flow:work:run
|
|
|
400
400
|
| 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
401
|
| `review` with blockers or high-severity findings | question `high_findings` |
|
|
402
402
|
| `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, **
|
|
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, **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
404
|
| A product decision (§7 `decision`) | question `decision` |
|
|
405
405
|
| 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
406
|
| 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
|
|
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)
|
|
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
|
|
232
|
-
|
|
233
|
-
chains into `/flow:feat:build`, then review and this phase again.
|
|
234
|
-
|
|
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
|
"""
|
package/adapters/hermes/CORE.md
CHANGED
|
@@ -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.
|
|
20
|
+
**This file belongs to flow `0.97.1`.** 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
|
|
@@ -401,7 +401,7 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
|
|
|
401
401
|
| 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
402
|
| `review` with blockers or high-severity findings | question `high_findings` |
|
|
403
403
|
| `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, **
|
|
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, **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
405
|
| A product decision (§7 `decision`) | question `decision` |
|
|
406
406
|
| 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
407
|
| 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
|
|
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)
|
|
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
|
|
236
|
-
|
|
237
|
-
chains into `/flow-feat-build`, then review and this phase again.
|
|
238
|
-
|
|
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.
|
|
@@ -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.
|
|
19
|
+
**This file belongs to flow `0.97.1`.** 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
|
|
@@ -400,7 +400,7 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
|
|
|
400
400
|
| 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
401
|
| `review` with blockers or high-severity findings | question `high_findings` |
|
|
402
402
|
| `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, **
|
|
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, **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
404
|
| A product decision (§7 `decision`) | question `decision` |
|
|
405
405
|
| 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
406
|
| 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
|
|
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)
|
|
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
|
|
234
|
-
|
|
235
|
-
chains into `/flow-feat-build`, then review and this phase again.
|
|
236
|
-
|
|
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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-workflows",
|
|
3
|
-
"version": "0.97.
|
|
3
|
+
"version": "0.97.1",
|
|
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.
|
|
6
|
+
"version": "0.97.1",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alberto Vioque",
|
|
9
9
|
"email": "mashware@gmail.com"
|
|
@@ -5,6 +5,18 @@ 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.1 — Repair rounds go on while the red count drops · 2026-10-20
|
|
9
|
+
|
|
10
|
+
**In short**
|
|
11
|
+
- **An unattended run keeps repairing a red suite while it makes progress.** Each round must leave
|
|
12
|
+
fewer tests red than the one before; three rounds at most per MR/PR.
|
|
13
|
+
- **It blocks as soon as a round does not lower the count**, or after a third round still red,
|
|
14
|
+
naming the tests left and the count each round left.
|
|
15
|
+
|
|
16
|
+
The first run under v0.97.0 took 11 red tests down to 1 in its single round, then blocked on a
|
|
17
|
+
fixture the round's own fix had exposed. One round was too tight for a run that was converging;
|
|
18
|
+
the count is what tells converging from going in circles.
|
|
19
|
+
|
|
8
20
|
## v0.97.0 — An unattended run fixes a red suite once before it blocks · 2026-10-20
|
|
9
21
|
|
|
10
22
|
**In short**
|