wdi-method 0.4.5 → 0.5.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 (100) hide show
  1. package/README.md +58 -16
  2. package/bin/wdi-method.js +152 -60
  3. package/kit/.constitution/method/README.md +66 -169
  4. package/kit/.constitution/{constitution.md → method/constitution.md} +10 -56
  5. package/kit/.constitution/{document → method/document}/architecture-guide.md +1 -1
  6. package/kit/.constitution/{document → method/document}/corpus-guide.md +2 -2
  7. package/kit/.constitution/{document → method/document}/delivery-flow-guide.md +338 -338
  8. package/kit/.constitution/{document → method/document}/sdd-guide.md +1 -1
  9. package/kit/.constitution/{document → method/document}/templates/cross-cutting.md +5 -5
  10. package/kit/.constitution/{document → method/document}/templates/design-system.md +67 -67
  11. package/kit/.constitution/{document → method/document}/templates/inventory.md +69 -69
  12. package/kit/.constitution/{document → method/document}/templates/model.md +2 -2
  13. package/kit/.constitution/{document → method/document}/templates/questions.md +10 -9
  14. package/kit/.constitution/{document → method/document}/templates/sdd.md +1 -1
  15. package/kit/.constitution/{document → method/document}/templates/srs.md +2 -2
  16. package/kit/.constitution/{document → method/document}/templates/structure-codebase.md +129 -129
  17. package/kit/.constitution/{document → method/document}/templates/structure-document.md +90 -90
  18. package/kit/.constitution/{language-guide.md → method/language-guide.md} +2 -2
  19. package/kit/.constitution/{repo-guide.md → method/repo-guide.md} +16 -3
  20. package/kit/.constitution/{scripts → method/scripts}/inventory.py +102 -100
  21. package/kit/.constitution/{scripts → method/scripts}/timeline.py +665 -665
  22. package/kit/.constitution/{scripts → method/scripts}/validate.py +1599 -1579
  23. package/kit/.constitution/{structure-guide.md → method/structure-guide.md} +3 -3
  24. package/kit/.constitution/method/why/README.md +169 -0
  25. package/kit/.constitution/method/{artifact-map.md → why/artifact-map.md} +5 -5
  26. package/kit/.constitution/method/{rationale.md → why/rationale.md} +5 -5
  27. package/kit/.constitution/project/constitution.md +63 -0
  28. package/kit/assets/bmad-custom/bmad-advanced-elicitation.toml +9 -9
  29. package/kit/assets/bmad-custom/bmad-architecture.toml +33 -31
  30. package/kit/assets/bmad-custom/bmad-build-auto.toml +5 -5
  31. package/kit/assets/bmad-custom/bmad-build.toml +52 -52
  32. package/kit/assets/bmad-custom/bmad-code-review.toml +13 -12
  33. package/kit/assets/bmad-custom/bmad-correct-course.toml +20 -19
  34. package/kit/assets/bmad-custom/bmad-deep-recon.toml +12 -11
  35. package/kit/assets/bmad-custom/bmad-prd.toml +42 -42
  36. package/kit/assets/bmad-custom/bmad-product-brief.toml +18 -18
  37. package/kit/assets/bmad-custom/bmad-retrospective.toml +4 -4
  38. package/kit/assets/bmad-custom/bmad-spec.toml +16 -15
  39. package/kit/assets/bmad-custom/bmad-ux.toml +19 -19
  40. package/kit/assets/bmad-custom/config.toml +3 -3
  41. package/kit/skills/wdi-blueprint/SKILL.md +3 -3
  42. package/kit/skills/wdi-build/SKILL.md +244 -244
  43. package/kit/skills/wdi-component/SKILL.md +1 -1
  44. package/kit/skills/wdi-help/SKILL.md +98 -98
  45. package/kit/skills/wdi-init/SKILL.md +1 -1
  46. package/kit/skills/wdi-problem/SKILL.md +90 -90
  47. package/kit/skills/wdi-product/SKILL.md +127 -127
  48. package/kit/skills/wdi-reconcile/SKILL.md +2 -2
  49. package/kit/skills/wdi-report/SKILL.md +205 -205
  50. package/kit/skills/wdi-systematic-debugging/SKILL.md +193 -193
  51. package/kit/skills/wdi-ux/SKILL.md +145 -145
  52. package/kit-overlay/AGENTS.md +20 -20
  53. package/kit-overlay/README.md +24 -17
  54. package/kit-overlay/constitution.md +10 -56
  55. package/kit-overlay/portability.md +6 -6
  56. package/kit-overlay/repo-guide.md +112 -97
  57. package/package.json +37 -37
  58. package/scaffold/.control/product-glossary.md +21 -21
  59. package/scaffold/.control/project-non-technical-log.md +23 -23
  60. package/scaffold/.control/questions/answered.md +11 -11
  61. package/scaffold/.control/questions/assumptions.md +15 -15
  62. package/scaffold/.control/questions/blocking.md +21 -21
  63. package/scaffold/.control/questions/external.md +11 -11
  64. package/scaffold/.control/registry/components.yaml +21 -21
  65. package/scaffold/.control/registry/defects.yaml +3 -3
  66. package/scaffold/.control/registry/index.yaml +46 -46
  67. package/scaffold/.control/registry/requirements.yaml +15 -15
  68. package/scaffold/.control/registry/risks.yaml +5 -5
  69. package/scaffold/.control/registry/usecases.yaml +6 -6
  70. package/kit/.constitution/README.md +0 -66
  71. /package/kit/.constitution/{document → method/document}/bmad-guide.md +0 -0
  72. /package/kit/.constitution/{document → method/document}/bmad-skill-register.md +0 -0
  73. /package/kit/.constitution/{document → method/document}/brief-guide.md +0 -0
  74. /package/kit/.constitution/{document → method/document}/decision-guide.md +0 -0
  75. /package/kit/.constitution/{document → method/document}/prd-guide.md +0 -0
  76. /package/kit/.constitution/{document → method/document}/srs-guide.md +0 -0
  77. /package/kit/.constitution/{document → method/document}/templates/addendum.md +0 -0
  78. /package/kit/.constitution/{document → method/document}/templates/architecture-spine.md +0 -0
  79. /package/kit/.constitution/{document → method/document}/templates/brief.md +0 -0
  80. /package/kit/.constitution/{document → method/document}/templates/c4.md +0 -0
  81. /package/kit/.constitution/{document → method/document}/templates/contract.md +0 -0
  82. /package/kit/.constitution/{document → method/document}/templates/decision.md +0 -0
  83. /package/kit/.constitution/{document → method/document}/templates/flow.md +0 -0
  84. /package/kit/.constitution/{document → method/document}/templates/integration.md +0 -0
  85. /package/kit/.constitution/{document → method/document}/templates/lc.md +0 -0
  86. /package/kit/.constitution/{document → method/document}/templates/lifecycle.md +0 -0
  87. /package/kit/.constitution/{document → method/document}/templates/meeting.md +0 -0
  88. /package/kit/.constitution/{document → method/document}/templates/oq.md +0 -0
  89. /package/kit/.constitution/{document → method/document}/templates/prd.md +0 -0
  90. /package/kit/.constitution/{document → method/document}/templates/rtr.md +0 -0
  91. /package/kit/.constitution/{document → method/document}/templates/rules.md +0 -0
  92. /package/kit/.constitution/{document → method/document}/templates/scn.md +0 -0
  93. /package/kit/.constitution/{document → method/document}/templates/uc.md +0 -0
  94. /package/kit/.constitution/{document → method/document}/templates/ux.md +0 -0
  95. /package/kit/.constitution/{document → method/document}/ux-guide.md +0 -0
  96. /package/kit/.constitution/{method-glossary.md → method/method-glossary.md} +0 -0
  97. /package/kit/.constitution/method/{portability.md → why/portability.md} +0 -0
  98. /package/kit/.constitution/{codebase/brownfield-guide.md → project/codebase-brownfield-guide.md} +0 -0
  99. /package/kit/.constitution/{codebase/conventions-guide.md → project/codebase-conventions-guide.md} +0 -0
  100. /package/kit/.constitution/{codebase/stack-guide.md → project/codebase-stack-guide.md} +0 -0
@@ -37,9 +37,9 @@ This is the whole reason the maps can exist without colliding with the guides al
37
37
  |---|---|
38
38
  | Where does this live, and what is already there? | **structure map** |
39
39
  | Which layer owns it, and what is it named? | `document/corpus-guide.md` |
40
- | How is code named, and which patterns apply? | `codebase/conventions-guide.md` |
41
- | What is it built with, and on which version? | `codebase/stack-guide.md` |
42
- | Which legacy shapes are ratified rather than fixed? | `codebase/brownfield-guide.md` |
40
+ | How is code named, and which patterns apply? | `../project/codebase-conventions-guide.md` |
41
+ | What is it built with, and on which version? | `../project/codebase-stack-guide.md` |
42
+ | Which legacy shapes are ratified rather than fixed? | `../project/codebase-brownfield-guide.md` |
43
43
 
44
44
  - A structure map MUST NOT restate a naming rule, a layer rule, or a version. It MUST reference the
45
45
  guide that owns it.
@@ -0,0 +1,169 @@
1
+ ---
2
+ status: Reference
3
+ ---
4
+
5
+ # The WDI Method — orientation
6
+
7
+ **Opened when:** you have never seen this method before, or you have and want the shape back in one reading.
8
+
9
+ This file **explains**. It does not bind — `../document/*-guide.md` does, and where the two disagree the guide
10
+ wins and the disagreement is a defect to report.
11
+
12
+ Five minutes. Three files in this folder: this one for orientation, `artifact-map.md` for *"where does this
13
+ file go"*, `rationale.md` for *"why is it like this"* — open that one before changing a rule, so you know
14
+ what you are about to break.
15
+
16
+ ## What the method is
17
+
18
+ Two methods joined. **WDI** owns the flow, the gates, and the artifacts nobody else writes. **BMad** owns
19
+ the writing skills where it has one. Every BMad skill is invoked through a WDI wrapper, never directly: the
20
+ wrapper is what checks position, verifies the result against the guide, and lands the memlog.
21
+
22
+ The whole thing rests on one sentence:
23
+
24
+ > Owner time is spent at five points. Between them, the agents work alone.
25
+
26
+ ## Five gates
27
+
28
+ A gate is named for **what is decided there**, never for the work before it.
29
+
30
+ | Gate | Decides | How often | Budget |
31
+ |---|---|---|---|
32
+ | **G1 Problem** | What the problem is, whose it is, why it earns work | once | 20' |
33
+ | **G2 Product** | What is built, and how it feels to use | once per PRD | 45' |
34
+ | **G3 Blueprint** | The whole portrait: which use cases, their entities, tables, endpoints, screens, and the invariants binding them | once per **product** | 45' |
35
+ | **G4 Component** | How one Product Component is built, and what the choice costs | once per **component** | 20–30' |
36
+ | **G5 Release** | Whether it is done and proven | once per wave | 10' |
37
+
38
+ **Only G4 changes shape.** The other four are always the same, whatever the settings — and that is what lets
39
+ the whole system be held in one head.
40
+
41
+ ## Two settings, and they control different things
42
+
43
+ | Setting | Where | Controls |
44
+ |---|---|---|
45
+ | `mode` | globally in `index.yaml`, per component in `components.yaml` | **Document depth**, and only that |
46
+ | `risk_accepted` | per component | **Review intensity**, and only that |
47
+
48
+ `mode` takes `catalog` · `outline` · `guarded` · `deep`, and the default is `catalog`. A component at
49
+ `catalog` **skips G4 entirely** — its control moved to G3, where its use cases, tables, endpoints, screens,
50
+ domain model, and C4 were all approved.
51
+
52
+ `risk_accepted` takes `low` · `medium` · `high`, and its direction reads off the name: `high` means *"I
53
+ accept a lot of risk here"*, so its review is the lightest.
54
+
55
+ Keeping them apart is what lets one component be **thin on purpose and reviewed the hardest**. Why that
56
+ matters is in `rationale.md`; what each value demands is in `../document/delivery-flow-guide.md`.
57
+
58
+ ## The run, first time through
59
+
60
+ | # | Step | Run | Gate |
61
+ |---|---|---|---|
62
+ | 0 | Set up | `wdi-init` intent `setup` — registry scaffolded, global `mode` set, existing documents reported, structure maps derived | — |
63
+ | 1 | Discovery and brief | `wdi-problem` | **G1** |
64
+ | 2 | PRD, one per initiative | `wdi-product` intent `prd` | **G2** |
65
+ | 2b | UX — only when the interface is a large part of the promise | `wdi-ux` | with G2 |
66
+ | 3 | Birth the components, set `mode` and `risk_accepted` | `wdi-init` intent `component` | — (tail of G2) |
67
+ | 4 | Blueprint | `wdi-blueprint` intent `catalog`, then `platform` | **G3** |
68
+ | 5 | One component's depth | `wdi-component` — as deep as its `mode`; **skipped at `catalog`** | **G4** |
69
+ | 6 | Build | `wdi-build` — opens the wave, runs `bmad-spec`, ships each story, closes the wave | **G5** |
70
+
71
+ After step 6 the next component enters at **step 5**, not at the beginning. Steps 0–4 happen once in the
72
+ life of the product.
73
+
74
+ `SPEC.md` and story files are **not read by humans**. The human review surface stops at the PRD, `.what/`,
75
+ and `.how/`.
76
+
77
+ ## The run, every time after
78
+
79
+ | Situation | Run |
80
+ |---|---|
81
+ | The next component is being taken on | `wdi-init` intent `mode` or `risk` if either needs changing → `wdi-component` → **G4** → `wdi-build` → **G5** |
82
+ | That component is at `mode: catalog` | straight to `wdi-build`. G4 is skipped |
83
+ | A promise changes where a PRD already exists | `wdi-product` intent `update` — never a second PRD for the same area |
84
+ | A new initiative with a different reader | `wdi-product` intent `prd` → `wdi-init` intent `component` if it births components |
85
+ | A small fix touching no `FR`, `UC`, `AD-N`, or domain model | Fast Path: `bmad-build` directly. It **stops and becomes a wave `S`** the moment an `FR` is touched |
86
+ | A bug, a failing test, unexpected behaviour | `wdi-systematic-debugging`, **before** any fix is proposed |
87
+ | A planning assumption turned out void | `wdi-decision` — it wraps `bmad-correct-course`, proposes, and changes nothing itself |
88
+ | An estimate or a task list is needed | `wdi-report` intent `estimate` |
89
+ | You do not know where you are | `wdi-help` |
90
+
91
+ ## Fifteen skills
92
+
93
+ Named for the **gate they serve**, so *"which skill do I run"* is answered by *"which gate am I at"*.
94
+
95
+ **Moment-bound** — running them outside their point is wrong:
96
+
97
+ | Skill | Its moment |
98
+ |---|---|
99
+ | `wdi-init` intent `setup` | before G1, once per project |
100
+ | `wdi-problem` | G1 |
101
+ | `wdi-product` | G2 |
102
+ | `wdi-init` intent `component` | tail of G2, and whenever a new PRD births a component |
103
+ | `wdi-blueprint` | G3 |
104
+ | `wdi-component` | G4 |
105
+ | `wdi-build` | G5, one wave per run |
106
+
107
+ **Anytime** — run the moment the trigger appears, without waiting for a gate:
108
+
109
+ | Skill | Its trigger |
110
+ |---|---|
111
+ | `wdi-decision` | A decision worth remembering · a void assumption · an accepted decision to carry into documents |
112
+ | `wdi-question` | Something that cannot be decided now |
113
+ | `wdi-log` | A meeting finished, or a non-technical fact now binds |
114
+ | `wdi-help` | "Where am I, what next" |
115
+ | `wdi-reconcile` | Any time. Read-only — it reports, it never edits |
116
+ | `wdi-review` | Over any document, any time |
117
+ | `wdi-systematic-debugging` | A bug, a failed test, a failed build, unexpected behaviour |
118
+ | `wdi-report` | An estimate at the start · progress periodically · before a client update |
119
+ | `wdi-init` intents `mode` · `risk` · `structure` | Any time |
120
+ | `wdi-ux` | Any time after a PRD exists, if UX is being used |
121
+
122
+ ## Who writes what — WDI and BMad
123
+
124
+ | Artifact | Written by | Wrapped in |
125
+ |---|---|---|
126
+ | Product brief | `bmad-product-brief` | `wdi-problem` |
127
+ | PRD | `bmad-prd` | `wdi-product` |
128
+ | UX | `bmad-ux` | `wdi-ux` |
129
+ | Spine + C4 | `bmad-architecture` | `wdi-blueprint` |
130
+ | **UC catalogue · actors · entities · business rules** | **nothing in BMad** | `wdi-blueprint` writes it itself |
131
+ | **SRS and all of `.what/<pc>/`** | **nothing in BMad** | `wdi-component` writes it itself |
132
+ | **SDD and all of `.how/<pc>/`** | **nothing in BMad** | `wdi-component` writes it itself |
133
+ | `SPEC.md` + stories | `bmad-spec` | `wdi-build` |
134
+ | Code | `bmad-build` · `bmad-build-auto` | `wdi-build` |
135
+ | Retrospective | `bmad-retrospective` | `wdi-build` |
136
+ | Document review | `bmad-review` | `wdi-review` |
137
+ | Course correction | `bmad-correct-course` | `wdi-decision` |
138
+
139
+ **The bold rows are why this method exists.** BMad stops at the promise and starts again at the mechanism,
140
+ and every behaviour in between had no author. Three consequences stick to those artifacts and are handled
141
+ deliberately: no `doc_standards` fires a review, no memlog is born on its own, and no template enforces
142
+ itself.
143
+
144
+ ## Where things live
145
+
146
+ | The thing in your hand | Its folder |
147
+ |---|---|
148
+ | How we work — a rule, a guide, a template | `.constitution/` |
149
+ | What currently holds — a decision, a question, a registry, a map | `.control/` |
150
+ | What is promised — the brief, a PRD, a use case, a business rule | `.what/` |
151
+ | How it is built — the spine, C4, an inventory, an SDD, a contract | `.how/` |
152
+ | A skill run's working output | `_bmad-output/` |
153
+ | Scratch that empties when the task closes | `.work/` |
154
+ | The application | `src/` · `web/` |
155
+
156
+ The test that settles anything ambiguous: **is this file still correct after its wave has passed?** Yes →
157
+ the corpus. No → `_bmad-output/`. In doubt, `../document/corpus-guide.md`.
158
+
159
+ ## Model choice
160
+
161
+ | Point | Model |
162
+ |---|---|
163
+ | Decisions — proposing a slicing, wording a `DEC-`, preparing a gate | `opus@high` |
164
+ | Writing, derivation, a review-fix pass | `sonnet@high` |
165
+ | Code review panel | Two different CLI families, and never the family that wrote the code |
166
+
167
+ In a derivation pass, quality comes from the input rather than the model. Running a "find the gap" lens with
168
+ the most careful model produces the most gaps, and each one becomes an open question — a cost nobody sees
169
+ until the question list has stopped being readable.
@@ -6,11 +6,11 @@ status: Reference
6
6
 
7
7
  **Opened when:** someone asks *"where does this file go"*, or *"does this document exist at my `mode`"*.
8
8
 
9
- This file **explains**. It does not bind — `document/*-guide.md` does, and where the two disagree the guide
9
+ This file **explains**. It does not bind — `../document/*-guide.md` does, and where the two disagree the guide
10
10
  wins and the disagreement is a defect to report.
11
11
 
12
12
  It answers three questions and nothing else: which files exist at each `mode`, who owns each one, and how
13
- the units of work line up. The **rules** about depth live in `document/delivery-flow-guide.md`; what is
13
+ the units of work line up. The **rules** about depth live in `../document/delivery-flow-guide.md`; what is
14
14
  here is the map.
15
15
 
16
16
  ## The one thing to read first
@@ -106,7 +106,7 @@ Repealed: `_platform/architecture/` (one file does not earn a folder) and `<pc>/
106
106
  ## Who owns each file
107
107
 
108
108
  A skill lands the output of the layer it owns, and landing is part of producing it — never a follow-up
109
- someone else performs. `document/corpus-guide.md` holds the binding version of this table.
109
+ someone else performs. `../document/corpus-guide.md` holds the binding version of this table.
110
110
 
111
111
  | Owner | Writes |
112
112
  |---|---|
@@ -137,7 +137,7 @@ Task** — it travels as a label, because one `FR` can be delivered by stories i
137
137
  satisfy part of two `FR`.
138
138
 
139
139
  The binding version of all of this, including why a wave MAY cross components and what has to be true
140
- first, is in `document/delivery-flow-guide.md`. It is not restated here.
140
+ first, is in `../document/delivery-flow-guide.md`. It is not restated here.
141
141
 
142
142
  ## What needs no template, and why
143
143
 
@@ -151,5 +151,5 @@ Stated so the next completeness audit does not report it again:
151
151
  | `SPEC.md` · story files | They belong to `bmad-spec`. WDI does not write their shape, and MUST NOT |
152
152
  | Registry `*.yaml` | Their shape is the comment block at the head of each file, plus the validator |
153
153
 
154
- Everything else in this map has a template in `document/templates/` — 27 of them, and every row above is
154
+ Everything else in this map has a template in `../document/templates/` — 27 of them, and every row above is
155
155
  covered by one.
@@ -6,7 +6,7 @@ status: Reference
6
6
 
7
7
  **Opened when:** you are about to change a rule and need to know what you would break.
8
8
 
9
- This file **explains**. It does not bind — `document/*-guide.md` does, and where the two disagree the guide
9
+ This file **explains**. It does not bind — `../document/*-guide.md` does, and where the two disagree the guide
10
10
  wins and the disagreement is a defect to report. **A rule MUST NOT be born here.** If this file notices a
11
11
  rule that should exist, it says so as a finding and the rule is written in its guide.
12
12
 
@@ -18,11 +18,11 @@ not finished. Six complaints, their causes, and where each is answered now:
18
18
 
19
19
  | Complaint | Cause | Answered in |
20
20
  |---|---|---|
21
- | Open questions in floods — ids reached `OQ-146`; one review produced 200 findings, then another produced 90 | Three rules combined into a generator: the `edge-case-hunter` lens mandatory over a whole SRS at once; no route for *"take the assumption, record it, continue"*; no budget and no severity class | `document/decision-guide.md`, `.control/questions/` |
22
- | Ceremony drift into the PRD; three corrections ended "reported but not fixed" | Correcting a *sentence* of an `FR` was treated as changing its *promise* — both had to go through the PRD skill | `document/prd-guide.md` |
21
+ | Open questions in floods — ids reached `OQ-146`; one review produced 200 findings, then another produced 90 | Three rules combined into a generator: the `edge-case-hunter` lens mandatory over a whole SRS at once; no route for *"take the assumption, record it, continue"*; no budget and no severity class | `../document/decision-guide.md`, `.control/questions/` |
22
+ | Ceremony drift into the PRD; three corrections ended "reported but not fixed" | Correcting a *sentence* of an `FR` was treated as changing its *promise* — both had to go through the PRD skill | `../document/prd-guide.md` |
23
23
  | Gates failing repeatedly over unanswered questions | No rule said that only a **blocking** question holds a gate | `.control/questions/blocking.md` |
24
- | The spine had to be updated every story | Invariants and inventories were mixed, and the tax was paid before the story, when the information was thinnest | `document/architecture-guide.md` |
25
- | A large PRD made `.what` over-think — 41 of 56 use cases marked `critical` (73%) | Not the PRD's length. The stage's scope was the whole corpus at once, plus a `critical` definition with two elastic criteria that passed everything | `document/delivery-flow-guide.md` |
24
+ | The spine had to be updated every story | Invariants and inventories were mixed, and the tax was paid before the story, when the information was thinnest | `../document/architecture-guide.md` |
25
+ | A large PRD made `.what` over-think — 41 of 56 use cases marked `critical` (73%) | Not the PRD's length. The stage's scope was the whole corpus at once, plus a `critical` definition with two elastic criteria that passed everything | `../document/delivery-flow-guide.md` |
26
26
  | Too slow for a small-to-medium application | A composite of the five above | all of it |
27
27
 
28
28
  One cause was **not** the method: **model choice.** A "find the gap" lens with no upper bound, run by the
@@ -0,0 +1,63 @@
1
+ ---
2
+ status: Accepted
3
+ ---
4
+
5
+ # Constitution — {product}
6
+
7
+ Articles 1, 2, and 5. They are **yours**: seeded once at install, never overwritten by `update`, and
8
+ never carried into the package by `promote`. Rewrite Articles 2 and 5 for the product this repo is;
9
+ Article 1 needs no edit — it cites `product.name` in `.control/registry/index.yaml`.
10
+
11
+ The method's own articles — 3 Layers, 4 Lifecycle, 6 Decisions, 7 Non-technical facts — live in
12
+ [`../method/constitution.md`](../method/constitution.md) and are replaced on every update. The
13
+ numbering is shared across the two files and has gaps in each.
14
+
15
+ An agent working here MUST be able to act on the contents of this repo alone.
16
+
17
+ ## Article 1 — Scope
18
+
19
+ This repo covers the product named at `product.name` in
20
+ `.control/registry/index.yaml`. One product, one repo. A second product MUST
21
+ get a repo of its own.
22
+
23
+ `product.client` in the same file names the client if there is one, and stays
24
+ empty if there is not. The product brief at G1 uses `product.name` as its
25
+ title. Neither this file nor the brief is a second source of the name.
26
+
27
+ An agent working here MUST NOT demand that sibling organisation repositories
28
+ be open in the same session.
29
+
30
+ ## Article 2 — Content boundary, `.work/`, and cross-repo references
31
+
32
+ All three are governed by [`../method/repo-guide.md`](../method/repo-guide.md). Its rules MUST NOT be
33
+ repeated here — one rule, one place.
34
+
35
+ What is particular to this repo, and therefore lives here:
36
+
37
+ - Name any extra boundary this product has (a public-repo rule, a ban on `3p.md`,
38
+ a `.work/` resting state). If there is none, delete this bullet list and the
39
+ sentence above it.
40
+ - `3p.md` MUST NOT be created in a product repo. Operational engagement memory
41
+ lives outside.
42
+
43
+ ## Article 5 — The method arrives from WDI Method
44
+
45
+ This is the **consumer** article. Use it in every product repo.
46
+
47
+ `.constitution/` guides and templates (except this file's Articles 1, 2, and 5,
48
+ `codebase/*-guide.md`, and any extra file this repo added), the `wdi-*` skills,
49
+ and `_bmad/custom/*.toml` arrive from the public WDI Method package via
50
+ `npx wdi-method install` / `update`.
51
+
52
+ - A method file MUST NOT be invented or patched here to improve the method. If a
53
+ rule is wrong, it is fixed in the WDI Method package, then brought here with
54
+ `update`.
55
+ - `wdi-method update` MUST overwrite method files and MUST NOT touch `.what/`,
56
+ `.how/`, `.control/` product state, this file's Articles 1–2 and 5,
57
+ `codebase/*-guide.md` once `Accepted`, extra constitution files this repo
58
+ added, or `_bmad/custom/*.user.toml`.
59
+ - A rule particular to this repo MUST be written out in full in this file or a
60
+ sibling, and MUST NOT be replaced by a pointer into another repository.
61
+
62
+ A prefix in `.claude/skills/` names the **method**, not the owner: `bmad-*` is
63
+ BMad's, `wdi-*` is this method's.
@@ -1,15 +1,15 @@
1
- # Skill ini tidak punya key `persistent_facts`, jadi aturan rumah tidak bisa disuntikkan lewat
2
- # jalur biasa. `preferences` adalah tuas setaranya: kalimat literal yang dipatuhi perefine tiap
3
- # sesi.
1
+ # This skill has no `persistent_facts` key, so house rules cannot be injected through the usual
2
+ # path. `preferences` is the equivalent lever: literal sentences a reviewer follows every
3
+ # session.
4
4
  #
5
- # Hanya aturan rumah yang mengubah CARA sebuah kritik mendarat yang pantas di sini metode
6
- # lengkapnya tetap di .constitution/document/delivery-flow-guide.md.
5
+ # Only a house rule that changes HOW a critique lands belongs herethe full method stays in
6
+ # .constitution/method/document/delivery-flow-guide.md.
7
7
 
8
8
  [workflow]
9
9
 
10
10
  preferences = [
11
- "Honor AGENTS.md dan .constitution/document/ sebagai aturan yang sedang berlaku di repo ini.",
12
- "Nilai artefak G1-G4 terutama dari Decision Summary-nya: satu halaman, bahasa bisnis, tanpa jargon yang belum punya entri Glossary. Ringkasan yang tidak bisa dibaca habis dalam time budget gate-nya adalah temuan itu sendiri.",
13
- "Kata normatif hanya lima — MUST, MUST NOT, SHOULD, SHOULD NOT, MAY — dalam bahasa Inggris dan huruf besar; prosanya tetap Bahasa Indonesia. Tandai sebagai cacat: penanda imperatif lain dalam bahasa apa pun, istilah metode yang diterjemahkan, dan karangan padanan Indonesia untuk istilah teknis yang lazim ditulis dalam bahasa Inggris.",
14
- "Pushback MUST menyebut keputusan yang sedang dipertaruhkan dan ongkosnya bila salah, bukan sekadar menilai tulisannya.",
11
+ "Honor AGENTS.md and .constitution/method/document/ as the rules currently in force in this repo.",
12
+ "Judge a G1-G4 artifact chiefly by its Decision Summary: one page, business language, no jargon that lacks a Glossary entry. A summary that cannot be read in full within its gate's time budget is the finding itself.",
13
+ "There are only five normative words — MUST, MUST NOT, SHOULD, SHOULD NOT, MAY — in English and uppercase; the surrounding prose follows the product's chosen `doc_language`. Flag as a defect: any other imperative marker in any language, a translated method term, or an invented equivalent for a technical term the industry writes in English.",
14
+ "Pushback MUST name the decision actually at stake and its cost if wrong, not merely grade the writing.",
15
15
  ]
@@ -1,31 +1,33 @@
1
- # Kelas A — altitude initiative saja.
2
- # Spine memuat invariant yang mencegah unit yang dibangun terpisah jadi divergen.
3
- # Struktur (stack, tree, data shape) diperlakukan sebagai seed, bukan kontrak.
4
- #
5
- # Urutan mengikat: spine lebih dulu, bmad-spec membacanya sebagai companion — bukan sebaliknya.
6
-
7
- [workflow]
8
-
9
- spine_template = "{project-root}/.constitution/document/templates/architecture-spine.md"
10
- spine_output_path = "{project-root}/.how/_platform"
11
- run_folder_pattern = "architecture"
12
-
13
- # architecture-guide.md MUST NOT dipasang sebagai doc_standards, meski itu tempat lazimnya
14
- # bagi guide dokumen. Skill ini mengecualikan spine dari doc_standards secara sengaja
15
- # customize.toml bawaannya menyebut "never to the spine", dan langkah 5 SKILL.md mengulanginya:
16
- # "apply {workflow.doc_standards} polish to that prose only, never to the spine".
17
- # Dipasang di sana, aturan AD-N cuma memoles deck dan C4 — dokumen yang tidak punya AD-N —
18
- # sementara spine ditulis tanpa guide-nya. Karena itu ia jadi fakta yang dipegang sejak
19
- # aktivasi, bukan poles di akhir.
20
- #
21
- # doc_standards sengaja tidak diisi. Default BMad `skill:bmad-review lenses=structure,prose`
22
- # tetap berlaku untuk rendering, dan array ini append — mengosongkannya tidak mencabut default.
23
- #
24
- # Akibatnya spine tidak punya review otomatis. `bmad-review` atasnya MUST dipanggil manual
25
- # sebelum G4 — lihat tabel "Siapa memanggil bmad-review" di 05-gates.md.
26
-
27
- persistent_facts = [
28
- "file:{project-root}/.constitution/document/architecture-guide.md",
29
- "file:{project-root}/.constitution/document/decision-guide.md",
30
- "Seluruh panggilan memlog.py MUST memakai --path {project-root}/.control/memlog/spine.md. --workspace MUST NOT dipakai.",
31
- ]
1
+ # Class A — initiative altitude only.
2
+ # The spine holds the invariants that keep separately built units from diverging.
3
+ # Structure (stack, tree, data shapes) is treated as a seed, not a contract.
4
+ #
5
+ # Order binds: the spine comes first, and bmad-spec reads it as a companion — never the other
6
+ # way round.
7
+
8
+ [workflow]
9
+
10
+ spine_template = "{project-root}/.constitution/method/document/templates/architecture-spine.md"
11
+ spine_output_path = "{project-root}/.how/_platform"
12
+ run_folder_pattern = "architecture"
13
+
14
+ # architecture-guide.md MUST NOT be installed as doc_standards, even though that is the usual
15
+ # place for a document guide. This skill deliberately excludes the spine from doc_standards
16
+ # its own default customize.toml says "never to the spine", and SKILL.md step 5 repeats it:
17
+ # "apply {workflow.doc_standards} polish to that prose only, never to the spine".
18
+ # Installed there, the AD-N rule would only polish the deck and C4 — documents that carry no
19
+ # AD-N while the spine itself gets written with no guide at all. So it is installed as a
20
+ # persistent fact, held from activation, rather than as end-of-run polish.
21
+ #
22
+ # doc_standards is deliberately left empty. BMad's own default
23
+ # `skill:bmad-review lenses=structure,prose` still applies to rendering, and this array appends —
24
+ # emptying it does not remove the default.
25
+ #
26
+ # The consequence is that the spine gets no automatic review. `bmad-review` on it MUST be called
27
+ # manually before G4 — see the "Who calls bmad-review" table in 05-gates.md.
28
+
29
+ persistent_facts = [
30
+ "file:{project-root}/.constitution/method/document/architecture-guide.md",
31
+ "file:{project-root}/.constitution/method/document/decision-guide.md",
32
+ "Every memlog.py call MUST use --path {project-root}/.control/memlog/spine.md. --workspace MUST NOT be used.",
33
+ ]
@@ -1,10 +1,10 @@
1
- # Satu iterasi loop tanpa interaksi manusia. Dispatch lewat {spec_folder} + {story_id}.
1
+ # One loop iteration with no human in it. Dispatched through {spec_folder} + {story_id}.
2
2
 
3
3
  [workflow]
4
4
 
5
5
  persistent_facts = [
6
- "Repo ini berjalan di stories mode. sprint-status.yaml tidak ada dan MUST NOT dibuat.",
7
- "Disiplin test-first mengikat: test MUST gagal lebih dulu, dan MUST gagal karena alasan yang diharapkan.",
8
- "Worker MUST NOT mengubah apa pun di luar story yang didispatch. Perubahan yang dinilai perlu di luar itu MUST dinyatakan di hasil akhir, tidak pernah dilakukan diam-diam.",
9
- "Saat test atau build gagal dan sebabnya belum diketahui, wdi-systematic-debugging MUST dijalankan sebelum perbaikan apa pun diusulkan. Percobaan perbaikan ketiga yang gagal adalah tanda untuk berhenti dan melapor, bukan untuk mencoba keempat.",
6
+ "This repo runs in stories mode. sprint-status.yaml does not exist and MUST NOT be created.",
7
+ "Test-first discipline binds: a test MUST fail first, and MUST fail for the expected reason.",
8
+ "A worker MUST NOT change anything outside the story it was dispatched. A change it judges necessary beyond that MUST be stated in the final report, never made silently.",
9
+ "When a test or build fails and the cause is not yet known, wdi-systematic-debugging MUST run before any fix is proposed. A third failed fix attempt is the signal to stop and report, not to try a fourth.",
10
10
  ]
@@ -1,52 +1,52 @@
1
- # G5 — satu-satunya pelaksana, dan wdi-build yang mendispatch-nya. Pelaksana MUST NOT merakit
2
- # rantai sendiri.
3
- #
4
- # Memasok disiplin test-first yang bmad-build tidak punya: ia mengaudit test SETELAH implementasi
5
- # (Matrix Test Audit di step-03), tetapi tidak pernah mewajibkan sebuah test gagal lebih dulu.
6
- #
7
- # Aturan merge: string mengganti, list menambah, tabel merge per key.
8
- # .claude/skills/bmad-build/customize.toml MUST NOT diedit — ia ditimpa tiap update.
9
-
10
- [workflow]
11
-
12
- # Mengganti handoff step-03 bawaan. Semua yang dibawa bawaan tetap ada (subagent tanpa konteks
13
- # percakapan, spec sebagai satu-satunya sumber kebenaran, memuat berkas `context:`, laporan
14
- # penutup); siklus test-first inilah yang ditambahkan override ini.
15
- #
16
- # Sengaja memuat METODE saja. Pernyataan ulang tujuan, daftar berkas, acceptance criteria, dan
17
- # aturan gaya rumah TIDAK masuk dispatch — semuanya sudah ada di spec, dan step-03 melarang
18
- # menggandakannya di sini.
19
-
20
- implementation_handoff = """
21
- Launch a subagent with no prior conversation context, with this prompt:
22
-
23
- > Read {spec_file} fully and implement it — the spec is the sole source of truth. Load every file listed in its frontmatter `context:` before you start.
24
- >
25
- > Work test-first, one task at a time:
26
- >
27
- > 1. Write the smallest test that expresses the next unmet acceptance criterion.
28
- > 2. Run it. Confirm it fails, and confirm it fails for the reason you expect — a test that errors on a typo or a missing import has proven nothing.
29
- > 3. Write the minimum code that makes it pass. No extra scope, no "while I'm here" refactoring.
30
- > 4. Run the test plus the surrounding suite. Both must be green before you start the next task.
31
- >
32
- > If a criterion genuinely cannot be expressed as a test — pure configuration, a docs change, a visual-only tweak — say so explicitly in your report and state how you verified it instead. Never invent a test that asserts nothing in order to satisfy the cycle, and never write the implementation first and the test afterwards to make it look followed.
33
- >
34
- > When done, report what you changed, how you verified it, and anything left incomplete or risky. Include the actual command output for the final test run — a claim of green without the output does not count as verification.
35
- """
36
-
37
- persistent_facts = [
38
- "Repo ini berjalan di stories mode. sprint-status.yaml tidak ada dan MUST NOT dibuat; status story tinggal di frontmatter story file.",
39
- "Satu Logical Component MUST terdaftar di components.yaml sebelum story yang menyentuhnya dikerjakan.",
40
- "Saat ada yang rusak dan sebabnya belum diketahui, wdi-systematic-debugging MUST dijalankan sebelum perbaikan apa pun diusulkan.",
41
- ]
42
-
43
- # Tidak dioverride, dan itu disengaja:
44
- #
45
- # - review_layers — tiga layer bawaan (blind-hunter, edge-case-hunter, verification-gap) plus
46
- # Review Panel dua keluarga CLI yang dijalankan bmad-code-review sesudahnya sudah menutup
47
- # kebutuhan review repo ini. Menambah layer keempat memakan token tanpa menutup celah.
48
- #
49
- # - on_complete — pembaruan registry setelah story selesai adalah tugas wdi-build dan skill pemilik
50
- # lapisannya,
51
- # bukan bmad-build. Menaruhnya di sini membuat dua penulis untuk satu berkas.
52
- # Checklist penutup story ada di 05-gates.md.
1
+ # G5 — the only executor, dispatched by wdi-build. An executor MUST NOT assemble its own chain.
2
+ #
3
+ # Supplies the test-first discipline bmad-build lacks on its own: it audits tests AFTER
4
+ # implementation (Matrix Test Audit in step-03), but never requires a test to fail first.
5
+ #
6
+ # Merge rule: a string replaces, a list appends, a table merges per key.
7
+ # .claude/skills/bmad-build/customize.toml MUST NOT be edited it is overwritten on every update.
8
+
9
+ [workflow]
10
+
11
+ # Replaces the default step-03 handoff. Everything the default carries stays (a subagent with no
12
+ # conversation context, the spec as the sole source of truth, loading the files listed in
13
+ # `context:`, a closing report); this override adds the test-first cycle on top.
14
+
15
+ #
16
+ # Deliberately carries METHOD only. Restating the goal, the file list, the acceptance criteria,
17
+ # and house style rules does NOT belong in the dispatch — all of it is already in the spec, and
18
+ # step-03 forbids duplicating it here.
19
+
20
+ implementation_handoff = """
21
+ Launch a subagent with no prior conversation context, with this prompt:
22
+
23
+ > Read {spec_file} fully and implement it — the spec is the sole source of truth. Load every file listed in its frontmatter `context:` before you start.
24
+ >
25
+ > Work test-first, one task at a time:
26
+ >
27
+ > 1. Write the smallest test that expresses the next unmet acceptance criterion.
28
+ > 2. Run it. Confirm it fails, and confirm it fails for the reason you expect — a test that errors on a typo or a missing import has proven nothing.
29
+ > 3. Write the minimum code that makes it pass. No extra scope, no "while I'm here" refactoring.
30
+ > 4. Run the test plus the surrounding suite. Both must be green before you start the next task.
31
+ >
32
+ > If a criterion genuinely cannot be expressed as a test — pure configuration, a docs change, a visual-only tweak — say so explicitly in your report and state how you verified it instead. Never invent a test that asserts nothing in order to satisfy the cycle, and never write the implementation first and the test afterwards to make it look followed.
33
+ >
34
+ > When done, report what you changed, how you verified it, and anything left incomplete or risky. Include the actual command output for the final test run — a claim of green without the output does not count as verification.
35
+ """
36
+
37
+ persistent_facts = [
38
+ "This repo runs in stories mode. sprint-status.yaml does not exist and MUST NOT be created; story status lives in the story file's own frontmatter.",
39
+ "A Logical Component MUST be registered in components.yaml before the story touching it is worked.",
40
+ "When something breaks and the cause is not yet known, wdi-systematic-debugging MUST run before any fix is proposed.",
41
+ ]
42
+
43
+ # Not overridden, and deliberately so:
44
+ #
45
+ # - review_layers — the three default layers (blind-hunter, edge-case-hunter,
46
+ # verification-gap) plus the two-CLI-family Review Panel that bmad-code-review runs afterward
47
+ # already cover this repo's review needs. A fourth layer would spend tokens without closing a
48
+ # gap.
49
+ #
50
+ # - on_complete — updating the registry once a story is done belongs to wdi-build and the skill
51
+ # that owns that layer, not to bmad-build. Putting it here would give one file two writers.
52
+ # The story-closing checklist lives in 05-gates.md.
@@ -1,12 +1,13 @@
1
- # Review Panel: dua peninjau dari dua keluarga CLI berbeda, dan tidak boleh dari keluarga yang
2
- # menjalankan implementasinya.
3
- #
4
- # PERINGATAN: lensa adversarial dan edge-case di sini dibaca dari salinan bundel review-prompts/,
5
- # BUKAN dari skill bmad-review. Override pada bmad-review tidak akan terlihat di jalur ini.
6
-
7
- [workflow]
8
-
9
- persistent_facts = [
10
- "file:{project-root}/.constitution/codebase/conventions-guide.md",
11
- "Temuan yang berulang lintas story MUST dicatat lewat bmad-project-context intent record, bukan diperbaiki diam-diam tiap kali muncul.",
12
- ]
1
+ # Review Panel: two reviewers from two different CLI families, and neither may come from the
2
+ # family that ran the implementation.
3
+ #
4
+ # WARNING: the adversarial and edge-case lenses here are read from the bundled copy of
5
+ # review-prompts/, NOT from the bmad-review skill. An override on bmad-review will not be visible
6
+ # on this path.
7
+
8
+ [workflow]
9
+
10
+ persistent_facts = [
11
+ "file:{project-root}/.constitution/project/codebase-conventions-guide.md",
12
+ "A finding that repeats across stories MUST be recorded through bmad-project-context intent record, not fixed silently every time it recurs.",
13
+ ]