Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ breaking changes may land in a minor release.

### Fixed

- Read BMAD v7's `quick_lenses`/`thorough_lenses` review sets in `validate` and the
run preflight, so a v7 project is no longer required to install the deleted
`bmad-review-adversarial-general` and `bmad-review-edge-case-hunter`. A `workflow.review`
value the dev skill would HALT on, a non-string one included, is reported as
`skills.review-selection-invalid`, a `quick` or `thorough` selection whose own
lens set is all disabled as `skills.review-layers-empty`, and an override v7
refuses to load as a `skills.customize-unreadable` problem.
- Report a missing dev primitive once, without stacking review-skill and dispatch
failures under the legacy `bmad-dev-auto` name on top of it. Name core-tools as
the v7 home of `bmad-review`, and note when a missing skill is installed only
globally (`~/.claude/skills`, `~/.agents/skills`).
- Stop reading an empty psmux window listing as a dead session. psmux can drop a live
server's reply and exit 0 with nothing, which the liveness probe took for a crashed CLI
and the control-window prune for a verified kill. That listing now counts as a failed
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,11 @@ Every finding's `check` is one of these ids. Severity is `ok`, `warning` or `pro
| `skills.dev-renderer-config` | problem | a renderer stub's central config layer is missing |
| `skills.dev-render-probe` | ok / problem | `--render-probe` only: the stub's render command succeeds in a temp copy |
| `skills.customize-legacy` | warning | customize overrides named for the legacy dev primitive no longer apply |
| `skills.customize-unreadable` | warning | a customize override is not valid TOML |
| `skills.customize-unreadable` | warning / problem | a customize override is not valid TOML, or keys an array entry on an `id`/`code` that is not a non-empty string; a problem on a BMAD v7 tree |
| `skills.review-layers-empty` | problem | the dev primitive has no enabled review layer |
| `skills.review-layer-missing` | problem | a referenced review-layer skill is not installed |
| `skills.review-layer-unresolved` | warning | a conditionally referenced review-layer skill is not installed |
| `skills.review-selection-invalid` | problem | BMAD v7: `workflow.review` is not `none`, `quick`, `thorough` or `auto` |
| `skills.stories-dispatch` | ok | stories mode: the dev primitive supports folder+id dispatch |
| `skills.stories-dispatch-missing` | problem | stories mode: the dispatch probe file is missing |
| `skills.stories-dispatch-stale` | problem | stories mode: the dev primitive lacks folder+id dispatch |
Expand Down
28 changes: 26 additions & 2 deletions docs/setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,32 @@ implementation and the follow-up review), installed by the BMad Method (bmm)
module. `bmad-loop validate` checks it — plus any review skills its layers
invoke — are present before a run starts.

bmad-loop resolves BMAD skills only from the project's own skill tree
(`.claude/skills`, `.agents/skills`). A global install (`npx skills add -g`, into
`~/.claude/skills` or `~/.agents/skills`) and a Claude Code plugin install are not used.
When `validate` finds a missing skill installed globally it says so, and
`detail.outside` names that copy, but the run still refuses: install the skill per
project with `npx skills add` without `-g`.

**Minimum BMAD-METHOD: v6.10.0** for sprint mode. Beyond the primitive itself (with
its `customize.toml`), `bmad-loop validate` holds you to no fixed list of review
skills: it reads the primitive you actually have installed and requires the
reviewers that copy will actually invoke — which on current sources is none at all.

- **Lens sets (BMAD v7)** — `customize.toml` defines `[[workflow.quick_lenses]]` and
`[[workflow.thorough_lenses]]`, and `review` (`none`, `quick`, `thorough` or
`auto`) picks the set a run launches. `validate` reads every enabled lens in both
sets, because `auto`, an invocation's `--set workflow.review=…` and bmad-loop's own
`[tickets] thorough_review` can each select either one. The shipped lenses invoke no
skill, so a v7 tree requires no review skill. Any other `review` value, a non-string
one included, is `skills.review-selection-invalid`, because the primitive HALTs
every run on it. An override v7 cannot load (invalid TOML, or a lens `id`/`code`
that is not a non-empty string) is a `skills.customize-unreadable` problem rather
than a warning: v7 refuses to render the dev skill with it.
`validate` reports `skills.review-layers-empty` when the configured set has no
enabled lens: the `quick` or `thorough` set itself, or both sets under `auto`. A
`review = "none"` run launches no lens, so empty sets pass. A `review_layers`
override left over from a v6 install is ignored, as the v7 run ignores it.
- **Layer-driven (post-6.10.0)** — `customize.toml` defines
`[[workflow.review_layers]]`, and a layer's `instruction` may name a skill to hand
off to. Current (6.11) sources define four layers — `blind-hunter`,
Expand All @@ -169,8 +190,11 @@ reviewers that copy will actually invoke — which on current sources is none at

A layer disabled with an empty `instruction`, or replaced in
`_bmad/custom/bmad-build-auto.toml` by a recipe that runs something else, requires
nothing. If the shape cannot be read at all, `validate` falls back to requiring the two
v6.10.0 hunters — which a tree carrying `bmad-review` satisfies.
nothing. Lenses follow the same rules. If the shape cannot be read at all, `validate`
falls back to requiring the two v6.10.0 hunters, which a tree carrying `bmad-review`
satisfies. On v7, `bmad-review` ships in the core-tools module. When the dev primitive
itself is missing, `validate` reports only that: no reviewer is demanded without a
primitive to derive it from.

`bmad-review-verification-gap` is required only when your installed layers name it: no
tagged release ships it as a standalone skill, and on current sources it is a thin
Expand Down
2 changes: 2 additions & 0 deletions src/bmad_loop/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
"skills.review-layer-missing",
"skills.review-layer-unresolved",
"skills.review-layers-empty",
# v7 `workflow.review` outside none/quick/thorough/auto HALTs every build-auto run
"skills.review-selection-invalid",
"skills.customize-unreadable",
"skills.stories-dispatch",
"skills.stories-dispatch-missing",
Expand Down
33 changes: 25 additions & 8 deletions src/bmad_loop/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2833,8 +2833,16 @@ def _warn_preflight_would_abort(
problems = [
p.message
for p in install.missing_base_skills(paths.project, trees)
+ (install.missing_stories_support(paths.project, trees) if require_stories else [])
+ (install.missing_tickets_support(paths.project, trees) if require_tickets else [])
+ (
install.missing_stories_support(paths.project, trees, skip_unresolved=True)
if require_stories
else []
)
+ (
install.missing_tickets_support(paths.project, trees, skip_unresolved=True)
if require_tickets
else []
)
+ (
install.missing_sweep_skill(paths.project, _triage_trees(paths.project, pol))
if require_sweep
Expand Down Expand Up @@ -2968,9 +2976,10 @@ def _require_base_skills(
skill_trees = _skill_trees(project, pol, root, grants, review_owed=review_owed)
findings = install.missing_base_skills(project, skill_trees)
if require_stories:
findings += install.missing_stories_support(project, skill_trees)
# missing_base_skills above reports (and refuses) an unresolved primitive
findings += install.missing_stories_support(project, skill_trees, skip_unresolved=True)
if require_tickets:
findings += install.missing_tickets_support(project, skill_trees)
findings += install.missing_tickets_support(project, skill_trees, skip_unresolved=True)
# Severity decides. A review layer we can't statically resolve (a `when` gate,
# an unrecognized handoff phrasing, an unparseable override) is reported and
# then stepped over: aborting on it would be the false FAIL of #260, only now
Expand Down Expand Up @@ -3073,6 +3082,12 @@ def _validate_stories_folder(
return None


def _all_resolve(project: Path, trees: list[str]) -> bool:
"""Every tree resolves a dev primitive — the precondition for a dispatch-probe ok
line, since the probes skip an unresolved tree rather than report it."""
return all(install.resolve_dev_primitive(project, tree) is not None for tree in trees)


def _validate_stories_queue(
project: Path,
paths: bmadconfig.ProjectPaths,
Expand Down Expand Up @@ -3103,8 +3118,10 @@ def _validate_stories_queue(
f"stories mode: {e} (spec folder: {folder})",
{"spec_folder": str(folder)},
)
stories_probs = install.missing_stories_support(project, skill_trees)
if skill_trees and not stories_probs:
# cmd_validate's skills.base check reports an unresolved primitive on these same
# trees; such a tree is skipped here, so it must also withhold the ok line.
stories_probs = install.missing_stories_support(project, skill_trees, skip_unresolved=True)
if skill_trees and not stories_probs and _all_resolve(project, skill_trees):
# The total form, not `resolve_dev_primitive`: this ok line only renders when
# the probe passed, and the probe ran against exactly this name — so an
# unresolvable tree that somehow satisfied it is still reported as what was
Expand Down Expand Up @@ -3420,8 +3437,8 @@ def _validate_tickets_mode_queue(
retrospective=pol.gates.retrospective if pol is not None else None,
)
)
tickets_probs = install.missing_tickets_support(project, dev_trees)
if dev_trees and not tickets_probs:
tickets_probs = install.missing_tickets_support(project, dev_trees, skip_unresolved=True)
if dev_trees and not tickets_probs and _all_resolve(project, dev_trees):
probed = list(
dict.fromkeys(
install.dev_primitive_or_default(project, tree) for tree in dict.fromkeys(dev_trees)
Expand Down
Loading
Loading