@srobroek/pi-speckit-beads 2.0.1 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## speckit-beads [2.1.0](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v2.0.1...speckit-beads--v2.1.0) (2026-11-29)
2
+
3
+ ### Features
4
+
5
+ * **beads:** beads-feature formula and epic-feature-task hierarchy ([d88484a](https://github.com/srobroek/harness-plugins/commit/d88484a3f9296b7faaa7cdb63e725a5c70ad1bf8)), closes [GH#852](https://github.com/srobroek/GH/issues/852) [gastownhall/beads#5754](https://github.com/gastownhall/beads/issues/5754)
6
+
1
7
  ## speckit-beads [2.0.1](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v2.0.0...speckit-beads--v2.0.1) (2026-11-29)
2
8
 
3
9
  ### Bug Fixes
@@ -1343,6 +1343,11 @@ function installFormulas(repo, srcDir) {
1343
1343
  copyFileSync(src, dest);
1344
1344
  return copies.map(({ name }) => `copied ${name}`);
1345
1345
  }
1346
+ function storyFormulaNote(repo) {
1347
+ if (lstatSync2(join4(repo, ".beads", "formulas", "beads-feature.formula.toml"), { throwIfNoEntry: false })?.isFile())
1348
+ return;
1349
+ return "beads-feature is not installed; run the beads plugin's beads_formulas tool to split user stories into features";
1350
+ }
1346
1351
  function installedExtensions(repo) {
1347
1352
  const registry = join4(repo, ".specify", "extensions", ".registry");
1348
1353
  safePath(registry, repo);
@@ -1490,7 +1495,9 @@ ${ver.stderr}`))
1490
1495
  }
1491
1496
  current = "formulas";
1492
1497
  const copied = installFormulas(repo, join4(pluginRoot(), "formulas"));
1493
- record(current, copied.length ? "done" : "skipped", copied.length ? copied.join(", ") : "every formula already present");
1498
+ const story = storyFormulaNote(repo);
1499
+ const formulas = copied.length ? copied.join(", ") : "every formula already present";
1500
+ record(current, copied.length ? "done" : "skipped", story ? `${formulas}; ${story}` : formulas);
1494
1501
  current = "gitignore";
1495
1502
  const gitignore = ensureGitignore(repo);
1496
1503
  record(current, gitignore.startsWith("appended") ? "done" : "skipped", gitignore);
@@ -35,6 +35,7 @@ pattern = "^(yes|no)$"
35
35
 
36
36
  [[steps]]
37
37
  id = "specify"
38
+ labels = ["speckit:specify"]
38
39
  title = "specify {{feature}}"
39
40
  type = "task"
40
41
  description = "Run /speckit.specify to create specs/{{feature}}/spec.md. PRECONDITION: the /speckit.* skills come from spec-kit, which this package does not ship -- run the speckit-setup skill first. All five command steps here are spec-kit core; no community extension is needed."
@@ -44,6 +45,7 @@ skill_hints = "speckit.specify"
44
45
 
45
46
  [[steps]]
46
47
  id = "clarify"
48
+ labels = ["speckit:clarify"]
47
49
  title = "clarify {{feature}}"
48
50
  type = "task"
49
51
  needs = ["specify"]
@@ -55,6 +57,7 @@ execution_mode = "interactive"
55
57
 
56
58
  [[steps]]
57
59
  id = "clarify-approval"
60
+ labels = ["speckit:clarify-approval"]
58
61
  title = "clarify approval {{feature}}"
59
62
  type = "task"
60
63
  needs = ["clarify"]
@@ -66,6 +69,7 @@ type = "human"
66
69
 
67
70
  [[steps]]
68
71
  id = "plan"
72
+ labels = ["speckit:plan"]
69
73
  title = "plan {{feature}}"
70
74
  type = "task"
71
75
  needs = ["clarify", "clarify-approval"]
@@ -76,6 +80,7 @@ skill_hints = "speckit.plan"
76
80
 
77
81
  [[steps]]
78
82
  id = "tasks"
83
+ labels = ["speckit:tasks"]
79
84
  title = "tasks {{feature}}"
80
85
  type = "task"
81
86
  needs = ["plan"]
@@ -86,6 +91,7 @@ skill_hints = "speckit.tasks"
86
91
 
87
92
  [[steps]]
88
93
  id = "analyze"
94
+ labels = ["speckit:analyze"]
89
95
  title = "analyze {{feature}}"
90
96
  type = "task"
91
97
  needs = ["tasks"]
@@ -97,6 +103,7 @@ execution_mode = "interactive"
97
103
 
98
104
  [[steps]]
99
105
  id = "analyze-approval"
106
+ labels = ["speckit:analyze-approval"]
100
107
  title = "analyze approval {{feature}}"
101
108
  type = "task"
102
109
  needs = ["analyze"]
@@ -108,13 +115,15 @@ type = "human"
108
115
 
109
116
  [[steps]]
110
117
  id = "implement"
118
+ labels = ["speckit:implement"]
111
119
  title = "implement {{feature}}"
112
120
  type = "task"
113
121
  needs = ["analyze", "analyze-approval"]
114
- description = "Work the implementation task beads that are children of this step: bd ready -> bd update <id> --claim -> bd close <id> --reason. There is no assign/validate chain in this profile. Per-file progress and retries ride a [wisp:worklog] wisp linked relates-to this step; the step thread keeps the outcome only. Keep this step open until every child is closed -- bd close on a parent with open children succeeds silently."
122
+ description = "Work the implementation task beads that are children of this step: bd ready -> bd update <id> --claim -> bd close <id> --reason. There is no assign/validate chain in this profile. Per-file progress and retries ride a [wisp:worklog] wisp linked relates-to this step; the step thread keeps the outcome only. Keep this step open until every child is closed -- bd close on a parent with open children succeeds silently. When the spec's user stories ship as separate changes, the children are one beads-feature molecule per story instead, each holding that story's tasks (speckit-ledger: User stories as features)."
115
123
 
116
124
  [[steps]]
117
125
  id = "verify"
126
+ labels = ["speckit:verify"]
118
127
  title = "verify {{feature}}"
119
128
  type = "task"
120
129
  needs = ["implement"]
@@ -126,6 +135,7 @@ execution_agent_mode = "requirements"
126
135
 
127
136
  [[steps]]
128
137
  id = "verify-signoff"
138
+ labels = ["speckit:verify-signoff"]
129
139
  title = "verify sign-off {{feature}}"
130
140
  type = "task"
131
141
  needs = ["verify"]
@@ -137,6 +147,7 @@ type = "human"
137
147
 
138
148
  [[steps]]
139
149
  id = "final-checkpoint"
150
+ labels = ["speckit:final-checkpoint"]
140
151
  title = "final checkpoint {{feature}}"
141
152
  type = "task"
142
153
  needs = ["verify", "verify-signoff"]
@@ -35,6 +35,7 @@ pattern = "^(yes|no)$"
35
35
 
36
36
  [[steps]]
37
37
  id = "specify"
38
+ labels = ["speckit:specify"]
38
39
  title = "specify {{feature}}"
39
40
  type = "task"
40
41
  description = "Run /speckit.specify to create specs/{{feature}}/spec.md. PRECONDITION: the /speckit.* skills come from spec-kit and its extensions, which this package does not ship -- run the speckit-setup skill first. For a no-community workflow, use the basic profile or perform unavailable extension steps directly with the same deliverables and checks; record each fallback on its bead and never skip review or verification."
@@ -44,6 +45,7 @@ skill_hints = "speckit.specify"
44
45
 
45
46
  [[steps]]
46
47
  id = "clarify"
48
+ labels = ["speckit:clarify"]
47
49
  title = "clarify {{feature}}"
48
50
  type = "task"
49
51
  needs = ["specify"]
@@ -55,6 +57,7 @@ execution_mode = "interactive"
55
57
 
56
58
  [[steps]]
57
59
  id = "clarify-approval"
60
+ labels = ["speckit:clarify-approval"]
58
61
  title = "clarify approval {{feature}}"
59
62
  type = "task"
60
63
  needs = ["clarify"]
@@ -66,6 +69,7 @@ type = "human"
66
69
 
67
70
  [[steps]]
68
71
  id = "plan"
72
+ labels = ["speckit:plan"]
69
73
  title = "plan {{feature}}"
70
74
  type = "task"
71
75
  needs = ["clarify", "clarify-approval"]
@@ -76,6 +80,7 @@ skill_hints = "speckit.plan"
76
80
 
77
81
  [[steps]]
78
82
  id = "checklist"
83
+ labels = ["speckit:checklist"]
79
84
  title = "checklist {{feature}}"
80
85
  type = "task"
81
86
  needs = ["tasks"]
@@ -87,6 +92,7 @@ execution_mode = "interactive"
87
92
 
88
93
  [[steps]]
89
94
  id = "tasks"
95
+ labels = ["speckit:tasks"]
90
96
  title = "tasks {{feature}}"
91
97
  type = "task"
92
98
  needs = ["plan"]
@@ -97,6 +103,7 @@ skill_hints = "speckit.tasks"
97
103
 
98
104
  [[steps]]
99
105
  id = "critique"
106
+ labels = ["speckit:critique"]
100
107
  title = "critique {{feature}}"
101
108
  type = "task"
102
109
  needs = ["checklist"]
@@ -107,6 +114,7 @@ skill_hints = "speckit.critique.run"
107
114
 
108
115
  [[steps]]
109
116
  id = "security-review"
117
+ labels = ["speckit:security-review"]
110
118
  title = "security review {{feature}}"
111
119
  type = "task"
112
120
  needs = ["checklist"]
@@ -117,6 +125,7 @@ skill_hints = "speckit.security-review.plan"
117
125
 
118
126
  [[steps]]
119
127
  id = "analyze"
128
+ labels = ["speckit:analyze"]
120
129
  title = "analyze {{feature}}"
121
130
  type = "task"
122
131
  needs = ["critique", "security-review"]
@@ -128,6 +137,7 @@ execution_mode = "interactive"
128
137
 
129
138
  [[steps]]
130
139
  id = "analyze-approval"
140
+ labels = ["speckit:analyze-approval"]
131
141
  title = "analyze approval {{feature}}"
132
142
  type = "task"
133
143
  needs = ["analyze"]
@@ -139,17 +149,18 @@ type = "human"
139
149
 
140
150
  [[steps]]
141
151
  id = "implement"
152
+ labels = ["speckit:implement"]
142
153
  title = "implement {{feature}}"
143
154
  type = "task"
144
155
  needs = ["analyze", "analyze-approval"]
145
- description = "Work the implementation task beads directly. These beads are children of this step; work them via the beads CLI ready -> update <id> --claim -> close <id> --reason. Begin child work only after prerequisites are satisfied; keep this step open until every child is closed."
156
+ description = "Work the implementation task beads directly. These beads are children of this step; work them via the beads CLI ready -> update <id> --claim -> close <id> --reason. Begin child work only after prerequisites are satisfied; keep this step open until every child is closed. When the spec's user stories ship as separate changes, the children are one beads-feature molecule per story instead, each holding that story's tasks (speckit-ledger: User stories as features)."
146
157
 
147
158
  [[steps]]
148
159
  id = "verify-tasks"
149
160
  title = "verify tasks {{feature}}"
150
161
  type = "task"
151
162
  needs = ["implement"]
152
- labels = ["agent:speckit-verify"]
163
+ labels = ["speckit:verify-tasks", "agent:speckit-verify"]
153
164
  description = "Spawn the speckit-verify agent (mode: tasks) for phantom-completion detection; it returns findings as its final message, and the parent writes them to verify-tasks-report.md."
154
165
 
155
166
  [steps.metadata]
@@ -162,7 +173,7 @@ id = "verify"
162
173
  title = "verify {{feature}}"
163
174
  type = "task"
164
175
  needs = ["verify-tasks"]
165
- labels = ["agent:speckit-verify"]
176
+ labels = ["speckit:verify", "agent:speckit-verify"]
166
177
  description = "Spawn the speckit-verify agent (mode: requirements) to validate code against spec.md; it returns findings as its final message, and the parent writes them to verify-report.md."
167
178
 
168
179
  [steps.metadata]
@@ -172,6 +183,7 @@ execution_mode = "subagent"
172
183
 
173
184
  [[steps]]
174
185
  id = "verify-signoff"
186
+ labels = ["speckit:verify-signoff"]
175
187
  title = "verify sign-off {{feature}}"
176
188
  type = "task"
177
189
  needs = ["verify"]
@@ -186,7 +198,7 @@ id = "review"
186
198
  title = "review {{feature}}"
187
199
  type = "task"
188
200
  needs = ["verify", "verify-signoff"]
189
- labels = ["agent:speckit-verify"]
201
+ labels = ["speckit:review", "agent:speckit-verify"]
190
202
  description = "Spawn the speckit-verify agent (mode: review) to review the branch diff against spec.md, plan.md and the spec's task beads; route its findings through the mol-speckit-fix-findings molecule. Multi-dimension or cross-model review: create one review-wisp shell per dimension plus a blocks edge from the downstream step to each, before spawning any reviewer."
191
203
 
192
204
  [steps.metadata]
@@ -196,6 +208,7 @@ execution_mode = "subagent"
196
208
 
197
209
  [[steps]]
198
210
  id = "qa"
211
+ labels = ["speckit:qa"]
199
212
  title = "qa {{feature}}"
200
213
  type = "task"
201
214
  needs = ["review"]
@@ -209,7 +222,7 @@ id = "code-review"
209
222
  title = "code review {{feature}}"
210
223
  type = "task"
211
224
  needs = ["qa"]
212
- labels = ["agent:speckit-verify"]
225
+ labels = ["speckit:code-review", "agent:speckit-verify"]
213
226
  description = "Spawn the speckit-verify agent (mode: review) for a post-QA code review of the branch diff against spec.md, plan.md and the spec's task beads; route its findings through the mol-speckit-fix-findings molecule. Parallel with security-review-post."
214
227
 
215
228
  [steps.metadata]
@@ -219,6 +232,7 @@ execution_mode = "subagent"
219
232
 
220
233
  [[steps]]
221
234
  id = "security-review-post"
235
+ labels = ["speckit:security-review-post"]
222
236
  title = "post-implementation security review {{feature}}"
223
237
  type = "task"
224
238
  needs = ["qa"]
@@ -230,6 +244,7 @@ execution_mode = "subagent"
230
244
 
231
245
  [[steps]]
232
246
  id = "cleanup"
247
+ labels = ["speckit:cleanup"]
233
248
  title = "cleanup {{feature}}"
234
249
  type = "task"
235
250
  needs = ["code-review", "security-review-post"]
@@ -243,7 +258,7 @@ id = "sync-drift"
243
258
  title = "sync drift {{feature}}"
244
259
  type = "task"
245
260
  needs = ["cleanup"]
246
- labels = ["agent:speckit-sync"]
261
+ labels = ["speckit:sync-drift", "agent:speckit-sync"]
247
262
  description = "Spawn the speckit-sync agent (scope: drift) to detect spec/implementation drift. Parallel with sync-conflicts."
248
263
 
249
264
  [steps.metadata]
@@ -256,7 +271,7 @@ id = "sync-conflicts"
256
271
  title = "sync conflicts {{feature}}"
257
272
  type = "task"
258
273
  needs = ["cleanup"]
259
- labels = ["agent:speckit-sync"]
274
+ labels = ["speckit:sync-conflicts", "agent:speckit-sync"]
260
275
  description = "Spawn the speckit-sync agent (scope: conflicts) to detect inter-spec contradictions. Parallel with sync-drift."
261
276
 
262
277
  [steps.metadata]
@@ -266,6 +281,7 @@ execution_mode = "subagent"
266
281
 
267
282
  [[steps]]
268
283
  id = "retro"
284
+ labels = ["speckit:retro"]
269
285
  title = "retro {{feature}}"
270
286
  type = "task"
271
287
  needs = ["sync-drift", "sync-conflicts"]
@@ -276,6 +292,7 @@ skill_hints = "speckit.retro.run"
276
292
 
277
293
  [[steps]]
278
294
  id = "docs-update"
295
+ labels = ["speckit:docs-update"]
279
296
  title = "documentation update {{feature}}"
280
297
  type = "task"
281
298
  needs = ["retro"]
@@ -283,6 +300,7 @@ description = "Update user-facing documentation for the shipped feature on the m
283
300
 
284
301
  [[steps]]
285
302
  id = "final-checkpoint"
303
+ labels = ["speckit:final-checkpoint"]
286
304
  title = "final checkpoint {{feature}}"
287
305
  type = "task"
288
306
  needs = ["docs-update"]
@@ -31,6 +31,7 @@ pattern = "^(yes|no)$"
31
31
 
32
32
  [[steps]]
33
33
  id = "specify"
34
+ labels = ["speckit:specify"]
34
35
  title = "specify {{feature}}"
35
36
  type = "task"
36
37
  description = "Run /speckit.specify to create specs/{{feature}}/spec.md. PRECONDITION: the /speckit.* skills come from spec-kit and its extensions, which this package does not ship -- run the speckit-setup skill first. For a no-community workflow, use the basic profile or perform unavailable extension steps directly with the same deliverables and checks; record each fallback on its bead and never skip review or verification."
@@ -40,6 +41,7 @@ skill_hints = "speckit.specify"
40
41
 
41
42
  [[steps]]
42
43
  id = "clarify"
44
+ labels = ["speckit:clarify"]
43
45
  title = "clarify {{feature}}"
44
46
  type = "task"
45
47
  needs = ["specify"]
@@ -51,6 +53,7 @@ execution_mode = "interactive"
51
53
 
52
54
  [[steps]]
53
55
  id = "clarify-approval"
56
+ labels = ["speckit:clarify-approval"]
54
57
  title = "clarify approval {{feature}}"
55
58
  type = "task"
56
59
  needs = ["clarify"]
@@ -62,6 +65,7 @@ type = "human"
62
65
 
63
66
  [[steps]]
64
67
  id = "plan"
68
+ labels = ["speckit:plan"]
65
69
  title = "plan {{feature}}"
66
70
  type = "task"
67
71
  needs = ["clarify", "clarify-approval"]
@@ -72,6 +76,7 @@ skill_hints = "speckit.plan"
72
76
 
73
77
  [[steps]]
74
78
  id = "tasks"
79
+ labels = ["speckit:tasks"]
75
80
  title = "tasks {{feature}}"
76
81
  type = "task"
77
82
  needs = ["plan"]
@@ -82,6 +87,7 @@ skill_hints = "speckit.tasks"
82
87
 
83
88
  [[steps]]
84
89
  id = "critique"
90
+ labels = ["speckit:critique"]
85
91
  title = "critique {{feature}}"
86
92
  type = "task"
87
93
  needs = ["tasks"]
@@ -92,6 +98,7 @@ skill_hints = "speckit.critique.run"
92
98
 
93
99
  [[steps]]
94
100
  id = "analyze"
101
+ labels = ["speckit:analyze"]
95
102
  title = "analyze {{feature}}"
96
103
  type = "task"
97
104
  needs = ["critique"]
@@ -103,6 +110,7 @@ execution_mode = "interactive"
103
110
 
104
111
  [[steps]]
105
112
  id = "analyze-approval"
113
+ labels = ["speckit:analyze-approval"]
106
114
  title = "analyze approval {{feature}}"
107
115
  type = "task"
108
116
  needs = ["analyze"]
@@ -114,17 +122,18 @@ type = "human"
114
122
 
115
123
  [[steps]]
116
124
  id = "implement"
125
+ labels = ["speckit:implement"]
117
126
  title = "implement {{feature}}"
118
127
  type = "task"
119
128
  needs = ["analyze", "analyze-approval"]
120
- description = "Work the implementation task beads directly. These beads are children of this step; work them via the beads CLI ready -> update <id> --claim -> close <id> --reason. Begin child work only after prerequisites are satisfied; keep this step open until every child is closed."
129
+ description = "Work the implementation task beads directly. These beads are children of this step; work them via the beads CLI ready -> update <id> --claim -> close <id> --reason. Begin child work only after prerequisites are satisfied; keep this step open until every child is closed. When the spec's user stories ship as separate changes, the children are one beads-feature molecule per story instead, each holding that story's tasks (speckit-ledger: User stories as features)."
121
130
 
122
131
  [[steps]]
123
132
  id = "verify-tasks"
124
133
  title = "verify tasks {{feature}}"
125
134
  type = "task"
126
135
  needs = ["implement"]
127
- labels = ["agent:speckit-verify"]
136
+ labels = ["speckit:verify-tasks", "agent:speckit-verify"]
128
137
  description = "Spawn the speckit-verify agent (mode: tasks) for phantom-completion detection; it returns findings as its final message, and the parent writes them to verify-tasks-report.md."
129
138
 
130
139
  [steps.metadata]
@@ -137,7 +146,7 @@ id = "verify"
137
146
  title = "verify {{feature}}"
138
147
  type = "task"
139
148
  needs = ["verify-tasks"]
140
- labels = ["agent:speckit-verify"]
149
+ labels = ["speckit:verify", "agent:speckit-verify"]
141
150
  description = "Spawn the speckit-verify agent (mode: requirements) to validate code against spec.md; it returns findings as its final message, and the parent writes them to verify-report.md."
142
151
 
143
152
  [steps.metadata]
@@ -147,6 +156,7 @@ execution_mode = "subagent"
147
156
 
148
157
  [[steps]]
149
158
  id = "verify-signoff"
159
+ labels = ["speckit:verify-signoff"]
150
160
  title = "verify sign-off {{feature}}"
151
161
  type = "task"
152
162
  needs = ["verify"]
@@ -161,7 +171,7 @@ id = "review"
161
171
  title = "review {{feature}}"
162
172
  type = "task"
163
173
  needs = ["verify", "verify-signoff"]
164
- labels = ["agent:speckit-verify"]
174
+ labels = ["speckit:review", "agent:speckit-verify"]
165
175
  description = "Spawn the speckit-verify agent (mode: review) to review the branch diff against spec.md, plan.md and the spec's task beads; route its findings through the mol-speckit-fix-findings molecule. Multi-dimension or cross-model review: create one review-wisp shell per dimension plus a blocks edge from the downstream step to each, before spawning any reviewer."
166
176
 
167
177
  [steps.metadata]
@@ -171,6 +181,7 @@ execution_mode = "subagent"
171
181
 
172
182
  [[steps]]
173
183
  id = "qa"
184
+ labels = ["speckit:qa"]
174
185
  title = "qa {{feature}}"
175
186
  type = "task"
176
187
  needs = ["review"]
@@ -181,6 +192,7 @@ skill_hints = "speckit.qa.run"
181
192
 
182
193
  [[steps]]
183
194
  id = "docs-update"
195
+ labels = ["speckit:docs-update"]
184
196
  title = "documentation update {{feature}}"
185
197
  type = "task"
186
198
  needs = ["qa"]
@@ -188,6 +200,7 @@ description = "Update user-facing documentation for the shipped feature on the m
188
200
 
189
201
  [[steps]]
190
202
  id = "final-checkpoint"
203
+ labels = ["speckit:final-checkpoint"]
191
204
  title = "final checkpoint {{feature}}"
192
205
  type = "task"
193
206
  needs = ["docs-update"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srobroek/pi-speckit-beads",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "SpecKit on Beads: a tasks.md guard, setup, ledger and bugfix skills, formulas, and the speckit-sync and speckit-verify subagents.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -95,6 +95,29 @@ first. Then add only the missing tasks, one at a time.
95
95
  The graph file is input to one create. Beads holds the state afterwards, so do not edit
96
96
  the file to record progress.
97
97
 
98
+ ## User stories as features
99
+
100
+ A spec's user stories can ship as separate changes. In that case, each story becomes
101
+ one `beads-feature` molecule under the run's implement step. The feature carries the
102
+ story's own design, tests, docs, review and delivery. A spec that ships as one change
103
+ keeps its tasks directly under the implement step.
104
+
105
+ 1. Check that `bd formula list` shows `beads-feature`. If it does not, install it
106
+ with the beads plugin's `beads_formulas` tool.
107
+ 2. For each story, bond a feature under the implement step:
108
+ `bd mol bond beads-feature <implement-step-id> --type parallel --pour --ref us<N> --var title="US<N> <story>"`.
109
+ When the spec does not ask for tests, add `--var tdd=no`.
110
+ 3. Claim the feature root and give it the spec id:
111
+ `bd update <root> --claim --spec-id <NNN-slug>`. bd titles the root from `title`.
112
+ 4. In `tasks.graph.json`, set each task's `parent_id` to its story feature's
113
+ `implement` step. Set it to the feature's `tests` step for the story's test tasks.
114
+ 5. Read the tasks back with `bd query 'spec_id="<NNN-slug>"' --json`. A query by
115
+ `spec_id` reaches every depth. `bd list --parent <implement-step-id>` lists the
116
+ story features only, not their tasks.
117
+
118
+ The run's implement step closes after every story feature closes. When plan.md
119
+ already covers a story's design, close its design step with a note naming plan.md.
120
+
98
121
  ## Work the tasks
99
122
 
100
123
  `bd ready` picks work, `bd update <id> --claim` claims it and `bd close <id> --reason "<evidence>"`