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.
- package/README.md +10 -4
- package/adapters/codex/CORE.md +224 -135
- package/adapters/codex/skills/flow-bug-fix/SKILL.md +2 -2
- package/adapters/codex/skills/flow-bug-investigate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-bug-postmortem/SKILL.md +1 -1
- package/adapters/codex/skills/flow-bug-review/SKILL.md +1 -1
- package/adapters/codex/skills/flow-bug-ship/SKILL.md +2 -2
- package/adapters/codex/skills/flow-bug-start/SKILL.md +1 -1
- package/adapters/codex/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-build/SKILL.md +3 -3
- package/adapters/codex/skills/flow-feat-design/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-plan/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-review/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-ship/SKILL.md +3 -3
- package/adapters/codex/skills/flow-feat-start/SKILL.md +2 -2
- package/adapters/codex/skills/flow-feat-validate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-next/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-README/SKILL.md +8 -8
- package/adapters/codex/skills/flow-work-abandon/SKILL.md +2 -2
- package/adapters/codex/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-daily/SKILL.md +3 -3
- package/adapters/codex/skills/flow-work-green/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-handoff/SKILL.md +5 -4
- package/adapters/codex/skills/flow-work-query/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-respond/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-resume/SKILL.md +9 -25
- package/adapters/codex/skills/flow-work-run/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-try/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-watch/SKILL.md +1 -1
- package/adapters/gemini/CORE.md +224 -135
- package/adapters/gemini/commands/flow/bug/fix.toml +2 -2
- package/adapters/gemini/commands/flow/bug/investigate.toml +1 -1
- package/adapters/gemini/commands/flow/bug/postmortem.toml +1 -1
- package/adapters/gemini/commands/flow/bug/review.toml +1 -1
- package/adapters/gemini/commands/flow/bug/ship.toml +2 -2
- package/adapters/gemini/commands/flow/bug/start.toml +1 -1
- package/adapters/gemini/commands/flow/bug/validate.toml +1 -1
- package/adapters/gemini/commands/flow/doctor.toml +1 -1
- package/adapters/gemini/commands/flow/feat/build.toml +3 -3
- package/adapters/gemini/commands/flow/feat/design.toml +1 -1
- package/adapters/gemini/commands/flow/feat/plan.toml +1 -1
- package/adapters/gemini/commands/flow/feat/review.toml +1 -1
- package/adapters/gemini/commands/flow/feat/ship.toml +3 -3
- package/adapters/gemini/commands/flow/feat/start.toml +2 -2
- package/adapters/gemini/commands/flow/feat/validate.toml +1 -1
- package/adapters/gemini/commands/flow/next.toml +1 -1
- package/adapters/gemini/commands/flow/work/README.toml +8 -8
- package/adapters/gemini/commands/flow/work/abandon.toml +2 -2
- package/adapters/gemini/commands/flow/work/clean.toml +1 -1
- package/adapters/gemini/commands/flow/work/daily.toml +3 -3
- package/adapters/gemini/commands/flow/work/green.toml +1 -1
- package/adapters/gemini/commands/flow/work/handoff.toml +5 -4
- package/adapters/gemini/commands/flow/work/query.toml +1 -1
- package/adapters/gemini/commands/flow/work/respond.toml +1 -1
- package/adapters/gemini/commands/flow/work/resume.toml +9 -25
- package/adapters/gemini/commands/flow/work/run.toml +1 -1
- package/adapters/gemini/commands/flow/work/try.toml +1 -1
- package/adapters/gemini/commands/flow/work/watch.toml +1 -1
- package/adapters/hermes/CORE.md +224 -135
- package/adapters/hermes/skills/flow-bug-fix/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-bug-investigate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-bug-postmortem/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-bug-review/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-bug-ship/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-bug-start/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-bug-validate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-build/SKILL.md +3 -3
- package/adapters/hermes/skills/flow-feat-design/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-plan/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-review/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-ship/SKILL.md +3 -3
- package/adapters/hermes/skills/flow-feat-start/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-feat-validate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-next/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-README/SKILL.md +8 -8
- package/adapters/hermes/skills/flow-work-abandon/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-daily/SKILL.md +3 -3
- package/adapters/hermes/skills/flow-work-green/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-handoff/SKILL.md +5 -4
- package/adapters/hermes/skills/flow-work-query/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-respond/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-resume/SKILL.md +9 -25
- package/adapters/hermes/skills/flow-work-run/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-try/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-watch/SKILL.md +1 -1
- package/adapters/opencode/CORE.md +224 -135
- package/adapters/opencode/commands/flow-bug-fix.md +2 -2
- package/adapters/opencode/commands/flow-bug-investigate.md +1 -1
- package/adapters/opencode/commands/flow-bug-postmortem.md +1 -1
- package/adapters/opencode/commands/flow-bug-review.md +1 -1
- package/adapters/opencode/commands/flow-bug-ship.md +2 -2
- package/adapters/opencode/commands/flow-bug-start.md +1 -1
- package/adapters/opencode/commands/flow-bug-validate.md +1 -1
- package/adapters/opencode/commands/flow-doctor.md +1 -1
- package/adapters/opencode/commands/flow-feat-build.md +3 -3
- package/adapters/opencode/commands/flow-feat-design.md +1 -1
- package/adapters/opencode/commands/flow-feat-plan.md +1 -1
- package/adapters/opencode/commands/flow-feat-review.md +1 -1
- package/adapters/opencode/commands/flow-feat-ship.md +3 -3
- package/adapters/opencode/commands/flow-feat-start.md +2 -2
- package/adapters/opencode/commands/flow-feat-validate.md +1 -1
- package/adapters/opencode/commands/flow-next.md +1 -1
- package/adapters/opencode/commands/flow-work-README.md +8 -8
- package/adapters/opencode/commands/flow-work-abandon.md +2 -2
- package/adapters/opencode/commands/flow-work-clean.md +1 -1
- package/adapters/opencode/commands/flow-work-daily.md +3 -3
- package/adapters/opencode/commands/flow-work-green.md +1 -1
- package/adapters/opencode/commands/flow-work-handoff.md +5 -4
- package/adapters/opencode/commands/flow-work-query.md +1 -1
- package/adapters/opencode/commands/flow-work-respond.md +1 -1
- package/adapters/opencode/commands/flow-work-resume.md +9 -25
- package/adapters/opencode/commands/flow-work-run.md +1 -1
- package/adapters/opencode/commands/flow-work-try.md +1 -1
- package/adapters/opencode/commands/flow-work-watch.md +1 -1
- package/bin/cli.mjs +572 -12
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +49 -0
- package/plugins/flow/examples/FLOW.template.md +2 -1
package/README.md
CHANGED
|
@@ -366,14 +366,20 @@ CI runs the same seven on every PR. The preflight refuses what has shipped broke
|
|
|
366
366
|
No agents and no review skill — those are stack-specific; you name yours in the effective FLOW
|
|
367
367
|
configuration, normally the active harness overlay. One worked set ships as an *example* and is
|
|
368
368
|
never loaded: [`examples/symfony/`](plugins/flow/examples/symfony/) is a filled-in `FLOW.md` plus
|
|
369
|
-
four reviewers for a Symfony + Doctrine repo, to copy and edit.
|
|
370
|
-
against pushing to `master`/`main`, an update notice at session start,
|
|
371
|
-
saying which work this branch belongs to and where it stands — after a compaction, that
|
|
369
|
+
four reviewers for a Symfony + Doctrine repo, to copy and edit. Four generic hooks ship: a guard
|
|
370
|
+
against pushing to `master`/`main`, an update notice at session start, a session-start line
|
|
371
|
+
saying which work this branch belongs to and where it stands — after a compaction, that one
|
|
372
372
|
prints the brief and plan the build is held to instead, since there the context is what was lost,
|
|
373
|
-
not the thread
|
|
373
|
+
not the thread — and one after each tool call that re-renders the live panel when the work's
|
|
374
|
+
files changed. Optional dependencies (a knowledge
|
|
374
375
|
source such as `domain-memory` or `codegraph`, your git host CLI, a tracker CLI) improve specific
|
|
375
376
|
steps; without them those steps degrade and the rest works.
|
|
376
377
|
|
|
378
|
+
## Acknowledgements
|
|
379
|
+
|
|
380
|
+
Thanks to [carloscmaleno](https://github.com/carloscmaleno), the first person besides its author
|
|
381
|
+
willing to give flow a chance on real work.
|
|
382
|
+
|
|
377
383
|
## License
|
|
378
384
|
|
|
379
385
|
MIT.
|
package/adapters/codex/CORE.md
CHANGED
|
@@ -17,7 +17,7 @@ Every `$flow-*` command assumes these rules. They are stated once, here, so a co
|
|
|
17
17
|
carries what is specific to its phase. Read this once per session; a command that says "load
|
|
18
18
|
`flow-core`" means this file.
|
|
19
19
|
|
|
20
|
-
**This file belongs to flow `0.
|
|
20
|
+
**This file belongs to flow `0.116.0`.** Compare it once, at the start of the session, against
|
|
21
21
|
`version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
|
|
22
22
|
is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
|
|
23
23
|
— which is exactly what happens when a branch or a release candidate is loaded over an installed
|
|
@@ -664,136 +664,163 @@ I need: <one line — the decision or action you are waiting on>
|
|
|
664
664
|
- **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.
|
|
665
665
|
- **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.
|
|
666
666
|
|
|
667
|
-
## 4. Live panel —
|
|
667
|
+
## 4. Live panel — rendered by `flow-workflows panel`, carried by the terminal's MCP or a file
|
|
668
668
|
|
|
669
|
-
Whenever the state a panel would show changes,
|
|
670
|
-
|
|
671
|
-
(§3).
|
|
669
|
+
Whenever the state a panel would show changes, the panel is rendered again. **Any progress line you
|
|
670
|
+
were about to type into the chat is a panel update instead** (§3).
|
|
672
671
|
|
|
673
|
-
**
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
`
|
|
678
|
-
|
|
679
|
-
transport, never instead of it.
|
|
672
|
+
**You do not write the panel; you write what only you know, and the CLI renders the rest.** The
|
|
673
|
+
title, the MR/PR train and each one's state, the plan's steps, sibling repos' MRs/PRs, what is still
|
|
674
|
+
open — all of it is already in `meta.json`, the plan's ticks and the forge, and a panel rebuilt from
|
|
675
|
+
prose loses it: the step block was published in 8 of 64 build sessions that had a plan, merged
|
|
676
|
+
MRs/PRs stayed `wait`, and panels from other harnesses lost their clock, their links and their
|
|
677
|
+
language. So a publication is two moves:
|
|
680
678
|
|
|
681
|
-
**
|
|
682
|
-
namespaces an MCP server's tools, so what you are looking for is a tool whose name *ends* in
|
|
683
|
-
`panel_set` — `mcp__panel__panel_set` on Claude Code, another prefix elsewhere — and the name is
|
|
684
|
-
whatever it is called there, not `panel_set`. It may also be **deferred**: listed by name with no
|
|
685
|
-
schema, uncallable until you load it, and indistinguishable from absent unless you read that list.
|
|
686
|
-
A deferred tool is a tool that is there; load the three schemas and publish. The file is the answer
|
|
687
|
-
only after that search comes back empty — and this is the one paragraph that decides it, because
|
|
688
|
-
prose describing a file is otherwise obeyed to the letter.
|
|
679
|
+
1. **Write `.claude/work/<work>/panel-input.json`** — whole, every time, only what this moment knows:
|
|
689
680
|
|
|
690
|
-
|
|
681
|
+
```json
|
|
682
|
+
{"phase": "build", "now": "unit suite over #2", "next": "review #2",
|
|
683
|
+
"decision": "confirm the MR/PR body before I create it", "attention": "wait",
|
|
684
|
+
"blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
|
|
685
|
+
"stale_after_minutes": 45,
|
|
686
|
+
"labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
|
|
687
|
+
"closed": "nada más aquí", "review": "ronda de review", "findings": "abiertos",
|
|
688
|
+
"followups": "seguimientos", "merged": "fusionadas"}}
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
|
|
692
|
+
the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
|
|
693
|
+
`next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
|
|
694
|
+
worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
|
|
695
|
+
`blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
|
|
696
|
+
pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
|
|
697
|
+
`labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
|
|
698
|
+
train's header, `MRs`/`PRs` by default), `merged` and `plan` (the block headers); omitted, they are
|
|
699
|
+
English. Free text lives in this file, never on a command line.
|
|
700
|
+
2. **Run `npx flow-workflows@<version> panel --harness <harness> --forge`** from the work's
|
|
701
|
+
checkout (`<version>` this plugin's own, from `~/.claude/flow/.claude-plugin/plugin.json`
|
|
702
|
+
— the rule `$flow-feat-review` §1 gives for every `flow-workflows` call). It writes
|
|
703
|
+
`.claude/work/<work>/panel.json`, writes `card.json` beside it when `panel.artifact` is set, pipes
|
|
704
|
+
the document to `panel.publish_cmd` when that is set, and prints the document. `--forge` asks
|
|
705
|
+
`gh`/`glab` for each open MR/PR and keeps the answers in `forge-state.json`, which the renders
|
|
706
|
+
without it reuse — leave it out at a plan step (§4.4 f), where nothing in the forge moved.
|
|
707
|
+
`meta.json` is never written by it.
|
|
708
|
+
|
|
709
|
+
**Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
|
|
710
|
+
`PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
|
|
711
|
+
newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
|
|
712
|
+
retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
|
|
713
|
+
the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
|
|
714
|
+
|
|
715
|
+
**The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
|
|
716
|
+
document — → write the §4.1 document yourself, once, by its rules, and say so at the next stop:
|
|
717
|
+
`panel: written by hand — <why>`. Never retry variants of the call.
|
|
718
|
+
|
|
719
|
+
**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.
|
|
720
|
+
|
|
721
|
+
**Two transports for the one document.** When the tools `panel_set` / `panel_get` are available,
|
|
722
|
+
this console is a pane of a terminal that paints what reaches it over its MCP (§4.2). Whatever the
|
|
723
|
+
transport, `panel.json` is written — by the CLI — because the session-start hook reads its `Now` and
|
|
724
|
+
`phase` to say what the last session was doing. No work folder (lightweight `respond`/`green`) →
|
|
725
|
+
nothing to publish, either way. With `panel.artifact` set, each publication is also mirrored to a
|
|
726
|
+
claude.ai page that gathers every work of every repo (§4.6) — in addition to the transport, never
|
|
727
|
+
instead of it.
|
|
728
|
+
|
|
729
|
+
**Look for the tools before you conclude they are missing**, once per session, in pre-flight. A
|
|
730
|
+
harness namespaces an MCP server's tools, so what you are looking for is a tool whose name *ends* in
|
|
731
|
+
`panel_set` — `mcp__panel__panel_set` on Claude Code, another prefix elsewhere. It may also be
|
|
732
|
+
**deferred**: listed by name with no schema, uncallable until you load it, and indistinguishable from
|
|
733
|
+
absent unless you read that list. A deferred tool is a tool that is there; load the schemas and
|
|
734
|
+
publish. A tool that answers that this console is not one of its panes → the file is the transport
|
|
735
|
+
for the rest of the session.
|
|
736
|
+
|
|
737
|
+
### 4.1 The document — what the CLI prints, and what you write when it cannot
|
|
691
738
|
|
|
692
739
|
```json
|
|
693
740
|
{
|
|
694
741
|
"updated_at": "2026-08-06T16:45:00+02:00",
|
|
695
742
|
"phase": "validate",
|
|
696
743
|
"header": true,
|
|
744
|
+
"milestone": "H3",
|
|
745
|
+
"deliverable": "MT-1234",
|
|
697
746
|
"lines": [
|
|
698
|
-
{"text": "Expose a thread's tracking state and events", "style": "title"},
|
|
747
|
+
{"key": "title", "text": "Expose a thread's tracking state and events", "style": "title"},
|
|
748
|
+
"",
|
|
749
|
+
{"key": "mrs", "text": "MRs", "style": "section", "summary": "0/6 merged", "collapsed": true},
|
|
750
|
+
{"key": "mr-1", "ref": "#1", "text": "batch read sources", "mark": "wait", "link": "https://gitlab.com/…/merge_requests/9977"},
|
|
751
|
+
{"key": "mr-1-state", "text": "pipeline passed · 0/1 approvals · 2 open threads", "mark": "info", "indent": 4},
|
|
752
|
+
{"key": "mr-2", "ref": "#2", "text": "per-event and per-recipient counters", "mark": "current"},
|
|
753
|
+
{"key": "mr-3-6", "ref": "#3–#6", "text": "channel map · use case · document detail · route", "mark": "pending"},
|
|
699
754
|
"",
|
|
700
|
-
{"
|
|
701
|
-
{"ref": "
|
|
702
|
-
{"ref": "
|
|
703
|
-
{"ref": "3", "text": "
|
|
704
|
-
{"ref": "4", "text": "expose both counters on the endpoint", "mark": "pending", "indent": 4},
|
|
705
|
-
{"ref": "#3–#6", "text": "channel map · use case · document detail · route", "mark": "pending"},
|
|
755
|
+
{"key": "plan", "text": "Plan #2", "style": "section", "summary": "1/3"},
|
|
756
|
+
{"key": "step-1", "ref": "1", "text": "counter columns + migration", "mark": "done", "indent": 4},
|
|
757
|
+
{"key": "step-2", "ref": "2", "text": "per-recipient aggregation in the use case", "mark": "current", "indent": 4},
|
|
758
|
+
{"key": "step-3", "ref": "3", "text": "expose both counters on the endpoint", "mark": "pending", "indent": 4},
|
|
706
759
|
"",
|
|
707
|
-
{"
|
|
708
|
-
{"ref": "Next", "text": "ship #2", "mark": "info"},
|
|
709
|
-
{"ref": "Decision", "text": "confirm the MR/PR body before I create it", "mark": "wait"},
|
|
760
|
+
{"key": "sib-1", "ref": "mcp !71", "text": "pipeline running", "mark": "wait", "link": "https://gitlab.com/…/mcp/-/merge_requests/71"},
|
|
710
761
|
"",
|
|
711
|
-
{"text": "
|
|
762
|
+
{"key": "open", "ref": "Open", "text": "review round 2 · 1 open · 2 follow-ups", "mark": "info"},
|
|
763
|
+
"",
|
|
764
|
+
{"key": "now", "ref": "Now", "text": "unit suite and the test agent over #2", "mark": "info"},
|
|
765
|
+
{"key": "next", "ref": "Next", "text": "ship #2", "mark": "info"},
|
|
766
|
+
{"key": "decision", "ref": "Decision", "text": "confirm the MR/PR body before I create it", "mark": "wait"},
|
|
767
|
+
"",
|
|
768
|
+
{"key": "block-1", "text": "sibling-repo still needs the endpoint contract", "mark": "block"}
|
|
712
769
|
]
|
|
713
770
|
}
|
|
714
771
|
```
|
|
715
772
|
|
|
716
|
-
- **`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`.
|
|
717
|
-
- **`
|
|
718
|
-
-
|
|
719
|
-
-
|
|
720
|
-
- **
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
-
|
|
735
|
-
`
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
**
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
- Republish with `panel_set` only when the *shape* changes (a new MR/PR train, a different body).
|
|
756
|
-
|
|
757
|
-
**Refusals are information, not noise.** `no line of this panel carries the key "…"` → your keys and
|
|
758
|
-
the panel disagree: `panel_get` and republish. `publish with panel_set before patching` → this pane
|
|
759
|
-
is still on its file. `this panel is held by "…"` → another producer owns it; do not fight it, say
|
|
760
|
-
so at the next stop.
|
|
761
|
-
|
|
762
|
-
**After a compaction, a restart or a resumed work**, call `panel_get` **before publishing**. It
|
|
763
|
-
returns the document on screen — yours or one that arrived by file — and publishing it back leaves
|
|
764
|
-
the panel exactly as it is. What comes back is the document as the app understood it: unknown fields
|
|
765
|
-
are gone and defaults come back absent.
|
|
766
|
-
|
|
767
|
-
**Optional — buttons at a stop.** At a stop parked on the user, `actions` (up to 8) paint a button
|
|
768
|
-
whose command is shown literally and is written into this pane's program on one click — which here
|
|
769
|
-
is this very session's prompt. So `{"label": "Approve the design", "send": "approve"}` answers you
|
|
770
|
-
without the user typing. Plain text, no line breaks, never a credential: it is painted on screen and
|
|
771
|
-
lands in the shell history.
|
|
772
|
-
|
|
773
|
-
### 4.3 Without those tools — `.claude/work/<work>/panel.json`
|
|
774
|
-
|
|
775
|
-
Overwrite the file **whole** (never patch) with the §4.1 document. `updated_at` from the real clock
|
|
776
|
-
(`date -Iseconds`), never carried over — it is how the reader flags a stale snapshot. `attention`
|
|
777
|
-
and `key` buy nothing here: the file panel is drawn from `mark` and `ref` alone.
|
|
773
|
+
- **`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).
|
|
774
|
+
- **`link` is a field, never a URL inside `text`**, and every line that names an MR/PR carries it.
|
|
775
|
+
- **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.
|
|
776
|
+
- **`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.
|
|
777
|
+
- **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.
|
|
778
|
+
- **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.
|
|
779
|
+
|
|
780
|
+
### 4.2 Over the terminal's MCP — `panel_set` with what the CLI printed
|
|
781
|
+
|
|
782
|
+
**Every publication is one `panel_set`** — `source: "flow"`, `document` the JSON the CLI just
|
|
783
|
+
printed, which already carries a `key` on every line and the top-level `attention`: `wait` when
|
|
784
|
+
parked on the user, `block` when stuck on somebody else, `done` when the work closed, absent while
|
|
785
|
+
simply working. The terminal never deduces it from the body, and a `wait` left behind flags that tab
|
|
786
|
+
for ever — so the next render, which drops the `decision`, is what clears it. The first `panel_set`
|
|
787
|
+
claims the pane for as long as this session lives; a second producer is refused by name.
|
|
788
|
+
`attention_since` — when the current `attention` started — is the terminal's to keep: flow never
|
|
789
|
+
writes it, and drops it from a document it read back with `panel_get` before publishing again.
|
|
790
|
+
|
|
791
|
+
- `panel_patch` is for the CLI-unavailable case only (§4): there, patch by `key` rather than
|
|
792
|
+
rebuild — ops `replace`, `before`, `after`, `delete`, `first`, `last`, `set` (`phase`,
|
|
793
|
+
`attention`, `header`, `stale_after_minutes`); the whole list applies or none of it does, and a
|
|
794
|
+
resend of a patch whose answer never arrived is refused rather than doubling a line.
|
|
795
|
+
- **Refusals are information.** `this panel is held by "…"` → another producer owns it; do not fight
|
|
796
|
+
it, say so at the next stop.
|
|
797
|
+
- **After a compaction, a restart or a resumed work**, call `panel_get` before publishing: it returns
|
|
798
|
+
what is on screen, which may have arrived from elsewhere.
|
|
799
|
+
- **A hook cannot call these tools.** Where the reader is a terminal like this one, the person sets
|
|
800
|
+
`panel.publish_cmd`, in a git-ignored FLOW file, to whatever command that terminal offers for
|
|
801
|
+
publishing a document from a shell; the CLI pipes every render into it, the hook's included.
|
|
802
|
+
- **Optional — buttons at a stop.** At a stop parked on the user, `actions` (up to 8) paint a button
|
|
803
|
+
whose command is written into this pane's program on one click — this very session's prompt. Add
|
|
804
|
+
them to the printed document before `panel_set`: `{"label": "Approve the design", "send":
|
|
805
|
+
"approve"}`. Plain text, no line breaks, never a credential.
|
|
806
|
+
|
|
807
|
+
### 4.3 Without those tools — the file is the transport
|
|
808
|
+
|
|
809
|
+
`panel.json` is what the CLI already wrote: nothing else to do. Written by hand (the CLI
|
|
810
|
+
unavailable), overwrite the file **whole** with the §4.1 document and `updated_at` from the real
|
|
811
|
+
clock (`date -Iseconds`), never carried over — it is how a reader flags a stale snapshot.
|
|
778
812
|
|
|
779
813
|
### 4.4 When to publish — whichever transport is in play
|
|
780
814
|
|
|
781
815
|
(a) In pre-flight, as soon as `meta.json` is loaded; (b) immediately **before** every stop header;
|
|
782
816
|
(c) **before** any long stretch (fan-out, full suite, CI poll) — never after, so a step that dies
|
|
783
817
|
halfway is not shown as finished. When the stretch will outlast the ~30 min staleness warning, set
|
|
784
|
-
`stale_after_minutes` to what it will really take; (d) wherever `## Close` updates
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
the
|
|
789
|
-
|
|
790
|
-
that never asked, because they answered it and the screen says it did not land; and an `attention`
|
|
791
|
-
nobody clears keeps that tab claiming them for ever. The same applies to a blocker that lifted and
|
|
792
|
-
to a `wait` line whose MR/PR merged.
|
|
793
|
-
|
|
794
|
-
**(f) Each plan step that lands** (the (2b) block): one patch, the moment its tick goes into the
|
|
795
|
-
phase artifact — that step to `done`, the next to `current`, `Now` moved on. Not batched at the end
|
|
796
|
-
of the MR/PR: a list that jumps from nothing to finished told the user nothing while it mattered.
|
|
818
|
+
`stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
|
|
819
|
+
`meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
|
|
820
|
+
work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
|
|
821
|
+
already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
|
|
822
|
+
the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
|
|
823
|
+
and the input change already rendered it; publish over the tools anyway when they are there.
|
|
797
824
|
|
|
798
825
|
### 4.5 `meta.json.cost[]` — what a phase measured, when it could
|
|
799
826
|
|
|
@@ -834,26 +861,17 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
834
861
|
(f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
|
|
835
862
|
tool call, and outside auto mode a prompt, while a card left alone for 30 minutes reads as a dead
|
|
836
863
|
session on the page.
|
|
837
|
-
- **What**:
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
panel clears `attention` and carries a `block` line; the card says `done`). An open MR/PR
|
|
847
|
-
waiting to merge is not over. The page reads the state from this field alone.
|
|
848
|
-
- `repo` (the repo id below), `work` (the work folder's name), `ticket`, `type`, `branch`, and
|
|
849
|
-
`harness` (`Claude Code`), from `meta.json` and git.
|
|
864
|
+
- **What**: `card.json`, which the CLI writes beside `panel.json` whenever `panel.artifact` is set
|
|
865
|
+
— the rendered document plus `repo`, `work`, `ticket`, `type`, `branch` and `harness` — passed as
|
|
866
|
+
`file_path` to the `set`. Never a document rebuilt in your head. Its `attention` is the
|
|
867
|
+
document's: `done` once `meta.json.phase` is `done`, or once every MR/PR of the work and every MR/PR
|
|
868
|
+
recorded for its sibling repos has merged (the forge's word counts) with no Decision or blocker left in the
|
|
869
|
+
session's own input; an abandoned work claims nobody (its input carries only the `block` line
|
|
870
|
+
saying why); an open MR/PR waiting to merge is not over. The page reads
|
|
871
|
+
the state from that field alone. The CLI unavailable → the hand-written §4.1 document with those
|
|
872
|
+
six fields added.
|
|
850
873
|
- **Where**: action `set` — the whole document, so a line dropped from the panel leaves the card —
|
|
851
|
-
`url` the key's value, collection `works`, doc id `<repo
|
|
852
|
-
path of `git remote get-url origin` — everything after the host, which ends at the first `/` after
|
|
853
|
-
`//` (`https://host/owner/repo.git`, `ssh://git@host:22/owner/repo.git`) or at the first `:`
|
|
854
|
-
(`git@host:owner/repo.git`) — with `.git` dropped and every `/` turned into `.`: `owner.repo`,
|
|
855
|
-
`group.subgroup.repo`. No remote → the main checkout's directory name (§0). Any character outside
|
|
856
|
-
`[A-Za-z0-9_.~:@+-]` becomes `-`.
|
|
874
|
+
`url` the key's value, collection `works`, doc id `<repo>--<work>`, both read from `card.json`.
|
|
857
875
|
- **Version**: a write to a card that exists needs `if_version`, the version the last write
|
|
858
876
|
returned. Keep it in the session — one writer per card, so it is right until the session loses
|
|
859
877
|
it. None held → one `get` first: the card exists → pin to its version; it does not → write
|
|
@@ -866,14 +884,14 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
866
884
|
mirror off or the key empty → nothing to do. A folder moved back out of `_archive/` gets its card
|
|
867
885
|
again at its next publication.
|
|
868
886
|
- **A card whose MR/PR moved without its session.** A merge or a close done in the forge has no
|
|
869
|
-
session to write it, and the card keeps asking. `$flow-work-daily` and `$flow-work-clean`
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
`
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
next phase, or `clean`, closes it.
|
|
887
|
+
session to write it, and the card keeps asking. `$flow-work-daily` and `$flow-work-clean` read
|
|
888
|
+
`works` once (`list`) when the mirror is on, and for each card of this repo whose train still
|
|
889
|
+
shows an MR/PR open, run `panel --harness <harness> --work <work> --forge` and `set` the
|
|
890
|
+
`card.json` it wrote — the forge's answer turns that line `done` or `block`, and the card closes
|
|
891
|
+
(`attention: done`, no Decision) once every MR/PR of the work, siblings included, has merged:
|
|
892
|
+
rendered for another branch, the input is that session's last word, not a live question. Such a
|
|
893
|
+
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
|
|
894
|
+
touched — the work's own next phase, or `clean`, closes it.
|
|
877
895
|
- **Failure never stops a phase.** A second version refusal → no more retries for that
|
|
878
896
|
publication. Any other failure — a wrong URL, auth, a permission prompt the user declined — turns
|
|
879
897
|
the mirror off for the rest of the session. Either way the next stop carries one line,
|
|
@@ -1467,7 +1485,8 @@ only for items that are not done; the commands that report it stay read-only.
|
|
|
1467
1485
|
|
|
1468
1486
|
**The link.** A work records the item it delivers in `meta.json.roadmap`:
|
|
1469
1487
|
`{ "path": "<file>", "item": "<the item's text, without checkbox, annotation or note>", "under": "<heading › heading>" }`
|
|
1470
|
-
— or `null`.
|
|
1488
|
+
— or `null`. With the project plan on (§10.1) it may also carry `milestone` and `deliverable`, the
|
|
1489
|
+
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
|
|
1471
1490
|
or ticket cell, or its title matching the item's text) is taken in every mode; otherwise `manual`
|
|
1472
1491
|
asks once, offering the next items and *none*, and `guided`/`auto`/`unattended` record `null` and
|
|
1473
1492
|
say so in one line. A work is linked to one item, at any depth: linking a milestone means the work
|
|
@@ -1510,6 +1529,76 @@ before and after:
|
|
|
1510
1529
|
Bugs do not link: a bug repairs something already delivered, and the roadmap tracks what is still to
|
|
1511
1530
|
deliver. A bug that *is* a roadmap item is started as a feature.
|
|
1512
1531
|
|
|
1532
|
+
### 10.1 The project plan — the roadmap on the terminal's board
|
|
1533
|
+
|
|
1534
|
+
A terminal that paints panels may also paint a board with one **plan** per repository, shared by
|
|
1535
|
+
its worktrees: its milestones, each milestone's deliverables and their state, and every console of
|
|
1536
|
+
the repo hung from the deliverable it works on. flow publishes the roadmap there — translated, never
|
|
1537
|
+
judged.
|
|
1538
|
+
|
|
1539
|
+
**On only when both hold**, else this section does not exist and nothing is said:
|
|
1540
|
+
- `roadmap.path` **names a file** in the FLOW config. Empty (found by the default names) or `none` →
|
|
1541
|
+
no plan: a board is something the repo asks for, not something flow deduces it wants.
|
|
1542
|
+
- A tool whose name ends in `plan_set` is there — namespaced and possibly **deferred**, as §4 says
|
|
1543
|
+
of `panel_set`. There is no file transport for the plan: where the plan lives is the terminal's
|
|
1544
|
+
business.
|
|
1545
|
+
|
|
1546
|
+
**The translation** — one document, the whole file every time, read by §10's rules:
|
|
1547
|
+
|
|
1548
|
+
```json
|
|
1549
|
+
{"title": "<the file's first heading>", "source": "<roadmap.path>",
|
|
1550
|
+
"milestones": [{"id": "H3", "title": "TaxRates", "done_when": "<criterion as written>",
|
|
1551
|
+
"depends_on": ["H0"],
|
|
1552
|
+
"items": [{"id": "MT-16456", "text": "Jurisdiction catalog", "mark": "done", "ref": "MT-16456"},
|
|
1553
|
+
{"id": "TAX-06", "text": "Manual load with review", "mark": "pending"},
|
|
1554
|
+
{"text": "Backup sources", "mark": "pending"}]}],
|
|
1555
|
+
"outside": [{"text": "Company certificate", "mark": "pending"}]}
|
|
1556
|
+
```
|
|
1557
|
+
|
|
1558
|
+
- **A milestone** is each of §10's milestones, in file order. `id` is the code its heading or its
|
|
1559
|
+
order-table row leads with (`H3` in `H3 · TaxRates`, `Phase 2` in `Phase 2: Billing`), and
|
|
1560
|
+
`title` the rest; a heading with no code is its own `id` and `title`, whole. `done_when` is its
|
|
1561
|
+
closing criterion as written, without its label; none → absent. `depends_on` is the `id` of every
|
|
1562
|
+
milestone its order-table dependency cell names by §10's rule — a range written as one (`H2 to
|
|
1563
|
+
H11`) names each milestone whose code has the same prefix and a number in that range, never a
|
|
1564
|
+
milestone without a code that happens to sit between them in the file; an item, a person or
|
|
1565
|
+
anything outside the file named there stays out.
|
|
1566
|
+
- **An item** is each deliverable — a table row or a checkbox — under that milestone, in file
|
|
1567
|
+
order. `text` is the item's first sentence, its markdown removed, cut to 80 characters with `…`.
|
|
1568
|
+
`ref` is the ticket cell as written (the checkbox annotation's ticket), absent when empty or a
|
|
1569
|
+
dash. `id` is the ticket that cell names; no ticket → the one requirement code the row's whole
|
|
1570
|
+
text cell (not only its first sentence) cites in parentheses (`(TAX-06)`), when it cites exactly
|
|
1571
|
+
one; neither → no `id`. An `id` that two items of one milestone would share — a ticket or a code
|
|
1572
|
+
alike — stays bare on the first and becomes `<id>-2`, `-3`… on the next, in file order.
|
|
1573
|
+
- **`mark` is the state word, copied** — the file's done word → `done`, in progress → `current`,
|
|
1574
|
+
pending → `pending`; a word the file uses for blocked → `block`, for waiting on someone →
|
|
1575
|
+
`wait`. The note after `:` is not read. A word flow cannot place → no `mark`: the board counts
|
|
1576
|
+
only `done`, and an unmarked item is the truth about a state flow does not understand. **Never
|
|
1577
|
+
corrected, never completed**: a stale item (§10) is published as the file says it — fixing the
|
|
1578
|
+
file is `ship`'s job, in an MR/PR — and a milestone is never marked closed.
|
|
1579
|
+
- **`outside`** holds §10's side work — the sections the order table does not list, such as work
|
|
1580
|
+
that is not code — as items of the same shape.
|
|
1581
|
+
|
|
1582
|
+
**When — wherever the roadmap is read to choose or to move**, and nowhere else: `next` and `daily`
|
|
1583
|
+
after they compute where the project stands, `$flow-feat-start` after it links the work (§3.7), and
|
|
1584
|
+
`$flow-feat-ship` right after it commits a roadmap edit — the branch's file, as the MR/PR carries
|
|
1585
|
+
it. That is on purpose: the board shows the deliverable moving the moment its MR/PR says so, and a
|
|
1586
|
+
later `next` or `daily` run from a checkout that has not merged it yet publishes that checkout's
|
|
1587
|
+
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
|
|
1588
|
+
document and `repo` the checkout the file was read from.
|
|
1589
|
+
|
|
1590
|
+
**Where this console works.** The same moment, from a work's checkout (`start`, `ship`): the rows
|
|
1591
|
+
whose ticket cell names `meta.json.ticket` decide it. One row → write its milestone's `id` and the
|
|
1592
|
+
row's `id` into `meta.json.roadmap` as `milestone` and `deliverable`; several → the one
|
|
1593
|
+
`meta.json.roadmap.item` names, else `milestone` alone when they share one, else neither. No row →
|
|
1594
|
+
neither, and remove them if an earlier publication wrote them: the panel then carries no place, and
|
|
1595
|
+
the board shows the console off the plan, which is what it is. The panel CLI copies the two fields
|
|
1596
|
+
from `meta.json` into every render (§4.1); nothing else sets them.
|
|
1597
|
+
|
|
1598
|
+
**Failure never stops a phase.** A refusal, a malformed reply or a tool that errors → no retry; the
|
|
1599
|
+
next stop carries one line, `plan: <error>`, once per session. `plan_retire` is the person's: flow
|
|
1600
|
+
never retires a plan.
|
|
1601
|
+
|
|
1513
1602
|
## 11. A red test outside the change — find the cause before it is excused
|
|
1514
1603
|
|
|
1515
1604
|
A test this diff did not touch goes red, and every path flow has for it — the base exception and the
|
|
@@ -24,7 +24,7 @@ Apply the fix. **Minimum viable**: no refactor of adjacent areas. Note other pro
|
|
|
24
24
|
|
|
25
25
|
Read `~/.claude/flow/CORE.codex.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`.**
|
|
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
|
|
|
@@ -125,7 +125,7 @@ Save it in `04-fix.md` under `## Plan`, right after the brief. **A fix that was
|
|
|
125
125
|
|
|
126
126
|
- Apply the minimal fix targeting the finding of `03-investigation.md` (or the diagnosis if investigate was skipped).
|
|
127
127
|
- 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.
|
|
128
|
-
- 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
|
|
128
|
+
- 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.
|
|
129
129
|
- **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.
|
|
130
130
|
- Keep the log updated while editing.
|
|
131
131
|
|
|
@@ -31,7 +31,7 @@ cannot be reproduced and needs a person to try → blocked.
|
|
|
31
31
|
|
|
32
32
|
Read `~/.claude/flow/CORE.codex.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`.**
|
|
33
33
|
|
|
34
|
-
**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.
|
|
34
|
+
**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.
|
|
35
35
|
|
|
36
36
|
**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.
|
|
37
37
|
|
|
@@ -26,7 +26,7 @@ Goal: capture lessons that prevent recurrence — not to blame anyone.
|
|
|
26
26
|
|
|
27
27
|
Read `~/.claude/flow/CORE.codex.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).**
|
|
28
28
|
|
|
29
|
-
**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.
|
|
29
|
+
**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.
|
|
30
30
|
|
|
31
31
|
**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.
|
|
32
32
|
|
|
@@ -24,7 +24,7 @@ Mandatory code review of the fix.
|
|
|
24
24
|
|
|
25
25
|
Read `~/.claude/flow/CORE.codex.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`.**
|
|
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
|
|
|
@@ -39,7 +39,7 @@ stays `ship`); and Close ends with the run's closing order, on a clean tree:
|
|
|
39
39
|
|
|
40
40
|
Read `~/.claude/flow/CORE.codex.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`.**
|
|
41
41
|
|
|
42
|
-
**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.
|
|
42
|
+
**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.
|
|
43
43
|
|
|
44
44
|
**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.
|
|
45
45
|
|
|
@@ -201,7 +201,7 @@ posted as comments anchored on the changed lines of the MR/PR, confirmed in ever
|
|
|
201
201
|
- **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.
|
|
202
202
|
- **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.
|
|
203
203
|
- 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.
|
|
204
|
-
-
|
|
204
|
+
- 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.
|
|
205
205
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
206
206
|
- **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.
|
|
207
207
|
- Summarize: ticket, MR/PR URL, regression test added.
|
|
@@ -43,7 +43,7 @@ the answer lands there and `start` is never relaunched.
|
|
|
43
43
|
|
|
44
44
|
Read `~/.claude/flow/CORE.codex.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).**
|
|
45
45
|
|
|
46
|
-
**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.
|
|
46
|
+
**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.
|
|
47
47
|
|
|
48
48
|
**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.
|
|
49
49
|
|