Skip to content

bmad migrate on a real v6.12 project: 3 findings (criteria merged into the wrong plans, epic status from sprint-status, code that reads the old folders) #3395

Backlog

Description

@peterstarbek

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

  1. A v6.12 project where epics.md has several stories per epic and sprint-status.yaml tracks stories but leaves epic keys at backlog.
  2. A test or script in the project that reads a file under the v6 planning folder.
  3. Run bmad migrate and accept the plan.
  4. For 1: compare a plan's merged criteria with that story's ### Story N.M section in the archived epics.md. For 2: check the epic files for status. For 3: run the project's tests.

Expected behavior

  1. A checklist item: "Each plan's criteria merged from epics.md are 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.
  2. When every epic key is backlog but its stories are past it, the epic status is derived from its stories (done when all are done, in-progress when any has started) and recorded in the plan. The pre-release spec rule already does this (:155: "its status is done when every story is").
  3. 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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions