Skip to content

[BUG] Validate PRD workflow searches for files and frontmatter that are not there but should be #1664

@phammann

Description

@phammann

Description

I ran the full BMAD method.
Brainstorming -> Market Research -> Domain Research -> Technical Research -> Create Product Brief -> Create PRD -> Shard PRD -> Validate PRD

The Validate PRD workflow thinks the location for the PRD is PRD.md when it is index/prd.md

The workflow searches for frontmatter in the sharded PRD that should have been generated by previous steps in the BMAD method but were not.

Steps to reproduce

Run the full BMAD method workflow up to Validate PRD:

Brainstorming -> Market Research -> Domain Research -> Technical Research -> Create Product Brief -> Create PRD -> Shard PRD -> Validate PRD

Expected behavior

I would expect it to notice that there is not a PRD.md but that there is a prd/index.md

I would expect that the aforementioned frontmatter would be generated by the steps before the Validate PRD workflow and would be found.

Actual behavior

When I ran the Validate PRD workflow, the first thing is said was:

⏺ Read 2 files (ctrl+o to expand)                                                                                                                                                                  
                                                                                                                                                                                                 
⏺ Validate Mode: Validating an existing PRD against BMAD standards.                                                                                                                                
                                                                                                                                                                                                 
  Which PRD would you like to validate? Please provide the path to the PRD.md file.                                                                                                                
                                                                                                                                                                                                   
  Based on my memory, the PRD was output to _bmad-output/planning-artifacts/prd.md - would you like me to validate that one?                                                                       

However, PRD.md is no longer there since it has been sharded. I had to manually tell it about prd/index.md manually.

I enter:

❯ @_bmad-output/planning-artifacts/prd/index.md                                                                                                                                                    
  ⎿  Read _bmad-output/planning-artifacts/prd/index.md (14 lines)                 

And get this:

⏺ Got it - the PRD has been sharded into multiple files. Let me load the validation workflow step and begin reading the PRD files.                                                                 
                                                                                                                                                                                                   
⏺ Read 1 file (ctrl+o to expand)                                                                                                                                                                   
                                                                                                                                                                                                   
⏺ Good. Now let me load the PRD purpose standards and the PRD index file to begin discovery.                                                                                                       
                                                                                                                                                                                                   
⏺ Read 2 files (ctrl+o to expand)                                                                                                                                                                  
                                                                                                                                                                                                   
⏺ Good - the PRD is sharded into 9 files. Let me now load all of them to check for frontmatter and input document references.
                                                                                                                                                                                                   
⏺ Read 9 files (ctrl+o to expand)                                                                     
                                                                                                                                                                                                   
⏺ All 9 PRD shard files loaded successfully. The PRD does not contain YAML frontmatter with an inputDocuments array. However, from the project history, I know the following input documents were
  used to create this PRD:                                                                                                                                                                         

Screenshots

Image

Which module is this for?

BMad Method (BMM) - Core Framework

BMad Version

6.0.0-Beta.8

Which AI IDE are you using?

Claude Code

Operating System

macOS

Relevant log output

Confirm

  • I've searched for existing issues
  • I'm using the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions