bokata 3.0.0-beta.6 → 3.0.0-beta.7

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 (38) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -6
  2. package/.agents/skills/bokata-feature-map/SKILL.md +4 -4
  3. package/.agents/skills/bokata-feature-map/resources/features-template.md +5 -5
  4. package/.agents/skills/bokata-feature-mapper/SKILL.md +1 -1
  5. package/.agents/skills/bokata-feature-slicer/SKILL.md +18 -13
  6. package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +15 -7
  7. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +3 -3
  8. package/.agents/skills/bokata-feature-slicer/resources/{phase-2-increments.md → phase-2-options.md} +1 -1
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +7 -6
  10. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +7 -7
  11. package/.agents/skills/bokata-plan/SKILL.md +30 -30
  12. package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
  13. package/.agents/skills/bokata-render/SKILL.md +20 -20
  14. package/.agents/skills/bokata-render/assets/story-map.html +86 -86
  15. package/.agents/skills/bokata-render/scripts/render.mjs +208 -178
  16. package/.agents/skills/bokata-shape/SKILL.md +2 -2
  17. package/.agents/skills/bokata-slice/SKILL.md +198 -120
  18. package/.agents/skills/bokata-slice/resources/appetite-template.md +71 -0
  19. package/.agents/skills/bokata-slice/resources/proposed-slices.md +50 -0
  20. package/.agents/skills/bokata-spec/SKILL.md +256 -0
  21. package/.agents/skills/bokata-spec/resources/slice-template.md +49 -0
  22. package/.agents/skills/bokata-status/SKILL.md +29 -29
  23. package/.agents/skills/bokata-tdd/SKILL.md +12 -12
  24. package/README.md +475 -320
  25. package/agents/bokata-product-designer.md +7 -7
  26. package/agents/bokata-product-engineer.md +10 -10
  27. package/agents/bokata-product-manager.md +8 -8
  28. package/agents/code-executor.md +25 -21
  29. package/agents/feature-slicer.md +1 -1
  30. package/bin/bokata.js +1 -1
  31. package/package.json +1 -1
  32. package/src/config.js +1 -1
  33. package/src/install.js +4 -4
  34. package/.agents/skills/bokata-inc/SKILL.md +0 -244
  35. package/.agents/skills/bokata-inc/resources/inc-template.md +0 -36
  36. package/.agents/skills/bokata-slice/resources/proposed-increments.md +0 -42
  37. package/.agents/skills/bokata-slice/resources/slice-template.md +0 -70
  38. /package/.agents/skills/bokata-feature-slicer/resources/{output-template-increments.md → output-template-options.md} +0 -0
@@ -99,8 +99,8 @@ resolved (write the decision), cut (out of scope) or declared a no-go.
99
99
 
100
100
  ## 4. Write the pitch
101
101
 
102
- Write `<docs>/<slug>/pitch.md` from the template. No time estimates or appetite numbers:
103
- instead write one **ambition** line (for example "minimum a coach can use in a real match"
102
+ Write `<docs>/<slug>/pitch.md` from the template. No time estimates or time-box numbers (Shape Up's appetite is time; in bokata the *appetite* is the
103
+ scope you take on later, in `bokata-slice`): instead write one **ambition** line (for example "minimum a coach can use in a real match"
104
104
  or "fully polished"). It is the tie-breaker when choosing between two solutions.
105
105
 
106
106
  **What becomes of `approaches.md`.** The pitch keeps one line per approach (`### Approaches
@@ -1,60 +1,63 @@
1
1
  ---
2
2
  name: bokata-slice
3
- description: Create a vertical slice of 1-4 Features — slice each Feature into Steps, options and INVEST bites (one feature-slicer subagent per Feature), have the Product Trio review the full trace and the bites, and leave the slice as a proposal: the bites, the Walking Skeleton as skeleton bites and a roadmap of proposed increments, with no specs yet. The owner reviews and edits it by hand; bokata-inc then specifies each increment. Also validates the slice (--check) and marks it done (--done). Use it after bokata-feature-map or a pitch, when the user wants to slice, cut the backlog of bites, or propose a walking skeleton.
3
+ description: Cut an appetite — what you want to have for now, in one sentence, and the Features (usually 1–4) that deliver it — into Steps, options and INVEST bites (one feature-slicer subagent per Feature), have the Product Trio review the full trace and the bites, and leave the appetite as a proposal: the bites, the Walking Skeleton as skeleton bites and a roadmap of proposed slices, with no specs yet. The owner reviews and edits it by hand; bokata-spec then specifies each slice. Takes the appetite as an argument or, with none, proposes example appetites. Also validates the appetite (--check) and marks it done (--done). Use it after bokata-feature-map or a pitch, when the user wants to slice, cut the backlog of bites, or propose a walking skeleton.
4
4
  ---
5
5
 
6
- Create a **vertical slice**: a group of 1–4 Features that together give the user a usable flow.
7
- `bokata-slice` does the **cutting**: it slices each Feature, groups the options into bites and
8
- **proposes** the increments — the Walking Skeleton first — without writing a single acceptance
9
- criterion. The owner reviews the proposal and edits it by hand; `bokata-inc` then specifies one
10
- increment at a time (Inc 1 too), and the slice grows from there. The slice is a short **index**
11
- plus a folder of files, so that no operation has to read the whole history (see
12
- [The slice layout](#the-slice-layout)). You are the neutral coordinator; the slicing comes from
6
+ Create an **appetite**: how much you want to have for now, said in one sentence ("a coach can share a
7
+ reviewed clip with the team"), and the Features that deliver it — usually 1–4, because that is often
8
+ what it takes for a usable flow. It stays open until you say it is enough. An appetite here is a
9
+ budget of *scope*, not of time (Shape Up's appetite is time; bokata plans scope).
10
+ `bokata-slice` does the **cutting**: it slices each Feature into Steps and options, groups the
11
+ options into bites and **proposes** the slices — the Walking Skeleton first — without writing a single
12
+ acceptance criterion. The owner reviews the proposal and edits it by hand; `bokata-spec` then
13
+ specifies one slice at a time (Slice 1 too), and the appetite grows from there. The appetite is a
14
+ short **index** plus a folder of files, so that no operation has to read the whole history (see
15
+ [The appetite layout](#the-appetite-layout)). You are the neutral coordinator; the slicing comes from
13
16
  `feature-slicer` subagents, and the PM, Designer and Engineer review from their lenses.
14
17
 
15
18
  ```
16
- Slice 1–4 Features → a usable flow, end to end; open until the user marks it done
19
+ Appetite one sentence + its Features (usually 1–4) → a usable flow; open until the user says enough
17
20
  ├ Slicing per Feature: User Task → Step → options (F1-2.3), pruned, with a target per Step
18
21
  ├ Bites F1-a …: INVEST groups of options, per User Task, each titled for the user; the skeleton
19
- │ bites are F1-w1 …; an Inc takes some, the rest stay in the Backlog while the slice lives
20
- ├ Proposed the roadmap: the bites left, grouped into the increments to build, Inc 1 first
21
- │ increments — a proposal the owner edits, not a decision
22
- └ Increment proposed → specified (bokata-inc: bites + concrete ACs) → planned → done
23
- └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor,
24
- deleted when the Inc is done
22
+ │ bites are F1-w1 …; a Slice takes some, the rest stay in the Backlog while the appetite lives
23
+ ├ Proposed the roadmap: the bites left, grouped into the slices to build, Slice 1 first
24
+ │ slices — a proposal the owner edits, not a decision
25
+ └ Slice proposed → specified (bokata-spec: bites + concrete ACs) → planned → done
26
+ └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor,
27
+ deleted when the Slice is done
25
28
  ```
26
29
 
27
- ### The slice layout
30
+ ### The appetite layout
28
31
 
29
32
  ```
30
- slices/<nn>-<name>.md INDEX: header, Increments (the specified ones: outcome + bites), Backlog (bite lines, proposed increments), links
31
- slices/<nn>-<name>/inc-<n>.md one specified Increment: State, Unknowns, Gherkin, rules, its decisions, Pending (written by bokata-inc)
32
- slices/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
33
- slices/<nn>-<name>/context.md the Discovery Context, then the slice-wide Notes and the Trio notes
34
- slices/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
33
+ appetites/<nn>-<name>.md INDEX: header, Slices (the specified ones: outcome + bites), Backlog (bite lines, proposed slices), links
34
+ appetites/<nn>-<name>/slice-<n>.md one specified Slice: State, Unknowns, Gherkin, rules, its decisions, Pending (written by bokata-spec)
35
+ appetites/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
36
+ appetites/<nn>-<name>/context.md the Discovery Context, then the appetite-wide Notes and the Trio notes
37
+ appetites/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
35
38
  ```
36
39
 
37
- A new slice has **no `inc-<n>.md` and an empty `## Increments`**: its increments are all proposed.
40
+ A new appetite has **no `slice-<n>.md` and an empty `## Slices`**: its slices are all proposed.
38
41
 
39
42
  - **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
40
- nothing of an Inc but its name, outcome and bite IDs; the Inc's options are the options of its bites.
41
- - **State lives only in `inc-<n>.md`** (`State: specified | planned | done`; `building` is derived from
42
- the checked steps in `plan.md`; a proposed Inc has no file and no State). A `done` slice shows every Inc as done.
43
- - **A decision about one Inc goes in that Inc's file** (`## Decisions and notes of this Inc`);
44
- `context.md` (its `## Notes`) holds only what concerns the whole slice. Slices cut earlier have `notes.md` and
43
+ nothing of a Slice but its name, outcome and bite IDs; the Slice's options are the options of its bites.
44
+ - **State lives only in `slice-<n>.md`** (`State: specified | planned | done`; `building` is derived from
45
+ the checked steps in `plan.md`; a proposed Slice has no file and no State). A `done` appetite shows every Slice as done.
46
+ - **A decision about one Slice goes in that Slice's file** (`## Decisions and notes of this Slice`);
47
+ `context.md` (its `## Notes`) holds only what concerns the whole appetite. Appetites cut earlier have `notes.md` and
45
48
  `discovery.md` side by side instead of `context.md`: read them the same way.
46
- - Templates: [slice-template.md](resources/slice-template.md) (the index) and
47
- [inc-template.md](../bokata-inc/resources/inc-template.md) (written by `bokata-inc`).
49
+ - Templates: [appetite-template.md](resources/appetite-template.md) (the index) and
50
+ [slice-template.md](../bokata-spec/resources/slice-template.md) (written by `bokata-spec`).
48
51
 
49
- - **Option ≠ bite ≠ increment.** An option is one way to do one Step. A bite groups the
50
- options of one or several Steps that make sense together (small, INVEST). An increment is the
52
+ - **Option ≠ bite ≠ slice.** An option is one way to do one Step. A bite groups the
53
+ options of one or several Steps that make sense together (small, INVEST). A slice is the
51
54
  Walking Skeleton or one or more bites — whatever lets the user see or do something new.
52
55
  - **The backlog is a plan, not an index.** Options are explored widely, then the slicer prunes
53
56
  what is obsolete, dominated or filler (each with a reason) and groups the rest into bites.
54
57
  Nobody reads loose option IDs.
55
- - **A Feature belongs to exactly one slice.** If another slice needs it, that slice lists it as
56
- a dependency.
57
- - **No specs here.** Concrete ACs are written just in time by `bokata-inc`, only for the increment
58
+ - **A Feature has at most one open appetite.** If another appetite needs it, that appetite lists it as a
59
+ dependency. When an appetite is `done`, a **new** appetite can adopt its leftover ([Adopt](#adopt---from-nn-continue-what-a-done-appetite-left)); a done appetite is never reopened.
60
+ - **No specs here.** Concrete ACs are written just in time by `bokata-spec`, only for the slice
58
61
  it specifies. Functional ACs stay in `features.md`.
59
62
  - **No time estimates.** Never write a duration.
60
63
 
@@ -70,24 +73,25 @@ Read `.bokata.json` at the project root if it exists. Defaults:
70
73
  ```json
71
74
  { "docs": "docs/initiatives",
72
75
  "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md" },
73
- "templates": { "slice": null },
76
+ "templates": { "appetite": null },
74
77
  "story_map": true }
75
78
  ```
76
79
 
77
- `<docs>` below is the `docs` value. `templates.slice: null` means
78
- [resources/slice-template.md](resources/slice-template.md). The story map is drawn by the
80
+ `<docs>` below is the `docs` value. `templates.appetite: null` means
81
+ [resources/appetite-template.md](resources/appetite-template.md). The story map is drawn by the
79
82
  `bokata-render` script from the markdown; this skill only runs it.
80
83
 
81
84
  ## Operations
82
85
 
83
86
  | Call | Does |
84
87
  |------|------|
85
- | `bokata-slice [<features…>]` | **New slice**: Steps 1–5 below. It ends with a proposal; it specifies nothing |
86
- | `bokata-slice <nn> --check` | Validate the slice and the initiative's markdown (runs the render script's `--check`) |
87
- | `bokata-slice <nn> --done` | Mark the slice **done** — see [Done](#done---done) |
88
+ | `bokata-slice ["<appetite>"] [<features…>]` | **New appetite**: Steps 1–5 below. The appetite is a sentence (what you want to have for now); with none, it proposes some. It ends with a proposal; it specifies nothing |
89
+ | `bokata-slice ["<appetite>"] --from <nn>` | **New appetite that adopts the leftover** of the done appetite `<nn>` — see [Adopt](#adopt---from-nn-continue-what-a-done-appetite-left) |
90
+ | `bokata-slice <nn> --check` | Validate the appetite and the initiative's markdown (runs the render script's `--check`) |
91
+ | `bokata-slice <nn> --done` | Mark the appetite **done** — see [Done](#done---done) |
88
92
 
89
- Specifying an increment — taking the next one, a numbered one or named bites, with its concrete
90
- ACs — is **`bokata-inc`**, not this skill.
93
+ Specifying a slice — taking the next one, a numbered one or named bites, with its concrete
94
+ ACs — is **`bokata-spec`**, not this skill.
91
95
 
92
96
  ## Mode
93
97
 
@@ -98,7 +102,7 @@ ACs — is **`bokata-inc`**, not this skill.
98
102
  one `feature-slicer` subagent; run every trio step yourself, one lens at a time. The first
99
103
  time, create `features.md` from the features template with **only** that Feature (name and
100
104
  `Purpose` from the pitch, its User Tasks from [Step 1b](#step-1b-single-mode-only-derive-the-user-tasks))
101
- and its `**Slice:**` line, and put `<!-- Mode: single -->` under its header comment. There are
105
+ and its `**Appetite:**` line, and put `<!-- Mode: single -->` under its header comment. There are
102
106
  no functional ACs in single mode: the Coverage check is skipped (see the gate).
103
107
 
104
108
  The user can force either mode.
@@ -110,16 +114,31 @@ order) and never change. Option IDs build on them: `F2-3.1` = Feature 2, Step 3,
110
114
 
111
115
  ## Step 1: Resolve Features & Folders
112
116
 
113
- 1. Read `features.md` and the pitch, the constitution, the glossary, and the existing slices in
114
- `<docs>/<initiative-slug>/slices/` (their header and `Status` are enough).
115
- 2. Show the Features: which already belong to a slice (from each Feature's `**Slice:**` line) and
116
- which are free. Ask the user to pick **1–4 free Features that make sense together** if not
117
- given. For the first slice, recommend the group that makes the journey usable end to end. A
118
- Feature that already has a slice cannot be picked again — offer `bokata-inc` on that slice
119
- instead.
120
- 3. Number the new slice (`01`, `02`, … after the existing ones) and `mkdir -p
121
- <docs>/<initiative-slug>/slices/<nn>-wip/work`. This **work folder** holds the discovery and the
122
- slicers' output while the slice is being made; Step 4 turns it into the final layout and deletes it.
117
+ 1. Read `features.md` and the pitch, the constitution, the glossary, and the existing appetites in
118
+ `<docs>/<initiative-slug>/appetites/` (their header and `Status` are enough).
119
+ 2. **Get the appetite.** It is one sentence in user language: what you want to have when this is
120
+ enough, and where you stop. Four cases:
121
+ - **The user gave a sentence**: restate it as `Appetite: …`, tighten it if it is vague ("so a
122
+ coach can share a reviewed clip, with a link pasted by hand — no accounts") and show it with
123
+ the Features you think deliver it (point 3). "Yes" accepts it.
124
+ - **The user gave only Features**: propose the sentence those Features imply.
125
+ - **The user gave nothing**: read the pitch and `features.md` and propose **2–3 example appetites**,
126
+ each a sentence plus its Features and a **cut line** in the journey ("everything up to the coach
127
+ sharing, nothing about editing"): *only the skeleton* (the flow end to end, with crutches), *the
128
+ skeleton plus the must-haves of the core Features*, *everything these Features say*. Recommend
129
+ one. The user picks, edits or writes their own.
130
+ - **No `features.md` and no pitch**: say so and offer `bokata-shape`.
131
+ 3. **Pick the Features.** Show which Features already belong to an appetite (from each Feature's
132
+ `**Appetite:**` line) and which are free. **1–4 Features is a suggestion, not a limit**: in
133
+ practice that is often what it takes for a flow that already gives value, and some Feature's
134
+ thinnest path is not to do it, so leave it out. More than four is allowed; say that it is
135
+ probably two appetites, and let the user decide. For the first appetite, recommend the group that
136
+ makes the journey usable end to end. A Feature with an **open** appetite cannot be picked
137
+ again — offer `bokata-spec` on that appetite instead. A Feature whose appetites are all `done` is
138
+ free: if one of them left bites, offer to adopt them (`--from`, see [Adopt](#adopt---from-nn-continue-what-a-done-appetite-left)) before slicing the Feature anew.
139
+ 4. Number the new appetite (`01`, `02`, … after the existing ones) and `mkdir -p
140
+ <docs>/<initiative-slug>/appetites/<nn>-wip/work`. This **work folder** holds the discovery and the
141
+ slicers' output while the appetite is being made; Step 4 turns it into the final layout and deletes it.
123
142
  Every subagent below receives **paths into it, never pasted content**.
124
143
 
125
144
  ## Step 1b: Single mode only — derive the User Tasks
@@ -140,7 +159,7 @@ recommended answer and worded so "yes" accepts it; wait for the answers before t
140
159
  about the picked Features, only where the answer changes a Step or an option:
141
160
  - **Technical Clarity** — User Tasks too vague to decompose into Steps?
142
161
  - **Layer Ambiguity** — Steps unclear between UI, Logic and Data?
143
- - **Increment Scope** — User Tasks too large to slice without clarification?
162
+ - **Appetite scope** — User Tasks too large to slice without clarification?
144
163
  - **Dependencies** — between User Tasks, or between the picked Features?
145
164
  - **Constraints** — architecture or performance limits on which options are viable?
146
165
 
@@ -152,8 +171,8 @@ If the input is already rich, say so and ask only about what is missing:
152
171
  > "You provided the features + functional ACs for [initiative], which resolves scope and rules. Asking only about [missing categories]."
153
172
 
154
173
  Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
155
- Layer Decisions / Increment Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
156
- Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/context.md`** (it is the first
174
+ Layer Decisions / Appetite (the sentence, and where it stops) / Appetite Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
175
+ Constraints Noted / Assumptions, and **write it to `appetites/<nn>-wip/work/context.md`** (it is the first
157
176
  section of that file; the Notes and Trio notes are appended to it at the end). Every subagent below receives its path.
158
177
 
159
178
  ---
@@ -175,11 +194,11 @@ subagent_type: feature-slicer
175
194
  prompt: "Slice this Feature. Feature code: F<n>.
176
195
  - Feature: [name and ID] — its Purpose, User Tasks and System Tasks are in <docs>/<slug>/features.md
177
196
  (in single mode, the confirmed list of Step 1b was written there)
178
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
197
+ - Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
179
198
  - Constitution / glossary paths: [from .bokata.json]
180
199
  - Functional ACs — open ONLY for the Phase 3 coverage check: this Feature's Requirements + Scenarios
181
200
  in features.md [in single mode: "none — skip the coverage check"]
182
- - Output file (the only file you may write): <docs>/<slug>/slices/<nn>-wip/work/F<n>.md
201
+ - Output file (the only file you may write): <docs>/<slug>/appetites/<nn>-wip/work/F<n>.md
183
202
  Read the skill and all its resources first (they are in .agents/skills/bokata-feature-slicer/). Run all four phases, including Phase 4 (prune with a
184
203
  reason, a target per Step, INVEST bites). Write the full output (Slicing trace, Coverage,
185
204
  Walking Skeleton proposal, Pruned, Bites, Self-check, Assumptions) to the output file and reply in at most
@@ -199,7 +218,7 @@ Read each `work/F<n>.md` once and, for every trace, check mechanically (count, d
199
218
  - [ ] Every Requirement of the Feature appears in `### Coverage` (single mode has none:
200
219
  `### Coverage` says `none — no functional ACs`)
201
220
  - [ ] Every `Deferred` item from the Discovery Context appears as a `deferred` option
202
- - [ ] The Walking Skeleton proposal uses option IDs and covers every User Task
221
+ - [ ] The Walking Skeleton proposal uses option IDs and covers every User Task, or lists under `Left out of the skeleton:` each User Task it skips with a reason
203
222
  - [ ] Every pruned option appears in `### Pruned` with one of the four reasons, is gone from the
204
223
  trace, and was not a skeleton or `deferred` option
205
224
  - [ ] Every Step has one `→ target`
@@ -221,7 +240,7 @@ Each slicer sees only its own Feature, so a bite that needs another Feature says
221
240
  `depends on: F7 (<what it needs>)`, never a bite ID of F7. Once every trace passes the gate, edit the
222
241
  work files to replace
223
242
  each such reference with the ID of the bite of that Feature that provides what is needed (or
224
- `Inc 1` if its skeleton does). If no bite does, note it under `## Trio notes` as a gap and ask the
243
+ `Slice 1` if its skeleton does). If no bite does, note it under `## Trio notes` as a gap and ask the
225
244
  user in the decision point of 3d. Then check there is no dependency cycle across Features.
226
245
 
227
246
  ### 3c. Wave 2 — Trio review of the full traces (parallel)
@@ -237,10 +256,10 @@ subagent_type: bokata-product-manager
237
256
  prompt: "Review the slicing of [Features] from the value/viability lens. You have:
238
257
  - Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites), one file per Feature: [the paths of every work/F<n>.md]
239
258
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
240
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
259
+ - Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
241
260
  Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
242
261
  value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
243
- Step — propose it with its Step ID. Which options unlock the most value next? Also review the
262
+ Step — propose it with its Step ID. Which options unlock the most value next? Does the order of the bites serve the appetite sentence in the Discovery Context, and is an uncertainty the Engineer flags worth moving earlier — or does an earlier bite give value without entering it? Also review the
244
263
  Pruned list and the Bites. Is the must-have / nice-to-have split in value order, does any
245
264
  pruning throw away value (name the option ID), is any bite too big or two bites really one?
246
265
  Tag every finding with Severity (Critical|Suggested) and Type (factual/scope|trade-off). Return
@@ -253,7 +272,7 @@ subagent_type: bokata-product-designer
253
272
  prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
254
273
  - Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
255
274
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
256
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
275
+ - Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
257
276
  Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
258
277
  experience across the Features? Which UI states are essential to the skeleton and which can wait?
259
278
  Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
@@ -270,11 +289,12 @@ subagent_type: bokata-product-engineer
270
289
  prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
271
290
  - Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
272
291
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
273
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
292
+ - Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
274
293
  Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
275
294
  reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
276
295
  (in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
277
- Step ID. Also review the Bites. Are the dependencies right and acyclic, is any bite too big
296
+ Step ID. Say which seams of the skeleton are real and which are faked, and which open uncertainty
297
+ or rabbit hole each bite resolves or leaves open. Also review the Bites. Are the dependencies right and acyclic, is any bite too big
278
298
  to size, and does any pruned option break a contract a later bite or Feature relies on (name
279
299
  the option ID)? Tag every finding with Severity (Critical|Suggested) and Type
280
300
  (factual/scope|trade-off). Return your review in the format specified in your agent file (Bites
@@ -310,61 +330,67 @@ Fast Feedback Principle.
310
330
  - **Non-interactive** (`--no-interactive`, or a headless run): apply the defaults and record each
311
331
  in `## Trio notes` with both positions, the applied default, and `⚠ flagged for human review`.
312
332
 
313
- ### 3e. Propose Inc 1 — the Walking Skeleton, and name the slice
333
+ ### 3e. Propose Slice 1 — the Walking Skeleton, and name the appetite
314
334
 
315
335
  Nothing here is committed: the skeleton is a **proposal**, written as bites in the Backlog and as the
316
- first row of the roadmap. The owner reviews it in the index and decides at `bokata-inc 1`.
336
+ first row of the roadmap. The owner reviews it in the index and decides at `bokata-spec 1`.
317
337
 
318
338
  1. Build the proposal as the union of the reconciled skeleton proposals: the option IDs per User
319
- Task across the picked Features, so the flow works end to end. Every User Task is covered. Every
320
- part must be functional on its own; if an option has no visible effect alone, it travels with the
321
- option that makes it visible.
322
- 2. **Group it into skeleton bites.** Every increment is made of bites, so that the story map draws it as
339
+ Task across the picked Features, so the flow works end to end. **Covering every User Task is a
340
+ strong suggestion**, not a law: a skeleton that skips one is rare but possible (a User Task the
341
+ appetite does not need yet). Each one left out goes in a line `Left out of the skeleton: <User Task> — <reason>` under the
342
+ roadmap table, with its reason. Every part must be functional on its own; if an option has no
343
+ visible effect alone, it travels with the option that makes it visible.
344
+ 2. **Group it into skeleton bites.** Every slice is made of bites, so that the story map draws it as
323
345
  cards, and so that the owner can edit the skeleton as any other row. Make one **skeleton bite per
324
346
  User Task** the skeleton covers: ID `F<n>-w<k>` (`F1-w1`, `F1-w2`, … — the `w` plus a digit never
325
347
  collides with a slicer's letter IDs), a title with a subject that says what the user does in that
326
348
  User Task *with the shortcut* ("Ana picks a hardcoded clip"), tagged `(skeleton)`, its options, no
327
- `→ Inc` yet.
349
+ `→ Slice` yet.
328
350
  3. Options that go into a skeleton bite **leave their bite**; if that empties a bite, remove it; if
329
- it breaks another bite's `depends on`, repoint it to `Inc 1`. The bites left stay the backlog.
330
- 4. **Name the slice.** Propose a short name in kebab-case, with your recommendation ("yes" accepts it).
351
+ it breaks another bite's `depends on`, repoint it to `Slice 1`. The bites left stay the backlog.
352
+ 4. **Name the appetite.** Propose a short name in kebab-case, with your recommendation ("yes" accepts it).
331
353
  Ask it in the decision point of 3d if there is one, otherwise as one short question.
332
- 5. Write the **roadmap** — [Proposed increments](resources/proposed-increments.md) — with Inc 1, the
333
- Walking Skeleton, as its first row, then the bites that are left.
354
+ 5. Write the **roadmap** — [Proposed slices](resources/proposed-slices.md) — with Slice 1, the
355
+ Walking Skeleton, as its first row, then the bites that are left. In "Why this order", Slice 1
356
+ says which seams are **real** and which **faked**, and each row says what it **leaves open** when
357
+ that matters (an uncertainty or rabbit hole it does not touch). Risk is a conditioning factor, not
358
+ a rule: the Engineer flags it, the PM weighs it against value, and the first slice may give value
359
+ without going into the riskiest unknown.
334
360
 
335
361
  ---
336
362
 
337
- ## Step 4: Write the Slice & the Summary
363
+ ## Step 4: Write the Appetite & the Summary
338
364
 
339
- 1. Rename `slices/<nn>-wip` to `slices/<nn>-<name>`, `mkdir -p slices/<nn>-<name>/slicing`, and
340
- **write** the files of [The slice layout](#the-slice-layout) from the (reconciled) files in
365
+ 1. Rename `appetites/<nn>-wip` to `appetites/<nn>-<name>`, `mkdir -p appetites/<nn>-<name>/slicing`, and
366
+ **write** the files of [The appetite layout](#the-appetite-layout) from the (reconciled) files in
341
367
  `work/`. **Copy, do not retype**: cut each section out of `work/F<k>.md` with the shell (`sed -n`,
342
368
  `awk`, `node -e`) or your editor instead of writing it out again — a trace is tens of KB.
343
- - `slices/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
369
+ - `appetites/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
344
370
  `work/F<k>.md` (the Walking Skeleton proposal, Pruned, Bites and Self-check go elsewhere; the
345
371
  Assumptions to the `## Notes` of `context.md`): its reconciled trace (Steps, options,
346
372
  strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it plus the
347
373
  trio's added options. The slicer's `skeleton` marker stays on the options of the proposed
348
- skeleton; `bokata-inc` replaces it with `→ Inc n` when an Inc takes them;
349
- - `slices/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
374
+ skeleton; `bokata-spec` replaces it with `→ Slice n` when a Slice takes them;
375
+ - `appetites/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
350
376
  `context.md` (`work/context.md`, moved, with `## Notes` and `## Trio notes` appended after the Discovery Context);
351
- then **delete `work/`**. **There is no `inc-<n>.md`**: nothing is specified yet;
352
- - the index `slices/<nn>-<name>.md` from [slice-template.md](resources/slice-template.md):
353
- header with `Status: open`; an **empty** `## Increments` (its comment only); `## Backlog` with
377
+ then **delete `work/`**. **There is no `slice-<n>.md`**: nothing is specified yet;
378
+ - the index `appetites/<nn>-<name>.md` from [appetite-template.md](resources/appetite-template.md):
379
+ header with the `Appetite:` sentence and `Status: open`; an **empty** `## Slices` (its comment only); `## Backlog` with
354
380
  **every bite**, grouped by Feature and User Task and ordered by value (must-have first,
355
381
  `~nice-to-have` after), each on one line **copied as the slicer returned it** (the canonical
356
382
  bite line of `output-template-bites.md`; never reformat it), the skeleton bites as
357
- `(skeleton)` lines with no `→ Inc`; `deferred` bites (`F1-d1`, …) in their own group; never a flat
358
- list of option IDs. Put **`### Proposed increments`** above the bites (3e); and `## Files` linking
383
+ `(skeleton)` lines with no `→ Slice`; `deferred` bites (`F1-d1`, …) in their own group; never a flat
384
+ list of option IDs. Put **`### Proposed slices`** above the bites (3e); and `## Files` linking
359
385
  everything above.
360
- 2. In `features.md`, set each picked Feature's `**Slice:**` line:
361
- `**Slice:** → <nn>-<name> · 0/<total> options · next: <bite ID> <bite title>` (the first bite of
386
+ 2. In `features.md`, set each picked Feature's `**Appetite:**` line:
387
+ `**Appetite:** → <nn>-<name> · 0/<total> options · next: <bite ID> <bite title>` (the first bite of
362
388
  the first proposed row). Nothing else about the slicing goes into `features.md`.
363
389
  3. **Refresh the story map** (if `story_map`): run the `bokata-render` script, in the foreground:
364
390
  ```bash
365
391
  node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
366
392
  ```
367
- If it prints a `file:line: problem`, the slice or `features.md` broke the format: fix it and run it again.
393
+ If it prints a `file:line: problem`, the appetite or `features.md` broke the format: fix it and run it again.
368
394
 
369
395
  ---
370
396
 
@@ -373,53 +399,105 @@ first row of the roadmap. The owner reviews it in the index and decides at `boka
373
399
  - [ ] Every picked Feature was sliced by a `feature-slicer` subagent and passed the gate
374
400
  - [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
375
401
  and each in exactly one bite
376
- - [ ] The slice has its index (empty `## Increments`, Backlog of bites, `### Proposed increments`) and its
377
- folder: `slicing/F<k>.md` per Feature, `context.md`, `pruned.md` — and **no** `inc-<n>.md`
378
- - [ ] `features.md` gained only a `**Slice:**` line per picked Feature
402
+ - [ ] The appetite has its index (the `Appetite:` sentence, empty `## Slices`, Backlog of bites, `### Proposed slices`) and its
403
+ folder: `slicing/F<k>.md` per Feature, `context.md`, `pruned.md` — and **no** `slice-<n>.md`
404
+ - [ ] `features.md` gained only a `**Appetite:**` line per picked Feature
379
405
  - [ ] The `bokata-render` script ran without errors (if `story_map`)
380
406
 
381
407
  Print:
382
408
  ```
383
- ## ✓ Slice Ready — a proposal
409
+ ## ✓ Appetite Ready — a proposal
384
410
 
385
- **Slice:** <nn>-<name> — Features: {{FEATURES}} · open
386
- **Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md (+ the folder <nn>-<name>/)
411
+ **Appetite:** <nn>-<name> — Features: {{FEATURES}} · open
412
+ **Location:** <docs>/{{INITIATIVE_SLUG}}/appetites/<nn>-<name>.md (+ the folder <nn>-<name>/)
387
413
 
388
414
  **Slicing:** {{NUM_STEPS}} Steps · {{NUM_OPTIONS_TOTAL}} options ({{NUM_PRUNED}} pruned) · {{NUM_BITES}} bites ({{NUM_MUST}} must-have · {{NUM_NICE}} nice-to-have · {{NUM_DEFERRED}} deferred)
389
- **Trio notes:** {{N}} (see the slice)
415
+ **Trio notes:** {{N}} (see the appetite)
390
416
 
391
- **Proposed increments:** Inc 1 {{INC_1_ONE_LINE}} · Inc 2 {{INC_2_ONE_LINE}} · Inc 3 {{INC_3_ONE_LINE}} …
417
+ **Proposed slices:** Slice 1 {{SLICE_1_ONE_LINE}} · Slice 2 {{SLICE_2_ONE_LINE}} · Slice 3 {{SLICE_3_ONE_LINE}} …
392
418
  Nothing is specified yet. Review the index and edit the proposal by hand if you want: move bites between
393
- increments, add or drop bites, reorder the rows.
419
+ slices, add or drop bites, reorder the rows.
394
420
 
395
- **Next step:** `bokata-inc` — specifies the first proposed increment (Inc 1, the Walking Skeleton):
421
+ **Next step:** `bokata-spec` — specifies the first proposed slice (Slice 1, the Walking Skeleton):
396
422
  its rules, its concrete ACs and your approval. Then `bokata-plan`.
397
423
  ```
398
424
 
399
425
  ---
400
426
 
427
+ ## Adopt (`--from <nn>`): continue what a done appetite left
428
+
429
+ A `done` appetite means *enough*, not *complete*: it usually leaves bites untaken. To go on, do **not**
430
+ reopen it: make a **new appetite that adopts the leftover**. The built Slices stay as history; the new
431
+ appetite has its own sentence, its own cut line and its own Slice numbers, starting at 1.
432
+
433
+ **The leftover** of a `done` appetite is the bites of its `## Backlog` with no `→ Slice n` (`must-have`,
434
+ `~nice-to-have` and `deferred`), the options of those bites in `slicing/F<k>.md`, and its `pruned.md`.
435
+
436
+ `bokata-slice "<appetite>" --from <nn>` runs it. With no argument and no `--from`, if a done appetite
437
+ has leftover, offer *"Continue <nn>-<name>: <k> bites left (<m> must-have): <first titles>"* among the
438
+ example appetites of Step 1. Refuse an appetite that is still `open` (use `bokata-spec` on it, or
439
+ `--done` first) and a Feature that has another open appetite.
440
+
441
+ 1. **Show the leftover**, grouped by Feature and User Task, `must-have` first, deferred last, with what
442
+ the done appetite built (its Slices' outcomes) and what it learned (the `## Learned` entries of its `slice-<n>.md`, with the leftover bites they affect). Get the appetite sentence as in Step 1, now
443
+ *from the leftover*: "what do you want to have **now**?", with the cut line drawn over the bites.
444
+ Recommend the bites that serve the sentence; the user picks. **The bites not picked stay in the
445
+ source appetite's Backlog**, still adoptable later. A `deferred` bite: ask whether its reason
446
+ still holds, as `bokata-spec` does.
447
+ 2. **Number and name the new appetite** (as Step 1), `mkdir -p appetites/<mm>-wip/work`.
448
+ 3. **Move, do not copy** (an option or a bite lives in one place):
449
+ - the picked **bite lines** go to the new index's `## Backlog`, same IDs and same lines. A
450
+ `depends on` that named something the source built (`Slice 1`, a taken bite) becomes
451
+ `built (<nn> · Slice <n>)`; one that names a source bite not picked: ask to add it, or flag it;
452
+ - their **options** go to the new `slicing/F<k>.md`: the User Task headings and every Step line
453
+ of the source trace come along (Step, layer, target), but only the picked options. A Step whose
454
+ options were built gets `· note: built in <nn> (F1-2.1 → Slice 1)`. The moved options leave the
455
+ source's `slicing/F<k>.md`;
456
+ - the source's `pruned.md` lines for those Features are **copied** to the new `pruned.md` (the
457
+ pruned options are not live, and the Trio may restore one);
458
+ - `context.md`: a Discovery Context for the new appetite — the sentence, what was built,
459
+ `Adopted from <nn>-<name>` (a link to its index), plus anything the user adds — and a link to the
460
+ source's `context.md` for the layer and constraint decisions, which are not copied;
461
+ - in the **source** appetite's `context.md` `## Notes`: `Leftover adopted by <mm>-<name>: <bite IDs>`.
462
+ 4. **Review.** There is no slicer wave: the leftover is already sliced and pruned. Run **Wave 2 of Step 3c**
463
+ (the Trio, paths only) with one more line: *"This appetite adopts what <nn> left; what <nn> built is
464
+ in its `slice-<n>.md` files. Do the picked bites still make sense after what was built, and does
465
+ their order serve the `Appetite:` sentence?"* Then Step 3d. The gate of 3b is only mechanical here:
466
+ every picked option is in exactly one bite, every bite has its fields, no dependency cycle. A
467
+ missing option gets the next free ID **across both appetites' traces**.
468
+ 5. **Roadmap.** Write `### Proposed slices` from the picked bites as in 3e, but **with no skeleton
469
+ row**: the skeleton is already built, so `Slice 1` is simply the first bites to build now, and
470
+ "Why this order" says what it builds on and what it leaves open.
471
+ 6. Write the index (Step 4) with an `Adopts:` line in its header, set the `**Appetite:**` line of each
472
+ Feature (`→ <mm>-<name> · … · earlier: <nn>-<name> done`), run the `bokata-render` script, and
473
+ print the summary of Step 5 with `Adopts:` and the bites left in the source.
474
+
401
475
  ## Done (`--done`)
402
476
 
403
- Only when the user asks — nothing marks a slice done by itself. First **sweep**: read every
404
- `inc-<n>.md` and `plan.md`'s section for this slice and **list what is still open** — an Inc whose
405
- `State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item, a proposed increment that
406
- was never specified — and ask the user whether to go on. Then set `Status: done` in the index header,
477
+ Only when the user asks — nothing marks an appetite done by itself. First **sweep**: read every
478
+ `slice-<n>.md` and `plan.md`'s section for this appetite and **list what is still open** — a Slice whose
479
+ `State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item, a proposed slice that
480
+ was never specified — and **compare what is built with the `Appetite:` sentence of the index**:
481
+ say what the user can do now, what the sentence asks that is still missing, and which `must-have`
482
+ bites are still in the backlog (a `must-have` is a bite the appetite is not satisfied without).
483
+ *Done* means *enough*: the user may close an appetite with must-haves untaken; then list them in
484
+ the closing note. Ask whether to go on. Then set `Status: done` in the index header,
407
485
  add a closing line to the `## Notes` of `context.md` (what is built, which bites stay in the backlog),
408
- delete this slice's section from `plan.md` if it still has one, update the `**Slice:**` lines in
486
+ delete this appetite's section from `plan.md` if it still has one, update the `**Appetite:**` lines in
409
487
  `features.md` with `· done`, and run the `bokata-render` script. The backlog and the proposed
410
- increments stay in the index; to build more of these Features later, the user reopens this slice
411
- (`Status: open`) and runs `bokata-inc` — never a new slice for the same Feature. A done *slice* is not
412
- a done *increment*: the `State: done` of an Inc is set by the executor, and a done slice renders all
413
- its Incs as done.
488
+ slices stay in the index, as what the appetite left. To build more of these Features later, a **new**
489
+ appetite adopts that leftover (`bokata-slice "<appetite>" --from <nn>`); a done appetite is not reopened. A done *appetite* is not
490
+ a done *slice*: the `State: done` of a Slice is set by the executor, and a done appetite renders all
491
+ its Slices as done.
414
492
 
415
493
  ## Check (`--check`)
416
494
 
417
495
  Run `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check`: it parses
418
- `features.md`, the slices and `plan.md` with the same parser the story map uses and prints every
419
- `file:line: problem` (an Inc naming a bite that has no line, a bite whose option is not in the
420
- Slicing, an Inc with no `inc-<n>.md`, an unknown `State`, a proposed row that names an unknown bite or
421
- a bite an Inc already took, a bite in two rows, …) without writing anything. Report them; fix the
422
- markdown, never the parser. It is what to run after editing the proposed increments by hand.
496
+ `features.md`, the appetites and `plan.md` with the same parser the story map uses and prints every
497
+ `file:line: problem` (a Slice naming a bite that has no line, a bite whose option is not in the
498
+ Slicing, a Slice with no `slice-<n>.md`, an unknown `State`, a proposed row that names an unknown bite or
499
+ a bite a Slice already took, a bite in two rows, …) without writing anything. Report them; fix the
500
+ markdown, never the parser. It is what to run after editing the proposed slices by hand.
423
501
 
424
502
  ---
425
503
 
@@ -432,12 +510,12 @@ markdown, never the parser. It is what to run after editing the proposed increme
432
510
  - [ ] Cross-Feature `depends on: F<n> (…)` references were resolved to bite IDs, with no cycle
433
511
  - [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
434
512
  - [ ] The Backlog lists bites with user-language titles, never loose option IDs
435
- - [ ] `### Proposed increments` exists: Inc 1 (the skeleton bites, one per User Task) first, every must-have bite
513
+ - [ ] `### Proposed slices` exists: Slice 1 (the skeleton bites, one per User Task) first, every must-have bite
436
514
  in exactly one row, dependencies respected, a reason per row
437
- - [ ] The skeleton covers every User Task of the picked Features, as skeleton bites with no `→ Inc`
438
- - [ ] **No concrete ACs and no `inc-<n>.md`**: specifying is `bokata-inc`'s job
515
+ - [ ] The skeleton covers every User Task of the picked Features as skeleton bites with no `→ Slice`, or says under `Left out of the skeleton:` which it skips and why
516
+ - [ ] **No concrete ACs and no `slice-<n>.md`**: specifying is `bokata-spec`'s job
439
517
  - [ ] No duration written anywhere
440
- - [ ] `features.md` holds only the summary `**Slice:**` line per Feature
518
+ - [ ] `features.md` holds only the summary `**Appetite:**` line per Feature
441
519
  - [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
442
- - [ ] The `work/` folder is gone and `slices/<nn>-wip` was renamed
443
- - [ ] The `bokata-render` script ran right after the slice was final
520
+ - [ ] The `work/` folder is gone and `appetites/<nn>-wip` was renamed
521
+ - [ ] The `bokata-render` script ran right after the appetite was final