bokata 3.0.0-beta.4 → 3.0.0-beta.6

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.
@@ -1,44 +1,50 @@
1
1
  ---
2
2
  name: bokata-slice
3
- description: Create and grow 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, let the user compose the Walking Skeleton as the first increment, and write concrete Acceptance Criteria only for it. Later, add the next increment from the slice's own backlog of bites (--next) or mark the slice done (--done). Use it after bokata-feature-map or a pitch, when the user wants to slice, pick what to build next, or define a walking skeleton.
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.
4
4
  ---
5
5
 
6
- Create and grow a **vertical slice**: a group of 1–4 Features that together give the user a
7
- usable flow. The slice holds everything about it — how each Feature was sliced, the
8
- increments built so far, and the backlog left — and grows one increment at a time, Walking
9
- Skeleton first. It is a short **index** plus a folder of files, so that no operation has to read
10
- the whole history (see [The slice layout](#the-slice-layout)). You are the neutral coordinator; the slicing comes from `feature-slicer`
11
- subagents, and the PM, Designer and Engineer review from their lenses.
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
13
+ `feature-slicer` subagents, and the PM, Designer and Engineer review from their lenses.
12
14
 
13
15
  ```
14
16
  Slice 1–4 Features → a usable flow, end to end; open until the user marks it done
15
17
  ├ Slicing per Feature: User Task → Step → options (F1-2.3), pruned, with a target per Step
16
- ├ Increment the Walking Skeleton (Inc 1) or one or more bites the user can see or use
17
- │ └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor,
18
- │ deleted when the Inc is done
19
- └ Bites F1-a …: INVEST groups of options, per User Task, each titled for the user; an Inc
20
- takes some, the rest stay in the Backlog for as long as the slice lives
18
+ ├ 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
21
25
  ```
22
26
 
23
27
  ### The slice layout
24
28
 
25
29
  ```
26
- slices/<nn>-<name>.md INDEX: header, Increments (outcome + bites), Backlog (bite lines, proposed increments), links
27
- slices/<nn>-<name>/inc-<n>.md one Increment: State, Unknowns, Gherkin, rules, its decisions, Pending
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)
28
32
  slices/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
29
- slices/<nn>-<name>/notes.md slice-wide Notes and the Trio notes
33
+ slices/<nn>-<name>/context.md the Discovery Context, then the slice-wide Notes and the Trio notes
30
34
  slices/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
31
- slices/<nn>-<name>/discovery.md the Discovery Context
32
35
  ```
33
36
 
37
+ A new slice has **no `inc-<n>.md` and an empty `## Increments`**: its increments are all proposed.
38
+
34
39
  - **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
35
40
  nothing of an Inc but its name, outcome and bite IDs; the Inc's options are the options of its bites.
36
- - **State lives only in `inc-<n>.md`** (`State: sliced | planned | done`; `building` is derived from
37
- the checked steps in `plan.md`). A `done` slice shows every Inc as done.
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.
38
43
  - **A decision about one Inc goes in that Inc's file** (`## Decisions and notes of this Inc`);
39
- `notes.md` holds only what concerns the whole slice.
44
+ `context.md` (its `## Notes`) holds only what concerns the whole slice. Slices cut earlier have `notes.md` and
45
+ `discovery.md` side by side instead of `context.md`: read them the same way.
40
46
  - Templates: [slice-template.md](resources/slice-template.md) (the index) and
41
- [inc-template.md](resources/inc-template.md).
47
+ [inc-template.md](../bokata-inc/resources/inc-template.md) (written by `bokata-inc`).
42
48
 
43
49
  - **Option ≠ bite ≠ increment.** An option is one way to do one Step. A bite groups the
44
50
  options of one or several Steps that make sense together (small, INVEST). An increment is the
@@ -48,22 +54,22 @@ slices/<nn>-<name>/discovery.md the Discovery Context
48
54
  Nobody reads loose option IDs.
49
55
  - **A Feature belongs to exactly one slice.** If another slice needs it, that slice lists it as
50
56
  a dependency.
51
- - **Concrete ACs are written just in time**, only for the increment entering the slice.
52
- Functional ACs stay in `features.md`.
57
+ - **No specs here.** Concrete ACs are written just in time by `bokata-inc`, only for the increment
58
+ it specifies. Functional ACs stay in `features.md`.
53
59
  - **No time estimates.** Never write a duration.
54
60
 
55
61
  All outputs live under `<docs>/<initiative-slug>/`.
56
62
 
57
63
  ---
58
64
 
65
+
59
66
  ## Configuration
60
67
 
61
68
  Read `.bokata.json` at the project root if it exists. Defaults:
62
69
 
63
70
  ```json
64
71
  { "docs": "docs/initiatives",
65
- "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md", "adrs": "docs/adrs" },
66
- "methods": { "domain": "domain-modeling" },
72
+ "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md" },
67
73
  "templates": { "slice": null },
68
74
  "story_map": true }
69
75
  ```
@@ -76,11 +82,13 @@ Read `.bokata.json` at the project root if it exists. Defaults:
76
82
 
77
83
  | Call | Does |
78
84
  |------|------|
79
- | `bokata-slice [<features…>]` | **New slice**: Steps 1–6 below |
80
- | `bokata-slice <nn> --next` | **Next increment** of an open slice — see [Next increment](#next-increment---next) |
85
+ | `bokata-slice [<features…>]` | **New slice**: Steps 1–5 below. It ends with a proposal; it specifies nothing |
81
86
  | `bokata-slice <nn> --check` | Validate the slice and the initiative's markdown (runs the render script's `--check`) |
82
87
  | `bokata-slice <nn> --done` | Mark the slice **done** — see [Done](#done---done) |
83
88
 
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.
91
+
84
92
  ## Mode
85
93
 
86
94
  - **Trio mode (large initiative)** — `features.md` exists and was written by `bokata-feature-map`
@@ -107,11 +115,11 @@ order) and never change. Option IDs build on them: `F2-3.1` = Feature 2, Step 3,
107
115
  2. Show the Features: which already belong to a slice (from each Feature's `**Slice:**` line) and
108
116
  which are free. Ask the user to pick **1–4 free Features that make sense together** if not
109
117
  given. For the first slice, recommend the group that makes the journey usable end to end. A
110
- Feature that already has a slice cannot be picked again — offer `bokata-slice <nn> --next` on
111
- that slice instead.
118
+ Feature that already has a slice cannot be picked again — offer `bokata-inc` on that slice
119
+ instead.
112
120
  3. Number the new slice (`01`, `02`, … after the existing ones) and `mkdir -p
113
121
  <docs>/<initiative-slug>/slices/<nn>-wip/work`. This **work folder** holds the discovery and the
114
- slicers' output while the slice is being made; Step 5 turns it into the final layout and deletes it.
122
+ slicers' output while the slice is being made; Step 4 turns it into the final layout and deletes it.
115
123
  Every subagent below receives **paths into it, never pasted content**.
116
124
 
117
125
  ## Step 1b: Single mode only — derive the User Tasks
@@ -145,8 +153,8 @@ If the input is already rich, say so and ask only about what is missing:
145
153
 
146
154
  Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
147
155
  Layer Decisions / Increment Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
148
- Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/discovery.md`**. Every
149
- subagent below receives its path.
156
+ Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/context.md`** (it is the first
157
+ section of that file; the Notes and Trio notes are appended to it at the end). Every subagent below receives its path.
150
158
 
151
159
  ---
152
160
 
@@ -167,7 +175,7 @@ subagent_type: feature-slicer
167
175
  prompt: "Slice this Feature. Feature code: F<n>.
168
176
  - Feature: [name and ID] — its Purpose, User Tasks and System Tasks are in <docs>/<slug>/features.md
169
177
  (in single mode, the confirmed list of Step 1b was written there)
170
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/discovery.md
178
+ - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
171
179
  - Constitution / glossary paths: [from .bokata.json]
172
180
  - Functional ACs — open ONLY for the Phase 3 coverage check: this Feature's Requirements + Scenarios
173
181
  in features.md [in single mode: "none — skip the coverage check"]
@@ -220,7 +228,7 @@ user in the decision point of 3d. Then check there is no dependency cycle across
220
228
 
221
229
  The trio reviews **the complete traces and the bites**, not a summary: they can only miss
222
230
  options they can see, and only object to a pruning they can read. They are given the **paths** of the
223
- files (`work/F<n>.md`, `work/discovery.md`, `features.md`) and read them themselves: you never paste a
231
+ files (`work/F<n>.md`, `work/context.md`, `features.md`) and read them themselves: you never paste a
224
232
  trace into a prompt, so the traces are not written out again three times.
225
233
 
226
234
  **Task 1: bokata-product-manager**
@@ -229,7 +237,7 @@ subagent_type: bokata-product-manager
229
237
  prompt: "Review the slicing of [Features] from the value/viability lens. You have:
230
238
  - Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites), one file per Feature: [the paths of every work/F<n>.md]
231
239
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
232
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/discovery.md
240
+ - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
233
241
  Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
234
242
  value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
235
243
  Step — propose it with its Step ID. Which options unlock the most value next? Also review the
@@ -245,7 +253,7 @@ subagent_type: bokata-product-designer
245
253
  prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
246
254
  - Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
247
255
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
248
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/discovery.md
256
+ - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
249
257
  Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
250
258
  experience across the Features? Which UI states are essential to the skeleton and which can wait?
251
259
  Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
@@ -262,7 +270,7 @@ subagent_type: bokata-product-engineer
262
270
  prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
263
271
  - Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
264
272
  - Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
265
- - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/discovery.md
273
+ - Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
266
274
  Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
267
275
  reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
268
276
  (in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
@@ -302,156 +310,56 @@ Fast Feedback Principle.
302
310
  - **Non-interactive** (`--no-interactive`, or a headless run): apply the defaults and record each
303
311
  in `## Trio notes` with both positions, the applied default, and `⚠ flagged for human review`.
304
312
 
305
- ### 3e. Compose Inc 1 — the Walking Skeleton (Interactive)
306
-
307
- Propose **Inc 1** as the union of the reconciled skeleton proposals: the option IDs per User Task
308
- across the picked Features, so the flow works end to end. Then:
309
- - Show it as one line of what the user can do, its option IDs, and its `**[User Task]**` tags.
310
- - Every part must be functional on its own; if an option has no visible effect alone, it travels
311
- with the option that makes it visible.
312
- - The user can swap options, add or drop them, and name the slice. **The user decides.**
313
- - Options the user moves into Inc 1 leave their bite; if that empties a bite, remove it; if
314
- it breaks another bite's `depends on`, repoint it to `Inc 1`. The bites left stay the
315
- backlog.
316
- - **Group the skeleton into skeleton bites.** An Inc is always made of bites, so that the story map
317
- draws it as cards. Make one **skeleton bite per User Task** the skeleton covers: ID `F<n>-w<k>`
318
- (`F1-w1`, `F1-w2`, … — the `w` plus a digit never collides with a slicer's letter IDs), a title with
319
- a subject that says what the user does in that User Task *with the shortcut* ("Ana picks a hardcoded
320
- clip"), tagged `(skeleton)`, its options, `→ Inc 1`. Show the titles to the user with the rest of Inc 1.
321
-
322
- ### Proposed increments
323
-
324
- After Inc 1 is fixed (3e) — and again after every `--next` — write the roadmap of the bites that are
325
- left as a table in `## Backlog`, above the bites. It is a **proposal**, labelled as such; the owner
326
- edits it. You compose it from what the trio already said (the PM's value order and "bites to build
327
- next", the Engineer's dependencies); you add no new opinion on value.
328
-
329
- - One row per Inc: `Inc <n> — <name>`, its bites (1–3, across User Tasks if they belong together),
330
- what the user gains (user language, one line), and **why this order** (the value it unlocks or the
331
- dependency it satisfies).
332
- - Order: `depends on` first, then value, must-have before `~nice-to-have`. A row never takes a bite
333
- before the bite it depends on.
334
- - Every must-have bite appears in exactly one row. The `~nice-to-have` and `deferred` bites go in a
335
- final `Later` row, with no order promised.
336
- - Each Inc is a candidate for **INVEST**: small, independent of the rows after it, valuable, testable.
337
- - If the owner states an order, use it and keep the reason.
338
-
339
- ---
340
-
341
- ## Step 4: Concrete Acceptance Criteria — chosen increment only
342
-
343
- Used by a new slice (for Inc 1) and by `--next` (for the new increment). Never write concrete ACs
344
- for options still in the backlog.
345
-
346
- **Subagents get paths, not pasted content.** Where the prompts below say *the trace files* and *the
347
- Discovery Context*, give the paths: for a new slice `slices/<nn>-wip/work/F<n>.md` and
348
- `slices/<nn>-wip/work/discovery.md`; for `--next` the final `slices/<nn>-<name>/slicing/F<n>.md` and
349
- `slices/<nn>-<name>/discovery.md`. The increments already in the slice are the `## Increments` of the
350
- index.
351
-
352
- ### 4a. Trio contributes Rules (Subagents, Parallel)
353
-
354
- One message, three foreground calls, wait for all three:
355
-
356
- **Task 1: PM Contribution**
357
- ```
358
- subagent_type: bokata-product-manager
359
- prompt: "Contribute business-rule Rules for increment [Inc n] of slice [nn], from the viability/value lens. You have:
360
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
361
- - Increments already in the slice (for context): the `## Increments` of <index path>
362
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
363
- - Discovery Context: [path of discovery.md]
364
- Do NOT ask the user questions. Give launch-blocking rules for this increment and the value it
365
- unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
366
- sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
367
- ```
368
-
369
- **Task 2: Designer Contribution**
370
- ```
371
- subagent_type: bokata-product-designer
372
- prompt: "Contribute UX/UI Rules for increment [Inc n] of slice [nn], from the usability/craft lens. You have:
373
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
374
- - Increments already in the slice: the `## Increments` of <index path>
375
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
376
- - Discovery Context: [path of discovery.md]
377
- Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
378
- increment needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
379
- ```
380
-
381
- **Task 3: Engineer Contribution**
382
- ```
383
- subagent_type: bokata-product-engineer
384
- prompt: "Contribute technical Rules for increment [Inc n] of slice [nn], from the feasibility/sustainability lens. You have:
385
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
386
- - Increments already in the slice: the `## Increments` of <index path>
387
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
388
- - Discovery Context: [path of discovery.md]
389
- Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
390
- increment, and whether it builds on earlier increments or reshapes them. Format per your agent
391
- file (Contributed Rules — Engineer Lens)."
392
- ```
393
-
394
- ### 4b. Consolidate & Invoke the AC Skill
395
-
396
- Merge the three contributions into one enrichment block (de-duplicated). Then:
397
- ```
398
- bokata-acceptance-criteria --concrete
399
- Input: [the increment: outcome, bites (ID and title), option IDs; the trace files hold what each option means: <paths>]
400
- Enrichment: [consolidated Rules]
401
- Discovery Context: [path of discovery.md]
402
- Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
403
- Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
404
- scenarios only for this increment, with concrete example data. Return the ## Acceptance Criteria
405
- (Concrete) section."
406
- ```
407
-
408
- ### 4c. Domain Pass (Interactive)
409
-
410
- Load the skill named in `methods.domain` (default `domain-modeling`; skip if `null` or not
411
- installed) and run it over the concrete ACs against the glossary at `memory.glossary`:
412
- - A term the glossary lists under _Avoid_ → replace it with the canonical term.
413
- - Two words for one concept, or one word for two → ask the user, then use the answer everywhere.
414
- - A new concept → settle its name with the user and add it to the glossary (terms only).
415
- - An ADR only at `memory.adrs`, and only when hard to reverse, surprising without context, and the
416
- result of a real trade-off.
417
-
418
- Ask every naming question in one round, numbered, each with your recommended answer. The paths
419
- and formats in `.bokata.json` win over the domain skill's own.
313
+ ### 3e. Propose Inc 1 — the Walking Skeleton, and name the slice
314
+
315
+ 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`.
317
+
318
+ 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
323
+ cards, and so that the owner can edit the skeleton as any other row. Make one **skeleton bite per
324
+ User Task** the skeleton covers: ID `F<n>-w<k>` (`F1-w1`, `F1-w2`, … — the `w` plus a digit never
325
+ collides with a slicer's letter IDs), a title with a subject that says what the user does in that
326
+ User Task *with the shortcut* ("Ana picks a hardcoded clip"), tagged `(skeleton)`, its options, no
327
+ `→ Inc` yet.
328
+ 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).
331
+ 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.
420
334
 
421
335
  ---
422
336
 
423
- ## Step 5: Write the Slice & the Summary
337
+ ## Step 4: Write the Slice & the Summary
424
338
 
425
- 1. Name the slice (the user chose the name in 3e), rename `slices/<nn>-wip` to `slices/<nn>-<name>`,
426
- `mkdir -p slices/<nn>-<name>/slicing`, and **write** the files of [The slice layout](#the-slice-layout)
427
- from the (reconciled) files in `work/`. **Copy, do not retype**: cut each section out of
428
- `work/F<k>.md` with the shell (`sed -n`, `awk`, `node -e`) or your editor instead of writing it out
429
- again — a trace is tens of KB.
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
341
+ `work/`. **Copy, do not retype**: cut each section out of `work/F<k>.md` with the shell (`sed -n`,
342
+ `awk`, `node -e`) or your editor instead of writing it out again — a trace is tens of KB.
430
343
  - `slices/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
431
344
  `work/F<k>.md` (the Walking Skeleton proposal, Pruned, Bites and Self-check go elsewhere; the
432
- Assumptions to `notes.md`): its reconciled trace (Steps, options,
345
+ Assumptions to the `## Notes` of `context.md`): its reconciled trace (Steps, options,
433
346
  strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it plus the
434
- trio's added options; append `→ Inc 1` to every option Inc 1 took (replacing the slicer's
435
- `skeleton` marker);
436
- - `slices/<nn>-<name>/inc-1.md` from [inc-template.md](resources/inc-template.md): `State: sliced`,
437
- `Unknowns:`, an empty `Parallel-safe:` and the concrete ACs (fixtures, Rules, Gherkin) exactly as
438
- returned. The Inc's name, outcome and bites are **not** repeated here — they are in the index;
347
+ 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;
439
349
  - `slices/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
440
- `notes.md` (`# Notes` and `## Trio notes`) and `discovery.md` (`work/discovery.md`, moved);
441
- then **delete `work/`**;
350
+ `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;
442
352
  - the index `slices/<nn>-<name>.md` from [slice-template.md](resources/slice-template.md):
443
- header with `Status: open`; `## Increments` with `### Inc 1 — Walking skeleton`, its
444
- `Outcome:` (one sentence in user language), `Bites:` (the skeleton bites of 3e) and `Detail:` link;
445
- `## Backlog` with **every bite**, grouped by Feature and User Task and ordered by value (must-have
446
- first, `~nice-to-have` after), each on one line **copied as the slicer returned it** (the
447
- canonical bite line of `output-template-bites.md`; never reformat it), the skeleton bites as
448
- `(skeleton) → Inc 1` lines and `→ Inc n` after the priority tag of every bite an Inc took;
449
- `deferred` bites (`F1-d1`, …) in their own group; never a flat list of option IDs. Put
450
- **`### Proposed increments`** above the bites: see [Proposed increments](#proposed-increments);
451
- and `## Files` linking everything above.
353
+ header with `Status: open`; an **empty** `## Increments` (its comment only); `## Backlog` with
354
+ **every bite**, grouped by Feature and User Task and ordered by value (must-have first,
355
+ `~nice-to-have` after), each on one line **copied as the slicer returned it** (the canonical
356
+ 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
359
+ everything above.
452
360
  2. In `features.md`, set each picked Feature's `**Slice:**` line:
453
- `**Slice:** → <nn>-<name> · <taken>/<total> options · next: <bite ID> <bite title>`.
454
- Nothing else about the slicing goes into `features.md`.
361
+ `**Slice:** → <nn>-<name> · 0/<total> options · next: <bite ID> <bite title>` (the first bite of
362
+ the first proposed row). Nothing else about the slicing goes into `features.md`.
455
363
  3. **Refresh the story map** (if `story_map`): run the `bokata-render` script, in the foreground:
456
364
  ```bash
457
365
  node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
@@ -460,92 +368,58 @@ and formats in `.bokata.json` win over the domain skill's own.
460
368
 
461
369
  ---
462
370
 
463
- ## Step 6: Verify & Summarize
371
+ ## Step 5: Verify & Summarize
464
372
 
465
373
  - [ ] Every picked Feature was sliced by a `feature-slicer` subagent and passed the gate
466
374
  - [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
467
375
  and each in exactly one bite
468
- - [ ] The slice has its index (Inc 1 with outcome and skeleton bites, Backlog of bites) and its
469
- folder: `inc-1.md` with concrete Gherkin, `slicing/F<k>.md` per Feature, `notes.md`, `pruned.md`,
470
- `discovery.md`
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`
471
378
  - [ ] `features.md` gained only a `**Slice:**` line per picked Feature
472
379
  - [ ] The `bokata-render` script ran without errors (if `story_map`)
473
380
 
474
381
  Print:
475
382
  ```
476
- ## ✓ Slice Ready
383
+ ## ✓ Slice Ready — a proposal
477
384
 
478
385
  **Slice:** <nn>-<name> — Features: {{FEATURES}} · open
479
386
  **Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md (+ the folder <nn>-<name>/)
480
387
 
481
- **Inc 1 (Walking Skeleton):** {{ONE_LINE}} · {{NUM_OPTIONS}} options · {{NUM_GHERKIN_BLOCKS}} scenarios
482
- **Slicing:** {{NUM_STEPS}} Steps · {{NUM_OPTIONS_TOTAL}} options ({{NUM_PRUNED}} pruned) · {{NUM_BITES}} bites in the backlog ({{NUM_MUST}} must-have · {{NUM_NICE}} nice-to-have · {{NUM_DEFERRED}} deferred)
388
+ **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)
483
389
  **Trio notes:** {{N}} (see the slice)
484
390
 
485
- **Proposed next increments:** {{INC_2_ONE_LINE}} · {{INC_3_ONE_LINE}} … (a proposal — edit it in the slice)
391
+ **Proposed increments:** Inc 1 {{INC_1_ONE_LINE}} · Inc 2 {{INC_2_ONE_LINE}} · Inc 3 {{INC_3_ONE_LINE}} …
392
+ 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.
486
394
 
487
- **Next step:** `bokata-plan <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md` — inside your harness's plan mode.
488
- After Inc 1 is built: `bokata-slice <nn> --next`.
395
+ **Next step:** `bokata-inc` — specifies the first proposed increment (Inc 1, the Walking Skeleton):
396
+ its rules, its concrete ACs and your approval. Then `bokata-plan`.
489
397
  ```
490
398
 
491
399
  ---
492
400
 
493
- ## Next increment (`--next`)
494
-
495
- For an **open** slice whose current increment is built (or when the user wants to queue the next
496
- one):
497
-
498
- 1. Read the **index** (`Increments`, `Backlog` — the bites), `notes.md`, `pruned.md`, and the
499
- `slicing/F<k>.md` of the Features whose bites you may take; read an `inc-<n>.md` only for an Inc
500
- you must reason about (its `Pending` and decisions). Also the functional ACs of the Features from
501
- `features.md`. Do not read the Gherkin of the Incs already built.
502
- 2. Propose the next increment as **one or several bites** (of one or several User Tasks) that
503
- unlock the most value on top of what is built; start from the first row of
504
- `### Proposed increments` and adjust it to what is built and pruned: respect `depends on`, take must-have before
505
- nice-to-have, keep it small. Show 2–3 candidates, each as one line of what the user can do +
506
- bite IDs and titles, with your recommendation first. The user picks, edits
507
- or writes their own. One increment per call. Bites are already reviewed by the trio; you
508
- compose between them, you do not untie 180 loose options again.
509
- 3. If the user asks for something no bite has, add it as a new option to its Step (next free
510
- ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing
511
- stays the source of truth.
512
- 4. **Re-prune.** The increment just chosen raises the floor for its Steps: any live option, in any
513
- bite, that now sits below what the increment builds is `obsolete`. Delete it from its
514
- `slicing/F<k>.md` and list it in `pruned.md` with its reason. **Never prune an option an Inc
515
- has taken** (`→ Inc n`): the story map resolves each Inc's options through the Slicing, so
516
- those stay. Bites left with no options go away; a bite whose value shrank is reworded or merged. A removal that would take value away from a bite
517
- goes to the user as one decision point, with your recommended default.
518
- 5. Run **Step 4** (trio Rules → concrete ACs → domain pass) for this increment only.
519
- 6. **Redo `### Proposed increments`** for the bites that are left (drop the row of the Inc just
520
- added, reorder the rest if the pruning or what was built changed it). Add to the index
521
- `### Inc <n> — <short name>` with its `Outcome:` (one sentence, user language), `Bites:` and `Detail:`
522
- link; append `→ Inc <n>` to the bites it took in `## Backlog` (after the priority tag) and to the
523
- options in their `slicing/F<k>.md`; write `slices/<nn>-<name>/inc-<n>.md` from
524
- [inc-template.md](resources/inc-template.md) with `State: sliced` and the concrete ACs.
525
- 7. Update each touched Feature's `**Slice:**` line in `features.md` (`next: <bite ID> <title>`).
526
- 8. Run the `bokata-render` script (Step 5.3).
527
- 9. Print the Inc line, scenarios count, bites left in the backlog, what was pruned, and the next
528
- step (`bokata-plan`).
529
-
530
401
  ## Done (`--done`)
531
402
 
532
403
  Only when the user asks — nothing marks a slice done by itself. First **sweep**: read every
533
404
  `inc-<n>.md` and `plan.md`'s section for this slice and **list what is still open** — an Inc whose
534
- `State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item — and ask the user whether to
535
- go on. Then set `Status: done` in the index header, add a closing line to `notes.md` (what is built,
536
- which bites stay in the backlog), delete this slice's section from `plan.md` if it still has one,
537
- update the `**Slice:**` lines in `features.md` with `· done`, and run the `bokata-render` script. The
538
- backlog stays in the index; to build more of these Features later, the user reopens this slice
539
- (`Status: open`) — never a new slice for the same Feature. A done *slice* is not a done *increment*: the
540
- `State: done` of an Inc is set by the executor, and a done slice renders all its Incs as done.
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,
407
+ 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
409
+ `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.
541
414
 
542
415
  ## Check (`--check`)
543
416
 
544
417
  Run `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check`: it parses
545
418
  `features.md`, the slices and `plan.md` with the same parser the story map uses and prints every
546
419
  `file:line: problem` (an Inc naming a bite that has no line, a bite whose option is not in the
547
- Slicing, an Inc with no `inc-<n>.md`, an unknown `State`, …) without writing anything. Report them; fix
548
- the markdown, never the parser.
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.
549
423
 
550
424
  ---
551
425
 
@@ -557,11 +431,11 @@ the markdown, never the parser.
557
431
  full Coverage, pruned with a reason, a target per Step, every live option in exactly one bite)
558
432
  - [ ] Cross-Feature `depends on: F<n> (…)` references were resolved to bite IDs, with no cycle
559
433
  - [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
560
- - [ ] The Backlog lists bites with user-language titles, never loose option IDs; every Inc (Inc 1 too) is made of bites
561
- - [ ] Nothing is said twice: an Inc's outcome and bites only in the index, its State only in its `inc-<n>.md`, its decisions in that file
562
- - [ ] `### Proposed increments` exists: every must-have bite in exactly one row, dependencies respected, a reason per row
563
- - [ ] Inc 1 covers every User Task of the picked Features, as skeleton bites
564
- - [ ] Concrete ACs exist only for the increment being added (in its `inc-<n>.md`), in full Gherkin with concrete data
434
+ - [ ] 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
436
+ 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
565
439
  - [ ] No duration written anywhere
566
440
  - [ ] `features.md` holds only the summary `**Slice:**` line per Feature
567
441
  - [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
@@ -0,0 +1,42 @@
1
+ # Proposed increments
2
+
3
+ The roadmap of a slice: the bites that no increment has taken yet, grouped into the increments the
4
+ coordinator suggests building. It lives in the slice index, under `## Backlog`, as
5
+ `### Proposed increments`. **`bokata-slice` writes it** (Inc 1, the Walking Skeleton, is its first row)
6
+ and **`bokata-inc` redoes it** every time an increment 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-inc`.
11
+
12
+ ```markdown
13
+ | Inc | Bites | What the user gains | Why this order |
14
+ |---|---|---|---|
15
+ | Inc 1 — Walking skeleton | F1-w1 · F2-w1 | <one line, in user language> | the thinnest path that runs end to end |
16
+ | Inc 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Inc 1 only"> |
17
+ | Inc 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 Inc**: `Inc <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 increment**: it
31
+ is what `bokata-inc` 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-inc F1-d F1-e`.
35
+ - **Each row is a candidate for INVEST**: small, independent of the rows after it, valuable, testable.
36
+ - **The numbers are labels.** The number of a specified Inc never changes. A row keeps its number
37
+ while it is in the table; a row written fresh takes the highest number in use (specified or
38
+ proposed) plus one. Gaps are fine. The same number never appears twice in the table nor in
39
+ `## Increments`.
40
+ - **Drop the rows of specified Incs**: they live in `## Increments`. A bite that an Inc took is in
41
+ no row.
42
+ - If the owner states an order, use it and keep the reason.