Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

step-v-07-implementation-leakage-validation.md 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ---
  2. # File references (ONLY variables used in this step)
  3. nextStepFile: './step-v-08-domain-compliance-validation.md'
  4. prdFile: '{prd_file_path}'
  5. validationReportPath: '{validation_report_path}'
  6. ---
  7. # Step 7: Implementation Leakage Validation
  8. ## STEP GOAL:
  9. Ensure Functional Requirements and Non-Functional Requirements don't include implementation details - they should specify WHAT, not HOW.
  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 separation of concerns expertise
  22. - ✅ This step runs autonomously - no user input needed
  23. ### Step-Specific Rules:
  24. - 🎯 Focus ONLY on implementation leakage detection
  25. - 🚫 FORBIDDEN to validate other aspects in this step
  26. - 💬 Approach: Systematic scanning for technology and implementation terms
  27. - 🚪 This is a validation sequence step - auto-proceeds when complete
  28. ## EXECUTION PROTOCOLS:
  29. - 🎯 Scan FRs and NFRs for implementation terms
  30. - 💾 Distinguish capability-relevant vs leakage
  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: Implementation leakage detection only
  37. - Limits: Don't validate other aspects, don't pause for user input
  38. - Dependencies: Steps 2-6 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 implementation leakage validation on this PRD:
  44. **Scan for:**
  45. 1. Technology names (React, Vue, Angular, PostgreSQL, MongoDB, AWS, GCP, Azure, Docker, Kubernetes, etc.)
  46. 2. Library names (Redux, axios, lodash, Express, Django, Rails, Spring, etc.)
  47. 3. Data structures (JSON, XML, CSV) unless relevant to capability
  48. 4. Architecture patterns (MVC, microservices, serverless) unless business requirement
  49. 5. Protocol names (HTTP, REST, GraphQL, WebSockets) - check if capability-relevant
  50. **For each term found:**
  51. - Is this capability-relevant? (e.g., 'API consumers can access...' - API is capability)
  52. - Or is this implementation detail? (e.g., 'React component for...' - implementation)
  53. Document violations with line numbers and explanation.
  54. Return structured findings with leakage counts and examples."
  55. ### 2. Graceful Degradation (if Task tool unavailable)
  56. If Task tool unavailable, perform analysis directly:
  57. **Implementation leakage terms to scan for:**
  58. **Frontend Frameworks:**
  59. React, Vue, Angular, Svelte, Solid, Next.js, Nuxt, etc.
  60. **Backend Frameworks:**
  61. Express, Django, Rails, Spring, Laravel, FastAPI, etc.
  62. **Databases:**
  63. PostgreSQL, MySQL, MongoDB, Redis, DynamoDB, Cassandra, etc.
  64. **Cloud Platforms:**
  65. AWS, GCP, Azure, Cloudflare, Vercel, Netlify, etc.
  66. **Infrastructure:**
  67. Docker, Kubernetes, Terraform, Ansible, etc.
  68. **Libraries:**
  69. Redux, Zustand, axios, fetch, lodash, jQuery, etc.
  70. **Data Formats:**
  71. JSON, XML, YAML, CSV (unless capability-relevant)
  72. **For each term found in FRs/NFRs:**
  73. - Determine if it's capability-relevant or implementation leakage
  74. - Example: "API consumers can access data via REST endpoints" - API/REST is capability
  75. - Example: "React components fetch data using Redux" - implementation leakage
  76. **Count violations and note line numbers**
  77. ### 3. Tally Implementation Leakage
  78. **By category:**
  79. - Frontend framework leakage: count
  80. - Backend framework leakage: count
  81. - Database leakage: count
  82. - Cloud platform leakage: count
  83. - Infrastructure leakage: count
  84. - Library leakage: count
  85. - Other implementation details: count
  86. **Total implementation leakage violations:** sum
  87. ### 4. Report Implementation Leakage Findings to Validation Report
  88. Append to validation report:
  89. ```markdown
  90. ## Implementation Leakage Validation
  91. ### Leakage by Category
  92. **Frontend Frameworks:** {count} violations
  93. {If violations, list examples with line numbers}
  94. **Backend Frameworks:** {count} violations
  95. {If violations, list examples with line numbers}
  96. **Databases:** {count} violations
  97. {If violations, list examples with line numbers}
  98. **Cloud Platforms:** {count} violations
  99. {If violations, list examples with line numbers}
  100. **Infrastructure:** {count} violations
  101. {If violations, list examples with line numbers}
  102. **Libraries:** {count} violations
  103. {If violations, list examples with line numbers}
  104. **Other Implementation Details:** {count} violations
  105. {If violations, list examples with line numbers}
  106. ### Summary
  107. **Total Implementation Leakage Violations:** {total}
  108. **Severity:** [Critical if >5 violations, Warning if 2-5, Pass if <2]
  109. **Recommendation:**
  110. [If Critical] "Extensive implementation leakage found. Requirements specify HOW instead of WHAT. Remove all implementation details - these belong in architecture, not PRD."
  111. [If Warning] "Some implementation leakage detected. Review violations and remove implementation details from requirements."
  112. [If Pass] "No significant implementation leakage found. Requirements properly specify WHAT without HOW."
  113. **Note:** API consumers, GraphQL (when required), and other capability-relevant terms are acceptable when they describe WHAT the system must do, not HOW to build it.
  114. ```
  115. ### 5. Display Progress and Auto-Proceed
  116. Display: "**Implementation Leakage Validation Complete**
  117. Total Violations: {count} ({severity})
  118. **Proceeding to next validation check...**"
  119. Without delay, read fully and follow: {nextStepFile} (step-v-08-domain-compliance-validation.md)
  120. ---
  121. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  122. ### ✅ SUCCESS:
  123. - Scanned FRs and NFRs for all implementation term categories
  124. - Distinguished capability-relevant from implementation leakage
  125. - Violations documented with line numbers and explanations
  126. - Severity assessed correctly
  127. - Findings reported to validation report
  128. - Auto-proceeds to next validation step
  129. - Subprocess attempted with graceful degradation
  130. ### ❌ SYSTEM FAILURE:
  131. - Not scanning all implementation term categories
  132. - Not distinguishing capability-relevant from leakage
  133. - Missing line numbers for violations
  134. - Not reporting findings to validation report
  135. - Not auto-proceeding
  136. **Master Rule:** Requirements specify WHAT, not HOW. Implementation details belong in architecture documents, not PRDs.