Skip to content

fix(method): backlog leaves get parent none, not a broken link - #3303

Closed
rdsimp wants to merge 2471 commits into
devfrom
fix/tickets-backlog-parent
Closed

rdsimp wants to merge 2471 commits into
devfrom
fix/tickets-backlog-parent

Conversation

@rdsimp

@rdsimp rdsimp commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

What

tickets.py pull and move give a leaf in a backlog parent: none and - parent — none. They used to write the folder name (parent: backlog) and a link to <folder>/<folder>.md.

Why

A backlog has no file of its own (tickets_dir's docstring), so _bmad-output/backlog/backlog.md never exists. The ticket check's "every file or link referenced exists and opens" then fails on every story pulled into the backlog. In one run, it returned "The parent reference pointed to _bmad-output/backlog/backlog.md, which does not exist."

The templates already say none:

  • ticket-template.md: none for a ... backlog/ story
  • bug-template.md, spike-template.md: none for a standalone ... in backlog/

How

  • is_backlog(folder): a folder with no <name>.md of its own, the same test tickets_dir uses.
  • parent_name() feeds the parent field in write_leaf and in move.
  • parent_reference() returns none for a backlog, so both pull and move write - parent — none.

Tests

  • New test_pull_into_a_backlog_writes_parent_none. It fails on main (parent: backlog) and passes with the fix.
  • uv run --frozen python -B -m pytest passes.
  • pre-commit passes on both files.

🤖 Generated with Claude Code

do-operator and others added 30 commits September 10, 2026 03:16
* fix(docs-site): act on the review findings from #2850

Five findings, all valid, verified against the code rather than taken on
trust.

The label register failed WCAG AA. --sl-color-gray-3 resolved to #7c8797,
which is 3.64:1 on white, and it sets the sidebar group labels, the table
of contents heading, the search shortcut and the footer meta — 11px
uppercase mono, the hardest case in the file. It is #687383 now: 4.81:1,
and still a step lighter than the body's muted ink so the ramp keeps its
shape. Dark was already 6.16:1 and is untouched.

The footer's column headings were <h2> inside <main>, so they joined the
page's heading outline: a reader skimming by heading met "Method" and
"Community" among the article's own sections. Each column is now a nav
labelled by its own visible text.

Diagram.astro substituted labels with a regex that had no g flag and did
not escape the key, so a key used twice in one drawing replaced only its
first occurrence and a key containing regex metacharacters could match
the wrong element. The rehype plugin walks the tree and has neither
problem; this path now escapes and replaces globally.

The diagram cache guard returned early when no diagrams were found, so
deleting the last one left the pages that embedded it rendering from
cache. The empty list now reaches the digest.

The accessible-name guard checked ariaLabelledBy but not ariaLabel, so a
diagram naming itself that way still had its name replaced by the
markdown alt text.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(docs-site): bring the section list back above the fold

The themed sidebar spaced its groups at 1.8rem, which pushed the last
section 132px below the fold at 1440x800 — so a reader could no longer
see what the docs contain without scrolling, which is the sidebar's main
job on first visit.

Group spacing goes to 0.9rem and item rows lose a little padding. The
mono label register keeps enough air to read as a label.

Measured against the sidebar as it was before the theme landed:

  1440x800   before 791px, themed 932px, now 788px   (fold at 800)
  1280x720   before 791px, themed 932px, now 788px   (fold at 720)

At 720 the original overflowed by 71px and this now overflows by 68, so
it is no worse than the baseline; at 800 both fit. In every case the
full list of sections sits above the fold with the first two sections
showing their contents.

Reported by Alex Verkhovsky.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(docs-site): stop printing the sidebar script on narrow screens

`.page > .main-frame > *` set `display: flex` on every child of the main
frame. One of those children is Starlight's inline sidebar-persistence
module, and `display: flex` overrides the browser's `display: none` for
a script element — so its source rendered as text on the page.

Only below 72rem, because that is where the rule lives, and only in a
production build, where the module is inlined rather than loaded from a
file. That is why it showed on mobile and never in dev.

The selector names the wrapper div instead. Confirmed at 375px: the
script computes `display: none` again, and the footer still sits at the
bottom of the page, which is what the rule was there for.

Also brings two imported diagrams onto the shared type scale. Apparent
size is nominal size over viewBox width; build-run and walkthrough-run
sit at 0.0149, development-paths was 0.0237 and bmad-delivery-loop
0.0187, so their labels rendered up to 1.6x larger than everything else
on the site. Both are scaled to match; planning-skills was within 12%
and is left alone. Median rendered text is now 10.5px on build-run,
10.5px on planning-skills and 12px on development-paths, with no
overflow or collisions.

Reported by Ruben.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
…2853)

bmad-build-auto gains a oneshot route that plans lightly and implements
in the main session without an implementing subagent. Both build skills
replace their embedded route gate with one customizable instruction,
workflow.route_selection, that users override as a whole; route values
are oneshot and full. Intent gaps and irreversible steps always take the
full route regardless of the rule, and a oneshot run replans to full
when the remaining work is substantially larger than anticipated.

The two spec templates are aligned below the frontmatter, and bmad-build
adds Open Questions only when there are intent gaps.
…icon (#2854)

* docs: refresh the README banner, restore its diagram, and fix the favicon

Three things the READMEs and the site were carrying wrong.

The banner is the current one from bmadcode.com: the BMad tile and wordmark
over the line art, at 2x for retina. It replaces a 1408x224 crop, and is
smaller on disk than what it replaces.

The delivery-loop diagram in the README has been broken since the diagrams
moved to `docs-site/src/diagrams`. It cannot simply be pointed at the new
path: an authored diagram carries geometry and classes only, so it needs the
site's stylesheet to have any colour at all, and a README loads an SVG as an
`<img>` where no stylesheet can reach it. So `docs/images/` now holds exports
of the source, generated by `npm run export-readme-diagrams` with the dark
ramp substituted in as literal colours. Literals rather than custom
properties because an export has to survive renderers thinner than a browser
- resvg drops `var()` and paints the fallback black. The Korean README's
copy is exported from the same geometry through the existing labels file, so
the two can no longer drift apart.

The favicon was a teal `B` that matched neither the header tile nor
blog.bmadcode.com. It is now the BMad mark, drawn from the same path data
the header already carries, on the same navy the blog uses. The .ico is
generated from the SVG and stays listed for browsers that ignore
`image/svg+xml`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): draw the bulbs as bulbs, not as coloured circles

The earlier version leaned on gold to say "idea". Once the diagrams lost
their own colours, a circle over a rounded tab in the body ink read as
neither a bulb nor anything else.

So the glyph now carries its meaning in the drawing: a filament arch inside
the globe, a tapered neck, and a ribbed screw base, plus a third ray
overhead. The small bulb takes the same construction one size down, with a
single rib rather than two, which is all that reads at that scale. Both hold
up on the light and dark ramps.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs: give the delivery loop an English page, at the house type scale

The diagram the README leads with appeared on exactly one page of the site:
the Korean `how-to/choose-a-development-path`, a leftover from before the
English tree was restructured into start/plan/build. An English reader never
saw it.

It now opens "Find Your Starting Point" on the docs index, where it says in a
picture what the list underneath says in prose.

Putting it in a docs column for the first time showed its type was tuned for
a README: drawn at a 1120 viewBox, its labels came out at 11.0px and 8.3px
against the 12.8px and 10.9px the other diagrams hold at the same 736px
content width. The sizes are scaled to match; the geometry is untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs-site: guard locale coverage, and give the footer band an edge

Two unrelated things a reader can see, and one they cannot.

The invisible one first. When a locale has no page at a route, Starlight
serves the English one and says nothing, so a missing translation and a
working one look identical from the outside — which is how all five locales
ended up stranded on the pre-restructure tree unnoticed (#2855). Starlight
does mark the substitution: a fallback page carries `lang="en"` on `<main>`
inside a document that declares the locale. The build now checks the built
site for that mismatch, which measures the symptom rather than inferring it
from the sidebar.

The existing backlog is far too large to fix here, so it is recorded in
`locale-coverage-baseline.json` and tolerated. The build fails only when the
picture changes: a route starts falling back, or a baseline entry stops. Both
are one `--update` away. The second failing is deliberate — it is what keeps
the baseline from outliving the problem it records.

The visible one: the footer band sets its own dark ground, which on the dark
ramp is the page's ground, so there was no band — only 297px of unexplained
space where one should have started. It now lifts a step and takes a hairline
in dark mode, and sits flush against the article instead of adding a margin
on top of its own padding. The last-updated line gives up some of its air too;
between them the gap is 234px, and every part of it is now doing something.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs-site: stack the footer columns on mobile, and add the touch icon

The footer's three link groups were laid out in two columns below 32rem, so
one group always dropped onto a row of its own with the space beside it left
empty, and "Plan inside an organization" wrapped inside a 155px column. Three
groups do not fit two columns; on a phone they get one each.

The favicon already matches bmadcode.com exactly - same viewBox, same navy
tile, same three paths, since the mark is the one the header carries. What was
missing is the apple-touch-icon the site also ships, so an icon saved to an iOS
home screen fell back to a screenshot. It is generated from the same SVG,
flattened onto the tile navy because iOS applies its own mask and does not want
the transparency our rounded corners would leave.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): raise the delivery loop's type, and give it back a colour

Alex is right about what he saw, and wrong about it being new. His screenshot
is the version before the type was scaled for a docs column, where the title
rendered at 9.2px against GitHub's 16px body. That is already fixed. But the
original diagram this replaced ran 14/16/21 and the fix brought it to
14.5/16.5/19.5 - a hair under where it always was, and his objection would
have applied to the original too. So rather than argue the point, take it
past the original: 17.5/18/21, which puts the node labels at body size and
the title at 14.5px in a README.

The colour is the other half of his complaint's cause. The original said
"here is where each kind of work joins" in gold; when the diagrams lost their
own colours that meaning went with it and nothing replaced it. The three
entry drops now carry the accent, which is the vocabulary's existing job for
an edge the drawing has to single out, so it works on both ramps. The marker
was still called `arrow-gold`; it is `arrow-entry` now.

The README export also gets a ground rather than a flat fill: a near-black
lifting across the diagonal with one soft accent wash behind the row the work
enters from, which is the register bmadcode.com uses - almost all ground and
one blue. The wash sits high on purpose, because centred it pooled behind the
boxes and their flat fill then read as darker than the ground around them.
The docs site keeps a ground that follows the reader's theme, so this belongs
to the export alone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): drop the gradient ground from the README export

It read as an effect rather than a surface. The drawing's colour is the
accent on the three entry drops, and it says more with a flat ground behind
it and nothing competing.

The larger type and the accent stay.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): space the delivery loop's two band labels evenly

They were not spaced at all, only placed. The title's baseline fell three
units BELOW the big bulb's top ray - the two only looked separate because
they are far apart horizontally - while the lower band had 35 units of air.
That mismatch is what read as wrong.

Both now sit 40 units clear of the nearest mark. The drawing keeps its size
and shifts down inside a taller canvas, 420 to 460, with the labels lifted
out of its group so the shift leaves them where they are; the remaining
padding above and below the pair is 15 and 16.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Replace the regex token substitution and the line-parsed bmad-if
directives in render_skill.py with Jinja2. Templates see config,
workflow, and snapshot(); undefined names, empty entry files, and
links to omitted sources halt; every value a render reaches and the
Jinja2 version key the generation. Migrate the five rendered skills'
sources to the new forms, keep their shipped output byte-identical,
and update the validator rule and the authoring docs.
…2859)

* docs(diagrams): let the delivery loop's two slogans carry the accent

Alexey, on the merged version: "I would make both slogans stick out more -
splash of color, bigger font". He is right, and the original backs him up: it
set START ANYWHERE in gold and RIGHT-SIZED in pale blue, both larger than
what replaced them.

Dropping every colour from the diagrams - so one drawing could serve light
and dark - took that with it, and the two lines went grey and small enough to
skip. They are the only sentences in the drawing, and a reader who skips them
gets four boxes and no argument.

Both now take the accent at 22, up from 17.5 and 18, as a matched pair rather
than the mismatched ink-700 / muted-600 they had drifted into. Two colours
are not available to a theme with one accent, so the pairing the original
drew - gold for the entry promise, blue for the summary - collapses into one
hue used twice. The canvas grows 460 to 466 to hold the larger type at the
same 40 units of clearance.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): make the slogans banners, and give the pair two hues

The theme already had an answer for what a banner is here. custom.css says
the masthead is "display type, a lead, then a hairline closing the band, the
way every section on the marketing site closes" - so each slogan now closes on
a rule, run across the drawing's own measure, 60 to 1060, so the banners sit
on the boxes' grid rather than floating over it.

Both ends in the same accent read as one statement made twice. They are not:
the top is the invitation, the bottom the summary, and the original said so by
setting them in different colours. `--dg-accent-2` is the site's copper, the
nearest thing this palette holds to that gold, so the pairing survives without
inventing a hue. It needs a dark value of its own - `--bmad-copper` is #8a5a00
and disappears on a dark ground - and #e0b25f is that copper lifted, the value
`--dg-warn` already uses on dark.

The two rules cost height: 466 to 477.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): set the banners in the site's label register, and drop copper

Copper is not a palette colour on bmadcode.com. Every use of #8a5a00 there is
a status: `.tag-warn`, the gate's CONCERNS heading, `.road .st`, a flagged row
in the module pane. Putting it on the closing line said "this is a problem"
about the diagram's own conclusion. `--dg-accent-2` is gone.

Reading the live site rather than counting hexes in its stylesheet also
settles what these should be. Its uppercase labels are one register - IBM Plex
Mono, 11px, weight 400, tracking ~0.08em - in exactly two colours: #7c8797
when a label orients, #0f35e0 when it carries weight. No section head on the
site is coloured at all.

So the banners are that register, not the Archivo 700 headings they had
become, and the pair is told apart the way the site tells labels apart: accent
for the opening, which is also what the entry drops below it are drawn in, and
muted for the closing summary. They are set at 16 units rather than the site's
11px because they span the width of a drawing rather than sitting over a
paragraph - 13.3px apparent in a README, against the 9.2px Alexey objected to.

Canvas back to 465 now that the type is smaller.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(diagrams): light the bulbs, and rule the field the original had

Two colour families ran through the original: gold for the inputs - both
bulbs, the three entry drops, the opening line - and cyan for the loop. When
the drops took the accent back, the bulbs were left outside a family they
belong to, so the drawing had a blue arrow leaving an ink bulb.

Both bulbs are lit in the accent now. The cloud stays muted, as it was there
too: it was drawn in the cool colour, not the gold, and a vague notion should
not glow like an idea.

The ruled field returns at the original's pitch, 70 one way and 140 the other,
but held between the two hairlines so it reads as what the banners enclose
rather than running out under them. Drawn in the line token, not the fixed
blue it was, so it survives both ramps - at two opacities, because the dark
line sits further from its ground than the light one and the same value that
is texture on paper becomes structure on black.

No gradient. The docs page gives this drawing no ground of its own, so a
gradient can only live in the README export, and the two would drift apart for
it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Add a `workflow.route` customization (oneshot, full, auto; default auto)
to bmad-build and bmad-build-auto. A route named in the invocation
becomes `--set workflow.route=<value>` on the render command. Templates
render only the pinned route's continuation; auto renders both plus the
selection rule, byte-identical to before apart from reporting. Story
frontmatter gains `route_source` (pinned or auto), and a pinned run
halts when a resumed spec's recorded route differs.

A pinned oneshot run does what it was told, how it was told: the
mid-build stop conditions narrow to an intent gap. Work turning out
larger than expected is the routing call the pin already made, and no
longer stops the run. A hole in the intent still does, because the only
alternative is to guess: bmad-build asks the human, bmad-build-auto
halts blocked with `intent gap`.

Give templates a `halt(message)` function so they can reject values they
cannot act on; each build skill's workflow.md uses it to halt the render
on a route outside oneshot, full, auto instead of silently rendering the
auto path.
…clare (#2862)

* fix(renderer): halt on persistent override keys the skill does not declare

The renderer validates a customization value only where a template reads
it, so a key in `_bmad/custom/<skill>.toml` or `<skill>.user.toml` that
the shipped customize.toml does not declare was merged and then dropped
without a word. A misspelled key, or one a skill has since retired, left
the user believing their override was in force.

Before merging the layers, walk each persistent file's leaf paths against
the shipped defaults and halt naming the file and the undeclared keys.
The check asks whether a key is declared, not whether this render read
it, so an override of a key that only some rendered variants consume
still passes; the existing invocation-override check keeps its stricter
"used by this render" rule.

* docs(customize): drop the note about undeclared keys halting

The halt names the file and the keys, so the reader learns it the moment
it applies; a sentence about it in the precedence section is detail no
reader needs up front.
…de-review (#2861)

Both skills gain a `workflow.review` selector. bmad-build-auto accepts
`none`, `quick`, `thorough`, and `auto`, where `auto` follows the
resolved route (oneshot selects quick, full selects thorough) and is the
default. bmad-code-review accepts `quick` and `thorough`, defaulting to
`thorough`; a review skill with review turned off has nothing to do, so
it offers no `none`. An invocation naming a selection passes it as
`--set workflow.review=<value>`, and any other value halts the render.

`review_layers` retires in both skills in favour of two configured, ordered
lens sets. `quick_lenses` holds the new Quick lens, an informed review of
acceptance criteria, applicable rules, and bugs that reads the spec, its
context files, and the repository's agent instructions. `thorough_lenses`
holds Blind Hunter, Edge Case Hunter, Verification Gap Reviewer, and Intent
Alignment Auditor, identical in both skills; bmad-code-review's Acceptance
Auditor is removed.

Templates render only the selected set. Under `auto` route with `auto`
review, bmad-build-auto renders both sets and the session launches the one
the fixed mapping selects. Under `none`, bmad-build-auto's step-04 drops
its staging, review, and classify sections. The bmad-build-auto story
frontmatter gains `review`, `review_source`, and `lenses_ran`.

The review docs describe the two review depths and point to
bmad-customize for the rest; the customize doc's example sets the default
depth.
Add `workflow.review` (none, quick, thorough, auto; shipped auto) with the
same `quick_lenses` and `thorough_lenses` sets `bmad-build-auto` ships,
replacing `review_layers` and `oneshot_review_layers`. Step-04 renders the
thorough set and step-oneshot the quick set under auto, each renders only
the pinned set otherwise, and `none` drops the lens dispatch and triage.
The oneshot route captures `baseline_commit` and stages a diff so the shared
lens recipes serve both routes. Step-03 now stages the diff and acts on the
implementer's report instead of re-checking tasks and acceptance criteria.
Story frontmatter gains `review`, `review_source`, and `lenses_ran`.
…view (#2866)

The skill is still /bmad-walkthrough. It writes a review narrative and log
under implementation artifacts, then walks the narrative one block at a time.
Hooks are optional; empty ones are omitted. A writer subagent is used only
when the host has subagents.

BREAKING CHANGE: customize.toml no longer uses prepend and append. The
hooks are on_activation, on_block_activation, on_block_complete,
on_complete, and persistent_facts.
…#2884)

* feat(method): add bmad-preview-ticketing skill and tickets.py runtime

Ticketing at every altitude: an initiative sliced into epics, an epic
incepted into a Breakdown of stories, spikes, and bugs, and tickets
written, refined, published, and moved on a git-backed store or a tracker
(GitHub, Jira, Linear, Notion, Trello).

- Container tickets are the spec at their altitude: Requirements with
  stable ids, Outcome, Done when, Boundaries, Breakdown.
- Thin tickets carry contribution and verification; full criteria are
  written when pulled (`refined: false` until approved).
- scripts/tickets.py derives ready, blocked, and to-create views from the
  files; scripts/read_toml.py reads the store config; tests beside them.
- Store configs per tracker under config/, templates per type under
  assets/, customization surface in customize.toml.
- Listed in the bmad help catalog as a preview alternative to
  bmad-create-epics-and-stories plus bmad-sprint-planning.

* fix(method): address review findings in bmad-preview-ticketing

- tickets.py: a dropped blocker still blocks its dependents; mark clears
  blocked_at and blocked_reason on a status change and takes the assignee
  literally; --project-root finds the store config when tickets live
  outside the project; a numeric blocker falls back to the ticket id;
  duplicate Breakdown numbers and blockers naming no entry are errors.
- read_toml.py: read local files only.
- board.md: mark is the leaf-level write, a container's status is a file
  edit, and a dropped ticket is removed or repointed in its dependents.
- SKILL.md: tickets are drafted under tickets.root; persistent facts load
  file: entries.
- gh config: read children with `gh issue view --json subIssues`.
- help catalog: the breakdown includes bugs.

* docs: add a guide to testing v7 previews

A new page under Plan Larger Work for trying proposed v7 planning
changes: setting up an initiative store, configuring where tickets are
tracked, and using bmad-preview-ticketing. It states early that preview
stories are not wired into sprint planning, sprint-status.yaml, or
status updates from bmad-build, and that a story must be refined before
it is built.

- Sidebar entry and a pointer from the stories-and-tracking page.
- Locale coverage baseline records the new English-only page.
* feat(bmad): carry module knowledge in the skills that need it

Help read one document named by every manifest and living in the `bmad`
skill. Installing a subset of a module, or any module that does not ship the
hub, left that pointer dangling and help with nothing to route from. The hub
also shipped the method's content, so it was never neutral.

`knowledge` becomes a list of paths to documents inside the skill that names
them. Skills of one module may name different documents, and the skills
naming one document are what make them a group, so the help a user gets is
exactly the help their install carries. A manifest from before the list
format names no document of its own rather than failing to parse, because
`update` exists to report such a copy as stale.

Since `knowledge` and `requires` now belong to the skill, a module's
manifests are no longer byte-identical, and the three places that compared
raw bytes compare `module_identity` instead: the fields that decide what gets
written to `_bmad` still have to agree.

`scripts/knowledge.py` resolves each path against the skill that named it,
hashes the result, and reports every distinct document once with its carriers
and any copies that disagree. It refuses anything that resolves outside the
skill or is not a plain file, bounds what it reads, and reports a bad skill
rather than failing the whole scan.

`requires` lets a manifest name a skill it depends on and a minimum version,
so `doctor` reports a dependency the install does not satisfy instead of
leaving the user to hit a missing runtime script.

The `toolbox` module becomes `core-tools`, and its help document is the only
one the `bmad` skill now carries.

tools/stamp_release.py validates through the runtime parser, so a release can
no longer ship a manifest the runtime refuses to install, and both use one
definition of a safe path and one of module identity.

tools/validate_manifests.py runs those checks on every commit rather than at
release time, including that a module's skills are still interchangeable —
the invariant whose absence let a broken install pass a green test suite.

* refactor(bmad): carry knowledge documents in bmad-meta/, synced from one source

`references/` is what a skill reads when it runs. These documents are read by
the hub, about the module, so they do not belong there — the agent personas
ended up with a `references/` folder holding only a file they must never act
on. `bmad-meta/` names what the folder is for rather than what is in it, so
anything else the BMad system needs from a skill can live beside them.

A skill must be self-contained once installed, so every skill that names a
document still ships its own copy. Editing 22 copies by hand is how they
drift, so `bmad-meta/` at the repo root is the only copy anyone edits and
tools/sync_knowledge.py writes the rest. Each manifest's `knowledge` list is
already the distribution list, so nothing else records which skill gets what,
and a document a skill stops naming is removed. The check runs in pre-commit,
so copies cannot drift from their source in a commit.

The manifest and module-global scripts stay where they are: moving those
changes the URL `update` builds for every installed copy, which is worth
doing on its own rather than inside this change.

* refactor(bmad): let a skill carry a document no other skill has

Requiring every declared document to exist in bmad-meta/ made a one-off an
error, when a document only one skill carries is the point of a per-skill
list. It also meant this script would delete anything else a skill put in
bmad-meta/, which is the folder's reason for existing.

Only what bmad-meta/ holds is managed: those copies must match their source,
and a shared document a skill stops naming is still swept. A document with no
copy in bmad-meta/ belongs to that skill and is left alone, along with
anything else in the folder.

Nothing is lost by dropping the missing-source error. A declared document
that does not exist is already a tools/validate_manifests.py failure, which
names the manifest and the path.

* feat(bmad): tell a starting skill what setup still owes it

A skill can be installed after the last `bmad setup`, or need a newer hub
than the one present, and until now nothing said so. The two scripts every
skill starts with, resolve_customization.py and render_skill.py, now run
setup_check.py. It reads the skill's manifest, the skills beside it and
`_bmad/`, and records nothing, the same way doctor works.

It reports a required skill that is missing or too old, setup questions
that were never answered, and module scripts that are missing or stale.
Each line is worded as an instruction, so no skill has to explain it. The
check can never fail a resolve or a render.

Manifests gain an optional `recommends` table beside `requires`. A skill
cannot work without what it requires; it works better with what it
recommends. Only `requires` is checked when a skill starts. Doctor lists
both, and a missing recommendation never makes an install not current.
The setup reference now tells the agent to report unmet requirements.

* feat(skills): declare what each skill requires and recommends

Every skill now requires the `bmad` hub at 6.13.0 or later. The five agent
personas recommend the skills their menus name, and offer to install one
when the user picks a menu item whose skill is absent.

When a skill's first hub script is not found, it now offers to run the
`bmad` skill's setup, installing `bmad` first with
`npx skills add bmad-code-org/BMAD-METHOD --skill bmad` when the agent has
no such skill. Five skills already detected this case but assumed `bmad`
was installed. The activation steps that carried this inline are broken
into sub-bullets so they can be read.

* fix(bmad): let the -next build of a required version meet it

The development branch carries `X-next` until `X` is released, and that
build already holds everything `X` will. SemVer orders it below `X`, so
every skill on a development install was reported as needing a newer hub.

One rule, `requirement_state`, now decides this for doctor and for the
check a skill runs when it starts. Only `-next` of the same version is
accepted: an `-rc` build or the `-next` of an earlier version still
counts as outdated.

* fix(manifest): accept keys and bmad-meta files the tools do not know

The runtime already ignores manifest keys it does not read, but the stamper
demanded an exact key set, so a module could not add a field, and BMM could
not have released a manifest with config_questions or scripts.

- stamp_release.py requires module, version, update_source and knowledge,
  validates the keys it knows, and leaves the rest as written. Only the
  top-level version line is rewritten, and the stamp fails if anything other
  than the version changed.
- sync_knowledge.py follows any bmad-meta/ path a manifest names, under any
  key, so a new kind of shared file needs no change to the tool.
- validate_manifests.py runs the stamper's own rules, so an unknown module,
  a non-canonical update_source or a symlinked document fails on the commit.
- parse_packaged_manifest states that unknown keys are ignored, and a doctor
  test installs a skill with unknown keys and bmad-meta files.
* feat(core): read agents and party rooms from skill rosters

The 6.12 installer wrote an [agents.<code>] table to _bmad/config.toml for every agent a module declared, and party mode read those tables. The plain-skills install has no writer for them, so party mode found no agents.

A skill now names roster files under `roster` in its manifest. A roster lists members and the groups they form. A member with `skill` is an agent and is present only while that skill is installed. A member without `skill` is a guest that groups can seat.

- bmad-meta/method-roster.toml: the five method personas and a product-team room, carried by all 22 method skills.
- skills/bmad/scripts/roster.py: scans the skills beside a given skill, reads each roster once per module and reports copies that disagree. An installed agent takes its name, title and icon from the skill's merged customization. An absent agent keeps its persona and carries an install command. [agents.*] tables in the central config apply on top, so a user's own agents and older installs keep working. Nothing is recorded under _bmad.
- bmad-party-mode: resolve_party.py reads roster.py and falls back to the [agents] tables when _bmad/scripts predates it. Module rooms join the group menu; a built-in or user group with the same id wins. Guests and absent agents can be seated in a group and never join the default room. The short alias handles codes like bmad-cis-agent-storyteller.
- bmad-advanced-elicitation reads its personas from roster.py.
- stamp_release.py validates roster files like knowledge documents, including that copies agree.

* fix(core): report roster problems, skip removed agents, refuse shared aliases

- resolve_party.py passes on what roster.py could not use as roster_problems, including copies that disagree, and party mode tells the user.
- A central [agents.<code>] entry is skipped when the roster knows the code and its skill is absent. The 6.12 installer recorded these and nothing removed them with the skill.
- A short alias that two codes claim resolves to neither. The full code and the name still work.
- Format test_roster.py.
)

* feat!: replace per-skill module metadata with bmod module records

A module is now one inert skill folder, bmod-<code>, whose bmod.toml holds a
[bmod] table: the module's code, version, update source, skills, required and
recommended skills, and config questions. Each member skill carries a bmod.toml
with a [skill] table naming its module. A file with both tables is a
single-skill module. This replaces module-manifest.toml and the bmad-meta/
copies every skill carried, along with tools/sync_knowledge.py and its hook.

Standard files in a module folder are found by name: help/help.md is always
read and routes to small help/<topic>.md files that bmad opens only when a
question needs them, and roster.toml supplies agents, guests and parties.

bmad setup is an upsert that reports as JSON, and bmad status is read-only.
Team answers go to _bmad/config.toml and user answers to
_bmad/custom/config.user.toml.

The roster is the one source of agents. The [agents.bmad-agent-*] tables are
gone from the config template, a roster agent's name, title, icon and module
come from its skill and customization, and bmad-forge-idea reads roster.py as
bmad-party-mode does. Skills that handed off to the removed bmad-help skill
now hand off to bmad.

Adds bmod-method and bmod-core-tools with rewritten help, including topics on
prototyping, existing codebases, organizations, poly repos, preparing a repo
for agents, artifact lifetime, unattended builds, review, ticketing,
customization, party mode, research and modules.

BREAKING CHANGE: module-manifest.toml and bmad-meta/ are removed, and
setup.py no longer accepts --doctor or --update. Install bmod-method and
bmod-core-tools beside the skills, then run bmad setup.

* fix(core): report an unreadable required version and a missing record as not current

A required skill with a minimum version and no bmod.toml of its own is a copy
from before module records, so its version cannot be read. It was counted as
met. It is now unmet with state unknown-version and npx skills update as the
fix. A skill that names an absent module record is still left to the missing
module record report.

Setup and status also reported current while listing a missing module record
whenever no install command could be built for it, as with a local or plugin
source. A missing record now makes current false.
* ci: run the Python quality job on Windows beside Ubuntu

The python job now runs on ubuntu-latest and windows-latest with the
same steps and triggers. fail-fast is off so each platform reports its
own result. The Windows job is expected to be red until the defects it
exposes are fixed; no check is skipped or branched by platform.

* fix: make pytest hook portable on Windows

* fix(bmad): replace _bmad on Windows when it already exists (#2918)

A later setup run reserved an empty _bmad.old-* directory with mkdtemp
and renamed _bmad onto it. Windows refuses a rename onto an existing
directory, so every run after the first failed with WinError 183. The
backup is now a name that does not exist yet, made from the time of
the run.

Fixes #2879

* fix: write UTF-8 from every script on Windows (#2920)

A script run by an agent or a hook writes to a pipe. On Windows, piped
output defaults to a legacy code page: a character outside it crashes
the script, and one inside it reaches the reader as the wrong bytes.
Every script now sets stdout and stderr to UTF-8 when it starts on
Windows. A ticketing test reads and writes text outside ASCII to prove
it.

A Breakdown entry's title is now separated with a hyphen, not a long
dash. The ticketing tests wrote that dash in the legacy code page on
Windows; the parser still accepts either.

* fix(quality): accept the platform's line endings in the Python checks (#2919)

A standard Windows checkout has CRLF. yamllint expected LF everywhere,
and four test assertions compared text-mode fixtures byte for byte with
LF. yamllint now expects the line ending of the platform it runs on,
and those assertions no longer depend on the line ending.

* fix(tools): parse skills with the platform's line ending in the skill validator (#2921)

* test: create every temp directory under the resolved temp root (#2922)

* fix(tools): report repo paths with forward slashes on every platform (#2923)

* fix(skills): write paths into rendered prompts with forward slashes on every platform (#2924)

* test(skills): expect forward-slash paths in the rendered text of two more tests (#2925)

* fix(skills): report a folder that refuses new files on Windows, and test denied access there (#2926)

On Windows, tempfile.mkstemp takes "access denied" for a name collision and tries the next name, up to os.TMP_MAX times, so sprint_status.py hung in a folder it cannot write to. _atomic_write now creates its temp file in one attempt.

The tests that need an unreadable file or a folder that takes no new file set the case up with icacls on Windows, where os.chmod cannot. The test of a preserved file mode is skipped there.

* fix(skills): resolve git through PATH in the retrospective's git script, and write its fake git in Python (#2927)

On Windows a bare "git" handed to CreateProcess finds only git.exe, so a
git.cmd or git.bat ahead of it on PATH was never run. The script now resolves
git with shutil.which, which honours PATHEXT.

The tests' fake git was an sh script, which Windows cannot run, so four tests
failed there. It is now a Python script behind a launcher: git.cmd on Windows,
an sh one-liner elsewhere.

* fix(skills): report a folder that refuses new files on Windows in sprint planning, the renderer, and setup (#2928)

On Windows, tempfile in Python before 3.14 takes "access denied" for a name
collision and tries the next name, some two billion times. In a folder whose
access list denies new files, sprint_plan.py, render_skill.py, and setup.py
hung instead of reporting the failure.

Each now creates its temp file or folder in one attempt, exclusively, private
to the user, under a random name: what tempfile does inside, without the retry.
One test per script denies new files in the folder, with icacls on Windows and
chmod elsewhere, and runs the script as a child with a timeout.

* test: share one chmod helper across the test suite (#2929)

Five test files each defined the same helper: os.chmod, or on Windows icacls
with a deny entry. It now lives once in tools/tests/helpers.py. pytest's
pythonpath setting puts that folder on the import path, so the tests under
skills/ find it too, however they are run from the repo.

* revert: resolve git through PATH in the retrospective's git script (#2927) (#2930)

This reverts the product change of 1c2fb5b and drops the four tests it was
made for. The product changed so that a fake git on PATH could run on Windows,
and the fake became a Python script behind a launcher per platform.

The four tests need a git that answers what the installed git never does. Two
of them stand for a git older than 2.31 and for a git killed without a word,
which no repository can arrange. They are more trouble than they are worth.
The product runs a bare "git" again, and the fake git and its helpers are
gone. The code the four tests pinned is unchanged.
…2911)

* docs-site: centre the prose on a wide screen, and widen the measure

Starlight sets `--sl-content-margin-inline: auto 0` on any page with both a
sidebar and a TOC at >=72rem, which pins the prose against the contents list
and piles every spare pixel on its left. On a 1920 screen that was a 268px
hole to the left of the text and 24px to its right. Astro's own docs read the
same way, so this is the framework's default rather than anything this theme
did.

The chrome keeps the edges - full-width header, sidebar hard left, contents
list hard right - and only the prose is centred. Three things had to change.
The contents column reserved a share of the row, 560px for 268px of text, and
now takes a sidebar's width. `.right-sidebar` is `position: fixed` at the full
viewport width, so its text was left-aligned inside a 1920px box and floated
wherever the column happened to start; it is pinned to the right edge now.
And `.main-pane` had an explicit width and would not grow into what that
freed, so centring inside it still left the prose short of the middle.

The measure goes 46rem to 56rem while the space is there. Counted against the
rendered body rather than guessed - Archivo at 17px, ~10.7px an average
character - that is 84 characters a line against 69, the same measure
react.dev uses, and near the 90 where the eye starts losing its place tracking
back. Wider than this wants a larger body size, not just more pixels.

Everything is behind `min-width: 100rem`; below it the layout is Starlight's,
checked at 1599, 1280 and 375.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs-site: record why the measure is global, not scoped to the breakpoint

Both review bots read the wider measure as having escaped the wide-screen
block. It has not; it is deliberate, and the PR said otherwise, which is what
made it look like an accident.

Starlight clamps the measure to the pane it has, so 56rem is a ceiling rather
than a width: 504px at 1152, 632px at 1280, 792px at 1440, and 896px only from
1599 up. Scoping it to the 100rem block would leave a 1440 laptop - the common
case - on the old cramped 46rem, which is the thing this set out to fix.

Checked 1152 through 1920 for the failure the bots were guarding against: no
TOC overlap and no horizontal overflow at any width, because the min()/max()
clamps Starlight added for custom measures hold.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs-site: cut the comments back

Alexey: "MASSIVELY over-commented". Fair - 22 of the 50 lines this branch added
to custom.css were prose, for a 28-line change.

Kept what a reader cannot recover from the code: the character count behind the
measure, and what Starlight's own rule does that these four overrides undo. The
measurement tables, the react.dev comparison and the archaeology belong in the
PR, not the stylesheet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
…nt, dependency check before approval (#2932)

* feat(ticketing): plan epics in tickets.toml and check dependencies before approval

- An epic's planned stories live in tickets.toml beside the epic file; an initiative's
  holds its epics in build order. Containers have no Breakdown section.
- blocked_by accepts an entry or a whole epic in another epic; next and status work on
  an initiative and report gated_by, drift, and unpinned_after.
- tickets.py pull writes the ticket file from its entry, with references and notes.
- Refinement is optional: only an entry with refine = true or a ticket with no epic is
  refined before it starts. Spikes are added on request.
- checks is one array per scope and appends across layers. checks.dependencies finds
  missing blockers, and the check runs on the draft before the user approves it, for
  epics and for stories.
- Work that fits one epic is proposed as one epic.
- Shared decisions go to the architecture spine or the opening epic; touch points,
  Source conflict notes, and a closing refactor sweep are recorded.
- bmad-spec hands story breakdown to bmad-preview-ticketing and no longer writes
  stories.yaml.

* docs(ticketing): keep an entry and its pulled ticket in step for every field

* feat(ticketing): let a container name its own tracker project or team

* fix(build): treat a ticket file as intent, never as a spec to resume

* feat(ticketing): refining reviews the entries; full criteria only for bugs, tickets with no epic, or on request

* fix(ticketing): review findings on pull output, store queries, builder intake, and preview docs

* fix(ticketing): stop when an old string checks override empties the dependency checks
…ticket (#2934)

* feat(ticketing): stable entry ids, after replaces blocked_by, table order is build order

- tickets.toml: id replaces n and is never an order; table order is the build order; after lists real prerequisites only, as a sibling id, <epic id>.<entry id>, or epic-<slug>
- leaf files are <type>-<slug>.md, joined to their entry by frontmatter id; no numbers in names
- tracker keys move to tracker_id; the repo store drops KEY-n ids and the key prefix
- pull writes only the fields the entry sets; mark adds or removes lines as needed
- templates, references, store configs, help files, and the preview doc follow

* feat(ticketing): status belongs to the build, tracker_status beside it

A leaf's `status` is the build's (draft, ready-for-dev, in-progress, in-review, done, blocked) or dropped; a pulled file has none, so a tracker's status can never make the build skip planning. On a tracker store `query` mirrors the tracker's status into `tracker_status`, which `write` never sends back. tickets.py derives a `state` per ticket for `next`, `status`, and the store maps; containers carry status only once work starts.

The `checks.set` lens on builder self-sufficiency now says a gap is fixed in the epic or the references, not by lengthening the entry.

* feat(ticketing): plan section in the ticket, refine pulls the file, find by reference

Every leaf file ends with `## Plan`, the coding agent's section; `pull` writes it empty and the store configs send the body only up to it. Refining an epic's story now pulls its file when none exists and reviews the file with the user; once a file exists it is truth and the entry keeps only id, type, title, after, and hitl current. `tickets.py find <dir> <ref>` resolves `2.1`, an entry id, a tracker id, a file name, or title words to one ticket with its path, so the board and the builders name tickets the same way.

* fix(ticketing): validate epic ids and slugs, bare numbers are sibling ids, find prefers its folder

Review follow-ups on #2934. Every epic needs an integer id and a slug, duplicates of either are errors, and an epic's after must name an id or a slug. In `after`, a bare integer is always a sibling's id and a quoted string never is, so a numeric tracker id cannot be mistaken for a sibling. `find` prefers the folder asked about when a file name exists in more than one epic. Docs: a changed `after` is written to both the file and the entry; the store configs resolve a local ticket through `find` instead of grep.
…ation (#2935)

* feat(bmad): module migrations, with the method module's v6 to v7 migration

A module ships a migration as a TOML file beside its bmod.toml with a
[migration] table. knowledge.py lists them; bmad migrate finds the one
whose detect signals match, follows its guide, and verifies its checklist.

bmod-method/v6-v7-migration.toml carries the rules for moving a v6
project's artifacts into the v7 initiative layout: planning documents,
epics.md and sprint-status.yaml into a ticket tree, inbox for loose work,
and the store's repository and workspace choices asked as questions.

* fix(bmad): migration listing checks every required key; v6 to v7 rules agree with tickets.py

Review fixes. A migration is listed only when its [migration] table names
the record's module and carries every key migrate.md requires. A bad file
is a migration problem, not a document one, and roster.toml is skipped.
The v6 to v7 file: a backlog epic gets no status line, remnants go to
inbox by default, the plan is written before the backup and moved into
the initiative, the archive of done epics' story files is the one
removal and happens after commit, and the workspace move of _bmad is
carved out of the never-touch rule.

* fix(bmad): address review on the v6 to v7 migration

Checklist exempts the migration's own two versioned folders. A whole-epic
dependency is written to the dependent epic file's after as well as the
initiative breakdown, which is where tickets.py gates it. A backlog story
that still has a file maps to draft. The bare-plus-worktree conversion
builds beside the checkout, on the project's own base branch, and removes
the old checkout only after the new layout is verified. Naming a module
narrows migrate's candidates instead of skipping detect. knowledge.py
rejects whitespace-only fields. Help rows match the questions flow.
Drop `modules.bmm.project_knowledge` from the config template and all
skills that referenced it, since planning_artifacts already covers
that scanning need; update skill-validator docs and tests to match.
… the halt

_verify_existing required a generation folder to hold exactly the manifest's
files, so a Thumbs.db, editor swap file, or sync conflict copy halted every
later activation of that skill, and the HALT line named only the folder.

Verify only the files the manifest names: each must exist and match its hash.
Extra files are ignored since nothing reads them. A missing file still halts,
and the message names each missing path, keeps the folder path, and says that
deleting the folder is safe because the next run renders it again.

Item 1 of #2722.
fix(render): ignore stray files in a generation, name missing ones in the halt
…a bare id or path

When the invocation only pointed at the work (a story or ticket id, a
folder+id dispatch, a ticket file), verbatim_intent was that pointer, so the
intent-alignment lens audited the diff against text like "3-2". Use the
pointed-to item's title and description, or the ticket's text, instead.
…ntent

fix(build-auto): give the intent lens the work item's own words, not a bare id or path
Collapse the target cascade, drop the diff-mode keyword table, per-source
git commands, and no-VCS branch; keep unique temp diff file, untracked
files for file lists, empty-diff halt, spec baseline, story_key, and the
checkpoint.
…n gather-context

Functional dry runs showed the shortened step lost three behaviors the old
text pinned: branch diffs ran two-dot and showed later base commits as
reverted; a failed gh pr view fell through to the current-branch prompt
instead of asking for a SHA or branch; a spec baseline had no stated upper
bound or claims source.
bmadcode and others added 23 commits November 27, 2026 22:58
`recon_kit.py` now ignores `[n]` patterns inside Markdown inline code spans (handling CommonMark backtick-run lengths and paragraph/block breaks) and preserves/reports duplicate appendix rows explicitly instead of dropping them.

Fixes #3167
Adds a same-plan boundary to `implementation_handoff` in `bmad-build` and `bmad-build-auto`. The implementer is told to implement the plan itself: not to invoke `bmad-build`, `bmad-build-auto`, or `bmad-agent-dev`, and not to delegate the plan itself to another subagent. Bounded subtasks with explicit deliverables remain allowed, with the implementer integrating results and verifying the full implementation.

Fixes #2987
…veral modules

The config resolver now treats short config keys defined with equal values across multiple modules as a single match instead of halting as ambiguous, while differing values (including `1` vs `true`) still halt. Updates `_ConfigTable` and `tools/skill-validator.md` to match.

Refs #2718
Adds rubric-writing guidance to `skills/toolsmith/bmad-eval/references/eval-format.md` and `docs/reference/eval-format.md`: no escape clauses, verify the files the skill actually wrote, separate expectations for exclusions/refusals, and planting a defect to verify every expectation catches what it tests.
Line 1 of the Shard Pro `kestrel-manual` and `tidewater-prd` rubrics now requires the deliverable itself to rebuild the source line for line against the input fixture: the shard bodies listed in `.shards.json` (stripped of frontmatter and the blank line under it, joined in manifest order) when split, or the original file except for an added contents list when not split. `.source/` does not count as the deliverable.
Updates `setup.py`'s `output_folder()` to resolve `{project-root}` matching `render_skill._resolve_config_value()` and return a `Path`, so `output_folder = "{project-root}"` no longer creates a literal `{project-root}` directory during `bmad setup`. Keeps `present(output)` for Windows junction detection and adds tests in `tests/core-tools/bmad/test_setup_output_folder.py`.

Fixes #3144
… layers

`bmad setup` and `bmad status` now read `core.output_folder` through `_bmad/custom/config.toml` and `_bmad/custom/config.user.toml`, resolving `{project-root}` as `render_skill` does. Includes regression tests covering both user-override and team-custom-only overrides.

Fixes #3024
Preserves each stream's active `errors` handler (e.g., `surrogateescape` / `backslashreplace`) across all `reconfigure(encoding="utf-8")` calls in `skills/` and `tools/`, matching `brain.py`'s `pin_utf8()` pattern, and adds regression tests in `test_resolve_config.py` and `test_resolve_customization.py`.

Fixes #3206
…all, and omit empty script dirs (#3287)

* refactor(bmad): allowlist shared scripts, drop dead pick_methods install, and omit empty script dirs

* fix(bmad): harden validate_bmod discovery, emit first_setup, and fix eval fixture

* fix(toolsmith): pass --root in validate.md and isolate Path.home test on Unix

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…olsmith template (#3288)

* refactor(skills): vendor frontmatter.py into standalone skills and Toolsmith template

* fix(skills): restore creative eval frontmatter, flag missing memory scripts, and clean up tests

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…#3289)

* feat(bmad): support [bmod] scripts and move tickets.py to bmod-method

* fix(bmad): reject nested script path conflicts, fix Windows test, and clarify standards

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…d facilitation framing (#3291)

* docs(readme): refresh README for v7 modules, #dev installs, and new graphics

* docs(readme): tighten vertical spacing on v7 hero banner

* docs(readme): frame facilitation around adaptive coaching instead of document templates

* docs(readme): move legacy v6.12 note to top of Start Building

* docs(site,skills): align docs, overview diagram, and skill descriptions with v7 positioning

* docs(install): clarify npx skills update before bmad setup for #dev installs

* docs(install): promote #dev update instructions to prominent callouts

* docs(install): add prominent v6-to-v7 upgrade and backup warning

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…e removal (#3292)

* feat(bmad): add startup check, first-run tutorial, module catalog, and safe removal

Implements Story 14 (BMad Agent lifecycle, onboarding, module catalog & setup guidance):

- Standardize BMad Agent identity across bmad prompts and core-tools post-install message
- Add references/tutorial.md for first-run and on-demand workspace-grounded capabilities tours
- Add sibling scripts startup_check.py (parallel updates, 24h git-clean OS cache, per-version SemVer snooze, local blockers, Close-time skip) and modules.py (official catalog diff/install and dry-run/confirmed removal)
- Bundle assets/modules.toml with repo-only CATALOG-01 parity validation in tools/validate_skills.py
- Parallelize setup.py module_update_report, add changelog_url and mixed-scope warnings, expose [core] answers on full setup, and add method repo/tracker post-install guidance
- Share RESERVED_CUSTOM_FILES in config_utils.py across setup.py, migrate_v6.py, and list_customizable_skills.py
- Add unit tests and trigger eval coverage

* fix(bmad): refine setup pause, catalog routing, module-removal trigger, and add lifecycle evals

Add 6-case Sonnet-verified lifecycle eval suite (evals/core-tools/bmad/lifecycle-cases.json) and tighten bmad prompts based on real eval findings:

- Clarify in SKILL.md and references/setup.md to speak naturally in first person as the BMad Agent (no third-person self-reference)
- Add explicit pause gate in references/setup.md so setup waits for user answers to --list-config-questions instead of auto-accepting defaults
- Mark first-run onboarding silently via --mark-onboarded while warmly offering the tour as a direct question
- Route mixed/help questions about available official modules to references/setup.md (modules.py catalog)
- Promote module list/add/install/remove in SKILL.md description so removal triggers bmad reliably

* feat(bmad): add v7 in-character tour, roster --brief, setup support message, and pycache filter

Enhances the BMad Agent onboarding and setup experience:

- Filter __pycache__ and .pyc/.pyo in setup.py read_plain_tree so bytecode never copies into _bmad/scripts or triggers stale drift
- Add --brief mode and module-owned intro support to roster.py so tours load compact agent summaries without truncation
- Surface optional module-owned [bmod] tour_highlights in modules.py catalog
- Add first-person in-character intro lines to method, founder, creative, and toolsmith roster.toml files and tour_highlights to core-tools, method, and toolsmith bmod.toml files
- Include the open-source, GitHub star, donation, and community links in bmod-core-tools post_install_message (shown on initial setup and updates) and require full verbatim message quoting in references/setup.md
- Upgrade references/tutorial.md with the BMad v7 specialist-agents philosophy, in-character team introductions, direct skill highlights, and Chief-of-Staff wrap-up
- Add unit tests and Sonnet-verified capabilities-tour-in-character eval case

* docs(bmad,method,toolsmith): sharpen method and toolsmith catalog, roster, and install descriptions

* fix(bmad): focus uninitialized first greeting solely on setup before offering tour

* chore(bmad): add bmad-loop to module catalog, fix tea source path, remove unmigrated gds

* fix(bmad): align post-rebase imports and module-removal runtime test with dev

* fix(bmad): harden startup state, module removal, catalog validation, and docs

* fix(bmad): preserve dependency warnings on partial plugin copies and harden state writes

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…n, project-context pointer (#3293)

* feat(bmad-eval): write eval runs to the skill's gitignored .eval-results folder

Runs default to <skill>/.eval-results (matrix runs to <project>/.eval-results). The folder writes its own .gitignore, and the clean-room copy of the skill leaves it out so earlier reports never bias a run.

* feat(method): ask repo topology at setup and point post-install at bmad-project-context

Adds the repo_topology setup question read by bmad-project-context, and has setup recommend a shared output folder for multi-repo workspaces.

* docs: document repo_topology answer and post-setup project-context step

* fix(bmad-eval): write .gitignore with LF on Windows and keep the home fallback for matrix runs

* fix(bmad-eval): keep eval reports out of rendering and discovery, quote output paths, honor reports_folder overrides

Skip .eval-results in render_skill, validate_skills, scan_config_reads and matrix discovery. Pass --output-dir quoted, keep custom reports_folder for matrix runs, report the actual run path, and keep sibling-repo discovery for standalone or cross-target project-context runs.

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…t lookup, human template labels, and help eval suite (#3294)

* feat(core-tools,method,toolsmith): implement modular help contract, direct agent lookup, and 5-suite evals

- Add hybrid digest + BM25 search + topic/template/custom/external source engine in knowledge.py
- Migrate all 5 bundled modules to routing.toml, [skill.help], and concise skill-local help topics
- Enable direct knowledge.py lookup from domain agents without hopping through bmad
- Update validate_manifests.py, Toolsmith templates/guides, docs, and CI help freshness gate
- Add 5-sandbox help eval suites (98 cases), compiler, scoreboard summarizer, and unit tests

* feat(bmad-eval,core-tools): add transcript accounting, harness-driven grader, review reports, and explicit help prefixes

- Parse step_update token usage and tool calls in bmad-eval eval_common.py
- Add harness-driven parallel LLM judge script (grade_runs.py) and HTML/Markdown review report output in summarize_evals.py
- Guard _bmad/config.toml lookup in bmad help.md and calibrate leanness assertions in compile_cases.py
- Prefix all natural help eval questions with /bmad or Hey bmad and add regression tests

* feat(core-tools,method,toolsmith): add org-bmod and router evals, human template labels, replan and help refinements

* fix(ci,tests): fetch history for help freshness gate, align quality.py, and fix Windows path assertion

* fix(core-tools,method,toolsmith,evals): address PR review findings across help, validation, and eval harness

* fix(core-tools,evals,tools): handle invalid template encoding, long digest checks, and snapshot freshness

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…3296)

* test(method): add baseline single-turn and trigger evals for Sally

* fix(method): stage valid ticket fixtures and clarify eval README

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…tion (#3295)

* feat(bmad): add user model tiers, capabilities, and tooling configuration

* chore(agents): document manual cleanroom testing workflow

* fix(bmad): address PR review findings and refine provider model suggestions

* chore(agents): remove personal cleanroom note and note eval requirement

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…s, and evals (#3297)

* feat(method): add UX-first help routing, prototype IDs, 3-tier tokens, and evals

* refactor(method): remove prototype ID and aria-label rules, keep self-QA

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…ig (#3298)

* feat(bmad): add knowledge_sources and artifact_destinations core config

* docs(configuration): clarify central source and destination rollout

---------

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
…unbook (#3299)

Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
Co-authored-by: bmad <bmad@bmads-Mac-Studio.local>
tickets.py pull and move wrote the folder name as `parent` and linked
`- parent — <folder>/<folder>.md` for a leaf in a backlog. A backlog has
no file of its own, so the link never opens and the templates say
`parent: none` for a backlog ticket. Both now write `none` there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot changed the base branch from main to dev November 29, 2026 20:03
@github-actions

Copy link
Copy Markdown
Contributor

Retargeted to dev: main receives releases by fast-forward push, not PRs.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · The PR appears safe to merge, with a non-blocking gap in regression coverage for backlog moves.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change reaches leaf files created or moved in backlog ticket workflows.

The PR appears safe to merge, with a non-blocking gap in regression coverage for backlog moves.

Findings

  1. P2 Backlog moves remain untested ▶
Fix with agent prompt
### Issue 1
tests/method/bmod-method/test_tickets.py:809-816
The new regression test covers `pull`, but the changed `move` path writes the parent field and body reference separately. Existing move tests only use destinations with a parent file, so a regression in backlog moves could pass unnoticed. Add a test that moves a pulled leaf into a backlog and checks both `parent: none` and `- parent - none`, then moves it back into an epic and checks that both parent values are restored.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Backlog leaves now receive parent: none and - parent — none instead of a reference to a missing parent file.

  • Backlog tickets now show none instead of a parent link.

Reviews (1) · Last reviewed commit: "fix(method): backlog leaves get parent n..." · Reviewed by Greptile

Comment on lines +809 to +816
def test_pull_into_a_backlog_writes_parent_none(self):
backlog = self.add_backlog()
r = self.add_entry(backlog, {"type": "story", "title": "Rename a dashboard"})
self.assertEqual(r.returncode, 0, r.stderr)
run("pull", str(backlog), "1")
text = (backlog / "story-rename-a-dashboard.md").read_text(encoding="utf-8")
self.assertIn("\nparent: none\n", text.split("---")[1])
self.assertIn("- parent — none\n", text)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Backlog moves remain untested

The new regression test covers pull, but the changed move path writes the parent field and body reference separately. Existing move tests only use destinations with a parent file, so a regression in backlog moves could pass unnoticed. Add a test that moves a pulled leaf into a backlog and checks both parent: none and - parent — none, then moves it back into an epic and checks that both parent values are restored.

Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/method/bmod-method/test_tickets.py
Line: 809-816

Comment:
**Backlog moves remain untested**

The new regression test covers `pull`, but the changed `move` path writes the parent field and body reference separately. Existing move tests only use destinations with a parent file, so a regression in backlog moves could pass unnoticed. Add a test that moves a pulled leaf into a backlog and checks both `parent: none` and `- parent — none`, then moves it back into an epic and checks that both parent values are restored.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Backlog leaf files now use none as their parent in frontmatter and References. Pulling or moving a leaf applies the same parent naming rule. A test checks the pulled entry and confirms that no backlog.md file is created.

Changes: Backlog parent references

Layer / File(s) Summary
Backlog parent handling
skills/method/bmod-method/scripts/tickets.py, tests/method/bmod-method/test_tickets.py
Backlog folders without their own Markdown file now use none for parent references. Pull and move operations apply this value. The test checks the pulled entry’s frontmatter and References and confirms that no backlog.md is created.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: bmadcode, alexeyv

Merge Risk: Minimal · up to fbe7c

Backlog tickets now record none as their parent instead of a link to a file that does not exist. The change is narrow and tested for the pull path, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: backlog leaves get parent: none instead of a broken link. It is specific and matches the changeset in tickets.py and its test. It is a short, single sentence and fol…
Description check Passed The description explains the change in tickets.py pull and move. It states why the old output (a link to a nonexistent backlog.md) was wrong, lists the new helpers is_backlog and parent_name, names th…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: backlog leaves get parent: none instead of a broken link. It is specific and matches the changeset in tickets.py and its test. It is a short, single sentence and follows a conventional commit prefix.

Full details: Description check

Explanation

The description explains the change in tickets.py pull and move. It states why the old output (a link to a nonexistent backlog.md) was wrong, lists the new helpers is_backlog and parent_name, names the new test, and reports test and pre-commit results. It is directly related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between db99018 and fbe7cac.

Files selected for processing: 2

  • skills/method/bmod-method/scripts/tickets.py
  • tests/method/bmod-method/test_tickets.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.