bokata 3.0.0-beta.5 → 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.
- package/.agents/skills/bokata-acceptance-criteria/SKILL.md +2 -2
- package/.agents/skills/bokata-feature-map/resources/features-template.md +2 -2
- package/.agents/skills/bokata-feature-slicer/SKILL.md +2 -2
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +1 -1
- package/.agents/skills/bokata-inc/SKILL.md +244 -0
- package/.agents/skills/{bokata-slice → bokata-inc}/resources/inc-template.md +5 -5
- package/.agents/skills/bokata-plan/SKILL.md +6 -4
- package/.agents/skills/bokata-render/SKILL.md +8 -8
- package/.agents/skills/bokata-render/assets/story-map.html +6 -6
- package/.agents/skills/bokata-render/scripts/render.mjs +35 -5
- package/.agents/skills/bokata-slice/SKILL.md +99 -224
- package/.agents/skills/bokata-slice/resources/proposed-increments.md +42 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +24 -23
- package/.agents/skills/bokata-status/SKILL.md +20 -14
- package/README.md +175 -33
- package/agents/bokata-product-designer.md +6 -4
- package/agents/bokata-product-engineer.md +6 -4
- package/agents/bokata-product-manager.md +6 -4
- package/agents/code-executor.md +1 -1
- package/package.json +1 -1
- package/src/install.js +3 -1
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bokata-slice
|
|
3
|
-
description: Create
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
├
|
|
17
|
-
│
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
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
35
|
```
|
|
32
36
|
|
|
37
|
+
A new slice has **no `inc-<n>.md` and an empty `## Increments`**: its increments are all proposed.
|
|
38
|
+
|
|
33
39
|
- **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
|
|
34
40
|
nothing of an Inc but its name, outcome and bite IDs; the Inc's options are the options of its bites.
|
|
35
|
-
- **State lives only in `inc-<n>.md`** (`State:
|
|
36
|
-
the checked steps in `plan.md
|
|
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.
|
|
37
43
|
- **A decision about one Inc goes in that Inc's file** (`## Decisions and notes of this Inc`);
|
|
38
44
|
`context.md` (its `## Notes`) holds only what concerns the whole slice. Slices cut earlier have `notes.md` and
|
|
39
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>/pruned.md the Pruned list, one line per option with
|
|
|
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
|
|
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"
|
|
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–
|
|
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-
|
|
111
|
-
|
|
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
|
|
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
|
|
@@ -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.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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/context.md`; for `--next` the final `slices/<nn>-<name>/slicing/F<n>.md` and
|
|
349
|
-
`slices/<nn>-<name>/context.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 context.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 context.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 context.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 context.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
|
|
337
|
+
## Step 4: Write the Slice & the Summary
|
|
424
338
|
|
|
425
|
-
1.
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
`
|
|
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
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
|
|
435
|
-
|
|
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
350
|
`context.md` (`work/context.md`, moved, with `## Notes` and `## Trio notes` appended after the Discovery Context);
|
|
441
|
-
then **delete `work
|
|
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`
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
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> ·
|
|
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,91 +368,58 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
460
368
|
|
|
461
369
|
---
|
|
462
370
|
|
|
463
|
-
## Step
|
|
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 (
|
|
469
|
-
folder: `
|
|
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`
|
|
470
378
|
- [ ] `features.md` gained only a `**Slice:**` line per picked Feature
|
|
471
379
|
- [ ] The `bokata-render` script ran without errors (if `story_map`)
|
|
472
380
|
|
|
473
381
|
Print:
|
|
474
382
|
```
|
|
475
|
-
## ✓ Slice Ready
|
|
383
|
+
## ✓ Slice Ready — a proposal
|
|
476
384
|
|
|
477
385
|
**Slice:** <nn>-<name> — Features: {{FEATURES}} · open
|
|
478
386
|
**Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md (+ the folder <nn>-<name>/)
|
|
479
387
|
|
|
480
|
-
**
|
|
481
|
-
**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)
|
|
482
389
|
**Trio notes:** {{N}} (see the slice)
|
|
483
390
|
|
|
484
|
-
**Proposed
|
|
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.
|
|
485
394
|
|
|
486
|
-
**Next step:** `bokata-
|
|
487
|
-
|
|
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`.
|
|
488
397
|
```
|
|
489
398
|
|
|
490
399
|
---
|
|
491
400
|
|
|
492
|
-
## Next increment (`--next`)
|
|
493
|
-
|
|
494
|
-
For an **open** slice whose current increment is built (or when the user wants to queue the next
|
|
495
|
-
one):
|
|
496
|
-
|
|
497
|
-
1. Read the **index** (`Increments`, `Backlog` — the bites), `context.md`, `pruned.md`, and the
|
|
498
|
-
`slicing/F<k>.md` of the Features whose bites you may take; read an `inc-<n>.md` only for an Inc
|
|
499
|
-
you must reason about (its `Pending` and decisions). Also the functional ACs of the Features from
|
|
500
|
-
`features.md`. Do not read the Gherkin of the Incs already built.
|
|
501
|
-
2. Propose the next increment as **one or several bites** (of one or several User Tasks) that
|
|
502
|
-
unlock the most value on top of what is built; start from the first row of
|
|
503
|
-
`### Proposed increments` and adjust it to what is built and pruned: respect `depends on`, take must-have before
|
|
504
|
-
nice-to-have, keep it small. Show 2–3 candidates, each as one line of what the user can do +
|
|
505
|
-
bite IDs and titles, with your recommendation first. The user picks, edits
|
|
506
|
-
or writes their own. One increment per call. Bites are already reviewed by the trio; you
|
|
507
|
-
compose between them, you do not untie 180 loose options again.
|
|
508
|
-
3. If the user asks for something no bite has, add it as a new option to its Step (next free
|
|
509
|
-
ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing
|
|
510
|
-
stays the source of truth.
|
|
511
|
-
4. **Re-prune.** The increment just chosen raises the floor for its Steps: any live option, in any
|
|
512
|
-
bite, that now sits below what the increment builds is `obsolete`. Delete it from its
|
|
513
|
-
`slicing/F<k>.md` and list it in `pruned.md` with its reason. **Never prune an option an Inc
|
|
514
|
-
has taken** (`→ Inc n`): the story map resolves each Inc's options through the Slicing, so
|
|
515
|
-
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
|
|
516
|
-
goes to the user as one decision point, with your recommended default.
|
|
517
|
-
5. Run **Step 4** (trio Rules → concrete ACs → domain pass) for this increment only.
|
|
518
|
-
6. **Redo `### Proposed increments`** for the bites that are left (drop the row of the Inc just
|
|
519
|
-
added, reorder the rest if the pruning or what was built changed it). Add to the index
|
|
520
|
-
`### Inc <n> — <short name>` with its `Outcome:` (one sentence, user language), `Bites:` and `Detail:`
|
|
521
|
-
link; append `→ Inc <n>` to the bites it took in `## Backlog` (after the priority tag) and to the
|
|
522
|
-
options in their `slicing/F<k>.md`; write `slices/<nn>-<name>/inc-<n>.md` from
|
|
523
|
-
[inc-template.md](resources/inc-template.md) with `State: sliced` and the concrete ACs.
|
|
524
|
-
7. Update each touched Feature's `**Slice:**` line in `features.md` (`next: <bite ID> <title>`).
|
|
525
|
-
8. Run the `bokata-render` script (Step 5.3).
|
|
526
|
-
9. Print the Inc line, scenarios count, bites left in the backlog, what was pruned, and the next
|
|
527
|
-
step (`bokata-plan`).
|
|
528
|
-
|
|
529
401
|
## Done (`--done`)
|
|
530
402
|
|
|
531
403
|
Only when the user asks — nothing marks a slice done by itself. First **sweep**: read every
|
|
532
404
|
`inc-<n>.md` and `plan.md`'s section for this slice and **list what is still open** — an Inc whose
|
|
533
|
-
`State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item
|
|
534
|
-
go on. Then set `Status: done` in the index header,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
`
|
|
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.
|
|
540
414
|
|
|
541
415
|
## Check (`--check`)
|
|
542
416
|
|
|
543
417
|
Run `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check`: it parses
|
|
544
418
|
`features.md`, the slices and `plan.md` with the same parser the story map uses and prints every
|
|
545
419
|
`file:line: problem` (an Inc naming a bite that has no line, a bite whose option is not in the
|
|
546
|
-
Slicing, an Inc with no `inc-<n>.md`, an unknown `State`,
|
|
547
|
-
|
|
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.
|
|
548
423
|
|
|
549
424
|
---
|
|
550
425
|
|
|
@@ -556,11 +431,11 @@ the markdown, never the parser.
|
|
|
556
431
|
full Coverage, pruned with a reason, a target per Step, every live option in exactly one bite)
|
|
557
432
|
- [ ] Cross-Feature `depends on: F<n> (…)` references were resolved to bite IDs, with no cycle
|
|
558
433
|
- [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
|
|
559
|
-
- [ ] The Backlog lists bites with user-language titles, never loose option IDs
|
|
560
|
-
- [ ]
|
|
561
|
-
|
|
562
|
-
- [ ]
|
|
563
|
-
- [ ]
|
|
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
|
|
564
439
|
- [ ] No duration written anywhere
|
|
565
440
|
- [ ] `features.md` holds only the summary `**Slice:**` line per Feature
|
|
566
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.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
<!-- THE SLICE INDEX: slices/<nn>-<name>.md. Short on purpose: it is what
|
|
1
|
+
<!-- THE SLICE INDEX: slices/<nn>-<name>.md. Short on purpose: it is what `bokata-inc`, the story map and
|
|
2
2
|
the owner read first. Everything bulky lives in the folder next to it, `slices/<nn>-<name>/`:
|
|
3
3
|
|
|
4
|
-
inc-<n>.md one increment: State, Unknowns, Gherkin, rules, decisions, Pending (inc
|
|
4
|
+
inc-<n>.md one specified increment: State, Unknowns, Gherkin, rules, decisions, Pending (bokata-inc writes it)
|
|
5
5
|
slicing/F<k>.md one Feature's trace: User Task → Step → options (written once)
|
|
6
6
|
context.md the Discovery Context of Step 2, then the slice-wide notes and the Trio notes
|
|
7
7
|
pruned.md options pruned after the slicing, one line each with its reason
|
|
8
8
|
|
|
9
9
|
Nothing is said twice. The index holds what never changes once written (outcome, bites); the
|
|
10
10
|
state of an increment lives only in its `inc-<n>.md`, so Incs built in parallel worktrees never
|
|
11
|
-
touch the same file.
|
|
11
|
+
touch the same file. A new slice has no `inc-<n>.md` and an EMPTY `## Increments`: everything is
|
|
12
|
+
still a proposal, and the owner edits the Backlog and the proposed increments by hand. -->
|
|
12
13
|
|
|
13
14
|
# Slice <nn> — <name>
|
|
14
15
|
|
|
@@ -19,47 +20,47 @@
|
|
|
19
20
|
|
|
20
21
|
## Increments
|
|
21
22
|
|
|
22
|
-
<!--
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
<!-- EMPTY when the slice is created. `bokata-inc` adds one entry per increment it specifies, in number
|
|
24
|
+
order, once the owner has approved its ACs. Inc 1 is the Walking Skeleton; every other Inc is one
|
|
25
|
+
or several bites. Each is functional on its own. Its State is in inc-<n>.md. A bite is listed
|
|
26
|
+
once, in the Backlog below; an Inc only names the bites it takes. An entry looks like this
|
|
27
|
+
(flush left, as a real heading — here it is indented so the story map does not read it):
|
|
25
28
|
|
|
26
|
-
### Inc 1 — Walking skeleton
|
|
27
|
-
- Outcome: <one sentence, in user language: what the user can do when this is done>
|
|
28
|
-
- Bites: F1-w1, F2-w1
|
|
29
|
-
- Detail: [inc-1.md](<nn>-<name>/inc-1.md)
|
|
30
|
-
|
|
31
|
-
### Inc 2 — <short name>
|
|
32
|
-
- Outcome: <…>
|
|
33
|
-
- Bites: F1-a, F2-c
|
|
34
|
-
- Detail: [inc-2.md](<nn>-<name>/inc-2.md)
|
|
29
|
+
### Inc 1 — Walking skeleton
|
|
30
|
+
- Outcome: <one sentence, in user language: what the user can do when this is done>
|
|
31
|
+
- Bites: F1-w1, F2-w1 <the skeleton bites: one per User Task the skeleton covers>
|
|
32
|
+
- Detail: [inc-1.md](<nn>-<name>/inc-1.md)
|
|
33
|
+
-->
|
|
35
34
|
|
|
36
35
|
## Backlog
|
|
37
36
|
|
|
38
37
|
<!-- Every bite of the slice, one line each (INVEST group of options), per Feature and User Task, ordered
|
|
39
38
|
by value. Titles say who does what, so they read without the Step. A bite an Inc took ends its
|
|
40
|
-
priority tag with "→ Inc n". The story map draws the taken ones inside their Inc and the rest
|
|
39
|
+
priority tag with "→ Inc n" (`bokata-inc` adds it, the skeleton bites included: `(skeleton) → Inc 1`). The story map draws the taken ones inside their Inc and the rest
|
|
41
40
|
here, in the Backlog band: keep one bite per line, in this shape. Untaken bites stay here for as
|
|
42
41
|
long as the slice lives, even when every Inc is done. -->
|
|
43
42
|
|
|
44
43
|
### Proposed increments
|
|
45
44
|
|
|
46
|
-
<!-- A PROPOSAL, not a decision: the
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
<!-- A PROPOSAL, not a decision: the roadmap, written by `bokata-slice` (Inc 1, the Walking Skeleton, is
|
|
46
|
+
the first row) and redone by every `bokata-inc`. The owner edits it freely: move a bite to another
|
|
47
|
+
row, add or drop rows, reorder them. The FIRST row is the next increment `bokata-inc` takes. Each row
|
|
48
|
+
= one Inc (1–3 bites; must-have first, ~nice-to-have last, dependencies respected); rows of
|
|
49
|
+
specified Incs are dropped, they live in ## Increments. Rules: bokata-slice/resources/proposed-increments.md -->
|
|
50
50
|
|
|
51
51
|
| Inc | Bites | What the user gains | Why this order |
|
|
52
52
|
|---|---|---|---|
|
|
53
|
+
| Inc 1 — Walking skeleton | F1-w1 · F2-w1 | <one line, in user language> | <the thinnest path that runs end to end> |
|
|
53
54
|
| Inc 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Inc 1 only"> |
|
|
54
55
|
| Inc 3 — <name> | F1-c | <…> | <…> |
|
|
55
|
-
| Later | ~F1-
|
|
56
|
+
| Later | ~F1-b · ~F1-e · deferred F1-d1 | <nice-to-have and deferred, no order promised> | — |
|
|
56
57
|
|
|
57
58
|
### F1 — <Feature name>
|
|
58
59
|
|
|
59
60
|
- **[<User Task>]**
|
|
60
|
-
- **F1-w1 · <Who does or sees what in the skeleton>** (skeleton)
|
|
61
|
+
- **F1-w1 · <Who does or sees what in the skeleton>** (skeleton) — F1-1.1, F1-2.1
|
|
61
62
|
- **F1-a · <Who does or sees what>** (must-have) — F1-1.2, F1-3.3 · depends on: Inc 1 · value: <one line> · check: <one sentence a test can answer>
|
|
62
|
-
- ~**F1-b · <Who does or sees what>** (nice-to-have)
|
|
63
|
+
- ~**F1-b · <Who does or sees what>** (nice-to-have) — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
|
|
63
64
|
- **[Deferred]**
|
|
64
65
|
- **F1-d1 · <title>** (deferred: <reason, e.g. needs F9>) — F1-1.4, F1-5.2 · prune and split when recovered
|
|
65
66
|
|