Skip to content

Commit 83d0bf5

Browse files
kodesh87claude
andcommitted
fix(method): cross-component UX home, ux-landed, multi-repo containers, upgrade record
A product repo reported eight method defects; each was decided by the owner and peer-reviewed read-only by four models before landing. - UX gets a product level: .what/experience.md (promise) beside an extended design-system.md (build); ux-guide maps every bmad-ux section to one of them. - New validator ux-landed, per run: landed UX documents name their source in frontmatter landed_from; once components exist every active run must be named, and .what/.how MUST NOT cite the run elsewhere. UX stays optional. - container-built: optional repo: for code kept in another repository; a repo: naming this repository is compared with the origin remote. - cites-resolve skips installed skill copies under any host by pattern, and .work/ scratch. - Completing touches on an applied DEC is allowed, append-only and marked. - Gate skills G1-G4 ask the owner and record gates_passed / g4_passed. - Session papers from outside tools live in .work/<tool>/<slug>/. - update writes upgrade_pending; new `upgrade-check` command; wdi-help routes on it; every CHANGELOG entry states whether wdi-upgrade is needed; drift tests between the wdi-upgrade checklist and the probes. No version bump: proposed as a minor, released by the maintainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2365323 commit 83d0bf5

34 files changed

Lines changed: 1215 additions & 98 deletions

File tree

‎AGENTS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Every bump MUST bring a `CHANGELOG.md` entry in the same commit, written for the
2727
carefully to read an `update` diff — what changed, and what a repo that already has the method installed
2828
has to do about it. `CONTRIBUTING.md` carries the same rule for humans.
2929

30+
Every entry MUST carry one line starting `**`wdi-upgrade`:**` that says *needed* or *not needed*, and
31+
why. A change that moves content into a new shape MUST add its row to `wdi-upgrade`'s checklist and its
32+
probe to `pendingUpgrades()` in the same commit — `tests/upgrade-pending.test.mjs` fails when one
33+
arrives without the other.
34+
3035
## Language
3136

3237
Everything in this repository is **English** — the installer's interface included, and so is every

‎CHANGELOG.md‎

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,72 @@ version contains every fix below it.
1010

1111
---
1212

13+
## [Unreleased] — proposed as a minor
14+
15+
**Read this before you update.** Two validator rules are new or stricter, so a repo that is green today
16+
can come back red. Most of it is something that was already wrong and went unchecked; two parts are new
17+
obligations — the ban on citing a UX run from the corpus, and `landed_from` on every landed UX document.
18+
19+
### Changed: behaviour
20+
21+
- **New validator `ux-landed`, checked per run.** Every landed UX document names the run file(s) it came
22+
from in a new frontmatter field, `landed_from`. Once Product Components exist, every active run
23+
`DESIGN.md` / `EXPERIENCE.md` in `_bmad-output/ux/` MUST be named by some landed document — a
24+
component's, or `.what/experience.md` — and `.what/` and `.how/` MUST NOT cite the run anywhere else.
25+
`landed_from` is provenance: the run may be deleted later and it stays valid. `.control/decisions/` may
26+
still cite the run. A run file without frontmatter is recognised by its filename. UX stays optional: the rule
27+
is silent with no run, silent before any component exists, silent on a run marked `superseded` or
28+
`withdrawn`, and no `mode` or `risk_accepted` value changes it.
29+
- **`container-built` understands a product split across repositories.** A new optional field `repo:` on
30+
a container names the repository its code lives in when that is NOT this one. Such a container keeps
31+
`built: true` and its C4 place, but gets no heading in this repo's code map — the template, the
32+
structure guide, and the validator now say the same thing. Absent `repo:` means this repository, so a
33+
single-repo product sees no change. `repo:` naming this repository — compared with the `origin`
34+
remote; without one the comparison is reported as skipped — or `repo:` on a `built: false` container,
35+
is red.
36+
- **`cites-resolve` recognises installed skill copies under every host.** `.<host>/skills/bmad-*` and
37+
`.<host>/skills/wdi-*` are skipped by pattern instead of a three-host list, so a repo installed for
38+
Kiro, Cline, Trae, or any other supported host no longer carries permanent findings on files it may not
39+
edit. `.work/` is skipped too — scratch is not authority, so a pasted validator line is not a claim.
40+
- **`update` records what `wdi-upgrade` still owes.** The probes now write `upgrade_pending` into
41+
`.control/wdi-method.yaml`, numbered by the rows of `wdi-upgrade`'s checklist, and the field is absent
42+
when nothing is owed. `npx wdi-method upgrade-check` re-probes at any time and rewrites it (exit 1 while
43+
anything is pending); `wdi-upgrade` ends by running it, and `wdi-help` routes on the field instead of on
44+
whether `update` "just ran". The probes no longer report the method's own skill text under a non-Claude
45+
host, or a scratch paper, as stale product content.
46+
47+
### Changed: method
48+
49+
- **UX has a product level.** New `.what/experience.md` (template `templates/experience.md`) holds the
50+
experience every component keeps — foundation, information architecture, voice and tone, the flow map,
51+
journeys that cross components, shared edge cases. `design-system.md` grows the build side: state
52+
patterns, interaction primitives, how accessibility is met, surfaces that are not screens.
53+
`ux-guide.md` § *Product level* maps each `bmad-ux` section to one of the two, and both land at G2
54+
because neither path contains a `<pc>`. A flow zoom-in lands with the component owning its screens,
55+
never with the owner of a shared composite drawn inside it.
56+
- **Completing `touches` on an applied decision is allowed**, append-only, for a file the applying commit
57+
really changed within what the Decision says. A change outside it is a finding, not a trace.
58+
- **Gates get recorded.** `wdi-problem`, `wdi-product`, `wdi-blueprint`, and `wdi-component` end by asking
59+
the owner whether their gate passed and write `gates_passed` / `g4_passed` only on an explicit yes.
60+
Skills that need a passed gate read the record and ask when it is missing; `wdi-reconcile` reports
61+
downstream work whose gate was never recorded. `delivery-flow-guide.md` § *Recording a gate that passed*.
62+
- **Session papers from outside tools live in `.work/<tool>/<slug>/`**, distilled into `DEC-` / memlog /
63+
`.control/reports/` and deleted when the session closes. `corpus-guide.md` no longer asks for a `DEC-`
64+
before scratch is deleted — the two guides disagreed.
65+
66+
**What a repo that already has the method installed does about it.** Run
67+
`npx wdi-method@latest update --yes`, then read the `upgrade` line or `upgrade_pending`. Expect, where
68+
they apply: cross-component UX sections parked in `design-system.md` (item 15), SRS or landed UX
69+
documents citing the UX run (item 16), containers whose code lives in another repository (item 17 —
70+
fill `repo:` there, drop it where it names this repo, and re-run `wdi-init` intent `structure`), and
71+
landed UX documents with no `landed_from` (item 18). Gate skills now record `gates_passed`; a repo whose
72+
gates passed before that is asked once per gate by `wdi-upgrade`, and nothing is written without a yes.
73+
74+
**`wdi-upgrade`:** needed when `upgrade_pending` lists anything — items 15–18 are new in this version —
75+
or when `wdi-help` shows a passed gate that was never recorded. Not needed otherwise.
76+
77+
---
78+
1379
## [0.6.30] - 2026-09-27
1480

1581
A patch. No behaviour changes.

‎CONTRIBUTING.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ for a repo that already has the method installed — and says *nothing beyond `u
170170
answer. A tag whose changelog entry arrives later is a tag whose GitHub release notes are generated from
171171
commit subjects nobody wrote for a reader.
172172

173+
**Every entry says whether `wdi-upgrade` is needed**, on one line starting `**`wdi-upgrade`:**`. That line
174+
is for the reader of the changelog; the repo itself does not depend on it, because `update` probes the
175+
content and records the answer in `upgrade_pending`. A change that introduces a new shape adds its row to
176+
the `wdi-upgrade` checklist and its probe to `pendingUpgrades()` together.
177+
173178
## Before you publish
174179

175180
```bash

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ Inside your coding agent, run:
7373
```
7474
`wdi-help` reads `.control/registry/` and tells you the gate your project is at, the open specs, and the next skill, without guessing from the conversation.
7575

76+
### Updating Later: Do I Need `/wdi-upgrade`?
77+
You never have to work it out from the version number. `npx wdi-method@latest update` checks your repo's content for anything still in an older shape and writes what it found into `upgrade_pending` in `.control/wdi-method.yaml` — absent means nothing is owed. `/wdi-help` reads that field and tells you to run `/wdi-upgrade` first when it is there. `npx wdi-method upgrade-check` re-checks at any time. Every [`CHANGELOG.md`](CHANGELOG.md) entry also ends with a `wdi-upgrade: needed / not needed` line.
78+
7679
---
7780

7881
## Three Workflow Options

0 commit comments

Comments
 (0)