bokata 2.0.0 → 3.0.0-beta.3
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/{commands/task-parallel/feature-map.md → .agents/skills/bokata-feature-map/SKILL.md} +80 -79
- package/.agents/skills/bokata-feature-map/resources/features-template.md +83 -0
- package/.agents/skills/bokata-feature-slicer/SKILL.md +171 -182
- package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +13 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +9 -12
- package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +6 -22
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +43 -49
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +90 -249
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +138 -0
- package/.agents/skills/bokata-plan/SKILL.md +104 -0
- package/.agents/skills/bokata-plan/resources/plan-template.md +33 -0
- package/.agents/skills/bokata-refactor/SKILL.md +69 -0
- package/.agents/skills/bokata-refactor/resources/smells.md +47 -0
- package/.agents/skills/bokata-refactor/resources/tidyings.md +31 -0
- package/.agents/skills/bokata-render/SKILL.md +144 -0
- package/.agents/skills/bokata-render/resources/story-map-template.md +835 -0
- package/.agents/skills/bokata-shape/SKILL.md +117 -0
- package/.agents/skills/bokata-shape/resources/adr-template.md +24 -0
- package/.agents/skills/bokata-shape/resources/breadboarding.md +47 -0
- package/.agents/skills/bokata-shape/resources/pitch-template.md +42 -0
- package/.agents/skills/bokata-slice/SKILL.md +475 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +117 -0
- package/.agents/skills/bokata-status/SKILL.md +65 -0
- package/.agents/skills/bokata-tdd/SKILL.md +109 -0
- package/.agents/skills/bokata-tdd/resources/evidence-rules.md +27 -0
- package/README.md +210 -92
- package/agents/bokata-product-designer.md +48 -16
- package/agents/bokata-product-engineer.md +48 -15
- package/agents/bokata-product-manager.md +48 -16
- package/agents/code-executor.md +53 -0
- package/agents/design-reviewer.md +40 -0
- package/agents/feature-slicer.md +42 -0
- package/agents/story-map-renderer.md +19 -0
- package/bin/bokata.js +27 -12
- package/package.json +20 -7
- package/src/agents.js +114 -0
- package/src/config.js +75 -0
- package/src/install.js +173 -205
- package/commands/codex/feature-map.md +0 -263
- package/commands/codex/slice-feature.md +0 -291
- package/commands/task-parallel/resources/html-template.md +0 -560
- package/commands/task-parallel/resources/story-map-template.md +0 -495
- package/commands/task-parallel/slice-feature.md +0 -301
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
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 file 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. You are the neutral coordinator; the slicing comes from `feature-slicer`
|
|
10
|
+
subagents, and the PM, Designer and Engineer review from their lenses.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
Slice 1–4 Features → a usable flow, end to end; open until the user marks it done
|
|
14
|
+
├ Slicing per Feature: User Task → Step → options (F1-2.3), pruned, with a target per Step
|
|
15
|
+
├ Increment the Walking Skeleton (Inc 1) or one or more bites the user can see or use
|
|
16
|
+
│ └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor
|
|
17
|
+
└ Backlog bites (F1-a …): INVEST groups of options, per User Task, each titled for the user
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- **Option ≠ bite ≠ increment.** An option is one way to do one Step. A bite groups the
|
|
21
|
+
options of one or several Steps that make sense together (small, INVEST). An increment is the
|
|
22
|
+
Walking Skeleton or one or more bites — whatever lets the user see or do something new.
|
|
23
|
+
- **The backlog is a plan, not an index.** Options are explored widely, then the slicer prunes
|
|
24
|
+
what is obsolete, dominated or filler (each with a reason) and groups the rest into bites.
|
|
25
|
+
Nobody reads loose option IDs.
|
|
26
|
+
- **A Feature belongs to exactly one slice.** If another slice needs it, that slice lists it as
|
|
27
|
+
a dependency.
|
|
28
|
+
- **Concrete ACs are written just in time**, only for the increment entering the slice.
|
|
29
|
+
Functional ACs stay in `features.md`.
|
|
30
|
+
- **No time estimates.** Never write a duration.
|
|
31
|
+
|
|
32
|
+
All outputs live under `<docs>/<initiative-slug>/`.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Configuration
|
|
37
|
+
|
|
38
|
+
Read `.bokata.json` at the project root if it exists. Defaults:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{ "docs": "docs/initiatives",
|
|
42
|
+
"memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md", "adrs": "docs/adrs" },
|
|
43
|
+
"methods": { "domain": "domain-modeling" },
|
|
44
|
+
"templates": { "slice": null },
|
|
45
|
+
"story_map": true }
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`<docs>` below is the `docs` value. `templates.slice: null` means
|
|
49
|
+
[resources/slice-template.md](resources/slice-template.md). The story map is rendered by the
|
|
50
|
+
`story-map-renderer` subagent (skill `bokata-render`); this skill only dispatches it.
|
|
51
|
+
|
|
52
|
+
## Operations
|
|
53
|
+
|
|
54
|
+
| Call | Does |
|
|
55
|
+
|------|------|
|
|
56
|
+
| `bokata-slice [<features…>]` | **New slice**: Steps 1–6 below |
|
|
57
|
+
| `bokata-slice <nn> --next` | **Next increment** of an open slice — see [Next increment](#next-increment---next) |
|
|
58
|
+
| `bokata-slice <nn> --done` | Mark the slice **done** — see [Done](#done---done) |
|
|
59
|
+
|
|
60
|
+
## Mode
|
|
61
|
+
|
|
62
|
+
- **Trio mode (large initiative)** — `features.md` exists and was written by `bokata-feature-map`
|
|
63
|
+
(no `<!-- Mode: single -->` marker). Reviews and Rules come from the three trio subagents.
|
|
64
|
+
- **Single mode (one feature)** — there is only a pitch (or a plain description), or a
|
|
65
|
+
`features.md` carrying `<!-- Mode: single -->`. The pitch is the one Feature. Still dispatch
|
|
66
|
+
one `feature-slicer` subagent; run every trio step yourself, one lens at a time. The first
|
|
67
|
+
time, create `features.md` from the features template with **only** that Feature (name and
|
|
68
|
+
`Purpose` from the pitch, its User Task names from the slicer) and its `**Slice:**` line, and
|
|
69
|
+
put `<!-- Mode: single -->` under its header comment.
|
|
70
|
+
|
|
71
|
+
The user can force either mode.
|
|
72
|
+
|
|
73
|
+
**Feature codes.** `F1`, `F2`, … follow the order of the Features in `features.md` (the journey
|
|
74
|
+
order) and never change. Option IDs build on them: `F2-3.1` = Feature 2, Step 3, option 1.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Step 1: Resolve Features & Folders
|
|
79
|
+
|
|
80
|
+
1. Read `features.md` and the pitch, the constitution, the glossary, and the existing slices in
|
|
81
|
+
`<docs>/<initiative-slug>/slices/` (their header and `Status` are enough).
|
|
82
|
+
2. Show the Features: which already belong to a slice (from each Feature's `**Slice:**` line) and
|
|
83
|
+
which are free. Ask the user to pick **1–4 free Features that make sense together** if not
|
|
84
|
+
given. For the first slice, recommend the group that makes the journey usable end to end. A
|
|
85
|
+
Feature that already has a slice cannot be picked again — offer `bokata-slice <nn> --next` on
|
|
86
|
+
that slice instead.
|
|
87
|
+
3. `mkdir -p <docs>/<initiative-slug>/slices/`.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Step 2: Consolidated Discovery (Interactive)
|
|
92
|
+
|
|
93
|
+
Ask clarifying questions in **rounds** (every question you can ask now, numbered, each with your
|
|
94
|
+
recommended answer and worded so "yes" accepts it; wait for the answers before the next round)
|
|
95
|
+
about the picked Features, only where the answer changes a Step or an option:
|
|
96
|
+
- **Technical Clarity** — User Tasks too vague to decompose into Steps?
|
|
97
|
+
- **Layer Ambiguity** — Steps unclear between UI, Logic and Data?
|
|
98
|
+
- **Increment Scope** — User Tasks too large to slice without clarification?
|
|
99
|
+
- **Dependencies** — between User Tasks, or between the picked Features?
|
|
100
|
+
- **Constraints** — architecture or performance limits on which options are viable?
|
|
101
|
+
|
|
102
|
+
**Scope decisions defer, they do not delete.** When the user cuts something ("preview only", "no
|
|
103
|
+
horn for now"), record it as a deferral: the slicers still list those options, marked `deferred`,
|
|
104
|
+
and they stay in the backlog.
|
|
105
|
+
|
|
106
|
+
If the input is already rich, say so and ask only about what is missing:
|
|
107
|
+
> "You provided the features + functional ACs for [initiative], which resolves scope and rules. Asking only about [missing categories]."
|
|
108
|
+
|
|
109
|
+
Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
|
|
110
|
+
Layer Decisions / Increment Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
|
|
111
|
+
Constraints Noted / Assumptions. Every subagent below receives it.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Step 3: Slicing — Two Waves of Subagents
|
|
116
|
+
|
|
117
|
+
Subagents cannot launch subagents in every harness, so **you** launch both waves from the main
|
|
118
|
+
thread. Use your harness's subagent tool (Task/Agent in Claude Code, `task` in OpenCode,
|
|
119
|
+
`spawn_agents` in Codex, subagents in Cursor). In each wave, issue every call **in a single
|
|
120
|
+
assistant message**, all **foreground/blocking**, and do not continue until every result is in.
|
|
121
|
+
|
|
122
|
+
### 3a. Wave 1 — one `feature-slicer` per Feature (parallel)
|
|
123
|
+
|
|
124
|
+
**Never slice a Feature yourself**, even when it looks small: dispatch the `feature-slicer`
|
|
125
|
+
agent, which runs the `bokata-feature-slicer` skill with its resources.
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
subagent_type: feature-slicer
|
|
129
|
+
prompt: "Slice this Feature. Feature code: F<n>.
|
|
130
|
+
- Feature: [name, ID, Purpose, every User Task and System Task with its description — from features.md]
|
|
131
|
+
- Discovery Context: [from Step 2]
|
|
132
|
+
- Constitution / glossary paths: [from .bokata.json]
|
|
133
|
+
- Functional ACs — open ONLY for the Phase 3 coverage check: [this Feature's Requirements + Scenarios]
|
|
134
|
+
Read the skill and all its resources first. Run all four phases, including Phase 4 (prune with a
|
|
135
|
+
reason, a target per Step, INVEST bites). Return the full output (Slicing trace, Coverage,
|
|
136
|
+
Walking Skeleton proposal, Pruned, Bites, Self-check, Assumptions)."
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 3b. Gate — check each trace before anyone reviews it
|
|
140
|
+
|
|
141
|
+
For every returned trace, check mechanically (count, do not judge):
|
|
142
|
+
- [ ] Every User Task of the Feature has Steps, each with a layer
|
|
143
|
+
- [ ] Every Step has ≥3 options and a `strategies:` line with ≥2 strategies
|
|
144
|
+
- [ ] Every Step has a cheap-family option (crutch, fake/hardcoded data, zero/one/many, simplified
|
|
145
|
+
workflow, basic utility) or a one-line reason why not
|
|
146
|
+
- [ ] Every Requirement of the Feature appears in `### Coverage`
|
|
147
|
+
- [ ] Every `Deferred` item from the Discovery Context appears as a `deferred` option
|
|
148
|
+
- [ ] The Walking Skeleton proposal uses option IDs and covers every User Task
|
|
149
|
+
- [ ] Every pruned option appears in `### Pruned` with one of the four reasons, is gone from the
|
|
150
|
+
trace, and was not a skeleton or `deferred` option
|
|
151
|
+
- [ ] Every Step has one `→ target`
|
|
152
|
+
- [ ] Every live option (not skeleton, not pruned) is in **exactly one** bite; none is in two
|
|
153
|
+
- [ ] Every bite has an ID, a title with a subject, `must-have` or `~nice-to-have`, its options
|
|
154
|
+
with Steps, `depends on`, a value line and a check; none has more than ~5 options
|
|
155
|
+
- [ ] `deferred` options sit in their own bites; no dependency cycle between bites
|
|
156
|
+
- [ ] The Self-check counts match the trace
|
|
157
|
+
|
|
158
|
+
If a trace fails, re-dispatch **that** slicer with the failed items listed ("S4 has 2 options;
|
|
159
|
+
S7 has no cheap option; R3 missing from Coverage; F5-6.4 is in no bite; Step S9 has no target"). Do not patch the trace yourself. At most two
|
|
160
|
+
retries; then show the user what is still missing.
|
|
161
|
+
|
|
162
|
+
### 3c. Wave 2 — Trio review of the full traces (parallel)
|
|
163
|
+
|
|
164
|
+
The trio reviews **the complete traces and the bites**, not a summary: they can only miss
|
|
165
|
+
options they can see, and only object to a pruning they can read.
|
|
166
|
+
|
|
167
|
+
**Task 1: bokata-product-manager**
|
|
168
|
+
```
|
|
169
|
+
subagent_type: bokata-product-manager
|
|
170
|
+
prompt: "Review the slicing of [Features] from the value/viability lens. You have:
|
|
171
|
+
- Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites): [paste every trace as returned]
|
|
172
|
+
- Backbone + functional ACs: [paste]
|
|
173
|
+
- Discovery Context: [paste]
|
|
174
|
+
Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
|
|
175
|
+
value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
|
|
176
|
+
Step — propose it with its Step ID. Which options unlock the most value next? Also review the
|
|
177
|
+
Pruned list and the Bites. Is the must-have / nice-to-have split in value order, does any
|
|
178
|
+
pruning throw away value (name the option ID), is any bite too big or two bites really one?
|
|
179
|
+
Tag every finding with Severity (Critical|Suggested) and Type (factual/scope|trade-off). Return
|
|
180
|
+
your review in the format specified in your agent file (Bites section included)."
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Task 2: bokata-product-designer**
|
|
184
|
+
```
|
|
185
|
+
subagent_type: bokata-product-designer
|
|
186
|
+
prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
|
|
187
|
+
- Full slicing traces: [paste]
|
|
188
|
+
- Backbone + functional ACs: [paste]
|
|
189
|
+
- Discovery Context: [paste]
|
|
190
|
+
Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
|
|
191
|
+
experience across the Features? Which UI states are essential to the skeleton and which can wait?
|
|
192
|
+
Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
|
|
193
|
+
propose it with its Step ID. Also review the Bites. Do the titles read on their own, with no
|
|
194
|
+
Step context? Is each bite one coherent thing in the interface, or does it mix two screens or
|
|
195
|
+
two interactions? Does any pruning drop a UI state the skeleton needs? Tag every finding with
|
|
196
|
+
Severity (Critical|Suggested) and Type (factual/scope|trade-off). Return your review in the format
|
|
197
|
+
specified in your agent file (Bites section included)."
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Task 3: bokata-product-engineer**
|
|
201
|
+
```
|
|
202
|
+
subagent_type: bokata-product-engineer
|
|
203
|
+
prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
|
|
204
|
+
- Full slicing traces: [paste]
|
|
205
|
+
- Backbone + functional ACs: [paste]
|
|
206
|
+
- Discovery Context: [paste]
|
|
207
|
+
Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
|
|
208
|
+
reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
|
|
209
|
+
(in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
|
|
210
|
+
Step ID. Also review the Bites. Are the dependencies right and acyclic, is any bite too big
|
|
211
|
+
to size, and does any pruned option break a contract a later bite or Feature relies on (name
|
|
212
|
+
the option ID)? Tag every finding with Severity (Critical|Suggested) and Type
|
|
213
|
+
(factual/scope|trade-off). Return your review in the format specified in your agent file (Bites
|
|
214
|
+
section included)."
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### 3d. Reconcile (You Are the Neutral Coordinator)
|
|
218
|
+
|
|
219
|
+
You add no fourth opinion and arbitrate no product trade-off. Classify each finding (use the
|
|
220
|
+
reviewer's `Type` tag, but verify it):
|
|
221
|
+
|
|
222
|
+
- **(a) Non-conflicting improvement** — apply it. A proposed missing option is added to its Step
|
|
223
|
+
with the next free ID **and to exactly one bite** (an existing one, or a new one). Never
|
|
224
|
+
remove an option because a reviewer prefers another — options are alternatives. What **is**
|
|
225
|
+
pruned is the obsolete, the dominated and the filler, each with its reason. A reviewer finding
|
|
226
|
+
can move options between bites, split a bite, or restore a pruned option (back into a
|
|
227
|
+
bite, still with one bite only); the neutral coordinator makes the move.
|
|
228
|
+
- **(b) Factual / scope conflict** — decidable against an artifact (`features.md`, the pitch, the
|
|
229
|
+
Discovery Context, the constitution). Resolve it against that artifact, apply the fix, and add a
|
|
230
|
+
one-line `## Trio notes` entry citing it. Do not ask the user.
|
|
231
|
+
- **(c) Genuine product trade-off** — a value↔UX / value↔sustainability judgment with no ground
|
|
232
|
+
truth in any artifact (e.g. PM: "F1-3.1 is enough for the skeleton"; Designer: "the skeleton
|
|
233
|
+
needs F1-3.2 to be coherent"; PM: "F5-b is must-have"; Engineer: "it can wait"). This is the
|
|
234
|
+
human's decision.
|
|
235
|
+
|
|
236
|
+
**Bucket (c):** collect them all first (never one at a time). For each: the two positions with
|
|
237
|
+
their lens, the one-sentence crux, and a **recommended default** grounded in the constitution /
|
|
238
|
+
Fast Feedback Principle.
|
|
239
|
+
- **Interactive (default):** present them as one numbered decision point and wait. Use your
|
|
240
|
+
harness's question tool if it has one (`AskUserQuestion` in Claude Code, `question` in OpenCode;
|
|
241
|
+
one question per conflict; options = each lens position plus your recommended default, marked
|
|
242
|
+
recommended). Otherwise a numbered plain-text prompt. Apply the choices.
|
|
243
|
+
- **Non-interactive** (`--no-interactive`, or a headless run): apply the defaults and record each
|
|
244
|
+
in `## Trio notes` with both positions, the applied default, and `⚠ flagged for human review`.
|
|
245
|
+
|
|
246
|
+
### 3e. Compose Inc 1 — the Walking Skeleton (Interactive)
|
|
247
|
+
|
|
248
|
+
Propose **Inc 1** as the union of the reconciled skeleton proposals: the option IDs per User Task
|
|
249
|
+
across the picked Features, so the flow works end to end. Then:
|
|
250
|
+
- Show it as one line of what the user can do, its option IDs, and its `**[User Task]**` tags.
|
|
251
|
+
- Every part must be functional on its own; if an option has no visible effect alone, it travels
|
|
252
|
+
with the option that makes it visible.
|
|
253
|
+
- The user can swap options, add or drop them, and name the slice. **The user decides.**
|
|
254
|
+
- Options the user moves into Inc 1 leave their bite; if that empties a bite, remove it; if
|
|
255
|
+
it breaks another bite's `depends on`, repoint it to `Inc 1`. The bites left stay the
|
|
256
|
+
backlog.
|
|
257
|
+
|
|
258
|
+
### Proposed increments
|
|
259
|
+
|
|
260
|
+
After Inc 1 is fixed (3e) — and again after every `--next` — write the roadmap of the bites that are
|
|
261
|
+
left as a table in `## Backlog`, above the bites. It is a **proposal**, labelled as such; the owner
|
|
262
|
+
edits it. You compose it from what the trio already said (the PM's value order and "bites to build
|
|
263
|
+
next", the Engineer's dependencies); you add no new opinion on value.
|
|
264
|
+
|
|
265
|
+
- One row per Inc: `Inc <n> — <name>`, its bites (1–3, across User Tasks if they belong together),
|
|
266
|
+
what the user gains (user language, one line), and **why this order** (the value it unlocks or the
|
|
267
|
+
dependency it satisfies).
|
|
268
|
+
- Order: `depends on` first, then value, must-have before `~nice-to-have`. A row never takes a bite
|
|
269
|
+
before the bite it depends on.
|
|
270
|
+
- Every must-have bite appears in exactly one row. The `~nice-to-have` and `deferred` bites go in a
|
|
271
|
+
final `Later` row, with no order promised.
|
|
272
|
+
- Each Inc is a candidate for **INVEST**: small, independent of the rows after it, valuable, testable.
|
|
273
|
+
- If the owner states an order, use it and keep the reason.
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Step 4: Concrete Acceptance Criteria — chosen increment only
|
|
278
|
+
|
|
279
|
+
Used by a new slice (for Inc 1) and by `--next` (for the new increment). Never write concrete ACs
|
|
280
|
+
for options still in the backlog.
|
|
281
|
+
|
|
282
|
+
### 4a. Trio contributes Rules (Subagents, Parallel)
|
|
283
|
+
|
|
284
|
+
One message, three foreground calls, wait for all three:
|
|
285
|
+
|
|
286
|
+
**Task 1: PM Contribution**
|
|
287
|
+
```
|
|
288
|
+
subagent_type: bokata-product-manager
|
|
289
|
+
prompt: "Contribute business-rule Rules for increment [Inc n] of slice [nn], from the viability/value lens. You have:
|
|
290
|
+
- The increment: [name, option IDs with their one-line descriptions, User Task tags]
|
|
291
|
+
- Increments already in the slice (for context): [one line each]
|
|
292
|
+
- Backbone + functional ACs of the touched User Tasks: [paste]
|
|
293
|
+
- Discovery Context: [paste]
|
|
294
|
+
Do NOT ask the user questions. Give launch-blocking rules for this increment and the value it
|
|
295
|
+
unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
|
|
296
|
+
sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
**Task 2: Designer Contribution**
|
|
300
|
+
```
|
|
301
|
+
subagent_type: bokata-product-designer
|
|
302
|
+
prompt: "Contribute UX/UI Rules for increment [Inc n] of slice [nn], from the usability/craft lens. You have:
|
|
303
|
+
- The increment: [name, option IDs with descriptions, User Task tags]
|
|
304
|
+
- Increments already in the slice: [one line each]
|
|
305
|
+
- Backbone + functional ACs of the touched User Tasks: [paste]
|
|
306
|
+
- Discovery Context: [paste]
|
|
307
|
+
Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
|
|
308
|
+
increment needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Task 3: Engineer Contribution**
|
|
312
|
+
```
|
|
313
|
+
subagent_type: bokata-product-engineer
|
|
314
|
+
prompt: "Contribute technical Rules for increment [Inc n] of slice [nn], from the feasibility/sustainability lens. You have:
|
|
315
|
+
- The increment: [name, option IDs with descriptions, User Task tags]
|
|
316
|
+
- Increments already in the slice: [one line each]
|
|
317
|
+
- Backbone + functional ACs of the touched User Tasks: [paste]
|
|
318
|
+
- Discovery Context: [paste]
|
|
319
|
+
Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
|
|
320
|
+
increment, and whether it builds on earlier increments or reshapes them. Format per your agent
|
|
321
|
+
file (Contributed Rules — Engineer Lens)."
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### 4b. Consolidate & Invoke the AC Skill
|
|
325
|
+
|
|
326
|
+
Merge the three contributions into one enrichment block (de-duplicated). Then:
|
|
327
|
+
```
|
|
328
|
+
bokata-acceptance-criteria --concrete
|
|
329
|
+
Input: [the increment: name, option IDs and descriptions, User Task tags]
|
|
330
|
+
Enrichment: [consolidated Rules]
|
|
331
|
+
Discovery Context: [from Step 2]
|
|
332
|
+
Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
|
|
333
|
+
Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
|
|
334
|
+
scenarios only for this increment, with concrete example data. Return the ## Acceptance Criteria
|
|
335
|
+
(Concrete) section."
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### 4c. Domain Pass (Interactive)
|
|
339
|
+
|
|
340
|
+
Load the skill named in `methods.domain` (default `domain-modeling`; skip if `null` or not
|
|
341
|
+
installed) and run it over the concrete ACs against the glossary at `memory.glossary`:
|
|
342
|
+
- A term the glossary lists under _Avoid_ → replace it with the canonical term.
|
|
343
|
+
- Two words for one concept, or one word for two → ask the user, then use the answer everywhere.
|
|
344
|
+
- A new concept → settle its name with the user and add it to the glossary (terms only).
|
|
345
|
+
- An ADR only at `memory.adrs`, and only when hard to reverse, surprising without context, and the
|
|
346
|
+
result of a real trade-off.
|
|
347
|
+
|
|
348
|
+
Ask every naming question in one round, numbered, each with your recommended answer. The paths
|
|
349
|
+
and formats in `.bokata.json` win over the domain skill's own.
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Step 5: Write the Slice & the Summary
|
|
354
|
+
|
|
355
|
+
1. Number the slice (`01`, `02`, … after the existing ones) and **write**
|
|
356
|
+
`<docs>/<initiative-slug>/slices/<nn>-<name>.md` from the slice template:
|
|
357
|
+
- header with `Status: open` and `Current increment: Inc 1 — sliced`;
|
|
358
|
+
- `## Slicing`: one `<details>` block per Feature with its reconciled trace (Steps, options,
|
|
359
|
+
strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it
|
|
360
|
+
plus the trio's added options; append `→ Inc 1` to every option Inc 1 took (replacing the slicer's `skeleton` marker). The block is
|
|
361
|
+
folded: the owner reads the Backlog, not the trace;
|
|
362
|
+
- `## Increments`: `### Inc 1 — Walking skeleton: <…> **[UT]** …` with `Options:`, `Bites:`,
|
|
363
|
+
`Unknowns:`, an empty `Parallel-safe:`, the concrete Gherkin and the pointer line
|
|
364
|
+
`Plan: → ../plan.md (Slice <nn> · Inc 1)` (the plan and the test mapping live in `plan.md`,
|
|
365
|
+
written by `bokata-plan`; never put steps or `Tests:` in the slice);
|
|
366
|
+
- `## Backlog`: **the bites**, grouped by User Task and ordered by value (must-have first,
|
|
367
|
+
`~nice-to-have` after), each on one line in the template's shape (title, options, `depends on`, value,
|
|
368
|
+
check) and — once an Inc takes it — `→ Inc n` after its priority tag; `deferred` bites in
|
|
369
|
+
their own group. The story map draws every bite without `→ Inc n`. Never a flat list of
|
|
370
|
+
option IDs. Put **`### Proposed increments`** above the bites: see
|
|
371
|
+
[Proposed increments](#proposed-increments);
|
|
372
|
+
- `## Notes`: include a `Pruned` line (count by reason) and keep the full `### Pruned` list
|
|
373
|
+
there; `## Trio notes`.
|
|
374
|
+
2. In `features.md`, set each picked Feature's `**Slice:**` line:
|
|
375
|
+
`**Slice:** → <nn>-<name> · <taken>/<total> options · next: <bite ID> <bite title>`.
|
|
376
|
+
Nothing else about the slicing goes into `features.md`.
|
|
377
|
+
3. **Dispatch the story-map update** (if `story_map`): the `story-map-renderer` subagent, in
|
|
378
|
+
background, without waiting — operation `slice-added` when `story-map.html` exists, otherwise
|
|
379
|
+
`rebuild`:
|
|
380
|
+
```
|
|
381
|
+
subagent → story-map-renderer (bokata-render)
|
|
382
|
+
input: <docs>/<initiative-slug>/ — operation: slice-added — slice: slices/<nn>-<name>.md — increment: Inc 1
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Step 6: Verify & Summarize
|
|
388
|
+
|
|
389
|
+
- [ ] Every picked Feature was sliced by a `feature-slicer` subagent and passed the gate
|
|
390
|
+
- [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
|
|
391
|
+
and each in exactly one bite
|
|
392
|
+
- [ ] The slice file has Slicing, Inc 1 with concrete Gherkin, Backlog of bites, Notes (with
|
|
393
|
+
Pruned), Trio notes
|
|
394
|
+
- [ ] `features.md` gained only a `**Slice:**` line per picked Feature
|
|
395
|
+
- [ ] The renderer was dispatched (if `story_map`)
|
|
396
|
+
|
|
397
|
+
Print:
|
|
398
|
+
```
|
|
399
|
+
## ✓ Slice Ready
|
|
400
|
+
|
|
401
|
+
**Slice:** <nn>-<name> — Features: {{FEATURES}} · open
|
|
402
|
+
**Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md
|
|
403
|
+
|
|
404
|
+
**Inc 1 (Walking Skeleton):** {{ONE_LINE}} · {{NUM_OPTIONS}} options · {{NUM_GHERKIN_BLOCKS}} scenarios
|
|
405
|
+
**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)
|
|
406
|
+
**Trio notes:** {{N}} (see the slice)
|
|
407
|
+
|
|
408
|
+
**Proposed next increments:** {{INC_2_ONE_LINE}} · {{INC_3_ONE_LINE}} … (a proposal — edit it in the slice)
|
|
409
|
+
|
|
410
|
+
**Next step:** `bokata-plan <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md` — inside your harness's plan mode.
|
|
411
|
+
After Inc 1 is built: `bokata-slice <nn> --next`.
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Next increment (`--next`)
|
|
417
|
+
|
|
418
|
+
For an **open** slice whose current increment is built (or when the user wants to queue the next
|
|
419
|
+
one):
|
|
420
|
+
|
|
421
|
+
1. Read the slice file: Slicing, Increments, Backlog (the bites), Notes (built increments may
|
|
422
|
+
have discovered work), and the functional ACs of its Features from `features.md`.
|
|
423
|
+
2. Propose the next increment as **one or several bites** (of one or several User Tasks) that
|
|
424
|
+
unlock the most value on top of what is built; start from the first row of
|
|
425
|
+
`### Proposed increments` and adjust it to what is built and pruned: respect `depends on`, take must-have before
|
|
426
|
+
nice-to-have, keep it small. Show 2–3 candidates, each as one line of what the user can do +
|
|
427
|
+
bite IDs and titles + `**[UT]**` tags, with your recommendation first. The user picks, edits
|
|
428
|
+
or writes their own. One increment per call. Bites are already reviewed by the trio; you
|
|
429
|
+
compose between them, you do not untie 180 loose options again.
|
|
430
|
+
3. If the user asks for something no bite has, add it as a new option to its Step (next free
|
|
431
|
+
ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing
|
|
432
|
+
stays the source of truth.
|
|
433
|
+
4. **Re-prune.** The increment just chosen raises the floor for its Steps: any live option, in any
|
|
434
|
+
bite, that now sits below what the increment builds is `obsolete`. **Never prune an option an Inc
|
|
435
|
+
has taken** (`→ Inc n`): the story map resolves each Inc's `Options:` through the Slicing; remove it, list it under
|
|
436
|
+
`### Pruned` in `## Notes` with its reason. Bites left with no options go away; a bite
|
|
437
|
+
whose value shrank is reworded or merged. A removal that would take value away from a bite
|
|
438
|
+
goes to the user as one decision point, with your recommended default.
|
|
439
|
+
5. Run **Step 4** (trio Rules → concrete ACs → domain pass) for this increment only.
|
|
440
|
+
6. **Redo `### Proposed increments`** for the bites that are left (drop the row of the Inc just
|
|
441
|
+
added, reorder the rest if the pruning or what was built changed it).
|
|
442
|
+
Append `### Inc <n> — <…>` to `## Increments` (same shape as Inc 1: `Options:` lists the option IDs
|
|
443
|
+
of the bites it takes — plan and executor read those — and a `Bites:` line names the bite IDs),
|
|
444
|
+
append `→ Inc <n>` to the options and to the bites it took (in `## Backlog`, after the priority
|
|
445
|
+
tag), and set `Current increment: Inc <n> — sliced`.
|
|
446
|
+
7. Update each touched Feature's `**Slice:**` line in `features.md` (`next: <bite ID> <title>`).
|
|
447
|
+
8. Dispatch the renderer with operation `slice-added` and `increment: Inc <n>`.
|
|
448
|
+
9. Print the Inc line, scenarios count, bites left in the backlog, what was pruned, and the next
|
|
449
|
+
step (`bokata-plan`).
|
|
450
|
+
|
|
451
|
+
## Done (`--done`)
|
|
452
|
+
|
|
453
|
+
Only when the user asks — nothing marks a slice done by itself. Set `Status: done` in the slice
|
|
454
|
+
header, add a closing line to `## Notes` (what is built, which bites stay in the backlog), update
|
|
455
|
+
the `**Slice:**` lines in `features.md` with `· done`, and dispatch the renderer with
|
|
456
|
+
`state-sync`. The backlog stays in the slice file; to build more of these Features later, the user
|
|
457
|
+
reopens this slice (`Status: open`) — never a new slice for the same Feature. A done *slice* is not
|
|
458
|
+
a done *increment*: the header's `Current increment: Inc <n> — done` is set by the executor.
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## Quality Checks (Before Writing)
|
|
463
|
+
|
|
464
|
+
- [ ] Discovery Context present; scope cuts recorded as Deferred, not removed
|
|
465
|
+
- [ ] Wave 1 issued in one message, one `feature-slicer` per Feature; no Feature sliced inline
|
|
466
|
+
- [ ] Every trace passed the gate (≥3 options and ≥2 strategies per Step, cheap option, full Coverage,
|
|
467
|
+
pruned with a reason, a target per Step, every live option in exactly one bite)
|
|
468
|
+
- [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
|
|
469
|
+
- [ ] The Backlog lists bites with user-language titles, never loose option IDs
|
|
470
|
+
- [ ] `### Proposed increments` exists: every must-have bite in exactly one row, dependencies respected, a reason per row
|
|
471
|
+
- [ ] Inc 1 covers every User Task of the picked Features, as option IDs
|
|
472
|
+
- [ ] Concrete ACs exist only for the increment being added, in full Gherkin with concrete data
|
|
473
|
+
- [ ] No duration written anywhere
|
|
474
|
+
- [ ] `features.md` holds only the summary `**Slice:**` line per Feature
|
|
475
|
+
- [ ] The renderer was dispatched right after the slice file was final
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Slice <nn> — <name>
|
|
2
|
+
|
|
3
|
+
- Initiative: [<initiative>](../pitch.md) · Features: F1 <name>, F2 <name>
|
|
4
|
+
- When it is done, the user can: <one or two sentences — the end-to-end flow>
|
|
5
|
+
- Rabbit holes that touch it: <from the pitch, or "none">
|
|
6
|
+
- Status: open | done <!-- set to done by the user: `bokata-slice <nn> --done` -->
|
|
7
|
+
- Current increment: Inc <n> — sliced | planned | building | done
|
|
8
|
+
|
|
9
|
+
<!-- How to read this file
|
|
10
|
+
Slicing = each Feature's User Tasks → Steps → options (written once, by the feature-slicer
|
|
11
|
+
agents, reviewed by the Product Trio, then pruned). Each live option ends in its
|
|
12
|
+
bite ("· F1-a"); options taken by an increment end in "→ Inc n"; each Step has one
|
|
13
|
+
"→ target" = how far the slice should go in that Step. "deferred" options were cut by
|
|
14
|
+
a discovery decision and can still be picked. Pruned options are not in the trace:
|
|
15
|
+
they are listed, with their reason, in Notes.
|
|
16
|
+
Increments = added one at a time, in order. Inc 1 is the Walking Skeleton; every other Inc is one
|
|
17
|
+
or several bites. Each one is functional on its own and gets concrete ACs only
|
|
18
|
+
when it enters. "~" = nice-to-have inside that increment's scenarios.
|
|
19
|
+
Unknowns not empty → still uphill (needs the owner); empty → only execution left.
|
|
20
|
+
Plan, Tests = not in this file: they live in the initiative's `plan.md`, under "Slice <nn> · Inc <n>"
|
|
21
|
+
(steps written by bokata-plan and checked off by the executor commit by commit;
|
|
22
|
+
scenario → test mapping filled by the executor).
|
|
23
|
+
Backlog = the bites no Inc has taken: small INVEST groups of options, per User Task, titled
|
|
24
|
+
in user language. `bokata-slice <nn> --next` picks from them and prunes what the new
|
|
25
|
+
Inc makes obsolete. "~" = nice-to-have: the slice can be marked done without it.
|
|
26
|
+
The slice stays open until the user marks it done (`bokata-slice <nn> --done`). A done slice is not a
|
|
27
|
+
done increment: `Current increment: … — done` is about the Inc the executor just finished.
|
|
28
|
+
-->
|
|
29
|
+
|
|
30
|
+
## Slicing
|
|
31
|
+
|
|
32
|
+
<details>
|
|
33
|
+
<summary>F1 — <Feature name> · <n> User Tasks · <n> Steps · <n> options</summary>
|
|
34
|
+
|
|
35
|
+
### User Task: <name>
|
|
36
|
+
- **S1 <Action Object>** · UI — <what happens>
|
|
37
|
+
- F1-1.1 <Action Object> — <what changes for the user; shortcut stated> · <strategy> · covers R1 fake → Inc 1
|
|
38
|
+
- F1-1.2 <Action Object> — <…> · <strategy> · covers R1 total · F1-a → target
|
|
39
|
+
- F1-1.3 <Action Object> — <…> · <strategy> · F1-b
|
|
40
|
+
- strategies: <A>, <B>
|
|
41
|
+
- **S2 <Action Object>** · Data — <…>
|
|
42
|
+
- …
|
|
43
|
+
|
|
44
|
+
#### Coverage
|
|
45
|
+
- R1 <requirement> — F1-1.1 fake, F1-1.2 total
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<details>
|
|
50
|
+
<summary>F2 — <Feature name> · …</summary>
|
|
51
|
+
|
|
52
|
+
…
|
|
53
|
+
|
|
54
|
+
</details>
|
|
55
|
+
|
|
56
|
+
## Increments
|
|
57
|
+
|
|
58
|
+
### Inc 1 — Walking skeleton: <what the user can do or see> **[<User Task>]** **[<User Task>]**
|
|
59
|
+
|
|
60
|
+
- Options: F1-1.1, F1-2.1, F2-1.1 <!-- always the option IDs; plan and executor read them -->
|
|
61
|
+
- Bites: — <!-- Inc 1 = skeleton; from Inc 2 on: F1-a, F2-c (the bites it takes) -->
|
|
62
|
+
- Unknowns: <open questions, or "none">
|
|
63
|
+
- Parallel-safe: <yes | no — set by bokata-plan>
|
|
64
|
+
|
|
65
|
+
```gherkin
|
|
66
|
+
Scenario: <concrete name>
|
|
67
|
+
Given <concrete data>
|
|
68
|
+
When <action>
|
|
69
|
+
Then <observable result>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Plan: → ../plan.md (Slice <nn> · Inc 1) <!-- steps and Tests live there -->
|
|
73
|
+
|
|
74
|
+
### Inc 2 — <what the user can do or see> **[<User Task>]**
|
|
75
|
+
|
|
76
|
+
<!-- Added by `bokata-slice <nn> --next`. -->
|
|
77
|
+
|
|
78
|
+
…
|
|
79
|
+
|
|
80
|
+
## Backlog
|
|
81
|
+
|
|
82
|
+
<!-- Bites (INVEST), per Feature and User Task, ordered by value. A bite = options of one or
|
|
83
|
+
several Steps that make sense together; every live option is in exactly one. Titles say who
|
|
84
|
+
does what, so they read without the Step. An Inc takes one or several bites. Kept in sync by
|
|
85
|
+
bokata-slice; the Slicing section holds the options, this section is what you prioritize.
|
|
86
|
+
The story map (bokata-render) draws every untaken bite: keep one bite per line, in this shape. -->
|
|
87
|
+
|
|
88
|
+
### Proposed increments
|
|
89
|
+
|
|
90
|
+
<!-- A PROPOSAL, not a decision: the order the coordinator suggests for the bites left, written after
|
|
91
|
+
Inc 1 is fixed and redone by every `--next`. The owner edits it freely. Each row = one Inc
|
|
92
|
+
(1–3 bites; must-have first, ~nice-to-have last, dependencies respected). The next row is what
|
|
93
|
+
`--next` recommends first. Rows of built Incs are dropped; they live in ## Increments. -->
|
|
94
|
+
|
|
95
|
+
| Inc | Bites | What the user gains | Why this order |
|
|
96
|
+
|---|---|---|---|
|
|
97
|
+
| Inc 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Inc 1 only"> |
|
|
98
|
+
| Inc 3 — <name> | F1-c | <…> | <…> |
|
|
99
|
+
| Later | ~F1-d · ~F1-e · deferred F1-x | <nice-to-have and deferred, no order promised> | — |
|
|
100
|
+
|
|
101
|
+
### F1 — <Feature name>
|
|
102
|
+
|
|
103
|
+
- **[<User Task>]**
|
|
104
|
+
- **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>
|
|
105
|
+
- ~**F1-b · <Who does or sees what>** (nice-to-have) → Inc 2 — F1-2.3 · depends on: F1-a · value: <…> · check: <…> <!-- "→ Inc n" = taken by that Inc; the story map draws only the untaken ones -->
|
|
106
|
+
- **[Deferred]**
|
|
107
|
+
- F1-x · <title> (deferred: <reason, e.g. needs F9>) — F1-1.4, F1-5.2 · prune and split when recovered
|
|
108
|
+
|
|
109
|
+
## Notes
|
|
110
|
+
|
|
111
|
+
- <deviations, discovered work, decisions taken while building>
|
|
112
|
+
- **Pruned** (<n> · obsolete <n> · dominated <n> · filler <n> · contradicts <n>) — one line each, with its reason; added to after every `--next`:
|
|
113
|
+
- F1-1.1 <name> — `obsolete`: <why>
|
|
114
|
+
|
|
115
|
+
## Trio notes
|
|
116
|
+
|
|
117
|
+
- <one line per reconciled conflict or trade-off>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# bokata-status
|
|
7
|
+
|
|
8
|
+
Read the files; change nothing. The only thing it may launch is the `bokata-render` catch-up
|
|
9
|
+
subagent described at the end — never a render of its own and never a state change.
|
|
10
|
+
|
|
11
|
+
## Configuration
|
|
12
|
+
|
|
13
|
+
Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/initiatives`).
|
|
14
|
+
|
|
15
|
+
## What to read
|
|
16
|
+
|
|
17
|
+
`<docs>/<slug>/`: `pitch.md`, `features.md`, `slices/*.md`, `plan.md`. If no slug is given, list the
|
|
18
|
+
initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `slices/`, and ask
|
|
19
|
+
which one (or summarise them all in one line each).
|
|
20
|
+
|
|
21
|
+
## What to report
|
|
22
|
+
|
|
23
|
+
Answer in the user's language, in this shape and nothing more:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
<initiative> — <phase: shaping | shaped | mapped | slicing | planned | building | done>
|
|
27
|
+
Pitch: <size>, <ambition> (if a pitch exists)
|
|
28
|
+
Features: <n> · sliced: <list of features with a slice> · not yet: <list>
|
|
29
|
+
Slice <nn>-<name> (open | done) — Features F1, F2
|
|
30
|
+
✔ <built increments> ▶ Inc <n> <name> — next step: "<first unchecked step>"
|
|
31
|
+
▲ <k> unknowns: <first one> | ▼ no unknowns
|
|
32
|
+
~ <open nice-to-have scenarios>
|
|
33
|
+
Backlog: <k> bites (<m> must-have · <d> deferred) — <first two, by ID and title>
|
|
34
|
+
Next: <the skill or hand-off to run next>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Rules:
|
|
38
|
+
- **Phase** comes from what exists: pitch only → shaped; features → mapped; a slice whose
|
|
39
|
+
current increment has no section in `plan.md` → slicing; a plan with no checked steps → planned; some
|
|
40
|
+
checked → building; every slice done and no Feature left without a slice → done. The plan
|
|
41
|
+
steps are the checkboxes under `## Slice <nn>` → `### Inc <n>` in `plan.md`. A `features.md` carrying `<!-- Mode: single -->` was written by
|
|
42
|
+
`bokata-slice` in single mode, not by a feature map: it never makes the phase "mapped".
|
|
43
|
+
- One block per slice, open slices first; done slices get one line (`Slice <nn> done —
|
|
44
|
+
<k> bites left`). **Backlog** is the slice's `## Backlog` section: its bites that no `Inc` has taken
|
|
45
|
+
(`must-have` ones counted separately; `~nice-to-have` and deferred are the rest).
|
|
46
|
+
Which Features have a slice comes from their `**Slice:**` lines in `features.md`. In single
|
|
47
|
+
mode the `Features:` line is `Features: 1 (single mode)`.
|
|
48
|
+
- **▲ / ▼** is the current increment's `Unknowns` line: open questions mean it still needs the user (▲),
|
|
49
|
+
none means only execution is left (▼).
|
|
50
|
+
- **Next** is the first that applies: unknowns open → resolve them with the user; slice without
|
|
51
|
+
a plan → `bokata-plan`; unchecked steps → the executor hand-off line; increment built and backlog left →
|
|
52
|
+
`bokata-slice <nn> --next` (or `--done` if the user is finished with it); Features without a
|
|
53
|
+
slice → `bokata-slice` on them; nothing left → done.
|
|
54
|
+
- Quote steps and unknowns exactly as written. If a file is malformed, say which and where;
|
|
55
|
+
never guess its content.
|
|
56
|
+
|
|
57
|
+
## Catch-up story map
|
|
58
|
+
|
|
59
|
+
`story-map.html` is a render of the markdown and can lag (an undone render, a manual edit, a
|
|
60
|
+
session that closed early). After reporting, compare it with the files: if the board is missing,
|
|
61
|
+
lacks the `v3` template marker, or its counters/banner disagree with `slices/*.md`, dispatch the
|
|
62
|
+
`story-map-renderer` subagent (it loads the `bokata-render` skill) with operation `state-sync`
|
|
63
|
+
(or `rebuild` when the marker is missing) — it runs on its cheap render model in background —
|
|
64
|
+
and add one line to the report saying the map was brought up to date. If `story_map` is `false`
|
|
65
|
+
or there is no `story-map.html` at all, do nothing.
|