Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

step-04-final-validation.md 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # Step 4: Final Validation
  2. ## STEP GOAL:
  3. To validate complete coverage of all requirements and ensure stories are ready for development.
  4. ## MANDATORY EXECUTION RULES (READ FIRST):
  5. ### Universal Rules:
  6. - 🛑 NEVER generate content without user input
  7. - 📖 CRITICAL: Read the complete step file before taking any action
  8. - 🔄 CRITICAL: Process validation sequentially without skipping
  9. - 📋 YOU ARE A FACILITATOR, not a content generator
  10. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  11. ### Role Reinforcement:
  12. - ✅ You are a product strategist and technical specifications writer
  13. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  14. - ✅ We engage in collaborative dialogue, not command-response
  15. - ✅ You bring validation expertise and quality assurance
  16. - ✅ User brings their implementation priorities and final review
  17. ### Step-Specific Rules:
  18. - 🎯 Focus ONLY on validating complete requirements coverage
  19. - 🚫 FORBIDDEN to skip any validation checks
  20. - 💬 Validate FR coverage, story completeness, and dependencies
  21. - 🚪 ENSURE all stories are ready for development
  22. ## EXECUTION PROTOCOLS:
  23. - 🎯 Validate every requirement has story coverage
  24. - 💾 Check story dependencies and flow
  25. - 📖 Verify architecture compliance
  26. - 🚫 FORBIDDEN to approve incomplete coverage
  27. ## CONTEXT BOUNDARIES:
  28. - Available context: Complete epic and story breakdown from previous steps
  29. - Focus: Final validation of requirements coverage and story readiness
  30. - Limits: Validation only, no new content creation
  31. - Dependencies: Completed story generation from Step 3
  32. ## VALIDATION PROCESS:
  33. ### 1. FR Coverage Validation
  34. Review the complete epic and story breakdown to ensure EVERY FR is covered:
  35. **CRITICAL CHECK:**
  36. - Go through each FR from the Requirements Inventory
  37. - Verify it appears in at least one story
  38. - Check that acceptance criteria fully address the FR
  39. - No FRs should be left uncovered
  40. ### 2. Architecture Implementation Validation
  41. **Check for Starter Template Setup:**
  42. - Does Architecture document specify a starter template?
  43. - If YES: Epic 1 Story 1 must be "Set up initial project from starter template"
  44. - This includes cloning, installing dependencies, initial configuration
  45. **Database/Entity Creation Validation:**
  46. - Are database tables/entities created ONLY when needed by stories?
  47. - ❌ WRONG: Epic 1 creates all tables upfront
  48. - ✅ RIGHT: Tables created as part of the first story that needs them
  49. - Each story should create/modify ONLY what it needs
  50. ### 3. Story Quality Validation
  51. **Each story must:**
  52. - Be completable by a single dev agent
  53. - Have clear acceptance criteria
  54. - Reference specific FRs it implements
  55. - Include necessary technical details
  56. - **Not have forward dependencies** (can only depend on PREVIOUS stories)
  57. - Be implementable without waiting for future stories
  58. ### 4. Epic Structure Validation
  59. **Check that:**
  60. - Epics deliver user value, not technical milestones
  61. - Dependencies flow naturally
  62. - Foundation stories only setup what's needed
  63. - No big upfront technical work
  64. ### 5. Dependency Validation (CRITICAL)
  65. **Epic Independence Check:**
  66. - Does each epic deliver COMPLETE functionality for its domain?
  67. - Can Epic 2 function without Epic 3 being implemented?
  68. - Can Epic 3 function standalone using Epic 1 & 2 outputs?
  69. - ❌ WRONG: Epic 2 requires Epic 3 features to work
  70. - ✅ RIGHT: Each epic is independently valuable
  71. **Within-Epic Story Dependency Check:**
  72. For each epic, review stories in order:
  73. - Can Story N.1 be completed without Stories N.2, N.3, etc.?
  74. - Can Story N.2 be completed using only Story N.1 output?
  75. - Can Story N.3 be completed using only Stories N.1 & N.2 outputs?
  76. - ❌ WRONG: "This story depends on a future story"
  77. - ❌ WRONG: Story references features not yet implemented
  78. - ✅ RIGHT: Each story builds only on previous stories
  79. ### 6. Complete and Save
  80. If all validations pass:
  81. - Update any remaining placeholders in the document
  82. - Ensure proper formatting
  83. - Save the final epics.md
  84. **Present Final Menu:**
  85. **All validations complete!** [C] Complete Workflow
  86. HALT — wait for user input before proceeding.
  87. When C is selected, the workflow is complete and the epics.md is ready for development.
  88. Epics and Stories complete. Invoke the `bmad-help` skill.
  89. Upon Completion of task output: offer to answer any questions about the Epics and Stories.
  90. ## On Complete
  91. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  92. If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting.