flow-workflows 0.98.0 → 0.99.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/codex/CORE.md +43 -1
- package/adapters/codex/skills/flow-doctor/SKILL.md +4 -2
- package/adapters/codex/skills/flow-feat-ship/SKILL.md +4 -1
- package/adapters/gemini/CORE.md +43 -1
- package/adapters/gemini/commands/flow/doctor.toml +4 -2
- package/adapters/gemini/commands/flow/feat/ship.toml +4 -1
- package/adapters/hermes/CORE.md +43 -1
- package/adapters/hermes/skills/flow-doctor/SKILL.md +4 -2
- package/adapters/hermes/skills/flow-feat-ship/SKILL.md +4 -1
- package/adapters/opencode/CORE.md +43 -1
- package/adapters/opencode/commands/flow-doctor.md +4 -2
- package/adapters/opencode/commands/flow-feat-ship.md +4 -1
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +19 -0
- package/plugins/flow/examples/FLOW.template.md +5 -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.99.0`.** 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
|
|
@@ -435,6 +435,8 @@ conservative reading, never a guess dressed as a default.
|
|
|
435
435
|
|
|
436
436
|
**A question stop**, in this order: the WIP commit above → the question and options files →
|
|
437
437
|
`meta.json.pending` (its `id` hashes the question file, so the file comes first) → `ask` → end.
|
|
438
|
+
With `autonomy.after_study: recommended` and an approved study, the recommended answer below may
|
|
439
|
+
take the question in its place.
|
|
438
440
|
|
|
439
441
|
```json
|
|
440
442
|
"pending": {"id": "168-unattended-autonomy-mode:build:migration:3f2a9c1:8d41e07",
|
|
@@ -516,6 +518,46 @@ by writing it and ending the run `blocked`, its reason naming what a person must
|
|
|
516
518
|
cannot redesign on its own. A gate this table does not name has no answer path — it stays a
|
|
517
519
|
question for a person.
|
|
518
520
|
|
|
521
|
+
**The recommended answer, after an approved study** — `autonomy.after_study: recommended`, read
|
|
522
|
+
only in `unattended` (empty or `ask` → every question stops as above). It applies once the work
|
|
523
|
+
holds a study a person approved: `done-summary.md` in the work folder (a study run, approved with
|
|
524
|
+
`why = start`) or `meta.json.handoff` true (a study handed off from elsewhere). Then a question
|
|
525
|
+
stop in `build`, `fix`, `review`, `validate` or `ship` is not sent, and the run answers it with its
|
|
526
|
+
own recommended option, in the same turn:
|
|
527
|
+
|
|
528
|
+
1. Write the question and options files as the stop would, and compute its `id` the same way.
|
|
529
|
+
2. Append one entry to `auto-answers.md` in the work folder — whoever reads it later has not seen
|
|
530
|
+
this session:
|
|
531
|
+
|
|
532
|
+
```markdown
|
|
533
|
+
### <gate> · <phase> · MR/PR <n>
|
|
534
|
+
<the question file, whole>
|
|
535
|
+
|
|
536
|
+
- [x] <the recommended option> — taken without asking
|
|
537
|
+
- [ ] <each other option, in its order>
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
`MR/PR <n>` is this MR/PR's `mrs[]` entry, left out for a work with no `mrs`.
|
|
541
|
+
3. Apply that option as an orchestrator's answer is applied (above): written where the re-entry
|
|
542
|
+
table says, with every effect its row names — *Fix them* writes the plan steps and chains into
|
|
543
|
+
`build` / `fix` — and `{ "key": "unattended:answer:<gate>", "default": "<option>", "id": "<id>",
|
|
544
|
+
"phase": "<phase>", "head": "<head>", "mr": <n>, "source": "recommended" }` in
|
|
545
|
+
`meta.json.defaults_used[]`, so "Which site takes it" reads it as it reads any answer.
|
|
546
|
+
4. `pending` stays `null`: no `ask`, no end of the run. The phase goes on from that site.
|
|
547
|
+
|
|
548
|
+
Still a question stop, as above:
|
|
549
|
+
|
|
550
|
+
- **No recommended option** — a question with no options, or a `decision` whose options came
|
|
551
|
+
without one. Free text is never written on a person's behalf.
|
|
552
|
+
- **A third `high_findings` on the same MR/PR** — two `source: "recommended"` answers to that gate
|
|
553
|
+
with this `mr` already in `defaults_used[]`: two rounds of fixes that left high findings behind
|
|
554
|
+
are for a person to judge.
|
|
555
|
+
- **Outside those five phases** — the study phases, and `respond` and `green`, ask or block as
|
|
556
|
+
they always do: a review round answers a reviewer, and the ticket's owner decides that one.
|
|
557
|
+
|
|
558
|
+
`ship` puts this MR/PR's entries in the body (its "In every mode" paragraph), so the person who
|
|
559
|
+
reads the draft sees each question, its options and the one taken, and asks for a change there.
|
|
560
|
+
|
|
519
561
|
## 3. Reporting — how every stop reads
|
|
520
562
|
|
|
521
563
|
**A stop is where you hand the screen back**: a question, a hard gate, the end of the flow.
|
|
@@ -193,8 +193,10 @@ base branch resolvable — is §2 below; flag the key here, check the world ther
|
|
|
193
193
|
resolves on `PATH` (`command -v`) — **empty → flag it as an error**: no phase runs in
|
|
194
194
|
`unattended` without it. Say which file set the mode: every session that reads that file — a
|
|
195
195
|
person's included, when they share the checkout and the harness — stops asking too, so it belongs
|
|
196
|
-
in a FLOW file only the orchestrator's environment has. `
|
|
197
|
-
→
|
|
196
|
+
in a FLOW file only the orchestrator's environment has. Echo `autonomy.after_study` (empty =
|
|
197
|
+
`ask`): `recommended` → once a study is approved, the run answers its own questions with the
|
|
198
|
+
recommended option and lists them in the draft MR/PR (flow-core §2.1); any other value → flag,
|
|
199
|
+
`ask` assumed. `orchestrator_cmd` or `after_study` set with any other mode → note it is ignored.
|
|
198
200
|
|
|
199
201
|
## 2. Checks
|
|
200
202
|
|
|
@@ -68,7 +68,10 @@ place it would ask:
|
|
|
68
68
|
because they also fail on the base (`unattended:validate-red-base`): each name, and the base sha
|
|
69
69
|
where it failed too — and the review findings an orchestrator's answer accepted unfixed
|
|
70
70
|
(`06-review.md` "Answered (unattended)"), one line each. The §3 preview shows that section like
|
|
71
|
-
any other, and the person reading it is the check the run could not do.
|
|
71
|
+
any other, and the person reading it is the check the run could not do. Entries of
|
|
72
|
+
`auto-answers.md` for this MR/PR (`MR/PR <n>` in their heading, or all of them for a work with no
|
|
73
|
+
`mrs`) go into the body verbatim under `## Decided without asking` — each question, its options,
|
|
74
|
+
the one taken checked (flow-core §2.1, the recommended answer).
|
|
72
75
|
|
|
73
76
|
## 1. Pre-flight
|
|
74
77
|
|
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.99.0`.** 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
|
|
@@ -434,6 +434,8 @@ conservative reading, never a guess dressed as a default.
|
|
|
434
434
|
|
|
435
435
|
**A question stop**, in this order: the WIP commit above → the question and options files →
|
|
436
436
|
`meta.json.pending` (its `id` hashes the question file, so the file comes first) → `ask` → end.
|
|
437
|
+
With `autonomy.after_study: recommended` and an approved study, the recommended answer below may
|
|
438
|
+
take the question in its place.
|
|
437
439
|
|
|
438
440
|
```json
|
|
439
441
|
"pending": {"id": "168-unattended-autonomy-mode:build:migration:3f2a9c1:8d41e07",
|
|
@@ -515,6 +517,46 @@ by writing it and ending the run `blocked`, its reason naming what a person must
|
|
|
515
517
|
cannot redesign on its own. A gate this table does not name has no answer path — it stays a
|
|
516
518
|
question for a person.
|
|
517
519
|
|
|
520
|
+
**The recommended answer, after an approved study** — `autonomy.after_study: recommended`, read
|
|
521
|
+
only in `unattended` (empty or `ask` → every question stops as above). It applies once the work
|
|
522
|
+
holds a study a person approved: `done-summary.md` in the work folder (a study run, approved with
|
|
523
|
+
`why = start`) or `meta.json.handoff` true (a study handed off from elsewhere). Then a question
|
|
524
|
+
stop in `build`, `fix`, `review`, `validate` or `ship` is not sent, and the run answers it with its
|
|
525
|
+
own recommended option, in the same turn:
|
|
526
|
+
|
|
527
|
+
1. Write the question and options files as the stop would, and compute its `id` the same way.
|
|
528
|
+
2. Append one entry to `auto-answers.md` in the work folder — whoever reads it later has not seen
|
|
529
|
+
this session:
|
|
530
|
+
|
|
531
|
+
```markdown
|
|
532
|
+
### <gate> · <phase> · MR/PR <n>
|
|
533
|
+
<the question file, whole>
|
|
534
|
+
|
|
535
|
+
- [x] <the recommended option> — taken without asking
|
|
536
|
+
- [ ] <each other option, in its order>
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
`MR/PR <n>` is this MR/PR's `mrs[]` entry, left out for a work with no `mrs`.
|
|
540
|
+
3. Apply that option as an orchestrator's answer is applied (above): written where the re-entry
|
|
541
|
+
table says, with every effect its row names — *Fix them* writes the plan steps and chains into
|
|
542
|
+
`build` / `fix` — and `{ "key": "unattended:answer:<gate>", "default": "<option>", "id": "<id>",
|
|
543
|
+
"phase": "<phase>", "head": "<head>", "mr": <n>, "source": "recommended" }` in
|
|
544
|
+
`meta.json.defaults_used[]`, so "Which site takes it" reads it as it reads any answer.
|
|
545
|
+
4. `pending` stays `null`: no `ask`, no end of the run. The phase goes on from that site.
|
|
546
|
+
|
|
547
|
+
Still a question stop, as above:
|
|
548
|
+
|
|
549
|
+
- **No recommended option** — a question with no options, or a `decision` whose options came
|
|
550
|
+
without one. Free text is never written on a person's behalf.
|
|
551
|
+
- **A third `high_findings` on the same MR/PR** — two `source: "recommended"` answers to that gate
|
|
552
|
+
with this `mr` already in `defaults_used[]`: two rounds of fixes that left high findings behind
|
|
553
|
+
are for a person to judge.
|
|
554
|
+
- **Outside those five phases** — the study phases, and `respond` and `green`, ask or block as
|
|
555
|
+
they always do: a review round answers a reviewer, and the ticket's owner decides that one.
|
|
556
|
+
|
|
557
|
+
`ship` puts this MR/PR's entries in the body (its "In every mode" paragraph), so the person who
|
|
558
|
+
reads the draft sees each question, its options and the one taken, and asks for a change there.
|
|
559
|
+
|
|
518
560
|
## 3. Reporting — how every stop reads
|
|
519
561
|
|
|
520
562
|
**A stop is where you hand the screen back**: a question, a hard gate, the end of the flow.
|
|
@@ -189,8 +189,10 @@ base branch resolvable — is §2 below; flag the key here, check the world ther
|
|
|
189
189
|
resolves on `PATH` (`command -v`) — **empty → flag it as an error**: no phase runs in
|
|
190
190
|
`unattended` without it. Say which file set the mode: every session that reads that file — a
|
|
191
191
|
person's included, when they share the checkout and the harness — stops asking too, so it belongs
|
|
192
|
-
in a FLOW file only the orchestrator's environment has. `
|
|
193
|
-
→
|
|
192
|
+
in a FLOW file only the orchestrator's environment has. Echo `autonomy.after_study` (empty =
|
|
193
|
+
`ask`): `recommended` → once a study is approved, the run answers its own questions with the
|
|
194
|
+
recommended option and lists them in the draft MR/PR (flow-core §2.1); any other value → flag,
|
|
195
|
+
`ask` assumed. `orchestrator_cmd` or `after_study` set with any other mode → note it is ignored.
|
|
194
196
|
|
|
195
197
|
## 2. Checks
|
|
196
198
|
|
|
@@ -64,7 +64,10 @@ place it would ask:
|
|
|
64
64
|
because they also fail on the base (`unattended:validate-red-base`): each name, and the base sha
|
|
65
65
|
where it failed too — and the review findings an orchestrator's answer accepted unfixed
|
|
66
66
|
(`06-review.md` "Answered (unattended)"), one line each. The §3 preview shows that section like
|
|
67
|
-
any other, and the person reading it is the check the run could not do.
|
|
67
|
+
any other, and the person reading it is the check the run could not do. Entries of
|
|
68
|
+
`auto-answers.md` for this MR/PR (`MR/PR <n>` in their heading, or all of them for a work with no
|
|
69
|
+
`mrs`) go into the body verbatim under `## Decided without asking` — each question, its options,
|
|
70
|
+
the one taken checked (flow-core §2.1, the recommended answer).
|
|
68
71
|
|
|
69
72
|
## 1. Pre-flight
|
|
70
73
|
|
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.99.0`.** 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
|
|
@@ -435,6 +435,8 @@ conservative reading, never a guess dressed as a default.
|
|
|
435
435
|
|
|
436
436
|
**A question stop**, in this order: the WIP commit above → the question and options files →
|
|
437
437
|
`meta.json.pending` (its `id` hashes the question file, so the file comes first) → `ask` → end.
|
|
438
|
+
With `autonomy.after_study: recommended` and an approved study, the recommended answer below may
|
|
439
|
+
take the question in its place.
|
|
438
440
|
|
|
439
441
|
```json
|
|
440
442
|
"pending": {"id": "168-unattended-autonomy-mode:build:migration:3f2a9c1:8d41e07",
|
|
@@ -516,6 +518,46 @@ by writing it and ending the run `blocked`, its reason naming what a person must
|
|
|
516
518
|
cannot redesign on its own. A gate this table does not name has no answer path — it stays a
|
|
517
519
|
question for a person.
|
|
518
520
|
|
|
521
|
+
**The recommended answer, after an approved study** — `autonomy.after_study: recommended`, read
|
|
522
|
+
only in `unattended` (empty or `ask` → every question stops as above). It applies once the work
|
|
523
|
+
holds a study a person approved: `done-summary.md` in the work folder (a study run, approved with
|
|
524
|
+
`why = start`) or `meta.json.handoff` true (a study handed off from elsewhere). Then a question
|
|
525
|
+
stop in `build`, `fix`, `review`, `validate` or `ship` is not sent, and the run answers it with its
|
|
526
|
+
own recommended option, in the same turn:
|
|
527
|
+
|
|
528
|
+
1. Write the question and options files as the stop would, and compute its `id` the same way.
|
|
529
|
+
2. Append one entry to `auto-answers.md` in the work folder — whoever reads it later has not seen
|
|
530
|
+
this session:
|
|
531
|
+
|
|
532
|
+
```markdown
|
|
533
|
+
### <gate> · <phase> · MR/PR <n>
|
|
534
|
+
<the question file, whole>
|
|
535
|
+
|
|
536
|
+
- [x] <the recommended option> — taken without asking
|
|
537
|
+
- [ ] <each other option, in its order>
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
`MR/PR <n>` is this MR/PR's `mrs[]` entry, left out for a work with no `mrs`.
|
|
541
|
+
3. Apply that option as an orchestrator's answer is applied (above): written where the re-entry
|
|
542
|
+
table says, with every effect its row names — *Fix them* writes the plan steps and chains into
|
|
543
|
+
`build` / `fix` — and `{ "key": "unattended:answer:<gate>", "default": "<option>", "id": "<id>",
|
|
544
|
+
"phase": "<phase>", "head": "<head>", "mr": <n>, "source": "recommended" }` in
|
|
545
|
+
`meta.json.defaults_used[]`, so "Which site takes it" reads it as it reads any answer.
|
|
546
|
+
4. `pending` stays `null`: no `ask`, no end of the run. The phase goes on from that site.
|
|
547
|
+
|
|
548
|
+
Still a question stop, as above:
|
|
549
|
+
|
|
550
|
+
- **No recommended option** — a question with no options, or a `decision` whose options came
|
|
551
|
+
without one. Free text is never written on a person's behalf.
|
|
552
|
+
- **A third `high_findings` on the same MR/PR** — two `source: "recommended"` answers to that gate
|
|
553
|
+
with this `mr` already in `defaults_used[]`: two rounds of fixes that left high findings behind
|
|
554
|
+
are for a person to judge.
|
|
555
|
+
- **Outside those five phases** — the study phases, and `respond` and `green`, ask or block as
|
|
556
|
+
they always do: a review round answers a reviewer, and the ticket's owner decides that one.
|
|
557
|
+
|
|
558
|
+
`ship` puts this MR/PR's entries in the body (its "In every mode" paragraph), so the person who
|
|
559
|
+
reads the draft sees each question, its options and the one taken, and asks for a change there.
|
|
560
|
+
|
|
519
561
|
## 3. Reporting — how every stop reads
|
|
520
562
|
|
|
521
563
|
**A stop is where you hand the screen back**: a question, a hard gate, the end of the flow.
|
|
@@ -193,8 +193,10 @@ base branch resolvable — is §2 below; flag the key here, check the world ther
|
|
|
193
193
|
resolves on `PATH` (`command -v`) — **empty → flag it as an error**: no phase runs in
|
|
194
194
|
`unattended` without it. Say which file set the mode: every session that reads that file — a
|
|
195
195
|
person's included, when they share the checkout and the harness — stops asking too, so it belongs
|
|
196
|
-
in a FLOW file only the orchestrator's environment has. `
|
|
197
|
-
→
|
|
196
|
+
in a FLOW file only the orchestrator's environment has. Echo `autonomy.after_study` (empty =
|
|
197
|
+
`ask`): `recommended` → once a study is approved, the run answers its own questions with the
|
|
198
|
+
recommended option and lists them in the draft MR/PR (flow-core §2.1); any other value → flag,
|
|
199
|
+
`ask` assumed. `orchestrator_cmd` or `after_study` set with any other mode → note it is ignored.
|
|
198
200
|
|
|
199
201
|
## 2. Checks
|
|
200
202
|
|
|
@@ -68,7 +68,10 @@ place it would ask:
|
|
|
68
68
|
because they also fail on the base (`unattended:validate-red-base`): each name, and the base sha
|
|
69
69
|
where it failed too — and the review findings an orchestrator's answer accepted unfixed
|
|
70
70
|
(`06-review.md` "Answered (unattended)"), one line each. The §3 preview shows that section like
|
|
71
|
-
any other, and the person reading it is the check the run could not do.
|
|
71
|
+
any other, and the person reading it is the check the run could not do. Entries of
|
|
72
|
+
`auto-answers.md` for this MR/PR (`MR/PR <n>` in their heading, or all of them for a work with no
|
|
73
|
+
`mrs`) go into the body verbatim under `## Decided without asking` — each question, its options,
|
|
74
|
+
the one taken checked (flow-core §2.1, the recommended answer).
|
|
72
75
|
|
|
73
76
|
## 1. Pre-flight
|
|
74
77
|
|
|
@@ -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.99.0`.** 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
|
|
@@ -434,6 +434,8 @@ conservative reading, never a guess dressed as a default.
|
|
|
434
434
|
|
|
435
435
|
**A question stop**, in this order: the WIP commit above → the question and options files →
|
|
436
436
|
`meta.json.pending` (its `id` hashes the question file, so the file comes first) → `ask` → end.
|
|
437
|
+
With `autonomy.after_study: recommended` and an approved study, the recommended answer below may
|
|
438
|
+
take the question in its place.
|
|
437
439
|
|
|
438
440
|
```json
|
|
439
441
|
"pending": {"id": "168-unattended-autonomy-mode:build:migration:3f2a9c1:8d41e07",
|
|
@@ -515,6 +517,46 @@ by writing it and ending the run `blocked`, its reason naming what a person must
|
|
|
515
517
|
cannot redesign on its own. A gate this table does not name has no answer path — it stays a
|
|
516
518
|
question for a person.
|
|
517
519
|
|
|
520
|
+
**The recommended answer, after an approved study** — `autonomy.after_study: recommended`, read
|
|
521
|
+
only in `unattended` (empty or `ask` → every question stops as above). It applies once the work
|
|
522
|
+
holds a study a person approved: `done-summary.md` in the work folder (a study run, approved with
|
|
523
|
+
`why = start`) or `meta.json.handoff` true (a study handed off from elsewhere). Then a question
|
|
524
|
+
stop in `build`, `fix`, `review`, `validate` or `ship` is not sent, and the run answers it with its
|
|
525
|
+
own recommended option, in the same turn:
|
|
526
|
+
|
|
527
|
+
1. Write the question and options files as the stop would, and compute its `id` the same way.
|
|
528
|
+
2. Append one entry to `auto-answers.md` in the work folder — whoever reads it later has not seen
|
|
529
|
+
this session:
|
|
530
|
+
|
|
531
|
+
```markdown
|
|
532
|
+
### <gate> · <phase> · MR/PR <n>
|
|
533
|
+
<the question file, whole>
|
|
534
|
+
|
|
535
|
+
- [x] <the recommended option> — taken without asking
|
|
536
|
+
- [ ] <each other option, in its order>
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
`MR/PR <n>` is this MR/PR's `mrs[]` entry, left out for a work with no `mrs`.
|
|
540
|
+
3. Apply that option as an orchestrator's answer is applied (above): written where the re-entry
|
|
541
|
+
table says, with every effect its row names — *Fix them* writes the plan steps and chains into
|
|
542
|
+
`build` / `fix` — and `{ "key": "unattended:answer:<gate>", "default": "<option>", "id": "<id>",
|
|
543
|
+
"phase": "<phase>", "head": "<head>", "mr": <n>, "source": "recommended" }` in
|
|
544
|
+
`meta.json.defaults_used[]`, so "Which site takes it" reads it as it reads any answer.
|
|
545
|
+
4. `pending` stays `null`: no `ask`, no end of the run. The phase goes on from that site.
|
|
546
|
+
|
|
547
|
+
Still a question stop, as above:
|
|
548
|
+
|
|
549
|
+
- **No recommended option** — a question with no options, or a `decision` whose options came
|
|
550
|
+
without one. Free text is never written on a person's behalf.
|
|
551
|
+
- **A third `high_findings` on the same MR/PR** — two `source: "recommended"` answers to that gate
|
|
552
|
+
with this `mr` already in `defaults_used[]`: two rounds of fixes that left high findings behind
|
|
553
|
+
are for a person to judge.
|
|
554
|
+
- **Outside those five phases** — the study phases, and `respond` and `green`, ask or block as
|
|
555
|
+
they always do: a review round answers a reviewer, and the ticket's owner decides that one.
|
|
556
|
+
|
|
557
|
+
`ship` puts this MR/PR's entries in the body (its "In every mode" paragraph), so the person who
|
|
558
|
+
reads the draft sees each question, its options and the one taken, and asks for a change there.
|
|
559
|
+
|
|
518
560
|
## 3. Reporting — how every stop reads
|
|
519
561
|
|
|
520
562
|
**A stop is where you hand the screen back**: a question, a hard gate, the end of the flow.
|
|
@@ -191,8 +191,10 @@ base branch resolvable — is §2 below; flag the key here, check the world ther
|
|
|
191
191
|
resolves on `PATH` (`command -v`) — **empty → flag it as an error**: no phase runs in
|
|
192
192
|
`unattended` without it. Say which file set the mode: every session that reads that file — a
|
|
193
193
|
person's included, when they share the checkout and the harness — stops asking too, so it belongs
|
|
194
|
-
in a FLOW file only the orchestrator's environment has. `
|
|
195
|
-
→
|
|
194
|
+
in a FLOW file only the orchestrator's environment has. Echo `autonomy.after_study` (empty =
|
|
195
|
+
`ask`): `recommended` → once a study is approved, the run answers its own questions with the
|
|
196
|
+
recommended option and lists them in the draft MR/PR (flow-core §2.1); any other value → flag,
|
|
197
|
+
`ask` assumed. `orchestrator_cmd` or `after_study` set with any other mode → note it is ignored.
|
|
196
198
|
|
|
197
199
|
## 2. Checks
|
|
198
200
|
|
|
@@ -66,7 +66,10 @@ place it would ask:
|
|
|
66
66
|
because they also fail on the base (`unattended:validate-red-base`): each name, and the base sha
|
|
67
67
|
where it failed too — and the review findings an orchestrator's answer accepted unfixed
|
|
68
68
|
(`06-review.md` "Answered (unattended)"), one line each. The §3 preview shows that section like
|
|
69
|
-
any other, and the person reading it is the check the run could not do.
|
|
69
|
+
any other, and the person reading it is the check the run could not do. Entries of
|
|
70
|
+
`auto-answers.md` for this MR/PR (`MR/PR <n>` in their heading, or all of them for a work with no
|
|
71
|
+
`mrs`) go into the body verbatim under `## Decided without asking` — each question, its options,
|
|
72
|
+
the one taken checked (flow-core §2.1, the recommended answer).
|
|
70
73
|
|
|
71
74
|
## 1. Pre-flight
|
|
72
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.99.0",
|
|
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.99.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alberto Vioque",
|
|
9
9
|
"email": "mashware@gmail.com"
|
|
@@ -5,6 +5,25 @@ 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.99.0 — After an approved study, an unattended run answers its own questions · 2026-10-22
|
|
9
|
+
|
|
10
|
+
**In short**
|
|
11
|
+
- **New key `autonomy.after_study: recommended`**, read only in `unattended`. Once the work holds a
|
|
12
|
+
study a person approved — a study run approved with `why = start`, or a study handed off from
|
|
13
|
+
elsewhere — a question in `build`, `fix`, `review`, `validate` or `ship` no longer ends the run:
|
|
14
|
+
it takes the recommended option and goes on in the same turn.
|
|
15
|
+
- **Every question still reaches you, in the draft MR/PR.** Each one goes to `auto-answers.md` and
|
|
16
|
+
from there into the body under `## Decided without asking`: the question, its options, the one
|
|
17
|
+
taken checked. Disagree → ask for the change on the MR/PR.
|
|
18
|
+
- **Three cases still ask:** a question with no recommended option, a third high-findings round on
|
|
19
|
+
the same MR/PR, and anything outside those five phases — the study itself, `respond` and `green`.
|
|
20
|
+
- Empty or `ask` → nothing changes.
|
|
21
|
+
|
|
22
|
+
An unattended build stopped on a question whose recommended option was the one the person would
|
|
23
|
+
have picked, and the answer came hours later — a relaunch that started cold, without the context or
|
|
24
|
+
the cache of the run that asked. With the study approved, the person had already decided what
|
|
25
|
+
mattered; the rest can wait for the MR/PR.
|
|
26
|
+
|
|
8
27
|
## v0.98.0 — One overview, and it knows what you merged · 2026-10-21
|
|
9
28
|
|
|
10
29
|
**In short**
|
|
@@ -128,6 +128,11 @@ How much the flow advances on its own vs. stopping to ask you.
|
|
|
128
128
|
# It says why the run was launched, serves the ticket and the answer, and takes
|
|
129
129
|
# the run's one closing order (`ask`, `publish`, `blocked`, `done`). Read only
|
|
130
130
|
# in that mode. The orders: flow-core §2.1.
|
|
131
|
+
- `after_study:` # `ask` (default) | `recommended`. Read only in `unattended`, once the work holds an approved study.
|
|
132
|
+
# ask — a question in build/fix/review/validate/ship ends the run with `ask`.
|
|
133
|
+
# recommended — the run takes the recommended option itself and goes on; the draft
|
|
134
|
+
# MR/PR lists each question with its options, the one taken checked.
|
|
135
|
+
# Questions with no recommended option, and a third high-findings round, still ask.
|
|
131
136
|
|
|
132
137
|
## quality
|
|
133
138
|
Repo commands for quality gates, whatever the stack — `make test`, `./gradlew test`, `dotnet test`,
|