feature-flow-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. feature_flow_cli-0.1.0/LICENSE +21 -0
  2. feature_flow_cli-0.1.0/MANIFEST.in +7 -0
  3. feature_flow_cli-0.1.0/PKG-INFO +293 -0
  4. feature_flow_cli-0.1.0/README.md +274 -0
  5. feature_flow_cli-0.1.0/adapters/codex/feature-flow/SKILL.md +62 -0
  6. feature_flow_cli-0.1.0/adapters/codex/feature-flow/agents/openai.yaml +6 -0
  7. feature_flow_cli-0.1.0/agents/ticket-builder.md +24 -0
  8. feature_flow_cli-0.1.0/agents/ticket-reviewer.md +16 -0
  9. feature_flow_cli-0.1.0/feature_flow/__init__.py +3 -0
  10. feature_flow_cli-0.1.0/feature_flow/__main__.py +7 -0
  11. feature_flow_cli-0.1.0/feature_flow/checks.py +71 -0
  12. feature_flow_cli-0.1.0/feature_flow/cli.py +47 -0
  13. feature_flow_cli-0.1.0/feature_flow/command.py +39 -0
  14. feature_flow_cli-0.1.0/feature_flow/conductor.py +299 -0
  15. feature_flow_cli-0.1.0/feature_flow/floorguard.py +340 -0
  16. feature_flow_cli-0.1.0/feature_flow/gate.py +100 -0
  17. feature_flow_cli-0.1.0/feature_flow/git.py +47 -0
  18. feature_flow_cli-0.1.0/feature_flow/install.py +365 -0
  19. feature_flow_cli-0.1.0/feature_flow/prompts.py +52 -0
  20. feature_flow_cli-0.1.0/feature_flow/state.py +75 -0
  21. feature_flow_cli-0.1.0/feature_flow/status.py +231 -0
  22. feature_flow_cli-0.1.0/feature_flow/tickets.py +168 -0
  23. feature_flow_cli-0.1.0/feature_flow/view.py +312 -0
  24. feature_flow_cli-0.1.0/feature_flow_cli.egg-info/PKG-INFO +293 -0
  25. feature_flow_cli-0.1.0/feature_flow_cli.egg-info/SOURCES.txt +50 -0
  26. feature_flow_cli-0.1.0/feature_flow_cli.egg-info/dependency_links.txt +1 -0
  27. feature_flow_cli-0.1.0/feature_flow_cli.egg-info/entry_points.txt +3 -0
  28. feature_flow_cli-0.1.0/feature_flow_cli.egg-info/top_level.txt +1 -0
  29. feature_flow_cli-0.1.0/guides/build.md +139 -0
  30. feature_flow_cli-0.1.0/guides/plan.md +93 -0
  31. feature_flow_cli-0.1.0/guides/review.md +87 -0
  32. feature_flow_cli-0.1.0/guides/show.md +30 -0
  33. feature_flow_cli-0.1.0/guides/templates/commands.md +15 -0
  34. feature_flow_cli-0.1.0/guides/templates/learnings.md +7 -0
  35. feature_flow_cli-0.1.0/guides/templates/map.md +26 -0
  36. feature_flow_cli-0.1.0/guides/templates/spec.md +62 -0
  37. feature_flow_cli-0.1.0/guides/templates/ticket.md +29 -0
  38. feature_flow_cli-0.1.0/guides/templates/ui-mockup.md +43 -0
  39. feature_flow_cli-0.1.0/install.py +11 -0
  40. feature_flow_cli-0.1.0/install.sh +4 -0
  41. feature_flow_cli-0.1.0/pyproject.toml +60 -0
  42. feature_flow_cli-0.1.0/scripts/floor-guard.py +14 -0
  43. feature_flow_cli-0.1.0/scripts/flow-status.py +14 -0
  44. feature_flow_cli-0.1.0/scripts/flow-view.html +536 -0
  45. feature_flow_cli-0.1.0/scripts/flow-view.py +14 -0
  46. feature_flow_cli-0.1.0/scripts/flow.py +14 -0
  47. feature_flow_cli-0.1.0/scripts/gate.py +14 -0
  48. feature_flow_cli-0.1.0/setup.cfg +4 -0
  49. feature_flow_cli-0.1.0/skills/.DS_Store +0 -0
  50. feature_flow_cli-0.1.0/skills/architect-review/SKILL.md +143 -0
  51. feature_flow_cli-0.1.0/skills/automation-design/SKILL.md +274 -0
  52. feature_flow_cli-0.1.0/skills/feature-flow/SKILL.md +62 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shammai Hamilton
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ # the sdist carries what the wheel bundles, so a wheel built from it is the same
2
+ graft skills
3
+ graft agents
4
+ graft guides
5
+ graft adapters/codex
6
+ include scripts/*.py scripts/*.html
7
+ include LICENSE README.md install.py install.sh
@@ -0,0 +1,293 @@
1
+ Metadata-Version: 2.4
2
+ Name: feature-flow-cli
3
+ Version: 0.1.0
4
+ Summary: A ticket-graph workflow for coding agents: installs the feature-flow skill into a repo
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/hamilton-sky/feature-flow
7
+ Project-URL: Source, https://github.com/hamilton-sky/feature-flow
8
+ Keywords: claude-code,codex,agents,workflow,tickets
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Software Development
15
+ Requires-Python: >=3.9
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # Feature Flow
21
+
22
+ **A ticket-graph workflow for coding agents.** Works with Claude Code and Codex.
23
+
24
+ [![tests](https://github.com/hamilton-sky/feature-flow/actions/workflows/tests.yml/badge.svg)](https://github.com/hamilton-sky/feature-flow/actions/workflows/tests.yml)
25
+
26
+ Plan a feature as a graph of small tickets, then build them in the session you are already in. One command, `/feature-flow`, does both. Every ticket is built by one fresh subagent and checked by another that never saw the builder's reasoning. A script, not the agent, decides the order of the steps, runs the build and tests, and watches for work that weakens the checks, and the whole run has limits.
27
+
28
+ One skill, 2 agent roles, a Python conductor, 4 Python scripts, an installer for both agents, a demo and a test suite. All of it is Python (standard library only), so it runs on Linux, macOS and Windows. MIT licensed.
29
+
30
+ - [Quick start](#quick-start) · [How a ticket flows](#how-a-ticket-flows) · [The skill and the roles](#the-skill-and-the-roles) · [Plans and tickets](#plans-and-tickets)
31
+ - [See the graph](#see-the-graph) · [Long features and handoff](#long-features-and-handoff) · [What is tested](#what-is-tested) · [Upgrading](#upgrading) · [Caution](#caution)
32
+
33
+ ## Quick start
34
+
35
+ You need `git` and `python3` (3.9 or later, standard library only), and Claude Code or Codex. No `bash` or `awk` is needed to run feature-flow: every script is Python. On Windows use `python` where this page says `python3`.
36
+
37
+ ```bash
38
+ git clone https://github.com/hamilton-sky/feature-flow.git
39
+ cd feature-flow
40
+
41
+ python3 install.py /path/to/your/repo # for Claude Code
42
+ python3 install.py /path/to/your/repo --agent codex # for Codex
43
+ python3 install.py /path/to/your/repo --agent all # both, side by side
44
+
45
+ # `bash install.sh ...` still works on Linux and macOS: it only runs install.py
46
+ ```
47
+
48
+ Without a clone, once the package is on PyPI (it is not published yet), the same installer runs from it:
49
+
50
+ ```bash
51
+ uvx feature-flow-cli install /path/to/your/repo --agent all # or: pipx run feature-flow-cli install ...
52
+ ```
53
+
54
+ The package puts a `feature-flow` command on your PATH with `install`, `status <feature>` and `view <feature>`. It installs the same files, byte for byte, as `install.py` from a clone.
55
+
56
+ Then, in your repo, in the agent:
57
+
58
+ | | Claude Code | Codex |
59
+ |---|---|---|
60
+ | Plan a feature (no plan yet) | `/feature-flow csv-export` | `$feature-flow csv-export` |
61
+ | Build its tickets (a plan exists) | `/feature-flow csv-export` | `$feature-flow csv-export` |
62
+ | The same, asking nothing | `/feature-flow csv-export auto` | `$feature-flow csv-export auto` |
63
+ | Watch the graph, animated | `/feature-flow csv-export show` | `$feature-flow csv-export show` |
64
+
65
+ The same command plans when `plans/csv-export/` does not exist yet and builds when it does. Commit the plan before you build it.
66
+
67
+ Try the graph first, with no setup and no agent: `bash examples/demo.sh --open`.
68
+
69
+ ### What the installer does
70
+
71
+ | | Claude Code (`--agent claude`, the default) | Codex (`--agent codex`) |
72
+ |---|---|---|
73
+ | The skill goes to | `<repo>/.claude/skills/` (`--user`: `~/.claude/skills/`) | `<repo>/.agents/skills/` (`--user`: `~/.agents/skills/`) |
74
+ | Roles go to | `<repo>/.claude/agents/` | `<repo>/.agents/flow-roles/`, put in front of each subagent's prompt |
75
+ | Scripts go to | `<repo>/scripts/` | `<repo>/scripts/` |
76
+ | Guides, roles and the conductor go to | `<repo>/.feature-flow/` | `<repo>/.feature-flow/` |
77
+
78
+ Next to the `feature-flow` skill it installs `architect-review` and `automation-design`. The installer never deletes anything. A file that already exists and differs is kept and reported; `--force` replaces it. `--dry-run` shows what would change and writes nothing. `CLAUDE_HOME` and `AGENTS_HOME` move the user folders. With `--user` the skill goes to the user folder, but the scripts and `.feature-flow/` stay in the repo, because the skill runs them from there.
79
+
80
+ The Claude Code skill is `skills/feature-flow/`. The Codex skill is written by hand in `adapters/codex/feature-flow/`, with an `agents/openai.yaml` that sets `allow_implicit_invocation: false`, so it runs only when you name it. The steps are the same; only the way a subagent is started differs. Your own `AGENTS.md` and `CLAUDE.md` are never touched.
81
+
82
+ ## How a ticket flows
83
+
84
+ ```
85
+ smoke command (script): is the base healthy? no ─► stop, spend nothing
86
+ │ yes
87
+ ▼
88
+ pick ticket ─► builder subagent: claim, build, prove it (run fresh, read the output), commit
89
+ │
90
+ ▼
91
+ gate (script): Build, Test, Lint from commands.md fail ─┐
92
+ │ pass │
93
+ ▼ │
94
+ floor guard (script, no AI): │
95
+ tests skipped or deleted? checks silenced? empty catches? │
96
+ thresholds lowered? lint/test/CI config edited? fail ─┤
97
+ plan touched beyond own Status + Answer + appended lines? │
98
+ │ clean │
99
+ ▼ │
100
+ fresh reviewer subagent: sees only the ticket + diff, │
101
+ re-runs every Done when FAIL ─┤
102
+ │ PASS ▼
103
+ ▼ findings written into the ticket,
104
+ next ticket reopened, built again (3 rounds max)
105
+ ```
106
+
107
+ `scripts/flow.py` is the conductor. The session asks it `next`, and it answers with one line: `BUILD`, `REVIEW`, `DONE`, `STOP` or `HANDOFF`. It prints the full prompt for each subagent from runtime-neutral guides, so the session never writes one itself.
108
+
109
+ **What the script checks and what it trusts.** The conductor verifies the build from the repo: the ticket file must say `resolved`, the tree must be clean and committed, and it runs the gate and the floor guard itself. It also checks that the reviewer changed no tracked file and made no commit. The review verdict is different: the reviewer's reply is relayed by the session, which saves it to a file and hands it to `flow.py verdict`. The script reads `REVIEW: PASS` or `REVIEW: FAIL` from that reply; it cannot prove the session passed it on unedited.
110
+
111
+ ## The skill and the roles
112
+
113
+ | Skill | What it does |
114
+ |---|---|
115
+ | `feature-flow` | **Plan:** writes `plans/<feature>/` with a spec, a map, commands, learnings and tickets, shows you the graph, and waits for a yes. **Build:** runs the tickets one by one, a builder and a reviewer subagent each, with `flow.py` deciding every step. **Show:** the animated ticket graph and a summary of what is ready and what blocks the finish. |
116
+ | `architect-review` | Architecture review of a file, diff or feature, with severity rated findings. Reads `CLAUDE.md` or `AGENTS.md` for the project's own rules. |
117
+ | `automation-design` | Blueprint for an automation pipeline. Hands off to `feature-flow` for the plan. |
118
+
119
+ | Role | Tools | Job |
120
+ |---|---|---|
121
+ | `ticket-builder` | Read, Glob, Grep, Edit, Write, Bash | Builds one ticket by the build guide in its prompt. |
122
+ | `ticket-reviewer` | Read, Glob, Grep, Bash (no Edit, no Write) | Reviews one ticket by the review guide in its prompt and ends with `REVIEW: PASS` or `REVIEW: FAIL`. |
123
+
124
+ In Claude Code the reviewer's tool list is enforced, so it cannot edit. A Codex subagent cannot be limited that way, so there the reviewer works from its instructions, and the conductor stops the run if it changed anything.
125
+
126
+ The guides in `guides/` (installed to `.feature-flow/guides/`) hold the protocol: how to build, review, plan and show. The skill holds only what differs per agent.
127
+
128
+ ## Plans and tickets
129
+
130
+ ```
131
+ plans/
132
+ └── csv-export/
133
+ ├── spec.md what and why
134
+ ├── map.md destination, the bar, decisions so far (workers append only)
135
+ ├── commands.md build, test, lint, smoke commands (frozen once approved)
136
+ ├── learnings.md traps workers found (workers append only)
137
+ └── tasks/
138
+ ├── 01-types.md
139
+ ├── 02-service.md
140
+ └── 03-acceptance.md
141
+ ```
142
+
143
+ `commands.md` and `learnings.md` are separate from the map because they follow different rules. Commands are approved by a human and read by the scripts, so they are frozen. Learnings grow with every ticket, so they are append only and a human prunes them (`--check` warns past 40 lines). The map stays short.
144
+
145
+ One markdown file per ticket in `plans/<feature>/tasks/NN-slug.md`:
146
+
147
+ ```
148
+ # Add the retry policy to the job runner
149
+
150
+ Type: task task | settle | convert
151
+ Status: open open | claimed | resolved | parked
152
+ Blocked by: 01, 02 or —
153
+ Test first: yes yes | no
154
+ Floor: allow config optional, only when a human decides the guard may let it through
155
+
156
+ ...what to do and why...
157
+
158
+ ## Not in this ticket
159
+ ## Done when commands and the results they print
160
+ ## Reference
161
+ ## Answer Built, Proof, Decisions, Shortcuts taken, Review fixes, For later tickets
162
+ ```
163
+
164
+ - **Order comes from `Blocked by`**, not from numbers. A ticket is *ready* when it is open and every ticket it is blocked by is resolved. Lowest number wins.
165
+ - **Status lives only in the ticket files.** `map.md` never repeats it.
166
+ - **The Answers are the handoff between subagents.** The next builder reads the Answers of the tickets it depends on.
167
+ - `settle` tickets record a decision. `convert` tickets migrate something and must be safe to run twice.
168
+ - **A worker may change only** its own Status line and Answer, lines appended to `map.md` and `learnings.md`, and the code the ticket calls for. Rewriting its own Done when, editing another ticket, or touching `commands.md` fails the guard.
169
+ - `Floor:` categories: `skip`, `suppress`, `empty-catch`, `test-delete`, `threshold`, `config`, `ticket-edit`, `commands-edit`. The line is read from the ticket as it was before the work started, so a worker cannot excuse itself.
170
+ - The guard needs the plan to be tracked by git. If you keep tickets in an ignored folder, it cannot see changes to them.
171
+ - The commands in `commands.md` run with nobody watching and must exit non zero on failure.
172
+
173
+ ## See the graph
174
+
175
+ ```bash
176
+ python3 scripts/flow-view.py csv-export write the page and open it
177
+ python3 scripts/flow-view.py csv-export --watch keep it updating while tickets are built
178
+ bash examples/demo.sh --open try it on a made up project, no setup needed
179
+ ```
180
+
181
+ One self contained HTML file: no server, no libraries, no network, light and dark. It is written to `.git/flow-<feature>.html`, so it never dirties the tree (`--out FILE` writes it elsewhere).
182
+
183
+ ```
184
+ 01 types ──► 02 service ──► 04 acceptance ● resolved ◉ ready (pulses)
185
+ └────► 03 wire ──────────┘ ◌ being worked (spins) ○ waiting
186
+ ▶ replay ──●──────●─────○────────── drag to scrub through the run
187
+ ```
188
+
189
+ - **Layered left to right**, so the order of work is visible. Dashes flow along the edges into tickets that are ready to start.
190
+ - **Replay** plays the run back from git history: tickets turn green in the order they resolved, and a ticket sent back by the gate, the guard or the reviewer flashes red.
191
+ - **Hover or click** a ticket for its blockers, Done when, Answer, and the rounds it was sent back.
192
+ - **Keys:** space plays or pauses, the arrows step, End shows now, `t` switches theme. Reduced motion is respected.
193
+ - **Safe by construction:** ticket text comes from files an agent wrote, so it is escaped when embedded and only ever inserted as text.
194
+ - `flow-status.py <feature> --json` prints the same data for other tools. Mermaid (`--mermaid`) remains the choice for pull requests, because GitHub renders it.
195
+
196
+ ## Long features and handoff
197
+
198
+ A session's context fills up, so the flow moves to a fresh session every few tickets. After `FLOW_TICKETS_PER_SESSION` tickets (default 4) pass review, `next` prints a `HANDOFF` line instead of the next ticket, for example `HANDOFF /feature-flow csv-export`. The session stops and tells you to open a new session and type that line. The new session picks up exactly where the last one stopped. Set `FLOW_TICKETS_PER_SESSION=0` to never hand off.
199
+
200
+ - **One owner at a time.** `start` gives the session a token, and every later call must carry it, so two sessions can never drive the same feature. `HANDOFF` and `DONE` release it.
201
+ - **Resuming after a closed session.** If a session ended without `HANDOFF` (you closed it, it crashed, it ran out of budget), the feature is still owned by it, and a new session stops and says so. Once you are sure the old session is gone, answer yes when the new session asks, or start it with `FLOW_TAKEOVER=1`. With `auto` the skill never takes over on its own.
202
+ - **Relay mode.** `FLOW_RELAY=1` hands off after every build and every review, so each phase gets a session of its own.
203
+ - **Nobody needs to watch.** With `auto` the skill asks nothing, and a Claude Code cloud session keeps working while you are away. You only come back to type the `HANDOFF` line.
204
+
205
+ The state lives in `.feature-flow/state/` (the state, a log of every step, and the last review reply). That folder ignores itself, so it never shows up in `git status`, and a normal Codex session can write it, which it cannot do under `.git`.
206
+
207
+ ### Commands and settings
208
+
209
+ ```bash
210
+ python3 scripts/flow.py <feature> start|next|prompt|verdict <file> the conductor (the skill runs it)
211
+ python3 scripts/flow-status.py <feature> table of tickets and which are READY
212
+ python3 scripts/flow-status.py <feature> --next path of the next ready ticket (exit 10 = done, 11 = stuck)
213
+ python3 scripts/flow-status.py <feature> --counts one line of counts
214
+ python3 scripts/flow-status.py <feature> --check cycles, missing blockers, missing Done when, unordered mentions
215
+ python3 scripts/flow-status.py <feature> --mermaid the ticket graph, coloured by status (add "plain" for none)
216
+ python3 scripts/flow-status.py <feature> --json every ticket with status, blockers and readiness
217
+ python3 scripts/flow-view.py <feature> [--watch] the animated graph page, opened in your browser
218
+ python3 scripts/gate.py <feature> run Build, Test and Lint from commands.md
219
+ python3 scripts/floor-guard.py <feature> <NN> [base] check a ticket's diff, run from the repo root
220
+ ```
221
+
222
+ The commands in `commands.md` run through `bash -c` on Linux and macOS and through the system shell (`cmd.exe`) on Windows, so write them for the platform your team uses, or call `python` as in the examples.
223
+
224
+ `flow-status.py` also understands the `.scratch/<feature>/issues/` layout and the statuses `done`, `ready-for-agent`, `ready-for-human` and `closed`: `FLOW_DIR=.scratch FLOW_TICKETS=issues`.
225
+
226
+ | Variable | Default | Meaning |
227
+ |---|---|---|
228
+ | `FLOW_TICKETS_PER_SESSION` | `4` | tickets per session before `HANDOFF`; `0` never hands off |
229
+ | `FLOW_RELAY` | `0` | `1` hands off after every build and every review |
230
+ | `FLOW_TAKEOVER` | unset | `1` lets `start` take a feature over from a session that is gone |
231
+ | `FLOW_MAX_RETRIES` | `2` | builds or reviews per step before the run stops |
232
+ | `FLOW_MAX_REVIEW_ROUNDS` | `3` | times a ticket may be sent back before the run stops |
233
+ | `FLOW_GATE` | `on` | `off` skips Build, Test and Lint after each ticket |
234
+ | `FLOW_SMOKE` | the `Smoke:` line of `commands.md` | command run before every ticket; the run stops if it fails |
235
+ | `FLOW_DIR`, `FLOW_TICKETS` | `plans`, `tasks` | where the plans and the ticket folder live |
236
+ | `FLOW_NO_OPEN` | unset | `1` makes `flow-view.py` never open a browser |
237
+ | `FLOW_WATCH_SECONDS` | `3` | how often `flow-view.py --watch` rewrites the page |
238
+
239
+ The run also stops on its own after a number of steps that grows with the ticket count, so a loop of failures cannot go on forever.
240
+
241
+ ## What is tested
242
+
243
+ | Path | Tested |
244
+ |---|---|
245
+ | Claude Code | The offline suite, and **one real run of the bar**: the two-ticket demo in two `/feature-flow hello auto` sessions with one `HANDOFF` between them, each ticket built by a builder subagent and passed by a reviewer subagent, with all 16 acceptance checks ok. It used about 23k output tokens and 2M cached input tokens on Sonnet. |
246
+ | Codex | The install, offline, in CI on Linux and macOS. A probe in the Codex app showed that subagents with separate contexts work and that a reviewer's verdict reaches the session. The full flow is **not yet tested with a real run**. |
247
+ | Claude Code on the web | Documented, untested: commit `.claude/`, `scripts/` and `.feature-flow/` into the repo, because cloud sessions read only the repo's `.claude/`. |
248
+ | Copilot, Gemini CLI, Cursor | Not tested. Some read `.agents/skills`, so `--agent codex` may already work. |
249
+
250
+ ### Trying it by hand
251
+
252
+ ```bash
253
+ bash tests/smoke-real.sh --prepare /tmp/hello-try # the demo project, for Claude Code, no model is called
254
+ FLOW_AGENT=codex bash tests/smoke-real.sh --prepare /tmp/hello-codex # the same, for Codex
255
+ ```
256
+
257
+ Then `cd` into it, start the agent and type `/feature-flow hello` (Codex: `$feature-flow hello`).
258
+
259
+ ## Tests
260
+
261
+ ```bash
262
+ bash tests/run.sh
263
+ python3 -m unittest discover -s tests/py
264
+ ```
265
+
266
+ Offline and free: no model is called. The suite covers the conductor's every answer and how a run stops, sessions, handoff and takeover, a `.git` the agent cannot write, the gate, the floor guard, plan protection, the prompts and guides, both skills, the installer for both agents, the graph page and its data, and the acceptance harness. The page's layout and replay logic are also tested under Node (`tests/viewer-logic.test.js`, skipped when Node is absent). `.github/workflows/tests.yml` runs it on every push to `main` and every pull request, on Ubuntu (once with `mawk`, once with `gawk`) and on macOS. A fourth job runs the Python unit tests on Windows, including a fixture drive that takes a two-ticket plan through `python scripts/flow.py f start` and `next` to `BUILD` and then `REVIEW`. `tests/run.sh` itself is a bash harness and does not run on Windows. Windows is tested this way only: no real agent run has been done there.
267
+
268
+ A `package` job builds the wheel and the sdist and runs `tests/package_smoke.py` on Ubuntu (Python 3.9 and the latest), macOS and Windows: it installs the wheel in a fresh virtual environment, runs `feature-flow install`, and checks that the repo gets the same files as from `install.py` in a clone. Run it locally with `python3 -m pip install build && python3 tests/package_smoke.py`.
269
+
270
+ `RUN_REAL=1 bash tests/smoke-real.sh --interactive` is the acceptance run with Claude Code. It runs real sessions on the demo project and spends money, which is why it asks for `RUN_REAL=1`.
271
+
272
+ ## Upgrading
273
+
274
+ Earlier versions had seven skills and an unattended loop. The five flow skills are gone, and `/feature-flow` replaces them:
275
+
276
+ - `plan-feature` → `/feature-flow <feature>` before a plan exists.
277
+ - `/next-phase` and `/review-ticket` → `/feature-flow <feature>`, which runs a builder and a fresh reviewer subagent for every ticket.
278
+ - `show-flow` → `/feature-flow <feature> show`.
279
+ - `/run-flow` and `scripts/auto-flow.sh` → `/feature-flow <feature> auto`, with a `HANDOFF` every few tickets. There is no cost log any more.
280
+
281
+ The installer never deletes the old skill folders, but it names any it finds. Delete them from `.claude/skills/` or `.agents/skills/` yourself.
282
+
283
+ ## Releasing to PyPI
284
+
285
+ The package is `feature-flow-cli` (the shorter `feature-flow` is likely refused by PyPI as too close to the existing `featureflow`). Its version is `__version__` in `feature_flow/__init__.py`. To release: bump it, then `python3 -m build` and `python3 -m twine upload dist/*` with a PyPI API token, or publish from a GitHub Actions workflow set up as a PyPI trusted publisher. Nothing in this repo uploads on its own.
286
+
287
+ ## Caution
288
+
289
+ The builder subagent has edit and shell access and commits after each ticket. Each ticket costs at least two subagents. Build on a branch you can throw away. Ignore build output in `.gitignore`, because the conductor stops if the tree is dirty after a ticket. The gate runs your Build, Test and Lint commands with no time limit. The floor guard is pattern matching: it can miss things and it can raise false alarms, and `Floor: allow` is the release valve. The run stops on its own when a ticket stays unresolved, when the smoke test or the gate keeps failing, when a ticket keeps failing review, or when it reaches its step limit.
290
+
291
+ ## License
292
+
293
+ MIT. See `LICENSE`.
@@ -0,0 +1,274 @@
1
+ # Feature Flow
2
+
3
+ **A ticket-graph workflow for coding agents.** Works with Claude Code and Codex.
4
+
5
+ [![tests](https://github.com/hamilton-sky/feature-flow/actions/workflows/tests.yml/badge.svg)](https://github.com/hamilton-sky/feature-flow/actions/workflows/tests.yml)
6
+
7
+ Plan a feature as a graph of small tickets, then build them in the session you are already in. One command, `/feature-flow`, does both. Every ticket is built by one fresh subagent and checked by another that never saw the builder's reasoning. A script, not the agent, decides the order of the steps, runs the build and tests, and watches for work that weakens the checks, and the whole run has limits.
8
+
9
+ One skill, 2 agent roles, a Python conductor, 4 Python scripts, an installer for both agents, a demo and a test suite. All of it is Python (standard library only), so it runs on Linux, macOS and Windows. MIT licensed.
10
+
11
+ - [Quick start](#quick-start) · [How a ticket flows](#how-a-ticket-flows) · [The skill and the roles](#the-skill-and-the-roles) · [Plans and tickets](#plans-and-tickets)
12
+ - [See the graph](#see-the-graph) · [Long features and handoff](#long-features-and-handoff) · [What is tested](#what-is-tested) · [Upgrading](#upgrading) · [Caution](#caution)
13
+
14
+ ## Quick start
15
+
16
+ You need `git` and `python3` (3.9 or later, standard library only), and Claude Code or Codex. No `bash` or `awk` is needed to run feature-flow: every script is Python. On Windows use `python` where this page says `python3`.
17
+
18
+ ```bash
19
+ git clone https://github.com/hamilton-sky/feature-flow.git
20
+ cd feature-flow
21
+
22
+ python3 install.py /path/to/your/repo # for Claude Code
23
+ python3 install.py /path/to/your/repo --agent codex # for Codex
24
+ python3 install.py /path/to/your/repo --agent all # both, side by side
25
+
26
+ # `bash install.sh ...` still works on Linux and macOS: it only runs install.py
27
+ ```
28
+
29
+ Without a clone, once the package is on PyPI (it is not published yet), the same installer runs from it:
30
+
31
+ ```bash
32
+ uvx feature-flow-cli install /path/to/your/repo --agent all # or: pipx run feature-flow-cli install ...
33
+ ```
34
+
35
+ The package puts a `feature-flow` command on your PATH with `install`, `status <feature>` and `view <feature>`. It installs the same files, byte for byte, as `install.py` from a clone.
36
+
37
+ Then, in your repo, in the agent:
38
+
39
+ | | Claude Code | Codex |
40
+ |---|---|---|
41
+ | Plan a feature (no plan yet) | `/feature-flow csv-export` | `$feature-flow csv-export` |
42
+ | Build its tickets (a plan exists) | `/feature-flow csv-export` | `$feature-flow csv-export` |
43
+ | The same, asking nothing | `/feature-flow csv-export auto` | `$feature-flow csv-export auto` |
44
+ | Watch the graph, animated | `/feature-flow csv-export show` | `$feature-flow csv-export show` |
45
+
46
+ The same command plans when `plans/csv-export/` does not exist yet and builds when it does. Commit the plan before you build it.
47
+
48
+ Try the graph first, with no setup and no agent: `bash examples/demo.sh --open`.
49
+
50
+ ### What the installer does
51
+
52
+ | | Claude Code (`--agent claude`, the default) | Codex (`--agent codex`) |
53
+ |---|---|---|
54
+ | The skill goes to | `<repo>/.claude/skills/` (`--user`: `~/.claude/skills/`) | `<repo>/.agents/skills/` (`--user`: `~/.agents/skills/`) |
55
+ | Roles go to | `<repo>/.claude/agents/` | `<repo>/.agents/flow-roles/`, put in front of each subagent's prompt |
56
+ | Scripts go to | `<repo>/scripts/` | `<repo>/scripts/` |
57
+ | Guides, roles and the conductor go to | `<repo>/.feature-flow/` | `<repo>/.feature-flow/` |
58
+
59
+ Next to the `feature-flow` skill it installs `architect-review` and `automation-design`. The installer never deletes anything. A file that already exists and differs is kept and reported; `--force` replaces it. `--dry-run` shows what would change and writes nothing. `CLAUDE_HOME` and `AGENTS_HOME` move the user folders. With `--user` the skill goes to the user folder, but the scripts and `.feature-flow/` stay in the repo, because the skill runs them from there.
60
+
61
+ The Claude Code skill is `skills/feature-flow/`. The Codex skill is written by hand in `adapters/codex/feature-flow/`, with an `agents/openai.yaml` that sets `allow_implicit_invocation: false`, so it runs only when you name it. The steps are the same; only the way a subagent is started differs. Your own `AGENTS.md` and `CLAUDE.md` are never touched.
62
+
63
+ ## How a ticket flows
64
+
65
+ ```
66
+ smoke command (script): is the base healthy? no ─► stop, spend nothing
67
+ │ yes
68
+ ▼
69
+ pick ticket ─► builder subagent: claim, build, prove it (run fresh, read the output), commit
70
+ │
71
+ ▼
72
+ gate (script): Build, Test, Lint from commands.md fail ─┐
73
+ │ pass │
74
+ ▼ │
75
+ floor guard (script, no AI): │
76
+ tests skipped or deleted? checks silenced? empty catches? │
77
+ thresholds lowered? lint/test/CI config edited? fail ─┤
78
+ plan touched beyond own Status + Answer + appended lines? │
79
+ │ clean │
80
+ ▼ │
81
+ fresh reviewer subagent: sees only the ticket + diff, │
82
+ re-runs every Done when FAIL ─┤
83
+ │ PASS ▼
84
+ ▼ findings written into the ticket,
85
+ next ticket reopened, built again (3 rounds max)
86
+ ```
87
+
88
+ `scripts/flow.py` is the conductor. The session asks it `next`, and it answers with one line: `BUILD`, `REVIEW`, `DONE`, `STOP` or `HANDOFF`. It prints the full prompt for each subagent from runtime-neutral guides, so the session never writes one itself.
89
+
90
+ **What the script checks and what it trusts.** The conductor verifies the build from the repo: the ticket file must say `resolved`, the tree must be clean and committed, and it runs the gate and the floor guard itself. It also checks that the reviewer changed no tracked file and made no commit. The review verdict is different: the reviewer's reply is relayed by the session, which saves it to a file and hands it to `flow.py verdict`. The script reads `REVIEW: PASS` or `REVIEW: FAIL` from that reply; it cannot prove the session passed it on unedited.
91
+
92
+ ## The skill and the roles
93
+
94
+ | Skill | What it does |
95
+ |---|---|
96
+ | `feature-flow` | **Plan:** writes `plans/<feature>/` with a spec, a map, commands, learnings and tickets, shows you the graph, and waits for a yes. **Build:** runs the tickets one by one, a builder and a reviewer subagent each, with `flow.py` deciding every step. **Show:** the animated ticket graph and a summary of what is ready and what blocks the finish. |
97
+ | `architect-review` | Architecture review of a file, diff or feature, with severity rated findings. Reads `CLAUDE.md` or `AGENTS.md` for the project's own rules. |
98
+ | `automation-design` | Blueprint for an automation pipeline. Hands off to `feature-flow` for the plan. |
99
+
100
+ | Role | Tools | Job |
101
+ |---|---|---|
102
+ | `ticket-builder` | Read, Glob, Grep, Edit, Write, Bash | Builds one ticket by the build guide in its prompt. |
103
+ | `ticket-reviewer` | Read, Glob, Grep, Bash (no Edit, no Write) | Reviews one ticket by the review guide in its prompt and ends with `REVIEW: PASS` or `REVIEW: FAIL`. |
104
+
105
+ In Claude Code the reviewer's tool list is enforced, so it cannot edit. A Codex subagent cannot be limited that way, so there the reviewer works from its instructions, and the conductor stops the run if it changed anything.
106
+
107
+ The guides in `guides/` (installed to `.feature-flow/guides/`) hold the protocol: how to build, review, plan and show. The skill holds only what differs per agent.
108
+
109
+ ## Plans and tickets
110
+
111
+ ```
112
+ plans/
113
+ └── csv-export/
114
+ ├── spec.md what and why
115
+ ├── map.md destination, the bar, decisions so far (workers append only)
116
+ ├── commands.md build, test, lint, smoke commands (frozen once approved)
117
+ ├── learnings.md traps workers found (workers append only)
118
+ └── tasks/
119
+ ├── 01-types.md
120
+ ├── 02-service.md
121
+ └── 03-acceptance.md
122
+ ```
123
+
124
+ `commands.md` and `learnings.md` are separate from the map because they follow different rules. Commands are approved by a human and read by the scripts, so they are frozen. Learnings grow with every ticket, so they are append only and a human prunes them (`--check` warns past 40 lines). The map stays short.
125
+
126
+ One markdown file per ticket in `plans/<feature>/tasks/NN-slug.md`:
127
+
128
+ ```
129
+ # Add the retry policy to the job runner
130
+
131
+ Type: task task | settle | convert
132
+ Status: open open | claimed | resolved | parked
133
+ Blocked by: 01, 02 or —
134
+ Test first: yes yes | no
135
+ Floor: allow config optional, only when a human decides the guard may let it through
136
+
137
+ ...what to do and why...
138
+
139
+ ## Not in this ticket
140
+ ## Done when commands and the results they print
141
+ ## Reference
142
+ ## Answer Built, Proof, Decisions, Shortcuts taken, Review fixes, For later tickets
143
+ ```
144
+
145
+ - **Order comes from `Blocked by`**, not from numbers. A ticket is *ready* when it is open and every ticket it is blocked by is resolved. Lowest number wins.
146
+ - **Status lives only in the ticket files.** `map.md` never repeats it.
147
+ - **The Answers are the handoff between subagents.** The next builder reads the Answers of the tickets it depends on.
148
+ - `settle` tickets record a decision. `convert` tickets migrate something and must be safe to run twice.
149
+ - **A worker may change only** its own Status line and Answer, lines appended to `map.md` and `learnings.md`, and the code the ticket calls for. Rewriting its own Done when, editing another ticket, or touching `commands.md` fails the guard.
150
+ - `Floor:` categories: `skip`, `suppress`, `empty-catch`, `test-delete`, `threshold`, `config`, `ticket-edit`, `commands-edit`. The line is read from the ticket as it was before the work started, so a worker cannot excuse itself.
151
+ - The guard needs the plan to be tracked by git. If you keep tickets in an ignored folder, it cannot see changes to them.
152
+ - The commands in `commands.md` run with nobody watching and must exit non zero on failure.
153
+
154
+ ## See the graph
155
+
156
+ ```bash
157
+ python3 scripts/flow-view.py csv-export write the page and open it
158
+ python3 scripts/flow-view.py csv-export --watch keep it updating while tickets are built
159
+ bash examples/demo.sh --open try it on a made up project, no setup needed
160
+ ```
161
+
162
+ One self contained HTML file: no server, no libraries, no network, light and dark. It is written to `.git/flow-<feature>.html`, so it never dirties the tree (`--out FILE` writes it elsewhere).
163
+
164
+ ```
165
+ 01 types ──► 02 service ──► 04 acceptance ● resolved ◉ ready (pulses)
166
+ └────► 03 wire ──────────┘ ◌ being worked (spins) ○ waiting
167
+ ▶ replay ──●──────●─────○────────── drag to scrub through the run
168
+ ```
169
+
170
+ - **Layered left to right**, so the order of work is visible. Dashes flow along the edges into tickets that are ready to start.
171
+ - **Replay** plays the run back from git history: tickets turn green in the order they resolved, and a ticket sent back by the gate, the guard or the reviewer flashes red.
172
+ - **Hover or click** a ticket for its blockers, Done when, Answer, and the rounds it was sent back.
173
+ - **Keys:** space plays or pauses, the arrows step, End shows now, `t` switches theme. Reduced motion is respected.
174
+ - **Safe by construction:** ticket text comes from files an agent wrote, so it is escaped when embedded and only ever inserted as text.
175
+ - `flow-status.py <feature> --json` prints the same data for other tools. Mermaid (`--mermaid`) remains the choice for pull requests, because GitHub renders it.
176
+
177
+ ## Long features and handoff
178
+
179
+ A session's context fills up, so the flow moves to a fresh session every few tickets. After `FLOW_TICKETS_PER_SESSION` tickets (default 4) pass review, `next` prints a `HANDOFF` line instead of the next ticket, for example `HANDOFF /feature-flow csv-export`. The session stops and tells you to open a new session and type that line. The new session picks up exactly where the last one stopped. Set `FLOW_TICKETS_PER_SESSION=0` to never hand off.
180
+
181
+ - **One owner at a time.** `start` gives the session a token, and every later call must carry it, so two sessions can never drive the same feature. `HANDOFF` and `DONE` release it.
182
+ - **Resuming after a closed session.** If a session ended without `HANDOFF` (you closed it, it crashed, it ran out of budget), the feature is still owned by it, and a new session stops and says so. Once you are sure the old session is gone, answer yes when the new session asks, or start it with `FLOW_TAKEOVER=1`. With `auto` the skill never takes over on its own.
183
+ - **Relay mode.** `FLOW_RELAY=1` hands off after every build and every review, so each phase gets a session of its own.
184
+ - **Nobody needs to watch.** With `auto` the skill asks nothing, and a Claude Code cloud session keeps working while you are away. You only come back to type the `HANDOFF` line.
185
+
186
+ The state lives in `.feature-flow/state/` (the state, a log of every step, and the last review reply). That folder ignores itself, so it never shows up in `git status`, and a normal Codex session can write it, which it cannot do under `.git`.
187
+
188
+ ### Commands and settings
189
+
190
+ ```bash
191
+ python3 scripts/flow.py <feature> start|next|prompt|verdict <file> the conductor (the skill runs it)
192
+ python3 scripts/flow-status.py <feature> table of tickets and which are READY
193
+ python3 scripts/flow-status.py <feature> --next path of the next ready ticket (exit 10 = done, 11 = stuck)
194
+ python3 scripts/flow-status.py <feature> --counts one line of counts
195
+ python3 scripts/flow-status.py <feature> --check cycles, missing blockers, missing Done when, unordered mentions
196
+ python3 scripts/flow-status.py <feature> --mermaid the ticket graph, coloured by status (add "plain" for none)
197
+ python3 scripts/flow-status.py <feature> --json every ticket with status, blockers and readiness
198
+ python3 scripts/flow-view.py <feature> [--watch] the animated graph page, opened in your browser
199
+ python3 scripts/gate.py <feature> run Build, Test and Lint from commands.md
200
+ python3 scripts/floor-guard.py <feature> <NN> [base] check a ticket's diff, run from the repo root
201
+ ```
202
+
203
+ The commands in `commands.md` run through `bash -c` on Linux and macOS and through the system shell (`cmd.exe`) on Windows, so write them for the platform your team uses, or call `python` as in the examples.
204
+
205
+ `flow-status.py` also understands the `.scratch/<feature>/issues/` layout and the statuses `done`, `ready-for-agent`, `ready-for-human` and `closed`: `FLOW_DIR=.scratch FLOW_TICKETS=issues`.
206
+
207
+ | Variable | Default | Meaning |
208
+ |---|---|---|
209
+ | `FLOW_TICKETS_PER_SESSION` | `4` | tickets per session before `HANDOFF`; `0` never hands off |
210
+ | `FLOW_RELAY` | `0` | `1` hands off after every build and every review |
211
+ | `FLOW_TAKEOVER` | unset | `1` lets `start` take a feature over from a session that is gone |
212
+ | `FLOW_MAX_RETRIES` | `2` | builds or reviews per step before the run stops |
213
+ | `FLOW_MAX_REVIEW_ROUNDS` | `3` | times a ticket may be sent back before the run stops |
214
+ | `FLOW_GATE` | `on` | `off` skips Build, Test and Lint after each ticket |
215
+ | `FLOW_SMOKE` | the `Smoke:` line of `commands.md` | command run before every ticket; the run stops if it fails |
216
+ | `FLOW_DIR`, `FLOW_TICKETS` | `plans`, `tasks` | where the plans and the ticket folder live |
217
+ | `FLOW_NO_OPEN` | unset | `1` makes `flow-view.py` never open a browser |
218
+ | `FLOW_WATCH_SECONDS` | `3` | how often `flow-view.py --watch` rewrites the page |
219
+
220
+ The run also stops on its own after a number of steps that grows with the ticket count, so a loop of failures cannot go on forever.
221
+
222
+ ## What is tested
223
+
224
+ | Path | Tested |
225
+ |---|---|
226
+ | Claude Code | The offline suite, and **one real run of the bar**: the two-ticket demo in two `/feature-flow hello auto` sessions with one `HANDOFF` between them, each ticket built by a builder subagent and passed by a reviewer subagent, with all 16 acceptance checks ok. It used about 23k output tokens and 2M cached input tokens on Sonnet. |
227
+ | Codex | The install, offline, in CI on Linux and macOS. A probe in the Codex app showed that subagents with separate contexts work and that a reviewer's verdict reaches the session. The full flow is **not yet tested with a real run**. |
228
+ | Claude Code on the web | Documented, untested: commit `.claude/`, `scripts/` and `.feature-flow/` into the repo, because cloud sessions read only the repo's `.claude/`. |
229
+ | Copilot, Gemini CLI, Cursor | Not tested. Some read `.agents/skills`, so `--agent codex` may already work. |
230
+
231
+ ### Trying it by hand
232
+
233
+ ```bash
234
+ bash tests/smoke-real.sh --prepare /tmp/hello-try # the demo project, for Claude Code, no model is called
235
+ FLOW_AGENT=codex bash tests/smoke-real.sh --prepare /tmp/hello-codex # the same, for Codex
236
+ ```
237
+
238
+ Then `cd` into it, start the agent and type `/feature-flow hello` (Codex: `$feature-flow hello`).
239
+
240
+ ## Tests
241
+
242
+ ```bash
243
+ bash tests/run.sh
244
+ python3 -m unittest discover -s tests/py
245
+ ```
246
+
247
+ Offline and free: no model is called. The suite covers the conductor's every answer and how a run stops, sessions, handoff and takeover, a `.git` the agent cannot write, the gate, the floor guard, plan protection, the prompts and guides, both skills, the installer for both agents, the graph page and its data, and the acceptance harness. The page's layout and replay logic are also tested under Node (`tests/viewer-logic.test.js`, skipped when Node is absent). `.github/workflows/tests.yml` runs it on every push to `main` and every pull request, on Ubuntu (once with `mawk`, once with `gawk`) and on macOS. A fourth job runs the Python unit tests on Windows, including a fixture drive that takes a two-ticket plan through `python scripts/flow.py f start` and `next` to `BUILD` and then `REVIEW`. `tests/run.sh` itself is a bash harness and does not run on Windows. Windows is tested this way only: no real agent run has been done there.
248
+
249
+ A `package` job builds the wheel and the sdist and runs `tests/package_smoke.py` on Ubuntu (Python 3.9 and the latest), macOS and Windows: it installs the wheel in a fresh virtual environment, runs `feature-flow install`, and checks that the repo gets the same files as from `install.py` in a clone. Run it locally with `python3 -m pip install build && python3 tests/package_smoke.py`.
250
+
251
+ `RUN_REAL=1 bash tests/smoke-real.sh --interactive` is the acceptance run with Claude Code. It runs real sessions on the demo project and spends money, which is why it asks for `RUN_REAL=1`.
252
+
253
+ ## Upgrading
254
+
255
+ Earlier versions had seven skills and an unattended loop. The five flow skills are gone, and `/feature-flow` replaces them:
256
+
257
+ - `plan-feature` → `/feature-flow <feature>` before a plan exists.
258
+ - `/next-phase` and `/review-ticket` → `/feature-flow <feature>`, which runs a builder and a fresh reviewer subagent for every ticket.
259
+ - `show-flow` → `/feature-flow <feature> show`.
260
+ - `/run-flow` and `scripts/auto-flow.sh` → `/feature-flow <feature> auto`, with a `HANDOFF` every few tickets. There is no cost log any more.
261
+
262
+ The installer never deletes the old skill folders, but it names any it finds. Delete them from `.claude/skills/` or `.agents/skills/` yourself.
263
+
264
+ ## Releasing to PyPI
265
+
266
+ The package is `feature-flow-cli` (the shorter `feature-flow` is likely refused by PyPI as too close to the existing `featureflow`). Its version is `__version__` in `feature_flow/__init__.py`. To release: bump it, then `python3 -m build` and `python3 -m twine upload dist/*` with a PyPI API token, or publish from a GitHub Actions workflow set up as a PyPI trusted publisher. Nothing in this repo uploads on its own.
267
+
268
+ ## Caution
269
+
270
+ The builder subagent has edit and shell access and commits after each ticket. Each ticket costs at least two subagents. Build on a branch you can throw away. Ignore build output in `.gitignore`, because the conductor stops if the tree is dirty after a ticket. The gate runs your Build, Test and Lint commands with no time limit. The floor guard is pattern matching: it can miss things and it can raise false alarms, and `Floor: allow` is the release valve. The run stops on its own when a ticket stays unresolved, when the smoke test or the gate keeps failing, when a ticket keeps failing review, or when it reaches its step limit.
271
+
272
+ ## License
273
+
274
+ MIT. See `LICENSE`.