bmad-method 6.9.1-next.1 → 6.9.1-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-03-triage.md +10 -4
- package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-04-present.md +1 -1
- package/src/bmm-skills/4-implementation/bmad-dev-auto/spec-template.md +8 -0
- package/src/bmm-skills/4-implementation/bmad-dev-auto/step-04-review.md +32 -5
- package/src/bmm-skills/4-implementation/bmad-quick-dev/step-04-review.md +7 -2
- package/src/core-skills/bmad-review-adversarial-general/SKILL.md +1 -1
- package/src/core-skills/bmad-review-edge-case-hunter/SKILL.md +1 -1
- package/tools/validate-skills.js +6 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "bmad-method",
|
|
4
|
-
"version": "6.9.1-next.
|
|
4
|
+
"version": "6.9.1-next.3",
|
|
5
5
|
"description": "Breakthrough Method of Agile AI-driven Development",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agile",
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
"prepare": "command -v husky >/dev/null 2>&1 && husky || exit 0",
|
|
43
43
|
"quality": "npm run format:check && npm run lint && npm run lint:md && npm run docs:build && npm run test:install && npm run test:urls && npm run validate:refs && npm run validate:skills && npm run docs:validate-sidebar",
|
|
44
44
|
"rebundle": "node tools/installer/bundlers/bundle-web.js rebundle",
|
|
45
|
-
"test": "npm run test:refs && npm run test:install && npm run test:urls && npm run test:channels && npm run lint && npm run lint:md && npm run format:check",
|
|
45
|
+
"test": "npm run test:refs && npm run test:install && npm run test:urls && npm run test:channels && npm run test:skills && npm run lint && npm run lint:md && npm run format:check",
|
|
46
46
|
"test:channels": "node test/test-installer-channels.js",
|
|
47
47
|
"test:install": "node test/test-installation-components.js",
|
|
48
48
|
"test:refs": "node test/test-file-refs-csv.js",
|
|
49
|
+
"test:skills": "node test/test-validate-skills.js",
|
|
49
50
|
"test:urls": "node test/test-parse-source-urls.js",
|
|
50
51
|
"validate:refs": "node tools/validate-file-refs.js --strict",
|
|
51
52
|
"validate:skills": "node tools/validate-skills.js --strict"
|
|
@@ -29,7 +29,13 @@
|
|
|
29
29
|
- Append any unique detail, reasoning, or location references from the other finding(s) into the surviving `detail` field.
|
|
30
30
|
- Set `source` to the merged sources (e.g., `blind+edge`).
|
|
31
31
|
|
|
32
|
-
3. **
|
|
32
|
+
3. **Assign severity** to each finding by consequence for the artifact's main consumer (software user, document reader, etc).
|
|
33
|
+
Disregard any severity assigned by a reviewing subagent. Review subagents operate under by-design information asymmetry and do not have enough context to set final severity for this workflow.
|
|
34
|
+
- `low` -- none or cosmetic
|
|
35
|
+
- `medium` -- tolerable
|
|
36
|
+
- `high` -- intolerable
|
|
37
|
+
|
|
38
|
+
4. **Route** each finding into exactly one triage bucket:
|
|
33
39
|
- **decision_needed** -- There is an ambiguous choice that requires human input. The code cannot be correctly patched without knowing the user's intent. Only possible if `{review_mode}` = `"full"`.
|
|
34
40
|
- **patch** -- Code issue that is fixable without human input. The correct fix is unambiguous.
|
|
35
41
|
- **defer** -- Pre-existing issue not caused by the current change. Real but not actionable now.
|
|
@@ -37,11 +43,11 @@
|
|
|
37
43
|
|
|
38
44
|
If `{review_mode}` = `"no-spec"` and a finding would otherwise be `decision_needed`, reclassify it as `patch` (if the fix is unambiguous) or `defer` (if not).
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
5. **Drop** all `dismiss` findings. Record the dismiss count for the summary.
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
6. If `{failed_layers}` is non-empty, report which layers failed before announcing results. If zero findings remain after dropping dismissed AND `{failed_layers}` is non-empty, warn the user that the review may be incomplete rather than announcing a clean review.
|
|
43
49
|
|
|
44
|
-
|
|
50
|
+
7. If zero findings remain after triage (all rejected or none raised): state "✅ Clean review — all layers passed." (Step 3 already warned if any review layers failed via `{failed_layers}`.)
|
|
45
51
|
|
|
46
52
|
|
|
47
53
|
## NEXT
|
|
@@ -86,7 +86,7 @@ Skip this section if `{spec_file}` is not set.
|
|
|
86
86
|
|
|
87
87
|
#### Determine new status based on review outcome
|
|
88
88
|
|
|
89
|
-
- If all `decision-needed` and `patch` findings were resolved (fixed or dismissed) AND no unresolved
|
|
89
|
+
- If all `decision-needed` and `patch` findings were resolved (fixed or dismissed) AND no unresolved `high`/`medium` findings remain: set `{new_status}` = `done`. Update the story file Status section to `done`.
|
|
90
90
|
- If `patch` findings were left as action items, or unresolved issues remain: set `{new_status}` = `in-progress`. Update the story file Status section to `in-progress`.
|
|
91
91
|
|
|
92
92
|
Save the story file.
|
|
@@ -4,6 +4,7 @@ type: 'feature' # feature | bugfix | refactor | chore
|
|
|
4
4
|
created: '{date}'
|
|
5
5
|
status: 'draft' # draft | ready-for-dev | in-progress | in-review | done | blocked
|
|
6
6
|
review_loop_iteration: 0 # incremented by step-04 before each review loopback
|
|
7
|
+
followup_review_recommended: false # set by step-04 on status: done from the final review pass significance judgment
|
|
7
8
|
context: [] # optional: `{project-root}/`-prefixed paths to project-wide standards/docs the implementation agent should load. Keep short — only what isn't already distilled into the spec body.
|
|
8
9
|
warnings: [] # optional: machine-readable warnings for orchestration, e.g. oversized, multiple-goals
|
|
9
10
|
---
|
|
@@ -71,6 +72,13 @@ warnings: [] # optional: machine-readable warnings for orchestration, e.g. overs
|
|
|
71
72
|
the amendment avoids, and any KEEP instructions (what worked well and must survive re-derivation).
|
|
72
73
|
Empty until the first bad_spec loopback. -->
|
|
73
74
|
|
|
75
|
+
## Review Triage Log
|
|
76
|
+
|
|
77
|
+
<!-- Append-only. Populated by step-04 on EVERY review pass, including loopbacks and blocked exits.
|
|
78
|
+
Each entry records triage decision counts for intent_gap, bad_spec, patch, defer, and reject,
|
|
79
|
+
with per-category severity breakdowns using low/medium/high, plus the findings addressed in
|
|
80
|
+
that pass. Empty until the first review pass. -->
|
|
81
|
+
|
|
74
82
|
## Design Notes
|
|
75
83
|
|
|
76
84
|
<!-- If the approach is straightforward, DELETE THIS ENTIRE SECTION. Do not write "N/A" or "None". -->
|
|
@@ -31,16 +31,38 @@ Launch two subagents without prior session context.
|
|
|
31
31
|
### Classify
|
|
32
32
|
|
|
33
33
|
1. Deduplicate all review findings.
|
|
34
|
-
2.
|
|
34
|
+
2. Assign severity to each finding by consequence for the artifact's main consumer (software user, document reader, etc).
|
|
35
|
+
Disregard any severity assigned by a reviewing subagent. Review subagents operate under by-design information asymmetry and do not have enough context to set final severity for this workflow.
|
|
36
|
+
- `low`: none or cosmetic
|
|
37
|
+
- `medium`: tolerable
|
|
38
|
+
- `high`: intolerable
|
|
39
|
+
3. Route each finding into exactly one triage category. The first three categories are **this story's problem** — caused or exposed by the current change. The last two are **not this story's problem**.
|
|
35
40
|
- **intent_gap** — caused by the change; cannot be resolved from the spec because the captured intent is incomplete. Do not infer intent unless there is exactly one possible reading.
|
|
36
41
|
- **bad_spec** — caused by the change, including direct deviations from spec. The spec should have been clear enough to prevent it. When in doubt between bad_spec and patch, prefer bad_spec — a spec-level fix is more likely to produce coherent code.
|
|
37
42
|
- **patch** — caused by the change; trivially fixable without human input. Just part of the diff.
|
|
38
43
|
- **defer** — pre-existing issue not caused by this story, surfaced incidentally by the review. Collect for later focused attention.
|
|
39
44
|
- **reject** — noise. Drop silently. When unsure between defer and reject, prefer reject — only defer findings you are confident are real.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
45
|
+
4. Append a new entry to the `## Review Triage Log` section in `{spec_file}`, in this format:
|
|
46
|
+
```markdown
|
|
47
|
+
### {date} — Review pass
|
|
48
|
+
- intent_gap: count
|
|
49
|
+
- bad_spec: count
|
|
50
|
+
- patch: count
|
|
51
|
+
- defer: count
|
|
52
|
+
- reject: count
|
|
53
|
+
- addressed_findings:
|
|
54
|
+
- `[high|medium|low]` `[patch|bad_spec]` <finding summary and action taken in this pass>
|
|
55
|
+
```
|
|
56
|
+
Where `count` is either just `0`, or total with breakdown by severity `N: (high Nhigh, medium Nmedium, low Nlow)`.
|
|
57
|
+
If no patch was fixed and no bad_spec repair loopback was triggered in this pass, write:
|
|
58
|
+
```markdown
|
|
59
|
+
- addressed_findings:
|
|
60
|
+
- none
|
|
61
|
+
```
|
|
62
|
+
5. Process findings in cascading order. If intent_gap exists, lower findings are moot; follow the intent_gap branch below. If bad_spec exists, lower findings are moot since code will be re-derived. If neither exists, process patch and defer normally. Before each bad_spec loopback, read `{spec_file}` frontmatter `review_loop_iteration` (missing means `0`), increment it by 1, and write it back. If it exceeds 5, append the triage-log entry for this pass with `addressed_findings: none`, then HALT with status `blocked` and blocking condition `review repair loop exceeded 5 iterations (non-convergence)`.
|
|
63
|
+
- **intent_gap** — Root cause is inside `<intent-contract>`. Revert code changes. Append the triage-log entry for this pass with `addressed_findings: none`, then HALT with status `blocked`, blocking condition `intent gap in intent contract`, and include the intent-gap findings.
|
|
64
|
+
- **bad_spec** — Root cause is outside `<intent-contract>`. Do not modify content inside `<intent-contract>`. Before reverting code: extract KEEP instructions for positive preservation (what worked well and must survive re-derivation). Revert code changes. Read the `## Spec Change Log` in `{spec_file}` and strictly respect all logged constraints when amending the sections outside `<intent-contract>` that contain the root cause. Append a new change-log entry recording: the triggering finding, what was amended, the known-bad state avoided, and the KEEP instructions. Append the triage-log entry for this pass, listing every bad_spec finding that triggered the spec amendment and implementation loopback under `addressed_findings`. Read fully and follow `./step-03-implement.md` to re-derive the code, then this step will run again.
|
|
65
|
+
- **patch** — Auto-fix. These are the only findings that survive loopbacks. After auto-fixing, append the triage-log entry for this pass, listing every patch fixed in this pass under `addressed_findings`.
|
|
44
66
|
- **defer** — Append one new entry to `{deferred_work_file}` using this format. Do not modify existing entries or look for duplicates.
|
|
45
67
|
```markdown
|
|
46
68
|
- source_spec: `{spec_file}`
|
|
@@ -55,7 +77,12 @@ Prepare `Auto Run Result` details:
|
|
|
55
77
|
- Summary of implemented change
|
|
56
78
|
- Files changed with one-line descriptions
|
|
57
79
|
- Review findings breakdown: patches applied, items deferred, items rejected
|
|
80
|
+
- Follow-up review recommendation: `true` when the final review pass made review-driven changes significant enough to benefit from an independent follow-up review; otherwise `false`. Use judgment, not a fixed numeric threshold. Base the judgment on the final pass's triage log and fixes, including patched-finding volume, consequence/severity, breadth, behavior/API/security/data impact, and implementation complexity. Many low-severity patched findings can be significant by volume. Do not recommend follow-up for only a few localized low-consequence fixes.
|
|
58
81
|
- Verification performed, including command outcomes or manual inspection notes
|
|
59
82
|
- Any residual risks
|
|
60
83
|
|
|
84
|
+
Set `{spec_file}` frontmatter `followup_review_recommended` from the judgment above.
|
|
85
|
+
|
|
86
|
+
If version control is available, commit. Do not push.
|
|
87
|
+
|
|
61
88
|
HALT with status `done`.
|
|
@@ -30,13 +30,18 @@ Launch two subagents without conversation context. If no subagents are available
|
|
|
30
30
|
### Classify
|
|
31
31
|
|
|
32
32
|
1. Deduplicate all review findings.
|
|
33
|
-
2.
|
|
33
|
+
2. Assign severity to each finding by consequence for the artifact's main consumer (software user, document reader, etc).
|
|
34
|
+
Disregard any severity assigned by a reviewing subagent. Review subagents operate under by-design information asymmetry and do not have enough context to set final severity for this workflow.
|
|
35
|
+
- `low`: none or cosmetic
|
|
36
|
+
- `medium`: tolerable
|
|
37
|
+
- `high`: intolerable
|
|
38
|
+
3. Route each finding into exactly one triage category. The first three categories are **this story's problem** — caused or exposed by the current change. The last two are **not this story's problem**.
|
|
34
39
|
- **intent_gap** — caused by the change; cannot be resolved from the spec because the captured intent is incomplete. Do not infer intent unless there is exactly one possible reading.
|
|
35
40
|
- **bad_spec** — caused by the change, including direct deviations from spec. The spec should have been clear enough to prevent it. When in doubt between bad_spec and patch, prefer bad_spec — a spec-level fix is more likely to produce coherent code.
|
|
36
41
|
- **patch** — caused by the change; trivially fixable without human input. Just part of the diff.
|
|
37
42
|
- **defer** — pre-existing issue not caused by this story, surfaced incidentally by the review. Collect for later focused attention.
|
|
38
43
|
- **reject** — noise. Drop silently. When unsure between defer and reject, prefer reject — only defer findings you are confident are real.
|
|
39
|
-
|
|
44
|
+
4. Process findings in cascading order. If intent_gap or bad_spec findings exist, they trigger a loopback — lower findings are moot since code will be re-derived. If neither exists, process patch and defer normally. Before each loopback, read `{spec_file}` frontmatter `review_loop_iteration` (missing means `0`), increment it by 1, and write it back. If it exceeds 5, HALT and escalate to the human.
|
|
40
45
|
- **intent_gap** — Root cause is inside `<frozen-after-approval>`. Revert code changes. Loop back to the human to resolve. Once resolved, read fully and follow `./step-02-plan.md` to re-run steps 2–4.
|
|
41
46
|
- **bad_spec** — Root cause is outside `<frozen-after-approval>`. Before reverting code: extract KEEP instructions for positive preservation (what worked well and must survive re-derivation). Revert code changes. Read the `## Spec Change Log` in `{spec_file}` and strictly respect all logged constraints when amending the non-frozen sections that contain the root cause. Append a new change-log entry recording: the triggering finding, what was amended, the known-bad state avoided, and the KEEP instructions. Read fully and follow `./step-03-implement.md` to re-derive the code, then this step will run again.
|
|
42
47
|
- **patch** — Auto-fix. These are the only findings that survive loopbacks.
|
|
@@ -28,7 +28,7 @@ Review with extreme skepticism — assume problems exist. Find at least ten issu
|
|
|
28
28
|
|
|
29
29
|
### Step 3: Present Findings
|
|
30
30
|
|
|
31
|
-
Output findings as a Markdown list
|
|
31
|
+
Output findings as a Markdown list: descriptions only, no severity, priority, or ranking.
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
## HALT CONDITIONS
|
|
@@ -16,7 +16,7 @@ Ignore the rest of the codebase unless the provided content explicitly reference
|
|
|
16
16
|
|
|
17
17
|
**MANDATORY: Execute steps in the Execution section IN EXACT ORDER. DO NOT skip steps or change the sequence. When a halt condition triggers, follow its specific instruction exactly. Each action within a step is a REQUIRED action to complete that step.**
|
|
18
18
|
|
|
19
|
-
**Your method is exhaustive path enumeration — mechanically walk every branch, not hunt by intuition. Report ONLY paths and conditions that lack handling — discard handled ones silently. Do NOT editorialize or add filler
|
|
19
|
+
**Your method is exhaustive path enumeration — mechanically walk every branch, not hunt by intuition. Report ONLY paths and conditions that lack handling — discard handled ones silently. Do NOT editorialize or add filler. Do not assign severity labels, rankings, or priority levels.**
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
## EXECUTION
|
package/tools/validate-skills.js
CHANGED
|
@@ -312,6 +312,11 @@ function validateSkill(skillDir) {
|
|
|
312
312
|
const name = skillFm && skillFm.name;
|
|
313
313
|
const description = skillFm && skillFm.description;
|
|
314
314
|
|
|
315
|
+
// Deprecated skills are thin compatibility shims that forward to a replacement.
|
|
316
|
+
// They intentionally omit a "Use when" trigger so users are steered to the new
|
|
317
|
+
// skill instead, so exempt them from the SKILL-06 trigger-phrase requirement.
|
|
318
|
+
const isDeprecated = typeof description === 'string' && /^\s*deprecated\b/i.test(description);
|
|
319
|
+
|
|
315
320
|
// --- SKILL-04: name format ---
|
|
316
321
|
if (name && !NAME_REGEX.test(name)) {
|
|
317
322
|
findings.push({
|
|
@@ -349,7 +354,7 @@ function validateSkill(skillDir) {
|
|
|
349
354
|
});
|
|
350
355
|
}
|
|
351
356
|
|
|
352
|
-
if (!/use\s+when\b/i.test(description) && !/use\s+if\b/i.test(description)) {
|
|
357
|
+
if (!isDeprecated && !/use\s+when\b/i.test(description) && !/use\s+if\b/i.test(description)) {
|
|
353
358
|
findings.push({
|
|
354
359
|
rule: 'SKILL-06',
|
|
355
360
|
title: 'description Quality',
|