bokata 3.0.0-beta.5 → 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 (36) 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 +19 -14
  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 -28
  12. package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
  13. package/.agents/skills/bokata-render/SKILL.md +21 -21
  14. package/.agents/skills/bokata-render/assets/story-map.html +91 -91
  15. package/.agents/skills/bokata-render/scripts/render.mjs +219 -159
  16. package/.agents/skills/bokata-shape/SKILL.md +2 -2
  17. package/.agents/skills/bokata-slice/SKILL.md +230 -277
  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 +30 -24
  23. package/.agents/skills/bokata-tdd/SKILL.md +12 -12
  24. package/README.md +496 -199
  25. package/agents/bokata-product-designer.md +11 -9
  26. package/agents/bokata-product-engineer.md +14 -12
  27. package/agents/bokata-product-manager.md +12 -10
  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 -2
  34. package/.agents/skills/bokata-slice/resources/inc-template.md +0 -36
  35. package/.agents/skills/bokata-slice/resources/slice-template.md +0 -69
  36. /package/.agents/skills/bokata-feature-slicer/resources/{output-template-increments.md → output-template-options.md} +0 -0
@@ -0,0 +1,71 @@
1
+ <!-- THE APPETITE INDEX: appetites/<nn>-<name>.md. Short on purpose: it is what `bokata-spec`, the story map and
2
+ the owner read first. Everything bulky lives in the folder next to it, `appetites/<nn>-<name>/`:
3
+
4
+ slice-<n>.md one specified slice: State, Unknowns, Gherkin, rules, decisions, Pending (bokata-spec writes it)
5
+ slicing/F<k>.md one Feature's trace: User Task → Step → options (written once)
6
+ context.md the Discovery Context of Step 2, then the appetite-wide notes and the Trio notes
7
+ pruned.md options pruned after the slicing, one line each with its reason
8
+
9
+ Nothing is said twice. The index holds what never changes once written (outcome, bites); the
10
+ state of a slice lives only in its `slice-<n>.md`, so Slices built in parallel worktrees never
11
+ touch the same file. A new appetite has no `slice-<n>.md` and an EMPTY `## Slices`: everything is
12
+ still a proposal, and the owner edits the Backlog and the proposed slices by hand. -->
13
+
14
+ # Appetite <nn> — <name>
15
+
16
+ - Initiative: [<initiative>](../pitch.md) · Features: F1 <name>, F2 <name>
17
+ - Adopts: [<nn>-<name>](<nn>-<name>.md) <!-- only when this appetite continues the leftover of a done one (`bokata-slice --from <nn>`); delete otherwise -->
18
+ - Appetite: <one or two sentences, in user language: what you want to have when this is enough — the end-to-end flow, and where you stop. `must-have` means the appetite is not satisfied without it; `--done` compares against this line>
19
+ - Rabbit holes that touch it: <from the pitch, or "none">
20
+ - Status: open | done <!-- set by the user: `bokata-slice <nn> --done`; a done appetite shows every Slice as done -->
21
+
22
+ ## Slices
23
+
24
+ <!-- EMPTY when the appetite is created. `bokata-spec` adds one entry per slice it specifies, in number
25
+ order, once the owner has approved its ACs. Slice 1 is the Walking Skeleton; every other Slice is one
26
+ or several bites. Each is functional on its own. Its State is in slice-<n>.md. A bite is listed
27
+ once, in the Backlog below; a Slice only names the bites it takes. An entry looks like this
28
+ (flush left, as a real heading — here it is indented so the story map does not read it):
29
+
30
+ ### Slice 1 — Walking skeleton
31
+ - Outcome: <one sentence, in user language: what the user can do when this is done>
32
+ - Bites: F1-w1, F2-w1 <the skeleton bites: one per User Task the skeleton covers>
33
+ - Detail: [slice-1.md](<nn>-<name>/slice-1.md)
34
+ -->
35
+
36
+ ## Backlog
37
+
38
+ <!-- Every bite of the appetite, one line each (INVEST group of options), per Feature and User Task, ordered
39
+ by value. Titles say who does what, so they read without the Step. A bite a Slice took ends its
40
+ priority tag with "→ Slice n" (`bokata-spec` adds it, the skeleton bites included: `(skeleton) → Slice 1`). The story map draws the taken ones inside their Slice and the rest
41
+ here, in the Backlog band: keep one bite per line, in this shape. Untaken bites stay here for as
42
+ long as the appetite lives, even when every Slice is done. -->
43
+
44
+ ### Proposed slices
45
+
46
+ <!-- A PROPOSAL, not a decision: the roadmap, written by `bokata-slice` (Slice 1, the Walking Skeleton, is
47
+ the first row) and redone by every `bokata-spec`. The owner edits it freely: move a bite to another
48
+ row, add or drop rows, reorder them. The FIRST row is the next slice `bokata-spec` takes. Each row
49
+ = one Slice (1–3 bites; must-have first, ~nice-to-have last, dependencies respected); rows of
50
+ specified Slices are dropped, they live in ## Slices. Rules: bokata-slice/resources/proposed-slices.md -->
51
+
52
+ | Slice | Bites | What the user gains | Why this order |
53
+ |---|---|---|---|
54
+ | Slice 1 — Walking skeleton | F1-w1 · F2-w1 | <one line, in user language> | <the thinnest path that runs end to end> |
55
+ | Slice 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Slice 1 only"> |
56
+ | Slice 3 — <name> | F1-c | <…> | <…> |
57
+ | Later | ~F1-b · ~F1-e · deferred F1-d1 | <nice-to-have and deferred, no order promised> | — |
58
+
59
+ ### F1 — <Feature name>
60
+
61
+ - **[<User Task>]**
62
+ - **F1-w1 · <Who does or sees what in the skeleton>** (skeleton) — F1-1.1, F1-2.1
63
+ - **F1-a · <Who does or sees what>** (must-have) — F1-1.2, F1-3.3 · depends on: Slice 1 · value: <one line> · check: <one sentence a test can answer>
64
+ - ~**F1-b · <Who does or sees what>** (nice-to-have) — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
65
+ - **[Deferred]**
66
+ - **F1-d1 · <title>** (deferred: <reason, e.g. needs F9>) — F1-1.4, F1-5.2 · prune and split when recovered
67
+
68
+ ## Files
69
+
70
+ - Slicing: [F1](<nn>-<name>/slicing/F1.md) · [F2](<nn>-<name>/slicing/F2.md)
71
+ - [Context: Discovery, notes and trio notes](<nn>-<name>/context.md) · [Pruned options](<nn>-<name>/pruned.md)
@@ -0,0 +1,50 @@
1
+ # Proposed slices
2
+
3
+ The roadmap of an appetite: the bites that no slice has taken yet, grouped into the slices the
4
+ coordinator suggests building. It lives in the appetite index, under `## Backlog`, as
5
+ `### Proposed slices`. **`bokata-slice` writes it** (Slice 1, the Walking Skeleton, is its first row)
6
+ and **`bokata-spec` redoes it** every time a slice is specified.
7
+
8
+ It is a **proposal, never a decision**. The owner edits it freely by hand — moves a bite to another
9
+ row, adds or drops a row, reorders the rows — and `bokata-slice <nn> --check` validates the result.
10
+ Nothing is specified until the owner runs `bokata-spec`.
11
+
12
+ ```markdown
13
+ | Slice | Bites | What the user gains | Why this order |
14
+ |---|---|---|---|
15
+ | Slice 1 — Walking skeleton | F1-w1 · F2-w1 | <one line, in user language> | the thinnest path that runs end to end · real: <seams that are real> · faked: <seams that are crutches> |
16
+ | Slice 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Slice 1 only"> · leaves open: <uncertainty> |
17
+ | Slice 3 — <name> | F1-c | <…> | <…> |
18
+ | Later | ~F1-d · ~F1-e · deferred F1-d1 | <nice-to-have and deferred, no order promised> | — |
19
+ ```
20
+
21
+ ## How to write it
22
+
23
+ You compose it from what the trio already said (the PM's value order and "bites to build next", the
24
+ Engineer's dependencies). You add no new opinion on value.
25
+
26
+ - **One row per Slice**: `Slice <n> — <name>`, its bites (1–3, across User Tasks if they belong
27
+ together), what the user gains (user language, one line), and **why this order** (the value it
28
+ unlocks or the dependency it satisfies).
29
+ - **Order of the rows**: `depends on` first, then value, must-have before `~nice-to-have`. A row
30
+ never takes a bite before the bite it depends on. **The first row is the next slice**: it
31
+ is what `bokata-spec` with no argument takes, whatever its number.
32
+ - **Every must-have bite, and every skeleton bite, appears in exactly one row.** The
33
+ `~nice-to-have` and `deferred` bites go in a final `Later` row, with no order promised; they can
34
+ still be taken by naming them: `bokata-spec F1-d F1-e`.
35
+ - **Declare the seams and the uncertainty in "Why this order".** Slice 1's reason says which seams are
36
+ real and which are faked (that is what its crutches are). A row says what it **leaves open** when
37
+ that matters: "leaves open: can the clip decoder keep up on a phone?" — an uncertainty or rabbit
38
+ hole the row does not touch. No new column, and not every row needs it.
39
+ - **Uncertainty is a conditioning factor, not a rule.** Order by value and dependency; let the biggest
40
+ open uncertainty move a row earlier only when learning it early changes what you would build next.
41
+ A slice can give value (to the business, to the user) before it enters a rabbit hole. The Engineer
42
+ flags the uncertainties; the PM weighs them against value.
43
+ - **Each row is a candidate for INVEST**: small, independent of the rows after it, valuable, testable.
44
+ - **The numbers are labels.** The number of a specified Slice never changes. A row keeps its number
45
+ while it is in the table; a row written fresh takes the highest number in use (specified or
46
+ proposed) plus one. Gaps are fine. The same number never appears twice in the table nor in
47
+ `## Slices`.
48
+ - **Drop the rows of specified Slices**: they live in `## Slices`. A bite that a Slice took is in
49
+ no row.
50
+ - If the owner states an order, use it and keep the reason.
@@ -0,0 +1,256 @@
1
+ ---
2
+ name: bokata-spec
3
+ description: Specify one slice of an appetite — pick its bites (the next proposed slice, a numbered one, or any bites you name), have the Product Trio contribute rules, write concrete Acceptance Criteria (Gherkin) only for it, and re-prune what it makes obsolete. The Walking Skeleton (Slice 1) and every later slice go through it, after bokata-slice and before bokata-plan. Use it when the user wants to take the next slice, spec Slice 3, or build a slice out of named bites.
4
+ ---
5
+
6
+ Turn a **proposed** slice into a **specified** one. `bokata-slice` left the bites and a
7
+ roadmap of proposed slices in the appetite; this skill commits to one of them: it fixes which bites
8
+ the slice takes, writes its concrete ACs, and lets the owner approve them before anything is
9
+ planned. You are the neutral coordinator; the PM, Designer and Engineer contribute rules from their
10
+ lenses.
11
+
12
+ ```
13
+ bokata-slice → bites + proposed slices (Slice 1 = the Walking Skeleton), no specs
14
+ (you) → review the index: move bites, add or drop, reorder the rows
15
+ bokata-spec → take a slice → trio rules → concrete ACs → you approve (this skill)
16
+ bokata-plan → checklist (refuses a Slice that is not specified)
17
+ code-executor → build → State: done
18
+ ```
19
+
20
+ A slice goes **proposed → specified → planned → done**. It is *proposed* while it is only a row
21
+ of `### Proposed slices`; it is *specified* once its `slice-<n>.md` exists with approved ACs
22
+ (`State: specified`); `bokata-plan` sets *planned*; the executor sets *done*.
23
+
24
+ ## Calls
25
+
26
+ | Call | Does |
27
+ |------|------|
28
+ | `bokata-spec` | The **next** slice: the first row of `### Proposed slices` |
29
+ | `bokata-spec <n>` | **Slice n**, the proposed row labelled `Slice n` as it stands in the table (with your hand edits) |
30
+ | `bokata-spec F1-b F2-c` | A **new** slice made of exactly those bites; it takes the highest number in use plus one, and the bites leave the row they were in |
31
+ | `bokata-spec … --appetite <nn>` | Choose the appetite when more than one is open |
32
+
33
+ - **Resolve the initiative** the way the other skills do: the one the user names, else the only
34
+ initiative under `<docs>` with an appetite; ask if there are several.
35
+ - **Resolve the appetite**: the open appetite with proposed slices. If several qualify and `--appetite`
36
+ is not given, ask which one, with your recommendation.
37
+ - An `<n>` that is already specified (`slice-<n>.md` exists) is not re-run: say so and point at the
38
+ file — it is edited by hand. An `<n>` that is in no row and in no Slice: say so and list the rows.
39
+ - With no rows left, say what the Backlog still holds (`Later`, deferred) and offer
40
+ `bokata-spec <bite IDs>` or `bokata-slice <nn> --done`.
41
+
42
+ ## Configuration
43
+
44
+ Read `.bokata.json` at the project root if it exists. Defaults:
45
+
46
+ ```json
47
+ { "docs": "docs/initiatives",
48
+ "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md", "adrs": "docs/adrs" },
49
+ "methods": { "domain": "domain-modeling" },
50
+ "story_map": true }
51
+ ```
52
+
53
+ `<docs>` is the `docs` value. The story map is drawn by the `bokata-render` script; this skill only
54
+ runs it.
55
+
56
+ ---
57
+
58
+ ## Step 1: Read
59
+
60
+ Read the appetite **index** (`## Slices`, `## Backlog` — the bite lines and `### Proposed
61
+ slices`), `context.md`, `pruned.md`, and the `slicing/F<k>.md` of the Features whose bites
62
+ you may take; read an `slice-<n>.md` only for a Slice you must reason about (its `Pending` and
63
+ decisions). Also the functional ACs of the touched Features from `features.md`, the glossary and
64
+ the constitution. **Do not read the Gherkin of the Slices already built**, but do read their `## Learned` entries
65
+ (optional notes tagged `technical | user | business | uncertainty`, each with an `Affects:` line of
66
+ bite or option IDs): they are what the built slices taught about whether the path is right.
67
+
68
+ ## Step 2: Choose the bites (Interactive)
69
+
70
+ 1. **Resolve the call** to a set of bites: the first row of the table, the row `Slice <n>`, or the
71
+ bites the user named. Show it as one line of what the user can do, its bite IDs and titles, and
72
+ the option each takes. Then check, and say what fails:
73
+ - every bite has a line in `## Backlog` and no Slice has taken it;
74
+ - `depends on` is satisfied: a bite ID taken by a Slice or in this one, `Slice 1` (already
75
+ specified or part of this one), `none`, or `F<n> (…)` for another Feature that is done or in the
76
+ set. Offer to add the missing bite, or to continue and flag it in `Unknowns`;
77
+ - a `deferred` bite cannot be taken as it is: ask whether its reason still holds; if not,
78
+ reclassify it (and split it if it is big) before taking it.
79
+ 2. **Slice 1 is the Walking Skeleton**, unless the index has an `Adopts:` line: an appetite that
80
+ continues another has its skeleton already built, so its Slice 1 is just the next bites, and
81
+ `built (<nn> · …)` in a `depends on` counts as met. Its bites are the skeleton bites (`F<n>-w<k>`, `(skeleton)`).
82
+ It should cover **every User Task of the appetite's Features** (a strong suggestion): if the table
83
+ or your edits left one out, say so and check it is listed under `Left out of the skeleton:` with a
84
+ reason; if it is not, ask for one. Every part must be functional on its own: an option with no visible effect alone
85
+ travels with the option that makes it visible.
86
+ **Learned notes.** For every `## Learned` entry of a built Slice (of this appetite, or of the
87
+ source appetite when this one has an `Adopts:` line) whose `Affects:` names a live bite or option,
88
+ say it in one line next to that bite ("F1-b: technical — the decoder drops frames above 30 s") and
89
+ offer the adjustment: reword it, reorder it, add an option, split it, or move it to `Later`. The
90
+ user decides; **never change a bite because of a note without asking**. A note that affects
91
+ nothing live is just context.
92
+ 3. **Ask once, with a recommendation** (worded so "yes" accepts it): "Take these bites as Slice <n> —
93
+ <name>?" The user can swap, add or drop bites, rename the slice or write their own. **The
94
+ user decides.** If you were called with bite IDs, or the row is untouched, this is the only
95
+ question.
96
+ 4. **A request no bite has**: add it as a new option to its Step in `slicing/F<k>.md` (next free
97
+ ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing stays
98
+ the source of truth.
99
+ 5. **Options the user moves into the slice leave their bite**: if that empties a bite, remove
100
+ it; if it breaks another bite's `depends on`, repoint it to this Slice. The bites that are left
101
+ stay the backlog.
102
+
103
+ ## Step 3: Re-prune
104
+
105
+ The slice just chosen raises the floor for its Steps: any live option, in any bite, that now
106
+ sits below what the slice builds is `obsolete`. Delete it from its `slicing/F<k>.md` and list it
107
+ in `pruned.md` with its reason. **Never prune an option a Slice has taken** (`→ Slice n`): the story map
108
+ resolves each Slice's options through the Slicing, so those stay. Bites left with no options go away;
109
+ a bite whose value shrank is reworded or merged. A removal that would take value away from a bite
110
+ goes to the user as one decision point, with your recommended default.
111
+
112
+ ## Step 4: Concrete Acceptance Criteria — this slice only
113
+
114
+ Never write concrete ACs for options still in the backlog. **Subagents get paths, not pasted
115
+ content**: give them the paths of `slicing/F<k>.md` and `context.md`; the slices already in the
116
+ appetite are the `## Slices` of the index.
117
+
118
+ ### 4a. Trio contributes Rules (Subagents, Parallel)
119
+
120
+ One message, three foreground calls, wait for all three:
121
+
122
+ **Task 1: PM Contribution**
123
+ ```
124
+ subagent_type: bokata-product-manager
125
+ prompt: "Contribute business-rule Rules for slice [Slice n] of appetite [nn], from the viability/value lens. You have:
126
+ - The slice: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
127
+ - Slices already in the appetite (for context): the `## Slices` of <index path>
128
+ - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
129
+ - Discovery Context: [path of context.md]
130
+ Do NOT ask the user questions. Give launch-blocking rules for this slice and the value it
131
+ unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
132
+ sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
133
+ ```
134
+
135
+ **Task 2: Designer Contribution**
136
+ ```
137
+ subagent_type: bokata-product-designer
138
+ prompt: "Contribute UX/UI Rules for slice [Slice n] of appetite [nn], from the usability/craft lens. You have:
139
+ - The slice: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
140
+ - Slices already in the appetite: the `## Slices` of <index path>
141
+ - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
142
+ - Discovery Context: [path of context.md]
143
+ Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
144
+ slice needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
145
+ ```
146
+
147
+ **Task 3: Engineer Contribution**
148
+ ```
149
+ subagent_type: bokata-product-engineer
150
+ prompt: "Contribute technical Rules for slice [Slice n] of appetite [nn], from the feasibility/sustainability lens. You have:
151
+ - The slice: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
152
+ - Slices already in the appetite: the `## Slices` of <index path>
153
+ - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
154
+ - Discovery Context: [path of context.md]
155
+ Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
156
+ slice, and whether it builds on earlier slices or reshapes them. Format per your agent
157
+ file (Contributed Rules — Engineer Lens)."
158
+ ```
159
+
160
+ ### 4b. Consolidate & Invoke the AC Skill
161
+
162
+ Merge the three contributions into one enrichment block (de-duplicated). Then:
163
+ ```
164
+ bokata-acceptance-criteria --concrete
165
+ Input: [the slice: outcome, bites (ID and title), option IDs; the trace files hold what each option means: <paths>]
166
+ Enrichment: [consolidated Rules]
167
+ Discovery Context: [path of context.md]
168
+ Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
169
+ Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
170
+ scenarios only for this slice, with concrete example data. Return the ## Acceptance Criteria
171
+ (Concrete) section."
172
+ ```
173
+
174
+ ### 4c. Domain Pass (Interactive)
175
+
176
+ Load the skill named in `methods.domain` (default `domain-modeling`; skip if `null` or not
177
+ installed) and run it over the concrete ACs against the glossary at `memory.glossary`:
178
+ - A term the glossary lists under _Avoid_ → replace it with the canonical term.
179
+ - Two words for one concept, or one word for two → ask the user, then use the answer everywhere.
180
+ - A new concept → settle its name with the user and add it to the glossary (terms only).
181
+ - An ADR only at `memory.adrs`, and only when hard to reverse, surprising without context, and the
182
+ result of a real trade-off.
183
+
184
+ Ask every naming question in one round, numbered, each with your recommended answer. The paths
185
+ and formats in `.bokata.json` win over the domain skill's own.
186
+
187
+ ---
188
+
189
+ ## Step 5: Review gate — the owner approves the ACs (Interactive)
190
+
191
+ The ACs are what `bokata-plan` will turn into a checklist, so this is the last point where a wrong
192
+ scenario is cheap.
193
+
194
+ 1. Write the draft to `appetites/<nn>-<name>/slice-<n>.md` from [slice-template.md](resources/slice-template.md)
195
+ with **`State: draft`**, `Unknowns:` (from the reviews and anything you could not settle), an empty
196
+ `Parallel-safe:` and the concrete ACs exactly as returned. A leftover draft of an earlier run is
197
+ replaced. The index does not list the Slice yet, so the story map ignores the draft.
198
+ 2. Show the user, in the conversation: the Slice line (name, outcome, bites), the **Rules**, the
199
+ scenario titles per User Task, what was pruned, the `Unknowns`, and the path of the draft.
200
+ Say that they can read the full Gherkin there.
201
+ 3. Ask for approval, with the options *approve*, *change* (what to change) and *cancel*
202
+ (delete the draft; nothing else was touched). Apply the changes to the draft and ask again. **Do
203
+ not go on until the owner approves.** Whatever the answer, the proposed rows are untouched until
204
+ then.
205
+
206
+ ## Step 6: Write the slice
207
+
208
+ Once approved:
209
+
210
+ 1. **`slice-<n>.md`**: set `State: specified`.
211
+ 2. **The index** `appetites/<nn>-<name>.md`:
212
+ - add `### Slice <n> — <short name>` to `## Slices`, in number order, with `Outcome:` (one
213
+ sentence, user language), `Bites:` and `Detail:` (link to `slice-<n>.md`);
214
+ - in `## Backlog`, append `→ Slice <n>` to the bites it took, after the priority tag (the skeleton
215
+ bites of Slice 1 included: `(skeleton) → Slice 1`);
216
+ - **redo `### Proposed slices`** with [proposed-slices.md](../bokata-slice/resources/proposed-slices.md):
217
+ drop the row of this Slice, take its bites out of any other row, and reorder what is left if the
218
+ pruning, what was built or what was learned changed it. Keep each row's reasons (what is real or faked, what it
219
+ leaves open) and the `Left out of the skeleton:` line.
220
+ 3. **`slicing/F<k>.md`**: append `→ Slice <n>` to every option the Slice took (replacing the slicer's
221
+ `skeleton` marker). A `skeleton` marker on an option no Slice took stays: it is only the slicer's
222
+ proposal.
223
+ 4. **`features.md`**: update the `**Appetite:**` line of each touched Feature
224
+ (`→ <nn>-<name> · <taken>/<total> options · next: <bite ID> <bite title>`, where the next bite is
225
+ the first of the first proposed row).
226
+ 5. **Refresh the story map** (if `story_map`) and validate, in the foreground:
227
+ ```bash
228
+ node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
229
+ node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check
230
+ ```
231
+ If either prints a `file:line: problem`, fix the markdown and run it again.
232
+
233
+ ## Step 7: Verify & Summarize
234
+
235
+ - [ ] The bites exist, are not taken by another Slice, and their dependencies are met or flagged
236
+ - [ ] Slice 1 covers every User Task of the appetite's Features as skeleton bites, or each one left out has its reason (an adopting appetite has no skeleton)
237
+ - [ ] The re-prune deleted only options no Slice took, each listed in `pruned.md` with its reason
238
+ - [ ] Concrete ACs exist only for this slice, in full Gherkin with concrete data, and the owner approved them
239
+ - [ ] `slice-<n>.md` says `State: specified`; the index lists the Slice, its bites say `→ Slice <n>`, and no
240
+ proposed row names them
241
+ - [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
242
+ - [ ] No duration written anywhere
243
+ - [ ] The `bokata-render` script ran and `--check` is clean
244
+
245
+ Print:
246
+ ```
247
+ ## ✓ Slice Specified
248
+
249
+ **Appetite:** <nn>-<name> · **Slice <n> — <name>** (State: specified)
250
+ **Outcome:** {{ONE_LINE}}
251
+ **Bites:** {{IDS_AND_TITLES}} · {{NUM_OPTIONS}} options · {{NUM_GHERKIN_BLOCKS}} scenarios
252
+ **Pruned now:** {{N}} · **Bites left:** {{N}} ({{NUM_MUST}} must-have) · **Unknowns:** {{N}}
253
+
254
+ **Next step:** `bokata-plan <docs>/{{INITIATIVE_SLUG}}/appetites/<nn>-<name>.md` — inside your harness's plan mode.
255
+ Then `code-executor`, and `bokata-spec` again for the next slice (next proposed: Slice <m> — <name>).
256
+ ```
@@ -0,0 +1,49 @@
1
+ <!-- ONE SLICE: appetites/<nn>-<name>/slice-<n>.md. Written by `bokata-spec` as a draft and approved by the
2
+ owner; after that the owner edits Unknowns and decisions, `bokata-plan` sets the State to planned,
3
+ and the executor sets it to done. The Slice's name, outcome and bites are in the appetite index: do not
4
+ copy them here. -->
5
+
6
+ # Slice <n> — <short name>
7
+
8
+ - State: specified | planned | done <!-- draft: bokata-spec is still writing it and the owner has not approved it (the index does not list the Slice yet) · specified: ACs approved · planned: bokata-plan wrote its steps · done: built (the executor sets it). "building" is not written: it is derived from the checked steps of plan.md -->
9
+ - Unknowns: <open questions, or "none">
10
+ - Parallel-safe: <yes | no — set by bokata-plan>
11
+
12
+ <concrete Acceptance Criteria returned by bokata-acceptance-criteria --concrete: the fixtures, the
13
+ Rules and, under `#### [<User Task>]`, the Gherkin scenarios — kept exactly as returned>
14
+
15
+ ```gherkin
16
+ Scenario: <concrete name>
17
+ Given <concrete data>
18
+ When <action>
19
+ Then <observable result>
20
+ ```
21
+
22
+ ## Decisions and notes of this Slice
23
+
24
+ <!-- What the owner and the trio decided about THIS slice, and what building it discovered.
25
+ Appetite-wide decisions go in context.md (## Notes). Optional until there is something to say. -->
26
+
27
+ - Owner decision: <…>
28
+
29
+ ## Learned
30
+
31
+ <!-- OPTIONAL. What building or using this Slice taught you about whether you are on the right path.
32
+ Written by the executor when it closes the Slice, or by you by hand, at any time. One or two lines
33
+ per entry, tagged with the kind of feedback, plus the bites or options it touches. `bokata-spec`
34
+ reads it when it picks the next Slice and lets you adjust what is affected; nothing changes silently.
35
+ Omit the section when there is nothing to say. Kinds: technical | user | business | uncertainty -->
36
+
37
+ - technical: <what the code or the platform showed, e.g. "the decoder drops frames above 30 s">
38
+ Affects: <bite or option IDs, e.g. F1-b, F1-2.2 — or none>
39
+ - uncertainty: <a question this Slice answered, or opened>
40
+ Affects: none
41
+
42
+ ## Pending
43
+
44
+ <!-- Added by the executor when the Slice is closed: only what is NOT in the code — a manual or owner check
45
+ still to do (a phone test, a real-device walkthrough), a scenario no automated test covers. The
46
+ plan.md section of a done Slice is deleted; this is all that survives of it. Omit the section when
47
+ nothing is pending. -->
48
+
49
+ - <manual check not done yet>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bokata-status
3
- description: Read-only summary of where a bokata initiative stands — phase, open slices, current increment and next step, open unknowns, each slice's backlog of bites, and features not yet sliced. Use it when the user asks "where am I", "what's next", "status of <initiative>", or resumes work in a new session or another tool.
3
+ description: Read-only summary of where a bokata initiative stands — phase, open appetites, each slice's state (proposed, specified, planned, building, done) and next step, open unknowns, each appetite's backlog of bites, and features not yet sliced. Use it when the user asks "where am I", "what's next", "status of <initiative>", or resumes work in a new session or another tool.
4
4
  ---
5
5
 
6
6
  # bokata-status
@@ -14,11 +14,12 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
14
14
 
15
15
  ## What to read
16
16
 
17
- `<docs>/<slug>/`: `pitch.md`, `features.md`, the slice **indexes** `slices/<nn>-<name>.md`, the
18
- `slices/<nn>-<name>/inc-<n>.md` of the increments that are not done (`State`, `Unknowns`, `Pending`) and
17
+ `<docs>/<slug>/`: `pitch.md`, `features.md`, the appetite **indexes** `appetites/<nn>-<name>.md`, the
18
+ `appetites/<nn>-<name>/slice-<n>.md` of the slices that are not done (`State`, `Unknowns`, `Pending`; a proposed
19
+ slice has none: read its row of `### Proposed slices`) and
19
20
  the `Pending` of the done ones, and `plan.md` (only what is in flight). Do not open `slicing/`,
20
21
  `context.md` or the Gherkin: status never needs them. If no slug is given, list the
21
- initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `slices/`, and ask
22
+ initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `appetites/`, and ask
22
23
  which one (or summarise them all in one line each).
23
24
 
24
25
  ## What to report
@@ -28,37 +29,42 @@ Answer in the user's language, in this shape and nothing more:
28
29
  ```
29
30
  <initiative> — <phase: shaping | shaped | mapped | slicing | planned | building | done>
30
31
  Pitch: <size>, <ambition> (if a pitch exists)
31
- Features: <n> · sliced: <list of features with a slice> · not yet: <list>
32
- Slice <nn>-<name> (open | done) — Features F1, F2
33
- ✔ <built increments> ▶ Inc <n> <name> — next step: "<first unchecked step>"
32
+ Features: <n> · sliced: <list of features with an appetite> · not yet: <list>
33
+ Appetite <nn>-<name> (open | done) — Features F1, F2
34
+ ✔ <built slices> ▶ Slice <n> <name> — <specified | planned | building>: next step "<first unchecked step>"
34
35
  ▲ <k> unknowns: <first one> | ▼ no unknowns
35
36
  ⏳ <k> pending (not in the code): <first one>
36
37
  ~ <open nice-to-have scenarios>
38
+ ◇ Proposed: Slice <n> <name> (<bite IDs>) · Slice <m> <name> (<bite IDs>) … (the next one first)
37
39
  Backlog: <k> bites (<m> must-have · <d> deferred) — <first two, by ID and title>
38
40
  Next: <the skill or hand-off to run next>
39
41
  ```
40
42
 
41
43
  Rules:
42
- - **State of an increment**: `State: done` in its `inc-<n>.md` → done (also every Inc of a slice with
43
- `Status: done`); otherwise its section in `plan.md` (the checkboxes under `## Slice <nn>` →
44
- `### Inc <n>`): some checked → building, none → planned; no section → its own `State` (`sliced` or
45
- `planned`). `plan.md` is temporary: a done Inc has no section there, and that is normal.
46
- - **Phase** comes from what exists: pitch only → shaped; features → mapped; a slice with an Inc in
47
- `sliced` (no plan yet) → slicing; Incs planned and none building → planned; some Inc building →
48
- building; every slice done and no Feature left without a slice → done. A `features.md` carrying `<!-- Mode: single -->` was written by
44
+ - **State of a slice**: with no `slice-<n>.md` it is **proposed**: only a row of `### Proposed
45
+ slices` (the table is in the index's `## Backlog`; the first row is the next one). Otherwise
46
+ `State: done` in its `slice-<n>.md` → done (also every Slice of an appetite with `Status: done`); else its
47
+ section in `plan.md` (the checkboxes under `## Appetite <nn>` → `### Slice <n>`): some checked →
48
+ building, none → planned; no section → its own `State` (`specified` or `planned`; an old `sliced`
49
+ means `specified`). `plan.md` is temporary: a done Slice has no section there, and that is normal.
50
+ - **Phase** comes from what exists: pitch only → shaped; features → mapped; an appetite with no Slice
51
+ specified yet (only proposed ones), or a Slice in `specified` (no plan yet) → slicing; Slices planned
52
+ and none building → planned; some Slice building → building; every appetite done and no Feature left
53
+ without an appetite → done. A `features.md` carrying `<!-- Mode: single -->` was written by
49
54
  `bokata-slice` in single mode, not by a feature map: it never makes the phase "mapped".
50
- - One block per slice, open slices first; done slices get one line (`Slice <nn> done —
51
- <k> bites left`). **Backlog** is the slice's `## Backlog` section: its bites that no `Inc` has taken
55
+ - One block per appetite, open appetites first; done appetites get one line (`Appetite <nn> done —
56
+ <k> bites left`, and `adopted by <mm>` once a later appetite took them). **Backlog** is the appetite's `## Backlog` section: its bites that no `Slice` has taken
52
57
  (`must-have` ones counted separately; `~nice-to-have` and deferred are the rest).
53
- Which Features have a slice comes from their `**Slice:**` lines in `features.md`. In single
58
+ Which Features have an appetite comes from their `**Appetite:**` lines in `features.md`. In single
54
59
  mode the `Features:` line is `Features: 1 (single mode)`.
55
- - **▲ / ▼** is the `Unknowns` line of the increment in flight (its `inc-<n>.md`): open questions mean it
60
+ - **▲ / ▼** is the `Unknowns` line of the slice in flight (its `slice-<n>.md`): open questions mean it
56
61
  still needs the user (▲), none means only execution is left (▼). **⏳** counts the `## Pending` items
57
- of any Inc, done ones included: manual or owner checks that are not in the code.
58
- - **Next** is the first that applies: unknowns open → resolve them with the user; slice without
59
- a plan → `bokata-plan`; unchecked steps → the executor hand-off line; increment built and backlog left →
60
- `bokata-slice <nn> --next` (or `--done` if the user is finished with it); Features without a
61
- slice → `bokata-slice` on them; nothing left → done.
62
+ of any Slice, done ones included: manual or owner checks that are not in the code.
63
+ - **Next** is the first that applies: unknowns open → resolve them with the user; a Slice `specified`
64
+ with no plan → `bokata-plan`; unchecked steps → the executor hand-off line; no Slice in flight and a
65
+ proposed slice left → `bokata-spec` (the first proposed row; the user may review the proposal in the
66
+ index first), or `--done` (`bokata-slice <nn> --done`) if the user is finished with the appetite;
67
+ Features without an appetite → `bokata-slice` on them; nothing left → done.
62
68
  - Quote steps and unknowns exactly as written. If a file is malformed, say which and where;
63
69
  never guess its content.
64
70
 
@@ -66,7 +72,7 @@ Rules:
66
72
 
67
73
  `story-map.html` is a render of the markdown and can lag (an undone render, a manual edit, a
68
74
  session that closed early). After reporting, if `story_map` is not `false` and `story-map.html`
69
- is missing or older than the newest of `features.md`, anything under `slices/` and `plan.md`, run the
75
+ is missing or older than the newest of `features.md`, anything under `appetites/` and `plan.md`, run the
70
76
  `bokata-render` script (milliseconds, no model) and add one line to the report saying the map was
71
77
  brought up to date:
72
78
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bokata-tdd
3
- description: Strict small-step TDD with an acceptance test per increment and evidence rules for every commit — the scenario as a failing acceptance test, then one failing test, the minimum code, a separate refactor, one commit per step. Use it to implement a planned step, a bokata slice, or a bug fix test-first; when the user says TDD, ATDD, red-green-refactor or baby steps; or when an executor agent loads it as its method.
3
+ description: Strict small-step TDD with an acceptance test per slice and evidence rules for every commit — the scenario as a failing acceptance test, then one failing test, the minimum code, a separate refactor, one commit per step. Use it to implement a planned step, a bokata appetite, or a bug fix test-first; when the user says TDD, ATDD, red-green-refactor or baby steps; or when an executor agent loads it as its method.
4
4
  ---
5
5
 
6
6
  # bokata-tdd
@@ -13,7 +13,7 @@ before the next one starts.
13
13
  1. Read `AGENTS.md`, the constitution, and the project's coding standards if they exist
14
14
  (paths in `.bokata.json` → `memory`; defaults `CONSTITUTION.md`, `CODING_STANDARDS.md`).
15
15
  They are binding and win over this skill.
16
- 2. Read the plan or slice you were given in full, especially owner decisions and the
16
+ 2. Read the plan or appetite you were given in full, especially owner decisions and the
17
17
  scenarios your steps prove. Owner decisions override older text.
18
18
  3. Read the code the first step touches. Never assume an API exists: search for it or read
19
19
  the installed package's types.
@@ -22,12 +22,12 @@ before the next one starts.
22
22
  5. Load the refactor method: the skill named in `.bokata.json` → `methods.refactor` (default
23
23
  `bokata-refactor`). Steps 0 and 3 of the loop follow it.
24
24
 
25
- ## Acceptance test first, once per increment
25
+ ## Acceptance test first, once per slice
26
26
 
27
- An increment is done when its scenario passes, not when its last step is committed. Before the
28
- first step of an increment (acceptance-test-driven development, the outer loop):
27
+ A slice is done when its scenario passes, not when its last step is committed. Before the
28
+ first step of a slice (acceptance-test-driven development, the outer loop):
29
29
 
30
- 1. Write the increment's scenario as **one** test at the highest seam the project's unit test
30
+ 1. Write the slice's scenario as **one** test at the highest seam the project's unit test
31
31
  runner reaches cheaply — usually the view model or the component, not an end-to-end spec
32
32
  unless the project asks for one on this flow. Same Given/When/Then, same domain words.
33
33
  2. Run it and check it fails for the right reason.
@@ -35,10 +35,10 @@ first step of an increment (acceptance-test-driven development, the outer loop):
35
35
  Jest `test.failing`, pytest `xfail(strict=True)` — and commit it on its own as `test(...)`,
36
36
  with the failure line in the body. If the runner has no such marker, skip it instead and
37
37
  say so.
38
- 4. Build the increment with the inner loop below, in the project's build order. The step that
38
+ 4. Build the slice with the inner loop below, in the project's build order. The step that
39
39
  makes the scenario pass removes the marker **in the same commit**.
40
40
 
41
- A plan written with `bokata-plan` lists this as the increment's first step and names the seam;
41
+ A plan written with `bokata-plan` lists this as the slice's first step and names the seam;
42
42
  use that seam. If the first step's test already *is* the scenario (a pure domain rule, say),
43
43
  the two loops are one: skip this.
44
44
 
@@ -84,11 +84,11 @@ Every claim needs proof — see [resources/evidence-rules.md](resources/evidence
84
84
  The short version: prove RED in the commit body, never commit red, never claim "already
85
85
  implemented" without the test and commit that prove it, and record the real gate output.
86
86
 
87
- ## Working from a bokata slice
87
+ ## Working from a bokata appetite
88
88
 
89
- If your input is `slices/<nn>-<name>.md` (its plan is in the initiative's `plan.md`): check off each
90
- plan step there **in the same commit** as the step, fill the increment's `Tests:` lines in `plan.md`
91
- (scenario → its acceptance test), and keep the increment's `Unknowns` current in the slice. Tests are named by behaviour in the domain's words — never by an
89
+ If your input is `appetites/<nn>-<name>.md` (its plan is in the initiative's `plan.md`): check off each
90
+ plan step there **in the same commit** as the step, fill the slice's `Tests:` lines in `plan.md`
91
+ (scenario → its acceptance test), and keep the slice's `Unknowns` current in the appetite. Tests are named by behaviour in the domain's words — never by an
92
92
  acceptance-criterion ID.
93
93
 
94
94
  ## Stop and ask