flow-workflows 0.102.0 → 0.103.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 +70 -1
- package/adapters/codex/skills/flow-bug-start/SKILL.md +2 -2
- package/adapters/codex/skills/flow-feat-ship/SKILL.md +6 -0
- package/adapters/codex/skills/flow-feat-start/SKILL.md +8 -2
- package/adapters/codex/skills/flow-init/SKILL.md +2 -0
- package/adapters/codex/skills/flow-next/SKILL.md +7 -4
- package/adapters/codex/skills/flow-work-README/SKILL.md +2 -0
- package/adapters/codex/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-daily/SKILL.md +7 -2
- package/adapters/codex/skills/flow-work-resume/SKILL.md +2 -1
- package/adapters/codex/skills/flow-work-run/SKILL.md +2 -2
- package/adapters/gemini/CORE.md +70 -1
- package/adapters/gemini/commands/flow/bug/start.toml +2 -2
- package/adapters/gemini/commands/flow/feat/ship.toml +6 -0
- package/adapters/gemini/commands/flow/feat/start.toml +8 -2
- package/adapters/gemini/commands/flow/init.toml +2 -0
- package/adapters/gemini/commands/flow/next.toml +7 -4
- package/adapters/gemini/commands/flow/work/README.toml +2 -0
- package/adapters/gemini/commands/flow/work/clean.toml +1 -1
- package/adapters/gemini/commands/flow/work/daily.toml +7 -2
- package/adapters/gemini/commands/flow/work/resume.toml +2 -1
- package/adapters/gemini/commands/flow/work/run.toml +2 -2
- package/adapters/hermes/CORE.md +70 -1
- package/adapters/hermes/skills/flow-bug-start/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-feat-ship/SKILL.md +6 -0
- package/adapters/hermes/skills/flow-feat-start/SKILL.md +8 -2
- package/adapters/hermes/skills/flow-init/SKILL.md +2 -0
- package/adapters/hermes/skills/flow-next/SKILL.md +7 -4
- package/adapters/hermes/skills/flow-work-README/SKILL.md +2 -0
- package/adapters/hermes/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-daily/SKILL.md +7 -2
- package/adapters/hermes/skills/flow-work-resume/SKILL.md +2 -1
- package/adapters/hermes/skills/flow-work-run/SKILL.md +2 -2
- package/adapters/opencode/CORE.md +70 -1
- package/adapters/opencode/commands/flow-bug-start.md +2 -2
- package/adapters/opencode/commands/flow-feat-ship.md +6 -0
- package/adapters/opencode/commands/flow-feat-start.md +8 -2
- package/adapters/opencode/commands/flow-init.md +2 -0
- package/adapters/opencode/commands/flow-next.md +7 -4
- package/adapters/opencode/commands/flow-work-README.md +2 -0
- package/adapters/opencode/commands/flow-work-clean.md +1 -1
- package/adapters/opencode/commands/flow-work-daily.md +7 -2
- package/adapters/opencode/commands/flow-work-resume.md +2 -1
- package/adapters/opencode/commands/flow-work-run.md +2 -2
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +33 -0
- package/plugins/flow/examples/FLOW.template.md +8 -0
|
@@ -26,10 +26,11 @@ runs a phase on its own and never advances `meta.json`.
|
|
|
26
26
|
1. Identify the active harness. Does `FLOW.md`, the context file `FLOW_CONTEXT` selects, or the
|
|
27
27
|
active `FLOW.<harness>.md` exist (flow-core §0)? An inactive harness's overlay, or a context file
|
|
28
28
|
no variable selects, does not configure this session.
|
|
29
|
-
2.
|
|
30
|
-
3.
|
|
31
|
-
3b. `followups[]` across those works **and**
|
|
29
|
+
2. The work for this branch (flow-core §0): the work folders here **and** in the main checkout, matched by `branch`, `mrs[].branch` or `worktree`. From a linked worktree the folders are usually only in the main checkout — reading `.claude/work/` here alone finds nothing.
|
|
30
|
+
3. Those work folders — how many open works, in which worktree each is checked out (`git worktree list`), and their `phase` (from `meta.json`; read `00-summary.md` when present, never the full artifacts).
|
|
31
|
+
3b. `followups[]` across those works **and** their `_archive/*/meta.json`: any entry `accepted` with no `work` started (flow-core §7).
|
|
32
32
|
4. Is the working tree dirty (`git status --porcelain`)?
|
|
33
|
+
5. The roadmap, if the repo has one (flow-core §10): where the project stands — current phase, what is in progress, the next unstarted item.
|
|
33
34
|
|
|
34
35
|
## 2. Route
|
|
35
36
|
|
|
@@ -37,11 +38,13 @@ runs a phase on its own and never advances `meta.json`.
|
|
|
37
38
|
|---|---|---|
|
|
38
39
|
| No FLOW layer present | "This repo is not configured for flow on this harness yet." One line on what the FLOW config is (personal config, auto-detected). | `/flow-init` |
|
|
39
40
|
| A work matches the current branch | Its stop header (flow-core §3: ticket · size · phase · MR #n of N) and the next phase for its size. | `/flow-work-resume` |
|
|
40
|
-
| No match, but open works exist | Count, and the two most recently updated with their phase
|
|
41
|
+
| No match, but open works exist | Count, and the two most recently updated with their phase — and the worktree each lives in, so the answer to "where were we" is a `cd`. | `/flow-work-daily`, or `/flow-feat-start` / `/flow-bug-start` if the user said what they want to do |
|
|
41
42
|
| No works at all, but an accepted follow-up is waiting | "Nothing in flight — but `<TICKET>` F1 was accepted and never started: `<title>`." | `/flow-feat-start <ticket>` (or `/flow-bug-start`) for that follow-up · `/flow-feat-start` for something else |
|
|
43
|
+
| No works at all, but the roadmap has a next item | "Nothing in flight. Roadmap: `<phase> › <milestone>` — next: `<item>`." | `/flow-feat-start <id>` when the item names a ticket, else `/flow-feat-start` with the item as the draft · `/flow-feat-start` for something else |
|
|
42
44
|
| No works at all | "Nothing in flight." | `/flow-feat-start <TICKET>` (or with no ticket, from the conversation) · `/flow-bug-start <TICKET>` |
|
|
43
45
|
|
|
44
46
|
- The SessionStart hook (`hooks/session-start.sh`) has already printed the first two rows of this table's second case — the header and what the last session was doing — off disk, without reading a ticket or an artifact. Say them again anyway: `next` is where the user asked, and a line they scrolled past is not an answer.
|
|
47
|
+
- A roadmap exists → its one line (flow-core §10) goes under the situation in every row but the first: the work in front of you is one step of it, and that line is what "where are we" means for the project.
|
|
45
48
|
- An `accepted` follow-up exists **and** other works are open → do not reroute; add one line naming it after the options. It is a standing commitment, not an interruption.
|
|
46
49
|
- Dirty tree and no matching work → mention it in one line ("uncommitted changes on `<branch>`, no work is tracking them") before the options; `start` will warn again.
|
|
47
50
|
- A FLOW layer is present but `/flow-doctor` has never been run in this session and the
|
|
@@ -119,6 +119,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
119
119
|
"related_repos": [
|
|
120
120
|
{ "repo": "sibling-project", "scope": "what's needed there", "status": "pending" | "in_progress" | "done", "contract_handoff": "none" | "pending" | "published → <location>" }
|
|
121
121
|
],
|
|
122
|
+
"roadmap": { "path": "ROADMAP.md", "item": "the checkbox line's text", "under": "Phase 2 › Milestone 2.3" } | null,
|
|
122
123
|
"followups": [
|
|
123
124
|
{ "id": "F1",
|
|
124
125
|
"kind": "prevention" | "audit" | "out-of-scope" | "risk" | "edge-case" | "other-bug" | "tooling" | "decision",
|
|
@@ -163,6 +164,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
163
164
|
- **`review_findings[]`**: one entry per finding **per source** — `{ round, origin, severity, file, discarded_by_skeptic }`, no finding text (that stays in `06-review.md`). Written at `review`'s Close, and by `flow review --record` when the CLI ran the panel. `origin` is `built-in`, a panel role, or the pass that raised it. It exists so a pass can be retired on evidence: `flow cost` reports per origin how many findings each contributed, how many **only** it raised, and how many of those survived §6 — and a finding three sources raised says nothing about any of them, which is why dedup keeps every source rather than the first. The rule was written down before the data arrived: no exclusive surviving finding across twenty reviews and the pass comes out of the command.
|
|
164
165
|
Two fields for the review because they are two facts. `reviewed_sha` used to be `git rev-parse HEAD` at the end of the phase, which by then held the round's own fixes — so `ship` compared a sha against itself and reported a match over code no reviewer had read. Read by `ship` at pre-flight against `HEAD`: a delta of test files and this work's own folder passes with a note in `06-review.md`; anything else stops and asks in every autonomy mode. Empty is not a mismatch; `fixed_sha` set with `reviewed_sha == HEAD` is one. `review` also reads `reviewed_sha` back as **its own base** on a re-review, so the second round reads the delta instead of the whole branch.
|
|
165
166
|
- **`respond_rounds`**: rounds of `/flow-work-respond` on an MR/PR. `/flow-work-respond §1` reads it against `quality.respond_max_rounds` (empty = 3) and refuses the round that would exceed it, handing the open threads back to the user.
|
|
167
|
+
- **`roadmap`**: the roadmap item this work delivers (flow-core §10). Linked at `/flow-feat-start §3.7`, marked in progress / ticked by `/flow-feat-ship` inside the MR/PR, shown by `next`/`daily`/`resume`. `null` with no roadmap, no link, or a bug.
|
|
166
168
|
- **`related_repos`**: the **other repos a task touches**. Captured at `/flow-feat-start` / `/flow-bug-start` §cross-repo, refined at `design`/`plan`, reminded at `ship`, shown by `daily`/`resume`/`status`. flow only notes and reminds — never touches the other repo. `[]` for single-repo.
|
|
167
169
|
- **`ticket_deps`**: the **other tickets this study cannot be built without** — something the design needs that is not on the base branch and that another ticket brings (`/flow-feat-design` §5.1, `/flow-bug-investigate` §4.1). Read at the two exits of a study: `/flow-work-handoff` §5 writes a `Depends on <ticket>` line per entry into the ticket body, and an unattended study run passes `--depends-on N` per entry on its `done` (flow-core §2.1). Not `mrs[].depends_on`, which orders this work's own MRs/PRs. Written whole each time `design` (or `investigate`) runs, and removed when an unattended study is rewound. `[]` or absent when the study depends on nothing.
|
|
168
170
|
- **`contract_handoff`**: whether the sibling knows **what shape to build against** (`scope` is prose; distinct from `status`). `none` — consumes no contract declared here. `pending` — consumes one, not handed over yet. `published → <location>` — published where that side reads it (normally the tracker ticket; `/flow-feat-ship` §6.3), picked up by the sibling's `/flow-feat-start` §3.6.
|
|
@@ -66,7 +66,7 @@ Three lists, gathered in one pass:
|
|
|
66
66
|
|
|
67
67
|
- **Worktrees** — `git worktree list --porcelain` → path + branch per entry. Skip the first (the main checkout).
|
|
68
68
|
- **Local branches** — `git for-each-ref --format='%(refname:short)|%(upstream:short)|%(upstream:track)' refs/heads/`.
|
|
69
|
-
- **Work folders** —
|
|
69
|
+
- **Work folders** — both locations of flow-core §0 (here and the main checkout; ignore `_archive`), reading each `meta.json` for `ticket`, `branch`, `phase`, `worktree`, `mrs[]`.
|
|
70
70
|
|
|
71
71
|
Two strays caught in the same sweep:
|
|
72
72
|
|
|
@@ -40,13 +40,14 @@ Every *mine* below — your MRs/PRs, your threads, your tickets — is the **aut
|
|
|
40
40
|
|
|
41
41
|
## 1. Local layer (always — the base of the briefing)
|
|
42
42
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
43
|
+
- The work for this branch (flow-core §0) → the **active** work. From the main checkout on the base branch there is none — that is not "nothing in flight".
|
|
44
|
+
- Every work folder in both locations of flow-core §0, here and the main checkout (ignore `_archive`); read each `meta.json`. Name the worktree a work is checked out in (`git worktree list`) next to it, so the user knows where to `cd` (folders are `<TICKET>-<slug>`, `<slug>` for ticket-less works, or just `<TICKET>` for older ones — identify each by `meta.json.ticket`, not the folder name). Read `00-summary.md` per work when it exists and take the recap from it (`Next:` line, what is pending) instead of every artifact (flow-core §5); missing → the most recent artifact(s) (`NN-*.md`) and `meta.notes`, not re-derived from code.
|
|
45
45
|
- **"Last session" boundary**: the marker from §7 if present; otherwise the most recent commit date and the newest `updated_at` across works.
|
|
46
46
|
- Order works by `updated_at` (most recent first); the first is the *"what were we on?"* answer.
|
|
47
47
|
- Repo pulse: `git log --oneline --since="<last-session boundary>"` (fallback `-10`) and `git status --short` for uncommitted changes.
|
|
48
48
|
- Per work: `phase`, `phases_done`, MRs and their `status` (from `meta.json.mrs`), and what was **left pending**.
|
|
49
49
|
- **Cross-repo parts**: `meta.json.related_repos` entries not `done` → a *sibling repo* still needs work. Surface only what is recorded — never scan or open the other repo.
|
|
50
|
+
- **Roadmap** (flow-core §10): where the project stands, and which open work delivers which item. An unchecked item no open work links, ahead of the in-progress ones, is what to pick up next.
|
|
50
51
|
- **Open follow-ups**: `followups[]` entries not `declined`/`logged`/`done`, from the live works **and** from `_archive/*/meta.json` (flow-core §7). The archive is read for this and nothing else — a finished work is exactly when its deferred items stop being visible.
|
|
51
52
|
- **Measured cost**: `meta.json.cost[]` entries (flow-core §4) — sum the `usd` there, count the phases behind them, count apart the entries whose `source` is `not reported`. No entries → no figure at all: absence is not zero. The figures are the harness's client-side estimates, not a bill; `flow cost` prints them phase by phase.
|
|
52
53
|
|
|
@@ -119,6 +120,7 @@ The briefing's reference section: every open work, compact, most recently update
|
|
|
119
120
|
Cross-repo: <repo>: <scope> — contract not handed over (only if any)
|
|
120
121
|
Follow-ups: 2 awaiting a decision · 1 accepted, not started (only if any)
|
|
121
122
|
Cost: $0.71 measured over 2 phases · 1 phase not reported (only if any)
|
|
123
|
+
Roadmap: <phase › item it delivers> (only if linked)
|
|
122
124
|
Next: <the concrete next command>
|
|
123
125
|
```
|
|
124
126
|
|
|
@@ -139,6 +141,9 @@ Yesterday / last session
|
|
|
139
141
|
Today
|
|
140
142
|
<what to resume + what the forge/tracker asks of you, ordered by urgency>
|
|
141
143
|
|
|
144
|
+
Roadmap (only with one)
|
|
145
|
+
<phase › milestone — done/total · in progress: item (work) · next: item>
|
|
146
|
+
|
|
142
147
|
Blockers / attention
|
|
143
148
|
<CI red · reviews awaiting you (latest comment not yours) · stale works (merged on the forge) · divergences · raised priorities — or "none">
|
|
144
149
|
|
|
@@ -29,7 +29,7 @@ reads where the run got to, not how the run continues.
|
|
|
29
29
|
## 1. Detection
|
|
30
30
|
|
|
31
31
|
- `git branch --show-current`.
|
|
32
|
-
-
|
|
32
|
+
- Find the work for this branch (flow-core §0: both work-folder locations, `branch`, `mrs[].branch` or `worktree`).
|
|
33
33
|
- None found → ask the user for the ticket or whether to start a new one.
|
|
34
34
|
- `meta.json.worktree` non-null and the current directory is not that worktree → tell the user the work lives in a worktree and to `cd <worktree>` before continuing; run the repo-state checks below from there (`git -C <worktree> …`).
|
|
35
35
|
|
|
@@ -46,6 +46,7 @@ Waves: Wave 1: #1 ∥ #2 → Wave 2: #3 → Wave 3: #4 ∥ #5 (lin
|
|
|
46
46
|
Last updated: <updated_at>
|
|
47
47
|
Notes: <meta.notes>
|
|
48
48
|
Cross-repo: <meta.related_repos entries not "done", as "repo: scope"; or "—">
|
|
49
|
+
Roadmap: <meta.roadmap: "under › item" — and the project's one line, flow-core §10> (line only with a roadmap)
|
|
49
50
|
Ticket thread: <new since <updated_at>: <n> comment(s) that change the work — detailed below · or "nothing new" · or "not read"> (line only in ticket mode, from §2.5)
|
|
50
51
|
Unattended: <from `meta.json.pending` when it is set: the gate, `resume` and the question file's first line — the orchestrator holds the question and will relaunch with its answer> (line only when `pending` is set)
|
|
51
52
|
```
|
|
@@ -38,8 +38,8 @@ of truth, and an argument that disagrees with it is ignored and named in the log
|
|
|
38
38
|
orchestrator that cannot say why it launched the run cannot take one either.
|
|
39
39
|
- Run `<cmd> ticket --json` and keep `number`, `title`, `base` and `kind` (`kind` absent or `null` → `feat`: the tracker could not tell, so flow decides). `kind` is re-read on every run; only a run that starts the work uses it — once the work exists, its folder says feat or bug.
|
|
40
40
|
It fails or prints no `number` → `blocked` (flow-core §2.1).
|
|
41
|
-
- Find the work: the `meta.json`
|
|
42
|
-
excluded). None is not an error — it is the "none" of the table below.
|
|
41
|
+
- Find the work: the `meta.json` in the work folders (flow-core §0 — here and in the main
|
|
42
|
+
checkout) whose `ticket` equals `number` (archive excluded). None is not an error — it is the "none" of the table below.
|
|
43
43
|
|
|
44
44
|
## 2. Route
|
|
45
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.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.103.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alberto Vioque",
|
|
9
9
|
"email": "mashware@gmail.com"
|
|
@@ -5,6 +5,39 @@ 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.103.0 — The project's roadmap: flow reads where you are and ticks off what ships · 2026-10-29
|
|
9
|
+
|
|
10
|
+
**In short**
|
|
11
|
+
- **A roadmap above the ticket.** Keep your plan as a markdown file of phases, milestones and
|
|
12
|
+
checkbox tasks (`ROADMAP.md`, or any file you name in `roadmap.path`). flow reads it without being told.
|
|
13
|
+
- **`next`, `daily` and `resume` say where the project stands** — current phase, what is in
|
|
14
|
+
progress and by which work, and the next item nobody has started. With nothing in flight, `next`
|
|
15
|
+
proposes starting that item.
|
|
16
|
+
- **`feat:start` links the work to its item** — on its own when the ticket names it, by asking in
|
|
17
|
+
`manual` otherwise.
|
|
18
|
+
- **`feat:ship` updates the roadmap inside the MR/PR**: the first one marks the item in progress, the
|
|
19
|
+
one that completes the work ticks it off (and its milestone, once every child is done). The roadmap
|
|
20
|
+
moves with the code and is reviewed with it. Intermediate MRs/PRs of a train never touch it, so
|
|
21
|
+
stacked branches do not conflict on it.
|
|
22
|
+
- `roadmap.mark: never` keeps a team document read-only; `roadmap.path: none` turns it all off.
|
|
23
|
+
|
|
24
|
+
Until now a work's hierarchy stopped at the ticket and its MRs/PRs. A project built in phases kept its
|
|
25
|
+
plan in a markdown file that no command read unless told to, and nobody crossed anything off.
|
|
26
|
+
|
|
27
|
+
## v0.102.1 — From a worktree, flow finds the work it is in · 2026-10-29
|
|
28
|
+
|
|
29
|
+
**In short**
|
|
30
|
+
- **`next`, `daily` and `resume` see your works from inside a worktree.** Before, they said
|
|
31
|
+
"nothing in flight" there, because the work folders only exist in the main checkout.
|
|
32
|
+
- **From the main checkout they say which worktree each work lives in**, so "where were we" is
|
|
33
|
+
answered with a `cd`, not with silence.
|
|
34
|
+
- **Every phase finds its work the same way** — by branch, by any MR branch of a train, or by the
|
|
35
|
+
worktree it was created in — the way the session-start header already did.
|
|
36
|
+
|
|
37
|
+
`.claude/work/` is git-ignored in most repos, so `start` writes it in the main checkout and it never
|
|
38
|
+
reaches a linked worktree. The session-start hook looked in both places; the commands looked only
|
|
39
|
+
where they stood. So the session opened with the right header and `next` contradicted it.
|
|
40
|
+
|
|
8
41
|
## v0.102.0 — A query that entered after the review still reaches the MR with its plan · 2026-10-28
|
|
9
42
|
|
|
10
43
|
**In short**
|
|
@@ -346,6 +346,14 @@ written without that question.
|
|
|
346
346
|
|
|
347
347
|
<!-- e.g.: DDD (Domain/Application/Infrastructure); no #[AsMessageHandler]; etc. -->
|
|
348
348
|
|
|
349
|
+
## roadmap
|
|
350
|
+
The project's plan above the ticket — phases, milestones, tasks with checkboxes — in a markdown file
|
|
351
|
+
of your own shape (flow-core §10). `next`, `daily` and `resume` say where it stands, `feat:start`
|
|
352
|
+
links a work to one of its items, and `feat:ship` ticks it in the MR/PR that delivers it.
|
|
353
|
+
|
|
354
|
+
- `path:` # the roadmap file, relative to the repo root. Empty = `ROADMAP.md`, then `docs/ROADMAP.md`, if it has checkbox lines. `none` = no roadmap.
|
|
355
|
+
- `mark:` # `ship` (default) = mark in progress on the work's first MR/PR, tick on its last | `never` = read-only, flow only reads it.
|
|
356
|
+
|
|
349
357
|
## notes
|
|
350
358
|
Per-command extra guidance. When a command runs, it MUST follow the entry matching its command
|
|
351
359
|
plus the `all` entry, as **mandatory additional instructions for that step**, on top of the
|