flow-workflows 0.114.0 → 0.116.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 (122) hide show
  1. package/README.md +10 -4
  2. package/adapters/codex/CORE.md +224 -135
  3. package/adapters/codex/skills/flow-bug-fix/SKILL.md +2 -2
  4. package/adapters/codex/skills/flow-bug-investigate/SKILL.md +1 -1
  5. package/adapters/codex/skills/flow-bug-postmortem/SKILL.md +1 -1
  6. package/adapters/codex/skills/flow-bug-review/SKILL.md +1 -1
  7. package/adapters/codex/skills/flow-bug-ship/SKILL.md +2 -2
  8. package/adapters/codex/skills/flow-bug-start/SKILL.md +1 -1
  9. package/adapters/codex/skills/flow-bug-validate/SKILL.md +1 -1
  10. package/adapters/codex/skills/flow-doctor/SKILL.md +1 -1
  11. package/adapters/codex/skills/flow-feat-build/SKILL.md +3 -3
  12. package/adapters/codex/skills/flow-feat-design/SKILL.md +1 -1
  13. package/adapters/codex/skills/flow-feat-plan/SKILL.md +1 -1
  14. package/adapters/codex/skills/flow-feat-review/SKILL.md +1 -1
  15. package/adapters/codex/skills/flow-feat-ship/SKILL.md +3 -3
  16. package/adapters/codex/skills/flow-feat-start/SKILL.md +2 -2
  17. package/adapters/codex/skills/flow-feat-validate/SKILL.md +1 -1
  18. package/adapters/codex/skills/flow-next/SKILL.md +1 -1
  19. package/adapters/codex/skills/flow-work-README/SKILL.md +8 -8
  20. package/adapters/codex/skills/flow-work-abandon/SKILL.md +2 -2
  21. package/adapters/codex/skills/flow-work-clean/SKILL.md +1 -1
  22. package/adapters/codex/skills/flow-work-daily/SKILL.md +3 -3
  23. package/adapters/codex/skills/flow-work-green/SKILL.md +1 -1
  24. package/adapters/codex/skills/flow-work-handoff/SKILL.md +5 -4
  25. package/adapters/codex/skills/flow-work-query/SKILL.md +1 -1
  26. package/adapters/codex/skills/flow-work-respond/SKILL.md +1 -1
  27. package/adapters/codex/skills/flow-work-resume/SKILL.md +9 -25
  28. package/adapters/codex/skills/flow-work-run/SKILL.md +1 -1
  29. package/adapters/codex/skills/flow-work-try/SKILL.md +1 -1
  30. package/adapters/codex/skills/flow-work-watch/SKILL.md +1 -1
  31. package/adapters/gemini/CORE.md +224 -135
  32. package/adapters/gemini/commands/flow/bug/fix.toml +2 -2
  33. package/adapters/gemini/commands/flow/bug/investigate.toml +1 -1
  34. package/adapters/gemini/commands/flow/bug/postmortem.toml +1 -1
  35. package/adapters/gemini/commands/flow/bug/review.toml +1 -1
  36. package/adapters/gemini/commands/flow/bug/ship.toml +2 -2
  37. package/adapters/gemini/commands/flow/bug/start.toml +1 -1
  38. package/adapters/gemini/commands/flow/bug/validate.toml +1 -1
  39. package/adapters/gemini/commands/flow/doctor.toml +1 -1
  40. package/adapters/gemini/commands/flow/feat/build.toml +3 -3
  41. package/adapters/gemini/commands/flow/feat/design.toml +1 -1
  42. package/adapters/gemini/commands/flow/feat/plan.toml +1 -1
  43. package/adapters/gemini/commands/flow/feat/review.toml +1 -1
  44. package/adapters/gemini/commands/flow/feat/ship.toml +3 -3
  45. package/adapters/gemini/commands/flow/feat/start.toml +2 -2
  46. package/adapters/gemini/commands/flow/feat/validate.toml +1 -1
  47. package/adapters/gemini/commands/flow/next.toml +1 -1
  48. package/adapters/gemini/commands/flow/work/README.toml +8 -8
  49. package/adapters/gemini/commands/flow/work/abandon.toml +2 -2
  50. package/adapters/gemini/commands/flow/work/clean.toml +1 -1
  51. package/adapters/gemini/commands/flow/work/daily.toml +3 -3
  52. package/adapters/gemini/commands/flow/work/green.toml +1 -1
  53. package/adapters/gemini/commands/flow/work/handoff.toml +5 -4
  54. package/adapters/gemini/commands/flow/work/query.toml +1 -1
  55. package/adapters/gemini/commands/flow/work/respond.toml +1 -1
  56. package/adapters/gemini/commands/flow/work/resume.toml +9 -25
  57. package/adapters/gemini/commands/flow/work/run.toml +1 -1
  58. package/adapters/gemini/commands/flow/work/try.toml +1 -1
  59. package/adapters/gemini/commands/flow/work/watch.toml +1 -1
  60. package/adapters/hermes/CORE.md +224 -135
  61. package/adapters/hermes/skills/flow-bug-fix/SKILL.md +2 -2
  62. package/adapters/hermes/skills/flow-bug-investigate/SKILL.md +1 -1
  63. package/adapters/hermes/skills/flow-bug-postmortem/SKILL.md +1 -1
  64. package/adapters/hermes/skills/flow-bug-review/SKILL.md +1 -1
  65. package/adapters/hermes/skills/flow-bug-ship/SKILL.md +2 -2
  66. package/adapters/hermes/skills/flow-bug-start/SKILL.md +1 -1
  67. package/adapters/hermes/skills/flow-bug-validate/SKILL.md +1 -1
  68. package/adapters/hermes/skills/flow-doctor/SKILL.md +1 -1
  69. package/adapters/hermes/skills/flow-feat-build/SKILL.md +3 -3
  70. package/adapters/hermes/skills/flow-feat-design/SKILL.md +1 -1
  71. package/adapters/hermes/skills/flow-feat-plan/SKILL.md +1 -1
  72. package/adapters/hermes/skills/flow-feat-review/SKILL.md +1 -1
  73. package/adapters/hermes/skills/flow-feat-ship/SKILL.md +3 -3
  74. package/adapters/hermes/skills/flow-feat-start/SKILL.md +2 -2
  75. package/adapters/hermes/skills/flow-feat-validate/SKILL.md +1 -1
  76. package/adapters/hermes/skills/flow-next/SKILL.md +1 -1
  77. package/adapters/hermes/skills/flow-work-README/SKILL.md +8 -8
  78. package/adapters/hermes/skills/flow-work-abandon/SKILL.md +2 -2
  79. package/adapters/hermes/skills/flow-work-clean/SKILL.md +1 -1
  80. package/adapters/hermes/skills/flow-work-daily/SKILL.md +3 -3
  81. package/adapters/hermes/skills/flow-work-green/SKILL.md +1 -1
  82. package/adapters/hermes/skills/flow-work-handoff/SKILL.md +5 -4
  83. package/adapters/hermes/skills/flow-work-query/SKILL.md +1 -1
  84. package/adapters/hermes/skills/flow-work-respond/SKILL.md +1 -1
  85. package/adapters/hermes/skills/flow-work-resume/SKILL.md +9 -25
  86. package/adapters/hermes/skills/flow-work-run/SKILL.md +1 -1
  87. package/adapters/hermes/skills/flow-work-try/SKILL.md +1 -1
  88. package/adapters/hermes/skills/flow-work-watch/SKILL.md +1 -1
  89. package/adapters/opencode/CORE.md +224 -135
  90. package/adapters/opencode/commands/flow-bug-fix.md +2 -2
  91. package/adapters/opencode/commands/flow-bug-investigate.md +1 -1
  92. package/adapters/opencode/commands/flow-bug-postmortem.md +1 -1
  93. package/adapters/opencode/commands/flow-bug-review.md +1 -1
  94. package/adapters/opencode/commands/flow-bug-ship.md +2 -2
  95. package/adapters/opencode/commands/flow-bug-start.md +1 -1
  96. package/adapters/opencode/commands/flow-bug-validate.md +1 -1
  97. package/adapters/opencode/commands/flow-doctor.md +1 -1
  98. package/adapters/opencode/commands/flow-feat-build.md +3 -3
  99. package/adapters/opencode/commands/flow-feat-design.md +1 -1
  100. package/adapters/opencode/commands/flow-feat-plan.md +1 -1
  101. package/adapters/opencode/commands/flow-feat-review.md +1 -1
  102. package/adapters/opencode/commands/flow-feat-ship.md +3 -3
  103. package/adapters/opencode/commands/flow-feat-start.md +2 -2
  104. package/adapters/opencode/commands/flow-feat-validate.md +1 -1
  105. package/adapters/opencode/commands/flow-next.md +1 -1
  106. package/adapters/opencode/commands/flow-work-README.md +8 -8
  107. package/adapters/opencode/commands/flow-work-abandon.md +2 -2
  108. package/adapters/opencode/commands/flow-work-clean.md +1 -1
  109. package/adapters/opencode/commands/flow-work-daily.md +3 -3
  110. package/adapters/opencode/commands/flow-work-green.md +1 -1
  111. package/adapters/opencode/commands/flow-work-handoff.md +5 -4
  112. package/adapters/opencode/commands/flow-work-query.md +1 -1
  113. package/adapters/opencode/commands/flow-work-respond.md +1 -1
  114. package/adapters/opencode/commands/flow-work-resume.md +9 -25
  115. package/adapters/opencode/commands/flow-work-run.md +1 -1
  116. package/adapters/opencode/commands/flow-work-try.md +1 -1
  117. package/adapters/opencode/commands/flow-work-watch.md +1 -1
  118. package/bin/cli.mjs +572 -12
  119. package/package.json +1 -1
  120. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  121. package/plugins/flow/CHANGELOG.md +49 -0
  122. package/plugins/flow/examples/FLOW.template.md +2 -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.114.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.116.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
@@ -663,136 +663,163 @@ I need: <one line — the decision or action you are waiting on>
663
663
  - **If it is a question, it is `AskUserQuestion`** — in `unattended`, the orchestrator's `ask` (§2.1). Never end a message with a question in prose. If it does not deserve the menu, it is a decision you take and record.
664
664
  - **What the question is about travels with the question.** A brief, an MR/PR body, a plan, a finding: put it where the user answers it — in the question text and its options — and not only in the prose above. **Nothing runs between the two**: a tool call after that prose is what makes a terminal fold it away, and the last thing a chat UI collapses is exactly the thing they were asked to read. A gate answered without seeing what it was about is not a gate; "it is in `05-implementation.md`" is not showing it, because the answer then costs opening an editor and finding the file. Too long for the harness's question → print it as the **last** thing before asking, tool calls already done.
665
665
 
666
- ## 4. Live panel — over the terminal's MCP, or `panel.json`
666
+ ## 4. Live panel — rendered by `flow-workflows panel`, carried by the terminal's MCP or a file
667
667
 
668
- Whenever the state a panel would show changes, publish the panel from `meta.json` plus what you know
669
- right now. **Any progress line you were about to type into the chat is a panel update instead**
670
- (§3).
668
+ Whenever the state a panel would show changes, the panel is rendered again. **Any progress line you
669
+ were about to type into the chat is a panel update instead** (§3).
671
670
 
672
- **Two transports, one document.** When the tools `panel_set` / `panel_patch` / `panel_get` are
673
- available, this console is a pane of agent-terminal: publish the panel through them (§4.2) and
674
- **stop writing `.claude/work/<work>/panel.json`** — while a pane is claimed, its file is not read at
675
- all. When they are not there, write the file (§4.3). No work folder (lightweight
676
- `respond`/`green`) → nothing to publish, either way. With `panel.artifact` set, each publication is
677
- also mirrored to a claude.ai page that gathers every work of every repo (§4.6) — in addition to the
678
- transport, never instead of it.
671
+ **You do not write the panel; you write what only you know, and the CLI renders the rest.** The
672
+ title, the MR/PR train and each one's state, the plan's steps, sibling repos' MRs/PRs, what is still
673
+ open — all of it is already in `meta.json`, the plan's ticks and the forge, and a panel rebuilt from
674
+ prose loses it: the step block was published in 8 of 64 build sessions that had a plan, merged
675
+ MRs/PRs stayed `wait`, and panels from other harnesses lost their clock, their links and their
676
+ language. So a publication is two moves:
679
677
 
680
- **Look for them before you conclude they are missing**, once per session, in pre-flight. A harness
681
- namespaces an MCP server's tools, so what you are looking for is a tool whose name *ends* in
682
- `panel_set` — `mcp__panel__panel_set` on Claude Code, another prefix elsewhere — and the name is
683
- whatever it is called there, not `panel_set`. It may also be **deferred**: listed by name with no
684
- schema, uncallable until you load it, and indistinguishable from absent unless you read that list.
685
- A deferred tool is a tool that is there; load the three schemas and publish. The file is the answer
686
- only after that search comes back empty — and this is the one paragraph that decides it, because
687
- prose describing a file is otherwise obeyed to the letter.
678
+ 1. **Write `.claude/work/<work>/panel-input.json`** — whole, every time, only what this moment knows:
688
679
 
689
- ### 4.1 The document — the same whichever transport carries it
680
+ ```json
681
+ {"phase": "build", "now": "unit suite over #2", "next": "review #2",
682
+ "decision": "confirm the MR/PR body before I create it", "attention": "wait",
683
+ "blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
684
+ "stale_after_minutes": 45,
685
+ "labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
686
+ "closed": "nada más aquí", "review": "ronda de review", "findings": "abiertos",
687
+ "followups": "seguimientos", "merged": "fusionadas"}}
688
+ ```
689
+
690
+ Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
691
+ the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
692
+ `next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
693
+ worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
694
+ `blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
695
+ pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
696
+ `labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
697
+ train's header, `MRs`/`PRs` by default), `merged` and `plan` (the block headers); omitted, they are
698
+ English. Free text lives in this file, never on a command line.
699
+ 2. **Run `npx flow-workflows@<version> panel --harness <harness> --forge`** from the work's
700
+ checkout (`<version>` this plugin's own, from `~/.claude/flow/.claude-plugin/plugin.json`
701
+ — the rule `/flow-feat-review` §1 gives for every `flow-workflows` call). It writes
702
+ `.claude/work/<work>/panel.json`, writes `card.json` beside it when `panel.artifact` is set, pipes
703
+ the document to `panel.publish_cmd` when that is set, and prints the document. `--forge` asks
704
+ `gh`/`glab` for each open MR/PR and keeps the answers in `forge-state.json`, which the renders
705
+ without it reuse — leave it out at a plan step (§4.4 f), where nothing in the forge moved.
706
+ `meta.json` is never written by it.
707
+
708
+ **Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
709
+ `PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
710
+ newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
711
+ retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
712
+ the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
713
+
714
+ **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
715
+ document — → write the §4.1 document yourself, once, by its rules, and say so at the next stop:
716
+ `panel: written by hand — <why>`. Never retry variants of the call.
717
+
718
+ **One panel is drawn by hand on purpose**: `/flow-work-watch` paints a monitoring cycle — verdict, latency, what it is waiting for — that no work file holds, so it writes its §5 document itself, by §4.1's rules, and the CLI is not run while it watches.
719
+
720
+ **Two transports for the one document.** When the tools `panel_set` / `panel_get` are available,
721
+ this console is a pane of a terminal that paints what reaches it over its MCP (§4.2). Whatever the
722
+ transport, `panel.json` is written — by the CLI — because the session-start hook reads its `Now` and
723
+ `phase` to say what the last session was doing. No work folder (lightweight `respond`/`green`) →
724
+ nothing to publish, either way. With `panel.artifact` set, each publication is also mirrored to a
725
+ claude.ai page that gathers every work of every repo (§4.6) — in addition to the transport, never
726
+ instead of it.
727
+
728
+ **Look for the tools before you conclude they are missing**, once per session, in pre-flight. A
729
+ harness namespaces an MCP server's tools, so what you are looking for is a tool whose name *ends* in
730
+ `panel_set` — `mcp__panel__panel_set` on Claude Code, another prefix elsewhere. It may also be
731
+ **deferred**: listed by name with no schema, uncallable until you load it, and indistinguishable from
732
+ absent unless you read that list. A deferred tool is a tool that is there; load the schemas and
733
+ publish. A tool that answers that this console is not one of its panes → the file is the transport
734
+ for the rest of the session.
735
+
736
+ ### 4.1 The document — what the CLI prints, and what you write when it cannot
690
737
 
691
738
  ```json
692
739
  {
693
740
  "updated_at": "2026-08-06T16:45:00+02:00",
694
741
  "phase": "validate",
695
742
  "header": true,
743
+ "milestone": "H3",
744
+ "deliverable": "MT-1234",
696
745
  "lines": [
697
- {"text": "Expose a thread's tracking state and events", "style": "title"},
746
+ {"key": "title", "text": "Expose a thread's tracking state and events", "style": "title"},
747
+ "",
748
+ {"key": "mrs", "text": "MRs", "style": "section", "summary": "0/6 merged", "collapsed": true},
749
+ {"key": "mr-1", "ref": "#1", "text": "batch read sources", "mark": "wait", "link": "https://gitlab.com/…/merge_requests/9977"},
750
+ {"key": "mr-1-state", "text": "pipeline passed · 0/1 approvals · 2 open threads", "mark": "info", "indent": 4},
751
+ {"key": "mr-2", "ref": "#2", "text": "per-event and per-recipient counters", "mark": "current"},
752
+ {"key": "mr-3-6", "ref": "#3–#6", "text": "channel map · use case · document detail · route", "mark": "pending"},
698
753
  "",
699
- {"ref": "#1", "text": "batch read sources", "mark": "wait", "link": "https://gitlab.com/…/merge_requests/9977"},
700
- {"ref": "#2", "text": "per-event and per-recipient counters", "mark": "current"},
701
- {"ref": "1–2", "text": "counter columns + migration · repository query", "mark": "done", "indent": 4},
702
- {"ref": "3", "text": "per-recipient aggregation in the use case", "mark": "current", "indent": 4},
703
- {"ref": "4", "text": "expose both counters on the endpoint", "mark": "pending", "indent": 4},
704
- {"ref": "#3–#6", "text": "channel map · use case · document detail · route", "mark": "pending"},
754
+ {"key": "plan", "text": "Plan #2", "style": "section", "summary": "1/3"},
755
+ {"key": "step-1", "ref": "1", "text": "counter columns + migration", "mark": "done", "indent": 4},
756
+ {"key": "step-2", "ref": "2", "text": "per-recipient aggregation in the use case", "mark": "current", "indent": 4},
757
+ {"key": "step-3", "ref": "3", "text": "expose both counters on the endpoint", "mark": "pending", "indent": 4},
705
758
  "",
706
- {"ref": "Now", "text": "unit suite and the test agent over #2", "mark": "info"},
707
- {"ref": "Next", "text": "ship #2", "mark": "info"},
708
- {"ref": "Decision", "text": "confirm the MR/PR body before I create it", "mark": "wait"},
759
+ {"key": "sib-1", "ref": "mcp !71", "text": "pipeline running", "mark": "wait", "link": "https://gitlab.com/…/mcp/-/merge_requests/71"},
709
760
  "",
710
- {"text": "sibling-repo still needs the endpoint contract", "mark": "block"}
761
+ {"key": "open", "ref": "Open", "text": "review round 2 · 1 open · 2 follow-ups", "mark": "info"},
762
+ "",
763
+ {"key": "now", "ref": "Now", "text": "unit suite and the test agent over #2", "mark": "info"},
764
+ {"key": "next", "ref": "Next", "text": "ship #2", "mark": "info"},
765
+ {"key": "decision", "ref": "Decision", "text": "confirm the MR/PR body before I create it", "mark": "wait"},
766
+ "",
767
+ {"key": "block-1", "text": "sibling-repo still needs the endpoint contract", "mark": "block"}
711
768
  ]
712
769
  }
713
770
  ```
714
771
 
715
- - **`mark` says what a line is**; the reader draws it. `done` · `current` (at most one per block) · `pending` · `wait` (waiting on someone else: an open MR/PR, a user decision) · `block` · `info`. Marked lines form an aligned column: symbol, `ref`, text, link pinned right. Do not set `style` on a marked line — except `mark: "info"` + `style: ok|warn|error` when the colour *is* the information (a monitoring verdict).
716
- - **`ref` need not be a number**: `#1`, `#3–#6`, `Now`, `Next`, `Decision`. Column width is per block; blocks are separated by blank lines — use them so the MR/PR train and the labels below do not drag each other wide.
717
- - **`link` is a field, never a URL inside `text`** — and **every line that names an MR/PR carries it**: the train entries, a blocker about somebody else's MR/PR, a `Now` or `Next` about the open one. The URL is in `meta.json.mrs[].url` or in whatever recorded that blocker; a bare `!10327` typed into `text` is a number the reader cannot make clickable, which is the whole point of the field. No URL recorded anywhere → the number in `text` and nothing else, and go and record it.
718
- - **Order:** (1) work title (`style: title`, no mark); (2) the MR/PR train, one entry per `meta.json.mrs[]` with `ref` `#n`, short title, real-state `mark`, `link` when there is a URL — not-started entries collapse into one `#a–#z` `pending` line; omit the block without `mrs`; (2b) **the plan steps of the MR/PR being built**, right under its train entry — only while `build` or `fix` is working through a written plan (`/flow-feat-build §2.0ter`, `/flow-bug-fix §2.0bis`); one line per step, `ref` its number (`1`, `2`…), `indent: 4`, `key` `step-<n>`, `mark` `done` · `current` · `pending` from the plan's ticks in the phase artifact — never ahead of them; past three finished steps they collapse into one `done` line (`1–4`, `key` `steps-done`), and past three pending ones the tail collapses the same way (`key` `steps-pending`), so the block stays at five lines or fewer; drop the block when the MR/PR's build ends. This is the step list the user watches: a harness's own task list, where there is one, is a bonus on top — the panel is what every harness can feed; (3) `Now` — what is running, the one fact `meta.json` cannot hold; (4) `Next`; (5) `Decision`, `mark: wait`, **only** when parked on the user — over the tools it travels with `attention: "wait"` (§4.2), and both are cleared together; (6) blockers, `mark: block` (a sibling repo with `contract_handoff: pending`, a red pipeline, an unmerged dependency).
719
- - **Rules:** `phase` is the phase you are **running now** (not `meta.json.phase`, which advances only at Close). `header: true` means ticket, type, phase and age are drawn by the reader — do not repeat them in `lines`. Keep it under ~14 lines. Every fact from `meta.json` and the artifacts — an invented MR/PR state is worse than a blank panel. Write in the language of the work's artifacts.
720
-
721
- ### 4.2 Over the terminal's MCP — `panel_set` once, `panel_patch` from then on
722
-
723
- **The first publication of the session — `panel_set`.** `source: "flow"`. It claims the pane for as
724
- long as this session lives, and a second producer is refused by name. The document is the one §4.1
725
- specifies, plus two additions:
726
-
727
- - **`attention`, at the top level**, beside `phase`: `wait` when parked on the user, `block` when
728
- stuck on somebody else (red pipeline, sibling repo's contract), `done` when the cycle closed and
729
- nobody has looked. Absent while simply working. The app never deduces it: a `mark: "wait"` inside
730
- `lines` is body text and claims nothing. The tab's card shows the strongest claim among its panes,
731
- so a `wait` you forget to clear flags that tab for ever — clear it with
732
- `{"op": "set", "field": "attention", "value": null}`.
733
- - **A `key` on every line you may want to change later** — `title`, `mr-1`, `now`, `next`,
734
- `decision`, `block-1`. It is never painted, and it must be unique: a key that names two lines
735
- refuses every patch addressing it.
736
-
737
- **Everything after that is `panel_patch`:**
738
-
739
- ```json
740
- {"ops": [
741
- {"op": "replace", "key": "now",
742
- "line": {"key": "now", "ref": "Now", "text": "unit suite over #2", "mark": "info"}},
743
- {"op": "set", "field": "phase", "value": "validate"},
744
- {"op": "set", "field": "attention", "value": "wait"}]}
745
- ```
746
-
747
- - Ops: `replace`, `before`, `after`, `delete` (by `key`), `first`, `last`, and `set` for `phase`,
748
- `attention`, `header` or `stale_after_minutes`. They see each other, in the order written.
749
- - **Either the whole list applies or none of it does**, so a patch is safe to send without reading
750
- first: the worst case is that nothing happened and you were told why.
751
- - **A patch whose answer never arrived may have been applied — send it again.** The resend is
752
- refused rather than doubling the line.
753
- - At most 64 ops per call. `actions` are not patchable: change buttons with a whole `panel_set`.
754
- - Republish with `panel_set` only when the *shape* changes (a new MR/PR train, a different body).
755
-
756
- **Refusals are information, not noise.** `no line of this panel carries the key "…"` → your keys and
757
- the panel disagree: `panel_get` and republish. `publish with panel_set before patching` → this pane
758
- is still on its file. `this panel is held by "…"` → another producer owns it; do not fight it, say
759
- so at the next stop.
760
-
761
- **After a compaction, a restart or a resumed work**, call `panel_get` **before publishing**. It
762
- returns the document on screen — yours or one that arrived by file — and publishing it back leaves
763
- the panel exactly as it is. What comes back is the document as the app understood it: unknown fields
764
- are gone and defaults come back absent.
765
-
766
- **Optional — buttons at a stop.** At a stop parked on the user, `actions` (up to 8) paint a button
767
- whose command is shown literally and is written into this pane's program on one click — which here
768
- is this very session's prompt. So `{"label": "Approve the design", "send": "approve"}` answers you
769
- without the user typing. Plain text, no line breaks, never a credential: it is painted on screen and
770
- lands in the shell history.
771
-
772
- ### 4.3 Without those tools — `.claude/work/<work>/panel.json`
773
-
774
- Overwrite the file **whole** (never patch) with the §4.1 document. `updated_at` from the real clock
775
- (`date -Iseconds`), never carried over — it is how the reader flags a stale snapshot. `attention`
776
- and `key` buy nothing here: the file panel is drawn from `mark` and `ref` alone.
772
+ - **`mark` says what a line is**; the reader draws it. `done` · `current` (at most one per block) · `pending` · `wait` (waiting on someone else: an open MR/PR, a user decision) · `block` · `info`. Do not set `style` on a marked line — except `mark: "info"` + `style: ok|warn|error` when the colour *is* the information (a monitoring verdict, the closing line).
773
+ - **`link` is a field, never a URL inside `text`**, and every line that names an MR/PR carries it.
774
+ - **Block headers.** A line with `style: "section"` names the block it opens, `summary` (at most 40 characters) says how far along it is, and `collapsed: true` makes the block start folded — title and summary only, until the reader opens it. The train's header (`MRs`, or `PRs` on GitHub; `<merged>/<all> merged`) is always folded: merged MRs/PRs are reference. The plan's header (`Plan #<n>`, plain `Plan` for a bug; `<ticked>/<steps>`) and the `Now`/`Next`/`Decision` block stay open: they are the news.
775
+ - **`milestone` / `deliverable`** say where this console works in the project's plan (§10): copied from `meta.json.roadmap`, and absent when the work is not a deliverable of it. Never set from anything else.
776
+ - **Order:** the title (`meta.json.title` without the ticket id: `header: true` draws ticket, type, phase and age); the MR/PR train under its header, one entry per `meta.json.mrs[]` (a single MR/PR from `mr_url`), not-started ones folded into one `#a–#z` line, each open one followed by its state from the forge; then, in a block of its own, the plan's steps of the MR/PR being built — or of the bug in `fix` — from the ticks, never ahead of them, at most five lines (past three done they fold, a long pending tail folds); sibling repos' MRs/PRs; one `Open` line for the latest review round's open findings and the open follow-ups; `Now`, `Next`, `Decision`; blockers. A finished work (`meta.json.phase` `done`) shows its train, one `info`/`ok` closing line and `attention: done`, and nothing else.
777
+ - **Rules:** every fact from `meta.json`, the artifacts and the forge — an invented MR/PR state is worse than a blank panel. Keep it under ~14 lines.
778
+
779
+ ### 4.2 Over the terminal's MCP — `panel_set` with what the CLI printed
780
+
781
+ **Every publication is one `panel_set`** — `source: "flow"`, `document` the JSON the CLI just
782
+ printed, which already carries a `key` on every line and the top-level `attention`: `wait` when
783
+ parked on the user, `block` when stuck on somebody else, `done` when the work closed, absent while
784
+ simply working. The terminal never deduces it from the body, and a `wait` left behind flags that tab
785
+ for ever — so the next render, which drops the `decision`, is what clears it. The first `panel_set`
786
+ claims the pane for as long as this session lives; a second producer is refused by name.
787
+ `attention_since` — when the current `attention` started — is the terminal's to keep: flow never
788
+ writes it, and drops it from a document it read back with `panel_get` before publishing again.
789
+
790
+ - `panel_patch` is for the CLI-unavailable case only (§4): there, patch by `key` rather than
791
+ rebuild — ops `replace`, `before`, `after`, `delete`, `first`, `last`, `set` (`phase`,
792
+ `attention`, `header`, `stale_after_minutes`); the whole list applies or none of it does, and a
793
+ resend of a patch whose answer never arrived is refused rather than doubling a line.
794
+ - **Refusals are information.** `this panel is held by "…"` → another producer owns it; do not fight
795
+ it, say so at the next stop.
796
+ - **After a compaction, a restart or a resumed work**, call `panel_get` before publishing: it returns
797
+ what is on screen, which may have arrived from elsewhere.
798
+ - **A hook cannot call these tools.** Where the reader is a terminal like this one, the person sets
799
+ `panel.publish_cmd`, in a git-ignored FLOW file, to whatever command that terminal offers for
800
+ publishing a document from a shell; the CLI pipes every render into it, the hook's included.
801
+ - **Optional — buttons at a stop.** At a stop parked on the user, `actions` (up to 8) paint a button
802
+ whose command is written into this pane's program on one click — this very session's prompt. Add
803
+ them to the printed document before `panel_set`: `{"label": "Approve the design", "send":
804
+ "approve"}`. Plain text, no line breaks, never a credential.
805
+
806
+ ### 4.3 Without those tools — the file is the transport
807
+
808
+ `panel.json` is what the CLI already wrote: nothing else to do. Written by hand (the CLI
809
+ unavailable), overwrite the file **whole** with the §4.1 document and `updated_at` from the real
810
+ clock (`date -Iseconds`), never carried over — it is how a reader flags a stale snapshot.
777
811
 
778
812
  ### 4.4 When to publish — whichever transport is in play
779
813
 
780
814
  (a) In pre-flight, as soon as `meta.json` is loaded; (b) immediately **before** every stop header;
781
815
  (c) **before** any long stretch (fan-out, full suite, CI poll) — never after, so a step that dies
782
816
  halfway is not shown as finished. When the stretch will outlast the ~30 min staleness warning, set
783
- `stale_after_minutes` to what it will really take; (d) wherever `## Close` updates `meta.json`. A
784
- held panel still goes stale: the app stamps each delivery's arrival.
785
-
786
- **(e) The moment a question is answered or a gate is cleared** — before you resume the work, not at
787
- the next stop. Drop the `Decision` line, clear `attention`, and move `Now` on: one patch, the first
788
- thing you do with the answer. A panel still asking what the user already answered is worse than one
789
- that never asked, because they answered it and the screen says it did not land; and an `attention`
790
- nobody clears keeps that tab claiming them for ever. The same applies to a blocker that lifted and
791
- to a `wait` line whose MR/PR merged.
792
-
793
- **(f) Each plan step that lands** (the (2b) block): one patch, the moment its tick goes into the
794
- phase artifact — that step to `done`, the next to `current`, `Now` moved on. Not batched at the end
795
- of the MR/PR: a list that jumps from nothing to finished told the user nothing while it mattered.
817
+ `stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
818
+ `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
819
+ work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
820
+ already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
821
+ the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
822
+ and the input change already rendered it; publish over the tools anyway when they are there.
796
823
 
797
824
  ### 4.5 `meta.json.cost[]` — what a phase measured, when it could
798
825
 
@@ -833,26 +860,17 @@ section does not exist: no artifact tool is loaded or called.
833
860
  (f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
834
861
  tool call, and outside auto mode a prompt, while a card left alone for 30 minutes reads as a dead
835
862
  session on the page.
836
- - **What**: what the terminal now shows, never a document rebuilt in your head. On the file
837
- transport, the §4.1 document just written. Over the tools, what `panel_get` returns right after a
838
- publication that applied — a refused patch changed nothing on screen and writes nothing here.
839
- Then set, whichever transport:
840
- - `updated_at` — the real clock (`date -Iseconds`); over the tools the app stamps arrival itself,
841
- so the document carries none of its own.
842
- - `attention` — as §4.2 defines it, on the file transport too: `wait` while a `Decision` is
843
- parked on the user, `block` while stuck on somebody else, absent while simply working — and
844
- `done` only once the work is over: `meta.json.phase` set to `done`, or `abandon` (whose terminal
845
- panel clears `attention` and carries a `block` line; the card says `done`). An open MR/PR
846
- waiting to merge is not over. The page reads the state from this field alone.
847
- - `repo` (the repo id below), `work` (the work folder's name), `ticket`, `type`, `branch`, and
848
- `harness` (`Claude Code`), from `meta.json` and git.
863
+ - **What**: `card.json`, which the CLI writes beside `panel.json` whenever `panel.artifact` is set
864
+ — the rendered document plus `repo`, `work`, `ticket`, `type`, `branch` and `harness` — passed as
865
+ `file_path` to the `set`. Never a document rebuilt in your head. Its `attention` is the
866
+ document's: `done` once `meta.json.phase` is `done`, or once every MR/PR of the work and every MR/PR
867
+ recorded for its sibling repos has merged (the forge's word counts) with no Decision or blocker left in the
868
+ session's own input; an abandoned work claims nobody (its input carries only the `block` line
869
+ saying why); an open MR/PR waiting to merge is not over. The page reads
870
+ the state from that field alone. The CLI unavailable → the hand-written §4.1 document with those
871
+ six fields added.
849
872
  - **Where**: action `set` — the whole document, so a line dropped from the panel leaves the card —
850
- `url` the key's value, collection `works`, doc id `<repo id>--<work folder>`. The repo id is the
851
- path of `git remote get-url origin` — everything after the host, which ends at the first `/` after
852
- `//` (`https://host/owner/repo.git`, `ssh://git@host:22/owner/repo.git`) or at the first `:`
853
- (`git@host:owner/repo.git`) — with `.git` dropped and every `/` turned into `.`: `owner.repo`,
854
- `group.subgroup.repo`. No remote → the main checkout's directory name (§0). Any character outside
855
- `[A-Za-z0-9_.~:@+-]` becomes `-`.
873
+ `url` the key's value, collection `works`, doc id `<repo>--<work>`, both read from `card.json`.
856
874
  - **Version**: a write to a card that exists needs `if_version`, the version the last write
857
875
  returned. Keep it in the session — one writer per card, so it is right until the session loses
858
876
  it. None held → one `get` first: the card exists → pin to its version; it does not → write
@@ -865,14 +883,14 @@ section does not exist: no artifact tool is loaded or called.
865
883
  mirror off or the key empty → nothing to do. A folder moved back out of `_archive/` gets its card
866
884
  again at its next publication.
867
885
  - **A card whose MR/PR moved without its session.** A merge or a close done in the forge has no
868
- session to write it, and the card keeps asking. `/flow-work-daily` and `/flow-work-clean` — the
869
- commands that ask the forge about every recorded MR/PR — read `works` once (`list`) when the
870
- mirror is on, and rewrite each card of this repo (`repo` as below) whose work the forge just
871
- showed moved while the card still shows it open: that train line's `mark` to `done` (merged) or
872
- `block` (closed unmerged), `Now` to that fact, the `Decision` and every `wait` line about that
873
- MR/PR dropped, and `attention` to `done` when every MR/PR of the work is merged, cleared
874
- otherwise. Same `set`, same version pinning as above; `meta.json` is not touched — the work's own
875
- next phase, or `clean`, closes it.
886
+ session to write it, and the card keeps asking. `/flow-work-daily` and `/flow-work-clean` read
887
+ `works` once (`list`) when the mirror is on, and for each card of this repo whose train still
888
+ shows an MR/PR open, run `panel --harness <harness> --work <work> --forge` and `set` the
889
+ `card.json` it wrote — the forge's answer turns that line `done` or `block`, and the card closes
890
+ (`attention: done`, no Decision) once every MR/PR of the work, siblings included, has merged:
891
+ rendered for another branch, the input is that session's last word, not a live question. Such a
892
+ render writes only the card: that work's `panel.json` is its own session's pane. Same version pinning as above; `meta.json` is not
893
+ touched — the work's own next phase, or `clean`, closes it.
876
894
  - **Failure never stops a phase.** A second version refusal → no more retries for that
877
895
  publication. Any other failure — a wrong URL, auth, a permission prompt the user declined — turns
878
896
  the mirror off for the rest of the session. Either way the next stop carries one line,
@@ -1466,7 +1484,8 @@ only for items that are not done; the commands that report it stay read-only.
1466
1484
 
1467
1485
  **The link.** A work records the item it delivers in `meta.json.roadmap`:
1468
1486
  `{ "path": "<file>", "item": "<the item's text, without checkbox, annotation or note>", "under": "<heading › heading>" }`
1469
- — or `null`. `/flow-feat-start` sets it: an item the ticket clearly names (its id in the item's text
1487
+ — or `null`. With the project plan on (§10.1) it may also carry `milestone` and `deliverable`, the
1488
+ ids of the plan that place this console on the board. `/flow-feat-start` sets it: an item the ticket clearly names (its id in the item's text
1470
1489
  or ticket cell, or its title matching the item's text) is taken in every mode; otherwise `manual`
1471
1490
  asks once, offering the next items and *none*, and `guided`/`auto`/`unattended` record `null` and
1472
1491
  say so in one line. A work is linked to one item, at any depth: linking a milestone means the work
@@ -1509,6 +1528,76 @@ before and after:
1509
1528
  Bugs do not link: a bug repairs something already delivered, and the roadmap tracks what is still to
1510
1529
  deliver. A bug that *is* a roadmap item is started as a feature.
1511
1530
 
1531
+ ### 10.1 The project plan — the roadmap on the terminal's board
1532
+
1533
+ A terminal that paints panels may also paint a board with one **plan** per repository, shared by
1534
+ its worktrees: its milestones, each milestone's deliverables and their state, and every console of
1535
+ the repo hung from the deliverable it works on. flow publishes the roadmap there — translated, never
1536
+ judged.
1537
+
1538
+ **On only when both hold**, else this section does not exist and nothing is said:
1539
+ - `roadmap.path` **names a file** in the FLOW config. Empty (found by the default names) or `none` →
1540
+ no plan: a board is something the repo asks for, not something flow deduces it wants.
1541
+ - A tool whose name ends in `plan_set` is there — namespaced and possibly **deferred**, as §4 says
1542
+ of `panel_set`. There is no file transport for the plan: where the plan lives is the terminal's
1543
+ business.
1544
+
1545
+ **The translation** — one document, the whole file every time, read by §10's rules:
1546
+
1547
+ ```json
1548
+ {"title": "<the file's first heading>", "source": "<roadmap.path>",
1549
+ "milestones": [{"id": "H3", "title": "TaxRates", "done_when": "<criterion as written>",
1550
+ "depends_on": ["H0"],
1551
+ "items": [{"id": "MT-16456", "text": "Jurisdiction catalog", "mark": "done", "ref": "MT-16456"},
1552
+ {"id": "TAX-06", "text": "Manual load with review", "mark": "pending"},
1553
+ {"text": "Backup sources", "mark": "pending"}]}],
1554
+ "outside": [{"text": "Company certificate", "mark": "pending"}]}
1555
+ ```
1556
+
1557
+ - **A milestone** is each of §10's milestones, in file order. `id` is the code its heading or its
1558
+ order-table row leads with (`H3` in `H3 · TaxRates`, `Phase 2` in `Phase 2: Billing`), and
1559
+ `title` the rest; a heading with no code is its own `id` and `title`, whole. `done_when` is its
1560
+ closing criterion as written, without its label; none → absent. `depends_on` is the `id` of every
1561
+ milestone its order-table dependency cell names by §10's rule — a range written as one (`H2 to
1562
+ H11`) names each milestone whose code has the same prefix and a number in that range, never a
1563
+ milestone without a code that happens to sit between them in the file; an item, a person or
1564
+ anything outside the file named there stays out.
1565
+ - **An item** is each deliverable — a table row or a checkbox — under that milestone, in file
1566
+ order. `text` is the item's first sentence, its markdown removed, cut to 80 characters with `…`.
1567
+ `ref` is the ticket cell as written (the checkbox annotation's ticket), absent when empty or a
1568
+ dash. `id` is the ticket that cell names; no ticket → the one requirement code the row's whole
1569
+ text cell (not only its first sentence) cites in parentheses (`(TAX-06)`), when it cites exactly
1570
+ one; neither → no `id`. An `id` that two items of one milestone would share — a ticket or a code
1571
+ alike — stays bare on the first and becomes `<id>-2`, `-3`… on the next, in file order.
1572
+ - **`mark` is the state word, copied** — the file's done word → `done`, in progress → `current`,
1573
+ pending → `pending`; a word the file uses for blocked → `block`, for waiting on someone →
1574
+ `wait`. The note after `:` is not read. A word flow cannot place → no `mark`: the board counts
1575
+ only `done`, and an unmarked item is the truth about a state flow does not understand. **Never
1576
+ corrected, never completed**: a stale item (§10) is published as the file says it — fixing the
1577
+ file is `ship`'s job, in an MR/PR — and a milestone is never marked closed.
1578
+ - **`outside`** holds §10's side work — the sections the order table does not list, such as work
1579
+ that is not code — as items of the same shape.
1580
+
1581
+ **When — wherever the roadmap is read to choose or to move**, and nowhere else: `next` and `daily`
1582
+ after they compute where the project stands, `/flow-feat-start` after it links the work (§3.7), and
1583
+ `/flow-feat-ship` right after it commits a roadmap edit — the branch's file, as the MR/PR carries
1584
+ it. That is on purpose: the board shows the deliverable moving the moment its MR/PR says so, and a
1585
+ later `next` or `daily` run from a checkout that has not merged it yet publishes that checkout's
1586
+ 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
1587
+ document and `repo` the checkout the file was read from.
1588
+
1589
+ **Where this console works.** The same moment, from a work's checkout (`start`, `ship`): the rows
1590
+ whose ticket cell names `meta.json.ticket` decide it. One row → write its milestone's `id` and the
1591
+ row's `id` into `meta.json.roadmap` as `milestone` and `deliverable`; several → the one
1592
+ `meta.json.roadmap.item` names, else `milestone` alone when they share one, else neither. No row →
1593
+ neither, and remove them if an earlier publication wrote them: the panel then carries no place, and
1594
+ the board shows the console off the plan, which is what it is. The panel CLI copies the two fields
1595
+ from `meta.json` into every render (§4.1); nothing else sets them.
1596
+
1597
+ **Failure never stops a phase.** A refusal, a malformed reply or a tool that errors → no retry; the
1598
+ next stop carries one line, `plan: <error>`, once per session. `plan_retire` is the person's: flow
1599
+ never retires a plan.
1600
+
1512
1601
  ## 11. A red test outside the change — find the cause before it is excused
1513
1602
 
1514
1603
  A test this diff did not touch goes red, and every path flow has for it — the base exception and the
@@ -22,7 +22,7 @@ Apply the fix. **Minimum viable**: no refactor of adjacent areas. Note other pro
22
22
 
23
23
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: the subagents it launches take `models.agents`.**
24
24
 
25
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
25
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
26
26
 
27
27
  **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.
28
28
 
@@ -123,7 +123,7 @@ Save it in `04-fix.md` under `## Plan`, right after the brief. **A fix that was
123
123
 
124
124
  - Apply the minimal fix targeting the finding of `03-investigation.md` (or the diagnosis if investigate was skipped).
125
125
  - Sensitive area (authentication, payments, sensitive data) → consult the `agents.architecture` agent from FLOW.md to confirm the correct layer; empty → check against `conventions` in FLOW.md.
126
- - More than 2 fix steps → the §2.0bis plan is already written: tick its numbered steps off in `04-fix.md` where they stand, and show them in the live panel's step block (flow-core §4.1 (2b), patched per §4.4 (f)); a harness task list, if there is one, goes on top as `/flow-feat-build §2.1` says. One task per step, same order, marked `in_progress` and `completed` as they go — not batched.
126
+ - More than 2 fix steps → the §2.0bis plan is already written: tick its numbered steps off in `04-fix.md` where they stand, and render the panel as each lands — the panel CLI draws the steps from those ticks (flow-core §4.1, §4.4 (f)); a harness task list, if there is one, goes on top as `/flow-feat-build §2.1` says. One task per step, same order, marked `in_progress` and `completed` as they go — not batched.
127
127
  - **Comment discipline**: comment only a *why* the code cannot say (a non-obvious constraint, the reason for a workaround, a subtle invariant); match the surrounding file's comment density. **Never write the ticket ID or "fix for #N" into a code comment** — that lives in the commit/branch/MR-PR.
128
128
  - Keep the log updated while editing.
129
129
 
@@ -29,7 +29,7 @@ cannot be reproduced and needs a person to try → blocked.
29
29
 
30
30
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: the subagents it launches take `models.agents`; its parallel rounds take `models.workers`.**
31
31
 
32
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
32
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
33
33
 
34
34
  **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.
35
35
 
@@ -24,7 +24,7 @@ Goal: capture lessons that prevent recurrence — not to blame anyone.
24
24
 
25
25
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: this command runs with the model it was launched with (no `models` key).**
26
26
 
27
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
27
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
28
28
 
29
29
  **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.
30
30
 
@@ -22,7 +22,7 @@ Mandatory code review of the fix.
22
22
 
23
23
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: the subagents it launches take `models.agents`; its parallel rounds take `models.workers`.**
24
24
 
25
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
25
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
26
26
 
27
27
  **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.
28
28
 
@@ -37,7 +37,7 @@ stays `ship`); and Close ends with the run's closing order, on a clean tree:
37
37
 
38
38
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: this command runs with the model it was launched with; the wait it delegates takes `models.supervisors`.**
39
39
 
40
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
40
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
41
41
 
42
42
  **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.
43
43
 
@@ -199,7 +199,7 @@ posted as comments anchored on the changed lines of the MR/PR, confirmed in ever
199
199
  - **A worktree does not own the tree its tools wrote into — `/flow-feat-ship` §5.5, in full and unchanged.** First, before anything below: `meta.json.worktree` not null → read the main checkout's `git status --porcelain`, name any paths it holds in one line as what they are (in the main checkout, not in the branch just pushed, and not necessarily put there by this run), and offer once to carry them over. The knowledge files are no longer the expected case — flow-core §0 step 4 moved them into the worktree before the commit, whether `postmortem` or §3.1 saved them — so what is left here is another tool's output, or a move that went wrong.
200
200
  - **Knowledge still owed — `/flow-feat-ship` §5, in full and unchanged**: `meta.json.knowledge.status` `later` or `failed` → offered once on this re-run; onto the open branch, or a knowledge-only MR/PR once the fix merged.
201
201
  - Update `meta.json`: add `ship` to `phases_done`, update `updated_at`. **`phase` becomes `done` only once the MR/PR is confirmed merged** — creating it is not finishing it. Right after §3.1 it is open, so ask once with `AskUserQuestion` whether it has already been merged: **no** (the normal answer) → leave `phase = "ship"`; **yes** → `phase = "done"`. `/flow-work-green` and `/flow-work-respond` work on the open MR/PR; `/flow-work-clean` only sweeps what merged.
202
- - Refresh the panel: while the MR/PR is open its line is `wait` with the `link`; once merged it is `done`, and only then say there is nothing left here (`mark: "info"`, `style: "ok"`). Drop the `Decision` line either way.
202
+ - Render the panel (flow-core §4, with `--forge`): while the MR/PR is open its line is `wait` with its real state; once merged it is `done`, and at `phase = "done"` the CLI closes the panel itself. Drop `decision` from the input either way.
203
203
  - Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
204
204
  - **Tracker: move to done.** **Only when this ship set `phase = "done"`** (merge confirmed just above) and `tracker.tool` is not `none`/empty, `tracker.done_cmd` is set, and `meta.json.ticket` is a **real tracker id**: run `tracker.done_cmd` with `{TICKET}` = `meta.json.ticket`. Never on an open MR/PR. If the answer was "not merged", skip silently — the transition belongs to whoever confirms the merge (`/flow-work-clean` reports the branch as merged, and re-running this close is legitimate). Same contract as `/flow-bug-start §4.5`: **best-effort, idempotent, gated** (ask once in `autonomy.mode: manual`; automatic in `guided`/`auto`); failure or already-done ticket → warn and continue, never block. **Leave `tracker.done_cmd` empty on GitHub/GitLab** — `Closes #N` already auto-closes on merge; this is for Jira/Linear-style trackers.
205
205
  - Summarize: ticket, MR/PR URL, regression test added.
@@ -41,7 +41,7 @@ the answer lands there and `start` is never relaunched.
41
41
 
42
42
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: this command runs with the model it was launched with (no `models` key).**
43
43
 
44
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
44
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
45
45
 
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
 
@@ -22,7 +22,7 @@ Validate that the fix works and that the bug does not return.
22
22
 
23
23
  Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, models, autonomy modes and hard gates, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session. **Models: the subagents it launches take `models.agents`; the wait it delegates takes `models.supervisors`.**
24
24
 
25
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
25
+ **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error` · `section`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told. **Publish it before every stop and every question, and again the moment an answer arrives** — the control-room card with it when the control room is on (flow-core §4.4, §4.6): a phase that asks four questions and publishes nothing leaves the screen on the first.
26
26
 
27
27
  **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.
28
28
 
@@ -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 and no `panel.json` is written; genuinely absent → the panel is that file, as before. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport.
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.
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