Repository navigation
Description
Describe the bug
We ran bmad migrate (migration-1) with an agent on a copy of a real v6.12 project: 206 stories in 10 epics, 194 of them done. The migration finished, all 14 checklist items passed, and tickets.py status matched the counts. Three problems were not caught by the checklist or were left to luck. All cited lines are unchanged at v7.2.0 (c978bf85).
1. Criteria merged into the wrong plans. Each build record becomes a plan "with the criteria from epics.md merged in" (migration-1.toml:133). In 187 of 194 done plans, the merged section carried the criteria of the last story in the plan's epic. The section heading named the right story. The text under it belonged to another story. The agent had written a helper script with a loop bug. None of the checklist items (:205) compares merged text with its source, so the run reported success.
2. Epic status taken from sprint-status.yaml where the team never tracked epics. An epic's status comes from sprint-status.yaml, and backlog gives no status line (:127). Our team tracked stories only, so every epic key was still backlog although its stories were done. Every migrated epic would be open. An after on an epic holds every ticket under the dependent epic until the named epic is done (:125), so that work would stay blocked. The agent noticed and asked us, but the guide does not tell it to.
3. Code and tests that read the v6 folders are listed together with documents. Since #3007, references to the old folders outside the store are listed for the user (:179). Our list had 61 entries, mostly prose. One was a test that reads the architecture folder at run time, and it failed on every build after the migration. Nothing in the report set it apart from the documents.
Steps to reproduce
- A v6.12 project where
epics.mdhas several stories per epic andsprint-status.yamltracks stories but leaves epic keys atbacklog. - A test or script in the project that reads a file under the v6 planning folder.
- Run
bmad migrateand accept the plan. - For 1: compare a plan's merged criteria with that story's
### Story N.Msection in the archivedepics.md. For 2: check the epic files forstatus. For 3: run the project's tests.
Expected behavior
- A checklist item: "Each plan's criteria merged from
epics.mdare that story's own section." A check by lines can do it. We use lines of 40 characters or more that only this story's section has. A file carries the story's text when it has at least half of those lines and at least two. On our copy this found all 187 plans with no false positives. - When every epic key is
backlogbut its stories are past it, the epic status is derived from its stories (donewhen all are done,in-progresswhen any has started) and recorded in the plan. The pre-release spec rule already does this (:155: "itsstatusisdonewhen every story is"). - The list of references outside the store separates code, tests and build or CI files from documents. The first group is marked "breaks at run time; update before you merge".
Environment (if relevant)
- Model(s) used: Claude (Claude Code)
- Agentic IDE used: Claude Code CLI, Windows
- BMad version: 7.1.0 for the run; rules re-checked at 7.2.0 (
c978bf85). A second run at 7.2.0 on a fresh copy of the same project hit 2 and 3 again. 1 did not recur, because that agent's helper had no loop bug, and the checklist would not have told us either way. - Project language: C# and TypeScript
Screenshots or links
- v6→v7 migration dry run on a real v6.12 project: 4 findings (split-story ids, dated runs, TEA folder, references outside the store) #3007: the earlier dry run that added the list of references outside the store.
- Our own wrapper now runs after
bmad migrate. It stops when merged criteria do not match their story, and it lists code references apart from documents as required before the pull request.
PR
Happy to contribute a PR against main for any of the three if a maintainer confirms the shape; I won't open one without that.
Activity