flow-workflows 0.104.0 → 0.105.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.
Files changed (36) hide show
  1. package/adapters/codex/CORE.md +101 -36
  2. package/adapters/codex/skills/flow-feat-ship/SKILL.md +4 -3
  3. package/adapters/codex/skills/flow-feat-start/SKILL.md +1 -1
  4. package/adapters/codex/skills/flow-init/SKILL.md +1 -1
  5. package/adapters/codex/skills/flow-next/SKILL.md +2 -2
  6. package/adapters/codex/skills/flow-work-README/SKILL.md +2 -2
  7. package/adapters/codex/skills/flow-work-daily/SKILL.md +5 -3
  8. package/adapters/codex/skills/flow-work-resume/SKILL.md +1 -1
  9. package/adapters/gemini/CORE.md +101 -36
  10. package/adapters/gemini/commands/flow/feat/ship.toml +4 -3
  11. package/adapters/gemini/commands/flow/feat/start.toml +1 -1
  12. package/adapters/gemini/commands/flow/init.toml +1 -1
  13. package/adapters/gemini/commands/flow/next.toml +2 -2
  14. package/adapters/gemini/commands/flow/work/README.toml +2 -2
  15. package/adapters/gemini/commands/flow/work/daily.toml +5 -3
  16. package/adapters/gemini/commands/flow/work/resume.toml +1 -1
  17. package/adapters/hermes/CORE.md +101 -36
  18. package/adapters/hermes/skills/flow-feat-ship/SKILL.md +4 -3
  19. package/adapters/hermes/skills/flow-feat-start/SKILL.md +1 -1
  20. package/adapters/hermes/skills/flow-init/SKILL.md +1 -1
  21. package/adapters/hermes/skills/flow-next/SKILL.md +2 -2
  22. package/adapters/hermes/skills/flow-work-README/SKILL.md +2 -2
  23. package/adapters/hermes/skills/flow-work-daily/SKILL.md +5 -3
  24. package/adapters/hermes/skills/flow-work-resume/SKILL.md +1 -1
  25. package/adapters/opencode/CORE.md +101 -36
  26. package/adapters/opencode/commands/flow-feat-ship.md +4 -3
  27. package/adapters/opencode/commands/flow-feat-start.md +1 -1
  28. package/adapters/opencode/commands/flow-init.md +1 -1
  29. package/adapters/opencode/commands/flow-next.md +2 -2
  30. package/adapters/opencode/commands/flow-work-README.md +2 -2
  31. package/adapters/opencode/commands/flow-work-daily.md +5 -3
  32. package/adapters/opencode/commands/flow-work-resume.md +1 -1
  33. package/package.json +1 -1
  34. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  35. package/plugins/flow/CHANGELOG.md +26 -0
  36. package/plugins/flow/examples/FLOW.template.md +9 -6
@@ -30,7 +30,7 @@ runs a phase on its own and never advances `meta.json`.
30
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
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
+ 5. The roadmap, if the repo has one (flow-core §10): where the project stands — current phase, what is in progress, the next item whose dependencies are met, what is blocked, and any stale item.
34
34
 
35
35
  ## 2. Route
36
36
 
@@ -44,7 +44,7 @@ runs a phase on its own and never advances `meta.json`.
44
44
  | No works at all | "Nothing in flight." | `/flow-feat-start <TICKET>` (or with no ticket, from the conversation) · `/flow-bug-start <TICKET>` |
45
45
 
46
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.
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. A stale item gets its own line under it, with its evidence: it is the plan saying something the code already contradicts.
48
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.
49
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.
50
50
  - A FLOW layer is present but `/flow-doctor` has never been run in this session and the
@@ -119,7 +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
+ "roadmap": { "path": "ROADMAP.md", "item": "the item's text — a checkbox line or a table row", "under": "Phase 2 › Milestone 2.3" } | null,
123
123
  "followups": [
124
124
  { "id": "F1",
125
125
  "kind": "prevention" | "audit" | "out-of-scope" | "risk" | "edge-case" | "other-bug" | "tooling" | "decision",
@@ -164,7 +164,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
164
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.
165
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.
166
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.
167
+ - **`roadmap`**: the roadmap item this work delivers (flow-core §10). Linked at `/flow-feat-start §3.7`, marked in progress / done by `/flow-feat-ship` inside the MR/PR, shown by `next`/`daily`/`resume` — which also flag an item the code delivered but the file still does not mark. `null` with no roadmap, no link, or a bug.
168
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.
169
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.
170
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.
@@ -47,7 +47,7 @@ Every *mine* below — your MRs/PRs, your threads, your tickets — is the **aut
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
+ - **Roadmap** (flow-core §10): where the project stands, which open work delivers which item, what is next (the first pending item whose dependencies are met and no open work links), what is blocked and on what, and the stale items — not done in the file, delivered by the works, the tracker or the forge.
51
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.
52
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.
53
53
 
@@ -99,6 +99,7 @@ Turn the *joins* into concrete, **suggested** commands (never act):
99
99
  - Local work `done`/`ship` but its ticket still open in the tracker → divergence to close out.
100
100
  - Local work whose branch has an open MR/PR with **CI red or an unmergeable state** (conflicts, behind base) → `/flow-work-green`; with **threads awaiting your reply** (latest comment not yours) → `/flow-work-respond`.
101
101
  - A ticket's **priority was raised** while you were on something else → call out the possible refocus.
102
+ - A **stale roadmap item** (flow-core §10) → the file is behind the code: name the item and its evidence. The next `/flow-feat-ship` offers to correct it in its MR/PR; this command never edits the file.
102
103
  - `related_repos` entries not `done` → the **other repo's part is still open**: surface it (`<repo>: <scope>`) and suggest `/flow-feat-start <TICKET>` in that repo. `contract_handoff` `pending` → add that the contract was never handed over; the fix is `/flow-feat-ship` §6.3 on this side first. flow only reminds; it never scans the sibling.
103
104
  - **Follow-ups nobody has decided on** → one line at most, not a list: `<N> follow-ups awaiting a decision (oldest: <TICKET> F2 — <title>)`, and separately any `accepted` entry with no `work` started, suggesting `/flow-feat-start <ticket>`. A standup is where deferred work should resurface; it is not where it gets triaged — that is `ship`, once. Say nothing when there are none.
104
105
  - Uncommitted local changes not reflected in any log/artifact → nudge toward the relevant phase.
@@ -142,10 +143,11 @@ Today
142
143
  <what to resume + what the forge/tracker asks of you, ordered by urgency>
143
144
 
144
145
  Roadmap (only with one)
145
- <phase › milestone — done/total · in progress: item (work) · next: item>
146
+ <phase › milestone — done/total · in progress: item (work) · next: item · blocked: item ← what it waits on>
147
+ <stale: milestone › item still <state> — TICKET merged <date>, one line each — only if any>
146
148
 
147
149
  Blockers / attention
148
- <CI red · reviews awaiting you (latest comment not yours) · stale works (merged on the forge) · divergences · raised priorities — or "none">
150
+ <CI red · reviews awaiting you (latest comment not yours) · stale works (merged on the forge) · stale roadmap items · divergences · raised priorities — or "none">
149
151
 
150
152
  Awaiting others (optional)
151
153
  <threads you already answered, waiting on the reviewer — informational, not yours to act on>
@@ -46,7 +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
+ Roadmap: <meta.roadmap: "under › item" — and the project's one line, flow-core §10, plus any stale item> (line only with a roadmap)
50
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)
51
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)
52
52
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-workflows",
3
- "version": "0.104.0",
3
+ "version": "0.105.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.104.0",
6
+ "version": "0.105.0",
7
7
  "author": {
8
8
  "name": "Alberto Vioque",
9
9
  "email": "mashware@gmail.com"
@@ -5,6 +5,32 @@ plugin and is what `/flow:news` reads to show you what changed since your previo
5
5
 
6
6
  The canonical, richest notes live in the [GitHub Releases](https://github.com/mashware/flow-workflows/releases).
7
7
 
8
+ ## v0.105.0 — A roadmap kept as tables: flow reads its dependencies and sees the rows the code already delivered · 2026-11-02
9
+
10
+ **In short**
11
+ - **A plan written as tables is a roadmap too.** A table whose header has a state column is read row by row:
12
+ state, an optional note after `:`, the ticket and the dependencies, with the column roles read off the header in
13
+ the file's language. `roadmap.columns` names them when the header is ambiguous. Checkbox lines work as before,
14
+ and one file may mix both.
15
+ - **`roadmap.md` and `docs/roadmap.md` are found too.** The default lookup ignores letter case.
16
+ - **"Next" respects dependencies.** It is the first pending item whose dependencies are met, not the first pending
17
+ one in the file. An item inherits its milestone's dependencies from an order table. `next` and `daily` say what is
18
+ blocked and on what.
19
+ - **A milestone that states "Done when: …" in prose is closed only when the file says so.** flow never judges the
20
+ criterion and never closes such a milestone itself. What depends on it waits, and the line says which criterion
21
+ is unmarked.
22
+ - **Stale rows are flagged.** An item that is not done in the file but whose work is done is reported by `next`,
23
+ `daily` and `resume`, with the evidence. The evidence comes from an archived work, every MR/PR of its work merged,
24
+ or the tracker. The next `feat:ship` offers to correct it in its own MR/PR. Evidence from the forge alone is
25
+ reported, never corrected.
26
+ - **`feat:ship` edits a row in two cells at most.** It changes the state word, keeps the team's note, and fills an
27
+ empty ticket cell. It never touches another cell, another row or the alignment.
28
+
29
+ Until now §10 only counted checkbox lines in `ROADMAP.md`. A team that keeps its plan in tables got silence:
30
+ `next` could not say where the project stood, and `ship` marked nothing. Order was the only dependency, so a row
31
+ waiting on the one below it was proposed first. A merge that delivered a deliverable without updating its row
32
+ went unnoticed.
33
+
8
34
  ## v0.104.0 — A flaky test outside your change no longer blocks an unattended run · 2026-10-31
9
35
 
10
36
  **In short**
@@ -347,12 +347,15 @@ written without that question.
347
347
  <!-- e.g.: DDD (Domain/Application/Infrastructure); no #[AsMessageHandler]; etc. -->
348
348
 
349
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.
350
+ The project's plan above the ticket — phases, milestones, deliverables as checkbox lines or as table
351
+ rows with a state column — in a markdown file of your own shape (flow-core §10). `next`, `daily` and
352
+ `resume` say where it stands, what is next once its dependencies are met, and which items the code
353
+ already delivered but the file does not say; `feat:start` links a work to one of its items, and
354
+ `feat:ship` marks it in the MR/PR that delivers it.
355
+
356
+ - `path:` # the roadmap file, relative to the repo root. Empty = `ROADMAP.md`, then `docs/ROADMAP.md`, in any letter case, if it has checkbox lines or a table with a state column. `none` = no roadmap.
357
+ - `mark:` # `ship` (default) = mark in progress on the work's first MR/PR, done on its last | `never` = read-only, flow only reads it.
358
+ - `columns:` # only when a table's header is ambiguous: `state=<header>, ticket=<header>, depends=<header>`. Empty = read off the header.
356
359
 
357
360
  ## notes
358
361
  Per-command extra guidance. When a command runs, it MUST follow the entry matching its command