You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,13 @@ Issue-Flow ships two workflow state machines:
18
18
19
19
### `issue-flow`
20
20
21
-
The issue-driven workflow has two parts: a pre-phase that produces a GitHub Issue number, and a persistent state machine that tracks delivery from that point on.
21
+
The issue-driven workflow has two parts: a pre-worktree phase that produces a GitHub Issue number, and a persistent state machine that tracks delivery from that point on.
22
22
23
-
**Pre-phase** (session-scoped, not persistable):
23
+
**Pre-worktree phase** (short-lived pending state in the source repo):
24
24
25
25
-`issue-brainstorm` turns a rough request into a design direction
26
26
-`issue-create` turns the design spec into a GitHub Issue number
27
+
-`.issue-flow/pending.json` can recover this short phase before a target worktree exists
27
28
28
29
**Persistent state machine** (`.issue-flow/` created by `issue-pick`):
29
30
@@ -47,6 +48,8 @@ The top-level `issue-flow` skill is the orchestrator. It reads the current sessi
47
48
48
49
The bugfix workflow is intentionally narrower. It is for cases where you already know there is a bug and want the agent to focus on reproducing, fixing, and verifying it before any commit or PR step.
49
50
51
+
Bugfix work usually goes directly to `bugfix-pick`. If it must pause before a worktree exists, `.bugfix-flow/pending.json` can hold that short-lived pending state in the source repo.
52
+
50
53
**Persistent state machine** (`.bugfix-flow/` created by `bugfix-pick`):
Copy file name to clipboardExpand all lines: docs/architecture.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Everything else should remain delegated to focused skills or to `superpowers`.
24
24
25
25
### Orchestrator skill
26
26
27
-
`skills/issue-flow/SKILL.md` is the entry point. It reads session state from `.issue-flow/`, determines the current phase, and hands control to the next workflow skill.
27
+
`skills/issue-flow/SKILL.md` is the entry point. It reads formal session state from `.issue-flow/` in the target worktree, or pending pre-worktree state from the source repository when a worktree does not exist yet. It then determines the current phase and hands control to the next workflow skill.
28
28
29
29
The orchestrator should stay small. It owns coordination, not execution details.
30
30
@@ -57,11 +57,13 @@ The `skills/issue-*` files implement each phase of the lifecycle:
57
57
58
58
## State Model
59
59
60
-
Issue-Flow has two phases: a **pre-phase** and a **persistent state machine**.
60
+
Issue-Flow has two phases: a **pre-worktree pending phase** and a **persistent state machine**.
61
61
62
-
The pre-phase (`issue-brainstorm` + `issue-create`) runs before `.issue-flow/` exists. These stages are session-scoped and cannot be persisted or recovered. Mode is passed via `$ARGUMENTS --auto` since the mode file does not exist yet.
62
+
The pre-worktree phase (`issue-brainstorm` + `issue-create`, and the setup immediately before `issue-pick`) runs before the target worktree exists. During this phase, the source repository root may contain `.issue-flow/pending.json`. That file is a short-lived handoff record, not a formal state-machine state. It lets the orchestrator recover from interruptions before the target worktree has been created. The same pattern is available to `bugfix-flow` as `.bugfix-flow/pending.json`, but only when bugfix pick needs to pause for clarification.
63
63
64
-
The persistent state machine starts at `picked`, when `issue-pick` creates the `.issue-flow/` directory, worktree, and branch. From this point on, session state is persisted in `.issue-flow/` at the worktree root. Typical files include:
64
+
Pending state is intentionally simple: one pending flow per repo root. If a new request finds an existing pending file in the same repo root, the orchestrator asks the user to recover, overwrite, or cancel instead of creating a multi-session registry.
65
+
66
+
The persistent state machine starts at `picked`, when `issue-pick` creates the worktree, branch, and formal `.issue-flow/` directory. From this point on, session state is persisted in `.issue-flow/` at the worktree root. Typical files include:
65
67
66
68
-`state` - current workflow phase
67
69
-`mode` - manual or auto
@@ -70,7 +72,7 @@ The persistent state machine starts at `picked`, when `issue-pick` creates the `
70
72
-`plan-path` - current implementation plan path
71
73
-`verify-report.md` - verification output
72
74
73
-
The source of truth for valid states and transitions is [../skills/issue-flow/references/state-schema.md](../skills/issue-flow/references/state-schema.md).
75
+
The source of truth for valid states and transitions is [../skills/issue-flow/references/state-schema.md](../skills/issue-flow/references/state-schema.md). The bugfix equivalent is [../skills/bugfix-flow/references/state-schema.md](../skills/bugfix-flow/references/state-schema.md).
0 commit comments