You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

step-v-12-completeness-validation.md 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. ---
  2. # File references (ONLY variables used in this step)
  3. nextStepFile: './step-v-13-report-complete.md'
  4. prdFile: '{prd_file_path}'
  5. prdFrontmatter: '{prd_frontmatter}'
  6. validationReportPath: '{validation_report_path}'
  7. ---
  8. # Step 12: Completeness Validation
  9. ## STEP GOAL:
  10. Final comprehensive completeness check - validate no template variables remain, each section has required content, section-specific completeness, and frontmatter is properly populated.
  11. ## MANDATORY EXECUTION RULES (READ FIRST):
  12. ### Universal Rules:
  13. - 🛑 NEVER generate content without user input
  14. - 📖 CRITICAL: Read the complete step file before taking any action
  15. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  16. - 📋 YOU ARE A FACILITATOR, not a content generator
  17. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  18. ### Role Reinforcement:
  19. - ✅ You are a Validation Architect and Quality Assurance Specialist
  20. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  21. - ✅ We engage in systematic validation, not collaborative dialogue
  22. - ✅ You bring attention to detail and completeness verification
  23. - ✅ This step runs autonomously - no user input needed
  24. ### Step-Specific Rules:
  25. - 🎯 Focus ONLY on completeness verification
  26. - 🚫 FORBIDDEN to validate quality (done in step 11) or other aspects
  27. - 💬 Approach: Systematic checklist-style verification
  28. - 🚪 This is a validation sequence step - auto-proceeds when complete
  29. ## EXECUTION PROTOCOLS:
  30. - 🎯 Check template completeness (no variables remaining)
  31. - 🎯 Validate content completeness (each section has required content)
  32. - 🎯 Validate section-specific completeness
  33. - 🎯 Validate frontmatter completeness
  34. - 💾 Append completeness matrix to validation report
  35. - 📖 Display "Proceeding to final step..." and load next step
  36. - 🚫 FORBIDDEN to pause or request user input
  37. ## CONTEXT BOUNDARIES:
  38. - Available context: Complete PRD file, frontmatter, validation report
  39. - Focus: Completeness verification only (final gate)
  40. - Limits: Don't assess quality, don't pause for user input
  41. - Dependencies: Steps 1-11 completed - all validation checks done
  42. ## MANDATORY SEQUENCE
  43. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  44. ### 1. Attempt Sub-Process Validation
  45. **Try to use Task tool to spawn a subprocess:**
  46. "Perform completeness validation on this PRD - final gate check:
  47. **1. Template Completeness:**
  48. - Scan PRD for any remaining template variables
  49. - Look for: {variable}, {{variable}}, {placeholder}, [placeholder], etc.
  50. - List any found with line numbers
  51. **2. Content Completeness:**
  52. - Executive Summary: Has vision statement? ({key content})
  53. - Success Criteria: All criteria measurable? ({metrics present})
  54. - Product Scope: In-scope and out-of-scope defined? ({both present})
  55. - User Journeys: User types identified? ({users listed})
  56. - Functional Requirements: FRs listed with proper format? ({FRs present})
  57. - Non-Functional Requirements: NFRs with metrics? ({NFRs present})
  58. For each section: Is required content present? (Yes/No/Partial)
  59. **3. Section-Specific Completeness:**
  60. - Success Criteria: Each has specific measurement method?
  61. - User Journeys: Cover all user types?
  62. - Functional Requirements: Cover MVP scope?
  63. - Non-Functional Requirements: Each has specific criteria?
  64. **4. Frontmatter Completeness:**
  65. - stepsCompleted: Populated?
  66. - classification: Present (domain, projectType)?
  67. - inputDocuments: Tracked?
  68. - date: Present?
  69. Return completeness matrix with status for each check."
  70. **Graceful degradation (if no Task tool):**
  71. - Manually scan for template variables
  72. - Manually check each section for required content
  73. - Manually verify frontmatter fields
  74. - Build completeness matrix
  75. ### 2. Build Completeness Matrix
  76. **Template Completeness:**
  77. - Template variables found: count
  78. - List if any found
  79. **Content Completeness by Section:**
  80. - Executive Summary: Complete / Incomplete / Missing
  81. - Success Criteria: Complete / Incomplete / Missing
  82. - Product Scope: Complete / Incomplete / Missing
  83. - User Journeys: Complete / Incomplete / Missing
  84. - Functional Requirements: Complete / Incomplete / Missing
  85. - Non-Functional Requirements: Complete / Incomplete / Missing
  86. - Other sections: [List completeness]
  87. **Section-Specific Completeness:**
  88. - Success criteria measurable: All / Some / None
  89. - Journeys cover all users: Yes / Partial / No
  90. - FRs cover MVP scope: Yes / Partial / No
  91. - NFRs have specific criteria: All / Some / None
  92. **Frontmatter Completeness:**
  93. - stepsCompleted: Present / Missing
  94. - classification: Present / Missing
  95. - inputDocuments: Present / Missing
  96. - date: Present / Missing
  97. **Overall completeness:**
  98. - Sections complete: X/Y
  99. - Critical gaps: [list if any]
  100. ### 3. Report Completeness Findings to Validation Report
  101. Append to validation report:
  102. ```markdown
  103. ## Completeness Validation
  104. ### Template Completeness
  105. **Template Variables Found:** {count}
  106. {If count > 0, list variables with line numbers}
  107. {If count = 0, note: No template variables remaining ✓}
  108. ### Content Completeness by Section
  109. **Executive Summary:** [Complete/Incomplete/Missing]
  110. {If incomplete or missing, note specific gaps}
  111. **Success Criteria:** [Complete/Incomplete/Missing]
  112. {If incomplete or missing, note specific gaps}
  113. **Product Scope:** [Complete/Incomplete/Missing]
  114. {If incomplete or missing, note specific gaps}
  115. **User Journeys:** [Complete/Incomplete/Missing]
  116. {If incomplete or missing, note specific gaps}
  117. **Functional Requirements:** [Complete/Incomplete/Missing]
  118. {If incomplete or missing, note specific gaps}
  119. **Non-Functional Requirements:** [Complete/Incomplete/Missing]
  120. {If incomplete or missing, note specific gaps}
  121. ### Section-Specific Completeness
  122. **Success Criteria Measurability:** [All/Some/None] measurable
  123. {If Some or None, note which criteria lack metrics}
  124. **User Journeys Coverage:** [Yes/Partial/No] - covers all user types
  125. {If Partial or No, note missing user types}
  126. **FRs Cover MVP Scope:** [Yes/Partial/No]
  127. {If Partial or No, note scope gaps}
  128. **NFRs Have Specific Criteria:** [All/Some/None]
  129. {If Some or None, note which NFRs lack specificity}
  130. ### Frontmatter Completeness
  131. **stepsCompleted:** [Present/Missing]
  132. **classification:** [Present/Missing]
  133. **inputDocuments:** [Present/Missing]
  134. **date:** [Present/Missing]
  135. **Frontmatter Completeness:** {complete_fields}/4
  136. ### Completeness Summary
  137. **Overall Completeness:** {percentage}% ({complete_sections}/{total_sections})
  138. **Critical Gaps:** [count] [list if any]
  139. **Minor Gaps:** [count] [list if any]
  140. **Severity:** [Critical if template variables exist or critical sections missing, Warning if minor gaps, Pass if complete]
  141. **Recommendation:**
  142. [If Critical] "PRD has completeness gaps that must be addressed before use. Fix template variables and complete missing sections."
  143. [If Warning] "PRD has minor completeness gaps. Address minor gaps for complete documentation."
  144. [If Pass] "PRD is complete with all required sections and content present."
  145. ```
  146. ### 4. Display Progress and Auto-Proceed
  147. Display: "**Completeness Validation Complete**
  148. Overall Completeness: {percentage}% ({severity})
  149. **Proceeding to final step...**"
  150. Without delay, read fully and follow: {nextStepFile} (step-v-13-report-complete.md)
  151. ---
  152. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  153. ### ✅ SUCCESS:
  154. - Scanned for template variables systematically
  155. - Validated each section for required content
  156. - Validated section-specific completeness (measurability, coverage, scope)
  157. - Validated frontmatter completeness
  158. - Completeness matrix built with all checks
  159. - Severity assessed correctly
  160. - Findings reported to validation report
  161. - Auto-proceeds to final step
  162. - Subprocess attempted with graceful degradation
  163. ### ❌ SYSTEM FAILURE:
  164. - Not scanning for template variables
  165. - Missing section-specific completeness checks
  166. - Not validating frontmatter
  167. - Not building completeness matrix
  168. - Not reporting findings to validation report
  169. - Not auto-proceeding
  170. **Master Rule:** Final gate to ensure document is complete before presenting findings. Template variables or critical gaps must be fixed.