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
@@ -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.104.0`.** Compare it once, at the start of the session, against
20
+ **This file belongs to flow `0.105.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
@@ -1292,55 +1292,120 @@ advisory is the one that returns tidier, shorter, worse code — and it returns
1292
1292
 
1293
1293
  A ticket is the largest thing a work knows about: it splits into MRs/PRs (`04-mr-plan.md`), and
1294
1294
  nothing sits above it. A project that is being built in phases usually keeps that plan in a markdown
1295
- file — phases, milestones, sub-milestones, tasks with checkboxes — and without this section no
1296
- command reads it unless told to, `next` cannot say where the project stands, and nobody ticks off
1297
- what an MR/PR delivered.
1295
+ file — phases, milestones, the deliverables of each — and without this section no command reads it
1296
+ unless told to, `next` cannot say where the project stands, and nobody marks what an MR/PR delivered.
1298
1297
 
1299
1298
  **The file.** `roadmap.path` in `FLOW.md`; `none` turns the whole section off. Empty → `ROADMAP.md`
1300
- at the repo root, then `docs/ROADMAP.md`, and either counts only if it holds at least one checkbox
1301
- line (`- [ ]` / `- [x]`). Nothing found → there is no roadmap, and every command below behaves as
1302
- before, silently. A tracked file is read **here** (it is this branch's version); a git-ignored one
1303
- from the main checkout, by §0's rule.
1304
-
1305
- **Its shape is the author's, not flow's.** Headings are phases and milestones, at whatever depth the
1306
- file uses; a checkbox line is a task; a checkbox line with checkbox children is a milestone made of
1307
- those children. flow never rewrites the structure, renumbers, reorders or adds headings — it touches
1308
- exactly two things: a checkbox, and a short annotation at the end of the line it ticks.
1299
+ at the repo root, then `docs/ROADMAP.md`, either name in any letter case, and either counts only if
1300
+ it holds at least one item in one of the two notations below. Nothing found → there is no roadmap,
1301
+ and every command below behaves as before, silently. A tracked file is read **here** (it is this
1302
+ branch's version); a git-ignored one from the main checkout, by §0's rule.
1303
+
1304
+ **Its shape is the author's, not flow's.** flow never rewrites the structure, renumbers, reorders,
1305
+ adds headings, rows or columns, or realigns a table. What it reads is a set of items, each with a
1306
+ text, a state (*pending*, *in progress* or *done*), an optional note, its ticket(s) and its
1307
+ dependencies, grouped under milestones. Two notations carry them, and one file may use both:
1308
+
1309
+ - **Checkboxes.** A checkbox line (`- [ ]` / `- [x]`) is an item: `[x]` is done, flow's trailing
1310
+ annotation (below) says in progress, anything else is pending. A checkbox line with checkbox
1311
+ children is a milestone made of those children. Checkbox items have no dependencies but their
1312
+ order.
1313
+ - **Tables.** A markdown table whose header has a **state** column holds one item per row. The
1314
+ column roles are read off the header, in the file's language: *state* (status, estado…),
1315
+ *ticket* (issue, ticket…), *dependencies* (depends on, after, depende de…), and the item's text in
1316
+ the first remaining column. `roadmap.columns` names them when the header is ambiguous —
1317
+ `state=<header>, ticket=<header>, depends=<header>`. A state cell is a state word, optionally
1318
+ followed by `:` and a free note the team wrote; the state is read from the word alone, against the
1319
+ words the file itself uses (done / in progress / pending, in its language). A word flow cannot
1320
+ place is shown as it is and counted as pending.
1321
+
1322
+ **Milestones.** The headings that hold items are the phases and milestones, at whatever depth the
1323
+ file uses. When the file has an **order table** — a table whose rows name the other sections
1324
+ (`H1`, `Phase 2`, a heading's text) — only the sections it lists are milestones, and its own
1325
+ dependency column is the milestones' dependencies; a section with items that it does not list is
1326
+ **side work** (work that is not code, a parallel track): counted and shown, never proposed as next.
1327
+ A milestone may state its **closing criterion** in prose — a line such as `Done when: …` / `Terminado
1328
+ cuando: …` right under its heading. flow never judges prose, so a milestone with a criterion is
1329
+ closed **only when the file says so**: a done state for it in the order table, or a checked checkbox
1330
+ on the criterion line. One without a criterion is closed when every item in it is done.
1331
+
1332
+ **Dependencies.** An item's dependency cell names other items or milestones — by their text, their
1333
+ ticket, or the milestone's id or heading — and an item inherits its milestone's dependencies. A
1334
+ dependency is **met** when the item it names is done, or the milestone it names is closed. A name
1335
+ that resolves to nothing is **unmet**, and is said as such: flow never guesses a near match.
1309
1336
 
1310
1337
  **Where the project stands** — computed the same way by `next`, `daily` and `resume`:
1311
- - **Current phase**: the first heading, in file order, that still holds an unchecked item.
1312
- - **In progress**: unchecked items an open work links (below), or that carry flow's in-progress
1313
- annotation.
1314
- - **Next**: the first unchecked item of the current phase that is neither — a leaf, not a milestone
1315
- whose children are listed.
1338
+ - **Current phase**: the first milestone, in file order, that is not closed.
1339
+ - **In progress**: items an open work links (below), or whose state is in progress.
1340
+ - **Next**: the first pending item, in file order across the whole file, whose dependencies are all
1341
+ met and that no open work links — a leaf, not a milestone whose children are listed, and never
1342
+ side work. Without dependencies this is the first pending item of the current phase, as order
1343
+ alone always said.
1344
+ - **Blocked**: the pending items ahead of *next* that wait on something, each with what it waits on;
1345
+ a milestone whose items are all done but whose criterion is not marked is named with its criterion.
1346
+ - **Stale**: items whose work has already merged while their state still says otherwise (below).
1316
1347
  - Said in one line: `Roadmap: <phase> › <milestone> — <done>/<total> · in progress: <item> (<work>) ·
1317
- next: <item>`. Counts are the checkboxes under the current phase. All done → `Roadmap: complete`.
1348
+ next: <item> · blocked: <item> ← <what it waits on>`, the last part only when something ahead of
1349
+ *next* is blocked; a milestone waiting on its criterion reads `<milestone>: items done — criterion
1350
+ not marked: "<criterion>"`. Counts are the items under the current phase. Every milestone closed →
1351
+ `Roadmap: complete`.
1352
+
1353
+ **Stale items — the merge that never reached the file.** An item can stay *in progress* or *pending*
1354
+ after the work that delivers it merged: a part shipped outside flow, a train whose closing MR/PR was
1355
+ merged by hand, a deliverable split across several tickets. `next`, `daily` and `resume` check every
1356
+ item that is not done and names a ticket, or that an open or archived work links, against:
1357
+ - **the works** — a live or `_archive/` work linking the item (or carrying its ticket) whose
1358
+ `phase` is `done`, or whose `mrs[]` are all merged → **delivered**;
1359
+ - **the tracker**, when `tracker.cli` is set — the ticket reports done, and the forge has no open
1360
+ MR/PR carrying it → **delivered**;
1361
+ - **the forge alone** — MRs/PRs carrying the ticket are merged and none is open, with no work and no
1362
+ tracker to say it was the last part → **probably delivered**: said as such, never corrected by
1363
+ `ship`.
1364
+ A delivered item whose state is not done is **stale**, said in one line with its evidence:
1365
+ `stale: <milestone> › <item> still <state> — <TICKET> merged <date>`. One forge query per ticket,
1366
+ only for items that are not done; the commands that report it stay read-only.
1318
1367
 
1319
1368
  **The link.** A work records the item it delivers in `meta.json.roadmap`:
1320
- `{ "path": "<file>", "item": "<the line's text, without checkbox or annotation>", "under": "<heading › heading>" }`
1321
- — or `null`. `$flow-feat-start` sets it: an item the ticket clearly names (its id, or its title
1322
- matching the item's text) is taken in every mode; otherwise `manual` asks once, offering the next
1323
- unchecked items and *none*, and `guided`/`auto`/`unattended` record `null` and say so in one line. A
1324
- work is linked to one item, at any depth: linking a milestone means the work delivers all its
1325
- children.
1369
+ `{ "path": "<file>", "item": "<the item's text, without checkbox, annotation or note>", "under": "<heading › heading>" }`
1370
+ — or `null`. `$flow-feat-start` sets it: an item the ticket clearly names (its id in the item's text
1371
+ or ticket cell, or its title matching the item's text) is taken in every mode; otherwise `manual`
1372
+ asks once, offering the next items and *none*, and `guided`/`auto`/`unattended` record `null` and
1373
+ say so in one line. A work is linked to one item, at any depth: linking a milestone means the work
1374
+ delivers all its items.
1326
1375
 
1327
1376
  **The mark — in the MR/PR, so the roadmap moves with the code and is reviewed with it.** `$flow-feat-ship`
1328
- edits the file in the same commit as the change, and the preview shows the line it will become:
1329
- - **First MR/PR of the work, more to come** → the item stays unchecked and gains
1330
- ` — in progress (<TICKET>)`.
1331
- - **Last MR/PR of the work** (the one that `Closes` the ticket, or a single one) → `- [x]` and the
1332
- annotation becomes ` — done (<TICKET>)`. Every child of a linked milestone is ticked with it;
1333
- a parent checkbox whose children are now all ticked is ticked too, without annotation.
1377
+ edits the file in the same commit as the change, and the preview shows each line it will change,
1378
+ before and after:
1379
+ - **First MR/PR of the work, more to come** → in progress. A checkbox item stays unchecked and gains
1380
+ ` — in progress (<TICKET>)`. A table row gets the file's in-progress word in its state cell.
1381
+ - **Last MR/PR of the work** (the one that `Closes` the ticket, or a single one) → done. A checkbox
1382
+ item becomes `- [x]` and its annotation ` — done (<TICKET>)`; every child of a linked milestone is
1383
+ ticked with it, and a parent checkbox whose children are now all ticked is ticked too, without
1384
+ annotation — unless it states a closing criterion, which flow never marks. A table row gets the
1385
+ file's done word; every row of a linked milestone with it. A milestone itself is never closed by
1386
+ flow when it has a criterion.
1334
1387
  - **Intermediate MRs/PRs of a train** touch nothing: the first one marked the item and the last one
1335
1388
  closes it, so stacked branches never edit the same line twice.
1336
- - Write the annotation's words in the file's language. flow recognises its own annotation as a
1337
- trailing ` — <words> (<ticket>)` and replaces it rather than stacking a second one. The ticket,
1338
- not the MR/PR url: the edit is committed before the MR/PR exists, and the ticket already leads to
1339
- it. A ticket-less work writes its slug.
1389
+ - **A table row is edited in two cells at most, and only there**: the state word — the note after
1390
+ the `:` is kept as the team wrote it, the preview shows it so a note that no longer holds is seen
1391
+ before approval — and the ticket cell, filled with this work's ticket when it is empty. No other
1392
+ cell, row or alignment changes; a cell that grows wider than its column is left so, because
1393
+ realigning would touch every row. A `|` inside a value is written `\|`. Without a ticket column
1394
+ the ticket goes in parentheses after the state word.
1395
+ - **The words are the file's.** A state word is one the column already uses, or — for a state it
1396
+ never uses yet — the one the file's own instructions name, else the plain word in the file's
1397
+ language. flow recognises its checkbox annotation as a trailing ` — <words> (<ticket>)` and
1398
+ replaces it rather than stacking a second one. The ticket, not the MR/PR url: the edit is
1399
+ committed before the MR/PR exists, and the ticket already leads to it. A ticket-less work writes
1400
+ its slug.
1401
+ - **Stale items found on the way** → the same preview offers to correct them in this MR/PR: only
1402
+ items **delivered** by the works or the tracker (never *probably delivered*), only to *done*, by
1403
+ the rules above, each line shown before and after. Not on an intermediate MR/PR of a train.
1340
1404
  - **The item cannot be found** (renamed, moved, deleted since `start`) → do not guess a near match:
1341
1405
  leave the file alone and say so in the ship's stop. **The file is git-ignored** → there is no MR/PR
1342
1406
  to carry it: edit it in place in the main checkout at the same moment, and say so.
1343
- - `roadmap.mark: never` keeps the roadmap read-only — a team document flow only reads.
1407
+ - `roadmap.mark: never` keeps the roadmap read-only — a team document flow only reads. Stale items
1408
+ are still reported.
1344
1409
 
1345
1410
  Bugs do not link: a bug repairs something already delivered, and the roadmap tracks what is still to
1346
1411
  deliver. A bug that *is* a roadmap item is started as a feature.
@@ -119,9 +119,9 @@ Decide first whether **this** MR/PR *completes* the issue: it does when, after i
119
119
  - **`linear`**: `Closes <TICKET>` (Linear id, e.g. `ENG-123`) on the completing MR/PR; nothing on intermediates.
120
120
  - **`none` / empty**: nothing to link.
121
121
 
122
- ### Roadmap mark (only with a linked item)
122
+ ### Roadmap mark (only with a linked item or a stale one)
123
123
 
124
- `meta.json.roadmap` set and `roadmap.mark` not `never` → decide the edit by flow-core §10, with the same *completes / intermediate* answer as the issue link above: the work's first MR/PR with more to come marks the item in progress, the completing one ticks it (with its children, and any parent left with every child ticked), an intermediate one touches nothing. Find the line by its `item` text with flow's annotation stripped; not found → no edit, and the stop says so. Decide it here, show it in the §3 preview, write it in §4.1 — never before approval.
124
+ `meta.json.roadmap` set, or a stale item §10 counts as delivered, and `roadmap.mark` not `never` → decide the edit by flow-core §10, with the same *completes / intermediate* answer as the issue link above: the work's first MR/PR with more to come marks the item in progress, the completing one marks it done (with its children, and any parent left with every child done — never a milestone that states a closing criterion), an intermediate one touches nothing. Find the item by its `item` text with flow's annotation, or a table row's note, stripped; not found → no edit, and the stop says so. In a table, only the state cell and an empty ticket cell change. Not an intermediate MR/PR → also list the **stale items** §10 counts as delivered, to be marked done in the same edit. Decide it here, show it in the §3 preview, write it in §4.1 — never before approval.
125
125
 
126
126
  ### Referencing other MRs/PRs of the plan in the body (never `#<n>`)
127
127
 
@@ -204,7 +204,8 @@ Squash on merge: <git.squash from FLOW.md>
204
204
  Target branch: <git.default_base from FLOW.md, or the parent branch in train mode>
205
205
  Issue link: <keyword that will appear in the body, e.g. "Closes #123" / "Part of #123 (intermediate train PR)" / "none — Jira links by title prefix">
206
206
  Pre-deploy (manual SQL): <"yes — N statements, a blocking thread will be opened" / "not applicable">
207
- Roadmap: <"<line now>" → "<line after>" / "untouched — intermediate MR/PR" / "item not found"> (line only with a linked item)
207
+ Roadmap: <"<line now>" → "<line after>", one pair per line changed / "untouched — intermediate MR/PR" / "item not found"> (line only with a linked item or a stale one)
208
+ <stale items: "<line now>" → "<line after>" — <evidence>; each one can be dropped from the edit> (only if any)
208
209
 
209
210
  Description:
210
211
  <full description rendered exactly as it will appear in the MR/PR>
@@ -157,7 +157,7 @@ Another repo referenced but **no** contract → say so in one line — *"the `<r
157
157
 
158
158
  ## 3.7 Roadmap item
159
159
 
160
- Only when the repo has a roadmap (flow-core §10) and `roadmap.path` is not `none`: link this work to the item it delivers, by §10's rule. A clear match — the item names this ticket's id, or its text is this ticket's title (a ticket-less start drafted from a roadmap item is one) — is taken in every mode, with no question. Otherwise `manual` asks once (header "Roadmap"): the next two or three unchecked items of the current phase, **none** as the last option; `guided`/`auto`/`unattended` record `null` and say in one line that the work is not linked. Never create, rename or reorder an item here: start reads the roadmap, `ship` is the only command that writes it.
160
+ Only when the repo has a roadmap (flow-core §10) and `roadmap.path` is not `none`: link this work to the item it delivers, by §10's rule. A clear match — the item names this ticket's id, in its text or its ticket cell, or its text is this ticket's title (a ticket-less start drafted from a roadmap item is one) — is taken in every mode, with no question. Otherwise `manual` asks once (header "Roadmap"): the next two or three items by §10's *next* rule (dependencies met, not linked by another work), **none** as the last option; an item whose dependencies are not met is never offered, and one the ticket clearly names but that is blocked is linked anyway, with one line naming what it waits on; `guided`/`auto`/`unattended` record `null` and say in one line that the work is not linked. Never create, rename or reorder an item here: start reads the roadmap, `ship` is the only command that writes it.
161
161
 
162
162
  ## 4. Classify size
163
163
 
@@ -81,7 +81,7 @@ Run, deduce, show what was found for confirmation or correction:
81
81
 
82
82
  <!-- stack-detection:end -->
83
83
 
84
- - **Roadmap** (`roadmap.path`, flow-core §10) — a markdown file at the root or under `docs/` with headings and checkbox lines whose name or title says plan, roadmap, phases or milestones, in any language. `ROADMAP.md` or `docs/ROADMAP.md` → nothing to write, it is found by default. Any other → propose its path. Several → ask which one is the project's plan. None → leave the section out.
84
+ - **Roadmap** (`roadmap.path`, flow-core §10) — a markdown file at the root or under `docs/` with headings and either checkbox lines or tables with a state column, whose name or title says plan, roadmap, phases or milestones, in any language. `ROADMAP.md` or `docs/ROADMAP.md`, in any letter case → nothing to write, it is found by default. Tables whose header does not say plainly which column is the state, the ticket and the dependencies → propose `roadmap.columns` with the headers you would map, for confirmation. Any other → propose its path. Several → ask which one is the project's plan. None → leave the section out.
85
85
 
86
86
  ## 3. Ask five things
87
87
 
@@ -32,7 +32,7 @@ runs a phase on its own and never advances `meta.json`.
32
32
  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).
33
33
  3b. `followups[]` across those works **and** their `_archive/*/meta.json`: any entry `accepted` with no `work` started (flow-core §7).
34
34
  4. Is the working tree dirty (`git status --porcelain`)?
35
- 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.
35
+ 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.
36
36
 
37
37
  ## 2. Route
38
38
 
@@ -46,7 +46,7 @@ runs a phase on its own and never advances `meta.json`.
46
46
  | No works at all | "Nothing in flight." | `$flow-feat-start <TICKET>` (or with no ticket, from the conversation) · `$flow-bug-start <TICKET>` |
47
47
 
48
48
  - 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.
49
- - 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.
49
+ - 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.
50
50
  - 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.
51
51
  - 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.
52
52
  - A FLOW layer is present but `$flow-doctor` has never been run in this session and the
@@ -121,7 +121,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
121
121
  "related_repos": [
122
122
  { "repo": "sibling-project", "scope": "what's needed there", "status": "pending" | "in_progress" | "done", "contract_handoff": "none" | "pending" | "published → <location>" }
123
123
  ],
124
- "roadmap": { "path": "ROADMAP.md", "item": "the checkbox line's text", "under": "Phase 2 › Milestone 2.3" } | null,
124
+ "roadmap": { "path": "ROADMAP.md", "item": "the item's text — a checkbox line or a table row", "under": "Phase 2 › Milestone 2.3" } | null,
125
125
  "followups": [
126
126
  { "id": "F1",
127
127
  "kind": "prevention" | "audit" | "out-of-scope" | "risk" | "edge-case" | "other-bug" | "tooling" | "decision",
@@ -166,7 +166,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
166
166
  - **`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.
167
167
  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.
168
168
  - **`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.
169
- - **`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.
169
+ - **`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.
170
170
  - **`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.
171
171
  - **`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.
172
172
  - **`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.
@@ -49,7 +49,7 @@ Every *mine* below — your MRs/PRs, your threads, your tickets — is the **aut
49
49
  - Repo pulse: `git log --oneline --since="<last-session boundary>"` (fallback `-10`) and `git status --short` for uncommitted changes.
50
50
  - Per work: `phase`, `phases_done`, MRs and their `status` (from `meta.json.mrs`), and what was **left pending**.
51
51
  - **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.
52
- - **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.
52
+ - **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.
53
53
  - **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.
54
54
  - **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.
55
55
 
@@ -101,6 +101,7 @@ Turn the *joins* into concrete, **suggested** commands (never act):
101
101
  - Local work `done`/`ship` but its ticket still open in the tracker → divergence to close out.
102
102
  - 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`.
103
103
  - A ticket's **priority was raised** while you were on something else → call out the possible refocus.
104
+ - 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.
104
105
  - `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.
105
106
  - **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.
106
107
  - Uncommitted local changes not reflected in any log/artifact → nudge toward the relevant phase.
@@ -144,10 +145,11 @@ Today
144
145
  <what to resume + what the forge/tracker asks of you, ordered by urgency>
145
146
 
146
147
  Roadmap (only with one)
147
- <phase › milestone — done/total · in progress: item (work) · next: item>
148
+ <phase › milestone — done/total · in progress: item (work) · next: item · blocked: item ← what it waits on>
149
+ <stale: milestone › item still <state> — TICKET merged <date>, one line each — only if any>
148
150
 
149
151
  Blockers / attention
150
- <CI red · reviews awaiting you (latest comment not yours) · stale works (merged on the forge) · divergences · raised priorities — or "none">
152
+ <CI red · reviews awaiting you (latest comment not yours) · stale works (merged on the forge) · stale roadmap items · divergences · raised priorities — or "none">
151
153
 
152
154
  Awaiting others (optional)
153
155
  <threads you already answered, waiting on the reviewer — informational, not yours to act on>
@@ -48,7 +48,7 @@ Waves: Wave 1: #1 ∥ #2 → Wave 2: #3 → Wave 3: #4 ∥ #5 (lin
48
48
  Last updated: <updated_at>
49
49
  Notes: <meta.notes>
50
50
  Cross-repo: <meta.related_repos entries not "done", as "repo: scope"; or "—">
51
- Roadmap: <meta.roadmap: "under › item" — and the project's one line, flow-core §10> (line only with a roadmap)
51
+ Roadmap: <meta.roadmap: "under › item" — and the project's one line, flow-core §10, plus any stale item> (line only with a roadmap)
52
52
  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)
53
53
  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)
54
54
  ```
@@ -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.104.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.105.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
@@ -1291,55 +1291,120 @@ advisory is the one that returns tidier, shorter, worse code — and it returns
1291
1291
 
1292
1292
  A ticket is the largest thing a work knows about: it splits into MRs/PRs (`04-mr-plan.md`), and
1293
1293
  nothing sits above it. A project that is being built in phases usually keeps that plan in a markdown
1294
- file — phases, milestones, sub-milestones, tasks with checkboxes — and without this section no
1295
- command reads it unless told to, `next` cannot say where the project stands, and nobody ticks off
1296
- what an MR/PR delivered.
1294
+ file — phases, milestones, the deliverables of each — and without this section no command reads it
1295
+ unless told to, `next` cannot say where the project stands, and nobody marks what an MR/PR delivered.
1297
1296
 
1298
1297
  **The file.** `roadmap.path` in `FLOW.md`; `none` turns the whole section off. Empty → `ROADMAP.md`
1299
- at the repo root, then `docs/ROADMAP.md`, and either counts only if it holds at least one checkbox
1300
- line (`- [ ]` / `- [x]`). Nothing found → there is no roadmap, and every command below behaves as
1301
- before, silently. A tracked file is read **here** (it is this branch's version); a git-ignored one
1302
- from the main checkout, by §0's rule.
1303
-
1304
- **Its shape is the author's, not flow's.** Headings are phases and milestones, at whatever depth the
1305
- file uses; a checkbox line is a task; a checkbox line with checkbox children is a milestone made of
1306
- those children. flow never rewrites the structure, renumbers, reorders or adds headings — it touches
1307
- exactly two things: a checkbox, and a short annotation at the end of the line it ticks.
1298
+ at the repo root, then `docs/ROADMAP.md`, either name in any letter case, and either counts only if
1299
+ it holds at least one item in one of the two notations below. Nothing found → there is no roadmap,
1300
+ and every command below behaves as before, silently. A tracked file is read **here** (it is this
1301
+ branch's version); a git-ignored one from the main checkout, by §0's rule.
1302
+
1303
+ **Its shape is the author's, not flow's.** flow never rewrites the structure, renumbers, reorders,
1304
+ adds headings, rows or columns, or realigns a table. What it reads is a set of items, each with a
1305
+ text, a state (*pending*, *in progress* or *done*), an optional note, its ticket(s) and its
1306
+ dependencies, grouped under milestones. Two notations carry them, and one file may use both:
1307
+
1308
+ - **Checkboxes.** A checkbox line (`- [ ]` / `- [x]`) is an item: `[x]` is done, flow's trailing
1309
+ annotation (below) says in progress, anything else is pending. A checkbox line with checkbox
1310
+ children is a milestone made of those children. Checkbox items have no dependencies but their
1311
+ order.
1312
+ - **Tables.** A markdown table whose header has a **state** column holds one item per row. The
1313
+ column roles are read off the header, in the file's language: *state* (status, estado…),
1314
+ *ticket* (issue, ticket…), *dependencies* (depends on, after, depende de…), and the item's text in
1315
+ the first remaining column. `roadmap.columns` names them when the header is ambiguous —
1316
+ `state=<header>, ticket=<header>, depends=<header>`. A state cell is a state word, optionally
1317
+ followed by `:` and a free note the team wrote; the state is read from the word alone, against the
1318
+ words the file itself uses (done / in progress / pending, in its language). A word flow cannot
1319
+ place is shown as it is and counted as pending.
1320
+
1321
+ **Milestones.** The headings that hold items are the phases and milestones, at whatever depth the
1322
+ file uses. When the file has an **order table** — a table whose rows name the other sections
1323
+ (`H1`, `Phase 2`, a heading's text) — only the sections it lists are milestones, and its own
1324
+ dependency column is the milestones' dependencies; a section with items that it does not list is
1325
+ **side work** (work that is not code, a parallel track): counted and shown, never proposed as next.
1326
+ A milestone may state its **closing criterion** in prose — a line such as `Done when: …` / `Terminado
1327
+ cuando: …` right under its heading. flow never judges prose, so a milestone with a criterion is
1328
+ closed **only when the file says so**: a done state for it in the order table, or a checked checkbox
1329
+ on the criterion line. One without a criterion is closed when every item in it is done.
1330
+
1331
+ **Dependencies.** An item's dependency cell names other items or milestones — by their text, their
1332
+ ticket, or the milestone's id or heading — and an item inherits its milestone's dependencies. A
1333
+ dependency is **met** when the item it names is done, or the milestone it names is closed. A name
1334
+ that resolves to nothing is **unmet**, and is said as such: flow never guesses a near match.
1308
1335
 
1309
1336
  **Where the project stands** — computed the same way by `next`, `daily` and `resume`:
1310
- - **Current phase**: the first heading, in file order, that still holds an unchecked item.
1311
- - **In progress**: unchecked items an open work links (below), or that carry flow's in-progress
1312
- annotation.
1313
- - **Next**: the first unchecked item of the current phase that is neither — a leaf, not a milestone
1314
- whose children are listed.
1337
+ - **Current phase**: the first milestone, in file order, that is not closed.
1338
+ - **In progress**: items an open work links (below), or whose state is in progress.
1339
+ - **Next**: the first pending item, in file order across the whole file, whose dependencies are all
1340
+ met and that no open work links — a leaf, not a milestone whose children are listed, and never
1341
+ side work. Without dependencies this is the first pending item of the current phase, as order
1342
+ alone always said.
1343
+ - **Blocked**: the pending items ahead of *next* that wait on something, each with what it waits on;
1344
+ a milestone whose items are all done but whose criterion is not marked is named with its criterion.
1345
+ - **Stale**: items whose work has already merged while their state still says otherwise (below).
1315
1346
  - Said in one line: `Roadmap: <phase> › <milestone> — <done>/<total> · in progress: <item> (<work>) ·
1316
- next: <item>`. Counts are the checkboxes under the current phase. All done → `Roadmap: complete`.
1347
+ next: <item> · blocked: <item> ← <what it waits on>`, the last part only when something ahead of
1348
+ *next* is blocked; a milestone waiting on its criterion reads `<milestone>: items done — criterion
1349
+ not marked: "<criterion>"`. Counts are the items under the current phase. Every milestone closed →
1350
+ `Roadmap: complete`.
1351
+
1352
+ **Stale items — the merge that never reached the file.** An item can stay *in progress* or *pending*
1353
+ after the work that delivers it merged: a part shipped outside flow, a train whose closing MR/PR was
1354
+ merged by hand, a deliverable split across several tickets. `next`, `daily` and `resume` check every
1355
+ item that is not done and names a ticket, or that an open or archived work links, against:
1356
+ - **the works** — a live or `_archive/` work linking the item (or carrying its ticket) whose
1357
+ `phase` is `done`, or whose `mrs[]` are all merged → **delivered**;
1358
+ - **the tracker**, when `tracker.cli` is set — the ticket reports done, and the forge has no open
1359
+ MR/PR carrying it → **delivered**;
1360
+ - **the forge alone** — MRs/PRs carrying the ticket are merged and none is open, with no work and no
1361
+ tracker to say it was the last part → **probably delivered**: said as such, never corrected by
1362
+ `ship`.
1363
+ A delivered item whose state is not done is **stale**, said in one line with its evidence:
1364
+ `stale: <milestone> › <item> still <state> — <TICKET> merged <date>`. One forge query per ticket,
1365
+ only for items that are not done; the commands that report it stay read-only.
1317
1366
 
1318
1367
  **The link.** A work records the item it delivers in `meta.json.roadmap`:
1319
- `{ "path": "<file>", "item": "<the line's text, without checkbox or annotation>", "under": "<heading › heading>" }`
1320
- — or `null`. `/flow:feat:start` sets it: an item the ticket clearly names (its id, or its title
1321
- matching the item's text) is taken in every mode; otherwise `manual` asks once, offering the next
1322
- unchecked items and *none*, and `guided`/`auto`/`unattended` record `null` and say so in one line. A
1323
- work is linked to one item, at any depth: linking a milestone means the work delivers all its
1324
- children.
1368
+ `{ "path": "<file>", "item": "<the item's text, without checkbox, annotation or note>", "under": "<heading › heading>" }`
1369
+ — or `null`. `/flow:feat:start` sets it: an item the ticket clearly names (its id in the item's text
1370
+ or ticket cell, or its title matching the item's text) is taken in every mode; otherwise `manual`
1371
+ asks once, offering the next items and *none*, and `guided`/`auto`/`unattended` record `null` and
1372
+ say so in one line. A work is linked to one item, at any depth: linking a milestone means the work
1373
+ delivers all its items.
1325
1374
 
1326
1375
  **The mark — in the MR/PR, so the roadmap moves with the code and is reviewed with it.** `/flow:feat:ship`
1327
- edits the file in the same commit as the change, and the preview shows the line it will become:
1328
- - **First MR/PR of the work, more to come** → the item stays unchecked and gains
1329
- ` — in progress (<TICKET>)`.
1330
- - **Last MR/PR of the work** (the one that `Closes` the ticket, or a single one) → `- [x]` and the
1331
- annotation becomes ` — done (<TICKET>)`. Every child of a linked milestone is ticked with it;
1332
- a parent checkbox whose children are now all ticked is ticked too, without annotation.
1376
+ edits the file in the same commit as the change, and the preview shows each line it will change,
1377
+ before and after:
1378
+ - **First MR/PR of the work, more to come** → in progress. A checkbox item stays unchecked and gains
1379
+ ` — in progress (<TICKET>)`. A table row gets the file's in-progress word in its state cell.
1380
+ - **Last MR/PR of the work** (the one that `Closes` the ticket, or a single one) → done. A checkbox
1381
+ item becomes `- [x]` and its annotation ` — done (<TICKET>)`; every child of a linked milestone is
1382
+ ticked with it, and a parent checkbox whose children are now all ticked is ticked too, without
1383
+ annotation — unless it states a closing criterion, which flow never marks. A table row gets the
1384
+ file's done word; every row of a linked milestone with it. A milestone itself is never closed by
1385
+ flow when it has a criterion.
1333
1386
  - **Intermediate MRs/PRs of a train** touch nothing: the first one marked the item and the last one
1334
1387
  closes it, so stacked branches never edit the same line twice.
1335
- - Write the annotation's words in the file's language. flow recognises its own annotation as a
1336
- trailing ` — <words> (<ticket>)` and replaces it rather than stacking a second one. The ticket,
1337
- not the MR/PR url: the edit is committed before the MR/PR exists, and the ticket already leads to
1338
- it. A ticket-less work writes its slug.
1388
+ - **A table row is edited in two cells at most, and only there**: the state word — the note after
1389
+ the `:` is kept as the team wrote it, the preview shows it so a note that no longer holds is seen
1390
+ before approval — and the ticket cell, filled with this work's ticket when it is empty. No other
1391
+ cell, row or alignment changes; a cell that grows wider than its column is left so, because
1392
+ realigning would touch every row. A `|` inside a value is written `\|`. Without a ticket column
1393
+ the ticket goes in parentheses after the state word.
1394
+ - **The words are the file's.** A state word is one the column already uses, or — for a state it
1395
+ never uses yet — the one the file's own instructions name, else the plain word in the file's
1396
+ language. flow recognises its checkbox annotation as a trailing ` — <words> (<ticket>)` and
1397
+ replaces it rather than stacking a second one. The ticket, not the MR/PR url: the edit is
1398
+ committed before the MR/PR exists, and the ticket already leads to it. A ticket-less work writes
1399
+ its slug.
1400
+ - **Stale items found on the way** → the same preview offers to correct them in this MR/PR: only
1401
+ items **delivered** by the works or the tracker (never *probably delivered*), only to *done*, by
1402
+ the rules above, each line shown before and after. Not on an intermediate MR/PR of a train.
1339
1403
  - **The item cannot be found** (renamed, moved, deleted since `start`) → do not guess a near match:
1340
1404
  leave the file alone and say so in the ship's stop. **The file is git-ignored** → there is no MR/PR
1341
1405
  to carry it: edit it in place in the main checkout at the same moment, and say so.
1342
- - `roadmap.mark: never` keeps the roadmap read-only — a team document flow only reads.
1406
+ - `roadmap.mark: never` keeps the roadmap read-only — a team document flow only reads. Stale items
1407
+ are still reported.
1343
1408
 
1344
1409
  Bugs do not link: a bug repairs something already delivered, and the roadmap tracks what is still to
1345
1410
  deliver. A bug that *is* a roadmap item is started as a feature.
@@ -115,9 +115,9 @@ Decide first whether **this** MR/PR *completes* the issue: it does when, after i
115
115
  - **`linear`**: `Closes <TICKET>` (Linear id, e.g. `ENG-123`) on the completing MR/PR; nothing on intermediates.
116
116
  - **`none` / empty**: nothing to link.
117
117
 
118
- ### Roadmap mark (only with a linked item)
118
+ ### Roadmap mark (only with a linked item or a stale one)
119
119
 
120
- `meta.json.roadmap` set and `roadmap.mark` not `never` → decide the edit by flow-core §10, with the same *completes / intermediate* answer as the issue link above: the work's first MR/PR with more to come marks the item in progress, the completing one ticks it (with its children, and any parent left with every child ticked), an intermediate one touches nothing. Find the line by its `item` text with flow's annotation stripped; not found → no edit, and the stop says so. Decide it here, show it in the §3 preview, write it in §4.1 — never before approval.
120
+ `meta.json.roadmap` set, or a stale item §10 counts as delivered, and `roadmap.mark` not `never` → decide the edit by flow-core §10, with the same *completes / intermediate* answer as the issue link above: the work's first MR/PR with more to come marks the item in progress, the completing one marks it done (with its children, and any parent left with every child done — never a milestone that states a closing criterion), an intermediate one touches nothing. Find the item by its `item` text with flow's annotation, or a table row's note, stripped; not found → no edit, and the stop says so. In a table, only the state cell and an empty ticket cell change. Not an intermediate MR/PR → also list the **stale items** §10 counts as delivered, to be marked done in the same edit. Decide it here, show it in the §3 preview, write it in §4.1 — never before approval.
121
121
 
122
122
  ### Referencing other MRs/PRs of the plan in the body (never `#<n>`)
123
123
 
@@ -200,7 +200,8 @@ Squash on merge: <git.squash from FLOW.md>
200
200
  Target branch: <git.default_base from FLOW.md, or the parent branch in train mode>
201
201
  Issue link: <keyword that will appear in the body, e.g. "Closes #123" / "Part of #123 (intermediate train PR)" / "none — Jira links by title prefix">
202
202
  Pre-deploy (manual SQL): <"yes — N statements, a blocking thread will be opened" / "not applicable">
203
- Roadmap: <"<line now>" → "<line after>" / "untouched — intermediate MR/PR" / "item not found"> (line only with a linked item)
203
+ Roadmap: <"<line now>" → "<line after>", one pair per line changed / "untouched — intermediate MR/PR" / "item not found"> (line only with a linked item or a stale one)
204
+ <stale items: "<line now>" → "<line after>" — <evidence>; each one can be dropped from the edit> (only if any)
204
205
 
205
206
  Description:
206
207
  <full description rendered exactly as it will appear in the MR/PR>
@@ -153,7 +153,7 @@ Another repo referenced but **no** contract → say so in one line — *"the `<r
153
153
 
154
154
  ## 3.7 Roadmap item
155
155
 
156
- Only when the repo has a roadmap (flow-core §10) and `roadmap.path` is not `none`: link this work to the item it delivers, by §10's rule. A clear match — the item names this ticket's id, or its text is this ticket's title (a ticket-less start drafted from a roadmap item is one) — is taken in every mode, with no question. Otherwise `manual` asks once (header "Roadmap"): the next two or three unchecked items of the current phase, **none** as the last option; `guided`/`auto`/`unattended` record `null` and say in one line that the work is not linked. Never create, rename or reorder an item here: start reads the roadmap, `ship` is the only command that writes it.
156
+ Only when the repo has a roadmap (flow-core §10) and `roadmap.path` is not `none`: link this work to the item it delivers, by §10's rule. A clear match — the item names this ticket's id, in its text or its ticket cell, or its text is this ticket's title (a ticket-less start drafted from a roadmap item is one) — is taken in every mode, with no question. Otherwise `manual` asks once (header "Roadmap"): the next two or three items by §10's *next* rule (dependencies met, not linked by another work), **none** as the last option; an item whose dependencies are not met is never offered, and one the ticket clearly names but that is blocked is linked anyway, with one line naming what it waits on; `guided`/`auto`/`unattended` record `null` and say in one line that the work is not linked. Never create, rename or reorder an item here: start reads the roadmap, `ship` is the only command that writes it.
157
157
 
158
158
  ## 4. Classify size
159
159
 
@@ -77,7 +77,7 @@ Run, deduce, show what was found for confirmation or correction:
77
77
 
78
78
  <!-- stack-detection:end -->
79
79
 
80
- - **Roadmap** (`roadmap.path`, flow-core §10) — a markdown file at the root or under `docs/` with headings and checkbox lines whose name or title says plan, roadmap, phases or milestones, in any language. `ROADMAP.md` or `docs/ROADMAP.md` → nothing to write, it is found by default. Any other → propose its path. Several → ask which one is the project's plan. None → leave the section out.
80
+ - **Roadmap** (`roadmap.path`, flow-core §10) — a markdown file at the root or under `docs/` with headings and either checkbox lines or tables with a state column, whose name or title says plan, roadmap, phases or milestones, in any language. `ROADMAP.md` or `docs/ROADMAP.md`, in any letter case → nothing to write, it is found by default. Tables whose header does not say plainly which column is the state, the ticket and the dependencies → propose `roadmap.columns` with the headers you would map, for confirmation. Any other → propose its path. Several → ask which one is the project's plan. None → leave the section out.
81
81
 
82
82
  ## 3. Ask five things
83
83
 
@@ -28,7 +28,7 @@ runs a phase on its own and never advances `meta.json`.
28
28
  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).
29
29
  3b. `followups[]` across those works **and** their `_archive/*/meta.json`: any entry `accepted` with no `work` started (flow-core §7).
30
30
  4. Is the working tree dirty (`git status --porcelain`)?
31
- 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.
31
+ 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.
32
32
 
33
33
  ## 2. Route
34
34
 
@@ -42,7 +42,7 @@ runs a phase on its own and never advances `meta.json`.
42
42
  | No works at all | "Nothing in flight." | `/flow:feat:start <TICKET>` (or with no ticket, from the conversation) · `/flow:bug:start <TICKET>` |
43
43
 
44
44
  - 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.
45
- - 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
+ - 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.
46
46
  - 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.
47
47
  - 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.
48
48
  - A FLOW layer is present but `/flow:doctor` has never been run in this session and the
@@ -117,7 +117,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
117
117
  "related_repos": [
118
118
  { "repo": "sibling-project", "scope": "what's needed there", "status": "pending" | "in_progress" | "done", "contract_handoff": "none" | "pending" | "published → <location>" }
119
119
  ],
120
- "roadmap": { "path": "ROADMAP.md", "item": "the checkbox line's text", "under": "Phase 2 › Milestone 2.3" } | null,
120
+ "roadmap": { "path": "ROADMAP.md", "item": "the item's text — a checkbox line or a table row", "under": "Phase 2 › Milestone 2.3" } | null,
121
121
  "followups": [
122
122
  { "id": "F1",
123
123
  "kind": "prevention" | "audit" | "out-of-scope" | "risk" | "edge-case" | "other-bug" | "tooling" | "decision",
@@ -162,7 +162,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
162
162
  - **`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.
163
163
  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.
164
164
  - **`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.
165
- - **`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.
165
+ - **`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.
166
166
  - **`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
167
  - **`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
168
  - **`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.