flow-workflows 0.117.0 → 0.118.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/adapters/codex/CORE.md +79 -17
  2. package/adapters/codex/skills/flow-bug-start/SKILL.md +5 -5
  3. package/adapters/codex/skills/flow-doctor/SKILL.md +1 -1
  4. package/adapters/codex/skills/flow-feat-ship/SKILL.md +1 -1
  5. package/adapters/codex/skills/flow-feat-start/SKILL.md +8 -6
  6. package/adapters/codex/skills/flow-next/SKILL.md +2 -1
  7. package/adapters/codex/skills/flow-work-abandon/SKILL.md +1 -1
  8. package/adapters/codex/skills/flow-work-daily/SKILL.md +2 -1
  9. package/adapters/codex/skills/flow-work-handoff/SKILL.md +57 -7
  10. package/adapters/codex/skills/flow-work-resume/SKILL.md +1 -1
  11. package/adapters/codex/skills/flow-work-run/SKILL.md +3 -2
  12. package/adapters/codex/skills/flow-work-watch/SKILL.md +1 -1
  13. package/adapters/gemini/CORE.md +79 -17
  14. package/adapters/gemini/commands/flow/bug/start.toml +5 -5
  15. package/adapters/gemini/commands/flow/doctor.toml +1 -1
  16. package/adapters/gemini/commands/flow/feat/ship.toml +1 -1
  17. package/adapters/gemini/commands/flow/feat/start.toml +8 -6
  18. package/adapters/gemini/commands/flow/next.toml +2 -1
  19. package/adapters/gemini/commands/flow/work/abandon.toml +1 -1
  20. package/adapters/gemini/commands/flow/work/daily.toml +2 -1
  21. package/adapters/gemini/commands/flow/work/handoff.toml +57 -7
  22. package/adapters/gemini/commands/flow/work/resume.toml +1 -1
  23. package/adapters/gemini/commands/flow/work/run.toml +3 -2
  24. package/adapters/gemini/commands/flow/work/watch.toml +1 -1
  25. package/adapters/hermes/CORE.md +79 -17
  26. package/adapters/hermes/skills/flow-bug-start/SKILL.md +5 -5
  27. package/adapters/hermes/skills/flow-doctor/SKILL.md +1 -1
  28. package/adapters/hermes/skills/flow-feat-ship/SKILL.md +1 -1
  29. package/adapters/hermes/skills/flow-feat-start/SKILL.md +8 -6
  30. package/adapters/hermes/skills/flow-next/SKILL.md +2 -1
  31. package/adapters/hermes/skills/flow-work-abandon/SKILL.md +1 -1
  32. package/adapters/hermes/skills/flow-work-daily/SKILL.md +2 -1
  33. package/adapters/hermes/skills/flow-work-handoff/SKILL.md +57 -7
  34. package/adapters/hermes/skills/flow-work-resume/SKILL.md +1 -1
  35. package/adapters/hermes/skills/flow-work-run/SKILL.md +3 -2
  36. package/adapters/hermes/skills/flow-work-watch/SKILL.md +1 -1
  37. package/adapters/opencode/CORE.md +79 -17
  38. package/adapters/opencode/commands/flow-bug-start.md +5 -5
  39. package/adapters/opencode/commands/flow-doctor.md +1 -1
  40. package/adapters/opencode/commands/flow-feat-ship.md +1 -1
  41. package/adapters/opencode/commands/flow-feat-start.md +8 -6
  42. package/adapters/opencode/commands/flow-next.md +2 -1
  43. package/adapters/opencode/commands/flow-work-abandon.md +1 -1
  44. package/adapters/opencode/commands/flow-work-daily.md +2 -1
  45. package/adapters/opencode/commands/flow-work-handoff.md +57 -7
  46. package/adapters/opencode/commands/flow-work-resume.md +1 -1
  47. package/adapters/opencode/commands/flow-work-run.md +3 -2
  48. package/adapters/opencode/commands/flow-work-watch.md +1 -1
  49. package/package.json +1 -1
  50. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  51. package/plugins/flow/CHANGELOG.md +32 -0
  52. package/plugins/flow/examples/FLOW.template.md +1 -1
@@ -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.117.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.118.1`.** Compare it once, at the start of the session, against
20
20
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
21
21
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
22
22
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -100,6 +100,23 @@ a command relies on is simply absent in that session, and nothing else will repo
100
100
  `meta.json` in those folders (`_archive/` excluded) whose `branch` or any `mrs[].branch` equals
101
101
  `git branch --show-current`, or whose `worktree` equals `git rev-parse --show-toplevel`. The
102
102
  SessionStart hook matches the same way.
103
+ - **The ticket has one form, and `meta.json.ticket` holds it.** A person types an issue however it
104
+ comes to hand — `54`, `#54`, `owner/repo#54`, the issue's URL — and every `{TICKET}` downstream
105
+ (a branch, a handoff branch, `Closes #<N>`, a tracker command, the unattended run's lookup by
106
+ `number`) needs one value. **A reference to an issue of this repository** — the one `origin`
107
+ names, host and path compared without case — **is its bare number**, leading zeros dropped (a
108
+ bare `054` too):
109
+ `#054`, `owner/repo#54`, `…/issues/54`, `…/-/issues/54` and `…/-/work_items/54` all become `54`,
110
+ whatever `tracker.tool` says. **Anything else is kept as typed**, only its ends trimmed: a slug,
111
+ a Jira or Linear key (`MT-123`), a free-form id, another repository's reference. Where a value
112
+ meets a shell or names a branch it must match `[A-Za-z0-9][A-Za-z0-9._-]*` — the rule
113
+ `ticket_deps` already applies — so a pull or merge request (`/pull/54`, `!54`), another
114
+ repository's reference or an id with a space inside is refused there — by `start` before a
115
+ branch or folder exists, by the handoff before a push — never stripped into something else. `start` stores this form (an issue it creates included: the number of the URL
116
+ the tracker prints); every lookup by a ticket — `start`'s duplicate check, `/flow-work-run`, a
117
+ ticket typed to `resume` or `watch`, a roadmap row's ticket cell (§10.1) — compares canonical forms on both sides, and
118
+ `/flow-work-handoff`'s resolve block canonicalises whatever `meta.json` holds, so a work stored
119
+ as `#54` is still found and still handed off to `…/54`.
103
120
  - **A fenced block in a FLOW file is an example, and an example is not configuration.** These
104
121
  files are prose with keys in them, and the rule that decides what a key *is* — a `- key:` line
105
122
  under a `## section` — knows nothing about triple backticks. So a block written to be pasted
@@ -715,8 +732,13 @@ user answers the harness's question tool (`AskUserQuestion`, Codex's `request_us
715
732
  input holds a `decision`, the hook copies the input aside as answered (`panel-answered.json`) and
716
733
  renders: while the input is still that copy, its `decision` and `wait` claim nobody. Your input is
717
734
  never rewritten — the next one you write is newer than the answer and asks again. A question left
718
- unanswered, rejected or timed out changes nothing. The hook cannot reach
719
- the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
735
+ unanswered, rejected or timed out changes nothing. That render reaches `panel.json` and
736
+ `panel.publish_cmd` only — a terminal holding the pane over its MCP reads neither (§4.2) — so under
737
+ Claude Code the hook also prints, after the answer, a reminder addressed to you: where the panel
738
+ goes over the terminal's MCP or to the control-room card, republish now, without the `decision`. That republish is yours (§4.4 e). On a branch that names no work — a session
739
+ in the main checkout driving a sibling worktree — the reminder names no work and nothing is copied:
740
+ every session there reports the same checkout and branch, and the hook cannot tell whose work is
741
+ whose.
720
742
 
721
743
  **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
722
744
  document — → write the §4.1 document yourself, once, by its rules, and say so at the next stop:
@@ -734,11 +756,12 @@ instead of it.
734
756
 
735
757
  **Look for the tools before you conclude they are missing**, once per session, in pre-flight. A
736
758
  harness namespaces an MCP server's tools, so what you are looking for is a tool whose name *ends* in
737
- `panel_set` — `mcp__panel__panel_set` on Claude Code, another prefix elsewhere. It may also be
759
+ `panel_set` — `mcp__ivy__panel_set` on Claude Code inside an Ivy pane, another prefix elsewhere. It may also be
738
760
  **deferred**: listed by name with no schema, uncallable until you load it, and indistinguishable from
739
761
  absent unless you read that list. A deferred tool is a tool that is there; load the schemas and
740
- publish. A tool that answers that this console is not one of its panes → the file is the transport
741
- for the rest of the session.
762
+ publish. With the project plan on (§10.1), the same lookup loads the tools ending in `plan_get` and
763
+ `plan_set`: a session that loads only the panel tools is one that never publishes the plan. A `panel_get` that answers is the proof that the channel works; a tool that answers that
764
+ this console is not one of its panes → the file is the transport for the rest of the session.
742
765
 
743
766
  ### 4.1 The document — what the CLI prints, and what you write when it cannot
744
767
 
@@ -805,6 +828,17 @@ writes it, and drops it from a document it read back with `panel_get` before pub
805
828
  - **A hook cannot call these tools.** Where the reader is a terminal like this one, the person sets
806
829
  `panel.publish_cmd`, in a git-ignored FLOW file, to whatever command that terminal offers for
807
830
  publishing a document from a shell; the CLI pipes every render into it, the hook's included.
831
+ A terminal may still refuse that shell publication while the agent holds the pane: then the
832
+ agent is the only party that can clear a claim, and the hook's reminder after an answer (§4) is
833
+ what tells it to.
834
+ - **The rest of the terminal's MCP — what flow does with it.** `plan_set` / `plan_get` publish the
835
+ roadmap as the project's plan (§10.1); `plan_retire` is the person's. `panel_retire` is never
836
+ called: it removes the document and its `done` — the closing signal the person reads when they
837
+ come back — and also closes the auxiliary consoles of the connection, and the terminal admits it
838
+ only from the connection that holds the pane, as the end of that session, not of a work.
839
+ `split_open` / `split_read` / `split_close` are never called: flow delegates to subagents, whose
840
+ results come back as files it can read, never to consoles beside the pane, whose handle stops
841
+ answering the moment the person types into them.
808
842
  - **Optional — buttons at a stop.** At a stop parked on the user, `actions` (up to 8) paint a button
809
843
  whose command is written into this pane's program on one click — this very session's prompt. Add
810
844
  them to the printed document before `panel_set`: `{"label": "Approve the design", "send":
@@ -825,8 +859,11 @@ halfway is not shown as finished. When the stretch will outlast the ~30 min stal
825
859
  `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
826
860
  work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
827
861
  already answered is worse than one that never asked. Where the hook runs, an answer
828
- given through the question tool already did it; a question asked in prose, or a gate cleared
829
- another way, did not; (f) **each plan step that lands** — tick it in
862
+ given through the question tool already rendered the files of the work your branch names (on a
863
+ branch that names none, nothing — §4) — but over the terminal's MCP the claim goes only when you
864
+ republish, so that republish is **the first call after the answer**, before any
865
+ work (the hook's output says so under Claude Code). A question asked in prose, or a gate cleared
866
+ another way, rendered nothing; (f) **each plan step that lands** — tick it in
830
867
  the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
831
868
  and the input change already rendered it; publish over the tools anyway when they are there.
832
869
 
@@ -1592,20 +1629,45 @@ after they compute where the project stands, `/flow-feat-start` after it links t
1592
1629
  `/flow-feat-ship` right after it commits a roadmap edit — the branch's file, as the MR/PR carries
1593
1630
  it. That is on purpose: the board shows the deliverable moving the moment its MR/PR says so, and a
1594
1631
  later `next` or `daily` run from a checkout that has not merged it yet publishes that checkout's
1595
- file again — each publication is the file it was read from, never a merge of several. First `plan_get`: the same document → nothing to send. Otherwise one `plan_set` with the
1596
- document and `repo` the checkout the file was read from.
1632
+ file again — each publication is the file it was read from, never a merge of several.
1633
+
1634
+ **Publishing is its own step, done in this order — never a clause folded into the roadmap
1635
+ summary.** Read as an afterthought, it was skipped: consoles of a repo with `roadmap.path` set
1636
+ published their panel dozens of times inside the terminal and never once called `plan_get` — one
1637
+ loaded the plan tools and still never called them — so the board said *no roadmap* for a project
1638
+ whose file flow read at every start.
1639
+
1640
+ 1. **Load the tools.** In the same lookup as the panel tools (§4): the tools whose names end in
1641
+ `plan_get` and `plan_set`, loading their schemas when they are deferred. Absent, or a tool
1642
+ answering that this console is not one of its panes → the plan is off for this session, and
1643
+ nothing is said.
1644
+ 2. **Translate** the file just read into the document above.
1645
+ 3. **`plan_get`.** The same document → nothing to send. Otherwise one `plan_set` with the document
1646
+ and `repo` the checkout the file was read from.
1647
+ 4. **Place this console** — only from a work's checkout (`start`, `ship`), by the rule below, and
1648
+ before the first panel that follows, so that panel already carries the place.
1649
+ 5. **Say it.** The stop of the command that published carries one line: `plan: published` ·
1650
+ `plan: unchanged` · `plan: <error>`. A plan that is on and has no line at the stop is a step that
1651
+ was skipped.
1597
1652
 
1598
1653
  **Where this console works.** The same moment, from a work's checkout (`start`, `ship`): the rows
1599
- whose ticket cell names `meta.json.ticket` decide it. One row → write its milestone's `id` and the
1654
+ whose ticket cell names `meta.json.ticket`, both in canonical form (§0, the ticket), decide it. One row → write its milestone's `id` and the
1600
1655
  row's `id` into `meta.json.roadmap` as `milestone` and `deliverable`; several → the one
1601
- `meta.json.roadmap.item` names, else `milestone` alone when they share one, else neither. No row →
1602
- neither, and remove them if an earlier publication wrote them: the panel then carries no place, and
1603
- the board shows the console off the plan, which is what it is. The panel CLI copies the two fields
1604
- from `meta.json` into every render (§4.1); nothing else sets them.
1656
+ `meta.json.roadmap.item` names, else `milestone` alone when they share one, else neither. **No row
1657
+ → the row the work is linked to** (`meta.json.roadmap.item` under `under`, §10), when the file still
1658
+ has it: its milestone's `id` as `milestone`, and the row's `id` as `deliverable` only when the
1659
+ translation gave it one. A row is usually ticket-less exactly when its work starts — the ticket is
1660
+ created for it — so this is the common case, not the edge: the console sits inside its milestone
1661
+ from the first panel, and on its deliverable once `ship` fills the ticket cell and places it again.
1662
+ Never an `id` invented from the work's ticket: each publication replaces the whole plan, and an id
1663
+ that one checkout writes and another does not would come and go. Neither found → neither, and
1664
+ remove them if an earlier publication wrote them: the panel then carries no place, and the board
1665
+ shows the console off the plan, which is what it is. The panel CLI copies the two fields from
1666
+ `meta.json` into every render (§4.1); nothing else sets them.
1605
1667
 
1606
1668
  **Failure never stops a phase.** A refusal, a malformed reply or a tool that errors → no retry; the
1607
- next stop carries one line, `plan: <error>`, once per session. `plan_retire` is the person's: flow
1608
- never retires a plan.
1669
+ stop's line is `plan: <error>`, once per session. `plan_retire` is the person's: flow never retires
1670
+ a plan.
1609
1671
 
1610
1672
  ## 11. A red test outside the change — find the cause before it is excused
1611
1673
 
@@ -46,8 +46,8 @@ Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, mo
46
46
  **In `unattended`, before this phase's first step, read flow-core §2.1 whole — from its heading to the next section, unless it is already in your context whole; having read parts of it does not count** — the orchestrator command, the question stop and the way its answer comes back are all in it, and a phase that reads only part of it skips them.
47
47
 
48
48
  - Verify you are in the correct repo.
49
- - **Determine the mode** from `$ARGUMENTS` (`--study` already taken out): non-empty → *ticket mode* (identifier = `$ARGUMENTS`); empty → *ticket-less mode* (identifier = the slug resolved in §1.5).
50
- - Once the identifier is known, check whether the work already exists: in both work-folder locations (flow-core §0); ticket mode → glob `.claude/work/<TICKET>/` and `.claude/work/<TICKET>-*/` for a `meta.json` whose `ticket` equals `<TICKET>`; ticket-less → `.claude/work/<slug>/meta.json`, right after §1.5.2 decides the slug. If one exists, suggest `/flow-work-resume`.
49
+ - **Determine the mode** from `$ARGUMENTS` (`--study` already taken out): non-empty → *ticket mode* (identifier = the canonical ticket of `$ARGUMENTS`, flow-core §0 — `#54`, `owner/repo#54` or this repository's issue URL is `54`; anything else as typed — and one that cannot name a branch or a folder (`[A-Za-z0-9][A-Za-z0-9._-]*`: another repository's reference, a PR/MR, a space inside) → refuse in one line, before any branch or folder exists); empty → *ticket-less mode* (identifier = the slug resolved in §1.5).
50
+ - Once the identifier is known, check whether the work already exists: in both work-folder locations (flow-core §0); ticket mode → every `meta.json` in those folders (`_archive/` excluded) whose `ticket`, put in the same canonical form, equals `<TICKET>` — never narrowed by folder name first: a work stored as `#54` lives in `#54-<slug>/` and is the work for `54`; ticket-less → `.claude/work/<slug>/meta.json`, right after §1.5.2 decides the slug. If one exists, suggest `/flow-work-resume`.
51
51
  - This command **creates** `00-summary.md` (§4); there is nothing to read yet.
52
52
 
53
53
  **Work directory naming.** The work lives in `.claude/work/<work-dir>/`. `meta.json.ticket` stays the **pure identifier** (the real ticket id, or the slug in ticket-less local-only) — it feeds the tracker view, the issue link and `{TICKET}` in the branch. The directory name adds a slug:
@@ -60,7 +60,7 @@ Derive the slug **once** — after the symptom is known (§1), or in §1.5.2 —
60
60
 
61
61
  In parallel:
62
62
 
63
- 1. **Tracker** *(ticket mode only)*: read it with `tracker.view_cmd` from FLOW.md (`{TICKET}` = `$ARGUMENTS`). **Read it whole, comment thread included — §1.1.** If `tool:none` or the key is missing, ask the user for symptom, severity and environment. **Ticket-less mode: skip — §1.5 is the source of symptom/severity/environment.**
63
+ 1. **Tracker** *(ticket mode only)*: read it with `tracker.view_cmd` from FLOW.md (`{TICKET}` = the canonical identifier of §0, never `$ARGUMENTS` as typed). **Read it whole, comment thread included — §1.1.** If `tool:none` or the key is missing, ask the user for symptom, severity and environment. **Ticket-less mode: skip — §1.5 is the source of symptom/severity/environment.**
64
64
  2. **Knowledge search** (if `knowledge.search` is set): `knowledge.search` with keywords from the symptom — detect previous postmortems in the same area.
65
65
  3. **Observability**, if the incident is recent and you have clues (service, trace, log): the MCP tools of `observability.platform` from FLOW.md. Do not force it.
66
66
  4. **Git**: check clean branch and commit base.
@@ -106,7 +106,7 @@ Show the draft to the user and let them confirm or adjust **before writing anyth
106
106
  Creating a tracker issue is an **outward-facing action → always ask, in every autonomy mode** (never automatic):
107
107
 
108
108
  - If `tracker.tool` is not `none`, ask with `AskUserQuestion` whether to create the real issue from this draft.
109
- - **Yes** → the tool's native command, best-effort (`gh issue create`, `glab issue create`, the `acli`/`linear` create command; if unclear, ask the user to create it and paste the id). If §1.5.1 found **repos affected**, include them in the body under a short "Repos affected" heading. Capture the id. **From here the run is in ticket mode**: identifier = that id, work dir `.claude/work/<id>/`, branch named from the real id. If creation fails, warn and fall back to local-only with the slug.
109
+ - **Yes** → the tool's native command, best-effort (`gh issue create`, `glab issue create`, the `acli`/`linear` create command; if unclear, ask the user to create it and paste the id). If §1.5.1 found **repos affected**, include them in the body under a short "Repos affected" heading. Capture the id in canonical form (flow-core §0 — the number of the URL `gh`/`glab` print). **From here the run is in ticket mode**: identifier = that id, work dir `.claude/work/<id>/`, branch named from the real id. If creation fails, warn and fall back to local-only with the slug.
110
110
  - **No** → local-only: identifier stays the slug, no issue created.
111
111
  - If `tracker.tool` is `none` or empty, skip the offer and proceed local-only with the slug.
112
112
 
@@ -161,7 +161,7 @@ Create the work directory where flow-core §0 puts a new one (the main checkout,
161
161
  `<work-dir>/meta.json`:
162
162
  ```json
163
163
  {
164
- "ticket": "<identifier: $ARGUMENTS in ticket mode; the slug or created issue id in ticket-less mode>",
164
+ "ticket": "<identifier: the canonical ticket of $ARGUMENTS in ticket mode; the slug or created issue id in ticket-less mode>",
165
165
  "slug": "<the §0/§1.5.2 kebab-case slug; equals `ticket` in ticket-less local-only>",
166
166
  "type": "bug",
167
167
  "title": "<symptom from tracker, or synthesized in §1.5>",
@@ -223,7 +223,7 @@ refuse) · **degraded** (it runs, quietly worse than the config promises), plus
223
223
  `.agents/agents`, or a plugin. Report each missing name and that it falls back per flow-core §6.6 — the installed agent
224
224
  that fits, else `general-purpose` (a skill: skipped) — a panel missing agents reviews less and still reports a clean pass.
225
225
  - Harness cannot set a model per subagent → note that every `models.*` value degrades to inheritance.
226
- - **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__panel__panel_set` on Claude Code) and possibly **deferred**, which reads as absent until the list of deferred tools is checked → the terminal draws the panel; genuinely absent → `panel.json` is the transport. Either way the panel CLI writes `panel.json`; with `panel.publish_cmd` set, one line with its value and the file it came from — a fault when that file is tracked by git, where the CLI refuses to run it. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport. With `roadmap.path` written out, one more line: whether a tool ending in `plan_set` is there, so the roadmap reaches the terminal's board as the project's plan (flow-core §10.1) — absent is not a fault either.
226
+ - **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__ivy__panel_set` on Claude Code inside an Ivy pane) and possibly **deferred**, which reads as absent until the list of deferred tools is checked. Found → call its `panel_get` once: it answers (a document, or nothing published yet) → the channel works and the terminal draws the panel, said as *"panel: <server> answers for this console"*; it says this console is not one of its panes → `panel.json` is the transport, said so; any other error (a channel still starting, a timeout) → a fault, with the error: the panel falls back to `panel.json` until the channel answers. Genuinely absent → `panel.json` is the transport. Either way the panel CLI writes `panel.json`; with `panel.publish_cmd` set, one line with its value and the file it came from — a fault when that file is tracked by git, where the CLI refuses to run it. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport. With `roadmap.path` written out, one more line: whether a tool ending in `plan_set` is there, so the roadmap reaches the terminal's board as the project's plan (flow-core §10.1) — absent is not a fault either.
227
227
  - **The artifact mirror** (flow-core §4.6) — `panel.artifact` empty and the artifact tools here → one information line, not a fault: *control room off — `/flow-init room` turns it on*. Set: one line with its value and the file it came from; whether a tool whose name ends in `ArtifactData` is here (deferred counts); and, when it is, whether a `list` of collection `works` (limit 1) on that URL answers — a read, never a write. Tool present → also name the rule that keeps every card update from asking — `ArtifactData` (as the harness calls it) under `permissions.allow` — and its cost in the same line: it lets any session write to the data of any of your artifacts without asking, not only this page's; without it, each card update is approved by hand. The value coming from any file but `FLOW.claude.md` → a fault: the URL is one person's page, and a committed `FLOW.md` hands it to every teammate, whose writes it refuses. Key set and no tool → *off in this harness*, not a fault. The read failing → the error, as a fault. The read answering → also the page's version (`flow-room-page`, through an Artifact `read`) against the plugin's example: older or absent → one information line, *control room page out of date — the next card write republishes it*, not a fault.
228
228
 
229
229
  ### 2.3 Knowledge sources
@@ -254,7 +254,7 @@ git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null # must NOT be
254
254
  Only here — with the content approved in §3 — invoke `Skill commit-commands:commit-push-pr` passing **the final title and description**. The skill must not re-ask for the content; if it does, answer with what was confirmed. Any push it does must be `git push -u origin HEAD` (own branch), never to the base branch.
255
255
 
256
256
  - `git.assignee` not empty → assign to that user. `git.squash` `true` → enable squash-before-merge.
257
- - **Roadmap mark approved in §3** → write it into the roadmap file **before** the commit, here in the worktree (a tracked file belongs to the branch, flow-core §0), so it ships in the same commit as the change. A git-ignored roadmap is edited in place in the main checkout instead, and the stop says it travelled in no MR/PR. With the project plan on (flow-core §10.1), publish it right after the commit, from the file this commit carries, and refresh `meta.json.roadmap.milestone` / `deliverable` by its rule — a ticket cell this edit just filled is what first places the work on the board.
257
+ - **Roadmap mark approved in §3** → write it into the roadmap file **before** the commit, here in the worktree (a tracked file belongs to the branch, flow-core §0), so it ships in the same commit as the change. A git-ignored roadmap is edited in place in the main checkout instead, and the stop says it travelled in no MR/PR. With the project plan on (flow-core §10.1), publish it right after the commit, from the file this commit carries, by §10.1's steps — load `plan_get`/`plan_set`, translate, `plan_get`, `plan_set` when it changed — then refresh `meta.json.roadmap.milestone` / `deliverable` by its rule, and put the `plan:` line in the stop. A ticket cell this edit just filled is what moves the console from its milestone onto its deliverable.
258
258
  - **Knowledge approved in §3** → at the same point, before the commit: run the consolidation of flow-core §0 on the approved list, step 4 included — with `meta.json.worktree` set, every file `knowledge.save` wrote is moved from the main checkout into this worktree, so it is in the diff about to be committed and the main checkout is left as it was. Then stage what it wrote (`meta.json.knowledge.files`, or the `KNOWLEDGE.md` it appended) with the change — and the files an earlier phase already landed in this worktree (the same key), which are otherwise left uncommitted. A store that writes outside the repo leaves nothing to stage, and that is fine. A `save` that fails → report it in one line, `meta.json.knowledge.status: "failed"`, and the MR/PR goes out without those files; §5 offers them again.
259
259
  - `commit-push-pr` skill unavailable → commit and push manually and create the MR/PR with the `git.cli` CLI from `FLOW.md` — always with the content confirmed in §3.
260
260
 
@@ -53,8 +53,8 @@ its reason file in a `mktemp -d` directory (flow-core §2.1).
53
53
  - Read the effective FLOW configuration per flow-core §0; no FLOW layer present → each
54
54
  step's default. This command **creates** `00-summary.md` (§6) instead of reading it (flow-core §5).
55
55
  - No recognizable project structure → warn and stop.
56
- - **Determine the mode** (`--study` already taken out): `$ARGUMENTS` non-empty → *ticket mode* (identifier = `$ARGUMENTS`); empty → *ticket-less* (identifier = the §2.5 slug).
57
- - Once the identifier is known, check the work does not exist: in both work-folder locations (flow-core §0); ticket mode → glob `.claude/work/<TICKET>/` and `.claude/work/<TICKET>-*/` for a `meta.json` whose `ticket` equals `<TICKET>`; ticket-less → `.claude/work/<slug>/meta.json`, right after the slug is decided in §2.5. Exists → do not overwrite; warn and suggest `/flow-work-resume`.
56
+ - **Determine the mode** (`--study` already taken out): `$ARGUMENTS` non-empty → *ticket mode* (identifier = the canonical ticket of `$ARGUMENTS`, flow-core §0 — `#54`, `owner/repo#54` or this repository's issue URL is `54`; anything else as typed — and one that cannot name a branch or a folder (`[A-Za-z0-9][A-Za-z0-9._-]*`: another repository's reference, a PR/MR, a space inside) → refuse in one line, before any branch or folder exists); empty → *ticket-less* (identifier = the §2.5 slug).
57
+ - Once the identifier is known, check the work does not exist: in both work-folder locations (flow-core §0); ticket mode → every `meta.json` in those folders (`_archive/` excluded) whose `ticket`, put in the same canonical form, equals `<TICKET>` — never narrowed by folder name first: a work stored as `#54` lives in `#54-<slug>/` and is the work for `54`; ticket-less → `.claude/work/<slug>/meta.json`, right after the slug is decided in §2.5. Exists → do not overwrite; warn and suggest `/flow-work-resume`.
58
58
 
59
59
  **Work directory naming.** Work lives in `.claude/work/<work-dir>/`. `meta.json.ticket` stays the **pure identifier** (real ticket id, or the slug in ticket-less local-only) — it feeds the tracker view, the issue link and `{TICKET}`. The directory adds a slug:
60
60
  - **ticket mode** → `<TICKET>-<slug>`; `<slug>` = short English kebab-case (≤5 words) from the ticket title, the **same** slug as the branch (§5).
@@ -66,7 +66,7 @@ Derive the slug **once** — after the title is known (§2), or in §2.5.2 — a
66
66
 
67
67
  **In parallel**:
68
68
 
69
- 1. **Tracker** *(ticket mode only)*: `tracker.tool` not `none` → read the ticket with `tracker.view_cmd` (`{TICKET}` substituted): title, description, acceptance criteria. **Read it whole, comment thread included — §2.1.** `tool` `none`/empty or command fails → ask the user to paste the ticket and continue. Ticket-less → skip; §2.5 supplies title/description/criteria.
69
+ 1. **Tracker** *(ticket mode only)*: `tracker.tool` not `none` → read the ticket with `tracker.view_cmd` (`{TICKET}` = the canonical identifier of §1, never `$ARGUMENTS` as typed): title, description, acceptance criteria. **Read it whole, comment thread included — §2.1.** `tool` `none`/empty or command fails → ask the user to paste the ticket and continue. Ticket-less → skip; §2.5 supplies title/description/criteria.
70
70
  2. **Knowledge search**: `knowledge.search` set → `knowledge.search` with the ticket title and keywords. No answer in 2 s or failure → continue without it.
71
71
  3. **Git**: check you are on a clean branch. Uncommitted changes → warn, do not block.
72
72
 
@@ -116,7 +116,7 @@ An **outward-facing action → always ask, in every autonomy mode** (like the MR
116
116
  - `glab` → `glab issue create --title "<title>" --description "<summary + criteria + repos affected>"`
117
117
  - `acli` (Jira) / `linear` → the tool's create command; if unclear, ask the user to create it and paste the id.
118
118
 
119
- Capture the returned id. **From here the run is in ticket mode**: identifier = that id, work dir = `.claude/work/<id>/`, branch naming uses the real id (so §5.5 applies). Creation fails → warn, fall back to local-only with the slug.
119
+ Capture the returned id in canonical form (flow-core §0 — the number of the URL `gh`/`glab` print). **From here the run is in ticket mode**: identifier = that id, work dir = `.claude/work/<id>/`, branch naming uses the real id (so §5.5 applies). Creation fails → warn, fall back to local-only with the slug.
120
120
  - **No** → local-only: identifier stays the slug, no issue created (by hand or a later `start`).
121
121
  - `tracker.tool` `none`/empty → skip the offer; local-only with the slug.
122
122
 
@@ -155,7 +155,9 @@ Another repo referenced but **no** contract → say so in one line — *"the `<r
155
155
 
156
156
  ## 3.7 Roadmap item
157
157
 
158
- 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. With the project plan on (flow-core §10.1), publish it now and record where this work sits in it — `meta.json.roadmap.milestone` / `deliverable` only when this ticket is in a deliverable's ticket cell — before the first panel of the work, so that panel already carries them.
158
+ 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.
159
+
160
+ **The project plan** — on only as flow-core §10.1 says (`roadmap.path` names a file and the terminal offers `plan_set`), and a step of its own, right after the link and before the first panel of the work: publish it by §10.1's steps — load `plan_get`/`plan_set`, translate, `plan_get`, `plan_set` when it changed — then write `meta.json.roadmap.milestone` / `deliverable` by its *Where this console works* rule. The row this work was just linked to usually has no ticket yet: it still places the console inside its milestone, and `ship` moves it onto the deliverable once the ticket cell is filled. The `plan:` line goes in this command's stop.
159
161
 
160
162
  ## 4. Classify size
161
163
 
@@ -239,7 +241,7 @@ Create the work directory where flow-core §0 puts a new one (the main checkout,
239
241
  ### `meta.json`
240
242
  ```json
241
243
  {
242
- "ticket": "<identifier: $ARGUMENTS in ticket mode; the slug or created issue id in ticket-less mode>",
244
+ "ticket": "<identifier: the canonical ticket of $ARGUMENTS in ticket mode; the slug or created issue id in ticket-less mode>",
243
245
  "slug": "<the §1/§2.5.2 kebab-case slug; equals `ticket` in ticket-less local-only>",
244
246
  "type": "feat",
245
247
  "title": "<ticket title>",
@@ -30,7 +30,8 @@ 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 item whose dependencies are met, what is blocked, and any stale item. With the project plan on (flow-core §10.1), publish it now, from the file just read.
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
+ 6. **The project plan** — on only as flow-core §10.1 says (`roadmap.path` names a file and the terminal offers `plan_set`): publish it now, from the file step 5 read, by §10.1's steps — load `plan_get`/`plan_set`, translate, `plan_get`, `plan_set` when it changed. Its `plan:` line goes under the roadmap line of §2's answer. It is the one thing `next` sends anywhere, and it is not optional: the board shows no roadmap until some command sends it.
34
35
 
35
36
  ## 2. Route
36
37
 
@@ -24,7 +24,7 @@ Clean closure for works that will not reach the base branch: a feature discarded
24
24
 
25
25
  ## 1. Pre-flight
26
26
 
27
- - Locate the active `meta.json` by current branch; not found → ask the user for the ticket.
27
+ - Locate the active `meta.json` by current branch; not found → ask the user for the ticket, and find the `meta.json` whose `ticket`, canonical too, equals it (flow-core §0, the ticket).
28
28
  - `phase` already `done` → do not abandon: notify and stop (finished works are archived, not abandoned).
29
29
  - Read `meta.json` and `00-summary.md`; open the existing artifacts in full only where the summary does not say what was done (missing summary → read the artifacts).
30
30
 
@@ -47,7 +47,8 @@ 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, 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. With the project plan on (flow-core §10.1), publish it from the file just read.
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
+ - **The project plan** — on only as flow-core §10.1 says (`roadmap.path` names a file and the terminal offers `plan_set`): publish it from the file the roadmap line just read, by §10.1's steps — load `plan_get`/`plan_set`, translate, `plan_get`, `plan_set` when it changed — and put its `plan:` line under the roadmap line of the briefing. A step of its own, not a clause of the line above: folded into it, it was skipped.
51
52
  - **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
53
  - **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
54
 
@@ -30,10 +30,12 @@ ticket for the people who review it.
30
30
 
31
31
  - Effective FLOW configuration per flow-core §0. `autonomy.mode: unattended` → refuse in one line:
32
32
  an unattended run never pushes (flow-core §2.1); handing off is a person's step.
33
- - Locate the active `meta.json` by current branch; not found → ask the user for the ticket.
33
+ - Locate the active `meta.json` by current branch; not found → ask the user for the ticket, and find the `meta.json` whose `ticket`, canonical too, equals it (flow-core §0, the ticket).
34
34
  - `git.handoff_branch` empty → refuse, naming the key and an example
35
35
  (`git.handoff_branch: study/{TICKET}`): where the study goes is the receiver's convention, never
36
- flow's guess. `{TICKET}` = `meta.json.ticket`.
36
+ flow's guess. `{TICKET}` is the canonical ticket (flow-core §0, the ticket) that §3's resolve
37
+ block prints from `meta.json.ticket` — never `meta.json.ticket` as stored: a work started from
38
+ `#54` or from the issue's URL still goes to `study/54`.
37
39
  - `origin` not configured → refuse; there is nowhere to push.
38
40
 
39
41
  ## 2. Is the study finished?
@@ -64,15 +66,60 @@ work included) and the working tree are never read into it nor written to, and a
64
66
  **Each block below is one shell call, run as it stands** — a harness need not keep variables from
65
67
  one call to the next, so every block sets its own. Replace each `@…@` with its literal value first:
66
68
  `@WORK@` the work folder relative to the repository root (`.claude/work/<work-dir>`, no trailing
67
- slash), `@BRANCH@` the resolved `git.handoff_branch`, `@TICKET@` `meta.json.ticket`, `@COMMIT@` the
68
- sha the build block printed. A value holding a `'` cannot go inside those quotes: refuse it and
69
- say which.
69
+ slash), `@BRANCH@` and `@TICKET@` the values after `branch=` and `ticket=` in what the resolve
70
+ block printed — `study/54`, never `branch=study/54` —, `@COMMIT@` the sha the build block printed. A value holding a `'` — `@STORED@` and `@PATTERN@` below included — cannot go inside those quotes:
71
+ refuse it and say which.
72
+
73
+ First, where the study goes. `@STORED@` is `meta.json.ticket` as stored, `@PATTERN@`
74
+ `git.handoff_branch` as written, `{TICKET}` and all:
75
+
76
+ ```bash handoff-resolve
77
+ STORED='@STORED@'; PATTERN='@PATTERN@'
78
+ t=$(printf '%s' "$STORED" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//')
79
+ lc=$(printf '%s' "$t" | tr 'A-Z' 'a-z')
80
+ o=$(git config --get remote.origin.url | tr 'A-Z' 'a-z')
81
+ case "$o" in
82
+ *://*) here=$(printf '%s' "$o" | sed -E 's|^[a-z+]+://||; s|^[^@/]*@||; s|^([^/]+):[0-9]+/|\1/|') ;;
83
+ *) here=$(printf '%s' "$o" | sed -E 's|^[^@/]*@||; s|:|/|') ;;
84
+ esac
85
+ here=$(printf '%s' "$here" | sed -E 's|/+$||; s|\.git$||; s|^www\.||')
86
+ n=
87
+ case "$lc" in
88
+ '#'*) n=${lc#'#'} ;;
89
+ *://*|*/issues/*|*/work_items/*)
90
+ u=$(printf '%s' "$lc" | sed -E 's|^[a-z+]+://||; s|^[^@/]*@||; s|^([^/]+):[0-9]+/|\1/|; s|^www\.||; s|[?#].*$||; s|/+$||')
91
+ case "${here%%/*}" in *.*)
92
+ case "${u#"$here"/}" in issues/*/*|-/issues/*/*|-/work_items/*/*) ;;
93
+ issues/*|-/issues/*|-/work_items/*) n=${u##*/} ;; esac ;; esac ;;
94
+ */*'#'*) [ "${lc%'#'*}" = "${here#*/}" ] && n=${lc##*'#'} ;;
95
+ esac
96
+ [ -n "$n" ] || case "$lc" in *[!0-9]*) ;; *) n=$lc ;; esac
97
+ case "$n" in ''|*[!0-9]*) ;; *) n=$(printf '%s' "$n" | sed 's/^0*//'); t=${n:-0} ;; esac
98
+ case "$t" in [A-Za-z0-9]*) ;; *) echo "not a ticket id: $STORED"; exit 1 ;; esac
99
+ case "$t" in *[!A-Za-z0-9._-]*) echo "not a ticket id: $STORED"; exit 1 ;; esac
100
+ branch=$(printf '%s' "$PATTERN" | sed "s|{TICKET}|$t|g")
101
+ case "$branch" in *'{'*|*'}'*) echo "git.handoff_branch has a placeholder other than {TICKET}: $PATTERN"; exit 1 ;; esac
102
+ git check-ref-format --branch "$branch" >/dev/null 2>&1 || { echo "not a branch name: $branch"; exit 1; }
103
+ echo "ticket=$t"; echo "branch=$branch"
104
+ ```
70
105
 
71
- First, the branch must not exist on `origin` — a second push would need a force, and this command
106
+ It turns a reference to this repository's issue into its number and keeps anything else as typed
107
+ (flow-core §0, the ticket). `origin`'s host is compared too; when it is an SSH alias with no dot in
108
+ it (`github-work`, `gh`), no URL can be matched against it and only `#N` and `owner/repo#N` are
109
+ read as this repository's. A refusal stops the command, quoting its
110
+ line: a pull or merge request, another repository's issue, an id with a space or a shell character
111
+ inside, a placeholder other than `{TICKET}`. The way on, for a mistyped id, is to correct
112
+ `meta.json.ticket` and hand off again; a study whose ticket really is **another repository's
113
+ issue** (a sibling repo's work, a fork whose issues live upstream) has no branch this command can
114
+ name — say so, and leave where it goes to the person: never rewrite it as an issue of this
115
+ repository, whose `Closes` would then close the wrong one.
116
+
117
+ Then the branch must not exist on `origin` — a second push would need a force, and this command
72
118
  never forces:
73
119
 
74
120
  ```bash handoff-check
75
121
  BRANCH='@BRANCH@'
122
+ case "$BRANCH" in ''|branch=*) echo "not a resolved branch: $BRANCH"; exit 1 ;; esac
76
123
  git ls-remote --exit-code origin "refs/heads/$BRANCH" >/dev/null; echo "rc=$?"
77
124
  ```
78
125
 
@@ -82,6 +129,7 @@ continue. Anything else → stop and say why (no network, no access). Then build
82
129
 
83
130
  ```bash handoff-build
84
131
  WORK='@WORK@'; TICKET='@TICKET@'
132
+ case "$TICKET" in ''|ticket=*) echo "not a resolved ticket: $TICKET"; exit 1 ;; esac
85
133
  cd "$(git rev-parse --show-toplevel)" || exit 1
86
134
  [ -d "$WORK" ] || { echo "no such folder: $WORK"; exit 1; }
87
135
  tmp=$(mktemp -d) || exit 1
@@ -118,6 +166,7 @@ before writing the first line of it.
118
166
 
119
167
  ```bash handoff-push
120
168
  BRANCH='@BRANCH@'; COMMIT='@COMMIT@'
169
+ case "$BRANCH" in ''|branch=*) echo "not a resolved branch: $BRANCH"; exit 1 ;; esac
121
170
  case "$COMMIT" in ''|*[!0-9a-f]*) echo "not a commit sha: $COMMIT"; exit 1 ;; esac
122
171
  git cat-file -e "$COMMIT^{commit}" || exit 1
123
172
  git push origin "$COMMIT:refs/heads/$BRANCH"
@@ -184,6 +233,7 @@ the ticket read it there, never in the work folder; the receiver does not parse
184
233
 
185
234
  ## 6. Close
186
235
 
187
- Report following flow-core §3: the branch and the commit, the file count, whether the ticket
236
+ Report following flow-core §3: the exact remote branch (`origin/<branch>`, as the resolve block
237
+ printed it) and the commit, the file count, whether the ticket
188
238
  summary was written. Refresh the panel: a `Now` line saying the study was handed off, no `Decision`
189
239
  line. `meta.json` gains nothing — the branch on `origin` is the record, and the §3 refusal reads it.
@@ -30,7 +30,7 @@ reads where the run got to, not how the run continues.
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
- - None found → ask the user for the ticket or whether to start a new one.
33
+ - None found → ask the user for the ticket or whether to start a new one; a ticket given finds the `meta.json` whose `ticket`, canonical too, equals it (flow-core §0, the ticket) — never a folder-name glob.
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
 
36
36
  ## 2. Recap
@@ -25,7 +25,7 @@ Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, au
25
25
  The command an orchestrator puts in its launch line, for every run of every ticket. It does no work
26
26
  of its own: it asks the orchestrator why this run exists and hands the run to the phase that
27
27
  answers it. `$ARGUMENTS` is the ticket, optional — the orchestrator's `ticket` order is the source
28
- of truth, and an argument that disagrees with it is ignored and named in the log.
28
+ of truth, and an argument whose canonical form (flow-core §0, the ticket) disagrees with it is ignored and named in the log.
29
29
 
30
30
  ## 1. Pre-flight
31
31
 
@@ -39,7 +39,8 @@ of truth, and an argument that disagrees with it is ignored and named in the log
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
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.
42
+ checkout) whose `ticket`, put in canonical form (flow-core §0, the ticket), equals `number`
43
+ (archive excluded) — a work stored as `#54` is the work for `54`. None is not an error — it is the "none" of the table below.
43
44
 
44
45
  ## 2. Route
45
46
 
@@ -43,7 +43,7 @@ If `knowledge.search` is set, call `knowledge.search` with the ticket name befor
43
43
 
44
44
  ## 1. Pre-flight and T0
45
45
 
46
- - Resolve the ticket from `$ARGUMENTS`. A work in `.claude/work/` (glob `<TICKET>/` and `<TICKET>-*/`, or match `meta.json.ticket`) → read its `meta.json` **as a hint, not as truth**.
46
+ - Resolve the ticket from `$ARGUMENTS`, in canonical form (flow-core §0). A work in `.claude/work/` (a `meta.json` whose `ticket`, canonical too, equals it) → read its `meta.json` **as a hint, not as truth**.
47
47
  - **Confirm WHAT is being deployed — never assume it from `meta.json`** (several MR/PRs per ticket; stale artifacts). Cross-reference the **actual deploy event** (e.g. `get_change_stories`) and recent merges; any ambiguity → `AskUserQuestion` which MR/PR or commit is deploying. The surface (§2) is scoped to **that** change.
48
48
  - **When to start.** When the code **is live in production**, not at merge. Launched right after the merge → **wait for the deploy yourself**:
49
49
  - Check whether the new version is live (`observability.deploy_detect`; empty → `get_change_stories` or other deploy indicators).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-workflows",
3
- "version": "0.117.0",
3
+ "version": "0.118.1",
4
4
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  "name": "flow",
4
4
  "displayName": "Flow — guided dev workflows",
5
5
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
6
- "version": "0.117.0",
6
+ "version": "0.118.1",
7
7
  "author": {
8
8
  "name": "Alberto Vioque",
9
9
  "email": "mashware@gmail.com"
@@ -5,6 +5,38 @@ plugin and is what `/flow:news` reads to show you what changed since your previo
5
5
 
6
6
  The canonical, richest notes live in the [GitHub Releases](https://github.com/mashware/flow-workflows/releases).
7
7
 
8
+ ## v0.118.1 — The roadmap actually reaches Ivy's board, and a console sits in its milestone from the start · 2026-11-24
9
+
10
+ **In short**
11
+ - **The plan is now sent.** v0.116.0 told `next`, `daily`, `start` and `ship` to publish the roadmap to the terminal's
12
+ board, but as a clause at the end of the roadmap step — and it was skipped. In one repo with `roadmap.path` set,
13
+ three works published their panel inside Ivy 13, 25 and 33 times and never called `plan_get`; one even loaded the
14
+ plan tools and never used them. The board said *no roadmap*.
15
+ - **Publishing is its own step in each of the four commands**, in a fixed order (load `plan_get`/`plan_set` with the
16
+ panel tools, translate, `plan_get`, `plan_set` when it changed, place the console), and every stop of a command
17
+ that published says `plan: published`, `plan: unchanged` or `plan: <error>`. A plan that is on with no such line at
18
+ the stop is a skipped step anyone can see.
19
+ - **A console whose row had no ticket yet now sits inside its milestone.** Placement only looked for the work's
20
+ ticket in the ticket cells, and a row usually gets its ticket when its work starts — so the works that most needed
21
+ a place landed in *Off the plan*. Now the row the work is linked to places it: in its milestone at `start`, on its
22
+ deliverable once `ship` fills the ticket cell. No id is ever invented from the work's ticket.
23
+
24
+ ## v0.118.0 — After you answer, the agent is told to stop claiming you in Ivy · 2026-11-19
25
+
26
+ **In short**
27
+ - **The "waiting on you" tab in Ivy now clears right after you answer.** v0.116.1 cleared the answered decision from
28
+ the panel's files, but Ivy paints what the agent publishes over its MCP and reads no file while it does, so only
29
+ the agent can drop the claim — and it often forgot. Now the plugin's hook, right after a question is answered
30
+ under Claude Code, tells the agent to republish without the decision before doing anything else.
31
+ - **It also works when the session sits in the main checkout and the work lives in a sibling worktree.** The reminder
32
+ then names no work and touches no file: several sessions share that checkout, and the hook cannot tell whose work is
33
+ whose.
34
+ - **flow's rules name Ivy's tools as they are** (`mcp__ivy__panel_set`), and `/flow:doctor` says the panel channel
35
+ works only when `panel_get` answers.
36
+ - **What flow does with the rest of Ivy's MCP is written down**: the roadmap goes to the plan as before; the panel is
37
+ never retired (its `done` is the signal you read when you come back) and no auxiliary consoles are opened (flow
38
+ delegates to subagents, and a console stops answering once you type in it).
39
+
8
40
  ## v0.117.0 — The review count reads one name per reviewer, and GitLab squash merges count their escapes · 2026-11-17
9
41
 
10
42
  **In short**
@@ -96,7 +96,7 @@ Branch and Pull/Merge Request conventions.
96
96
  # - make database-update
97
97
  # - make frontend
98
98
 
99
- - `handoff_branch:` # branch `/flow:work:handoff` pushes a finished study to, holding only that work's folder. `{TICKET}` substituted. Empty = the command refuses: where a study goes is the receiver's convention. e.g. `study/{TICKET}`. It does not decide which works are studies: a work started with `--study` (`/flow:feat:start`, `/flow:bug:start`) ends its study phases at `/flow:work:handoff` instead of `build`/`fix` (not in `unattended`), one started without it is built here. Pair it with `autonomy.mode: auto` and a `--study` work runs on its own up to the push.
99
+ - `handoff_branch:` # branch `/flow:work:handoff` pushes a finished study to, holding only that work's folder. `{TICKET}` is the canonical ticket — on GitHub/GitLab the bare issue number, so a work started from `#54` or the issue's URL goes to `study/54`; other trackers keep their key (`study/MT-123`). Empty = the command refuses: where a study goes is the receiver's convention. e.g. `study/{TICKET}`. It does not decide which works are studies: a work started with `--study` (`/flow:feat:start`, `/flow:bug:start`) ends its study phases at `/flow:work:handoff` instead of `build`/`fix` (not in `unattended`), one started without it is built here. Pair it with `autonomy.mode: auto` and a `--study` work runs on its own up to the push.
100
100
 
101
101
  ## autonomy
102
102
  How much the flow advances on its own vs. stopping to ask you.