wdi-method 0.6.30 → 0.6.32

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 (43) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/NOTICE +7 -2
  3. package/README.md +16 -11
  4. package/bin/wdi-method.js +396 -87
  5. package/kit/.constitution/method/document/architecture-guide.md +217 -209
  6. package/kit/.constitution/method/document/bmad-skill-register.md +107 -104
  7. package/kit/.constitution/method/document/corpus-guide.md +522 -517
  8. package/kit/.constitution/method/document/decision-guide.md +236 -216
  9. package/kit/.constitution/method/document/delivery-flow-guide.md +20 -0
  10. package/kit/.constitution/method/document/prd-guide.md +245 -245
  11. package/kit/.constitution/method/document/templates/design-system.md +96 -66
  12. package/kit/.constitution/method/document/templates/experience.md +62 -0
  13. package/kit/.constitution/method/document/templates/structure-codebase.md +131 -129
  14. package/kit/.constitution/method/document/templates/ux.md +78 -76
  15. package/kit/.constitution/method/document/ux-guide.md +161 -115
  16. package/kit/.constitution/method/method-glossary.md +3 -0
  17. package/kit/.constitution/method/scripts/validate.py +3375 -3200
  18. package/kit/.constitution/method/structure-guide.md +204 -202
  19. package/kit/.constitution/method/why/README.md +1 -1
  20. package/kit/.constitution/method/why/artifact-map.md +158 -157
  21. package/kit/.constitution/method/why/portability.md +19 -2
  22. package/kit/skills/wdi-autopilot/SKILL.md +32 -19
  23. package/kit/skills/wdi-blueprint/SKILL.md +271 -264
  24. package/kit/skills/wdi-build/SKILL.md +28 -19
  25. package/kit/skills/wdi-component/SKILL.md +179 -174
  26. package/kit/skills/wdi-daily-autopilot/SKILL.md +24 -13
  27. package/kit/skills/wdi-daily-what-to-build/SKILL.md +9 -6
  28. package/kit/skills/wdi-daily-what-to-test/SKILL.md +2 -0
  29. package/kit/skills/wdi-decision/SKILL.md +206 -203
  30. package/kit/skills/wdi-explain-to-me/SKILL.md +2 -0
  31. package/kit/skills/wdi-help/SKILL.md +130 -125
  32. package/kit/skills/wdi-init/SKILL.md +10 -5
  33. package/kit/skills/wdi-problem/SKILL.md +114 -108
  34. package/kit/skills/wdi-product/SKILL.md +167 -162
  35. package/kit/skills/wdi-prune-or-archive/SKILL.md +2 -0
  36. package/kit/skills/wdi-reconcile/SKILL.md +170 -169
  37. package/kit/skills/wdi-upgrade/SKILL.md +234 -215
  38. package/kit/skills/wdi-ux/SKILL.md +187 -169
  39. package/kit-overlay/AGENTS.md +15 -2
  40. package/kit-overlay/portability.md +19 -2
  41. package/lib/platforms.mjs +420 -248
  42. package/package.json +1 -1
  43. package/scaffold/.control/registry/index.yaml +2 -1
@@ -1,203 +1,206 @@
1
- ---
2
- name: wdi-decision
3
- description: Use when a decision worth remembering has been made, when one has to be carried into the documents it governs, or when a planning assumption turns out to be void. Three intents — open, accept, apply. Wraps bmad-correct-course. Produces a globally numbered DEC-.
4
- ---
5
-
6
- # WDI Decision
7
-
8
- Free of stage and free of role: a decision MAY be made at any point by anyone. What is fixed is where its
9
- output lives — `.control/decisions/DEC-NNN-<slug>.md`, numbered globally from `decisions.yaml`.
10
-
11
- Three intents, because deciding, ratifying, and rewriting the documents are three different acts and merging
12
- them means documents change before anyone approved the change.
13
-
14
- | Intent | Does | Who |
15
- |---|---|---|
16
- | `open` | Writes a `DEC-` at `status: draft`. Also the entry point for a void planning assumption, which is where `bmad-correct-course` is dispatched | anyone |
17
- | `accept` | Raises `draft` → `accepted` | **the Product Owner** — or `wdi-autopilot` under an active mandate, with `accepted_by` naming the mandate |
18
- | `apply` | Dispatches the owner of every document the decision reaches, checks what came back, fills `touches`, raises `applied` | anyone |
19
-
20
- Applying is what **freezes** a decision, not accepting. `decision-guide.md` owns the full ladder and this skill
21
- MUST NOT restate it.
22
-
23
- ## The one test, before anything is written
24
-
25
- > **If someone asks in three months why it is like this, is the answer readable from the code?**
26
-
27
- Yes → it MUST NOT be recorded. No → record it.
28
-
29
- **Recording is not mandatory**, and a decision nobody recorded is normal rather than negligence. You MUST NOT
30
- log it as debt or backfill it later from memory. One case stays mandatory: a decision that **contradicts or
31
- changes an `AD-N`**.
32
-
33
- The old name ADR forced the wrong question — *"is this architectural?"* — and that question threw away exactly
34
- the decisions most worth keeping, the ones that sound small.
35
-
36
- ## Intent `open`
37
-
38
- ### Inputs
39
-
40
- Any of these, alone or together: minutes in `.control/meetings/`, an answered question in
41
- `.control/questions/`, a review or debugging finding, a memlog in `.control/memlog/`, a `wdi-reconcile` conflict.
42
-
43
- The memlog is the richest source and the most often forgotten. It is the record of *why* — read it before
44
- writing the Why section rather than reconstructing the reasoning from the outcome.
45
-
46
- ### What it writes
47
-
48
- Three sections, always: **Decision** (one sentence, present tense, quotable) · **Why** · **Cost** (what becomes
49
- harder). Alternatives, a reversal trigger, and Trace are required only when the decision reaches a Product
50
- Component whose `risk_accepted` is `low`; elsewhere an empty one MUST be dropped rather than left as a heading.
51
-
52
- Frontmatter carries `touches: []` — empty until applied — and `type:` when it is useful. There is no `layer:`
53
- and no `component:`; both were classifications demanded before anything was known.
54
-
55
- One `type` has a fixed shape: **`mandate`**, the decision `wdi-autopilot` opens at its preflight. Its
56
- parameters — `from_gate` · `scope` · `parked` · `smoke_test` · `loop` · `expires` — live **only** on its row
57
- in `decisions.yaml`, under `mandate:`; the file carries Decision, Why, and Cost and points at the row.
58
-
59
- A `DEC-` MUST NOT hold an open question. Those go to `wdi-question`.
60
-
61
- ### A void planning assumption
62
-
63
- This is the same intent, with one extra step in front. The trigger is one thing: **a planning assumption turned
64
- out to be void.** It usually surfaces while building, but its impact reaches back into G2, G3, and G4.
65
-
66
- Three things it is **not**:
67
-
68
- | Ask | Route |
69
- |---|---|
70
- | Something is broken and the cause is unknown | `wdi-systematic-debugging` **first**. A correction built on a guessed cause corrects the wrong thing |
71
- | A decision exists and documents must follow | intent `apply`. There is no plan to re-cut |
72
- | Scope grows without invalidating anything | `wdi-product` intent `update`, then the normal flow |
73
-
74
- State the void assumption in **one line** before dispatching. A correction whose trigger cannot be stated in one
75
- line is a re-plan, and it belongs upstream.
76
-
77
- Then dispatch `bmad-correct-course`. Do not restate the rules to it — they arrive through `persistent_facts` in
78
- `_bmad/custom/bmad-correct-course.toml`, including the ban on direct edits. Name the corpus files in scope
79
- explicitly; it globs its own defaults, which this project does not use.
80
-
81
- **Its impact analysis is incomplete by construction** — it knows a PRD and BMad's own planning shapes, and it cannot see
82
- `.what/<pc>/`, `.how/`, `.control/`, or `.constitution/`. Every one of these MUST be checked here:
83
-
84
- | Layer | What to look for |
85
- |---|---|
86
- | `.what/_prd/` | The `FR`/`NFR` that no longer holds, and every one depending on it |
87
- | `.what/<pc>/` | Use cases realising those `FR`, business rules, state lifecycles that lose a state |
88
- | `.how/_platform/` | An `AD-N` the correction breaks, a container the C4 set no longer describes, an inventory row with nothing behind it |
89
- | `.how/<pc>/` | Contracts, flows, and Failure Behaviour written against the old promise |
90
- | the contract | What the spec projected — it MUST NOT be edited to match; it is re-cut |
91
- | `specs.yaml` | The spec's size, and whether the correction changes it |
92
- | Ticket files | Which tickets are in progress, and which have not been picked up |
93
-
94
- The result is a `DEC-` of **`type: course-correction`**. The `SCP-` code is retired — a course correction is a
95
- decision, and no second code names the same thing.
96
-
97
- A correction cancelling more than **30%** of a spec's tickets MUST NOT be handled as a patch. Say so, and let
98
- the spec be re-cut through `wdi-build`.
99
-
100
- A ticket already in progress MUST NOT have what it asks for changed underneath it. Report it; stopping it and
101
- returning it to `ready-for-agent` is the coordinator's act.
102
-
103
- ## Intent `accept`
104
-
105
- Only the Product Owner MAY raise a `DEC-` to `accepted`. **An agent MUST NOT accept its own.** When work is
106
- blocked waiting on one, the block is reported, never resolved by self-approval.
107
-
108
- **One delegation, and it is checkable.** Under a `DEC-` of `type: mandate` at `status: accepted` whose
109
- `expires` has not passed, `wdi-autopilot` MAY accept a decision on the owner's behalf, writing
110
- `accepted_by: DEC-<mandate>` on the row and `date:` in the file. `mandate-accept` holds the chain: the target is a
111
- real mandate that **stood** on that date and had not ended by then — expired or superseded, whichever came
112
- first — and the mandate itself is **never** accepted by delegation.
113
- That is the one decision whose `accepted_by` is a person and a date, the way `risk_accepted_by` is.
114
-
115
- An `accepted` `DEC-` that is still unapplied MAY be corrected in place, with the correction recorded in the
116
- memlog. Nothing has been built on it, so there is no divergent record to preserve.
117
-
118
- ## Intent `apply`
119
-
120
- **You apply nothing yourself.** Every artifact has an owner, and the owner writes it. A hand-edit here produces
121
- a change with no author, no input trail, and nothing that verifies it.
122
-
123
- Exactly one `DEC-`, at `status: accepted`. You MUST NOT apply one in any other status.
124
-
125
- ### Step 1 — List the targets before touching one
126
-
127
- Name every document the decision reaches, and the skill that owns each, **before** anything is dispatched. A
128
- list assembled while editing is a list that grows to fit what was already done.
129
-
130
- | Target | Dispatch |
131
- |---|---|
132
- | `.what/_product-brief/` | `wdi-problem` |
133
- | `.what/_prd/<initiative>/` | `wdi-product` intent `update` |
134
- | `.what/<pc>/` § Actor Register · § UC Catalogue · `03-domain/domain-model.md` | `wdi-blueprint` intent `catalog` |
135
- | `.what/business-rules.md` · `.control/product-glossary.md` | `wdi-blueprint` intent `catalog` |
136
- | `.how/_platform/` — spine, C4, `cross-cutting.md`, the three inventories | `wdi-blueprint` intent `platform` |
137
- | `.what/<pc>/` slots `02`–`05` — full flows, local rules, lifecycles, scenarios | `wdi-component` intent `behaviour` |
138
- | `.how/<pc>/` minus `01-ux/` | `wdi-component` intent `design` |
139
- | `EXPERIENCE.md` · `.how/<pc>/01-ux/` · `design-system.md` | `wdi-ux` |
140
- | `components.yaml` — a PC born or changed · `mode` · `risk_accepted` · the two structure maps | `wdi-init`, by intent |
141
- | `specs.yaml`, or anything inside an open spec | `wdi-build` |
142
- | `.control/questions/` | `wdi-question` |
143
- | `.control/project-non-technical-log.md` · `.control/meetings/` | `wdi-log` |
144
-
145
- A target with **no row here** MUST be reported as a gap in the method, not given a plausible owner.
146
-
147
- Apply in layer order — **`.what/` before `.how/`** — so the lower layer is written against the promise it is
148
- supposed to serve, not against the one it is about to replace. The retired `layer:` field used to declare that
149
- order in advance; it is now simply the order.
150
-
151
- ### Step 2 — Dispatch, one owner at a time
152
-
153
- Hand each owner the `DEC-` id and the exact change its layer has to carry. You MUST NOT restate the decision in
154
- your own words; **quote it.** A paraphrase drifts, and the drift is invisible because both texts read reasonably.
155
-
156
- Each owner keeps its own rules — its review, its memlog, its registry entry. You MUST NOT ask an owner to skip
157
- any of them because the change is small.
158
-
159
- ### Step 3 — Name the gates
160
-
161
- Run the change-control matrix in `delivery-flow-guide.md` and **report** which gates it names. You MUST NOT
162
- reopen a gate yourself, and you MUST NOT treat a green application as a gate that has already passed.
163
-
164
- ### Step 4 — Close the trail
165
-
166
- - Fill `touches:` with the files that were **actually** changed, in the `DEC-` and in `decisions.yaml`. Raise
167
- `status: applied`. **From that point the file MUST NOT be edited** — not the Decision, not the Cost, not a
168
- typo in the Why. Documents cite it now.
169
- - `applied-dec-touches` checks that an `applied` decision names a non-empty `touches`.
170
- - Regenerate `.control/generated/decisions.md` with `validate.py --generate`. That table is how a decision is
171
- found now; searching the memlog for decisions is retired, and the memlog is a run log again.
172
- - Report what changed, and what the decision implied but was **not** changed.
173
-
174
- ## Rules
175
-
176
- - You MUST NOT widen scope beyond the decision. A neighbouring paragraph that now looks wrong is a finding to
177
- report, not a change to make.
178
- - You MUST NOT introduce a new domain noun. If the decision requires one, it goes through `wdi-blueprint` first.
179
- - If applying would contradict another `applied` decision, you MUST stop and report the conflict. Two applied
180
- decisions that disagree is work for intent `open`, not something to resolve by preferring the newer one.
181
- - If the decision is unapplicable as written — the document it names no longer exists, or the change was already
182
- made differently — you MUST report that instead of improvising.
183
- - **Apply the whole chain in one pass.** `touches:` names what the decision reaches and the ownership
184
- table names who lands each part. Edit all of them, then report once. Checking one file, reporting,
185
- waiting, then checking the next is where the time goes — `corpus-guide.md` § One decided change is one
186
- edit pass owns the rule.
187
- - You MUST NOT apply into a spec that is already closed.
188
- - **Supersession is written on both sides**: `superseded_by` on the retired decision, `supersedes` on the one
189
- replacing it. Nothing else about an `applied` decision MAY be touched, and this is the exception — a reader
190
- following the old id needs the pointer forward, and for a `type: mandate` that pointer's date is what says
191
- when the delegation stopped. Retiring a mandate that accepted decisions without it is a `mandate-accept`
192
- finding.
193
- - `AD-N` is a different thing: a living rule with Binds · Prevents · Rule, edited in place. You MUST NOT convert
194
- one into the other.
195
- - A decision that emerged from a failed third fix attempt MUST say so in Why. That is the signal
196
- `wdi-systematic-debugging` exists to raise, and burying it wastes the finding.
197
-
198
- ## Output
199
-
200
- Intent taken. For `open`: the decision in one sentence, its three required sections, and — for a correction —
201
- the void assumption in one line plus what the scan found that `bmad-correct-course` could not see. For `apply`:
202
- every target with its owner, what each owner changed, what was reported instead of changed and why, the gates the
203
- matrix names, and whether `touches` and `applied` were filled.
1
+ ---
2
+ name: wdi-decision
3
+ description: Use when a decision worth remembering has been made, when one has to be carried into the documents it governs, or when a planning assumption turns out to be void. Three intents — open, accept, apply. Wraps bmad-correct-course. Produces a globally numbered DEC-.
4
+ ---
5
+
6
+ # WDI Decision
7
+
8
+ Free of stage and free of role: a decision MAY be made at any point by anyone. What is fixed is where its
9
+ output lives — `.control/decisions/DEC-NNN-<slug>.md`, numbered globally from `decisions.yaml`.
10
+
11
+ Three intents, because deciding, ratifying, and rewriting the documents are three different acts and merging
12
+ them means documents change before anyone approved the change.
13
+
14
+ | Intent | Does | Who |
15
+ |---|---|---|
16
+ | `open` | Writes a `DEC-` at `status: draft`. Also the entry point for a void planning assumption, which is where `bmad-correct-course` is dispatched | anyone |
17
+ | `accept` | Raises `draft` → `accepted` | **the Product Owner** — or `wdi-autopilot` under an active mandate, with `accepted_by` naming the mandate |
18
+ | `apply` | Dispatches the owner of every document the decision reaches, checks what came back, fills `touches`, raises `applied` | anyone |
19
+
20
+ Applying is what **freezes** a decision, not accepting. `decision-guide.md` owns the full ladder and this skill
21
+ MUST NOT restate it.
22
+
23
+ ## The one test, before anything is written
24
+
25
+ > **If someone asks in three months why it is like this, is the answer readable from the code?**
26
+
27
+ Yes → it MUST NOT be recorded. No → record it.
28
+
29
+ **Recording is not mandatory**, and a decision nobody recorded is normal rather than negligence. You MUST NOT
30
+ log it as debt or backfill it later from memory. One case stays mandatory: a decision that **contradicts or
31
+ changes an `AD-N`**.
32
+
33
+ The old name ADR forced the wrong question — *"is this architectural?"* — and that question threw away exactly
34
+ the decisions most worth keeping, the ones that sound small.
35
+
36
+ ## Intent `open`
37
+
38
+ ### Inputs
39
+
40
+ Any of these, alone or together: minutes in `.control/meetings/`, an answered question in
41
+ `.control/questions/`, a review or debugging finding, a memlog in `.control/memlog/`, a `wdi-reconcile` conflict.
42
+
43
+ The memlog is the richest source and the most often forgotten. It is the record of *why* — read it before
44
+ writing the Why section rather than reconstructing the reasoning from the outcome.
45
+
46
+ ### What it writes
47
+
48
+ Three sections, always: **Decision** (one sentence, present tense, quotable) · **Why** · **Cost** (what becomes
49
+ harder). Alternatives, a reversal trigger, and Trace are required only when the decision reaches a Product
50
+ Component whose `risk_accepted` is `low`; elsewhere an empty one MUST be dropped rather than left as a heading.
51
+
52
+ Frontmatter carries `touches: []` — empty until applied — and `type:` when it is useful. There is no `layer:`
53
+ and no `component:`; both were classifications demanded before anything was known.
54
+
55
+ One `type` has a fixed shape: **`mandate`**, the decision `wdi-autopilot` opens at its preflight. Its
56
+ parameters — `from_gate` · `scope` · `parked` · `smoke_test` · `loop` · `expires` — live **only** on its row
57
+ in `decisions.yaml`, under `mandate:`; the file carries Decision, Why, and Cost and points at the row.
58
+
59
+ A `DEC-` MUST NOT hold an open question. Those go to `wdi-question`.
60
+
61
+ ### A void planning assumption
62
+
63
+ This is the same intent, with one extra step in front. The trigger is one thing: **a planning assumption turned
64
+ out to be void.** It usually surfaces while building, but its impact reaches back into G2, G3, and G4.
65
+
66
+ Three things it is **not**:
67
+
68
+ | Ask | Route |
69
+ |---|---|
70
+ | Something is broken and the cause is unknown | `wdi-systematic-debugging` **first**. A correction built on a guessed cause corrects the wrong thing |
71
+ | A decision exists and documents must follow | intent `apply`. There is no plan to re-cut |
72
+ | Scope grows without invalidating anything | `wdi-product` intent `update`, then the normal flow |
73
+
74
+ State the void assumption in **one line** before dispatching. A correction whose trigger cannot be stated in one
75
+ line is a re-plan, and it belongs upstream.
76
+
77
+ Then dispatch `bmad-correct-course`. Do not restate the rules to it — they arrive through `persistent_facts` in
78
+ `_bmad/custom/bmad-correct-course.toml`, including the ban on direct edits. Name the corpus files in scope
79
+ explicitly; it globs its own defaults, which this project does not use.
80
+
81
+ **Its impact analysis is incomplete by construction** — it knows a PRD and BMad's own planning shapes, and it cannot see
82
+ `.what/<pc>/`, `.how/`, `.control/`, or `.constitution/`. Every one of these MUST be checked here:
83
+
84
+ | Layer | What to look for |
85
+ |---|---|
86
+ | `.what/_prd/` | The `FR`/`NFR` that no longer holds, and every one depending on it |
87
+ | `.what/<pc>/` | Use cases realising those `FR`, business rules, state lifecycles that lose a state |
88
+ | `.how/_platform/` | An `AD-N` the correction breaks, a container the C4 set no longer describes, an inventory row with nothing behind it |
89
+ | `.how/<pc>/` | Contracts, flows, and Failure Behaviour written against the old promise |
90
+ | the contract | What the spec projected — it MUST NOT be edited to match; it is re-cut |
91
+ | `specs.yaml` | The spec's size, and whether the correction changes it |
92
+ | Ticket files | Which tickets are in progress, and which have not been picked up |
93
+
94
+ The result is a `DEC-` of **`type: course-correction`**. The `SCP-` code is retired — a course correction is a
95
+ decision, and no second code names the same thing.
96
+
97
+ A correction cancelling more than **30%** of a spec's tickets MUST NOT be handled as a patch. Say so, and let
98
+ the spec be re-cut through `wdi-build`.
99
+
100
+ A ticket already in progress MUST NOT have what it asks for changed underneath it. Report it; stopping it and
101
+ returning it to `ready-for-agent` is the coordinator's act.
102
+
103
+ ## Intent `accept`
104
+
105
+ Only the Product Owner MAY raise a `DEC-` to `accepted`. **An agent MUST NOT accept its own.** When work is
106
+ blocked waiting on one, the block is reported, never resolved by self-approval.
107
+
108
+ **One delegation, and it is checkable.** Under a `DEC-` of `type: mandate` at `status: accepted` whose
109
+ `expires` has not passed, `wdi-autopilot` MAY accept a decision on the owner's behalf, writing
110
+ `accepted_by: DEC-<mandate>` on the row and `date:` in the file. `mandate-accept` holds the chain: the target is a
111
+ real mandate that **stood** on that date and had not ended by then — expired or superseded, whichever came
112
+ first — and the mandate itself is **never** accepted by delegation.
113
+ That is the one decision whose `accepted_by` is a person and a date, the way `risk_accepted_by` is.
114
+
115
+ An `accepted` `DEC-` that is still unapplied MAY be corrected in place, with the correction recorded in the
116
+ memlog. Nothing has been built on it, so there is no divergent record to preserve.
117
+
118
+ ## Intent `apply`
119
+
120
+ **You apply nothing yourself.** Every artifact has an owner, and the owner writes it. A hand-edit here produces
121
+ a change with no author, no input trail, and nothing that verifies it.
122
+
123
+ Exactly one `DEC-`, at `status: accepted`. You MUST NOT apply one in any other status.
124
+
125
+ ### Step 1 — List the targets before touching one
126
+
127
+ Name every document the decision reaches, and the skill that owns each, **before** anything is dispatched. A
128
+ list assembled while editing is a list that grows to fit what was already done.
129
+
130
+ | Target | Dispatch |
131
+ |---|---|
132
+ | `.what/_product-brief/` | `wdi-problem` |
133
+ | `.what/_prd/<initiative>/` | `wdi-product` intent `update` |
134
+ | `.what/<pc>/` § Actor Register · § UC Catalogue · `03-domain/domain-model.md` | `wdi-blueprint` intent `catalog` |
135
+ | `.what/business-rules.md` · `.control/product-glossary.md` | `wdi-blueprint` intent `catalog` |
136
+ | `.how/_platform/` — spine, C4, `cross-cutting.md`, the three inventories | `wdi-blueprint` intent `platform` |
137
+ | `.what/<pc>/` slots `02`–`05` — full flows, local rules, lifecycles, scenarios | `wdi-component` intent `behaviour` |
138
+ | `.how/<pc>/` minus `01-ux/` | `wdi-component` intent `design` |
139
+ | `.what/experience.md` · `EXPERIENCE.md` · `.how/<pc>/01-ux/` · `design-system.md` | `wdi-ux` |
140
+ | `components.yaml` — a PC born or changed · `mode` · `risk_accepted` · the two structure maps | `wdi-init`, by intent |
141
+ | `specs.yaml`, or anything inside an open spec | `wdi-build` |
142
+ | `.control/questions/` | `wdi-question` |
143
+ | `.control/project-non-technical-log.md` · `.control/meetings/` | `wdi-log` |
144
+
145
+ A target with **no row here** MUST be reported as a gap in the method, not given a plausible owner.
146
+
147
+ Apply in layer order — **`.what/` before `.how/`** — so the lower layer is written against the promise it is
148
+ supposed to serve, not against the one it is about to replace. The retired `layer:` field used to declare that
149
+ order in advance; it is now simply the order.
150
+
151
+ ### Step 2 — Dispatch, one owner at a time
152
+
153
+ Hand each owner the `DEC-` id and the exact change its layer has to carry. You MUST NOT restate the decision in
154
+ your own words; **quote it.** A paraphrase drifts, and the drift is invisible because both texts read reasonably.
155
+
156
+ Each owner keeps its own rules — its review, its memlog, its registry entry. You MUST NOT ask an owner to skip
157
+ any of them because the change is small.
158
+
159
+ ### Step 3 — Name the gates
160
+
161
+ Run the change-control matrix in `delivery-flow-guide.md` and **report** which gates it names. You MUST NOT
162
+ reopen a gate yourself, and you MUST NOT treat a green application as a gate that has already passed.
163
+
164
+ ### Step 4 — Close the trail
165
+
166
+ - Fill `touches:` with the files that were **actually** changed, in the `DEC-` and in `decisions.yaml`. Raise
167
+ `status: applied`. **From that point the file MUST NOT be edited** — not the Decision, not the Cost, not a
168
+ typo in the Why. Documents cite it now.
169
+ - `applied-dec-touches` checks that an `applied` decision names a non-empty `touches`.
170
+ - Regenerate `.control/generated/decisions.md` with `validate.py --generate`. That table is how a decision is
171
+ found now; searching the memlog for decisions is retired, and the memlog is a run log again.
172
+ - Report what changed, and what the decision implied but was **not** changed.
173
+
174
+ ## Rules
175
+
176
+ - You MUST NOT widen scope beyond the decision. A neighbouring paragraph that now looks wrong is a finding to
177
+ report, not a change to make.
178
+ - You MUST NOT introduce a new domain noun. If the decision requires one, it goes through `wdi-blueprint` first.
179
+ - If applying would contradict another `applied` decision, you MUST stop and report the conflict. Two applied
180
+ decisions that disagree is work for intent `open`, not something to resolve by preferring the newer one.
181
+ - If the decision is unapplicable as written — the document it names no longer exists, or the change was already
182
+ made differently — you MUST report that instead of improvising.
183
+ - **Apply the whole chain in one pass.** `touches:` names what the decision reaches and the ownership
184
+ table names who lands each part. Edit all of them, then report once. Checking one file, reporting,
185
+ waiting, then checking the next is where the time goes — `corpus-guide.md` § One decided change is one
186
+ edit pass owns the rule.
187
+ - You MUST NOT apply into a spec that is already closed.
188
+ - **Supersession is written on both sides**: `superseded_by` on the retired decision, `supersedes` on the one
189
+ replacing it. Nothing else about an `applied` decision MAY be touched but one trace — appending to
190
+ `touches` a file the applying commit really changed, in the `DEC-` and in `decisions.yaml`, marked on its
191
+ line, `decision-guide.md` § *Completing `touches`* — and
192
+ supersession is the other exception — a reader
193
+ following the old id needs the pointer forward, and for a `type: mandate` that pointer's date is what says
194
+ when the delegation stopped. Retiring a mandate that accepted decisions without it is a `mandate-accept`
195
+ finding.
196
+ - `AD-N` is a different thing: a living rule with Binds · Prevents · Rule, edited in place. You MUST NOT convert
197
+ one into the other.
198
+ - A decision that emerged from a failed third fix attempt MUST say so in Why. That is the signal
199
+ `wdi-systematic-debugging` exists to raise, and burying it wastes the finding.
200
+
201
+ ## Output
202
+
203
+ Intent taken. For `open`: the decision in one sentence, its three required sections, and — for a correction —
204
+ the void assumption in one line plus what the scan found that `bmad-correct-course` could not see. For `apply`:
205
+ every target with its owner, what each owner changed, what was reported instead of changed and why, the gates the
206
+ matrix names, and whether `touches` and `applied` were filled.
@@ -6,6 +6,8 @@ disable-model-invocation: true
6
6
 
7
7
  # WDI Explain To Me
8
8
 
9
+ > **Typed by the owner, or not at all.** Run this skill only when the person typed `wdi-explain-to-me` — `/wdi-explain-to-me` or this host's own syntax for it — in the turn that is running. Reached any other way (a description that looked relevant, another skill, a subagent), stop and name it instead. Hosts that can hold a skill to manual-only already do; on the others, this line is the lock.
10
+
9
11
  The owner names a problem. The result is a **decision briefing**: everything needed to decide, with the
10
12
  agent doing all of the reading and the owner doing only the deciding.
11
13