Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

step-07-validation.md 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. # Step 7: Architecture Validation & Completion
  2. ## MANDATORY EXECUTION RULES (READ FIRST):
  3. - 🛑 NEVER generate content without user input
  4. - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
  5. - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
  6. - ✅ ALWAYS treat this as collaborative discovery between architectural peers
  7. - 📋 YOU ARE A FACILITATOR, not a content generator
  8. - 💬 FOCUS on validating architectural coherence and completeness
  9. - ✅ VALIDATE all requirements are covered by architectural decisions
  10. - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
  11. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  12. ## EXECUTION PROTOCOLS:
  13. - 🎯 Show your analysis before taking any action
  14. - ✅ Run comprehensive validation checks on the complete architecture
  15. - ⚠️ Present A/P/C menu after generating validation results
  16. - 💾 ONLY save when user chooses C (Continue)
  17. - 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading next step
  18. - 🚫 FORBIDDEN to load next step until C is selected
  19. ## COLLABORATION MENUS (A/P/C):
  20. This step will generate content and present choices:
  21. - **A (Advanced Elicitation)**: Use discovery protocols to address complex architectural issues found during validation
  22. - **P (Party Mode)**: Bring multiple perspectives to resolve validation concerns
  23. - **C (Continue)**: Save the validation results and complete the architecture
  24. ## PROTOCOL INTEGRATION:
  25. - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
  26. - When 'P' selected: Invoke the `bmad-party-mode` skill
  27. - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
  28. - User accepts/rejects protocol changes before proceeding
  29. ## CONTEXT BOUNDARIES:
  30. - Complete architecture document with all sections is available
  31. - All architectural decisions, patterns, and structure are defined
  32. - Focus on validation, gap analysis, and coherence checking
  33. - Prepare for handoff to implementation phase
  34. ## YOUR TASK:
  35. Validate the complete architecture for coherence, completeness, and readiness to guide AI agents through consistent implementation.
  36. ## VALIDATION SEQUENCE:
  37. ### 1. Coherence Validation
  38. Check that all architectural decisions work together:
  39. **Decision Compatibility:**
  40. - Do all technology choices work together without conflicts?
  41. - Are all versions compatible with each other?
  42. - Do patterns align with technology choices?
  43. - Are there any contradictory decisions?
  44. **Pattern Consistency:**
  45. - Do implementation patterns support the architectural decisions?
  46. - Are naming conventions consistent across all areas?
  47. - Do structure patterns align with technology stack?
  48. - Are communication patterns coherent?
  49. **Structure Alignment:**
  50. - Does the project structure support all architectural decisions?
  51. - Are boundaries properly defined and respected?
  52. - Does the structure enable the chosen patterns?
  53. - Are integration points properly structured?
  54. ### 2. Requirements Coverage Validation
  55. Verify all project requirements are architecturally supported:
  56. **From Epics (if available):**
  57. - Does every epic have architectural support?
  58. - Are all user stories implementable with these decisions?
  59. - Are cross-epic dependencies handled architecturally?
  60. - Are there any gaps in epic coverage?
  61. **From FR Categories (if no epics):**
  62. - Does every functional requirement have architectural support?
  63. - Are all FR categories fully covered by architectural decisions?
  64. - Are cross-cutting FRs properly addressed?
  65. - Are there any missing architectural capabilities?
  66. **Non-Functional Requirements:**
  67. - Are performance requirements addressed architecturally?
  68. - Are security requirements fully covered?
  69. - Are scalability considerations properly handled?
  70. - Are compliance requirements architecturally supported?
  71. ### 3. Implementation Readiness Validation
  72. Assess if AI agents can implement consistently:
  73. **Decision Completeness:**
  74. - Are all critical decisions documented with versions?
  75. - Are implementation patterns comprehensive enough?
  76. - Are consistency rules clear and enforceable?
  77. - Are examples provided for all major patterns?
  78. **Structure Completeness:**
  79. - Is the project structure complete and specific?
  80. - Are all files and directories defined?
  81. - Are integration points clearly specified?
  82. - Are component boundaries well-defined?
  83. **Pattern Completeness:**
  84. - Are all potential conflict points addressed?
  85. - Are naming conventions comprehensive?
  86. - Are communication patterns fully specified?
  87. - Are process patterns (error handling, etc.) complete?
  88. ### 4. Gap Analysis
  89. Identify and document any missing elements:
  90. **Critical Gaps:**
  91. - Missing architectural decisions that block implementation
  92. - Incomplete patterns that could cause conflicts
  93. - Missing structural elements needed for development
  94. - Undefined integration points
  95. **Important Gaps:**
  96. - Areas that need more detailed specification
  97. - Patterns that could be more comprehensive
  98. - Documentation that would help implementation
  99. - Examples that would clarify complex decisions
  100. **Nice-to-Have Gaps:**
  101. - Additional patterns that would be helpful
  102. - Supplementary documentation
  103. - Tooling recommendations
  104. - Development workflow optimizations
  105. ### 5. Address Validation Issues
  106. For any issues found, facilitate resolution:
  107. **Critical Issues:**
  108. "I found some issues that need to be addressed before implementation:
  109. {{critical_issue_description}}
  110. These could cause implementation problems. How would you like to resolve this?"
  111. **Important Issues:**
  112. "I noticed a few areas that could be improved:
  113. {{important_issue_description}}
  114. These aren't blocking, but addressing them would make implementation smoother. Should we work on these?"
  115. **Minor Issues:**
  116. "Here are some minor suggestions for improvement:
  117. {{minor_issue_description}}
  118. These are optional refinements. Would you like to address any of these?"
  119. ### 6. Generate Validation Content
  120. Prepare the content to append to the document:
  121. #### Content Structure:
  122. ```markdown
  123. ## Architecture Validation Results
  124. ### Coherence Validation ✅
  125. **Decision Compatibility:**
  126. {{assessment_of_how_all_decisions_work_together}}
  127. **Pattern Consistency:**
  128. {{verification_that_patterns_support_decisions}}
  129. **Structure Alignment:**
  130. {{confirmation_that_structure_supports_architecture}}
  131. ### Requirements Coverage Validation ✅
  132. **Epic/Feature Coverage:**
  133. {{verification_that_all_epics_or_features_are_supported}}
  134. **Functional Requirements Coverage:**
  135. {{confirmation_that_all_FRs_are_architecturally_supported}}
  136. **Non-Functional Requirements Coverage:**
  137. {{verification_that_NFRs_are_addressed}}
  138. ### Implementation Readiness Validation ✅
  139. **Decision Completeness:**
  140. {{assessment_of_decision_documentation_completeness}}
  141. **Structure Completeness:**
  142. {{evaluation_of_project_structure_completeness}}
  143. **Pattern Completeness:**
  144. {{verification_of_implementation_patterns_completeness}}
  145. ### Gap Analysis Results
  146. {{gap_analysis_findings_with_priority_levels}}
  147. ### Validation Issues Addressed
  148. {{description_of_any_issues_found_and_resolutions}}
  149. ### Architecture Completeness Checklist
  150. **✅ Requirements Analysis**
  151. - [x] Project context thoroughly analyzed
  152. - [x] Scale and complexity assessed
  153. - [x] Technical constraints identified
  154. - [x] Cross-cutting concerns mapped
  155. **✅ Architectural Decisions**
  156. - [x] Critical decisions documented with versions
  157. - [x] Technology stack fully specified
  158. - [x] Integration patterns defined
  159. - [x] Performance considerations addressed
  160. **✅ Implementation Patterns**
  161. - [x] Naming conventions established
  162. - [x] Structure patterns defined
  163. - [x] Communication patterns specified
  164. - [x] Process patterns documented
  165. **✅ Project Structure**
  166. - [x] Complete directory structure defined
  167. - [x] Component boundaries established
  168. - [x] Integration points mapped
  169. - [x] Requirements to structure mapping complete
  170. ### Architecture Readiness Assessment
  171. **Overall Status:** READY FOR IMPLEMENTATION
  172. **Confidence Level:** {{high/medium/low}} based on validation results
  173. **Key Strengths:**
  174. {{list_of_architecture_strengths}}
  175. **Areas for Future Enhancement:**
  176. {{areas_that_could_be_improved_later}}
  177. ### Implementation Handoff
  178. **AI Agent Guidelines:**
  179. - Follow all architectural decisions exactly as documented
  180. - Use implementation patterns consistently across all components
  181. - Respect project structure and boundaries
  182. - Refer to this document for all architectural questions
  183. **First Implementation Priority:**
  184. {{starter_template_command_or_first_architectural_step}}
  185. ```
  186. ### 7. Present Content and Menu
  187. Show the validation results and present choices:
  188. "I've completed a comprehensive validation of your architecture.
  189. **Validation Summary:**
  190. - ✅ Coherence: All decisions work together
  191. - ✅ Coverage: All requirements are supported
  192. - ✅ Readiness: AI agents can implement consistently
  193. **Here's what I'll add to complete the architecture document:**
  194. [Show the complete markdown content from step 6]
  195. **What would you like to do?**
  196. [A] Advanced Elicitation - Address any complex architectural concerns
  197. [P] Party Mode - Review validation from different implementation perspectives
  198. [C] Continue - Complete the architecture and finish workflow
  199. ### 8. Handle Menu Selection
  200. #### If 'A' (Advanced Elicitation):
  201. - Invoke the `bmad-advanced-elicitation` skill with validation issues
  202. - Process enhanced solutions for complex concerns
  203. - Ask user: "Accept these architectural improvements? (y/n)"
  204. - If yes: Update content, then return to A/P/C menu
  205. - If no: Keep original content, then return to A/P/C menu
  206. #### If 'P' (Party Mode):
  207. - Invoke the `bmad-party-mode` skill with validation context
  208. - Process collaborative insights on implementation readiness
  209. - Ask user: "Accept these changes to the validation results? (y/n)"
  210. - If yes: Update content, then return to A/P/C menu
  211. - If no: Keep original content, then return to A/P/C menu
  212. #### If 'C' (Continue):
  213. - Append the final content to `{planning_artifacts}/architecture.md`
  214. - Update frontmatter: `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]`
  215. - Load `./step-08-complete.md`
  216. ## APPEND TO DOCUMENT:
  217. When user selects 'C', append the content directly to the document using the structure from step 6.
  218. ## SUCCESS METRICS:
  219. ✅ All architectural decisions validated for coherence
  220. ✅ Complete requirements coverage verified
  221. ✅ Implementation readiness confirmed
  222. ✅ All gaps identified and addressed
  223. ✅ Comprehensive validation checklist completed
  224. ✅ A/P/C menu presented and handled correctly
  225. ✅ Content properly appended to document when C selected
  226. ## FAILURE MODES:
  227. ❌ Skipping validation of decision compatibility
  228. ❌ Not verifying all requirements are architecturally supported
  229. ❌ Missing potential implementation conflicts
  230. ❌ Not addressing gaps found during validation
  231. ❌ Providing incomplete validation checklist
  232. ❌ Not presenting A/P/C menu after content generation
  233. ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
  234. ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
  235. ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
  236. ## NEXT STEP:
  237. After user selects 'C' and content is saved to document, load `./step-08-complete.md` to complete the workflow and provide implementation guidance.
  238. Remember: Do NOT proceed to step-08 until user explicitly selects 'C' from the A/P/C menu and content is saved!