@pmelab/gtd 52.0.0 → 52.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.
Files changed (51) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +5 -2
  3. package/dist/chunks/{reserved-D0MKVFFa.mjs → reserved-DxB5CROj.mjs} +46 -5
  4. package/dist/chunks/{review-ZzUQH1KZ.mjs → review-CKMSdvgW.mjs} +2 -2
  5. package/dist/chunks/{tail-I1-vVq0P.mjs → tail-QZc7Uz2U.mjs} +1 -1
  6. package/dist/workflows/cleanup.mjs +2 -2
  7. package/dist/workflows/feature.mjs +51 -4
  8. package/dist/workflows/fix.mjs +2 -2
  9. package/dist/workflows/review.mjs +3 -3
  10. package/dist/workflows/rollout.mjs +1 -1
  11. package/dist/workflows.mjs +93 -5
  12. package/package.json +5 -4
  13. package/src/testkit/steps.ts +13 -0
  14. package/src/workflows/feature/acceptance-criteria.feature +159 -3
  15. package/src/workflows/feature/continuation-cap.feature +4 -0
  16. package/src/workflows/feature/continuation-rebuild.feature +4 -0
  17. package/src/workflows/feature/continuation-slices.feature +4 -0
  18. package/src/workflows/feature/continuation.feature +4 -0
  19. package/src/workflows/feature/criteria.test.ts +22 -1
  20. package/src/workflows/feature/criteria.ts +66 -1
  21. package/src/workflows/feature/fast-path.feature +4 -0
  22. package/src/workflows/feature/feature.test.ts +6 -5
  23. package/src/workflows/feature/flag-mode.feature +4 -0
  24. package/src/workflows/feature/hands-on-skip.feature +40 -0
  25. package/src/workflows/feature/lens-models.feature +4 -0
  26. package/src/workflows/feature/lens-review.feature +4 -0
  27. package/src/workflows/feature/naive-acceptance.feature +4 -0
  28. package/src/workflows/feature/one-step-land.feature +4 -0
  29. package/src/workflows/feature/planning.ts +2 -1
  30. package/src/workflows/feature/prototype-rounds.feature +4 -0
  31. package/src/workflows/feature/prototype.feature +8 -0
  32. package/src/workflows/feature/refactor-absorbs.feature +4 -0
  33. package/src/workflows/feature/refactor-first.feature +4 -0
  34. package/src/workflows/feature/refactor-lens-models.feature +4 -0
  35. package/src/workflows/feature/refactor-rebuild.feature +4 -0
  36. package/src/workflows/feature/refactor-review.feature +20 -0
  37. package/src/workflows/feature/review-answers.feature +4 -0
  38. package/src/workflows/feature/review-gate.feature +12 -0
  39. package/src/workflows/feature/reviewer-walkthrough.feature +4 -0
  40. package/src/workflows/feature/risk-tier.feature +32 -0
  41. package/src/workflows/feature/seam-rejection.feature +8 -0
  42. package/src/workflows/feature/seam.feature +8 -0
  43. package/src/workflows/feature/seam.test.ts +4 -2
  44. package/src/workflows/feature/severity-budget.feature +4 -0
  45. package/src/workflows/feature/severity-sorted-review.feature +4 -0
  46. package/src/workflows/feature/slice-findings.feature +4 -0
  47. package/src/workflows/feature/slicing.feature +32 -0
  48. package/src/workflows/feature/standards.feature +4 -0
  49. package/src/workflows/feature/tier-pin.feature +4 -0
  50. package/src/workflows/shared/text.test.ts +40 -0
  51. package/src/workflows/shared/text.ts +50 -4
@@ -30,11 +30,15 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
30
30
  greeting says "Helo"; make it "Hello".
31
31
  """
32
32
 
33
- Scenario: triage writes ID'd criteria that reach the naive pass through the design gate
33
+ Scenario: [AC-6] triage writes ID'd criteria that reach the naive pass through the design gate
34
34
  Given step "design.triage" writes ".gtd/REQUIREMENTS.md" with:
35
35
  """
36
36
  # Requirements
37
37
 
38
+ ## Impact
39
+
40
+ - the greeting module
41
+
38
42
  ## Acceptance Criteria
39
43
 
40
44
  - AC-1: `greeting` reads "Hello, world".
@@ -45,6 +49,7 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
45
49
  Then the process rests at "seam.naive"
46
50
  And ".gtd/REQUIREMENTS.md" contains "- AC-1: `greeting` reads \"Hello, world\"."
47
51
  And ".gtd/REQUIREMENTS.md" contains "- AC-2: no other export changes."
52
+ And the resting step's content contains "maps where the change lands"
48
53
  And the resting step's content contains "Acceptance Criteria"
49
54
  And the commit subjects end with:
50
55
  """
@@ -58,6 +63,10 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
58
63
  """
59
64
  # Requirements
60
65
 
66
+ ## Impact
67
+
68
+ - the greeting module
69
+
61
70
  ## Acceptance Criteria
62
71
 
63
72
  - `greeting` reads "Hello, world".
@@ -69,6 +78,10 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
69
78
  """
70
79
  # Requirements
71
80
 
81
+ ## Impact
82
+
83
+ - the greeting module
84
+
72
85
  ## Acceptance Criteria
73
86
 
74
87
  - AC-1: `greeting` reads "Hello, world".
@@ -81,6 +94,10 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
81
94
  """
82
95
  # Requirements
83
96
 
97
+ ## Impact
98
+
99
+ - the greeting module
100
+
84
101
  ## Acceptance Criteria
85
102
 
86
103
  - AC-1: `greeting` reads "Hello, world".
@@ -110,15 +127,114 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
110
127
  """
111
128
  # Requirements
112
129
 
130
+ ## Impact
131
+
132
+ - the greeting module
133
+
134
+ ## Acceptance Criteria
135
+
136
+ - AC-1: `greeting` reads "Hi".
137
+ """
138
+ Then driving the process is refused with "criteria-frozen"
139
+
140
+ Rule: impact
141
+
142
+ Scenario: [AC-1] a triage turn with no Impact section is refused, naming it
143
+ Given a file "TODO.md" with:
144
+ """
145
+ # Fix the typo
146
+
147
+ greeting says "Helo"; make it "Hello".
148
+ """
149
+ And step "design.triage" writes ".gtd/REQUIREMENTS.md" with:
150
+ """
151
+ # Requirements
152
+
153
+ ## Acceptance Criteria
154
+
155
+ - AC-1: `greeting` reads "Hello, world".
156
+ """
157
+ Then driving the process is refused with "impact: .gtd/REQUIREMENTS.md has no \"## Impact\" section"
158
+
159
+ Scenario: [AC-9] a design.impact turn that changes the criteria is refused
160
+ Given a file "TODO.md" with:
161
+ """
162
+ # Fix the typo
163
+
164
+ ## Acceptance criteria
165
+
166
+ - `greeting` reads "Hello, world".
167
+ """
168
+ And judge step "design.clear" answers:
169
+ """
170
+ [{"id":"clear","answer":"yes","p":0.9}]
171
+ """
172
+ And step "design.normalise" runs its script
173
+ And step "design.impact" writes ".gtd/REQUIREMENTS.md" with:
174
+ """
175
+ # Requirements
176
+
177
+ ## Impact
178
+
179
+ - the greeting module
180
+
113
181
  ## Acceptance Criteria
114
182
 
115
183
  - AC-1: `greeting` reads "Hi".
116
184
  """
117
185
  Then driving the process is refused with "criteria-frozen"
118
186
 
187
+ Scenario: [AC-9] a design.impact turn that adds no Impact section is refused
188
+ Given a file "TODO.md" with:
189
+ """
190
+ # Fix the typo
191
+
192
+ ## Acceptance criteria
193
+
194
+ - `greeting` reads "Hello, world".
195
+ """
196
+ And judge step "design.clear" answers:
197
+ """
198
+ [{"id":"clear","answer":"yes","p":0.9}]
199
+ """
200
+ And step "design.normalise" runs its script
201
+ And step "design.impact" appends to ".gtd/REQUIREMENTS.md":
202
+ """
203
+ Touches the greeting module.
204
+ """
205
+ Then driving the process is refused with "impact: .gtd/REQUIREMENTS.md has no \"## Impact\" section"
206
+
207
+ Scenario: [AC-9] a design.impact turn that drops the sketch pointer is refused
208
+ Given a file "TODO.md" with:
209
+ """
210
+ # Fix the typo
211
+
212
+ ## Acceptance criteria
213
+
214
+ - `greeting` reads "Hello, world".
215
+ """
216
+ And judge step "design.clear" answers:
217
+ """
218
+ [{"id":"clear","answer":"yes","p":0.9}]
219
+ """
220
+ And step "design.normalise" runs its script
221
+ And step "design.impact" writes ".gtd/REQUIREMENTS.md" with:
222
+ """
223
+ # Requirements
224
+
225
+ ## Impact
226
+
227
+ - the greeting module
228
+
229
+ ## Acceptance Criteria
230
+
231
+ - AC-1: `greeting` reads "Hello, world".
232
+ """
233
+ Then driving the process is refused with "impact-only"
234
+
119
235
  Rule: the skip path
120
236
 
121
- Scenario: clear stated criteria are normalised into ID'd requirements with no triage and no design gate
237
+ Scenario: [AC-9] [AC-10] clear stated criteria are normalised into ID'd requirements with no triage and no design gate
122
238
  Given a file "TODO.md" with:
123
239
  """
124
240
  # Fix the typo
@@ -133,18 +249,52 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
133
249
  [{"id":"clear","answer":"yes","p":0.9}]
134
250
  """
135
251
  And step "design.normalise" runs its script
252
+ And step "design.impact" appends to ".gtd/REQUIREMENTS.md":
253
+ """
254
+ ## Impact
255
+
256
+ - the greeting module
257
+ """
136
258
  When the process is driven
137
259
  Then the process rests at "seam.naive"
138
260
  And ".gtd/REQUIREMENTS.md" contains "- AC-1: `greeting` reads \"Hello, world\"."
139
261
  And ".gtd/REQUIREMENTS.md" contains "- AC-2: no other export changes."
262
+ And ".gtd/REQUIREMENTS.md" contains "Stated in `TODO.md` by the sketch"
263
+ And the resting step's content contains "maps where the change lands"
140
264
  And the commit subjects end with:
141
265
  """
142
266
  gtd(human): idle → unwind
143
267
  gtd(check): unwind → start-gate.check
144
268
  gtd(check): start-gate.check → design.clear
145
269
  gtd(judge): design.clear → design.normalise
146
- gtd(check): design.normalise → seam.naive
270
+ gtd(check): design.normalise → design.impact
271
+ gtd(agent): design.impact → seam.naive
272
+ """
273
+
274
+ Scenario: a fast-path process recorded before design.impact existed fails replay
275
+ Given a file "TODO.md" with:
276
+ """
277
+ # Fix the typo
278
+
279
+ ## Acceptance criteria
280
+
281
+ - `greeting` reads "Hello, world".
282
+ """
283
+ And judge step "design.clear" answers:
284
+ """
285
+ [{"id":"clear","answer":"yes","p":0.9}]
286
+ """
287
+ And step "design.normalise" runs its script
288
+ When the process is driven
289
+ Then the process rests at "design.impact"
290
+ Given the working tree is committed with the message:
291
+ """
292
+ gtd(agent): seam.naive → seam.check
293
+
294
+ Gtd-Step: seam.naive#1
295
+ Gtd-Format: 1
147
296
  """
297
+ Then driving the process is refused with "the workflow changed under this process"
148
298
 
149
299
  Scenario: IDs the sketch already gave its criteria are kept
150
300
  Given a file "TODO.md" with:
@@ -159,6 +309,12 @@ Feature: acceptance criteria carry stable IDs, and a sketch that states clear on
159
309
  [{"id":"clear","answer":"yes","p":0.9}]
160
310
  """
161
311
  And step "design.normalise" runs its script
312
+ And step "design.impact" appends to ".gtd/REQUIREMENTS.md":
313
+ """
314
+ ## Impact
315
+
316
+ - the greeting module
317
+ """
162
318
  When the process is driven
163
319
  Then the process rests at "seam.naive"
164
320
  And ".gtd/REQUIREMENTS.md" contains "- AC-3: `greeting` reads \"Hello, world\"."
@@ -26,6 +26,10 @@ Feature: past its continuation cap a phase rests for a person
26
26
  """
27
27
  # Requirements
28
28
 
29
+ ## Impact
30
+
31
+ - the greeting module
32
+
29
33
  ## Acceptance Criteria
30
34
 
31
35
  - AC-1: `subtract(5, 3)` returns 2.
@@ -31,6 +31,10 @@ Feature: a rebuild stopped at its context limit is continued on the branch
31
31
  """
32
32
  # Requirements
33
33
 
34
+ ## Impact
35
+
36
+ - the greeting module
37
+
34
38
  ## Acceptance Criteria
35
39
 
36
40
  - AC-1: `subtract(5, 3)` returns 2.
@@ -30,6 +30,10 @@ Feature: a continuation stays inside its coarse slice
30
30
  """
31
31
  # Requirements
32
32
 
33
+ ## Impact
34
+
35
+ - the greeting module
36
+
33
37
  ## Acceptance Criteria
34
38
 
35
39
  - AC-1: subtract(a, b) returns a - b.
@@ -29,6 +29,10 @@ Feature: a turn stopped at its context limit is snapshotted and continued
29
29
  """
30
30
  # Requirements
31
31
 
32
+ ## Impact
33
+
34
+ - the greeting module
35
+
32
36
  ## Acceptance Criteria
33
37
 
34
38
  - AC-1: `subtract(5, 3)` returns 2.
@@ -1,6 +1,13 @@
1
1
  import { describe, expect, it } from "vitest"
2
2
  import type { Change } from "../../flows/index.js"
3
- import { criteriaOf, criterionIds, handsOnIds, statedCriteria, unstableIds } from "./criteria.js"
3
+ import {
4
+ criteriaOf,
5
+ criterionIds,
6
+ handsOnIds,
7
+ hasImpact,
8
+ statedCriteria,
9
+ unstableIds,
10
+ } from "./criteria.js"
4
11
 
5
12
  const added = (path: string, after: string): Change => ({
6
13
  path,
@@ -177,3 +184,17 @@ describe("unstableIds", () => {
177
184
  expect(unstableIds(["AC-0", "AC-2"], ids)).toMatch(/^numbers AC-0, AC-2 at or below AC-3/)
178
185
  })
179
186
  })
187
+
188
+ describe("hasImpact", () => {
189
+ it.each([
190
+ ["a level-2 heading", "# R\n\n## Impact\n\nx\n", true],
191
+ ["a mixed-case heading", "## impact\n", true],
192
+ ["a level-3 heading", "### Impact\n", false],
193
+ ["a level-1 heading", "# Impact\n", false],
194
+ ["a longer heading", "## Impactful\n", false],
195
+ ["a fenced heading", "```md\n## Impact\n```\n", false],
196
+ ["no heading", "# R\n\nImpact\n", false],
197
+ ])("%s", (_name, text, expected) => {
198
+ expect(hasImpact(text)).toBe(expected)
199
+ })
200
+ })
@@ -1,15 +1,17 @@
1
1
  import {
2
2
  answered,
3
3
  changes,
4
+ head,
4
5
  judge,
5
6
  read,
6
7
  refuse,
8
+ requireProgress,
7
9
  run,
8
10
  scope,
9
11
  type Change,
10
12
  } from "../../flows/index.js"
11
13
  import { HEADING, ITEM, markFenced } from "../shared/fences.js"
12
- import { REQUIREMENTS } from "../shared/steps.js"
14
+ import { planner, REQUIREMENTS } from "../shared/steps.js"
13
15
  import * as t from "../shared/text.js"
14
16
 
15
17
  export interface Criterion {
@@ -165,6 +167,54 @@ export const requireCriteria = (file: string): void => {
165
167
  )
166
168
  }
167
169
 
170
+ const isImpactHeading = (h: RegExpExecArray | null): boolean =>
171
+ h !== null && h[1]!.length === 2 && /^impact$/i.test(h[2]!.trim())
172
+
173
+ /** Whether `text` has an unfenced, level-2 `## Impact` heading. */
174
+ export const hasImpact = (text: string): boolean =>
175
+ markFenced(text).some((l) => !l.fenced && isImpactHeading(HEADING.exec(l.line)))
176
+
177
+ /** `text` without its `## Impact` section, whitespace collapsed. */
178
+ const withoutImpact = (text: string): string => {
179
+ let inImpact = false
180
+ const kept = markFenced(text).filter((l) => {
181
+ const h = l.fenced ? null : HEADING.exec(l.line)
182
+ if (h !== null && h[1]!.length <= 2) inImpact = isImpactHeading(h)
183
+ return !inImpact
184
+ })
185
+ return kept
186
+ .map((l) => l.line)
187
+ .join(" ")
188
+ .replace(/\s+/g, " ")
189
+ .trim()
190
+ }
191
+
192
+ /**
193
+ * Refuse a turn that leaves `file` without a `## Impact` section. Only the
194
+ * pending turn (`head()` is `""`): a triage lap recorded before Impact existed
195
+ * replays without one, and refusing there would fail every in-flight process.
196
+ * A human's edit at a later gate is not checked — the human owns that file then.
197
+ */
198
+ export const requireImpact = (file: string): void => {
199
+ if (head() !== "") return
200
+ const text = read(file)
201
+ if (text === undefined) return
202
+ if (hasImpact(text)) return
203
+ refuse(
204
+ `gtd land: impact: ${file} has no "## Impact" section — explore the codebase and add "## Impact" naming the units, public surfaces and surprises this change touches`,
205
+ )
206
+ }
207
+
208
+ /** Refuse a turn that changed `file` beyond its `## Impact` section. */
209
+ export const requireImpactOnly = (file: string): void => {
210
+ const change = changes().get(file)
211
+ if (change === undefined) return
212
+ if (withoutImpact(change.before ?? "") === withoutImpact(change.after ?? "")) return
213
+ refuse(
214
+ `gtd land: impact-only: this turn may only add "## Impact" to ${file} — restore everything else`,
215
+ )
216
+ }
217
+
168
218
  /** The IDs a review's feedback lap must respect. */
169
219
  export interface StableIds {
170
220
  /** Listed when the build closed: each may stay, reworded or not, or go. */
@@ -211,6 +261,20 @@ const clear = async (stated: StatedCriteria): Promise<boolean> => {
211
261
  return truncated.length === 0 && answered(answers.clear, "yes", CLEAR_MIN_P)
212
262
  }
213
263
 
264
+ /** The fast path's impact-only turn: add `## Impact`, leave the criteria alone. */
265
+ const impact = async (): Promise<void> => {
266
+ await t.agentWithSkills("impact", t.designImpactPrompt(), {
267
+ label: "Mapping the change's impact",
268
+ file: REQUIREMENTS,
269
+ model: planner(),
270
+ system: t.designSystem(),
271
+ })
272
+ requireProgress(REQUIREMENTS)
273
+ requireCriteriaFrozen(REQUIREMENTS)
274
+ requireImpact(REQUIREMENTS)
275
+ requireImpactOnly(REQUIREMENTS)
276
+ }
277
+
214
278
  /**
215
279
  * The skip path: when the sketch stated clear, checkable criteria, write them
216
280
  * to `.gtd/REQUIREMENTS.md` as they are and resolve `true` — no triage, no
@@ -225,6 +289,7 @@ export const skipDesign = (stated: StatedCriteria | undefined): Promise<boolean>
225
289
  label: "Recording the stated acceptance criteria",
226
290
  file: REQUIREMENTS,
227
291
  })
292
+ await impact()
228
293
  return true
229
294
  })
230
295
 
@@ -38,6 +38,10 @@ Feature: a trivial change takes the same few beats at either risk tier
38
38
 
39
39
  <tier> — one-line copy fix
40
40
 
41
+ ## Impact
42
+
43
+ - the greeting module
44
+
41
45
  ## Acceptance Criteria
42
46
 
43
47
  - AC-1: the change behaves as described.
@@ -99,7 +99,7 @@ describe("afterTail feedback lap", () => {
99
99
  "build.review.collecting": (_, r) => {
100
100
  r.write(
101
101
  ".gtd/REQUIREMENTS.md",
102
- "# Requirements\n\n- multiply\n\n## Acceptance Criteria\n\n- AC-1: done\n",
102
+ "# Requirements\n\n- multiply\n\n## Impact\n\n- the module\n\n## Acceptance Criteria\n\n- AC-1: done\n",
103
103
  )
104
104
  r.write(".gtd/REVIEW.md", `${review("also export multiply")} - A: noted.\n`)
105
105
  },
@@ -115,7 +115,7 @@ describe("afterTail feedback lap", () => {
115
115
  "design.triage": (_: unknown, r: ReturnType<typeof testRepo>) =>
116
116
  r.write(
117
117
  ".gtd/REQUIREMENTS.md",
118
- "# Requirements\n\n- multiply, designed\n\n## Acceptance Criteria\n\n- AC-1: done\n",
118
+ "# Requirements\n\n- multiply, designed\n\n## Impact\n\n- the module\n\n## Acceptance Criteria\n\n- AC-1: done\n",
119
119
  ),
120
120
  "design.gate.answer": () => undefined,
121
121
  }
@@ -214,7 +214,7 @@ describe("an in-flight 28.0.0 naive-pass process", () => {
214
214
  "design.triage": (_, r) =>
215
215
  r.write(
216
216
  ".gtd/REQUIREMENTS.md",
217
- "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Acceptance Criteria\n\n- AC-1: done\n",
217
+ "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Impact\n\n- the module\n\n## Acceptance Criteria\n\n- AC-1: done\n",
218
218
  ),
219
219
  "design.gate.answer": () => undefined,
220
220
  "seam.naive": (_, r) => {
@@ -258,6 +258,7 @@ describe("an in-flight 28.0.0 naive-pass process", () => {
258
258
  })
259
259
 
260
260
  describe("an in-flight process from before the architecture path was removed", () => {
261
+ // No `## Impact`: no version before it wrote one, and replaying its triage must not refuse.
261
262
  const REQUIREMENTS =
262
263
  "# Requirements\n\n## Concerns\n\n### Subtract\n\n- `subtract`\n\n## Acceptance Criteria\n\n- AC-1: done\n"
263
264
 
@@ -321,7 +322,7 @@ describe("flagMode", () => {
321
322
  "design.triage": (_, r) =>
322
323
  r.write(
323
324
  ".gtd/REQUIREMENTS.md",
324
- "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Acceptance Criteria\n\n- AC-1: done\n",
325
+ "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Impact\n\n- the module\n\n## Acceptance Criteria\n\n- AC-1: done\n",
325
326
  ),
326
327
  "design.gate.answer": () => undefined,
327
328
  })
@@ -342,7 +343,7 @@ describe("flagMode", () => {
342
343
  "design.triage": (_, r) =>
343
344
  r.write(
344
345
  ".gtd/REQUIREMENTS.md",
345
- "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Acceptance Criteria\n\n- AC-1: done\n",
346
+ "# Requirements\n\n## Concerns\n\n### S\n\n- `s`\n\n## Impact\n\n- the module\n\n## Acceptance Criteria\n\n- AC-1: done\n",
346
347
  ),
347
348
  "design.gate.answer": () => undefined,
348
349
  "seam.naive": (_, r) => {
@@ -37,6 +37,10 @@ Feature: flag mode off lands the naive pass with no release flag, seam judge or
37
37
 
38
38
  - `subtract(a, b)` returns `a - b`.
39
39
 
40
+ ## Impact
41
+
42
+ - the greeting module
43
+
40
44
  ## Acceptance Criteria
41
45
 
42
46
  - AC-1: the change behaves as described.
@@ -39,6 +39,10 @@ Feature: the hands-on test tries only the criteria a person can observe
39
39
  """
40
40
  # Requirements
41
41
 
42
+ ## Impact
43
+
44
+ - the greeting module
45
+
42
46
  ## Acceptance Criteria
43
47
 
44
48
  - AC-1: subtract(a, b) returns a - b.
@@ -79,6 +83,10 @@ Feature: the hands-on test tries only the criteria a person can observe
79
83
  """
80
84
  # Requirements
81
85
 
86
+ ## Impact
87
+
88
+ - the greeting module
89
+
82
90
  ## Acceptance Criteria
83
91
 
84
92
  - AC-1: subtract(a, b) returns a - b.
@@ -114,6 +122,10 @@ Feature: the hands-on test tries only the criteria a person can observe
114
122
  """
115
123
  # Requirements
116
124
 
125
+ ## Impact
126
+
127
+ - the greeting module
128
+
117
129
  ## Acceptance Criteria
118
130
 
119
131
  - AC-1: subtract(a, b) returns a - b.
@@ -149,6 +161,10 @@ Feature: the hands-on test tries only the criteria a person can observe
149
161
  """
150
162
  # Requirements
151
163
 
164
+ ## Impact
165
+
166
+ - the greeting module
167
+
152
168
  ## Acceptance Criteria
153
169
 
154
170
  - AC-1: subtract(a, b) returns a - b.
@@ -176,6 +192,10 @@ Feature: the hands-on test tries only the criteria a person can observe
176
192
  """
177
193
  # Requirements
178
194
 
195
+ ## Impact
196
+
197
+ - the greeting module
198
+
179
199
  ## Acceptance Criteria
180
200
 
181
201
  - AC-1: subtract(a, b) returns a - b.
@@ -203,6 +223,10 @@ Feature: the hands-on test tries only the criteria a person can observe
203
223
  """
204
224
  # Requirements
205
225
 
226
+ ## Impact
227
+
228
+ - the greeting module
229
+
206
230
  ## Acceptance Criteria
207
231
 
208
232
  - AC-1: add is unchanged.
@@ -229,6 +253,10 @@ Feature: the hands-on test tries only the criteria a person can observe
229
253
  """
230
254
  # Requirements
231
255
 
256
+ ## Impact
257
+
258
+ - the greeting module
259
+
232
260
  ## Acceptance Criteria
233
261
 
234
262
  - AC-1 (no hands-on): the build prompt names subtract.
@@ -252,6 +280,10 @@ Feature: the hands-on test tries only the criteria a person can observe
252
280
  """
253
281
  # Requirements
254
282
 
283
+ ## Impact
284
+
285
+ - the greeting module
286
+
255
287
  ## Acceptance Criteria
256
288
 
257
289
  - AC-1: subtract(a, b) returns a - b.
@@ -315,6 +347,10 @@ Feature: the hands-on test tries only the criteria a person can observe
315
347
  """
316
348
  # Requirements
317
349
 
350
+ ## Impact
351
+
352
+ - the greeting module
353
+
318
354
  ## Acceptance Criteria
319
355
 
320
356
  - AC-1: subtract(a, b) returns a - b.
@@ -337,6 +373,10 @@ Feature: the hands-on test tries only the criteria a person can observe
337
373
  """
338
374
  # Requirements
339
375
 
376
+ ## Impact
377
+
378
+ - the greeting module
379
+
340
380
  ## Acceptance Criteria
341
381
 
342
382
  - AC-1 (no hands-on): subtract(a, b) returns a - b.
@@ -33,6 +33,10 @@ Feature: each quality lens runs on its own model hint
33
33
  """
34
34
  # Requirements
35
35
 
36
+ ## Impact
37
+
38
+ - the greeting module
39
+
36
40
  ## Acceptance Criteria
37
41
 
38
42
  - AC-1: `subtract(a, b)` returns `a - b`.
@@ -35,6 +35,10 @@ Feature: the quality lap's findings are triaged before the review
35
35
 
36
36
  - `subtract(a, b)` returns `a - b`.
37
37
 
38
+ ## Impact
39
+
40
+ - the greeting module
41
+
38
42
  ## Acceptance Criteria
39
43
 
40
44
  - AC-1: subtract(a, b) returns a - b.
@@ -28,6 +28,10 @@ Feature: a naive pass ends only when a test names every criterion and the suite
28
28
  """
29
29
  # Requirements
30
30
 
31
+ ## Impact
32
+
33
+ - the greeting module
34
+
31
35
  ## Acceptance Criteria
32
36
 
33
37
  - AC-1: `subtract(5, 3)` returns 2.
@@ -36,6 +36,10 @@ Feature: a naive pass the judge rules land is itself the implementation
36
36
 
37
37
  - greeting reads "Hello, world".
38
38
 
39
+ ## Impact
40
+
41
+ - the greeting module
42
+
39
43
  ## Acceptance Criteria
40
44
 
41
45
  - AC-1: the change behaves as described.
@@ -8,7 +8,7 @@ import {
8
8
  scope,
9
9
  } from "../../flows/index.js"
10
10
  import { REQUIREMENTS } from "../shared/steps.js"
11
- import { requireCriteria } from "./criteria.js"
11
+ import { requireCriteria, requireImpact } from "./criteria.js"
12
12
  import { answerProductQuestions, triage } from "./steps.js"
13
13
 
14
14
  /**
@@ -33,6 +33,7 @@ export const design = (base: string, guard?: () => void): Promise<void> =>
33
33
  requireProgress(REQUIREMENTS)
34
34
  requireReplies(REQUIREMENTS)
35
35
  requireCriteria(REQUIREMENTS)
36
+ requireImpact(REQUIREMENTS)
36
37
  guard?.()
37
38
  } while (await noteGate(REQUIREMENTS, answerProductQuestions))
38
39
  })
@@ -28,6 +28,10 @@ Feature: past its round cap the hands-on test rests at a person's gate
28
28
  """
29
29
  # Requirements
30
30
 
31
+ ## Impact
32
+
33
+ - the greeting module
34
+
31
35
  ## Acceptance Criteria
32
36
 
33
37
  - AC-1: subtract(a, b) returns a - b.