flow-workflows 0.96.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 +3 -2
- package/adapters/codex/skills/flow-bug-fix/SKILL.md +2 -1
- package/adapters/codex/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-build/SKILL.md +6 -1
- package/adapters/codex/skills/flow-feat-validate/SKILL.md +9 -5
- package/adapters/gemini/CORE.md +3 -2
- package/adapters/gemini/commands/flow/bug/fix.toml +2 -1
- package/adapters/gemini/commands/flow/bug/validate.toml +1 -1
- package/adapters/gemini/commands/flow/feat/build.toml +6 -1
- package/adapters/gemini/commands/flow/feat/validate.toml +9 -5
- package/adapters/hermes/CORE.md +3 -2
- package/adapters/hermes/skills/flow-bug-fix/SKILL.md +2 -1
- package/adapters/hermes/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-build/SKILL.md +6 -1
- package/adapters/hermes/skills/flow-feat-validate/SKILL.md +9 -5
- package/adapters/opencode/CORE.md +3 -2
- package/adapters/opencode/commands/flow-bug-fix.md +2 -1
- package/adapters/opencode/commands/flow-bug-validate.md +1 -1
- package/adapters/opencode/commands/flow-feat-build.md +6 -1
- package/adapters/opencode/commands/flow-feat-validate.md +9 -5
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +32 -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.
|
|
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
|
|
@@ -400,7 +400,8 @@ person asking for changes, a ticket that already has code — is `$flow-work-run
|
|
|
400
400
|
| Push and MR/PR creation (`ship`) | `publish` — the run commits on its own branch, writes title and body, and hands them over; the orchestrator pushes and opens the draft |
|
|
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
|
-
| `validate` with a
|
|
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, **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
405
|
| A product decision (§7 `decision`) | question `decision` |
|
|
405
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` |
|
|
406
407
|
| An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
|
|
@@ -80,7 +80,7 @@ creates, alters or drops (flow-core §2, a schema approved with the study): then
|
|
|
80
80
|
it there, do not stop. The orchestrator's answer re-enters here
|
|
81
81
|
exactly as `$flow-feat-build §2` says, with `04-fix.md` for `05-implementation.md` and
|
|
82
82
|
`$flow-bug-validate` as the phase it chains into after a review's *Fix them* (`$flow-bug-review`
|
|
83
|
-
for XS, which has no validate).
|
|
83
|
+
for XS, which has no validate), and after a red suite at validate (flow-core §2.1).
|
|
84
84
|
|
|
85
85
|
**The brief travels inside the question** (flow-core §3) — read in the prompt being answered, not by opening `04-fix.md` — and **nothing runs between the brief and the question**: a tool call after it is what lets a terminal fold it away. Options:
|
|
86
86
|
- **Yes, go ahead** → apply the fix.
|
|
@@ -215,6 +215,7 @@ A **product decision** the fix turns out to need is neither of these — not sco
|
|
|
215
215
|
- `quality.style_fix`
|
|
216
216
|
- `quality.static_analysis`
|
|
217
217
|
- The test that covers the fix: `quality.test_one` (if none exists, `$flow-bug-validate` adds it).
|
|
218
|
+
- The existing tests of the modules or files the fix changed, with `quality.test_one` — the cheap catch before `$flow-bug-validate` runs the full suite. One asserting the behaviour this fix corrects is updated and named in `04-fix.md`; any other failure is a bug in the fix.
|
|
218
219
|
|
|
219
220
|
## 4.1 Is the investigation still valid?
|
|
220
221
|
|
|
@@ -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
|
|
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.
|
|
@@ -92,7 +92,11 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
|
|
|
92
92
|
`meta.json.defaults_used[]` with gate `migration` and phase `review`**: write it, do not stop. Not
|
|
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
|
-
this MR/PR's plan: build them in order, then chain into `$flow-feat-review`.
|
|
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 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
|
+
assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
|
|
99
|
+
step's test with `quality.test_one` before ticking it.
|
|
96
100
|
|
|
97
101
|
**The brief travels inside the question** (flow-core §3): the user reads it in the prompt they are answering, never by opening `05-implementation.md`. Write the file, run whatever you need, and *then* open the gate — **nothing runs between the brief and the question**, because a tool call after it is what lets a terminal fold the brief into one collapsed line, and the gate is answered blind. Options:
|
|
98
102
|
- **Yes, proceed** → start building.
|
|
@@ -389,6 +393,7 @@ As larger pieces are completed:
|
|
|
389
393
|
|
|
390
394
|
- Run `quality.style_fix` from `FLOW.md` to fix style; if empty, auto-discover (Makefile, npm scripts, Gradle, dotnet, Xcode, Flutter…).
|
|
391
395
|
- Run `quality.static_analysis` from `FLOW.md` when a piece is stable; if empty, auto-discover.
|
|
396
|
+
- **Before closing, the tests this diff can break:** the existing tests of the modules, classes or files the diff changed, with `quality.test_one` (a filter per module or file) — not the full suite, which `$flow-feat-validate` runs. A test asserting the old behaviour that the design changes is updated now, and named under "Decisions made during implementation"; one that fails for any other reason is a bug in this build. Leaving them to validate costs a whole round.
|
|
392
397
|
- If tests were added, run them individually with `quality.test_one` from `FLOW.md` (substituting `{FILTER}`); if empty, auto-discover. **A filtered run is judged by how many tests it executed, never by its exit code** — most runners exit `0` when the filter matches nothing (`OK, 0 tests`, `No tests ran`, `no tests to run`, `0 passed`). Read the executed count **and** test names: count `0`, or your new tests missing from the names → **the run did not happen**; treat as failure, fix the filter, run again. No count reported → drop the filter and run the whole test file. In "Relevant commands executed", record the count you saw, not just the command — "green" without a number is not evidence.
|
|
393
398
|
|
|
394
399
|
Do not do code review here — that is `$flow-feat-review`.
|
|
@@ -228,10 +228,14 @@ Write `.claude/work/<TICKET>/07-validation.md`:
|
|
|
228
228
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
229
229
|
- **Autonomy handoff — this one stops in every mode, `auto` included.** `ship` pushes and opens the MR/PR: a hard gate in every mode, so do **not** chain into it. Stop here and propose `$flow-feat-ship` with a single `AskUserQuestion` (recommended option by default), invoking it only when the user confirms. This is the deliberate end of a run in `auto`.
|
|
230
230
|
**In `unattended`** (flow-core §2.1): the phase advanced → chain into `$flow-feat-ship`, which
|
|
231
|
-
hands the MR/PR to the orchestrator with `publish`.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
hands the MR/PR to the orchestrator with `publish`. A criterion `unproven` → `blocked`, naming
|
|
232
|
+
it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
|
|
233
|
+
failing tests on the base, and write each name, its result there and the base sha under "Suite
|
|
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 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.
|
|
236
240
|
|
|
237
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.
|
|
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
|
|
@@ -399,7 +399,8 @@ person asking for changes, a ticket that already has code — is `/flow:work:run
|
|
|
399
399
|
| Push and MR/PR creation (`ship`) | `publish` — the run commits on its own branch, writes title and body, and hands them over; the orchestrator pushes and opens the draft |
|
|
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
|
-
| `validate` with a
|
|
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, **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 |
|
|
403
404
|
| A product decision (§7 `decision`) | question `decision` |
|
|
404
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` |
|
|
405
406
|
| An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
|
|
@@ -76,7 +76,7 @@ creates, alters or drops (flow-core §2, a schema approved with the study): then
|
|
|
76
76
|
it there, do not stop. The orchestrator's answer re-enters here
|
|
77
77
|
exactly as `/flow:feat:build §2` says, with `04-fix.md` for `05-implementation.md` and
|
|
78
78
|
`/flow:bug:validate` as the phase it chains into after a review's *Fix them* (`/flow:bug:review`
|
|
79
|
-
for XS, which has no validate).
|
|
79
|
+
for XS, which has no validate), and after a red suite at validate (flow-core §2.1).
|
|
80
80
|
|
|
81
81
|
**The brief travels inside the question** (flow-core §3) — read in the prompt being answered, not by opening `04-fix.md` — and **nothing runs between the brief and the question**: a tool call after it is what lets a terminal fold it away. Options:
|
|
82
82
|
- **Yes, go ahead** → apply the fix.
|
|
@@ -211,6 +211,7 @@ A **product decision** the fix turns out to need is neither of these — not sco
|
|
|
211
211
|
- `quality.style_fix`
|
|
212
212
|
- `quality.static_analysis`
|
|
213
213
|
- The test that covers the fix: `quality.test_one` (if none exists, `/flow:bug:validate` adds it).
|
|
214
|
+
- The existing tests of the modules or files the fix changed, with `quality.test_one` — the cheap catch before `/flow:bug:validate` runs the full suite. One asserting the behaviour this fix corrects is updated and named in `04-fix.md`; any other failure is a bug in the fix.
|
|
214
215
|
|
|
215
216
|
## 4.1 Is the investigation still valid?
|
|
216
217
|
|
|
@@ -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
|
|
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.
|
|
@@ -88,7 +88,11 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
|
|
|
88
88
|
`meta.json.defaults_used[]` with gate `migration` and phase `review`**: write it, do not stop. Not
|
|
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
|
-
this MR/PR's plan: build them in order, then chain into `/flow:feat:review`.
|
|
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 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
|
+
assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
|
|
95
|
+
step's test with `quality.test_one` before ticking it.
|
|
92
96
|
|
|
93
97
|
**The brief travels inside the question** (flow-core §3): the user reads it in the prompt they are answering, never by opening `05-implementation.md`. Write the file, run whatever you need, and *then* open the gate — **nothing runs between the brief and the question**, because a tool call after it is what lets a terminal fold the brief into one collapsed line, and the gate is answered blind. Options:
|
|
94
98
|
- **Yes, proceed** → start building.
|
|
@@ -385,6 +389,7 @@ As larger pieces are completed:
|
|
|
385
389
|
|
|
386
390
|
- Run `quality.style_fix` from `FLOW.md` to fix style; if empty, auto-discover (Makefile, npm scripts, Gradle, dotnet, Xcode, Flutter…).
|
|
387
391
|
- Run `quality.static_analysis` from `FLOW.md` when a piece is stable; if empty, auto-discover.
|
|
392
|
+
- **Before closing, the tests this diff can break:** the existing tests of the modules, classes or files the diff changed, with `quality.test_one` (a filter per module or file) — not the full suite, which `/flow:feat:validate` runs. A test asserting the old behaviour that the design changes is updated now, and named under "Decisions made during implementation"; one that fails for any other reason is a bug in this build. Leaving them to validate costs a whole round.
|
|
388
393
|
- If tests were added, run them individually with `quality.test_one` from `FLOW.md` (substituting `{FILTER}`); if empty, auto-discover. **A filtered run is judged by how many tests it executed, never by its exit code** — most runners exit `0` when the filter matches nothing (`OK, 0 tests`, `No tests ran`, `no tests to run`, `0 passed`). Read the executed count **and** test names: count `0`, or your new tests missing from the names → **the run did not happen**; treat as failure, fix the filter, run again. No count reported → drop the filter and run the whole test file. In "Relevant commands executed", record the count you saw, not just the command — "green" without a number is not evidence.
|
|
389
394
|
|
|
390
395
|
Do not do code review here — that is `/flow:feat:review`.
|
|
@@ -224,11 +224,15 @@ Write `.claude/work/<TICKET>/07-validation.md`:
|
|
|
224
224
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
225
225
|
- **Autonomy handoff — this one stops in every mode, `auto` included.** `ship` pushes and opens the MR/PR: a hard gate in every mode, so do **not** chain into it. Stop here and propose `/flow:feat:ship` with a single `AskUserQuestion` (recommended option by default), invoking it only when the user confirms. This is the deliberate end of a run in `auto`.
|
|
226
226
|
**In `unattended`** (flow-core §2.1): the phase advanced → chain into `/flow:feat:ship`, which
|
|
227
|
-
hands the MR/PR to the orchestrator with `publish`.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
hands the MR/PR to the orchestrator with `publish`. A criterion `unproven` → `blocked`, naming
|
|
228
|
+
it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
|
|
229
|
+
failing tests on the base, and write each name, its result there and the base sha under "Suite
|
|
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 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.
|
|
232
236
|
|
|
233
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.
|
|
234
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.
|
|
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
|
|
@@ -400,7 +400,8 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
|
|
|
400
400
|
| Push and MR/PR creation (`ship`) | `publish` — the run commits on its own branch, writes title and body, and hands them over; the orchestrator pushes and opens the draft |
|
|
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
|
-
| `validate` with a
|
|
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, **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
405
|
| A product decision (§7 `decision`) | question `decision` |
|
|
405
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` |
|
|
406
407
|
| An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
|
|
@@ -80,7 +80,7 @@ creates, alters or drops (flow-core §2, a schema approved with the study): then
|
|
|
80
80
|
it there, do not stop. The orchestrator's answer re-enters here
|
|
81
81
|
exactly as `/flow-feat-build §2` says, with `04-fix.md` for `05-implementation.md` and
|
|
82
82
|
`/flow-bug-validate` as the phase it chains into after a review's *Fix them* (`/flow-bug-review`
|
|
83
|
-
for XS, which has no validate).
|
|
83
|
+
for XS, which has no validate), and after a red suite at validate (flow-core §2.1).
|
|
84
84
|
|
|
85
85
|
**The brief travels inside the question** (flow-core §3) — read in the prompt being answered, not by opening `04-fix.md` — and **nothing runs between the brief and the question**: a tool call after it is what lets a terminal fold it away. Options:
|
|
86
86
|
- **Yes, go ahead** → apply the fix.
|
|
@@ -215,6 +215,7 @@ A **product decision** the fix turns out to need is neither of these — not sco
|
|
|
215
215
|
- `quality.style_fix`
|
|
216
216
|
- `quality.static_analysis`
|
|
217
217
|
- The test that covers the fix: `quality.test_one` (if none exists, `/flow-bug-validate` adds it).
|
|
218
|
+
- The existing tests of the modules or files the fix changed, with `quality.test_one` — the cheap catch before `/flow-bug-validate` runs the full suite. One asserting the behaviour this fix corrects is updated and named in `04-fix.md`; any other failure is a bug in the fix.
|
|
218
219
|
|
|
219
220
|
## 4.1 Is the investigation still valid?
|
|
220
221
|
|
|
@@ -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
|
|
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.
|
|
@@ -92,7 +92,11 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
|
|
|
92
92
|
`meta.json.defaults_used[]` with gate `migration` and phase `review`**: write it, do not stop. Not
|
|
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
|
-
this MR/PR's plan: build them in order, then chain into `/flow-feat-review`.
|
|
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 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
|
+
assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
|
|
99
|
+
step's test with `quality.test_one` before ticking it.
|
|
96
100
|
|
|
97
101
|
**The brief travels inside the question** (flow-core §3): the user reads it in the prompt they are answering, never by opening `05-implementation.md`. Write the file, run whatever you need, and *then* open the gate — **nothing runs between the brief and the question**, because a tool call after it is what lets a terminal fold the brief into one collapsed line, and the gate is answered blind. Options:
|
|
98
102
|
- **Yes, proceed** → start building.
|
|
@@ -389,6 +393,7 @@ As larger pieces are completed:
|
|
|
389
393
|
|
|
390
394
|
- Run `quality.style_fix` from `FLOW.md` to fix style; if empty, auto-discover (Makefile, npm scripts, Gradle, dotnet, Xcode, Flutter…).
|
|
391
395
|
- Run `quality.static_analysis` from `FLOW.md` when a piece is stable; if empty, auto-discover.
|
|
396
|
+
- **Before closing, the tests this diff can break:** the existing tests of the modules, classes or files the diff changed, with `quality.test_one` (a filter per module or file) — not the full suite, which `/flow-feat-validate` runs. A test asserting the old behaviour that the design changes is updated now, and named under "Decisions made during implementation"; one that fails for any other reason is a bug in this build. Leaving them to validate costs a whole round.
|
|
392
397
|
- If tests were added, run them individually with `quality.test_one` from `FLOW.md` (substituting `{FILTER}`); if empty, auto-discover. **A filtered run is judged by how many tests it executed, never by its exit code** — most runners exit `0` when the filter matches nothing (`OK, 0 tests`, `No tests ran`, `no tests to run`, `0 passed`). Read the executed count **and** test names: count `0`, or your new tests missing from the names → **the run did not happen**; treat as failure, fix the filter, run again. No count reported → drop the filter and run the whole test file. In "Relevant commands executed", record the count you saw, not just the command — "green" without a number is not evidence.
|
|
393
398
|
|
|
394
399
|
Do not do code review here — that is `/flow-feat-review`.
|
|
@@ -228,10 +228,14 @@ Write `.claude/work/<TICKET>/07-validation.md`:
|
|
|
228
228
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
229
229
|
- **Autonomy handoff — this one stops in every mode, `auto` included.** `ship` pushes and opens the MR/PR: a hard gate in every mode, so do **not** chain into it. Stop here and propose `/flow-feat-ship` with a single `AskUserQuestion` (recommended option by default), invoking it only when the user confirms. This is the deliberate end of a run in `auto`.
|
|
230
230
|
**In `unattended`** (flow-core §2.1): the phase advanced → chain into `/flow-feat-ship`, which
|
|
231
|
-
hands the MR/PR to the orchestrator with `publish`.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
hands the MR/PR to the orchestrator with `publish`. A criterion `unproven` → `blocked`, naming
|
|
232
|
+
it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
|
|
233
|
+
failing tests on the base, and write each name, its result there and the base sha under "Suite
|
|
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 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.
|
|
236
240
|
|
|
237
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.
|
|
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
|
|
@@ -399,7 +399,8 @@ person asking for changes, a ticket that already has code — is `/flow-work-run
|
|
|
399
399
|
| Push and MR/PR creation (`ship`) | `publish` — the run commits on its own branch, writes title and body, and hands them over; the orchestrator pushes and opens the draft |
|
|
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
|
-
| `validate` with a
|
|
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, **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 |
|
|
403
404
|
| A product decision (§7 `decision`) | question `decision` |
|
|
404
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` |
|
|
405
406
|
| An unanswered high-severity challenge (`design`, `investigate`) | question `design_challenge` / `investigation_challenge` |
|
|
@@ -78,7 +78,7 @@ creates, alters or drops (flow-core §2, a schema approved with the study): then
|
|
|
78
78
|
it there, do not stop. The orchestrator's answer re-enters here
|
|
79
79
|
exactly as `/flow-feat-build §2` says, with `04-fix.md` for `05-implementation.md` and
|
|
80
80
|
`/flow-bug-validate` as the phase it chains into after a review's *Fix them* (`/flow-bug-review`
|
|
81
|
-
for XS, which has no validate).
|
|
81
|
+
for XS, which has no validate), and after a red suite at validate (flow-core §2.1).
|
|
82
82
|
|
|
83
83
|
**The brief travels inside the question** (flow-core §3) — read in the prompt being answered, not by opening `04-fix.md` — and **nothing runs between the brief and the question**: a tool call after it is what lets a terminal fold it away. Options:
|
|
84
84
|
- **Yes, go ahead** → apply the fix.
|
|
@@ -213,6 +213,7 @@ A **product decision** the fix turns out to need is neither of these — not sco
|
|
|
213
213
|
- `quality.style_fix`
|
|
214
214
|
- `quality.static_analysis`
|
|
215
215
|
- The test that covers the fix: `quality.test_one` (if none exists, `/flow-bug-validate` adds it).
|
|
216
|
+
- The existing tests of the modules or files the fix changed, with `quality.test_one` — the cheap catch before `/flow-bug-validate` runs the full suite. One asserting the behaviour this fix corrects is updated and named in `04-fix.md`; any other failure is a bug in the fix.
|
|
216
217
|
|
|
217
218
|
## 4.1 Is the investigation still valid?
|
|
218
219
|
|
|
@@ -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
|
|
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.
|
|
@@ -90,7 +90,11 @@ by an answer's `id` (a review wrote it) is that migration already answered **whe
|
|
|
90
90
|
`meta.json.defaults_used[]` with gate `migration` and phase `review`**: write it, do not stop. Not
|
|
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
|
-
this MR/PR's plan: build them in order, then chain into `/flow-feat-review`.
|
|
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 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
|
+
assertion this MR/PR's design changed — never by deleting, skipping or loosening it. Run each
|
|
97
|
+
step's test with `quality.test_one` before ticking it.
|
|
94
98
|
|
|
95
99
|
**The brief travels inside the question** (flow-core §3): the user reads it in the prompt they are answering, never by opening `05-implementation.md`. Write the file, run whatever you need, and *then* open the gate — **nothing runs between the brief and the question**, because a tool call after it is what lets a terminal fold the brief into one collapsed line, and the gate is answered blind. Options:
|
|
96
100
|
- **Yes, proceed** → start building.
|
|
@@ -387,6 +391,7 @@ As larger pieces are completed:
|
|
|
387
391
|
|
|
388
392
|
- Run `quality.style_fix` from `FLOW.md` to fix style; if empty, auto-discover (Makefile, npm scripts, Gradle, dotnet, Xcode, Flutter…).
|
|
389
393
|
- Run `quality.static_analysis` from `FLOW.md` when a piece is stable; if empty, auto-discover.
|
|
394
|
+
- **Before closing, the tests this diff can break:** the existing tests of the modules, classes or files the diff changed, with `quality.test_one` (a filter per module or file) — not the full suite, which `/flow-feat-validate` runs. A test asserting the old behaviour that the design changes is updated now, and named under "Decisions made during implementation"; one that fails for any other reason is a bug in this build. Leaving them to validate costs a whole round.
|
|
390
395
|
- If tests were added, run them individually with `quality.test_one` from `FLOW.md` (substituting `{FILTER}`); if empty, auto-discover. **A filtered run is judged by how many tests it executed, never by its exit code** — most runners exit `0` when the filter matches nothing (`OK, 0 tests`, `No tests ran`, `no tests to run`, `0 passed`). Read the executed count **and** test names: count `0`, or your new tests missing from the names → **the run did not happen**; treat as failure, fix the filter, run again. No count reported → drop the filter and run the whole test file. In "Relevant commands executed", record the count you saw, not just the command — "green" without a number is not evidence.
|
|
391
396
|
|
|
392
397
|
Do not do code review here — that is `/flow-feat-review`.
|
|
@@ -226,10 +226,14 @@ Write `.claude/work/<TICKET>/07-validation.md`:
|
|
|
226
226
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
227
227
|
- **Autonomy handoff — this one stops in every mode, `auto` included.** `ship` pushes and opens the MR/PR: a hard gate in every mode, so do **not** chain into it. Stop here and propose `/flow-feat-ship` with a single `AskUserQuestion` (recommended option by default), invoking it only when the user confirms. This is the deliberate end of a run in `auto`.
|
|
228
228
|
**In `unattended`** (flow-core §2.1): the phase advanced → chain into `/flow-feat-ship`, which
|
|
229
|
-
hands the MR/PR to the orchestrator with `publish`.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
229
|
+
hands the MR/PR to the orchestrator with `publish`. A criterion `unproven` → `blocked`, naming
|
|
230
|
+
it; never chain. A red suite advances only under the base exception of flow-core §2.1: run the
|
|
231
|
+
failing tests on the base, and write each name, its result there and the base sha under "Suite
|
|
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 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.
|
|
234
238
|
|
|
235
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.
|
|
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.
|
|
6
|
+
"version": "0.97.1",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alberto Vioque",
|
|
9
9
|
"email": "mashware@gmail.com"
|
|
@@ -5,6 +5,38 @@ 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
|
+
|
|
20
|
+
## v0.97.0 — An unattended run fixes a red suite once before it blocks · 2026-10-20
|
|
21
|
+
|
|
22
|
+
**In short**
|
|
23
|
+
- **A red suite at validate gets one repair round.** In an unattended run, each failing test
|
|
24
|
+
becomes a step of the MR/PR's plan and the run goes back to build — or fix, for a bug — then
|
|
25
|
+
through review and validate again, as a review's *Fix them* already did.
|
|
26
|
+
- **Only one.** Red a second time, the run blocks and names the tests still red.
|
|
27
|
+
- **Green is never bought.** A test reaches green by fixing the code, or by updating an assertion
|
|
28
|
+
this MR/PR's own design changed. A test deleted, skipped or loosened in that round is a review
|
|
29
|
+
blocker.
|
|
30
|
+
- **The base exception comes first.** Failures the base also has still advance, as before.
|
|
31
|
+
- **Build and fix now run the existing tests of what they changed** before closing. A test still
|
|
32
|
+
asserting the old format turns red there, not a whole round later in validate.
|
|
33
|
+
|
|
34
|
+
An unattended run stopped with 2,683 tests green and 11 red, all of them work the agent could do:
|
|
35
|
+
an invalid name that answered 500, tests asserting the previous format, incomplete fixtures. The
|
|
36
|
+
validate row blocked on any red suite, while the same table blocked only on "a red suite it cannot
|
|
37
|
+
fix". Build ran only the tests it wrote, so fallout in other test files surfaced only at validate.
|
|
38
|
+
An unproven acceptance criterion still blocks. Closes #208.
|
|
39
|
+
|
|
8
40
|
## v0.96.0 — A schema approved with the study is not asked again at build · 2026-10-20
|
|
9
41
|
|
|
10
42
|
**In short**
|