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

5 дней назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. ---
  2. # File references (ONLY variables used in this step)
  3. nextStepFile: './step-v-07-implementation-leakage-validation.md'
  4. prdFile: '{prd_file_path}'
  5. validationReportPath: '{validation_report_path}'
  6. ---
  7. # Step 6: Traceability Validation
  8. ## STEP GOAL:
  9. Validate the traceability chain from Executive Summary → Success Criteria → User Journeys → Functional Requirements is intact, ensuring every requirement traces back to a user need or business objective.
  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 traceability matrix expertise
  22. - ✅ This step runs autonomously - no user input needed
  23. ### Step-Specific Rules:
  24. - 🎯 Focus ONLY on traceability chain validation
  25. - 🚫 FORBIDDEN to validate other aspects in this step
  26. - 💬 Approach: Systematic chain validation and orphan detection
  27. - 🚪 This is a validation sequence step - auto-proceeds when complete
  28. ## EXECUTION PROTOCOLS:
  29. - 🎯 Build and validate traceability matrix
  30. - 💾 Identify broken chains and orphan requirements
  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: Traceability chain validation only
  37. - Limits: Don't validate other aspects, don't pause for user input
  38. - Dependencies: Steps 2-5 completed - initial validations 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 traceability validation on this PRD:
  44. 1. Extract content from Executive Summary (vision, goals)
  45. 2. Extract Success Criteria
  46. 3. Extract User Journeys (user types, flows, outcomes)
  47. 4. Extract Functional Requirements (FRs)
  48. 5. Extract Product Scope (in-scope items)
  49. **Validate chains:**
  50. - Executive Summary → Success Criteria: Does vision align with defined success?
  51. - Success Criteria → User Journeys: Are success criteria supported by user journeys?
  52. - User Journeys → Functional Requirements: Does each FR trace back to a user journey?
  53. - Scope → FRs: Do MVP scope FRs align with in-scope items?
  54. **Identify orphans:**
  55. - FRs not traceable to any user journey or business objective
  56. - Success criteria not supported by user journeys
  57. - User journeys without supporting FRs
  58. Build traceability matrix and identify broken chains and orphan FRs.
  59. Return structured findings with chain status and orphan list."
  60. ### 2. Graceful Degradation (if Task tool unavailable)
  61. If Task tool unavailable, perform analysis directly:
  62. **Step 1: Extract key elements**
  63. - Executive Summary: Note vision, goals, objectives
  64. - Success Criteria: List all criteria
  65. - User Journeys: List user types and their flows
  66. - Functional Requirements: List all FRs
  67. - Product Scope: List in-scope items
  68. **Step 2: Validate Executive Summary → Success Criteria**
  69. - Does Executive Summary mention the success dimensions?
  70. - Are Success Criteria aligned with vision?
  71. - Note any misalignment
  72. **Step 3: Validate Success Criteria → User Journeys**
  73. - For each success criterion, is there a user journey that achieves it?
  74. - Note success criteria without supporting journeys
  75. **Step 4: Validate User Journeys → FRs**
  76. - For each user journey/flow, are there FRs that enable it?
  77. - List FRs with no clear user journey origin
  78. - Note orphan FRs (requirements without traceable source)
  79. **Step 5: Validate Scope → FR Alignment**
  80. - Does MVP scope align with essential FRs?
  81. - Are in-scope items supported by FRs?
  82. - Note misalignments
  83. **Step 6: Build traceability matrix**
  84. - Map each FR to its source (journey or business objective)
  85. - Note orphan FRs
  86. - Identify broken chains
  87. ### 3. Tally Traceability Issues
  88. **Broken chains:**
  89. - Executive Summary → Success Criteria gaps: count
  90. - Success Criteria → User Journeys gaps: count
  91. - User Journeys → FRs gaps: count
  92. - Scope → FR misalignments: count
  93. **Orphan elements:**
  94. - Orphan FRs (no traceable source): count
  95. - Unsupported success criteria: count
  96. - User journeys without FRs: count
  97. **Total issues:** Sum of all broken chains and orphans
  98. ### 4. Report Traceability Findings to Validation Report
  99. Append to validation report:
  100. ```markdown
  101. ## Traceability Validation
  102. ### Chain Validation
  103. **Executive Summary → Success Criteria:** [Intact/Gaps Identified]
  104. {If gaps: List specific misalignments}
  105. **Success Criteria → User Journeys:** [Intact/Gaps Identified]
  106. {If gaps: List unsupported success criteria}
  107. **User Journeys → Functional Requirements:** [Intact/Gaps Identified]
  108. {If gaps: List journeys without supporting FRs}
  109. **Scope → FR Alignment:** [Intact/Misaligned]
  110. {If misaligned: List specific issues}
  111. ### Orphan Elements
  112. **Orphan Functional Requirements:** {count}
  113. {List orphan FRs with numbers}
  114. **Unsupported Success Criteria:** {count}
  115. {List unsupported criteria}
  116. **User Journeys Without FRs:** {count}
  117. {List journeys without FRs}
  118. ### Traceability Matrix
  119. {Summary table showing traceability coverage}
  120. **Total Traceability Issues:** {total}
  121. **Severity:** [Critical if orphan FRs exist, Warning if gaps, Pass if intact]
  122. **Recommendation:**
  123. [If Critical] "Orphan requirements exist - every FR must trace back to a user need or business objective."
  124. [If Warning] "Traceability gaps identified - strengthen chains to ensure all requirements are justified."
  125. [If Pass] "Traceability chain is intact - all requirements trace to user needs or business objectives."
  126. ```
  127. ### 5. Display Progress and Auto-Proceed
  128. Display: "**Traceability Validation Complete**
  129. Total Issues: {count} ({severity})
  130. **Proceeding to next validation check...**"
  131. Without delay, read fully and follow: {nextStepFile} (step-v-07-implementation-leakage-validation.md)
  132. ---
  133. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  134. ### ✅ SUCCESS:
  135. - All traceability chains validated systematically
  136. - Orphan FRs identified with numbers
  137. - Broken chains documented
  138. - Traceability matrix built
  139. - Severity assessed correctly
  140. - Findings reported to validation report
  141. - Auto-proceeds to next validation step
  142. - Subprocess attempted with graceful degradation
  143. ### ❌ SYSTEM FAILURE:
  144. - Not validating all traceability chains
  145. - Missing orphan FR detection
  146. - Not building traceability matrix
  147. - Not reporting findings to validation report
  148. - Not auto-proceeding
  149. **Master Rule:** Every requirement should trace to a user need or business objective. Orphan FRs indicate broken traceability that must be fixed.