flow-workflows 0.113.0 → 0.115.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 +143 -126
- 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 +2 -2
- package/adapters/codex/skills/flow-feat-start/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-validate/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-README/SKILL.md +5 -5
- package/adapters/codex/skills/flow-work-abandon/SKILL.md +2 -2
- package/adapters/codex/skills/flow-work-clean/SKILL.md +3 -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 +143 -126
- 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 +2 -2
- package/adapters/gemini/commands/flow/feat/start.toml +1 -1
- package/adapters/gemini/commands/flow/feat/validate.toml +1 -1
- package/adapters/gemini/commands/flow/work/README.toml +5 -5
- package/adapters/gemini/commands/flow/work/abandon.toml +2 -2
- package/adapters/gemini/commands/flow/work/clean.toml +3 -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 +143 -126
- 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 +2 -2
- package/adapters/hermes/skills/flow-feat-start/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-validate/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-README/SKILL.md +5 -5
- package/adapters/hermes/skills/flow-work-abandon/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-work-clean/SKILL.md +3 -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 +143 -126
- 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 +2 -2
- package/adapters/opencode/commands/flow-feat-start.md +1 -1
- package/adapters/opencode/commands/flow-feat-validate.md +1 -1
- package/adapters/opencode/commands/flow-work-README.md +5 -5
- package/adapters/opencode/commands/flow-work-abandon.md +2 -2
- package/adapters/opencode/commands/flow-work-clean.md +3 -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 +546 -12
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +31 -0
- package/plugins/flow/examples/FLOW.template.md +1 -0
|
@@ -42,7 +42,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
42
42
|
- **Shared rules live in the `flow-core` skill** (`skills/flow-core/SKILL.md`): configuration merge,
|
|
43
43
|
`models`, autonomy and hard gates, never-a-question list, stop header, the live panel,
|
|
44
44
|
`00-summary.md`. Every command loads it once per session.
|
|
45
|
-
- **One folder per ticket**: `.claude/work/{TICKET}/` holds `meta.json`, `00-summary.md`, the numbered markdown artifacts
|
|
45
|
+
- **One folder per ticket**: `.claude/work/{TICKET}/` holds `meta.json`, `00-summary.md`, the numbered markdown artifacts, `panel-input.json` (what the agent knows right now) and `panel.json` (the panel the CLI rendered from all of them).
|
|
46
46
|
- **Numbered artifacts**: each phase writes a `NN-phase.md` that the next step reads.
|
|
47
47
|
- **`evidence/`**: what `/flow-*-validate` actually observed when it drove the running app — a screenshot, a response body, a log excerpt, one file per criterion, with a **before** where the change alters something already visible. `/flow-*-ship` attaches it to the MR/PR description. `quality.evidence: off` disables both halves.
|
|
48
48
|
- **`meta.json` is the source of truth** for state (current phase, size, branch). Without it, commands refuse to continue.
|
|
@@ -67,7 +67,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
67
67
|
- **Commits follow the autonomy mode** (`/flow-feat-build` §2.2, `/flow-bug-fix` §2.1): changes **always reported before anything is recorded**. `manual`: **no `git commit` on its own**. `guided`: asks **once**. `auto`: WIP commit per step, cut by step (§2.3) — **`autonomy.mode: auto` plus typing the command is the explicit authorization**. WIP commits on the work branch **only**; push and MR/PR creation stay hard gates in every mode.
|
|
68
68
|
- **A named next command is not a handoff**: each `## Close` carries the **autonomy handoff** — `manual` proposes the next command with one `AskUserQuestion`; `guided`/`auto` **chain in the same turn**. Never chained: `ship` (hard gate in every mode) and anything downstream of a red gate.
|
|
69
69
|
- **Every stop opens with where you are** (flow-core §3): stop header, then ≤ ~10 product-altitude lines. Own process → the artifact; subagent notifications never earn a turn.
|
|
70
|
-
- **The stop is also published to the live panel** ([document below](#the-panel-document), flow-core §4):
|
|
70
|
+
- **The stop is also published to the live panel** ([document below](#the-panel-document), flow-core §4): rendered by `flow-workflows panel` from `meta.json`, the plan's ticks, the forge and `panel-input.json`, then carried by the terminal's `panel_set` where it exists — `panel.json` is written either way, and the plugin's hook re-renders it when those files change (Claude Code, Codex). Published **before** a long stretch, never after.
|
|
71
71
|
- **What is never a question is as binding as what always is**: hard gates stop in **every** mode; in `guided`/`auto` flow mechanics, WIP commits, the train's next MR/PR, size confirmation and anything already decided are never asked (flow-core §2). Only new evidence reopens a decision.
|
|
72
72
|
- **A correction is a convention, and a convention is written down**: when the user overrides something a phase proposed and the same correction would apply to an unrelated ticket in this repo, it becomes a `meta.json.conventions_candidates[]` row and a `## Conventions learned` line in the phase artifact, asking nothing (flow-core §8). `review`'s idiom audit reads them in the same work; `ship` offers them to `FLOW.md` once, at Close, in every mode. What is about *this* ticket stays in the artifact and goes no further.
|
|
73
73
|
- **Work you decide not to do is recorded, not narrated**: every "idea for a separate ticket", out-of-scope piece, unmitigated risk, unchecked edge case and prevention action becomes a `meta.json.followups[]` entry (flow-core §7) alongside its artifact section. Written without asking, and only when it clears the bar of §7 (a named subject, a path someone has actually seen, waiting costing more than doing it). Triaged **once** at `ship`'s Close, behind a skeptic: 3 or more candidates go to an agent whose job is to refute that each deserves a ticket, and only the strongest `tracker.followup_ask_max` (empty → **2**) become questions (**Do it** / **Not worth it** / **Later**). The rest are logged. Published in the MR/PR description while still open, and surfaced by `status`/`daily`/`next` — from `_archive/` too — until decided. Creating the tracker issue for an accepted one is outward-facing: **asks in every mode**. Two kinds are not deferred work: a **`decision`** the diff depends on is asked when it surfaces (in every mode) and only a deferred one is recorded; a **`tooling`** gap is recorded with no question at all and never goes to the tracker.
|
|
@@ -183,7 +183,7 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
183
183
|
|
|
184
184
|
## The panel document
|
|
185
185
|
|
|
186
|
-
`meta.json` is the *state machine*; the panel is the *view* a reader outside the chat watches. Optional: a work that never publishes it still resolves from `meta.json` alone.
|
|
186
|
+
`meta.json` is the *state machine*; the panel is the *view* a reader outside the chat watches. Optional: a work that never publishes it still resolves from `meta.json` alone. `flow-workflows panel` renders it (flow-core §4): order, ceiling and the derived lines are the CLI's; what the agent supplies is `panel-input.json`. The document below is what it prints, and what a phase writes by hand only when the CLI is unavailable.
|
|
187
187
|
|
|
188
188
|
```json
|
|
189
189
|
{
|
|
@@ -216,11 +216,11 @@ This system **orchestrates** the project's existing sub-agents and skills (it do
|
|
|
216
216
|
- **`phase`** — the phase running **right now** (`meta.json.phase` advances only at close); the reader prefers it.
|
|
217
217
|
- **`updated_at`** — local ISO-8601 with offset from the real clock, never carried over; lets the reader flag a stale snapshot. Over the tools the app stamps each delivery itself.
|
|
218
218
|
- **`attention`** *(tools only)* — `wait` · `block` · `done`, beside `phase`, absent while simply working: the pane's claim on the user's attention, which the app never deduces from a line's `mark`. A tab's card shows the strongest claim among its panes, so an uncleared `wait` flags that tab for ever — it goes, with the `Decision` line, the moment the question is answered (flow-core §4.4e).
|
|
219
|
-
- **`key`**
|
|
219
|
+
- **`key`** — a unique, never-painted name on every line the CLI renders (`title`, `mr-1`, `mr-1-state`, `step-3`, `sib-1`, `open`, `now`, `next`, `decision`, `block-1`, `closed`).
|
|
220
220
|
|
|
221
221
|
**No headings over the train.** A shipped MR/PR is *open, waiting to merge*; `mark` says it per entry — `wait` shipped, `current` being worked, `done` only merged.
|
|
222
222
|
|
|
223
|
-
**The artifact mirror** (opt-in, flow-core §4.6). With `panel.artifact` set — in `FLOW.claude.md`, Claude Code only — each publication is also written (a per-step
|
|
223
|
+
**The artifact mirror** (opt-in, flow-core §4.6). With `panel.artifact` set — in `FLOW.claude.md`, Claude Code only — each publication is also written (a per-step render only when the card is 10 minutes old), whole, as one card of a claude.ai page that gathers every work of every repo: the `card.json` the CLI writes beside `panel.json` — the document plus `repo`, `work`, `ticket`, `type`, `branch`, `harness` — set as doc `<repo>--<work>` in collection `works`. The page is `examples/panel-artifact.html`, which `/flow-init room` publishes. The transport above is unchanged.
|
|
224
224
|
|
|
225
225
|
**Who publishes it.** The 18 phase commands (flow-core §4); `/flow-feat-ship` and `/flow-bug-ship` the instant an MR/PR URL exists; `/flow-feat-plan` when the train is populated — a new train is a new shape, so a full republish; `/flow-work-resume` (§5), after reading what is on screen; `/flow-work-watch` every cycle; `/flow-work-abandon` with a terminal state. Read-only `status`, `daily`, `config`, `doctor`, `news` never publish; `/flow-work-clean` archives the folder with any panel file inside.
|
|
226
226
|
|
|
@@ -20,7 +20,7 @@ description: "Close a work without shipping (discarded feature, non-issue, etc.)
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
Clean closure for works that will not reach the base branch: a feature discarded after `design`, a bug that is not one (expected behavior, external problem, user misconfiguration), a work absorbed by another ticket.
|
|
26
26
|
|
|
@@ -93,7 +93,7 @@ Ask the user what to do with the branch — do not decide alone:
|
|
|
93
93
|
- Update `meta.json`: `phase = "abandoned"`; `phases_done` not touched (it reflects what was actually done); `notes` += abandonment reason; `updated_at` updated.
|
|
94
94
|
- Overwrite `00-summary.md` whole (≤15 lines, flow-core §5).
|
|
95
95
|
- **Tracker: move to won't-do** (never "done" — this work did not ship). Only if `tracker.tool` is not `none`/empty, `tracker.abandon_cmd` is set, and `meta.json.ticket` is a **real tracker id** (skip for local-only slugs). Run `tracker.abandon_cmd` substituting `{TICKET}` = `meta.json.ticket`. Same contract as `/flow-feat-start §6.5`: **best-effort, idempotent, gated** (ask once in `autonomy.mode: manual`; automatic in `guided`/`auto`); failure or already-in-state ticket → warn and continue, never block. `tracker.abandon_cmd` empty → do nothing (the user closes the ticket by hand if they want).
|
|
96
|
-
- Panel published for this work (flow-core §4) →
|
|
96
|
+
- Panel published for this work (flow-core §4) → render a terminal state before archiving: `panel-input.json` holding only one `blocks` entry saying the work was abandoned and why, after `meta.json.phase` is `abandoned` — the CLI then draws no Now, Next or Decision and claims nobody's attention.
|
|
97
97
|
- Delete the work's card from the artifact control room when `panel.artifact` is set (flow-core §4.6, *a card ends with its work folder*), then move the folder to `.claude/work/_archive/` **keeping its directory name** (`_archive/<work-dir>/`, the folder located in §1 — e.g. `<TICKET>-<slug>`) so `/flow-work-daily` no longer lists it.
|
|
98
98
|
- Report to the user: ticket abandoned, reason, what was done with the branch.
|
|
99
99
|
|
|
@@ -20,7 +20,7 @@ description: "Sweep what finished work left behind — merged worktrees, dead br
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
The forge (`git.cli`) is **best-effort**: CLI missing, unauthenticated, or over ~5s → fall back to the local evidence in §4 and say so in one line; never block.
|
|
26
26
|
|
|
@@ -126,6 +126,8 @@ Above 25 → skip the pass and report how many were left unresolved.
|
|
|
126
126
|
|
|
127
127
|
Degraded mode (no forge, no successful fetch): keep the (b)–(d) verdicts, mark the whole table `(local evidence only — origin not refreshed)`, and drop `merged, squashed` to `unknown`.
|
|
128
128
|
|
|
129
|
+
**Cards that still ask.** With `panel.artifact` set, every work whose MR/PR the forge reports merged or closed here gets its control-room card brought up to date before the sweep is shown (flow-core §4.6, *a card whose MR/PR moved without its session*) — kept works included: a card is not a residue, and rewriting it removes nothing.
|
|
130
|
+
|
|
129
131
|
## 5. The protected set
|
|
130
132
|
|
|
131
133
|
A candidate must survive all of these — each a hard exclusion, not a warning:
|
|
@@ -20,13 +20,13 @@ description: "Your work assistant — a Scrum-style daily standup across all you
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
External sources (tracker, forge, `knowledge`) are all **best-effort**: a CLI missing/unauthenticated, an MCP failing, or a call over ~3s → continue without that source and note it in a single line; **never block**.
|
|
26
26
|
|
|
27
27
|
Your **work assistant**: a Scrum-style daily standup — *"what was I working on?"*, *"what's left?"*, *"what should I pick up today?"* — from three sources: **local** work state, the **forge** (open MRs/PRs, reviews, CI), the **tracker** (assigned/re-prioritized tickets). The one overview of every open work; `/flow-work-resume` is the one-branch view. With forge and tracker both unavailable it is still the full local picture.
|
|
28
28
|
|
|
29
|
-
**Read-only.** Never touches `meta.json`, git, the forge, or the tracker; its only
|
|
29
|
+
**Read-only.** Never touches `meta.json`, git, the forge, or the tracker; its only writes are the "last seen" marker (§7) and, with `panel.artifact` set, the control-room cards §2 finds stale — with the `card.json` the panel CLI renders for those works (never their `panel.json`: that is each work's own session's pane). What it finds stale it reports and points at the command that writes.
|
|
30
30
|
|
|
31
31
|
## Modes
|
|
32
32
|
|
|
@@ -72,7 +72,7 @@ What the team is asking of you **right now**, and what already happened to the M
|
|
|
72
72
|
|
|
73
73
|
- **Your open MRs/PRs**: `glab mr list --author=@me` / `gh pr list --author @me`.
|
|
74
74
|
- **Awaiting your review**: `glab mr list --reviewer=@me` / `gh pr list --search "review-requested:@me"`.
|
|
75
|
-
- **Recorded vs real state** — every `meta.json.mrs[]` entry with a number whose `status` is not `merged`/`closed`/`superseded`: one `glab mr view <n> --output json` / `gh pr view <n> --json state,mergedAt` each. The forge says merged or closed while the work still says otherwise → that work is **stale**: the merge happened outside flow, and the open-list above can no longer show it.
|
|
75
|
+
- **Recorded vs real state** — every `meta.json.mrs[]` entry with a number whose `status` is not `merged`/`closed`/`superseded`: one `glab mr view <n> --output json` / `gh pr view <n> --json state,mergedAt` each. The forge says merged or closed while the work still says otherwise → that work is **stale**: the merge happened outside flow, and the open-list above can no longer show it. With `panel.artifact` set, its control-room card is brought up to date now (flow-core §4.6, *a card whose MR/PR moved without its session*).
|
|
76
76
|
- **CI red** on your MRs/PRs → flag it (→ `/flow-work-green`).
|
|
77
77
|
- **Cannot merge** — the forge's verdict, distinct from the pipeline: conflicts, behind base, draft, approvals missing (`detailed_merge_status`/`has_conflicts` on GitLab · `mergeable`/`mergeStateStatus`/`reviewDecision` on GitHub). Flag separately, naming the reason. Conflicts / behind-base → `/flow-work-green`; draft and approvals are yours or the reviewers' to clear.
|
|
78
78
|
- **Threads that need *your* reply** — **latest comment not yours** (§0), fetched per open MR/PR (`glab api .../merge_requests/:iid/discussions` · `gh api` review threads). This — **not** the raw *unresolved* count — is the signal for `/flow-work-respond` (it **never resolves** threads, so an answered thread stays unresolved until the reviewer closes it).
|
|
@@ -34,7 +34,7 @@ Extract from `git`: `host`, `cli` (empty → the default for that host), `defaul
|
|
|
34
34
|
|
|
35
35
|
Read `~/.claude/flow/CORE.hermes.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`.**
|
|
36
36
|
|
|
37
|
-
**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.
|
|
37
|
+
**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.
|
|
38
38
|
|
|
39
39
|
**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.
|
|
40
40
|
|
|
@@ -20,7 +20,7 @@ description: "Hand a finished study to whoever builds it elsewhere — push only
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
For a study made here and built somewhere else — a server running `/flow-work-run` unattended,
|
|
26
26
|
another person, another machine. The builder gets the work folder at the same path and nothing
|
|
@@ -88,7 +88,7 @@ cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
|
88
88
|
[ -d "$WORK" ] || { echo "no such folder: $WORK"; exit 1; }
|
|
89
89
|
tmp=$(mktemp -d) || exit 1
|
|
90
90
|
idx="$tmp/index" # does not exist yet: git starts an empty index there
|
|
91
|
-
GIT_INDEX_FILE="$idx" git add -f -- "$WORK" ":(exclude)$WORK/panel.json" &&
|
|
91
|
+
GIT_INDEX_FILE="$idx" git add -f -- "$WORK" ":(exclude)$WORK/panel.json" ":(exclude)$WORK/panel-input.json" ":(exclude)$WORK/card.json" ":(exclude)$WORK/forge-state.json" ":(exclude)$WORK/.panel-refresh*" ":(exclude)$WORK/*.tmp" &&
|
|
92
92
|
files=$(GIT_INDEX_FILE="$idx" git ls-files) &&
|
|
93
93
|
tree=$(GIT_INDEX_FILE="$idx" git write-tree) &&
|
|
94
94
|
commit=$(git commit-tree "$tree" -m "study $TICKET")
|
|
@@ -98,8 +98,9 @@ printf '%s\n' "$files"; echo "commit=$commit"
|
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
`GIT_INDEX_FILE` is set per command, never exported, so a failure leaves no session pointing git
|
|
101
|
-
at a deleted index. `panel.json`
|
|
102
|
-
|
|
101
|
+
at a deleted index. `panel.json`, `panel-input.json`, `card.json`, `forge-state.json`, the `.panel-refresh*` stamps and
|
|
102
|
+
any `*.tmp` stay out: they are this machine's panel, and on
|
|
103
|
+
another one they would show this session's last state as if it were theirs. The block failing → its message, and
|
|
103
104
|
stop: `commit-tree` with no git identity configured is the usual cause.
|
|
104
105
|
|
|
105
106
|
## 4. Confirm, then push
|
|
@@ -20,7 +20,7 @@ description: "Put a data-access query on trial — schema, indexes, execution pl
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.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`.**
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
**A query is approved by its plan, not by prose.** Fact sheet → challenger attacks → each point settled with a **plan or a number**. **Cross-cutting** (feat or bug), **repeatable**, does **not** advance `meta.json.phase`; runs with or without a work folder.
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ Extract from `git`: `host`, `cli` (empty → the default for that host), `assign
|
|
|
30
30
|
|
|
31
31
|
Read `~/.claude/flow/CORE.hermes.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).**
|
|
32
32
|
|
|
33
|
-
**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.
|
|
33
|
+
**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
34
|
|
|
35
35
|
**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.
|
|
36
36
|
|
|
@@ -20,7 +20,7 @@ description: "Resume the work associated with the current branch and suggest the
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
Use when returning to a work after a break (next morning, another session) — including a work an
|
|
26
26
|
unattended run left with a question pending at its orchestrator (flow-core §2.1).
|
|
@@ -100,32 +100,16 @@ With what is new (there is already work on disk):
|
|
|
100
100
|
|
|
101
101
|
## 5. Rebuild the live panel
|
|
102
102
|
|
|
103
|
-
After a break the panel is most likely stale, and a resumed session is exactly where flow-core §4 asks for `panel_get` **before** publishing: read what is on screen, then
|
|
103
|
+
After a break the panel is most likely stale, and a resumed session is exactly where flow-core §4 asks for `panel_get` **before** publishing: read what is on screen, then render it from the state just rebuilt — `panel-input.json` written whole, then the panel CLI with `--forge` (flow-core §4), whose document goes to `panel_set` where the terminal offers the panel tools:
|
|
104
104
|
|
|
105
105
|
```json
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"header": true,
|
|
110
|
-
"lines": [
|
|
111
|
-
{"text": "<work title>", "style": "title"},
|
|
112
|
-
"",
|
|
113
|
-
{"ref": "#1", "text": "batch read sources", "mark": "wait", "link": "https://gitlab.com/…/merge_requests/9977"},
|
|
114
|
-
{"ref": "#2", "text": "per-event counters", "mark": "current"},
|
|
115
|
-
{"ref": "#3–#6", "text": "channel map · use case · detail · route", "mark": "pending"},
|
|
116
|
-
"",
|
|
117
|
-
{"ref": "Now", "text": "nothing running — just resumed", "mark": "info"},
|
|
118
|
-
{"ref": "Next", "text": "build", "mark": "info"},
|
|
119
|
-
{"ref": "Decision", "text": "run the next step, or leave it for another work", "mark": "wait"},
|
|
120
|
-
"",
|
|
121
|
-
{"text": "sibling-repo still needs the endpoint contract", "mark": "block"}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
106
|
+
{"phase": "build", "now": "nothing running — just resumed", "next": "build",
|
|
107
|
+
"decision": "run the next step, or leave it for another work",
|
|
108
|
+
"blocks": [{"text": "sibling-repo still needs the endpoint contract"}]}
|
|
124
109
|
```
|
|
125
110
|
|
|
126
111
|
- `phase` = the phase you are resuming into (`meta.json.phase` does not yet say it).
|
|
127
|
-
- `
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
-
|
|
131
|
-
- `updated_at` from `date -Iseconds` when the panel goes to the file; every fact from `meta.json` and the artifacts; language of the work's artifacts.
|
|
112
|
+
- `now` in prose; `next` names the phase §4 suggested.
|
|
113
|
+
- `decision` is always set after a resume — nothing is running, the next move is the user's. It goes the moment they make it (flow-core §4.4e), not at the next stop.
|
|
114
|
+
- `blocks` for the blockers §4 surfaced (`contract_handoff` `pending` in a sibling repo, a red pipeline, an unmerged dependency); `labels` in the language of the work's artifacts.
|
|
115
|
+
- The train, the steps and each MR/PR's real state come from the CLI: never typed here.
|
|
@@ -20,7 +20,7 @@ description: "The one entry an orchestrator launches for an unattended run — a
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, 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).**
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
**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.
|
|
26
26
|
|
|
@@ -20,7 +20,7 @@ description: "Point the main checkout at a branch to test it (then return), re-s
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
Temporarily point the **main checkout** at another branch to test it against this checkout's live environment (running stack, DB, containers), then return — a generic `make wt-try`/`wt-back` pair. The git switch is built in; the project-specific re-sync (e.g. migrations) comes from `git.worktree_resync` in `FLOW.md`. Operates **in place**; never creates or touches worktrees.
|
|
26
26
|
|
|
@@ -20,7 +20,7 @@ description: "Monitor the observability platform after a deploy and alert on err
|
|
|
20
20
|
|
|
21
21
|
Read `~/.claude/flow/CORE.hermes.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`.**
|
|
22
22
|
|
|
23
|
-
**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.
|
|
23
|
+
**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.
|
|
24
24
|
|
|
25
25
|
**Autopiloted post-deploy monitoring**: signals **scoped to the change** over a window (default 30 min), against a baseline; alert on errors or performance regressions from the deploy.
|
|
26
26
|
|