bokata 3.0.0-beta.4 → 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.
- package/.agents/skills/bokata-plan/SKILL.md +2 -2
- package/.agents/skills/bokata-render/SKILL.md +12 -3
- package/.agents/skills/bokata-render/assets/story-map.html +165 -3
- package/.agents/skills/bokata-render/scripts/render.mjs +85 -4
- package/.agents/skills/bokata-shape/SKILL.md +11 -1
- package/.agents/skills/bokata-shape/resources/pitch-template.md +3 -0
- package/.agents/skills/bokata-slice/SKILL.md +21 -22
- package/.agents/skills/bokata-slice/resources/inc-template.md +1 -1
- package/.agents/skills/bokata-slice/resources/slice-template.md +2 -3
- package/.agents/skills/bokata-status/SKILL.md +1 -1
- package/README.md +2 -2
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
|
|
|
20
20
|
- The slice **index** `<docs>/<slug>/slices/<nn>-<name>.md` (the Inc's outcome and bites, and the
|
|
21
21
|
bite lines in `## Backlog` with their options) and, in the folder next to it, the `inc-<n>.md` of
|
|
22
22
|
each increment to plan (its scenarios, rules, `Unknowns`, decisions). The `slicing/F<k>.md` of the
|
|
23
|
-
Feature says what each option ID means; `
|
|
23
|
+
Feature says what each option ID means; `context.md` has the Discovery Context (layers, entry points, limits) and the slice-wide decisions. Read the
|
|
24
24
|
`inc-<n>.md` of **the increments you plan only** — never the built ones. The backlog is not yours
|
|
25
25
|
to plan. Also the initiative's `plan.md` if it exists (what is in flight).
|
|
26
26
|
- The pitch's rabbit holes and no-gos, the constitution, `AGENTS.md`, the glossary, and the
|
|
@@ -81,7 +81,7 @@ Tests:
|
|
|
81
81
|
Never touch another slice's section or a built increment's. In the Inc's **`inc-<n>.md`** (not in
|
|
82
82
|
`plan.md`) keep what is the owner's: set `State: planned`, its `Parallel-safe:` and `Unknowns`, and
|
|
83
83
|
write the `Owner decision: …` notes under `## Decisions and notes of this Inc` (slice-wide ones go in
|
|
84
|
-
`
|
|
84
|
+
`context.md`, under `## Notes`). The slice `Status` stays `open`. `plan.md` is **temporary**: it holds only the Incs in
|
|
85
85
|
flight, and the executor deletes an Inc's section when it is done.
|
|
86
86
|
|
|
87
87
|
If your plan mode does not let you edit files, present the plan for approval first and write
|
|
@@ -40,8 +40,16 @@ One file, no server: open it in a browser. Routes are in the URL hash.
|
|
|
40
40
|
proposed, untaken).
|
|
41
41
|
- **Increment** (`#/inc/<slice>-<n>`) — "when it is done" (the outcome), what becomes possible, bites,
|
|
42
42
|
what is pending, the unknowns and, folded, the full detail of its `inc-<n>.md` (rules, Gherkin).
|
|
43
|
-
- **Bite** (`#/bite/<slice>-<id>`)
|
|
44
|
-
**
|
|
43
|
+
- **Bite** (`#/bite/<slice>-<id>`) — a bite is eaten across layers: each **Step it touches is a row**
|
|
44
|
+
(titled with its layer: Logic, UI, Integration, Data) and **every option of that Step is a card**, aligned
|
|
45
|
+
in columns by option number. Cards say which bite took the option (★ this bite; any other bite or increment
|
|
46
|
+
keeps its state colour and links to it), which were **pruned** (hatched, with the reason and its category),
|
|
47
|
+
and which is the Step's target (◎). Between two slices of bread: what the user gets and its dependencies
|
|
48
|
+
above, how it is checked below. Zoom L · M · S · XS sets the card width; "Hide pruned" hides the cut ones.
|
|
49
|
+
A slice cut before Steps were written down falls back to the plain list of options.
|
|
50
|
+
- **User Task** (`#/ut/<id>`) — where it is covered in every slice, and **all the options of each of its
|
|
51
|
+
Steps together**, coloured by the bite that takes them (the place where bites will be chosen).
|
|
52
|
+
- **Feature** (`#/feature/<code>`).
|
|
45
53
|
|
|
46
54
|
## What it reads
|
|
47
55
|
|
|
@@ -49,7 +57,8 @@ One file, no server: open it in a browser. Routes are in the URL hash.
|
|
|
49
57
|
|---|---|
|
|
50
58
|
| `features.md` | `#### Feature: <name>` (+ `<!-- ID: … -->`) → header; `##### User Task: <name>` (+ `<!-- Task ID: … -->`) → one column each; `##### System Task …` → listed on the Feature page |
|
|
51
59
|
| `slices/<nn>-<name>.md` | the index: `- Status: open \| done`; `### Inc <n> — <name>` with `Outcome:` and `Bites:`; `## Backlog`: the bite lines and the `### Proposed increments` table |
|
|
52
|
-
| `slices/<nn>-<name>/slicing/F<k>.md` | `### User Task: <name
|
|
60
|
+
| `slices/<nn>-<name>/slicing/F<k>.md` | `### User Task: <name>`, Step lines `- **S1 <name>** · UI — …` and option lines `- F1-1.1 <name> — <what changes> · <strategy> · … [→ Inc n] [→ target]` → which User Task and Step each option (and so each bite) belongs to, and what it says |
|
|
61
|
+
| `slices/<nn>-<name>/pruned.md` | `- F1-1.0 <name> — \`obsolete\`: <reason>` → the cut options, drawn in their Step on the bite page |
|
|
53
62
|
| `slices/<nn>-<name>/inc-<n>.md` | `- State: sliced \| planned \| done`, `Unknowns:`, the `Scenario:` lines, the `## Pending` list and the whole body for the Inc page |
|
|
54
63
|
| `plan.md` | `## Slice <nn>` → `### Inc <n>` and their `- [ ]` / `- [x]` boxes → *planned / building*, progress and the "Next" banner |
|
|
55
64
|
|
|
@@ -106,6 +106,54 @@ pre.gh span{display:block}.g-sc{font-weight:700;color:#14326e}.g-st i{font-style
|
|
|
106
106
|
.detail table{border-collapse:collapse;margin:8px 0;font-size:12.5px}.detail td,.detail th{border:1px solid var(--line);padding:4px 8px;text-align:left}
|
|
107
107
|
.banner{background:#fff7e0;border:1px solid #ecd48a;border-radius:8px;padding:8px 12px;margin:8px 16px;font-size:12.5px}
|
|
108
108
|
.tbl{width:100%;border-collapse:collapse;font-size:13px}.tbl td,.tbl th{border-bottom:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top}
|
|
109
|
+
/* layers: the options of every Step, a Step per row */
|
|
110
|
+
.page.wide{max-width:none;padding-left:24px;padding-right:24px}
|
|
111
|
+
.bocata{width:max-content;min-width:100%}
|
|
112
|
+
.bocata-wrap{overflow-x:auto;padding-bottom:8px}
|
|
113
|
+
.bread{background:#f6e7c8;border:1.5px solid #dcc08a;color:#4a3714;padding:10px 18px;font-size:13px;position:relative}
|
|
114
|
+
.bread.top{border-radius:46px 46px 8px 8px/28px 28px 8px 8px;padding-top:14px}
|
|
115
|
+
.bread.bot{border-radius:8px 8px 34px 34px/8px 8px 22px 22px;padding-bottom:14px}
|
|
116
|
+
.bread .in{position:sticky;left:20px;max-width:min(980px,86vw)}
|
|
117
|
+
.bread .ol{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;opacity:.7}
|
|
118
|
+
.bread p{margin:1px 0 6px;font-size:14.5px}
|
|
119
|
+
.bread .chips{margin:2px 0 0}
|
|
120
|
+
.bread .chip{background:#fffaf0;border-color:#dcc08a}
|
|
121
|
+
.layers{--cw:238px;--lw:200px;width:max-content;min-width:100%;margin:8px 0}
|
|
122
|
+
.layers.lz1{--cw:300px}.layers.lz2{--cw:238px}.layers.lz3{--cw:170px;--lw:170px}.layers.lz4{--cw:116px;--lw:130px}
|
|
123
|
+
.lrow{display:grid;grid-template-columns:var(--lw) repeat(var(--n), var(--cw));border-top:1px solid var(--line);padding:6px 0}
|
|
124
|
+
.lrow:first-child{border-top:0}
|
|
125
|
+
.llab{position:sticky;left:0;z-index:5;background:var(--bg);padding:6px 12px 6px 4px;margin-right:6px;display:flex;flex-direction:column;gap:3px;align-items:flex-start;border-radius:8px}
|
|
126
|
+
.llab b{font-size:13.5px;line-height:1.25}
|
|
127
|
+
.llab small{color:var(--mute);font-size:11px}
|
|
128
|
+
.kd{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:4px;padding:1px 6px;color:#fff}
|
|
129
|
+
.kd-logic{background:#7c5cc4}.kd-ui{background:#3f7fd8}.kd-int{background:#d9822b}.kd-data{background:#3f9a6a}
|
|
130
|
+
.ut-sep{position:sticky;left:0;width:max-content;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:var(--mute);padding:12px 4px 2px;border-top:2px solid var(--line)}
|
|
131
|
+
.ut-sep:first-child{border-top:0;padding-top:4px}
|
|
132
|
+
.card.opt{margin:3px 5px;min-height:0;overflow:visible;gap:3px}
|
|
133
|
+
.card.opt .id{flex-wrap:wrap}
|
|
134
|
+
.card.opt .ti{-webkit-line-clamp:6;font-weight:600;font-size:12.5px}
|
|
135
|
+
.card.opt .de{font-size:11.5px;color:#3d4452;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
|
|
136
|
+
.card.opt .cx{font-size:10.5px;color:var(--mute)}
|
|
137
|
+
.card.opt .bt{margin-top:auto;font-size:10.5px;font-weight:700;display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding-top:3px}
|
|
138
|
+
.card.opt.other{opacity:.82}
|
|
139
|
+
.card.opt.other:hover{opacity:1}
|
|
140
|
+
.card.mine{box-shadow:0 0 0 2.5px var(--ink);opacity:1}
|
|
141
|
+
.card.mine .star{margin-left:auto;font-size:14px;line-height:1}
|
|
142
|
+
.tg{color:#b4551b;font-weight:700}
|
|
143
|
+
.card.pruned{background:repeating-linear-gradient(135deg,#f3f4f6,#f3f4f6 6px,#e9ebef 6px,#e9ebef 12px);border:1.5px dashed #9aa1ad;color:#59606d}
|
|
144
|
+
.card.pruned .ti{text-decoration:line-through;text-decoration-color:#aab0bb;font-weight:500}
|
|
145
|
+
.card.pruned .why{font-size:11.5px;color:#454b57}
|
|
146
|
+
.cat{font-size:9.5px;font-weight:700;border-radius:4px;padding:0 5px;margin-left:auto;text-transform:uppercase;letter-spacing:.03em;background:#dfe2e8;color:#444b57}
|
|
147
|
+
.cat-contradicts{background:#f6d6d2;color:#8d2a20}.cat-dominated{background:#e6dcf4;color:#523a80}.cat-obsolete{background:#d8e6f1;color:#2d4c66}.cat-filler{background:#ebe9e2;color:#6b675c}
|
|
148
|
+
.layers.hide-pruned .card.pruned{display:none}
|
|
149
|
+
.layers.lz3 .card.opt .de,.layers.lz3 .card.opt .cx,.layers.lz4 .card.opt .de,.layers.lz4 .card.opt .cx,.layers.lz4 .card.pruned .why{display:none}
|
|
150
|
+
.layers.lz3 .card.opt .ti,.layers.lz4 .card.opt .ti{font-size:11.5px;-webkit-line-clamp:4}
|
|
151
|
+
.layers.lz4 .card.opt .bt{font-size:9.5px}
|
|
152
|
+
.lbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:10px 0 4px;font-size:12.5px;color:var(--mute)}
|
|
153
|
+
.lbar .legend{margin-left:0}
|
|
154
|
+
.lbar .sw-mine{display:inline-block;width:12px;height:12px;border-radius:3px;background:#fff;border:1.5px solid #999;box-shadow:0 0 0 2px var(--ink);vertical-align:-2px;margin-right:5px}
|
|
155
|
+
.lbar .lg-pruned{background:repeating-linear-gradient(135deg,#f3f4f6,#f3f4f6 3px,#dfe2e8 3px,#dfe2e8 6px);border-color:#9aa1ad!important;border-style:dashed!important}
|
|
156
|
+
.sumline{color:var(--mute);font-size:12.5px;margin:2px 0 6px}
|
|
109
157
|
</style>
|
|
110
158
|
</head>
|
|
111
159
|
<body>
|
|
@@ -171,11 +219,11 @@ const sliceByNn = {}, biteByKey = {}, incByKey = {};
|
|
|
171
219
|
D.slices.forEach((s) => { sliceByNn[s.nn] = s; s.bites.forEach((b) => (biteByKey[b.key] = b)); s.incs.forEach((i) => { i.slice = s.nn; incByKey[i.key] = i; }); });
|
|
172
220
|
D.slices.forEach((s) => s.bites.forEach((b) => { b.slice = s.nn; const n = b.taken || b.proposedInc; b.stateInc = n ? incByKey[`${s.nn}-${n}`] || null : null; }));
|
|
173
221
|
|
|
174
|
-
const ui = { minimap: true, zoom: 2, collapsed: new Set(), hideEmpty: false, state: null, prio: null, closed: new Set() };
|
|
222
|
+
const ui = { minimap: true, zoom: 2, lz: 2, hidePruned: false, collapsed: new Set(), hideEmpty: false, state: null, prio: null, closed: new Set() };
|
|
175
223
|
try {
|
|
176
224
|
Object.assign(ui, JSON.parse(sessionStorage.getItem('mapui') || '{}'), { collapsed: new Set(JSON.parse(sessionStorage.getItem('mapcol') || '[]')), closed: new Set() });
|
|
177
225
|
} catch (e) {}
|
|
178
|
-
const save = () => { try { sessionStorage.setItem('mapui', JSON.stringify({ zoom: ui.zoom, hideEmpty: ui.hideEmpty, minimap: ui.minimap })); sessionStorage.setItem('mapcol', JSON.stringify([...ui.collapsed])); } catch (e) {} };
|
|
226
|
+
const save = () => { try { sessionStorage.setItem('mapui', JSON.stringify({ zoom: ui.zoom, lz: ui.lz, hidePruned: ui.hidePruned, hideEmpty: ui.hideEmpty, minimap: ui.minimap })); sessionStorage.setItem('mapcol', JSON.stringify([...ui.collapsed])); } catch (e) {} };
|
|
179
227
|
|
|
180
228
|
// done | building | planned (sliced too) | proposed | back (untaken)
|
|
181
229
|
const cardState = (b) => {
|
|
@@ -368,7 +416,120 @@ function viewInc(key) {
|
|
|
368
416
|
${i.body ? `<details class="more"><summary>${t('detail', i.scenarios)}</summary><div class="detail">${i.body}</div></details>` : ''}
|
|
369
417
|
${src(i.source)}</div>`;
|
|
370
418
|
}
|
|
419
|
+
/* ---------- layers: the options of every Step, a Step per row (bite page and User Task page) ---------- */
|
|
420
|
+
Object.assign(I.en, {
|
|
421
|
+
layersTitle: 'Layers', utLayersTitle: 'All the options of each step', thisBite: 'this bite', pruned: 'pruned', hidePruned: 'Hide pruned',
|
|
422
|
+
stepsN: (n) => `${n} ${n === 1 ? 'step' : 'steps'}`, target: 'step target',
|
|
423
|
+
layersSum: (m, o, p) => `${m} options in this bite · ${o} in other bites · ${p} pruned`,
|
|
424
|
+
utSum: (l, p) => `${l} live options · ${p} pruned`, utHint: 'Every option of each step, coloured by the bite that takes it. This is where bites will be chosen.',
|
|
425
|
+
top: 'What the user gets', bottom: 'How it is checked', skelCheck: 'The skeleton is checked with the acceptance criteria of its increment.', untakenTag: 'untaken'
|
|
426
|
+
});
|
|
427
|
+
Object.assign(I.es, {
|
|
428
|
+
layersTitle: 'Capas', utLayersTitle: 'Todas las opciones de cada step', thisBite: 'este bite', pruned: 'podada', hidePruned: 'Ocultar podadas',
|
|
429
|
+
stepsN: (n) => `${n} ${n === 1 ? 'step' : 'steps'}`, target: 'meta del step',
|
|
430
|
+
layersSum: (m, o, p) => `${m} opciones en este bite · ${o} en otros bites · ${p} podadas`,
|
|
431
|
+
utSum: (l, p) => `${l} opciones vivas · ${p} podadas`, utHint: 'Todas las opciones de cada step, coloreadas por el bite que las toma. Aquí se elegirán los bites.',
|
|
432
|
+
top: 'Qué consigue el usuario', bottom: 'Cómo se comprueba', skelCheck: 'El esqueleto se comprueba con los criterios de aceptación de su incremento.', untakenTag: 'sin tomar'
|
|
433
|
+
});
|
|
434
|
+
const KIND = { Logic: 'kd-logic', UI: 'kd-ui', Integration: 'kd-int', Data: 'kd-data' };
|
|
435
|
+
const LZ = ['', 'L', 'M', 'S', 'XS'];
|
|
436
|
+
const biteOfOpt = {}, incOfOpt = {};
|
|
437
|
+
D.slices.forEach((s) => {
|
|
438
|
+
const m = (biteOfOpt[s.nn] = {}); s.bites.forEach((b) => b.options.forEach((o) => { m[o.id] = b; }));
|
|
439
|
+
const l = (incOfOpt[s.nn] = {}); s.incs.filter((i) => !i.proposed).forEach((i) => i.options.forEach((o) => { if (!m[o.id]) l[o.id] = i; })); // older slices: an Inc lists loose options, no bites
|
|
440
|
+
});
|
|
441
|
+
const incTag = (b) => (b.stateInc ? `Inc ${b.stateInc.n}` : t('untakenTag'));
|
|
442
|
+
const stepKeyOf = (id) => id.replace(/^(F\d+-\d+)\..*$/, '$1');
|
|
443
|
+
|
|
444
|
+
function optCard(o, owner, mine, loose) {
|
|
445
|
+
if (o.state === 'pruned') {
|
|
446
|
+
return `<div class="card opt pruned" title="${esc(o.cat)}"><span class="id">${o.id}<span class="cat cat-${o.cat}">${esc(o.cat)}</span></span><span class="ti">${esc(o.name)}</span><span class="why">${esc(o.reason)}</span></div>`;
|
|
447
|
+
}
|
|
448
|
+
const b = owner[o.id];
|
|
449
|
+
if (!b) {
|
|
450
|
+
const inc = loose[o.id];
|
|
451
|
+
const body = `<span class="id">${o.id}${o.target ? `<span class="tg" title="${t('target')}">◎</span>` : ''}</span><span class="ti">${esc(o.name)}</span>${o.desc ? `<span class="de">${esc(o.desc)}</span>` : ''}${o.strategy ? `<span class="cx">${esc(o.strategy)}</span>` : ''}`;
|
|
452
|
+
return inc
|
|
453
|
+
? `<a class="card opt other c-${incClass(inc)}" href="#/inc/${inc.key}">${body}<span class="bt"><u>Inc ${inc.n}</u></span></a>`
|
|
454
|
+
: `<div class="card opt c-back">${body}<span class="bt">${t('untakenTag')}</span></div>`;
|
|
455
|
+
}
|
|
456
|
+
const isMine = mine && b === mine;
|
|
457
|
+
const inner = `<span class="id">${o.id}${o.target ? `<span class="tg" title="${t('target')}">◎</span>` : ''}${isMine ? '<span class="star">★</span>' : ''}</span>`
|
|
458
|
+
+ `<span class="ti">${esc(o.name)}</span>${o.desc ? `<span class="de">${esc(o.desc)}</span>` : ''}${o.strategy ? `<span class="cx">${esc(o.strategy)}</span>` : ''}`
|
|
459
|
+
+ (isMine ? '' : `<span class="bt"><u>${b.id}</u> · ${incTag(b)}</span>`);
|
|
460
|
+
return isMine
|
|
461
|
+
? `<div class="card opt mine c-${cardState(b)}">${inner}</div>`
|
|
462
|
+
: `<a class="card opt other c-${cardState(b)}" href="#/bite/${b.key}" title="${esc(b.id + ' · ' + b.title)}">${inner}</a>`;
|
|
463
|
+
}
|
|
464
|
+
function layers(slice, steps, mine) {
|
|
465
|
+
const owner = biteOfOpt[slice.nn], loose = incOfOpt[slice.nn];
|
|
466
|
+
const N = Math.max(1, ...steps.map((s) => s.options.length));
|
|
467
|
+
let h = `<div class="layers lz${ui.lz}${ui.hidePruned ? ' hide-pruned' : ''}" style="--n:${N}">`;
|
|
468
|
+
let last = null;
|
|
469
|
+
steps.forEach((s) => {
|
|
470
|
+
if (s.task !== last) { last = s.task; h += `<div class="ut-sep">${esc(taskById[s.task] ? taskById[s.task].name : '—')}</div>`; }
|
|
471
|
+
h += `<div class="lrow"><div class="llab">${s.kind ? `<span class="kd ${KIND[s.kind] || ''}">${esc(s.kind)}</span>` : ''}<b>${esc(s.name)}</b><small>${s.f}-S${s.n}</small></div>`;
|
|
472
|
+
s.options.forEach((o) => { h += optCard(o, owner, mine, loose); });
|
|
473
|
+
h += `</div>`;
|
|
474
|
+
});
|
|
475
|
+
return h + `</div>`;
|
|
476
|
+
}
|
|
477
|
+
const layerBar = (withMine) => `<div class="lbar"><label><input type="checkbox" id="hp" ${ui.hidePruned ? 'checked' : ''}> ${t('hidePruned')}</label>`
|
|
478
|
+
+ `<span class="tool">${t('zoom')} <button data-lz="-1">−</button><b id="lzl">${LZ[ui.lz]}</b><button data-lz="1">+</button></span>`
|
|
479
|
+
+ `<span class="legend">${withMine ? `<span><i class="sw-mine"></i>${t('thisBite')}</span>` : ''}<span><i class="lg-done"></i>${t('done')}</span><span><i class="lg-build"></i>${t('building')}</span><span><i class="lg-planned"></i>${t('planned')}</span><span><i class="lg-plan"></i>${t('proposed')}</span><span><i class="lg-back"></i>${t('back')}</span><span><i class="lg-pruned"></i>${t('pruned')}</span><span><b class="tg">◎</b> ${t('target')}</span></span></div>`;
|
|
480
|
+
const wireBar = () => {
|
|
481
|
+
const hp = $('#hp');
|
|
482
|
+
if (hp) hp.onchange = () => { ui.hidePruned = hp.checked; document.querySelectorAll('.layers').forEach((l) => l.classList.toggle('hide-pruned', hp.checked)); save(); };
|
|
483
|
+
document.querySelectorAll('[data-lz]').forEach((e) => e.addEventListener('click', () => {
|
|
484
|
+
ui.lz = Math.max(1, Math.min(4, ui.lz + +e.dataset.lz)); save();
|
|
485
|
+
document.querySelectorAll('.layers').forEach((l) => { l.className = l.className.replace(/\blz\d\b/, `lz${ui.lz}`); });
|
|
486
|
+
const l = $('#lzl'); if (l) l.textContent = LZ[ui.lz];
|
|
487
|
+
}));
|
|
488
|
+
};
|
|
489
|
+
const countOpts = (steps, owner, mine) => {
|
|
490
|
+
let m = 0, o = 0, p = 0;
|
|
491
|
+
steps.forEach((s) => s.options.forEach((x) => { if (x.state === 'pruned') p++; else if (mine && owner[x.id] === mine) m++; else o++; }));
|
|
492
|
+
return [m, o, p];
|
|
493
|
+
};
|
|
494
|
+
|
|
371
495
|
function viewBite(key) {
|
|
496
|
+
const b = biteByKey[key]; if (!b) return notFound();
|
|
497
|
+
const s = sliceByNn[b.slice];
|
|
498
|
+
const keys = new Set(b.options.map((o) => stepKeyOf(o.id)));
|
|
499
|
+
const steps = (s.trace || []).filter((x) => keys.has(`${x.f}-${x.n}`));
|
|
500
|
+
if (!steps.length) return viewBiteFlat(key); // slices cut before the steps were written down: the plain list
|
|
501
|
+
const tasks = [b.anchor, ...b.others].filter(Boolean);
|
|
502
|
+
const [m, o, p] = countOpts(steps, biteOfOpt[s.nn], b);
|
|
503
|
+
$('#app').innerHTML = `<div class="page wide">${crumbs(sliceLabel(s), `Bite ${b.id}`)}
|
|
504
|
+
<h1>${b.id} · ${esc(b.title)}</h1>
|
|
505
|
+
<div class="chips"><span class="chip pr-${b.priority}" style="${b.priority === 'must-have' ? 'background:var(--ink);color:#fff' : ''}">${esc(b.priority === 'deferred' && b.reason ? `deferred: ${b.reason}` : b.priority)}</span>
|
|
506
|
+
${b.stateInc ? incChip(b.stateInc) : `<span class="pill p-open">${t('notTaken')}</span>`}${chipF(b.feature)}<span class="chip">${t('stepsN', steps.length)}</span></div>
|
|
507
|
+
${layerBar(true)}
|
|
508
|
+
<div class="bocata-wrap"><div class="bocata">
|
|
509
|
+
<div class="bread top"><div class="in">${b.value ? `<div class="ol">${t('top')}</div><p>${esc(b.value)}</p>` : ''}
|
|
510
|
+
${b.dependsOn ? `<div class="ol">${t('dependsOn')}</div><p>${esc(b.dependsOn)}</p>` : ''}
|
|
511
|
+
<div class="ol">${t('userTasks')}</div><div class="chips">${tasks.map(chipUT).join('')}</div></div></div>
|
|
512
|
+
${layers(s, steps, b)}
|
|
513
|
+
<div class="bread bot"><div class="in"><div class="ol">${t('bottom')}</div><p>${b.check ? esc(b.check) : t('skelCheck')}</p></div></div>
|
|
514
|
+
</div></div>
|
|
515
|
+
<div class="sumline">${t('layersSum', m, o, p)}</div>
|
|
516
|
+
${src(b.source)}</div>`;
|
|
517
|
+
wireBar();
|
|
518
|
+
}
|
|
519
|
+
function utLayers(id) {
|
|
520
|
+
let live = 0, pruned = 0;
|
|
521
|
+
const parts = D.slices.map((s) => {
|
|
522
|
+
const steps = (s.trace || []).filter((x) => x.task === id);
|
|
523
|
+
if (!steps.length) return '';
|
|
524
|
+
const [m, o, p] = countOpts(steps, biteOfOpt[s.nn], null);
|
|
525
|
+
live += m + o; pruned += p;
|
|
526
|
+
return `${D.slices.length > 1 ? `<p class="muted" style="margin:14px 0 0">${sliceLabel(s)}</p>` : ''}<div class="bocata-wrap"><div class="bocata">${layers(s, steps, null)}</div></div>`;
|
|
527
|
+
}).join('');
|
|
528
|
+
if (!parts) return '';
|
|
529
|
+
return `<h2>${t('utLayersTitle')}</h2><p class="muted" style="margin:0">${t('utHint')}</p>${layerBar(false)}${parts}<div class="sumline">${t('utSum', live, pruned)}</div>`;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
function viewBiteFlat(key) {
|
|
372
533
|
const b = biteByKey[key]; if (!b) return notFound();
|
|
373
534
|
const s = sliceByNn[b.slice];
|
|
374
535
|
const tasks = [b.anchor, ...b.others].filter(Boolean);
|
|
@@ -389,12 +550,13 @@ function viewUT(id) {
|
|
|
389
550
|
const opts = s.incs.reduce((a, i) => a + i.options.filter((o) => o.task === id).length, 0);
|
|
390
551
|
return { s, bs, incs, opts };
|
|
391
552
|
});
|
|
392
|
-
$('#app').innerHTML = `<div class="page">${crumbs(`<a href="#/feature/${f.code}">${f.code} ${esc(f.name)}</a>`, 'User Task')}
|
|
553
|
+
$('#app').innerHTML = `<div class="page wide">${crumbs(`<a href="#/feature/${f.code}">${f.code} ${esc(f.name)}</a>`, 'User Task')}
|
|
393
554
|
<h1>${esc(x.name)}</h1><div class="chips">${chipF(f.code)}</div>
|
|
394
555
|
${x.desc ? `<p>${esc(x.desc)}</p>` : ''}
|
|
395
556
|
<h2>${t('covered')}</h2>
|
|
396
557
|
<table class="tbl"><tr><th>${t('thSlice')}</th><th>${t('thIncs')}</th><th>${t('thBites')}</th><th>${t('thOpts')}</th></tr>
|
|
397
558
|
${rows.map((r) => `<tr><td>${t('slice')} ${pad2(r.s.nn)}</td><td class="chips">${r.incs.map(incChip).join('') || '<span class="muted">—</span>'}</td><td>${r.bs.length ? `<div class="grid" style="grid-template-columns:repeat(auto-fill,minmax(190px,1fr))">${r.bs.map(miniCard).join('')}</div>` : '<span class="muted">—</span>'}</td><td>${r.opts || '—'}</td></tr>`).join('')}</table>
|
|
559
|
+
${utLayers(id)}
|
|
398
560
|
${src('features.md', t('desc'))}</div>`;
|
|
399
561
|
}
|
|
400
562
|
function viewFeature(code) {
|
|
@@ -192,6 +192,33 @@ export function parseFeatures(file) {
|
|
|
192
192
|
|
|
193
193
|
const sectionName = (heading) => heading.split(/[\s—:]/)[0].toLowerCase();
|
|
194
194
|
|
|
195
|
+
// An option line of slicing/F<k>.md:
|
|
196
|
+
// - F1-1.2 <name> — <what changes> · <strategy> · [covers R1 …] · [skeleton | deferred (…) · F1-a] [→ Inc n] [→ target]
|
|
197
|
+
// Read from the end: the trailing "meta" pieces first, then the strategy, and what is left is the description.
|
|
198
|
+
// (Older slices wrote "paquete F6-e → objetivo" for "F6-e → target": both are accepted.)
|
|
199
|
+
const META = /^(?:covers\b.*|cubre\b.*|skeleton|esqueleto|deferred\b.*|(?:(?:paquete|package|bite)\s+)?(?:F\d+-(?:[a-z]+|[dw]\d+))?(?:\s*→\s*(?:Inc\s*\d+|target|objetivo))*)$/;
|
|
200
|
+
export function optionTail(raw, id) {
|
|
201
|
+
const text = raw.replace(/^\s*-\s+/, '').slice(id.length).trim();
|
|
202
|
+
const dash = text.indexOf(' — ');
|
|
203
|
+
// with no " — " the line is just the name and its trailing pieces
|
|
204
|
+
const parts = (dash < 0 ? text : text.slice(dash + 3)).split(' · ').map((s) => s.trim());
|
|
205
|
+
const name = dash < 0 ? parts.shift() : text.slice(0, dash);
|
|
206
|
+
const keep = dash < 0 ? 0 : 1; // the description is never a strategy or a meta piece
|
|
207
|
+
let target = false;
|
|
208
|
+
// "<strategy> → Inc 1": the arrows may be glued to the last piece with no " · " before them
|
|
209
|
+
const glued = parts.length > keep && !META.test(parts[parts.length - 1]) && parts[parts.length - 1].match(/(?:\s*→\s*(?:Inc\s*\d+|target|objetivo))+\s*$/);
|
|
210
|
+
if (glued) {
|
|
211
|
+
if (/target|objetivo/.test(glued[0])) target = true;
|
|
212
|
+
parts[parts.length - 1] = parts[parts.length - 1].slice(0, glued.index);
|
|
213
|
+
}
|
|
214
|
+
while (parts.length > keep && META.test(parts[parts.length - 1])) {
|
|
215
|
+
if (/→\s*(?:target|objetivo)/.test(parts[parts.length - 1])) target = true;
|
|
216
|
+
parts.pop();
|
|
217
|
+
}
|
|
218
|
+
const strategy = parts.length > keep ? parts.pop() : '';
|
|
219
|
+
return { name: plain(name), desc: plain(parts.join(' · ')), strategy: plain(strategy), target };
|
|
220
|
+
}
|
|
221
|
+
|
|
195
222
|
export function parseSlice(file) {
|
|
196
223
|
const base = path.basename(file, '.md');
|
|
197
224
|
const fm = base.match(/^(\d+)-(.+)$/);
|
|
@@ -283,25 +310,42 @@ export function parseSlice(file) {
|
|
|
283
310
|
}
|
|
284
311
|
});
|
|
285
312
|
|
|
286
|
-
// ---- slicing/F<k>.md: the options and the User Task each belongs to ----
|
|
313
|
+
// ---- slicing/F<k>.md: the Steps, the options (with what they say) and the User Task each belongs to ----
|
|
314
|
+
slice.steps = new Map(); // "F1-3" -> { f, n, name, kind, desc, note, ut }
|
|
287
315
|
const sdir = path.join(dir, 'slicing');
|
|
288
316
|
if (fs.existsSync(sdir)) {
|
|
289
317
|
for (const f of fs.readdirSync(sdir).filter((x) => x.endsWith('.md')).sort()) {
|
|
290
318
|
const sfile = path.join(sdir, f);
|
|
319
|
+
const code = f.match(/^(F\d+)/)?.[1] || null;
|
|
291
320
|
let currentUT = null;
|
|
292
321
|
read(sfile)
|
|
293
322
|
.split('\n')
|
|
294
323
|
.forEach((raw, i) => {
|
|
295
324
|
let m;
|
|
296
325
|
if ((m = raw.match(/^#{2,5}\s+User Task(?:\s+[\d.]+)?:\s*(.+?)\s*$/))) currentUT = plain(m[1]);
|
|
297
|
-
else if ((m = raw.match(/^\s*-\s
|
|
326
|
+
else if (code && (m = raw.match(/^\s*-\s+\*\*S(\d+)\s+(.+?)\*\*(?:\s+·\s+([A-Za-z]+))?(?:\s+—\s+(.*))?$/))) {
|
|
327
|
+
const [desc, note] = (m[4] || '').split(' · note: ');
|
|
328
|
+
slice.steps.set(`${code}-${m[1]}`, { f: code, n: parseInt(m[1], 10), name: plain(m[2]), kind: m[3] || '', desc: plain(desc), note: plain(note || ''), ut: currentUT });
|
|
329
|
+
} else if ((m = raw.match(/^\s*-\s+(F\d+-\d+\.\d+)\s+(.+?)(?:\s+—\s|$)/))) {
|
|
298
330
|
if (!currentUT) throw new RenderError(sfile, i + 1, `option ${m[1]} is not under a "### User Task:" heading`);
|
|
299
|
-
slice.options.set(m[1], { id: m[1],
|
|
331
|
+
slice.options.set(m[1], { id: m[1], ut: currentUT, file: sfile, line: i + 1, ...optionTail(raw, m[1]) });
|
|
300
332
|
}
|
|
301
333
|
});
|
|
302
334
|
}
|
|
303
335
|
}
|
|
304
336
|
|
|
337
|
+
// ---- pruned.md: the options cut with a reason (they are gone from slicing/) ----
|
|
338
|
+
slice.pruned = [];
|
|
339
|
+
const pfile = path.join(dir, 'pruned.md');
|
|
340
|
+
if (fs.existsSync(pfile)) {
|
|
341
|
+
read(pfile)
|
|
342
|
+
.split('\n')
|
|
343
|
+
.forEach((raw, i) => {
|
|
344
|
+
const m = raw.match(/^\s*-\s+(F\d+-\d+\.\d+)\s+(.+?)\s+—\s+`(\w+)`:\s*(.*)$/);
|
|
345
|
+
if (m) slice.pruned.push({ id: m[1], name: plain(m[2]), cat: m[3], reason: m[4].trim(), file: pfile, line: i + 1 });
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
|
|
305
349
|
// ---- inc-<n>.md: State, Unknowns, scenarios, Pending and the body of each increment ----
|
|
306
350
|
for (const incRec of slice.incs) {
|
|
307
351
|
const ifile = path.join(dir, `inc-${incRec.n}.md`);
|
|
@@ -403,6 +447,35 @@ export function buildModel(dir) {
|
|
|
403
447
|
opt.task = taskOf(opt.feature, opt.ut);
|
|
404
448
|
if (!opt.task) throw new RenderError(opt.file, opt.line, `User Task "${opt.ut}" is not a User Task of ${opt.feature} in features.md`);
|
|
405
449
|
}
|
|
450
|
+
// the trace of the slice: its Steps in order, each with its live options and the ones pruned from it
|
|
451
|
+
const stepOf = (id) => id.replace(/\.\d+$/, '');
|
|
452
|
+
const trace = new Map();
|
|
453
|
+
const stepRec = (key, ut) => {
|
|
454
|
+
if (!trace.has(key)) {
|
|
455
|
+
const [f, n] = key.split('-');
|
|
456
|
+
const base = slice.steps.get(key) || { f, n: parseInt(n, 10), name: `Step ${n}`, kind: '', desc: '', note: '', ut };
|
|
457
|
+
const task = taskOf(f, base.ut);
|
|
458
|
+
if (!task && slice.steps.has(key)) issues.push({ file: slice.file, line: 0, text: `${slice.base}/slicing/${f}.md: Step S${n} is under User Task "${base.ut}", which is not a User Task of ${f} in features.md` });
|
|
459
|
+
trace.set(key, { ...base, task, options: [] });
|
|
460
|
+
}
|
|
461
|
+
return trace.get(key);
|
|
462
|
+
};
|
|
463
|
+
for (const key of slice.steps.keys()) stepRec(key);
|
|
464
|
+
for (const o of slice.options.values()) {
|
|
465
|
+
stepRec(stepOf(o.id), o.ut).options.push({ id: o.id, name: o.name, desc: o.desc, strategy: o.strategy, target: o.target, state: 'live' });
|
|
466
|
+
}
|
|
467
|
+
for (const p of slice.pruned) {
|
|
468
|
+
const st = trace.get(stepOf(p.id));
|
|
469
|
+
if (!st) {
|
|
470
|
+
if (slice.steps.size) issues.push({ file: p.file, line: p.line, text: `pruned option ${p.id} has no Step in ${slice.base}/slicing/` });
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
st.options.push({ id: p.id, name: p.name, cat: p.cat, reason: p.reason, state: 'pruned' });
|
|
474
|
+
}
|
|
475
|
+
const num = (id) => parseInt(id.match(/\.(\d+)$/)[1], 10);
|
|
476
|
+
for (const st of trace.values()) st.options.sort((a, b) => num(a.id) - num(b.id));
|
|
477
|
+
slice.trace = [...trace.values()].sort((a, b) => a.f.localeCompare(b.f, undefined, { numeric: true }) || a.n - b.n);
|
|
478
|
+
|
|
406
479
|
const byId = new Map(slice.bites.map((b) => [b.id, b]));
|
|
407
480
|
const optionOwner = new Map();
|
|
408
481
|
for (const bite of slice.bites) {
|
|
@@ -512,7 +585,15 @@ function dataOf(model, lang, date) {
|
|
|
512
585
|
};
|
|
513
586
|
for (const s of slices) {
|
|
514
587
|
const k = (id) => `${s.nn}-${id}`;
|
|
515
|
-
const sl = {
|
|
588
|
+
const sl = {
|
|
589
|
+
nn: s.nn,
|
|
590
|
+
name: sliceName(s.base),
|
|
591
|
+
base: s.base,
|
|
592
|
+
status: s.status,
|
|
593
|
+
incs: [],
|
|
594
|
+
bites: [],
|
|
595
|
+
trace: s.trace.map((st) => ({ f: st.f, n: st.n, name: st.name, kind: st.kind, desc: st.desc, note: st.note, task: st.task ? st.task.id : null, options: st.options }))
|
|
596
|
+
};
|
|
516
597
|
for (const b of s.bites) {
|
|
517
598
|
sl.bites.push({
|
|
518
599
|
key: k(b.id),
|
|
@@ -64,7 +64,9 @@ Sketch two or three approaches at the right altitude: concrete enough to judge,
|
|
|
64
64
|
to leave room for design. Follow [resources/breadboarding.md](resources/breadboarding.md):
|
|
65
65
|
|
|
66
66
|
- every approach gets a **Mermaid breadboard** (places, affordances, connections);
|
|
67
|
-
- add a **low-fi fat-marker sketch** (HTML) only when spatial layout is part of the decision
|
|
67
|
+
- add a **low-fi fat-marker sketch** (HTML) only when spatial layout is part of the decision;
|
|
68
|
+
- keep them in `<docs>/<slug>/approaches.md` while you work: the narrowed problem, then one section
|
|
69
|
+
per approach with its breadboard (and a link to its sketch). Step 4 decides what becomes of it.
|
|
68
70
|
|
|
69
71
|
## 3. Trio pass over the approaches
|
|
70
72
|
|
|
@@ -101,6 +103,14 @@ Write `<docs>/<slug>/pitch.md` from the template. No time estimates or appetite
|
|
|
101
103
|
instead write one **ambition** line (for example "minimum a coach can use in a real match"
|
|
102
104
|
or "fully polished"). It is the tie-breaker when choosing between two solutions.
|
|
103
105
|
|
|
106
|
+
**What becomes of `approaches.md`.** The pitch keeps one line per approach (`### Approaches
|
|
107
|
+
considered`: the chosen one and why, the others and why not) and the breadboard of the chosen one.
|
|
108
|
+
- If those lines say it all, **delete `approaches.md`**: the pitch and the Discovery Context of
|
|
109
|
+
`bokata-slice` carry the decision.
|
|
110
|
+
- If the approaches need more than a line each — a breadboard per approach, a sketch, a comparison
|
|
111
|
+
someone will want to reread — **keep it as an annex** and link it from `### Approaches considered`.
|
|
112
|
+
It is a record of what was weighed: no other bokata skill reads it, so nothing downstream pays for it.
|
|
113
|
+
|
|
104
114
|
Self-review before you show it: no placeholders, no contradictions, every rabbit hole has an
|
|
105
115
|
outcome, every no-go is explicit.
|
|
106
116
|
|
|
@@ -22,6 +22,9 @@ flowchart LR
|
|
|
22
22
|
|
|
23
23
|
### Approaches considered
|
|
24
24
|
|
|
25
|
+
<!-- One line per approach. If they need more (a breadboard each, a sketch), keep that in an annex
|
|
26
|
+
and link it here: [approaches](approaches.md). Otherwise delete approaches.md. -->
|
|
27
|
+
|
|
25
28
|
- **A — <name>** ← chosen: <why>
|
|
26
29
|
- **B — <name>**: <why not>
|
|
27
30
|
|
|
@@ -26,9 +26,8 @@ Slice 1–4 Features → a usable flow, end to end; open until the user
|
|
|
26
26
|
slices/<nn>-<name>.md INDEX: header, Increments (outcome + bites), Backlog (bite lines, proposed increments), links
|
|
27
27
|
slices/<nn>-<name>/inc-<n>.md one Increment: State, Unknowns, Gherkin, rules, its decisions, Pending
|
|
28
28
|
slices/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
|
|
29
|
-
slices/<nn>-<name>/
|
|
29
|
+
slices/<nn>-<name>/context.md the Discovery Context, then the slice-wide Notes and the Trio notes
|
|
30
30
|
slices/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
|
|
31
|
-
slices/<nn>-<name>/discovery.md the Discovery Context
|
|
32
31
|
```
|
|
33
32
|
|
|
34
33
|
- **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
|
|
@@ -36,7 +35,8 @@ slices/<nn>-<name>/discovery.md the Discovery Context
|
|
|
36
35
|
- **State lives only in `inc-<n>.md`** (`State: sliced | planned | done`; `building` is derived from
|
|
37
36
|
the checked steps in `plan.md`). A `done` slice shows every Inc as done.
|
|
38
37
|
- **A decision about one Inc goes in that Inc's file** (`## Decisions and notes of this Inc`);
|
|
39
|
-
`
|
|
38
|
+
`context.md` (its `## Notes`) holds only what concerns the whole slice. Slices cut earlier have `notes.md` and
|
|
39
|
+
`discovery.md` side by side instead of `context.md`: read them the same way.
|
|
40
40
|
- Templates: [slice-template.md](resources/slice-template.md) (the index) and
|
|
41
41
|
[inc-template.md](resources/inc-template.md).
|
|
42
42
|
|
|
@@ -145,8 +145,8 @@ If the input is already rich, say so and ask only about what is missing:
|
|
|
145
145
|
|
|
146
146
|
Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
|
|
147
147
|
Layer Decisions / Increment Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
|
|
148
|
-
Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/
|
|
149
|
-
subagent below receives its path.
|
|
148
|
+
Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/context.md`** (it is the first
|
|
149
|
+
section of that file; the Notes and Trio notes are appended to it at the end). Every subagent below receives its path.
|
|
150
150
|
|
|
151
151
|
---
|
|
152
152
|
|
|
@@ -167,7 +167,7 @@ subagent_type: feature-slicer
|
|
|
167
167
|
prompt: "Slice this Feature. Feature code: F<n>.
|
|
168
168
|
- Feature: [name and ID] — its Purpose, User Tasks and System Tasks are in <docs>/<slug>/features.md
|
|
169
169
|
(in single mode, the confirmed list of Step 1b was written there)
|
|
170
|
-
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/
|
|
170
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
171
171
|
- Constitution / glossary paths: [from .bokata.json]
|
|
172
172
|
- Functional ACs — open ONLY for the Phase 3 coverage check: this Feature's Requirements + Scenarios
|
|
173
173
|
in features.md [in single mode: "none — skip the coverage check"]
|
|
@@ -220,7 +220,7 @@ user in the decision point of 3d. Then check there is no dependency cycle across
|
|
|
220
220
|
|
|
221
221
|
The trio reviews **the complete traces and the bites**, not a summary: they can only miss
|
|
222
222
|
options they can see, and only object to a pruning they can read. They are given the **paths** of the
|
|
223
|
-
files (`work/F<n>.md`, `work/
|
|
223
|
+
files (`work/F<n>.md`, `work/context.md`, `features.md`) and read them themselves: you never paste a
|
|
224
224
|
trace into a prompt, so the traces are not written out again three times.
|
|
225
225
|
|
|
226
226
|
**Task 1: bokata-product-manager**
|
|
@@ -229,7 +229,7 @@ subagent_type: bokata-product-manager
|
|
|
229
229
|
prompt: "Review the slicing of [Features] from the value/viability lens. You have:
|
|
230
230
|
- Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites), one file per Feature: [the paths of every work/F<n>.md]
|
|
231
231
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
232
|
-
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/
|
|
232
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
233
233
|
Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
|
|
234
234
|
value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
|
|
235
235
|
Step — propose it with its Step ID. Which options unlock the most value next? Also review the
|
|
@@ -245,7 +245,7 @@ subagent_type: bokata-product-designer
|
|
|
245
245
|
prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
|
|
246
246
|
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
247
247
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
248
|
-
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/
|
|
248
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
249
249
|
Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
|
|
250
250
|
experience across the Features? Which UI states are essential to the skeleton and which can wait?
|
|
251
251
|
Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
|
|
@@ -262,7 +262,7 @@ subagent_type: bokata-product-engineer
|
|
|
262
262
|
prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
|
|
263
263
|
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
264
264
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
265
|
-
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/
|
|
265
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
266
266
|
Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
|
|
267
267
|
reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
|
|
268
268
|
(in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
|
|
@@ -345,8 +345,8 @@ for options still in the backlog.
|
|
|
345
345
|
|
|
346
346
|
**Subagents get paths, not pasted content.** Where the prompts below say *the trace files* and *the
|
|
347
347
|
Discovery Context*, give the paths: for a new slice `slices/<nn>-wip/work/F<n>.md` and
|
|
348
|
-
`slices/<nn>-wip/work/
|
|
349
|
-
`slices/<nn>-<name>/
|
|
348
|
+
`slices/<nn>-wip/work/context.md`; for `--next` the final `slices/<nn>-<name>/slicing/F<n>.md` and
|
|
349
|
+
`slices/<nn>-<name>/context.md`. The increments already in the slice are the `## Increments` of the
|
|
350
350
|
index.
|
|
351
351
|
|
|
352
352
|
### 4a. Trio contributes Rules (Subagents, Parallel)
|
|
@@ -360,7 +360,7 @@ prompt: "Contribute business-rule Rules for increment [Inc n] of slice [nn], fro
|
|
|
360
360
|
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
361
361
|
- Increments already in the slice (for context): the `## Increments` of <index path>
|
|
362
362
|
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
363
|
-
- Discovery Context: [path of
|
|
363
|
+
- Discovery Context: [path of context.md]
|
|
364
364
|
Do NOT ask the user questions. Give launch-blocking rules for this increment and the value it
|
|
365
365
|
unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
|
|
366
366
|
sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
|
|
@@ -373,7 +373,7 @@ prompt: "Contribute UX/UI Rules for increment [Inc n] of slice [nn], from the us
|
|
|
373
373
|
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
374
374
|
- Increments already in the slice: the `## Increments` of <index path>
|
|
375
375
|
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
376
|
-
- Discovery Context: [path of
|
|
376
|
+
- Discovery Context: [path of context.md]
|
|
377
377
|
Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
|
|
378
378
|
increment needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
|
|
379
379
|
```
|
|
@@ -385,7 +385,7 @@ prompt: "Contribute technical Rules for increment [Inc n] of slice [nn], from th
|
|
|
385
385
|
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
386
386
|
- Increments already in the slice: the `## Increments` of <index path>
|
|
387
387
|
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
388
|
-
- Discovery Context: [path of
|
|
388
|
+
- Discovery Context: [path of context.md]
|
|
389
389
|
Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
|
|
390
390
|
increment, and whether it builds on earlier increments or reshapes them. Format per your agent
|
|
391
391
|
file (Contributed Rules — Engineer Lens)."
|
|
@@ -398,7 +398,7 @@ Merge the three contributions into one enrichment block (de-duplicated). Then:
|
|
|
398
398
|
bokata-acceptance-criteria --concrete
|
|
399
399
|
Input: [the increment: outcome, bites (ID and title), option IDs; the trace files hold what each option means: <paths>]
|
|
400
400
|
Enrichment: [consolidated Rules]
|
|
401
|
-
Discovery Context: [path of
|
|
401
|
+
Discovery Context: [path of context.md]
|
|
402
402
|
Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
|
|
403
403
|
Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
|
|
404
404
|
scenarios only for this increment, with concrete example data. Return the ## Acceptance Criteria
|
|
@@ -429,7 +429,7 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
429
429
|
again — a trace is tens of KB.
|
|
430
430
|
- `slices/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
|
|
431
431
|
`work/F<k>.md` (the Walking Skeleton proposal, Pruned, Bites and Self-check go elsewhere; the
|
|
432
|
-
Assumptions to `
|
|
432
|
+
Assumptions to the `## Notes` of `context.md`): its reconciled trace (Steps, options,
|
|
433
433
|
strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it plus the
|
|
434
434
|
trio's added options; append `→ Inc 1` to every option Inc 1 took (replacing the slicer's
|
|
435
435
|
`skeleton` marker);
|
|
@@ -437,7 +437,7 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
437
437
|
`Unknowns:`, an empty `Parallel-safe:` and the concrete ACs (fixtures, Rules, Gherkin) exactly as
|
|
438
438
|
returned. The Inc's name, outcome and bites are **not** repeated here — they are in the index;
|
|
439
439
|
- `slices/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
|
|
440
|
-
`
|
|
440
|
+
`context.md` (`work/context.md`, moved, with `## Notes` and `## Trio notes` appended after the Discovery Context);
|
|
441
441
|
then **delete `work/`**;
|
|
442
442
|
- the index `slices/<nn>-<name>.md` from [slice-template.md](resources/slice-template.md):
|
|
443
443
|
header with `Status: open`; `## Increments` with `### Inc 1 — Walking skeleton`, its
|
|
@@ -466,8 +466,7 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
466
466
|
- [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
|
|
467
467
|
and each in exactly one bite
|
|
468
468
|
- [ ] The slice has its index (Inc 1 with outcome and skeleton bites, Backlog of bites) and its
|
|
469
|
-
folder: `inc-1.md` with concrete Gherkin, `slicing/F<k>.md` per Feature, `
|
|
470
|
-
`discovery.md`
|
|
469
|
+
folder: `inc-1.md` with concrete Gherkin, `slicing/F<k>.md` per Feature, `context.md`, `pruned.md`
|
|
471
470
|
- [ ] `features.md` gained only a `**Slice:**` line per picked Feature
|
|
472
471
|
- [ ] The `bokata-render` script ran without errors (if `story_map`)
|
|
473
472
|
|
|
@@ -495,7 +494,7 @@ After Inc 1 is built: `bokata-slice <nn> --next`.
|
|
|
495
494
|
For an **open** slice whose current increment is built (or when the user wants to queue the next
|
|
496
495
|
one):
|
|
497
496
|
|
|
498
|
-
1. Read the **index** (`Increments`, `Backlog` — the bites), `
|
|
497
|
+
1. Read the **index** (`Increments`, `Backlog` — the bites), `context.md`, `pruned.md`, and the
|
|
499
498
|
`slicing/F<k>.md` of the Features whose bites you may take; read an `inc-<n>.md` only for an Inc
|
|
500
499
|
you must reason about (its `Pending` and decisions). Also the functional ACs of the Features from
|
|
501
500
|
`features.md`. Do not read the Gherkin of the Incs already built.
|
|
@@ -532,7 +531,7 @@ one):
|
|
|
532
531
|
Only when the user asks — nothing marks a slice done by itself. First **sweep**: read every
|
|
533
532
|
`inc-<n>.md` and `plan.md`'s section for this slice and **list what is still open** — an Inc whose
|
|
534
533
|
`State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item — and ask the user whether to
|
|
535
|
-
go on. Then set `Status: done` in the index header, add a closing line to `
|
|
534
|
+
go on. Then set `Status: done` in the index header, add a closing line to the `## Notes` of `context.md` (what is built,
|
|
536
535
|
which bites stay in the backlog), delete this slice's section from `plan.md` if it still has one,
|
|
537
536
|
update the `**Slice:**` lines in `features.md` with `· done`, and run the `bokata-render` script. The
|
|
538
537
|
backlog stays in the index; to build more of these Features later, the user reopens this slice
|
|
@@ -22,7 +22,7 @@ Scenario: <concrete name>
|
|
|
22
22
|
## Decisions and notes of this Inc
|
|
23
23
|
|
|
24
24
|
<!-- What the owner and the trio decided about THIS increment, and what building it discovered.
|
|
25
|
-
Slice-wide decisions go in
|
|
25
|
+
Slice-wide decisions go in context.md (## Notes). Optional until there is something to say. -->
|
|
26
26
|
|
|
27
27
|
- Owner decision: <…>
|
|
28
28
|
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
inc-<n>.md one increment: State, Unknowns, Gherkin, rules, decisions, Pending (inc-template.md)
|
|
5
5
|
slicing/F<k>.md one Feature's trace: User Task → Step → options (written once)
|
|
6
|
-
|
|
6
|
+
context.md the Discovery Context of Step 2, then the slice-wide notes and the Trio notes
|
|
7
7
|
pruned.md options pruned after the slicing, one line each with its reason
|
|
8
|
-
discovery.md the Discovery Context of Step 2
|
|
9
8
|
|
|
10
9
|
Nothing is said twice. The index holds what never changes once written (outcome, bites); the
|
|
11
10
|
state of an increment lives only in its `inc-<n>.md`, so Incs built in parallel worktrees never
|
|
@@ -67,4 +66,4 @@
|
|
|
67
66
|
## Files
|
|
68
67
|
|
|
69
68
|
- Slicing: [F1](<nn>-<name>/slicing/F1.md) · [F2](<nn>-<name>/slicing/F2.md)
|
|
70
|
-
- [
|
|
69
|
+
- [Context: Discovery, notes and trio notes](<nn>-<name>/context.md) · [Pruned options](<nn>-<name>/pruned.md)
|
|
@@ -17,7 +17,7 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
|
|
|
17
17
|
`<docs>/<slug>/`: `pitch.md`, `features.md`, the slice **indexes** `slices/<nn>-<name>.md`, the
|
|
18
18
|
`slices/<nn>-<name>/inc-<n>.md` of the increments that are not done (`State`, `Unknowns`, `Pending`) and
|
|
19
19
|
the `Pending` of the done ones, and `plan.md` (only what is in flight). Do not open `slicing/`,
|
|
20
|
-
`
|
|
20
|
+
`context.md` or the Gherkin: status never needs them. If no slug is given, list the
|
|
21
21
|
initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `slices/`, and ask
|
|
22
22
|
which one (or summarise them all in one line each).
|
|
23
23
|
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
|
|
|
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
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/`, `
|
|
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
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 |
|
|
@@ -119,7 +119,7 @@ let the old slices finish as they are, and slice the remaining features with the
|
|
|
119
119
|
**Slices written as one file** (every earlier bokata): `bokata render` reads only the split layout
|
|
120
120
|
(index + `<nn>-<name>/` folder, see above). Split each slice by hand or with a one-off script: the
|
|
121
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`, Notes and Trio notes to `
|
|
122
|
+
Pruned to `pruned.md`, the Discovery Context, Notes and Trio notes to `context.md`, and
|
|
123
123
|
leave in the index only each Inc's outcome and bites plus the Backlog. Drop the `Plan:` / `Tests:` of
|
|
124
124
|
built Incs and keep whatever is not in the code as `## Pending`. (`closed` is still read as `done`.)
|
|
125
125
|
|
package/package.json
CHANGED