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-v-05-measurability-validation.md 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. ---
  2. # File references (ONLY variables used in this step)
  3. nextStepFile: './step-v-06-traceability-validation.md'
  4. prdFile: '{prd_file_path}'
  5. validationReportPath: '{validation_report_path}'
  6. ---
  7. # Step 5: Measurability Validation
  8. ## STEP GOAL:
  9. Validate that all Functional Requirements (FRs) and Non-Functional Requirements (NFRs) are measurable, testable, and follow proper format without implementation details.
  10. ## MANDATORY EXECUTION RULES (READ FIRST):
  11. ### Universal Rules:
  12. - 🛑 NEVER generate content without user input
  13. - 📖 CRITICAL: Read the complete step file before taking any action
  14. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  15. - 📋 YOU ARE A FACILITATOR, not a content generator
  16. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  17. ### Role Reinforcement:
  18. - ✅ You are a Validation Architect and Quality Assurance Specialist
  19. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  20. - ✅ We engage in systematic validation, not collaborative dialogue
  21. - ✅ You bring analytical rigor and requirements engineering expertise
  22. - ✅ This step runs autonomously - no user input needed
  23. ### Step-Specific Rules:
  24. - 🎯 Focus ONLY on FR and NFR measurability
  25. - 🚫 FORBIDDEN to validate other aspects in this step
  26. - 💬 Approach: Systematic requirement-by-requirement analysis
  27. - 🚪 This is a validation sequence step - auto-proceeds when complete
  28. ## EXECUTION PROTOCOLS:
  29. - 🎯 Extract all FRs and NFRs from PRD
  30. - 💾 Validate each for measurability and format
  31. - 📖 Append findings to validation report
  32. - 📖 Display "Proceeding to next check..." and load next step
  33. - 🚫 FORBIDDEN to pause or request user input
  34. ## CONTEXT BOUNDARIES:
  35. - Available context: PRD file, validation report
  36. - Focus: FR and NFR measurability only
  37. - Limits: Don't validate other aspects, don't pause for user input
  38. - Dependencies: Steps 2-4 completed - initial validation checks done
  39. ## MANDATORY SEQUENCE
  40. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  41. ### 1. Attempt Sub-Process Validation
  42. **Try to use Task tool to spawn a subprocess:**
  43. "Perform measurability validation on this PRD:
  44. **Functional Requirements (FRs):**
  45. 1. Extract all FRs from Functional Requirements section
  46. 2. Check each FR for:
  47. - '[Actor] can [capability]' format compliance
  48. - No subjective adjectives (easy, fast, simple, intuitive, etc.)
  49. - No vague quantifiers (multiple, several, some, many, etc.)
  50. - No implementation details (technology names, library names, data structures unless capability-relevant)
  51. 3. Document violations with line numbers
  52. **Non-Functional Requirements (NFRs):**
  53. 1. Extract all NFRs from Non-Functional Requirements section
  54. 2. Check each NFR for:
  55. - Specific metrics with measurement methods
  56. - Template compliance (criterion, metric, measurement method, context)
  57. - Context included (why this matters, who it affects)
  58. 3. Document violations with line numbers
  59. Return structured findings with violation counts and examples."
  60. ### 2. Graceful Degradation (if Task tool unavailable)
  61. If Task tool unavailable, perform analysis directly:
  62. **Functional Requirements Analysis:**
  63. Extract all FRs and check each for:
  64. **Format compliance:**
  65. - Does it follow "[Actor] can [capability]" pattern?
  66. - Is actor clearly defined?
  67. - Is capability actionable and testable?
  68. **No subjective adjectives:**
  69. - Scan for: easy, fast, simple, intuitive, user-friendly, responsive, quick, efficient (without metrics)
  70. - Note line numbers
  71. **No vague quantifiers:**
  72. - Scan for: multiple, several, some, many, few, various, number of
  73. - Note line numbers
  74. **No implementation details:**
  75. - Scan for: React, Vue, Angular, PostgreSQL, MongoDB, AWS, Docker, Kubernetes, Redux, etc.
  76. - Unless capability-relevant (e.g., "API consumers can access...")
  77. - Note line numbers
  78. **Non-Functional Requirements Analysis:**
  79. Extract all NFRs and check each for:
  80. **Specific metrics:**
  81. - Is there a measurable criterion? (e.g., "response time < 200ms", not "fast response")
  82. - Can this be measured or tested?
  83. **Template compliance:**
  84. - Criterion defined?
  85. - Metric specified?
  86. - Measurement method included?
  87. - Context provided?
  88. ### 3. Tally Violations
  89. **FR Violations:**
  90. - Format violations: count
  91. - Subjective adjectives: count
  92. - Vague quantifiers: count
  93. - Implementation leakage: count
  94. - Total FR violations: sum
  95. **NFR Violations:**
  96. - Missing metrics: count
  97. - Incomplete template: count
  98. - Missing context: count
  99. - Total NFR violations: sum
  100. **Total violations:** FR violations + NFR violations
  101. ### 4. Report Measurability Findings to Validation Report
  102. Append to validation report:
  103. ```markdown
  104. ## Measurability Validation
  105. ### Functional Requirements
  106. **Total FRs Analyzed:** {count}
  107. **Format Violations:** {count}
  108. [If violations exist, list examples with line numbers]
  109. **Subjective Adjectives Found:** {count}
  110. [If found, list examples with line numbers]
  111. **Vague Quantifiers Found:** {count}
  112. [If found, list examples with line numbers]
  113. **Implementation Leakage:** {count}
  114. [If found, list examples with line numbers]
  115. **FR Violations Total:** {total}
  116. ### Non-Functional Requirements
  117. **Total NFRs Analyzed:** {count}
  118. **Missing Metrics:** {count}
  119. [If missing, list examples with line numbers]
  120. **Incomplete Template:** {count}
  121. [If incomplete, list examples with line numbers]
  122. **Missing Context:** {count}
  123. [If missing, list examples with line numbers]
  124. **NFR Violations Total:** {total}
  125. ### Overall Assessment
  126. **Total Requirements:** {FRs + NFRs}
  127. **Total Violations:** {FR violations + NFR violations}
  128. **Severity:** [Critical if >10 violations, Warning if 5-10, Pass if <5]
  129. **Recommendation:**
  130. [If Critical] "Many requirements are not measurable or testable. Requirements must be revised to be testable for downstream work."
  131. [If Warning] "Some requirements need refinement for measurability. Focus on violating requirements above."
  132. [If Pass] "Requirements demonstrate good measurability with minimal issues."
  133. ```
  134. ### 5. Display Progress and Auto-Proceed
  135. Display: "**Measurability Validation Complete**
  136. Total Violations: {count} ({severity})
  137. **Proceeding to next validation check...**"
  138. Without delay, read fully and follow: {nextStepFile} (step-v-06-traceability-validation.md)
  139. ---
  140. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  141. ### ✅ SUCCESS:
  142. - All FRs extracted and analyzed for measurability
  143. - All NFRs extracted and analyzed for measurability
  144. - Violations documented with line numbers
  145. - Severity assessed correctly
  146. - Findings reported to validation report
  147. - Auto-proceeds to next validation step
  148. - Subprocess attempted with graceful degradation
  149. ### ❌ SYSTEM FAILURE:
  150. - Not analyzing all FRs and NFRs
  151. - Missing line numbers for violations
  152. - Not reporting findings to validation report
  153. - Not assessing severity
  154. - Not auto-proceeding
  155. **Master Rule:** Requirements must be testable to be useful. Validate every requirement for measurability, document violations, auto-proceed.