bokata 3.0.0-beta.3 → 3.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -7
  2. package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +3 -3
  3. package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +1 -1
  4. package/.agents/skills/bokata-feature-map/SKILL.md +10 -11
  5. package/.agents/skills/bokata-feature-mapper/SKILL.md +4 -5
  6. package/.agents/skills/bokata-feature-mapper/resources/output-template.md +1 -1
  7. package/.agents/skills/bokata-feature-slicer/SKILL.md +16 -12
  8. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +12 -4
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +29 -51
  10. package/.agents/skills/bokata-feature-slicer/resources/{phase-3-baby-steps.md → phase-3-skeleton.md} +3 -3
  11. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +8 -7
  12. package/.agents/skills/bokata-plan/SKILL.md +21 -15
  13. package/.agents/skills/bokata-plan/resources/plan-template.md +7 -5
  14. package/.agents/skills/bokata-render/SKILL.md +71 -138
  15. package/.agents/skills/bokata-render/assets/story-map.html +590 -0
  16. package/.agents/skills/bokata-render/scripts/render.mjs +784 -0
  17. package/.agents/skills/bokata-shape/SKILL.md +12 -2
  18. package/.agents/skills/bokata-shape/resources/pitch-template.md +3 -0
  19. package/.agents/skills/bokata-slice/SKILL.md +193 -100
  20. package/.agents/skills/bokata-slice/resources/inc-template.md +36 -0
  21. package/.agents/skills/bokata-slice/resources/slice-template.md +36 -84
  22. package/.agents/skills/bokata-status/SKILL.md +27 -15
  23. package/.agents/skills/bokata-tdd/resources/evidence-rules.md +2 -2
  24. package/LICENSE +21 -0
  25. package/README.md +54 -40
  26. package/agents/bokata-product-designer.md +2 -2
  27. package/agents/bokata-product-engineer.md +2 -2
  28. package/agents/bokata-product-manager.md +3 -3
  29. package/agents/code-executor.md +27 -16
  30. package/agents/design-reviewer.md +2 -2
  31. package/agents/feature-slicer.md +21 -9
  32. package/bin/bokata.js +17 -5
  33. package/package.json +1 -1
  34. package/src/agents.js +36 -11
  35. package/src/config.js +8 -7
  36. package/src/install.js +12 -3
  37. package/.agents/skills/bokata-render/resources/story-map-template.md +0 -835
  38. package/agents/story-map-renderer.md +0 -19
@@ -1,89 +1,45 @@
1
+ <!-- THE SLICE INDEX: slices/<nn>-<name>.md. Short on purpose: it is what `--next`, the story map and
2
+ the owner read first. Everything bulky lives in the folder next to it, `slices/<nn>-<name>/`:
3
+
4
+ inc-<n>.md one increment: State, Unknowns, Gherkin, rules, decisions, Pending (inc-template.md)
5
+ slicing/F<k>.md one Feature's trace: User Task → Step → options (written once)
6
+ context.md the Discovery Context of Step 2, then the slice-wide notes and the Trio notes
7
+ pruned.md options pruned after the slicing, one line each with its reason
8
+
9
+ Nothing is said twice. The index holds what never changes once written (outcome, bites); the
10
+ state of an increment lives only in its `inc-<n>.md`, so Incs built in parallel worktrees never
11
+ touch the same file. -->
12
+
1
13
  # Slice <nn> — <name>
2
14
 
3
15
  - Initiative: [<initiative>](../pitch.md) · Features: F1 <name>, F2 <name>
4
16
  - When it is done, the user can: <one or two sentences — the end-to-end flow>
5
17
  - 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>
18
+ - Status: open | done <!-- set by the user: `bokata-slice <nn> --done`; a done slice shows every Inc as done -->
55
19
 
56
20
  ## Increments
57
21
 
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
- ```
22
+ <!-- Added one at a time, in order. Inc 1 is the Walking Skeleton; every other Inc is one or several
23
+ bites. Each is functional on its own. Its State is in inc-<n>.md. A bite is listed once, in the
24
+ Backlog below; an Inc only names the bites it takes. -->
71
25
 
72
- Plan: → ../plan.md (Slice <nn> · Inc 1) <!-- steps and Tests live there -->
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 <!-- the skeleton bites of 3e: one per User Task the skeleton covers -->
29
+ - Detail: [inc-1.md](<nn>-<name>/inc-1.md)
73
30
 
74
- ### Inc 2 — <what the user can do or see> **[<User Task>]**
75
-
76
- <!-- Added by `bokata-slice <nn> --next`. -->
77
-
78
- …
31
+ ### Inc 2 — <short name>
32
+ - Outcome: <…>
33
+ - Bites: F1-a, F2-c
34
+ - Detail: [inc-2.md](<nn>-<name>/inc-2.md)
79
35
 
80
36
  ## Backlog
81
37
 
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. -->
38
+ <!-- Every bite of the slice, one line each (INVEST group of options), per Feature and User Task, ordered
39
+ by value. Titles say who does what, so they read without the Step. A bite an Inc took ends its
40
+ priority tag with "→ Inc n". The story map draws the taken ones inside their Inc and the rest
41
+ here, in the Backlog band: keep one bite per line, in this shape. Untaken bites stay here for as
42
+ long as the slice lives, even when every Inc is done. -->
87
43
 
88
44
  ### Proposed increments
89
45
 
@@ -96,22 +52,18 @@ Plan: → ../plan.md (Slice <nn> · Inc 1) <!-- steps and Tests live there -
96
52
  |---|---|---|---|
97
53
  | Inc 2 — <name> | F1-a · F2-b | <one line, in user language> | <value or dependency: "unlocks F1-c", "needs Inc 1 only"> |
98
54
  | Inc 3 — <name> | F1-c | <…> | <…> |
99
- | Later | ~F1-d · ~F1-e · deferred F1-x | <nice-to-have and deferred, no order promised> | — |
55
+ | Later | ~F1-d · ~F1-e · deferred F1-d1 | <nice-to-have and deferred, no order promised> | — |
100
56
 
101
57
  ### F1 — <Feature name>
102
58
 
103
59
  - **[<User Task>]**
60
+ - **F1-w1 · <Who does or sees what in the skeleton>** (skeleton) → Inc 1 — F1-1.1, F1-2.1
104
61
  - **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 -->
62
+ - ~**F1-b · <Who does or sees what>** (nice-to-have) → Inc 2 — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
106
63
  - **[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>
64
+ - **F1-d1 · <title>** (deferred: <reason, e.g. needs F9>) — F1-1.4, F1-5.2 · prune and split when recovered
114
65
 
115
- ## Trio notes
66
+ ## Files
116
67
 
117
- - <one line per reconciled conflict or trade-off>
68
+ - Slicing: [F1](<nn>-<name>/slicing/F1.md) · [F2](<nn>-<name>/slicing/F2.md)
69
+ - [Context: Discovery, notes and trio notes](<nn>-<name>/context.md) · [Pruned options](<nn>-<name>/pruned.md)
@@ -5,8 +5,8 @@ description: Read-only summary of where a bokata initiative stands — phase, op
5
5
 
6
6
  # bokata-status
7
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.
8
+ Read the files; change nothing. The only thing it may run is the `bokata-render` script described
9
+ at the end, which rewrites `story-map.html` from the markdown — never a state change.
10
10
 
11
11
  ## Configuration
12
12
 
@@ -14,7 +14,10 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
14
14
 
15
15
  ## What to read
16
16
 
17
- `<docs>/<slug>/`: `pitch.md`, `features.md`, `slices/*.md`, `plan.md`. If no slug is given, list the
17
+ `<docs>/<slug>/`: `pitch.md`, `features.md`, the slice **indexes** `slices/<nn>-<name>.md`, the
18
+ `slices/<nn>-<name>/inc-<n>.md` of the increments that are not done (`State`, `Unknowns`, `Pending`) and
19
+ the `Pending` of the done ones, and `plan.md` (only what is in flight). Do not open `slicing/`,
20
+ `context.md` or the Gherkin: status never needs them. If no slug is given, list the
18
21
  initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `slices/`, and ask
19
22
  which one (or summarise them all in one line each).
20
23
 
@@ -29,24 +32,29 @@ Features: <n> · sliced: <list of features with a slice> · not yet: <list>
29
32
  Slice <nn>-<name> (open | done) — Features F1, F2
30
33
  ✔ <built increments> ▶ Inc <n> <name> — next step: "<first unchecked step>"
31
34
  ▲ <k> unknowns: <first one> | ▼ no unknowns
35
+ ⏳ <k> pending (not in the code): <first one>
32
36
  ~ <open nice-to-have scenarios>
33
37
  Backlog: <k> bites (<m> must-have · <d> deferred) — <first two, by ID and title>
34
38
  Next: <the skill or hand-off to run next>
35
39
  ```
36
40
 
37
41
  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
+ - **State of an increment**: `State: done` in its `inc-<n>.md` → done (also every Inc of a slice with
43
+ `Status: done`); otherwise its section in `plan.md` (the checkboxes under `## Slice <nn>` →
44
+ `### Inc <n>`): some checked → building, none → planned; no section → its own `State` (`sliced` or
45
+ `planned`). `plan.md` is temporary: a done Inc has no section there, and that is normal.
46
+ - **Phase** comes from what exists: pitch only → shaped; features → mapped; a slice with an Inc in
47
+ `sliced` (no plan yet) → slicing; Incs planned and none building → planned; some Inc building →
48
+ building; every slice done and no Feature left without a slice → done. A `features.md` carrying `<!-- Mode: single -->` was written by
42
49
  `bokata-slice` in single mode, not by a feature map: it never makes the phase "mapped".
43
50
  - One block per slice, open slices first; done slices get one line (`Slice <nn> done —
44
51
  <k> bites left`). **Backlog** is the slice's `## Backlog` section: its bites that no `Inc` has taken
45
52
  (`must-have` ones counted separately; `~nice-to-have` and deferred are the rest).
46
53
  Which Features have a slice comes from their `**Slice:**` lines in `features.md`. In single
47
54
  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 (▼).
55
+ - **▲ / ▼** is the `Unknowns` line of the increment in flight (its `inc-<n>.md`): open questions mean it
56
+ still needs the user (▲), none means only execution is left (▼). **⏳** counts the `## Pending` items
57
+ of any Inc, done ones included: manual or owner checks that are not in the code.
50
58
  - **Next** is the first that applies: unknowns open → resolve them with the user; slice without
51
59
  a plan → `bokata-plan`; unchecked steps → the executor hand-off line; increment built and backlog left →
52
60
  `bokata-slice <nn> --next` (or `--done` if the user is finished with it); Features without a
@@ -57,9 +65,13 @@ Rules:
57
65
  ## Catch-up story map
58
66
 
59
67
  `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.
68
+ session that closed early). After reporting, if `story_map` is not `false` and `story-map.html`
69
+ is missing or older than the newest of `features.md`, anything under `slices/` and `plan.md`, run the
70
+ `bokata-render` script (milliseconds, no model) and add one line to the report saying the map was
71
+ brought up to date:
72
+
73
+ ```bash
74
+ node .agents/skills/bokata-render/scripts/render.mjs <docs>/<slug>
75
+ ```
76
+
77
+ If it prints an error, report it. If `story_map` is `false`, do nothing.
@@ -23,5 +23,5 @@ implemented" with no proof, reformatted neighbours, progress rows saying "pendin
23
23
  that step's full run and the real commit hash. Never "pending" or "(this run)".
24
24
  10. **A behaviour change outside the step's scenario** is a stop-and-ask, not a deviation note.
25
25
  11. **A refactor is structure only.** If it adds tests or widens behaviour, it is a `feat`.
26
- 12. **Split, don't report.** If a step grows past about one test file and two production files
27
- (four at most), split it before committing, unless the plan marks it indivisible.
26
+ 12. **Split, don't report.** If a step grows past about one test file and one or two production
27
+ files, split it before committing, unless the plan marks it indivisible.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Abraham Vallez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -44,8 +44,8 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
44
44
  | Size | Path |
45
45
  |---|---|
46
46
  | **S** — a fix or tweak | plan mode → `bokata-tdd` (no documents) |
47
- | **M** — one clear feature | `bokata-shape` → `bokata-slice` (single mode; keeps the bite-sized backlog in a one-feature `features.md`) → `bokata-plan` → `code-executor` |
48
- | **L** — several features | `bokata-shape` → `bokata-feature-map` → `bokata-slice` (1–3 features) → `bokata-plan` → `code-executor` |
47
+ | **M** — one clear feature | `bokata-shape` → `bokata-slice` (single mode: the pitch is the one feature; the bite-sized backlog lives in the slice) → `bokata-plan` → `code-executor` |
48
+ | **L** — several features | `bokata-shape` → `bokata-feature-map` → `bokata-slice` (1–4 features) → `bokata-plan` → `code-executor` |
49
49
 
50
50
  `bokata-shape` proposes the size; you confirm it.
51
51
 
@@ -54,13 +54,13 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
54
54
  | Skill | What it does | Writes |
55
55
  |---|---|---|
56
56
  | `bokata-shape` | Grill (the configured method) + Shape Up shaping: narrow the problem, 2–3 approaches as Mermaid breadboards (low-fi HTML sketch when layout matters), one trio pass, rabbit holes and no-gos | `pitch.md` |
57
- | `bokata-feature-map` | Features Backbone + functional ACs with the trio; asks only about gaps in its input | `features.md` + the initiative's `story-map.html` dashboard (rendered by `bokata-render`) |
58
- | `bokata-slice` | Pick 1–4 features → one `feature-slicer` per feature writes Steps and 3+ options per Step, prunes them (each drop with a reason), and groups the rest into small INVEST bites per User Task → the trio reviews the full trace and the bites → you compose Inc 1 (walking skeleton) → concrete ACs for it only. it proposes a roadmap of the next increments (`### Proposed increments`, yours to edit); `--next` adds the next increment as one or more bites and re-prunes what it makes obsolete; `--done` marks the slice done | `slices/<nn>-<name>.md` (slicing, increments, backlog of bites); a one-line `**Slice:**` summary per feature in `features.md`; the increment's cards and the untaken bites in `story-map.html` |
59
- | `bokata-plan` | A contract for your harness's own plan mode: the plan becomes checklists per slice and increment, starting with its acceptance test | the initiative's `plan.md`; syncs `story-map.html` |
57
+ | `bokata-feature-map` | Features Backbone + functional ACs with the trio; asks only about gaps in its input | `features.md` + the initiative's `story-map.html` dashboard (drawn by the `bokata-render` script) |
58
+ | `bokata-slice` | Pick 1–4 features → one `feature-slicer` per feature writes Steps and 3+ options per Step, prunes them (each drop with a reason), and groups the rest into small INVEST bites per User Task → the trio reviews the full trace and the bites → you compose Inc 1 (walking skeleton) → concrete ACs for it only. it proposes a roadmap of the next increments (`### Proposed increments`, yours to edit); `--next` adds the next increment as one or more bites and re-prunes what it makes obsolete; `--done` marks the slice done | `slices/<nn>-<name>.md` (the index: increments and the backlog of bites) + `slices/<nn>-<name>/` (`inc-<n>.md`, `slicing/`, `context.md`, `pruned.md`); a one-line `**Slice:**` summary per feature in `features.md`; the bite cards and the backlog in `story-map.html` |
59
+ | `bokata-plan` | A contract for your harness's own plan mode: the plan becomes checklists per slice and increment, starting with its acceptance test | the initiative's `plan.md`; redraws `story-map.html` |
60
60
  | `bokata-tdd` | Default code method: an acceptance test per increment, then strict small-step TDD with evidence rules | commits |
61
61
  | `bokata-refactor` | Default refactor method: Kent Beck's four rules of simple design, tidyings, code smells mapped to the move that fixes each | `refactor` commits |
62
- | `bokata-status` | Read-only: phase, open slices, current increment and next step, open unknowns, each slice's backlog of bites, features not yet sliced; may dispatch a catch-up render if the story map lags |
63
- | `bokata-render` | Internal: renders and keeps `story-map.html` current (statuses, next step, counters, interactivity) from the markdown; loaded by the `story-map-renderer` agent, never by the user | — |
62
+ | `bokata-status` | Read-only: phase, open slices, each increment's state and next step, open unknowns, pending checks, each slice's backlog of bites, features not yet sliced; redraws the story map if it lags |
63
+ | `bokata-render` | Draws `story-map.html` from the markdown with a script — no model: Features and User Tasks as columns, a band of bite cards per increment, a Backlog band, a minimap and a page per increment, bite, User Task and Feature. `--check` validates the markdown. Run by the other skills and `code-executor`, or by you with `npx bokata render <docs>/<slug>` | `story-map.html` |
64
64
  | `bokata-feature-mapper`, `bokata-feature-slicer`, `bokata-acceptance-criteria` | The methods the phases use; usable on their own | — |
65
65
 
66
66
  ### Agents
@@ -68,10 +68,13 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
68
68
  | Agent | Role | Access |
69
69
  |---|---|---|
70
70
  | `bokata-product-manager` / `-designer` / `-engineer` | Product Trio reviewers and rule contributors | read |
71
- | `code-executor` | Builds a slice's planned increment with `methods.code`; keeps `plan.md` (checklist and test mapping) and the slice's unknowns current; never pushes | write |
71
+ | `code-executor` | Builds a slice's planned increment with `methods.code`; checks off `plan.md` as it goes and, when the Inc is done, sets `State: done`, moves what is not in the code to `Pending` and deletes its plan section; never pushes | write |
72
72
  | `design-reviewer` | Reviews one step's diff with `methods.refactor` and the coding standards | read |
73
- | `story-map-renderer` | Loads `bokata-render` and keeps `story-map.html` current; dispatched by the skills and by `code-executor`, never by you | write |
74
- | `feature-slicer` | Loads `bokata-feature-slicer` and slices one feature into Steps and options; `bokata-slice` dispatches one per feature, in parallel | read |
73
+ | `feature-slicer` | Loads `bokata-feature-slicer` and slices one feature into Steps and options, writing its output to the one file it is given; `bokata-slice` dispatches one per feature, in parallel | write-own |
74
+
75
+ **read** means no edit tool, not no shell: read-only agents keep a shell to run read commands, and
76
+ their instructions forbid writing files (including `>`, `tee`, `sed -i`); the harness does not
77
+ enforce that last part.
75
78
 
76
79
  During trio reviews the **main thread** is the neutral coordinator: it applies
77
80
  non-conflicting findings, settles factual conflicts against the artifacts, and escalates
@@ -82,16 +85,24 @@ genuine product trade-offs to you as one decision point with a recommended defau
82
85
  ```
83
86
  Initiative (pitch.md)
84
87
  └ Features (features.md — the summary: backbone, functional ACs, one Slice line per feature)
85
- └ Slice (slices/<nn>-<name>.md — 1–4 features → usable end to end; open until you mark it done)
86
- ├ Slicing (per feature: User Task → Step → options F1-2.3, with strategy and coverage;
87
- │ pruned with a reason, a target per Step)
88
- ├ Increment (the walking skeleton or one or more bites the user can see; Inc 1 = skeleton;
89
- │ │ concrete ACs written when it enters; Unknowns ▲ / none ▼)
90
- │ └ Plan steps (in the initiative's plan.md, per slice and Inc; checked off commit by commit)
91
- └ Backlog (bites F1-a…: INVEST groups of options per User Task, titled for the user —
92
- what --next picks from)
88
+ └ Slice (slices/<nn>-<name>.md — a short index; 1–4 features → usable end to end; open until you mark it done)
89
+ ├ Slicing (slices/<nn>-<name>/slicing/F<k>.md — per feature: User Task → Step → options F1-2.3,
90
+ │ with strategy and coverage; pruned with a reason in pruned.md, a target per Step)
91
+ ├ Increment (slices/<nn>-<name>/inc-<n>.md — one or more bites the user can see; Inc 1 = the
92
+ │ │ skeleton bites F1-w1…; concrete ACs written when it enters; State: sliced | planned | done;
93
+ │ │ Unknowns ▲ / none ▼; Pending = what is not in the code)
94
+ │ └ Plan steps (in the initiative's plan.md while the Inc is in flight; checked off commit by
95
+ │ commit; deleted when the Inc is done)
96
+ └ Bites (F1-a… in the index's Backlog: INVEST groups of options per User Task, titled for the
97
+ user — an Inc takes some, --next picks from the rest, and they stay while the slice lives)
93
98
  ```
94
99
 
100
+ The index is short on purpose, and nothing is said twice: an Inc's outcome and bites live in the
101
+ index, its state and decisions in its own file, so `--next`, the plan and the executor read a few
102
+ KB instead of the whole history, and Incs built in parallel worktrees never edit the same file.
103
+ `npx bokata render <docs>/<slug>` draws the whole initiative as one page you can open in a
104
+ browser, and `--check` validates the markdown.
105
+
95
106
  A feature belongs to one slice only. An **option** is one way to do one Step; a **bite** groups
96
107
  the options of one or several Steps that make sense together (small, INVEST); an **increment** is
97
108
  the walking skeleton or one or more bites — whatever lets the user see or do something new.
@@ -103,11 +114,16 @@ so you prioritize a handful of bites instead of a hundred option IDs. After Inc
103
114
  **Upgrading an initiative sliced with bokata ≤ 2.0** (scopes per feature, `Increment options`
104
115
  in `features.md`): re-run `npx bokata@latest install` so the `feature-slicer` agent is installed,
105
116
  let the old slices finish as they are, and slice the remaining features with the new
106
- `bokata-slice`. Run `bokata-render` with `rebuild` once to redraw the story map.
117
+ `bokata-slice`. The story map is redrawn from the markdown by the next skill that touches it (or `npx bokata render <docs>/<slug>`).
118
+
119
+ **Slices written as one file** (every earlier bokata): `bokata render` reads only the split layout
120
+ (index + `<nn>-<name>/` folder, see above). Split each slice by hand or with a one-off script: the
121
+ `## Slicing` details to `slicing/F<k>.md`, each `### Inc <n>` body to `inc-<n>.md` with a `State:` line,
122
+ Pruned to `pruned.md`, the Discovery Context, Notes and Trio notes to `context.md`, and
123
+ leave in the index only each Inc's outcome and bites plus the Backlog. Drop the `Plan:` / `Tests:` of
124
+ built Incs and keep whatever is not in the code as `## Pending`. (`closed` is still read as `done`.)
107
125
 
108
- **Slices written before `plan.md` and `done`** (plan checklists and `Tests:` inside the slice file,
109
- `Status: closed`) are not read by the current skills: move each Inc's `Plan:` and `Tests:` into
110
- `plan.md` (under `## Slice <nn>` → `### Inc <n>`) and change `closed` to `done`.
126
+ **Upgrading from 3.0.0-beta.3 or earlier:** the story map is now drawn by a script, not by an agent. Re-run `npx bokata@latest install`: it removes the generated `story-map-renderer` agent and the `render` model from `.bokata.json`. The first skill that touches the initiative, or `npx bokata render <docs>/<slug>`, redraws the board; if a slice file breaks the format, the script says which `file:line`.
111
127
 
112
128
  ## Running the harness
113
129
 
@@ -117,20 +133,20 @@ the harness. Install first (`npx bokata@latest install`), then:
117
133
  | Step | You say | Produces |
118
134
  |---|---|---|
119
135
  | Shape | "Shape this idea: …" (loads `bokata-shape`) | `pitch.md` |
120
- | Feature map (L initiatives) | "bokata-feature-map <slug>" | `features.md`; the dashboard renders in background |
121
- | Slice | "bokata-slice <slug>" — pick 1–4 features; later "bokata-slice <nn> --next" | `slices/<nn>-<name>.md` |
122
- | Plan | In your harness's plan agent: "bokata-plan docs/initiatives/<slug>/slices/<nn>-<name>.md" | checklists in the slice, `Status: planned` |
136
+ | Feature map (L initiatives) | "bokata-feature-map <slug>" | `features.md`; the dashboard is drawn by the `bokata-render` script |
137
+ | Slice | "bokata-slice <slug>" — pick 1–4 features; later "bokata-slice <nn> --next" | `slices/<nn>-<name>.md` + folder `<nn>-<name>/` |
138
+ | Plan | In your harness's plan agent: "bokata-plan docs/initiatives/<slug>/slices/<nn>-<name>.md" | checklists in `plan.md`, `State: planned` in the Inc's file |
123
139
  | Build | Run `code-executor` with the hand-off line the plan printed | commits, checkboxes, story map kept current |
124
- | Check | "bokata-status <slug>" | phase, next step; catches the story map up if it lags |
140
+ | Check | "bokata-status <slug>" | phase, next step; redraws the story map if it lags |
125
141
 
126
- `story-map-renderer` has no step of its own: the skills above and `code-executor` dispatch it
127
- (cheap render model, background) whenever the markdown changes.
142
+ The story map has no step of its own: the skills above and `code-executor` run the `bokata-render`
143
+ script (instant, no model) whenever the markdown changes.
128
144
 
129
145
  ### Per harness
130
146
 
131
147
  - **OpenCode** — skills read from `.agents/skills/`; agents install to `.opencode/agents/`.
132
148
  Name the skill in the session. Primary-capable agents (`code-executor`) appear in the agent
133
- switcher (Tab); `mode: subagent` agents (the trio, `feature-slicer`, `design-reviewer`, `story-map-renderer`)
149
+ switcher (Tab); `mode: subagent` agents (the trio, `feature-slicer`, `design-reviewer`)
134
150
  never do — the session dispatches them itself. Headless:
135
151
  `opencode run --agent code-executor "Build slice docs/initiatives/<slug>/slices/01-<name>.md"`
136
152
  - **Claude Code** — skills install to `.claude/skills/` (invoke by name or `/bokata-shape`);
@@ -164,7 +180,6 @@ Everything is optional; these are the defaults.
164
180
  ```jsonc
165
181
  {
166
182
  "docs": "docs/initiatives", // where initiative folders go
167
- "language": "auto", // conversation follows the user
168
183
  "story_map": true, // story-map.html dashboard; false = markdown only
169
184
  "memory": { // long-lived files bokata reads (and shape updates)
170
185
  "constitution": "CONSTITUTION.md",
@@ -181,7 +196,7 @@ Everything is optional; these are the defaults.
181
196
  "refactor": "bokata-refactor"
182
197
  },
183
198
  "harnesses": [], // filled by install
184
- "models": { … } // per harness: trio | reviewer | executor | render (see below)
199
+ "models": { … } // per harness: trio | reviewer | executor (see below)
185
200
  }
186
201
  ```
187
202
 
@@ -214,16 +229,15 @@ slot: they live in `memory.standards`, which the executor and the reviewer alway
214
229
  ### Default models
215
230
 
216
231
  Planning and analysis (the trio and the design reviewer) get a planning model; writing code
217
- (the executor) gets a coding model; the story-map renderer gets a cheap model because its job is
218
- mechanical. Planning itself runs in your main session — open it with the planning model of your
219
- harness.
232
+ (the executor) gets a coding model. Planning itself runs in your main session — open it with the
233
+ planning model of your harness.
220
234
 
221
- | Harness | Plan and analyse (`trio`, `reviewer`) | Write code (`executor`) | Render the map (`render`) |
222
- |---|---|---|---|
223
- | Claude Code | `opus` | `sonnet` | `haiku` |
224
- | OpenCode | `opencode-go/glm-5.3-flash` | `opencode-go/deepseek-v4.1-flash` | `opencode-go/glm-5.3-flash` |
225
- | Cursor | `glm-flash` | `sonnet` | `glm-flash` |
226
- | Codex | `gpt-5.6-sol` | `gpt-5.6-luna` | `gpt-5.6-luna` |
235
+ | Harness | Plan and analyse (`trio`, `reviewer`) | Write code (`executor`) |
236
+ |---|---|---|
237
+ | Claude Code | `opus` | `sonnet` |
238
+ | OpenCode | `opencode-go/glm-5.3-flash` | `opencode-go/deepseek-v4.1-flash` |
239
+ | Cursor | `glm-flash` | `sonnet` |
240
+ | Codex | `gpt-5.6-sol` | `gpt-5.6-luna` |
227
241
 
228
242
  Set a role to `null` to use the harness's own default model instead.
229
243
 
@@ -23,7 +23,7 @@ Your role across the bokata workflow:
23
23
  - Does the Walking Skeleton compose into a coherent minimal UI, or does it leave users confused/stuck?
24
24
 
25
25
  **Fast Feedback Principle** (shared across all three roles):
26
- Whenever you are reviewing, always ask yourself: *"Does this favor the smallest viable slice that generates learning fastest? Could this UI slice be simplified further to get a testable prototype in front of users sooner?"* Treat the Walking Skeleton + Increments Backlog philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer framing that enables early validation over up-front completeness.
26
+ Whenever you are reviewing, always ask yourself: *"Does this favor the smallest viable slice that generates learning fastest? Could this UI slice be simplified further to get a testable prototype in front of users sooner?"* Treat the Walking Skeleton + backlog-of-bites philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer framing that enables early validation over up-front completeness.
27
27
 
28
28
  ## Your Role in Each Phase
29
29
 
@@ -130,6 +130,6 @@ When contributing Rules for AC generation: return:
130
130
 
131
131
  ## Critical Constraint
132
132
 
133
- **Never write to files.** Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
133
+ **Never write to files** — not with an edit tool, not through shell redirection (`>`, `tee`, `sed -i`). Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
134
134
 
135
135
  **Never ask the user questions.** If something is ambiguous, state an assumption in your Assumptions section and flag it for the orchestrator to verify.
@@ -24,7 +24,7 @@ Your role across the bokata workflow:
24
24
  - Does the skeleton establish patterns that increments should follow, or will they likely diverge?
25
25
 
26
26
  **Fast Feedback Principle** (shared across all three roles):
27
- Whenever you are reviewing, always ask yourself: *"Is there a smaller reversible slice that would let us validate this technical approach before committing further?"* Treat the Walking Skeleton + Increments Backlog philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer technical approaches that are easy to reverse or evolve. Favor experiments and MVPs over premature generalization.
27
+ Whenever you are reviewing, always ask yourself: *"Is there a smaller reversible slice that would let us validate this technical approach before committing further?"* Treat the Walking Skeleton + backlog-of-bites philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer technical approaches that are easy to reverse or evolve. Favor experiments and MVPs over premature generalization.
28
28
 
29
29
  ## Your Role in Each Phase
30
30
 
@@ -132,6 +132,6 @@ When contributing Rules for AC generation: return:
132
132
 
133
133
  ## Critical Constraint
134
134
 
135
- **Never write to files.** Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
135
+ **Never write to files** — not with an edit tool, not through shell redirection (`>`, `tee`, `sed -i`). Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
136
136
 
137
137
  **Never ask the user questions.** If something is ambiguous, state an assumption in your Assumptions section and flag it for the orchestrator to verify.
@@ -18,12 +18,12 @@ Your role across the bokata workflow:
18
18
  **Specific Review Questions:**
19
19
  - Is each Feature/User Task aligned with a real user need or business goal?
20
20
  - Is the Walking Skeleton truly the *minimum viable value* (not just minimum effort)? Does it ship zero value to any user?
21
- - Are Increments Backlog items ordered by business impact, not just technical convenience?
21
+ - Are the backlog's bites ordered by business impact, not just technical convenience?
22
22
  - Is anything valuable missing from the scope?
23
23
  - Would deferring a feature/task break the skeleton's core value prop?
24
24
 
25
25
  **Fast Feedback Principle** (shared across all three roles):
26
- Whenever you are reviewing, always ask yourself: *"Does this favor the smallest viable slice that generates learning fastest? Could this be split smaller for faster feedback?"* Treat the Walking Skeleton + Increments Backlog philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer framing that enables early validation over up-front completeness.
26
+ Whenever you are reviewing, always ask yourself: *"Does this favor the smallest viable slice that generates learning fastest? Could this be split smaller for faster feedback?"* Treat the Walking Skeleton + backlog-of-bites philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer framing that enables early validation over up-front completeness.
27
27
 
28
28
  ## Your Role in Each Phase
29
29
 
@@ -123,6 +123,6 @@ When contributing Rules for AC generation: return:
123
123
 
124
124
  ## Critical Constraint
125
125
 
126
- **Never write to files.** Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
126
+ **Never write to files** — not with an edit tool, not through shell redirection (`>`, `tee`, `sed -i`). Only return text critique and contributions. The coordinating skill is the single writer; you provide input only.
127
127
 
128
128
  **Never ask the user questions.** If something is ambiguous, state an assumption in your Assumptions section and flag it for the orchestrator to verify.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-executor
3
- description: Builds the planned increment of a bokata slice (or a planned fix) in small committed steps, following the project's code method, and keeps the slice file current as its progress record. Use it to execute slices/<slice>.md after bokata-plan.
3
+ description: Builds the planned increment of a bokata slice (or a planned fix) in small committed steps, following the project's code method, and keeps its plan and the Inc's file current as its progress record. Use it to execute slices/<slice>.md after bokata-plan.
4
4
  role: executor
5
5
  mode: all
6
6
  access: write
@@ -16,10 +16,11 @@ contract below, whatever the method.
16
16
  1. Load the skill `{{methods.code}}` and follow it.
17
17
  2. Read `AGENTS.md`, the constitution and the coding standards (paths in `.bokata.json` →
18
18
  `memory`; defaults `CONSTITUTION.md`, `CODING_STANDARDS.md`). They win over the plan.
19
- 3. Read the slice file you were given in full (increments, scenarios, notes and owner
20
- decisions) and your Inc's section in `plan.md`, and the `## Slicing` entries of the options your increment uses (they say which
21
- shortcuts are intended). Build only the increment you were given (by default the one with
22
- unchecked plan steps); never pick options from the backlog.
19
+ 3. Read the slice **index** you were given (your Inc's outcome and bites), **your Inc's file**
20
+ `slices/<nn>-<name>/inc-<n>.md` in full (scenarios, rules, `Unknowns`, owner decisions), your Inc's
21
+ section in `plan.md`, and the `slicing/F<k>.md` entries of the options your increment uses (they
22
+ say which shortcuts are intended). Do not read the other Incs' files. Build only the increment you
23
+ were given (by default the one with unchecked plan steps); never pick options from the backlog.
23
24
 
24
25
  ## The contract (every increment)
25
26
 
@@ -27,9 +28,10 @@ contract below, whatever the method.
27
28
  `<docs>/<slug>/plan.md`, under `## Slice <nn>` → `### Inc <n>`; it is the progress record and
28
29
  must never claim more than the commits contain. Edit **only your own Inc's section**, so Incs
29
30
  built in parallel worktrees touch different lines.
30
- - **Fill `Tests:`** in that same section of `plan.md`: each scenario → the test file and test name
31
- that covers it. Tests are named by behaviour, in the domain's words — never by an ID.
32
- - **Keep `Unknowns` honest** (in the slice file, under the Inc). Add a question the moment you hit one you cannot settle from the
31
+ - **Fill `Tests:`** in that same section of `plan.md` while you build: each scenario → the test file
32
+ and test name that covers it. Tests are named by behaviour, in the domain's words — never by an ID.
33
+ It is working notes: it goes away with the section when the Inc is closed.
34
+ - **Keep `Unknowns` honest** (in the Inc's `inc-<n>.md`). Add a question the moment you hit one you cannot settle from the
33
35
  code; remove it, with the answer in the commit body, when it is settled.
34
36
  - **Stop at a new pattern.** If a step needs an architectural pattern, boundary or dependency
35
37
  that no ADR covers, stop: add it to `Unknowns` and ask. You never write ADRs.
@@ -37,14 +39,23 @@ contract below, whatever the method.
37
39
  - **Never push, merge, stash, amend or rebase.** Stage explicit paths only.
38
40
  - **Never launch another harness or agent CLI** (`opencode`, `claude`, `codex`…) — only the
39
41
  subagents your method asks for, such as `design-reviewer`.
40
- - **Keep the story map current.** At the end of each increment, dispatch the `story-map-renderer` subagent (it loads the `bokata-render`
41
- skill) with operation `state-sync`. Never per commit and never mid-step. Skip it if
42
- `story_map` is `false`. This is harness bookkeeping, not part of the code method: the
43
- renderer reads the slice and updates `story-map.html`; you keep writing code.
44
- - When every must-have step of the increment is checked, set the slice header's
45
- `Current increment: Inc <n> — done` and report: commits, deviations (also written under
46
- `Notes`), open `~` items, and checks still pending. Never mark the slice done — the user does that
47
- with `bokata-slice <nn> --done`; the next increment comes from `bokata-slice <nn> --next`.
42
+ - **Keep the story map current.** At the end of each increment run
43
+ `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<slug>` (milliseconds, no model, no
44
+ subagent). Skip it if `story_map` is `false`; if it prints an error, put it in your report. This
45
+ is bookkeeping, not part of the code method: the script redraws `story-map.html` from the slice
46
+ and `plan.md`; you keep writing code.
47
+ - **Close the Inc.** When every must-have step is checked, in one last commit:
48
+ 1. set `- State: done` in the Inc's `inc-<n>.md` (the state lives only there);
49
+ 2. move to its `## Pending` section whatever is **not in the code**: a manual or owner check still
50
+ to do (a phone test, a real-device walkthrough), a scenario no automated test covers, an unchecked
51
+ step you did not build. Everything that *is* implemented and tested needs no record: the
52
+ scenarios stay in `inc-<n>.md`, and the `Tests:` mapping is dropped;
53
+ 3. **delete the Inc's whole section from `plan.md`** (and the `## Slice` heading above it if that
54
+ leaves it empty). `plan.md` is temporary; git keeps the history;
55
+ 4. write the deviations and decisions of the build under `## Decisions and notes of this Inc`.
56
+ Then report: commits, deviations, open `~` items and what is in `Pending`. Never mark the slice done —
57
+ the user does that with `bokata-slice <nn> --done`; the next increment comes from
58
+ `bokata-slice <nn> --next`.
48
59
 
49
60
  ## Stop and ask
50
61
 
@@ -36,5 +36,5 @@ At most 5 findings, most important first. Each has:
36
36
  - the tests that must stay green while applying it.
37
37
 
38
38
  If the step is already simple, say so in one line. Do not suggest new features, tests for
39
- behaviour outside the step, or style changes a formatter handles. **Do not edit files** — the
40
- executor applies the refactors.
39
+ behaviour outside the step, or style changes a formatter handles. **Do not edit files**, not
40
+ even through shell redirection (`>`, `tee`, `sed -i`) — the executor applies the refactors.