agentic-qe 3.7.16 → 3.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/.claude/agents/v3/qe-devils-advocate.md +20 -0
  2. package/.claude/agents/v3/qe-gap-detector.md +25 -0
  3. package/.claude/agents/v3/qe-quality-gate.md +8 -0
  4. package/.claude/agents/v3/qe-requirements-validator.md +25 -0
  5. package/.claude/agents/v3/subagents/qe-code-reviewer.md +11 -0
  6. package/.claude/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  7. package/.claude/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  8. package/.claude/agents/v3/subagents/qe-security-reviewer.md +11 -0
  9. package/.claude/helpers/adr-compliance.sh +10 -10
  10. package/.claude/helpers/auto-memory-hook.mjs +24 -9
  11. package/.claude/helpers/brain-checkpoint.cjs +55 -145
  12. package/.claude/helpers/ddd-tracker.sh +2 -2
  13. package/.claude/helpers/guidance-hooks.sh +2 -2
  14. package/.claude/helpers/hook-handler.cjs +57 -18
  15. package/.claude/helpers/statusline.cjs +414 -595
  16. package/.claude/helpers/v3/quality-criteria/evidence-classification.md +116 -116
  17. package/.claude/helpers/v3/quality-criteria/htsm-categories.md +139 -139
  18. package/.claude/skills/README.md +8 -11
  19. package/.claude/skills/brutal-honesty-review/SKILL.md +3 -0
  20. package/.claude/skills/code-review-quality/SKILL.md +3 -0
  21. package/.claude/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  22. package/.claude/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  23. package/.claude/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  24. package/.claude/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  25. package/.claude/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  26. package/.claude/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  27. package/.claude/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  28. package/.claude/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  29. package/.claude/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  30. package/.claude/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  31. package/.claude/skills/qcsd-development-swarm/SKILL.md +79 -2027
  32. package/.claude/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  33. package/.claude/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  34. package/.claude/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  35. package/.claude/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  36. package/.claude/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  37. package/.claude/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  38. package/.claude/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  39. package/.claude/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  40. package/.claude/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  41. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  42. package/.claude/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  43. package/.claude/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  44. package/.claude/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  45. package/.claude/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  46. package/.claude/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  47. package/.claude/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  48. package/.claude/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  49. package/.claude/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  50. package/.claude/skills/qcsd-production-swarm/SKILL.md +88 -2663
  51. package/.claude/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  52. package/.claude/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  53. package/.claude/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  54. package/.claude/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  55. package/.claude/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  56. package/.claude/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  57. package/.claude/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  58. package/.claude/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  59. package/.claude/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  60. package/.claude/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  61. package/.claude/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  62. package/.claude/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  63. package/.claude/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  64. package/.claude/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  65. package/.claude/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  66. package/.claude/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  67. package/.claude/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  68. package/.claude/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  69. package/.claude/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  70. package/.claude/skills/sherlock-review/SKILL.md +3 -0
  71. package/.claude/skills/skill-builder/SKILL.md +103 -0
  72. package/.claude/skills/skills-manifest.json +1 -1
  73. package/CHANGELOG.md +29 -0
  74. package/assets/agents/v3/qe-devils-advocate.md +20 -0
  75. package/assets/agents/v3/qe-gap-detector.md +25 -0
  76. package/assets/agents/v3/qe-quality-gate.md +8 -0
  77. package/assets/agents/v3/qe-requirements-validator.md +25 -0
  78. package/assets/agents/v3/subagents/qe-code-reviewer.md +11 -0
  79. package/assets/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  80. package/assets/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  81. package/assets/agents/v3/subagents/qe-security-reviewer.md +11 -0
  82. package/assets/helpers/statusline-v3.cjs +693 -0
  83. package/assets/skills/brutal-honesty-review/SKILL.md +3 -0
  84. package/assets/skills/code-review-quality/SKILL.md +3 -0
  85. package/assets/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  86. package/assets/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  87. package/assets/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  88. package/assets/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  89. package/assets/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  90. package/assets/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  91. package/assets/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  92. package/assets/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  93. package/assets/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  94. package/assets/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  95. package/assets/skills/qcsd-development-swarm/SKILL.md +79 -2027
  96. package/assets/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  97. package/assets/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  98. package/assets/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  99. package/assets/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  100. package/assets/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  101. package/assets/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  102. package/assets/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  103. package/assets/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  104. package/assets/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  105. package/assets/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  106. package/assets/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  107. package/assets/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  108. package/assets/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  109. package/assets/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  110. package/assets/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  111. package/assets/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  112. package/assets/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  113. package/assets/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  114. package/assets/skills/qcsd-production-swarm/SKILL.md +88 -2663
  115. package/assets/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  116. package/assets/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  117. package/assets/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  118. package/assets/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  119. package/assets/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  120. package/assets/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  121. package/assets/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  122. package/assets/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  123. package/assets/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  124. package/assets/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  125. package/assets/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  126. package/assets/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  127. package/assets/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  128. package/assets/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  129. package/assets/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  130. package/assets/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  131. package/assets/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  132. package/assets/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  133. package/assets/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  134. package/assets/skills/sherlock-review/SKILL.md +3 -0
  135. package/assets/templates/agent-override-example.yaml +39 -0
  136. package/dist/agents/devils-advocate/agent.d.ts +25 -1
  137. package/dist/agents/devils-advocate/agent.js +108 -4
  138. package/dist/agents/devils-advocate/types.d.ts +54 -0
  139. package/dist/agents/devils-advocate/types.js +14 -0
  140. package/dist/agents/overlay-loader.d.ts +28 -0
  141. package/dist/agents/overlay-loader.js +232 -0
  142. package/dist/agents/overlay-schema.d.ts +56 -0
  143. package/dist/agents/overlay-schema.js +77 -0
  144. package/dist/analysis/branch-enumerator.d.ts +68 -0
  145. package/dist/analysis/branch-enumerator.js +393 -0
  146. package/dist/analysis/index.d.ts +2 -0
  147. package/dist/analysis/index.js +2 -0
  148. package/dist/cli/bundle.js +2415 -624
  149. package/dist/cli/commands/coverage.js +50 -0
  150. package/dist/context/compiler.d.ts +62 -0
  151. package/dist/context/compiler.js +143 -0
  152. package/dist/context/index.d.ts +8 -0
  153. package/dist/context/index.js +6 -0
  154. package/dist/context/sources/coverage-source.d.ts +15 -0
  155. package/dist/context/sources/coverage-source.js +77 -0
  156. package/dist/context/sources/git-source.d.ts +12 -0
  157. package/dist/context/sources/git-source.js +33 -0
  158. package/dist/context/sources/index.d.ts +6 -0
  159. package/dist/context/sources/index.js +5 -0
  160. package/dist/context/sources/memory-source.d.ts +17 -0
  161. package/dist/context/sources/memory-source.js +94 -0
  162. package/dist/context/sources/test-source.d.ts +13 -0
  163. package/dist/context/sources/test-source.js +53 -0
  164. package/dist/context/sources/types.d.ts +42 -0
  165. package/dist/context/sources/types.js +5 -0
  166. package/dist/init/agents-installer.d.ts +9 -0
  167. package/dist/init/agents-installer.js +79 -0
  168. package/dist/init/phases/07-hooks.d.ts +11 -0
  169. package/dist/init/phases/07-hooks.js +67 -0
  170. package/dist/init/phases/09-assets.js +18 -10
  171. package/dist/init/settings-merge.js +1 -1
  172. package/dist/mcp/bundle.js +4411 -3979
  173. package/dist/mcp/services/task-router.d.ts +11 -0
  174. package/dist/mcp/services/task-router.js +26 -0
  175. package/dist/routing/qe-agent-registry.d.ts +11 -0
  176. package/dist/routing/qe-agent-registry.js +34 -0
  177. package/dist/routing/qe-task-router.d.ts +1 -0
  178. package/dist/routing/qe-task-router.js +34 -2
  179. package/dist/routing/types.d.ts +2 -0
  180. package/dist/validation/index.d.ts +3 -0
  181. package/dist/validation/index.js +10 -0
  182. package/dist/validation/pipeline.d.ts +80 -0
  183. package/dist/validation/pipeline.js +173 -0
  184. package/dist/validation/steps/requirements.d.ts +32 -0
  185. package/dist/validation/steps/requirements.js +596 -0
  186. package/package.json +6 -6
  187. package/.claude/agents/consensus/README.md +0 -253
  188. package/.claude/agents/deprecated/qe-api-contract-validator.md.v2 +0 -162
  189. package/.claude/agents/deprecated/qe-coverage-analyzer.md.v2 +0 -208
  190. package/.claude/agents/deprecated/qe-test-generator.md.v2 +0 -212
  191. package/.claude/agents/deprecated/qe-visual-tester.md.v2 +0 -216
  192. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  193. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  194. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  195. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  196. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  197. package/.claude/agents/neural/safla-neural.md +0 -74
  198. package/.claude/agents/optimization/README.md +0 -250
  199. package/.claude/agents/reasoning/agent.md +0 -816
  200. package/.claude/agents/reasoning/goal-planner.md +0 -73
  201. package/.claude/agents/subagents/qe-code-reviewer.md +0 -76
  202. package/.claude/agents/subagents/qe-coverage-gap-analyzer.md +0 -76
  203. package/.claude/agents/subagents/qe-data-generator.md +0 -77
  204. package/.claude/agents/subagents/qe-flaky-investigator.md +0 -91
  205. package/.claude/agents/subagents/qe-integration-tester.md +0 -90
  206. package/.claude/agents/subagents/qe-performance-validator.md +0 -92
  207. package/.claude/agents/subagents/qe-security-auditor.md +0 -94
  208. package/.claude/agents/subagents/qe-test-data-architect-sub.md +0 -93
  209. package/.claude/agents/subagents/qe-test-implementer.md +0 -106
  210. package/.claude/agents/subagents/qe-test-refactorer.md +0 -117
  211. package/.claude/agents/subagents/qe-test-writer.md +0 -112
  212. package/.claude/agents/swarm/README.md +0 -190
  213. package/.claude/agents/templates/migration-plan.md +0 -746
  214. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  215. package/.claude/agents/testing/validation/production-validator.md +0 -395
  216. package/.claude/agents/v3/README.md +0 -39
  217. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  218. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  219. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  220. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  221. package/.claude/agents/v3/v3-security-architect.md +0 -174
  222. package/.claude/commands/README.md +0 -106
  223. package/.claude/commands/agents/README.md +0 -10
  224. package/.claude/commands/agents/agent-capabilities.md +0 -21
  225. package/.claude/commands/agents/agent-coordination.md +0 -28
  226. package/.claude/commands/agents/agent-spawning.md +0 -28
  227. package/.claude/commands/agents/agent-types.md +0 -26
  228. package/.claude/commands/coordination/README.md +0 -9
  229. package/.claude/commands/coordination/agent-spawn.md +0 -25
  230. package/.claude/commands/coordination/init.md +0 -44
  231. package/.claude/commands/coordination/orchestrate.md +0 -43
  232. package/.claude/commands/coordination/spawn.md +0 -45
  233. package/.claude/commands/coordination/swarm-init.md +0 -85
  234. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  235. package/.claude/commands/hive-mind/README.md +0 -17
  236. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  237. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  238. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  239. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  240. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  241. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  242. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  243. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  244. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  245. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  246. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  247. package/.claude/commands/memory/README.md +0 -9
  248. package/.claude/commands/memory/memory-persist.md +0 -25
  249. package/.claude/commands/memory/memory-search.md +0 -25
  250. package/.claude/commands/memory/memory-usage.md +0 -25
  251. package/.claude/commands/memory/neural.md +0 -47
  252. package/.claude/commands/swarm/README.md +0 -15
  253. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  254. package/.claude/commands/swarm/swarm-background.md +0 -8
  255. package/.claude/commands/swarm/swarm-init.md +0 -19
  256. package/.claude/commands/swarm/swarm-modes.md +0 -8
  257. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  258. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  259. package/.claude/commands/swarm/swarm-status.md +0 -8
  260. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  261. package/.claude/commands/swarm/swarm.md +0 -27
  262. package/.claude/commands/training/README.md +0 -9
  263. package/.claude/commands/training/model-update.md +0 -25
  264. package/.claude/commands/training/neural-patterns.md +0 -74
  265. package/.claude/commands/training/neural-train.md +0 -25
  266. package/.claude/commands/training/pattern-learn.md +0 -25
  267. package/.claude/commands/training/specialization.md +0 -63
  268. package/.claude/commands/workflows/README.md +0 -9
  269. package/.claude/commands/workflows/development.md +0 -78
  270. package/.claude/commands/workflows/research.md +0 -63
  271. package/.claude/commands/workflows/workflow-create.md +0 -25
  272. package/.claude/commands/workflows/workflow-execute.md +0 -25
  273. package/.claude/commands/workflows/workflow-export.md +0 -25
  274. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  275. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  276. package/.claude/skills/iterative-loop/SKILL.md +0 -371
  277. package/.claude/skills/performance-analysis/SKILL.md +0 -569
  278. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +0 -144
  279. package/.claude/skills/performance-analysis/schemas/output.json +0 -588
  280. package/.claude/skills/performance-analysis/scripts/validate-config.json +0 -36
@@ -69,27 +69,13 @@ a RELEASE / REMEDIATE / BLOCK decision.
69
69
 
70
70
  ### QCSD Phase Positioning
71
71
 
72
- | Phase | Swarm | Question | Decision | When |
73
- |-------|-------|----------|----------|------|
74
- | Ideation | qcsd-ideation-swarm | Should we build this? | GO / CONDITIONAL / NO-GO | PI/Sprint Planning |
75
- | Refinement | qcsd-refinement-swarm | How should we test this? | READY / CONDITIONAL / NOT-READY | Sprint Refinement |
76
- | Development | qcsd-development-swarm | Is the code quality sufficient? | SHIP / CONDITIONAL / HOLD | During Sprint |
77
- | **Verification** | **qcsd-cicd-swarm** | **Is this change safe to release?** | **RELEASE / REMEDIATE / BLOCK** | **Pre-Release / CI-CD** |
78
-
79
- ### Key Differentiators from Development Swarm
80
-
81
- | Dimension | Development Swarm | CI/CD Swarm |
82
- |-----------|-------------------|-------------|
83
- | Framework | TDD + Complexity + Coverage | Quality Gates + Regression + Stability |
84
- | Agents | 10 (3 core + 6 conditional + 1 analysis) | 10 (3 core + 6 conditional + 1 analysis) |
85
- | Core Output | Code quality assessment | Release readiness assessment |
86
- | Decision | SHIP / CONDITIONAL / HOLD | RELEASE / REMEDIATE / BLOCK |
87
- | Flags | HAS_SECURITY_CODE, HAS_PERFORMANCE_CODE, HAS_CRITICAL_CODE, HAS_MIDDLEWARE, HAS_SAP_INTEGRATION, HAS_AUTHORIZATION | HAS_SECURITY_PIPELINE, HAS_PERFORMANCE_PIPELINE, HAS_INFRA_CHANGE, HAS_MIDDLEWARE, HAS_SAP_INTEGRATION, HAS_AUTHORIZATION |
88
- | Phase | During Sprint Development | Pre-Release / CI-CD Pipeline |
89
- | Input | Source code + test files | Pipeline artifacts + test results + build output |
90
- | Final Step | Defect prediction analysis | Deployment readiness advisory |
91
-
92
- ---
72
+ | Phase | Swarm | Decision | When |
73
+ |-------|-------|----------|------|
74
+ | Ideation | qcsd-ideation-swarm | GO / CONDITIONAL / NO-GO | PI/Sprint Planning |
75
+ | Refinement | qcsd-refinement-swarm | READY / CONDITIONAL / NOT-READY | Sprint Refinement |
76
+ | Development | qcsd-development-swarm | SHIP / CONDITIONAL / HOLD | During Sprint |
77
+ | **Verification** | **qcsd-cicd-swarm** | **RELEASE / REMEDIATE / BLOCK** | **Pre-Release / CI-CD** |
78
+ | Production | qcsd-production-swarm | HEALTHY / DEGRADED / CRITICAL | Post-Release |
93
79
 
94
80
  ### Parameters
95
81
 
@@ -102,2105 +88,123 @@ a RELEASE / REMEDIATE / BLOCK decision.
102
88
 
103
89
  ## ENFORCEMENT RULES - READ FIRST
104
90
 
105
- **These rules are NON-NEGOTIABLE. Violation means skill execution failure.**
106
-
107
91
  | Rule | Enforcement |
108
92
  |------|-------------|
109
- | **E1** | You MUST spawn ALL THREE core agents (qe-quality-gate, qe-regression-analyzer, qe-flaky-hunter) in Phase 2. No exceptions. |
93
+ | **E1** | You MUST spawn ALL THREE core agents (qe-quality-gate, qe-regression-analyzer, qe-flaky-hunter) in Step 2. No exceptions. |
110
94
  | **E2** | You MUST put all parallel Task calls in a SINGLE message. |
111
95
  | **E3** | You MUST STOP and WAIT after each batch. No proceeding early. |
112
96
  | **E4** | You MUST spawn conditional agents if flags are TRUE. No skipping. |
113
- | **E5** | You MUST apply RELEASE/REMEDIATE/BLOCK logic exactly as specified in Phase 5. |
97
+ | **E5** | You MUST apply RELEASE/REMEDIATE/BLOCK logic exactly as specified in Step 5. |
114
98
  | **E6** | You MUST generate the full report structure. No abbreviated versions. |
115
99
  | **E7** | Each agent MUST read its reference files before analysis. |
116
- | **E8** | You MUST apply qe-deployment-advisor analysis on ALL pipeline data in Phase 8. Always. |
117
- | **E9** | You MUST execute Phase 7 learning persistence. Store verification findings to memory BEFORE Phase 8. No skipping. |
100
+ | **E8** | You MUST apply qe-deployment-advisor analysis on ALL pipeline data in Step 8. Always. |
101
+ | **E9** | You MUST execute Step 7 learning persistence. No skipping. |
118
102
 
119
103
  **PROHIBITED BEHAVIORS:**
120
104
  - Summarizing instead of spawning agents
121
105
  - Skipping agents "for brevity"
122
106
  - Proceeding before background tasks complete
123
107
  - Providing your own analysis instead of spawning specialists
124
- - Omitting report sections
125
- - Using placeholder text like "[details here]"
126
- - Skipping the deployment readiness analysis
127
- - Skipping learning persistence (Phase 7) or treating it as optional
128
- - Generating pipeline analysis yourself instead of using specialist agents
129
-
130
- ---
131
-
132
- ## PHASE 1: Analyze Pipeline Context (Flag Detection)
133
-
134
- **MANDATORY: You must complete this analysis before Phase 2.**
135
-
136
- Scan the pipeline artifacts, CI/CD configuration, test results, and change diff to SET these flags. Do not skip any flag.
137
-
138
- ### Flag Detection (Check ALL SIX)
139
-
140
- ```
141
- HAS_SECURITY_PIPELINE = FALSE
142
- Set TRUE if pipeline contains ANY of: security scan results, SAST output,
143
- DAST output, dependency audit results, CVE reports, container scan,
144
- secrets detection output, compliance check results, SBOM generation,
145
- penetration test results, security gate failures, auth-related changes,
146
- certificate changes, encryption changes, API key rotation
147
-
148
- HAS_PERFORMANCE_PIPELINE = FALSE
149
- Set TRUE if pipeline contains ANY of: load test results, performance
150
- benchmark output, latency metrics, throughput data, stress test results,
151
- memory profiling output, CPU profiling data, response time baselines,
152
- scalability test results, database query performance, cache hit ratios,
153
- CDN performance data, API response times, SLA compliance metrics
154
-
155
- HAS_INFRA_CHANGE = FALSE
156
- Set TRUE if changes include ANY of: Dockerfile, docker-compose,
157
- kubernetes manifests, terraform files, CloudFormation templates,
158
- CI/CD pipeline config (.github/workflows, .gitlab-ci, Jenkinsfile),
159
- infrastructure as code, helm charts, ansible playbooks,
160
- environment variables, nginx config, database migrations,
161
- service mesh config, load balancer config, DNS changes
162
-
163
- HAS_MIDDLEWARE = FALSE
164
- Set TRUE if pipeline artifacts or changes reference ANY of:
165
- middleware, ESB, message broker, MQ, Kafka, RabbitMQ,
166
- integration bus, API gateway, message queue, pub/sub,
167
- event bus, service bus, ActiveMQ, NATS, Redis Streams
168
-
169
- HAS_SAP_INTEGRATION = FALSE
170
- Set TRUE if pipeline artifacts or changes reference ANY of:
171
- SAP, RFC, BAPI, IDoc, OData, S/4HANA, EWM, ECC, ABAP,
172
- CDS view, Fiori, SAP Cloud Integration, SAP PI/PO,
173
- SAP Gateway, SOAP service, SAP connector
174
-
175
- HAS_AUTHORIZATION = FALSE
176
- Set TRUE if pipeline artifacts or changes reference ANY of:
177
- SoD, segregation of duties, role conflict, authorization object,
178
- T-code, user role, access control matrix, GRC, RBAC policy,
179
- permission matrix, privilege escalation, role assignment
180
- ```
181
-
182
- ### Validation Checkpoint
183
-
184
- Before proceeding to Phase 2, confirm:
185
-
186
- ```
187
- +-- I have read the pipeline artifacts and test results
188
- +-- I have read the CI/CD configuration files
189
- +-- I have reviewed the change diff against baseline
190
- +-- I have evaluated ALL SIX flags
191
- +-- I have recorded which flags are TRUE
192
- +-- I understand which conditional agents will be needed
193
- ```
194
-
195
- **DO NOT proceed to Phase 2 until all checkboxes are confirmed.**
196
-
197
- ### MANDATORY: Output Flag Detection Results
198
-
199
- You MUST output flag detection results before proceeding:
200
-
201
- ```
202
- +-------------------------------------------------------------+
203
- | FLAG DETECTION RESULTS |
204
- +-------------------------------------------------------------+
205
- | |
206
- | HAS_SECURITY_PIPELINE: [TRUE/FALSE] |
207
- | Evidence: [what triggered it - specific] |
208
- | |
209
- | HAS_PERFORMANCE_PIPELINE: [TRUE/FALSE] |
210
- | Evidence: [what triggered it - specific] |
211
- | |
212
- | HAS_INFRA_CHANGE: [TRUE/FALSE] |
213
- | Evidence: [what triggered it - specific] |
214
- | |
215
- | HAS_MIDDLEWARE: [TRUE/FALSE] |
216
- | Evidence: [what triggered it - specific] |
217
- | |
218
- | HAS_SAP_INTEGRATION: [TRUE/FALSE] |
219
- | Evidence: [what triggered it - specific] |
220
- | |
221
- | HAS_AUTHORIZATION: [TRUE/FALSE] |
222
- | Evidence: [what triggered it - specific] |
223
- | |
224
- | EXPECTED AGENTS: |
225
- | - Core: 3 (always) |
226
- | - Conditional: [count based on TRUE flags] |
227
- | - Analysis: 1 (always) |
228
- | - TOTAL: [3 + conditional count + 1] |
229
- | |
230
- +-------------------------------------------------------------+
231
- ```
232
-
233
- **DO NOT proceed to Phase 2 without outputting flag detection results.**
234
-
235
- ---
236
-
237
- ## PHASE 2: Spawn Core Agents (PARALLEL BATCH 1)
238
-
239
- ### CRITICAL ENFORCEMENT
240
-
241
- ```
242
- +-------------------------------------------------------------+
243
- | YOU MUST INCLUDE ALL THREE TASK CALLS IN YOUR NEXT MESSAGE |
244
- | |
245
- | - Task 1: qe-quality-gate |
246
- | - Task 2: qe-regression-analyzer |
247
- | - Task 3: qe-flaky-hunter |
248
- | |
249
- | If your message contains fewer than 3 Task calls, you have |
250
- | FAILED this phase. Start over. |
251
- +-------------------------------------------------------------+
252
- ```
253
-
254
- ### Domain Context
255
-
256
- | Agent | Domain | MCP Tool Mapping |
257
- |-------|--------|------------------|
258
- | qe-quality-gate | quality-assessment | `quality_assess` |
259
- | qe-regression-analyzer | test-execution | `test_execute_parallel` |
260
- | qe-flaky-hunter | test-execution | `test_execute_parallel` |
261
-
262
- ### Agent 1: Quality Gate Evaluator
263
-
264
- **This agent MUST evaluate quality gate thresholds and enforce pass/fail criteria.**
265
-
266
- ```
267
- Task({
268
- description: "Quality gate threshold evaluation",
269
- prompt: `You are qe-quality-gate. Your output quality is being audited.
270
-
271
- ## MANDATORY FIRST STEPS (DO NOT SKIP)
272
-
273
- 1. READ the pipeline test results and build artifacts provided below IN FULL.
274
- 2. READ the quality gate configuration if available.
275
- 3. READ any previous QCSD Development phase signals if available.
276
-
277
- ## PIPELINE DATA TO ANALYZE
278
-
279
- === TEST RESULTS START ===
280
- [PASTE THE COMPLETE TEST RESULTS HERE - DO NOT SUMMARIZE]
281
- === TEST RESULTS END ===
282
-
283
- === BUILD ARTIFACTS START ===
284
- [PASTE BUILD OUTPUT / COVERAGE REPORTS HERE - DO NOT SUMMARIZE]
285
- === BUILD ARTIFACTS END ===
286
-
287
- === DEVELOPMENT PHASE SIGNALS (if available) START ===
288
- [PASTE any Development phase SHIP/CONDITIONAL/HOLD signals]
289
- === DEVELOPMENT PHASE SIGNALS END ===
290
-
291
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
292
-
293
- ### 1. Quality Gate Assessment
294
-
295
- Evaluate each quality dimension against thresholds:
296
-
297
- | Gate | Metric | Value | Threshold | Status |
298
- |------|--------|-------|-----------|--------|
299
- | Test Pass Rate | X/Y passed | X% | >= 100% | PASS/FAIL |
300
- | Code Coverage | Line coverage | X% | >= 80% | PASS/WARN/FAIL |
301
- | Branch Coverage | Branch coverage | X% | >= 70% | PASS/WARN/FAIL |
302
- | Build Success | Build status | Pass/Fail | Pass | PASS/FAIL |
303
- | Lint Errors | Error count | X | 0 | PASS/WARN/FAIL |
304
- | Type Check | Type errors | X | 0 | PASS/FAIL |
305
- | Bundle Size | Size delta | +X KB | <= +50 KB | PASS/WARN/FAIL |
306
- | Test Duration | Total time | Xs | <= baseline + 10% | PASS/WARN/FAIL |
307
-
308
- **QUALITY GATE STATUS: PASSED / FAILED (X/Y gates passed)**
309
-
310
- ### 2. Test Results Analysis
311
-
312
- | Category | Total | Passed | Failed | Skipped | Pass Rate |
313
- |----------|-------|--------|--------|---------|-----------|
314
- | Unit Tests | X | X | X | X | X% |
315
- | Integration Tests | X | X | X | X | X% |
316
- | E2E Tests | X | X | X | X | X% |
317
- | Contract Tests | X | X | X | X | X% |
318
- | **Total** | **X** | **X** | **X** | **X** | **X%** |
319
-
320
- ### 3. Failed Test Analysis
321
-
322
- For each failed test:
323
-
324
- | Test Name | Suite | Failure Reason | Severity | Flaky? |
325
- |-----------|-------|---------------|----------|--------|
326
- | test_name | suite | [error message] | Critical/High/Medium | Yes/No |
327
-
328
- ### 4. Coverage Delta Analysis
329
-
330
- | Module | Before | After | Delta | Status |
331
- |--------|--------|-------|-------|--------|
332
- | Module 1 | X% | X% | +/-X% | Improved/Declined/Stable |
333
- | Module 2 | X% | X% | +/-X% | Improved/Declined/Stable |
334
- | **Overall** | **X%** | **X%** | **+/-X%** | **Improved/Declined/Stable** |
335
-
336
- ### 5. Quality Gate Score
337
-
338
- | Dimension | Score (0-10) | Notes |
339
- |-----------|-------------|-------|
340
- | Test completeness | X/10 | ... |
341
- | Coverage adequacy | X/10 | ... |
342
- | Build health | X/10 | ... |
343
- | Pipeline stability | X/10 | ... |
344
- | Threshold compliance | X/10 | ... |
345
-
346
- **QUALITY GATE SCORE: X/50**
347
-
348
- **MINIMUM: Evaluate all 8 quality gates and provide test results breakdown by category.**
349
-
350
- ## OUTPUT FORMAT
351
-
352
- Save your complete analysis in Markdown to:
353
- ${OUTPUT_FOLDER}/02-quality-gate.md
354
-
355
- Use the Write tool to save BEFORE completing.
356
- Report MUST be complete - no placeholders.
357
-
358
- ## VALIDATION BEFORE SUBMITTING
359
-
360
- +-- Did I read all test results and build artifacts?
361
- +-- Did I evaluate all 8 quality gates?
362
- +-- Did I analyze test results by category?
363
- +-- Did I analyze coverage delta?
364
- +-- Did I identify all failed tests?
365
- +-- Did I save the report to the correct output path?`,
366
- subagent_type: "qe-quality-gate",
367
- run_in_background: true
368
- })
369
- ```
370
-
371
- ### Agent 2: Regression Analyzer
372
-
373
- **This agent MUST analyze regression risk and test selection effectiveness.**
374
-
375
- ```
376
- Task({
377
- description: "Regression risk analysis and test selection",
378
- prompt: `You are qe-regression-analyzer. Your output quality is being audited.
379
-
380
- ## PIPELINE DATA TO ANALYZE
381
-
382
- === CHANGE DIFF START ===
383
- [PASTE THE COMPLETE DIFF/CHANGESET HERE - DO NOT SUMMARIZE]
384
- === CHANGE DIFF END ===
385
-
386
- === TEST RESULTS START ===
387
- [PASTE THE COMPLETE TEST RESULTS HERE - DO NOT SUMMARIZE]
388
- === TEST RESULTS END ===
389
-
390
- === HISTORICAL TEST DATA (if available) START ===
391
- [PASTE any historical test run data]
392
- === HISTORICAL TEST DATA END ===
393
-
394
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
395
-
396
- ### 1. Change Impact Analysis
397
-
398
- | File Changed | Lines Changed | Modules Affected | Risk Score |
399
- |-------------|---------------|-------------------|------------|
400
- | file.ts | +X / -Y | [dependent modules] | High/Medium/Low |
401
-
402
- **Impact Radius:**
403
- - Direct changes: X files
404
- - Directly affected modules: X
405
- - Transitively affected modules: X
406
- - Total blast radius: X files
407
-
408
- ### 2. Regression Risk Assessment
409
-
410
- | Risk Factor | Score (0-10) | Evidence | Mitigation |
411
- |-------------|-------------|----------|------------|
412
- | Code churn | X/10 | [X files, Y lines changed] | [action] |
413
- | Dependency depth | X/10 | [X transitive deps affected] | [action] |
414
- | Historical failure rate | X/10 | [X% failure rate in affected area] | [action] |
415
- | Test coverage of changes | X/10 | [X% of changed code tested] | [action] |
416
- | Complexity of changes | X/10 | [cyclomatic complexity delta] | [action] |
417
-
418
- **OVERALL REGRESSION RISK: X/50 (High/Medium/Low)**
419
-
420
- ### 3. Test Selection Effectiveness
421
-
422
- | Selection Criteria | Tests Selected | Tests Relevant | Precision |
423
- |-------------------|----------------|----------------|-----------|
424
- | Changed file mapping | X | X | X% |
425
- | Dependency analysis | X | X | X% |
426
- | Historical correlation | X | X | X% |
427
- | Risk-based selection | X | X | X% |
428
-
429
- ### 4. Missing Test Coverage for Changes
430
-
431
- | Changed Code | Coverage Status | Risk | Suggested Test |
432
- |-------------|----------------|------|----------------|
433
- | file:line-range | Covered/Uncovered | High/Medium/Low | [specific test] |
434
-
435
- ### 5. Regression Prediction
436
-
437
- | Module | Regression Probability | Confidence | Key Risk |
438
- |--------|----------------------|------------|----------|
439
- | Module 1 | X% | High/Medium/Low | [factor] |
440
- | Module 2 | X% | High/Medium/Low | [factor] |
441
-
442
- **REGRESSION RISK SCORE: X/100** (inverse: lower risk = higher score)
443
-
444
- **MINIMUM: Analyze all changed files and identify at least 3 regression risk factors.**
445
-
446
- ## OUTPUT FORMAT
447
-
448
- Save your complete analysis in Markdown to:
449
- ${OUTPUT_FOLDER}/03-regression-analysis.md
450
-
451
- Use the Write tool to save BEFORE completing.
452
- Report MUST be complete - no placeholders.
453
-
454
- ## VALIDATION BEFORE SUBMITTING
455
-
456
- +-- Did I analyze all changed files?
457
- +-- Did I calculate blast radius?
458
- +-- Did I score all 5 regression risk factors?
459
- +-- Did I evaluate test selection effectiveness?
460
- +-- Did I identify missing test coverage?
461
- +-- Did I save the report to the correct output path?`,
462
- subagent_type: "qe-regression-analyzer",
463
- run_in_background: true
464
- })
465
- ```
466
-
467
- ### Agent 3: Flaky Test Hunter
468
-
469
- **This agent MUST detect flaky tests and assess pipeline stability. Flaky count is mandatory.**
470
-
471
- ```
472
- Task({
473
- description: "Flaky test detection and pipeline stability assessment",
474
- prompt: `You are qe-flaky-hunter. Your output quality is being audited.
475
-
476
- ## PIPELINE DATA TO ANALYZE
477
-
478
- === TEST RESULTS START ===
479
- [PASTE THE COMPLETE TEST RESULTS HERE - DO NOT SUMMARIZE]
480
- === TEST RESULTS END ===
481
-
482
- === TEST HISTORY (if available) START ===
483
- [PASTE historical test results from previous runs]
484
- === TEST HISTORY END ===
485
-
486
- === CI/CD LOGS START ===
487
- [PASTE relevant CI/CD pipeline logs]
488
- === CI/CD LOGS END ===
489
-
490
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
491
-
492
- ### 1. Flaky Test Detection
493
-
494
- For EACH suspected flaky test:
495
-
496
- | Test Name | Suite | Flakiness Score | Evidence | Root Cause |
497
- |-----------|-------|----------------|----------|------------|
498
- | test_name | suite | X/10 | [why suspected flaky] | [timing/ordering/state/env] |
499
-
500
- **Flakiness Indicators:**
501
- - Test passes on retry but fails initially
502
- - Test fails inconsistently across runs
503
- - Test depends on execution order
504
- - Test has timing-sensitive assertions
505
- - Test depends on external state
506
- - Test uses non-deterministic data
507
- - Test has race conditions
508
-
509
- ### 2. Pipeline Stability Assessment
510
-
511
- | Metric | Value | Threshold | Status |
512
- |--------|-------|-----------|--------|
513
- | Overall pass rate (last 10 runs) | X% | >= 95% | PASS/WARN/FAIL |
514
- | Flaky test rate | X% | <= 2% | PASS/WARN/FAIL |
515
- | Average retry count | X | <= 0.5 | PASS/WARN/FAIL |
516
- | Pipeline timeout rate | X% | <= 1% | PASS/WARN/FAIL |
517
- | Deterministic pass rate | X% | >= 98% | PASS/WARN/FAIL |
518
-
519
- ### 3. Flaky Test Root Cause Analysis
520
-
521
- | Root Cause Category | Count | Tests Affected | Remediation |
522
- |--------------------|-------|----------------|-------------|
523
- | Timing/Race Conditions | X | [test list] | [specific fix] |
524
- | External Dependencies | X | [test list] | [mock/stub] |
525
- | Shared State | X | [test list] | [isolation] |
526
- | Environment Sensitivity | X | [test list] | [env fix] |
527
- | Data Dependencies | X | [test list] | [data setup] |
528
- | Ordering Dependencies | X | [test list] | [independence] |
529
-
530
- ### 4. Test Stability Trends
531
-
532
- | Time Period | Pass Rate | Flaky Rate | Trend |
533
- |-------------|-----------|------------|-------|
534
- | Current run | X% | X% | - |
535
- | Last 5 runs | X% | X% | Improving/Declining/Stable |
536
- | Last 10 runs | X% | X% | Improving/Declining/Stable |
537
- | Last 30 runs | X% | X% | Improving/Declining/Stable |
538
-
539
- ### 5. Flaky Test Impact Assessment
540
-
541
- | Impact | Count | Description |
542
- |--------|-------|-------------|
543
- | False failures blocking releases | X | [which tests cause false blocks] |
544
- | Developer confidence erosion | High/Medium/Low | [evidence] |
545
- | CI/CD resource waste | X% extra runs | [retry cost] |
546
- | Mean time to resolution | X hours | [average time to investigate] |
547
-
548
- **FLAKY TESTS TOTAL: X**
549
- **CRITICAL FLAKY (blocking releases): X**
550
-
551
- **STABILITY SCORE: X/100** (higher = more stable)
552
-
553
- **MINIMUM: Identify at least 3 flaky test indicators or explicitly state "No flaky tests detected after thorough analysis".**
554
-
555
- ## OUTPUT FORMAT
556
-
557
- Save your complete analysis in Markdown to:
558
- ${OUTPUT_FOLDER}/04-flaky-test-analysis.md
559
-
560
- Use the Write tool to save BEFORE completing.
561
- Report MUST be complete - no placeholders.
562
-
563
- ## VALIDATION BEFORE SUBMITTING
564
-
565
- +-- Did I analyze all test results for flakiness indicators?
566
- +-- Did I check historical test data for patterns?
567
- +-- Did I categorize root causes?
568
- +-- Did I assess pipeline stability with all 5 metrics?
569
- +-- Did I calculate stability trends?
570
- +-- Did I save the report to the correct output path?`,
571
- subagent_type: "qe-flaky-hunter",
572
- run_in_background: true
573
- })
574
- ```
575
-
576
- ### Post-Spawn Confirmation
577
-
578
- After sending all three Task calls, you MUST tell the user:
579
-
580
- ```
581
- I've launched 3 core agents in parallel:
582
-
583
- qe-quality-gate [Domain: quality-assessment]
584
- - Evaluating quality gate thresholds (8 dimensions)
585
- - Analyzing test results by category (unit, integration, e2e, contract)
586
- - Calculating coverage delta against baseline
587
-
588
- qe-regression-analyzer [Domain: test-execution]
589
- - Computing change impact blast radius
590
- - Scoring regression risk across 5 factors
591
- - Evaluating test selection effectiveness
592
-
593
- qe-flaky-hunter [Domain: test-execution]
594
- - Detecting flaky tests with root cause analysis
595
- - Assessing pipeline stability (5 metrics)
596
- - Calculating stability trends
597
-
598
- WAITING for all agents to complete before proceeding...
599
- ```
600
-
601
- **DO NOT proceed to Phase 3 until you have sent this confirmation.**
602
-
603
- ---
604
-
605
- ## PHASE 3: Wait for Batch 1 Completion
606
-
607
- ### ENFORCEMENT: NO EARLY PROCEEDING
608
-
609
- ```
610
- +-------------------------------------------------------------+
611
- | YOU MUST WAIT FOR ALL THREE BACKGROUND TASKS TO COMPLETE |
612
- | |
613
- | DO NOT summarize what agents "would" find |
614
- | DO NOT proceed to Phase 4 early |
615
- | DO NOT provide your own analysis as substitute |
616
- | |
617
- | WAIT for actual agent results |
618
- | ONLY proceed when all three have returned |
619
- +-------------------------------------------------------------+
620
- ```
621
-
622
- ### Results Extraction Checklist
623
-
624
- When results return, extract and record:
625
-
626
- ```
627
- From qe-quality-gate:
628
- [ ] qualityGateStatus = PASSED/FAILED (X/Y gates passed)
629
- [ ] testPassRate = __% overall pass rate
630
- [ ] coverageDelta = +/-__% coverage change
631
- [ ] failedTests = __ count of failed tests
632
- [ ] qualityGateScore = __/50
633
-
634
- From qe-regression-analyzer:
635
- [ ] regressionRisk = __/50 risk score
636
- [ ] blastRadius = __ files in blast radius
637
- [ ] changedFiles = __ files changed
638
- [ ] missingCoverage = __ uncovered changes
639
- [ ] regressionRiskLevel = High/Medium/Low
640
-
641
- From qe-flaky-hunter:
642
- [ ] flakyTests = __ total flaky tests detected
643
- [ ] criticalFlaky = __ blocking releases
644
- [ ] pipelineStability = __% pass rate
645
- [ ] stabilityScore = __/100
646
- [ ] flakyRate = __% flaky rate
647
- ```
648
-
649
- ### Metrics Summary Box
650
-
651
- Output extracted metrics:
652
-
653
- ```
654
- +-------------------------------------------------------------+
655
- | BATCH 1 RESULTS SUMMARY |
656
- +-------------------------------------------------------------+
657
- | |
658
- | Quality Gate: PASSED/FAILED (X/Y gates) |
659
- | Test Pass Rate: __% |
660
- | Coverage Delta: +/-__% |
661
- | Failed Tests: __ |
662
- | Quality Gate Score: __/50 |
663
- | |
664
- | Regression Risk: __/50 (High/Med/Low) |
665
- | Blast Radius: __ files |
666
- | Changed Files: __ |
667
- | Missing Coverage: __ uncovered changes |
668
- | |
669
- | Flaky Tests: __ |
670
- | Critical Flaky: __ |
671
- | Pipeline Stability: __% |
672
- | Stability Score: __/100 |
673
- | Flaky Rate: __% |
674
- | |
675
- +-------------------------------------------------------------+
676
- ```
677
-
678
- **DO NOT proceed to Phase 4 until ALL fields are filled.**
679
-
680
- ---
681
-
682
- ## PHASE 4: Spawn Conditional Agents (PARALLEL BATCH 2)
683
-
684
- ### ENFORCEMENT: NO SKIPPING CONDITIONAL AGENTS
685
-
686
- ```
687
- +-------------------------------------------------------------+
688
- | IF A FLAG IS TRUE, YOU MUST SPAWN THAT AGENT |
689
- | |
690
- | HAS_SECURITY_PIPELINE = TRUE -> MUST spawn qe-security-scanner |
691
- | HAS_PERFORMANCE_PIPELINE = TRUE -> MUST spawn qe-chaos-engineer |
692
- | HAS_INFRA_CHANGE = TRUE -> MUST spawn qe-coverage-specialist|
693
- | HAS_MIDDLEWARE = TRUE -> MUST spawn qe-middleware-validator|
694
- | HAS_SAP_INTEGRATION = TRUE -> MUST spawn qe-soap-tester |
695
- | HAS_AUTHORIZATION = TRUE -> MUST spawn qe-sod-analyzer |
696
- | |
697
- | Skipping a flagged agent is a FAILURE of this skill. |
698
- +-------------------------------------------------------------+
699
- ```
700
-
701
- ### Conditional Domain Mapping
702
-
703
- | Flag | Agent | Domain | MCP Tool |
704
- |------|-------|--------|----------|
705
- | HAS_SECURITY_PIPELINE | qe-security-scanner | security-compliance | `security_scan_comprehensive` |
706
- | HAS_PERFORMANCE_PIPELINE | qe-chaos-engineer | chaos-resilience | `performance_benchmark` |
707
- | HAS_INFRA_CHANGE | qe-coverage-specialist | coverage-analysis | `coverage_analyze_sublinear` |
708
- | HAS_MIDDLEWARE | qe-middleware-validator | enterprise-integration | `task_orchestrate` |
709
- | HAS_SAP_INTEGRATION | qe-soap-tester | enterprise-integration | `task_orchestrate` |
710
- | HAS_AUTHORIZATION | qe-sod-analyzer | enterprise-integration | `task_orchestrate` |
711
-
712
- ### Decision Tree
713
-
714
- ```
715
- IF HAS_SECURITY_PIPELINE == FALSE AND HAS_PERFORMANCE_PIPELINE == FALSE AND HAS_INFRA_CHANGE == FALSE AND HAS_MIDDLEWARE == FALSE AND HAS_SAP_INTEGRATION == FALSE AND HAS_AUTHORIZATION == FALSE:
716
- -> Skip to Phase 5 (no conditional agents needed)
717
- -> State: "No conditional agents needed based on pipeline analysis"
718
-
719
- ELSE:
720
- -> Spawn ALL applicable agents in ONE message
721
- -> Count how many you're spawning: __
722
- ```
723
-
724
- ### IF HAS_SECURITY_PIPELINE: Security Scanner (MANDATORY WHEN FLAGGED)
725
-
726
- ```
727
- Task({
728
- description: "CI/CD security pipeline validation",
729
- prompt: `You are qe-security-scanner. Your output quality is being audited.
730
-
731
- ## PURPOSE
732
-
733
- Validate security gate results in the CI/CD pipeline. Analyze SAST/DAST outputs,
734
- dependency audit results, container scan findings, and secrets detection results.
735
-
736
- ## PIPELINE SECURITY DATA
737
-
738
- === SECURITY SCAN RESULTS START ===
739
- [PASTE SAST/DAST/dependency audit results]
740
- === SECURITY SCAN RESULTS END ===
741
-
742
- === DEPENDENCY AUDIT START ===
743
- [PASTE npm audit / pip audit / snyk results]
744
- === DEPENDENCY AUDIT END ===
745
-
746
- === CONTAINER SCAN (if applicable) START ===
747
- [PASTE container image scan results]
748
- === CONTAINER SCAN END ===
749
-
750
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
751
-
752
- ### 1. Security Gate Status
753
-
754
- | Security Gate | Status | Findings | Severity |
755
- |--------------|--------|----------|----------|
756
- | SAST Scan | Pass/Fail | X findings | Critical/High/Medium/Low |
757
- | DAST Scan | Pass/Fail/N-A | X findings | Critical/High/Medium/Low |
758
- | Dependency Audit | Pass/Fail | X vulnerabilities | Critical/High/Medium/Low |
759
- | Container Scan | Pass/Fail/N-A | X findings | Critical/High/Medium/Low |
760
- | Secrets Detection | Pass/Fail | X findings | Critical/High/Medium/Low |
761
- | License Compliance | Pass/Fail | X violations | Critical/High/Medium/Low |
762
-
763
- ### 2. Vulnerability Inventory (from pipeline scans)
764
-
765
- | Vuln ID | Source | Type | Severity | CVSS | Remediation | Status |
766
- |---------|--------|------|----------|------|-------------|--------|
767
- | V001 | SAST/DAST/Dep | [type] | Critical/High | X.X | [fix] | New/Known/Accepted |
768
-
769
- ### 3. Dependency Risk Assessment
770
-
771
- | Dependency | Version | Known CVEs | Risk | Upgrade Path |
772
- |------------|---------|------------|------|-------------|
773
- | pkg-name | X.Y.Z | CVE-XXXX-XXXXX | Critical/High | X.Y.Z+ |
774
-
775
- ### 4. Security Score
776
-
777
- | Dimension | Score (0-10) | Notes |
778
- |-----------|-------------|-------|
779
- | SAST compliance | X/10 | ... |
780
- | Dependency health | X/10 | ... |
781
- | Container security | X/10 | ... |
782
- | Secrets hygiene | X/10 | ... |
783
- | License compliance | X/10 | ... |
784
-
785
- **SECURITY PIPELINE SCORE: X/50**
786
-
787
- **MINIMUM: Evaluate all 6 security gates and inventory all vulnerabilities found.**
788
-
789
- ## OUTPUT FORMAT
790
-
791
- Save to: ${OUTPUT_FOLDER}/05-security-pipeline.md
792
- Use the Write tool to save BEFORE completing.`,
793
- subagent_type: "qe-security-scanner",
794
- run_in_background: true
795
- })
796
- ```
797
-
798
- ### IF HAS_PERFORMANCE_PIPELINE: Chaos Engineer (MANDATORY WHEN FLAGGED)
799
-
800
- ```
801
- Task({
802
- description: "Performance pipeline validation and resilience assessment",
803
- prompt: `You are qe-chaos-engineer. Your output quality is being audited.
804
-
805
- ## PURPOSE
806
-
807
- Validate performance test results in the CI/CD pipeline. Analyze load test output,
808
- latency baselines, throughput metrics, and resilience test results.
809
-
810
- ## PERFORMANCE PIPELINE DATA
811
-
812
- === PERFORMANCE TEST RESULTS START ===
813
- [PASTE load test / benchmark results]
814
- === PERFORMANCE TEST RESULTS END ===
815
-
816
- === BASELINE METRICS (if available) START ===
817
- [PASTE previous performance baselines]
818
- === BASELINE METRICS END ===
819
-
820
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
821
-
822
- ### 1. Performance Gate Assessment
823
-
824
- | Gate | Metric | Value | Baseline | Delta | Status |
825
- |------|--------|-------|----------|-------|--------|
826
- | Response Time (p50) | Xs | Xs | +/-X% | PASS/WARN/FAIL |
827
- | Response Time (p95) | Xs | Xs | +/-X% | PASS/WARN/FAIL |
828
- | Response Time (p99) | Xs | Xs | +/-X% | PASS/WARN/FAIL |
829
- | Throughput (RPS) | X | X | +/-X% | PASS/WARN/FAIL |
830
- | Error Rate | X% | X% | +/-X% | PASS/WARN/FAIL |
831
- | Memory Usage | X MB | X MB | +/-X% | PASS/WARN/FAIL |
832
-
833
- ### 2. Performance Regression Detection
834
-
835
- | Endpoint/Feature | Before | After | Regression? | Severity |
836
- |-----------------|--------|-------|-------------|----------|
837
- | GET /api/... | Xms | Xms | Yes/No | Critical/High/Medium |
838
-
839
- ### 3. Resource Consumption Analysis
840
-
841
- | Resource | Peak Usage | Limit | Utilization | Risk |
842
- |----------|-----------|-------|-------------|------|
843
- | CPU | X% | X% | X% | High/Medium/Low |
844
- | Memory | X MB | X MB | X% | High/Medium/Low |
845
- | Disk I/O | X MB/s | X MB/s | X% | High/Medium/Low |
846
- | Network | X MB/s | X MB/s | X% | High/Medium/Low |
847
-
848
- ### 4. Resilience Assessment
849
-
850
- | Scenario | Result | Recovery Time | Status |
851
- |----------|--------|--------------|--------|
852
- | High load (2x baseline) | Pass/Fail | Xs | PASS/FAIL |
853
- | Dependency timeout | Pass/Fail | Xs | PASS/FAIL |
854
- | Memory pressure | Pass/Fail | Xs | PASS/FAIL |
855
- | Connection pool exhaustion | Pass/Fail/N-A | Xs | PASS/FAIL/N-A |
856
-
857
- ### 5. Performance Score
858
-
859
- | Dimension | Score (0-10) | Notes |
860
- |-----------|-------------|-------|
861
- | Latency compliance | X/10 | ... |
862
- | Throughput stability | X/10 | ... |
863
- | Resource efficiency | X/10 | ... |
864
- | Resilience | X/10 | ... |
865
-
866
- **PERFORMANCE PIPELINE SCORE: X/40**
867
-
868
- **MINIMUM: Evaluate all 6 performance gates and detect any regressions.**
869
-
870
- ## OUTPUT FORMAT
871
-
872
- Save to: ${OUTPUT_FOLDER}/06-performance-pipeline.md
873
- Use the Write tool to save BEFORE completing.`,
874
- subagent_type: "qe-chaos-engineer",
875
- run_in_background: true
876
- })
877
- ```
878
-
879
- ### IF HAS_INFRA_CHANGE: Coverage Specialist (MANDATORY WHEN FLAGGED)
880
-
881
- ```
882
- Task({
883
- description: "Infrastructure change coverage and impact analysis",
884
- prompt: `You are qe-coverage-specialist. Your output quality is being audited.
885
-
886
- ## PURPOSE
887
-
888
- Analyze coverage impact of infrastructure changes. Validate that infrastructure
889
- modifications are properly tested, configuration changes are covered, and
890
- deployment artifacts are verified.
891
-
892
- ## INFRASTRUCTURE CHANGE DATA
893
-
894
- === INFRA CHANGES START ===
895
- [PASTE infrastructure file diffs - Dockerfiles, CI configs, k8s manifests, etc.]
896
- === INFRA CHANGES END ===
897
-
898
- === TEST RESULTS FOR INFRA START ===
899
- [PASTE any infrastructure test results - smoke tests, config validation, etc.]
900
- === TEST RESULTS END ===
901
-
902
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
903
-
904
- ### 1. Infrastructure Change Inventory
905
-
906
- | File | Change Type | Risk | Test Coverage |
907
- |------|-----------|------|---------------|
908
- | Dockerfile | Modified/New | High/Medium/Low | Tested/Untested |
909
- | .github/workflows/... | Modified/New | High/Medium/Low | Tested/Untested |
910
- | k8s/deployment.yaml | Modified/New | High/Medium/Low | Tested/Untested |
911
- | terraform/... | Modified/New | High/Medium/Low | Tested/Untested |
912
-
913
- ### 2. Configuration Drift Analysis
914
-
915
- | Config Parameter | Previous | New | Impact | Verified |
916
- |-----------------|----------|-----|--------|----------|
917
- | env_var | old_value | new_value | High/Medium/Low | Yes/No |
918
- | resource_limit | old | new | High/Medium/Low | Yes/No |
919
-
920
- ### 3. Deployment Artifact Verification
921
-
922
- | Artifact | Status | Size Delta | Integrity Check |
923
- |----------|--------|-----------|-----------------|
924
- | Container image | Built/Failed | +/-X MB | Pass/Fail |
925
- | Bundle | Built/Failed | +/-X KB | Pass/Fail |
926
- | Migration script | Valid/Invalid | N/A | Pass/Fail |
927
-
928
- ### 4. Infrastructure Test Coverage
929
-
930
- | Test Type | Count | Status | Coverage |
931
- |-----------|-------|--------|----------|
932
- | Smoke tests | X | Pass/Fail | X% of changes |
933
- | Config validation | X | Pass/Fail | X% of changes |
934
- | Integration tests | X | Pass/Fail | X% of changes |
935
- | Deployment dry-run | X | Pass/Fail | X% of changes |
936
-
937
- ### 5. Infrastructure Risk Score
938
-
939
- | Dimension | Score (0-10) | Notes |
940
- |-----------|-------------|-------|
941
- | Change scope | X/10 | ... |
942
- | Test coverage | X/10 | ... |
943
- | Rollback capability | X/10 | ... |
944
- | Configuration safety | X/10 | ... |
945
-
946
- **INFRASTRUCTURE COVERAGE SCORE: X/40**
947
-
948
- **MINIMUM: Inventory all infrastructure changes and assess test coverage for each.**
949
-
950
- ## OUTPUT FORMAT
951
-
952
- Save to: ${OUTPUT_FOLDER}/07-infrastructure-coverage.md
953
- Use the Write tool to save BEFORE completing.`,
954
- subagent_type: "qe-coverage-specialist",
955
- run_in_background: true
956
- })
957
- ```
958
-
959
- ### IF HAS_MIDDLEWARE: Middleware Validator (MANDATORY WHEN FLAGGED)
960
-
961
- ```
962
- Task({
963
- description: "Middleware and message broker pipeline verification",
964
- prompt: `You are qe-middleware-validator. Your output quality is being audited.
965
-
966
- ## PURPOSE
967
-
968
- Validate middleware and message broker components in the CI/CD pipeline.
969
- Analyze message flow test results, broker health checks, queue metrics,
970
- and integration test outcomes for middleware components.
971
-
972
- ## PIPELINE ARTIFACTS
973
-
974
- === MIDDLEWARE TEST RESULTS START ===
975
- [PASTE middleware integration test results, broker health checks, queue metrics]
976
- === MIDDLEWARE TEST RESULTS END ===
977
-
978
- === MIDDLEWARE CONFIG CHANGES START ===
979
- [PASTE middleware configuration diffs - broker configs, queue definitions, routing rules]
980
- === MIDDLEWARE CONFIG CHANGES END ===
981
-
982
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
983
-
984
- ### 1. Middleware Component Inventory
985
-
986
- | Component | Type | Protocol | Pipeline Status | Test Coverage |
987
- |-----------|------|----------|-----------------|---------------|
988
- | [name] | Queue/Topic/Exchange/Gateway | AMQP/Kafka/JMS/HTTP | Healthy/Degraded/Failed | [%] |
989
-
990
- ### 2. Message Flow Test Results
991
-
992
- | Flow | Producer | Consumer | Test Status | Latency | Throughput | Errors |
993
- |------|----------|----------|-------------|---------|------------|--------|
994
- | [name] | [source] | [target] | Pass/Fail | [ms] | [msg/s] | [count] |
995
-
996
- ### 3. Broker Health Assessment
997
-
998
- | Metric | Current | Threshold | Status |
999
- |--------|---------|-----------|--------|
1000
- | Queue depth | [value] | [max] | PASS/FAIL |
1001
- | Consumer lag | [value] | [max] | PASS/FAIL |
1002
- | Dead letter count | [value] | 0 | PASS/FAIL |
1003
- | Connection pool | [value] | [max] | PASS/FAIL |
1004
- | Memory usage | [value] | [max] | PASS/FAIL |
1005
-
1006
- ### 4. Configuration Change Impact
1007
-
1008
- | Config Change | Risk | Backward Compatible | Rollback Plan | Verified |
1009
- |---------------|------|---------------------|---------------|----------|
1010
- | [change] | High/Medium/Low | Yes/No | [plan] | Yes/No |
1011
-
1012
- ### 5. Recommendations
1013
-
1014
- | Priority | Action | Impact | Effort |
1015
- |----------|--------|--------|--------|
1016
- | P0 | [critical middleware pipeline issues] | [what risk] | [effort] |
1017
- | P1 | [important improvements] | [what risk] | [effort] |
1018
-
1019
- **MIDDLEWARE PIPELINE SCORE: X/50**
1020
-
1021
- ## OUTPUT FORMAT
1022
-
1023
- Save to: $\{OUTPUT_FOLDER}/10-middleware-pipeline.md
1024
- Use the Write tool to save BEFORE completing.`,
1025
- subagent_type: "qe-middleware-validator",
1026
- run_in_background: true
1027
- })
1028
- ```
1029
-
1030
- ### IF HAS_SAP_INTEGRATION: SOAP Tester (MANDATORY WHEN FLAGGED)
1031
-
1032
- ```
1033
- Task({
1034
- description: "SAP SOAP service and integration pipeline verification",
1035
- prompt: `You are qe-soap-tester. Your output quality is being audited.
1036
-
1037
- ## PURPOSE
1038
-
1039
- Validate SAP SOAP services and integration points in the CI/CD pipeline.
1040
- Analyze WSDL contracts, SOAP message validation results, SAP connector
1041
- test outcomes, and integration gateway health.
1042
-
1043
- ## PIPELINE ARTIFACTS
1044
-
1045
- === SAP INTEGRATION TEST RESULTS START ===
1046
- [PASTE SAP integration test results, SOAP service tests, connector health checks]
1047
- === SAP INTEGRATION TEST RESULTS END ===
1048
-
1049
- === SAP CONFIG CHANGES START ===
1050
- [PASTE SAP configuration diffs - WSDL changes, connector configs, endpoint changes]
1051
- === SAP CONFIG CHANGES END ===
1052
-
1053
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1054
-
1055
- ### 1. SAP Service Inventory
1056
-
1057
- | Service | Type | Endpoint | WSDL Version | Pipeline Status | Test Coverage |
1058
- |---------|------|----------|-------------|-----------------|---------------|
1059
- | [name] | SOAP/OData/RFC | [url] | [version] | Healthy/Failed | [%] |
1060
-
1061
- ### 2. SOAP Contract Validation
1062
-
1063
- | Contract | WSDL Change | Backward Compatible | Breaking Changes | Schema Valid |
1064
- |----------|-------------|---------------------|------------------|-------------|
1065
- | [service] | Yes/No | Yes/No | [list] | Yes/No |
1066
-
1067
- ### 3. Integration Gateway Health
1068
-
1069
- | Gateway | Status | Response Time | Error Rate | Throughput | Connection Pool |
1070
- |---------|--------|---------------|------------|------------|-----------------|
1071
- | [name] | Up/Down | [ms] | [%] | [req/s] | [used/max] |
1072
-
1073
- ### 4. SAP Connector Test Results
1074
-
1075
- | Connector | Test Type | Status | Messages Processed | Errors | Data Integrity |
1076
- |-----------|-----------|--------|-------------------|--------|----------------|
1077
- | [name] | End-to-end/Unit/Contract | Pass/Fail | [count] | [count] | Pass/Fail |
1078
-
1079
- ### 5. Recommendations
1080
-
1081
- | Priority | Action | Impact | Effort |
1082
- |----------|--------|--------|--------|
1083
- | P0 | [critical SAP pipeline issues] | [what risk] | [effort] |
1084
- | P1 | [important improvements] | [what risk] | [effort] |
1085
-
1086
- **SAP PIPELINE SCORE: X/50**
1087
-
1088
- ## OUTPUT FORMAT
1089
-
1090
- Save to: $\{OUTPUT_FOLDER}/11-sap-pipeline.md
1091
- Use the Write tool to save BEFORE completing.`,
1092
- subagent_type: "qe-soap-tester",
1093
- run_in_background: true
1094
- })
1095
- ```
1096
-
1097
- ### IF HAS_AUTHORIZATION: SoD Analyzer (MANDATORY WHEN FLAGGED)
1098
-
1099
- ```
1100
- Task({
1101
- description: "Segregation of duties and authorization verification in pipeline",
1102
- prompt: `You are qe-sod-analyzer. Your output quality is being audited.
1103
-
1104
- ## PURPOSE
1105
-
1106
- Validate segregation of duties and authorization controls in the CI/CD pipeline.
1107
- Analyze role-based access changes, permission matrix diffs, SoD policy
1108
- compliance, and access control test results.
1109
-
1110
- ## PIPELINE ARTIFACTS
1111
-
1112
- === AUTHORIZATION TEST RESULTS START ===
1113
- [PASTE authorization test results, access control tests, SoD compliance checks]
1114
- === AUTHORIZATION TEST RESULTS END ===
1115
-
1116
- === AUTHORIZATION CONFIG CHANGES START ===
1117
- [PASTE authorization configuration diffs - role definitions, permission matrices, policies]
1118
- === AUTHORIZATION CONFIG CHANGES END ===
1119
-
1120
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1121
-
1122
- ### 1. Authorization Change Inventory
1123
-
1124
- | Change | Type | Scope | Risk | Compliance Impact |
1125
- |--------|------|-------|------|-------------------|
1126
- | [change] | Role/Permission/Policy | [scope] | Critical/High/Medium/Low | [impact] |
1127
-
1128
- ### 2. SoD Compliance Verification
1129
-
1130
- | Policy | Status | Violations Found | New Violations | Remediated |
1131
- |--------|--------|------------------|----------------|------------|
1132
- | [policy] | Compliant/Non-compliant | [count] | [count] | [count] |
1133
-
1134
- ### 3. Role Change Impact Analysis
1135
-
1136
- | Role | Changes | Users Affected | Privilege Direction | SoD Check | Approved |
1137
- |------|---------|---------------|---------------------|-----------|----------|
1138
- | [role] | [changes] | [count] | Escalation/Reduction/Neutral | Pass/Fail | Yes/No |
1139
-
1140
- ### 4. Access Control Test Results
1141
-
1142
- | Test Type | Tests Run | Passed | Failed | Coverage |
1143
- |-----------|-----------|--------|--------|----------|
1144
- | Positive access | [count] | [count] | [count] | [%] |
1145
- | Negative access | [count] | [count] | [count] | [%] |
1146
- | Cross-role | [count] | [count] | [count] | [%] |
1147
- | Privilege escalation | [count] | [count] | [count] | [%] |
1148
-
1149
- ### 5. Recommendations
1150
-
1151
- | Priority | Action | Impact | Effort |
1152
- |----------|--------|--------|--------|
1153
- | P0 | [critical authorization pipeline issues] | [what risk] | [effort] |
1154
- | P1 | [important improvements] | [what risk] | [effort] |
1155
-
1156
- **AUTHORIZATION PIPELINE SCORE: X/50**
1157
-
1158
- ## OUTPUT FORMAT
1159
-
1160
- Save to: $\{OUTPUT_FOLDER}/12-sod-pipeline.md
1161
- Use the Write tool to save BEFORE completing.`,
1162
- subagent_type: "qe-sod-analyzer",
1163
- run_in_background: true
1164
- })
1165
- ```
1166
-
1167
- ### Agent Count Validation
1168
-
1169
- **Before proceeding, verify agent count:**
1170
-
1171
- ```
1172
- +-------------------------------------------------------------+
1173
- | AGENT COUNT VALIDATION |
1174
- +-------------------------------------------------------------+
1175
- | |
1176
- | CORE AGENTS (ALWAYS 3): |
1177
- | [ ] qe-quality-gate - SPAWNED? [Y/N] |
1178
- | [ ] qe-regression-analyzer - SPAWNED? [Y/N] |
1179
- | [ ] qe-flaky-hunter - SPAWNED? [Y/N] |
1180
- | |
1181
- | CONDITIONAL AGENTS (based on flags): |
1182
- | [ ] qe-security-scanner - SPAWNED? [Y/N] (HAS_SEC_PIPE) |
1183
- | [ ] qe-chaos-engineer - SPAWNED? [Y/N] (HAS_PERF_PIPE) |
1184
- | [ ] qe-coverage-specialist - SPAWNED? [Y/N] (HAS_INFRA) |
1185
- | [ ] qe-middleware-validator - SPAWNED? [Y/N] (HAS_MIDDLEWARE) |
1186
- | [ ] qe-soap-tester - SPAWNED? [Y/N] (HAS_SAP_INTEG) |
1187
- | [ ] qe-sod-analyzer - SPAWNED? [Y/N] (HAS_AUTHORIZATION) |
1188
- | |
1189
- | VALIDATION: |
1190
- | Expected agents: [3 + count of TRUE flags] |
1191
- | Actual spawned: [count] |
1192
- | Status: [PASS/FAIL] |
1193
- | |
1194
- | If ACTUAL < EXPECTED, you have FAILED. Spawn missing |
1195
- | agents before proceeding. |
1196
- | |
1197
- +-------------------------------------------------------------+
1198
- ```
1199
-
1200
- **DO NOT proceed if validation FAILS.**
1201
-
1202
- ### Post-Spawn Confirmation (If Applicable)
1203
-
1204
- ```
1205
- I've launched [N] conditional agent(s) in parallel:
1206
-
1207
- [IF HAS_SECURITY_PIPELINE] qe-security-scanner [Domain: security-compliance]
1208
- - SAST/DAST validation, dependency audit, container scan
1209
- [IF HAS_PERFORMANCE_PIPELINE] qe-chaos-engineer [Domain: chaos-resilience]
1210
- - Performance regression detection, resource analysis, resilience
1211
- [IF HAS_INFRA_CHANGE] qe-coverage-specialist [Domain: coverage-analysis]
1212
- - Infrastructure change coverage, config drift, artifact verification
1213
- [IF HAS_MIDDLEWARE] qe-middleware-validator [Domain: enterprise-integration]
1214
- - Middleware pipeline verification, broker health, message flow testing
1215
- [IF HAS_SAP_INTEGRATION] qe-soap-tester [Domain: enterprise-integration]
1216
- - SAP SOAP service validation, WSDL contracts, integration gateway health
1217
- [IF HAS_AUTHORIZATION] qe-sod-analyzer [Domain: enterprise-integration]
1218
- - SoD compliance verification, role change impact, access control testing
1219
-
1220
- WAITING for conditional agents to complete...
1221
- ```
108
+ - Omitting report sections or using placeholder text
1222
109
 
1223
110
  ---
1224
111
 
1225
- ## PHASE 5: Synthesize Results & Determine Recommendation
1226
-
1227
- ### ENFORCEMENT: EXACT DECISION LOGIC
1228
-
1229
- **You MUST apply this logic EXACTLY. No interpretation.**
1230
-
1231
- ```
1232
- STEP 1: Derive composite metrics
1233
- -----------------------------------------------------------
1234
- qualityGatesPassed = (qualityGateStatus == "PASSED")
1235
- testPassRate = testPassRate from qe-quality-gate
1236
- regressionRisk = regressionRisk from qe-regression-analyzer (0-50 scale)
1237
- flakyRate = flakyRate from qe-flaky-hunter
1238
- criticalFlaky = criticalFlaky from qe-flaky-hunter
1239
- failedTests = failedTests from qe-quality-gate
1240
- securityFindings = (critical + high severity findings from security, if ran)
1241
- performanceRegressions = (count of regressions from chaos engineer, if ran)
1242
-
1243
- STEP 2: Check BLOCK conditions (ANY triggers BLOCK)
1244
- -----------------------------------------------------------
1245
- IF qualityGatesPassed == FALSE -> BLOCK ("Quality gates failed")
1246
- IF testPassRate < 95 -> BLOCK ("Test pass rate critically low")
1247
- IF failedTests > 0 AND critical -> BLOCK ("Critical test failures")
1248
- IF regressionRisk > 40 -> BLOCK ("Regression risk too high")
1249
- IF securityFindings > 0 (critical) -> BLOCK ("Critical security vulnerabilities")
1250
-
1251
- STEP 3: Check RELEASE conditions (ALL required for RELEASE)
1252
- -----------------------------------------------------------
1253
- IF qualityGatesPassed == TRUE
1254
- AND testPassRate >= 99
1255
- AND regressionRisk <= 15
1256
- AND flakyRate <= 2
1257
- AND criticalFlaky == 0
1258
- AND failedTests == 0
1259
- AND securityFindings == 0 -> RELEASE
1260
-
1261
- STEP 4: Default
1262
- -----------------------------------------------------------
1263
- ELSE -> REMEDIATE
1264
- ```
1265
-
1266
- ### Decision Recording
112
+ ## Step Execution Protocol
1267
113
 
1268
- ```
1269
- METRICS:
1270
- - qualityGatesPassed = TRUE/FALSE
1271
- - testPassRate = __%
1272
- - regressionRisk = __/50
1273
- - flakyRate = __%
1274
- - criticalFlaky = __
1275
- - failedTests = __
1276
- - securityFindings = __ (if applicable)
1277
- - performanceRegressions = __ (if applicable)
114
+ This skill uses a micro-file step architecture. Each step is a self-contained file
115
+ loaded one at a time to avoid "lost in the middle" context degradation.
1278
116
 
1279
- BLOCK CHECK:
1280
- - qualityGatesPassed == FALSE? __ (YES/NO)
1281
- - testPassRate < 95? __ (YES/NO)
1282
- - critical test failures? __ (YES/NO)
1283
- - regressionRisk > 40? __ (YES/NO)
1284
- - critical security findings? __ (YES/NO)
117
+ **Execute steps sequentially by reading each step file with the Read tool.**
1285
118
 
1286
- RELEASE CHECK (only if no BLOCK triggered):
1287
- - qualityGatesPassed == TRUE? __ (YES/NO)
1288
- - testPassRate >= 99? __ (YES/NO)
1289
- - regressionRisk <= 15? __ (YES/NO)
1290
- - flakyRate <= 2? __ (YES/NO)
1291
- - criticalFlaky == 0? __ (YES/NO)
1292
- - failedTests == 0? __ (YES/NO)
1293
- - securityFindings == 0? __ (YES/NO)
119
+ ### Steps
1294
120
 
1295
- FINAL RECOMMENDATION: [RELEASE / REMEDIATE / BLOCK]
1296
- REASON: ___
1297
- ```
121
+ 1. **Flag Detection** -- `steps/01-flag-detection.md` -- Scan pipeline artifacts, detect all 6 flags
122
+ 2. **Core Agents** -- `steps/02-core-agents.md` -- Spawn qe-quality-gate, qe-regression-analyzer, qe-flaky-hunter in parallel
123
+ 3. **Batch 1 Results** -- `steps/03-batch1-results.md` -- Wait for core agents, extract all metrics
124
+ 4. **Conditional Agents** -- `steps/04-conditional-agents.md` -- Spawn flagged conditional agents in parallel
125
+ 5. **Decision Synthesis** -- `steps/05-decision-synthesis.md` -- Apply RELEASE/REMEDIATE/BLOCK logic
126
+ 6. **Report Generation** -- `steps/06-report-generation.md` -- Generate executive summary and full report
127
+ 7. **Learning Persistence** -- `steps/07-learning-persistence.md` -- Store findings to memory, save persistence record
128
+ 8. **Deployment Advisor** -- `steps/08-deployment-advisor.md` -- Run qe-deployment-advisor analysis on all pipeline data
129
+ 9. **Final Output** -- `steps/09-final-output.md` -- Display completion summary with all scores
1298
130
 
1299
- ### Remediate Recommendations
131
+ ### Execution Instructions
1300
132
 
1301
- If recommendation is REMEDIATE, provide specific remediation steps:
133
+ 1. Use the Read tool to load the current step file (e.g., `Read({ file_path: ".claude/skills/qcsd-cicd-swarm/steps/01-flag-detection.md" })`)
134
+ 2. Execute the step's instructions completely
135
+ 3. Verify all success criteria are met before proceeding
136
+ 4. Pass the step's output as context to the next step
137
+ 5. If a step fails, halt and report the failure point -- do not skip ahead
1302
138
 
1303
- | Issue | Current Value | Required Value | Owner | Action |
1304
- |-------|--------------|----------------|-------|--------|
1305
- | ... | ... | ... | [who] | [what to do] |
139
+ ### Resume Support
1306
140
 
1307
- If recommendation is BLOCK, provide mandatory fixes:
1308
-
1309
- | Fix | Priority | Effort | Must Complete Before |
1310
- |-----|----------|--------|---------------------|
1311
- | ... | P0 | [scope] | [release can proceed] |
1312
-
1313
- ---
1314
-
1315
- ## PHASE 6: Generate Verification Report
1316
-
1317
- ### ENFORCEMENT: COMPLETE REPORT STRUCTURE
1318
-
1319
- **ALL sections below are MANDATORY. No abbreviations.**
1320
-
1321
- ```markdown
1322
- # QCSD CI/CD Verification Report: [Feature/Release Name]
1323
-
1324
- **Generated**: [Date/Time]
1325
- **Recommendation**: [RELEASE / REMEDIATE / BLOCK]
1326
- **Agents Executed**: [List all agents that ran]
1327
- **Parallel Batches**: [2 or 3 depending on conditional agents]
1328
- **Baseline Ref**: [BASELINE_REF value]
1329
- **Deploy Target**: [DEPLOY_TARGET value or "Not specified"]
1330
-
1331
- ---
1332
-
1333
- ## Executive Summary
1334
-
1335
- | Metric | Value | Threshold | Status |
1336
- |--------|-------|-----------|--------|
1337
- | Quality Gates | X/Y passed | All pass | PASS/FAIL |
1338
- | Test Pass Rate | X% | >= 99% | PASS/WARN/FAIL |
1339
- | Regression Risk | X/50 | <= 15 | PASS/WARN/FAIL |
1340
- | Flaky Rate | X% | <= 2% | PASS/WARN/FAIL |
1341
- | Pipeline Stability | X/100 | >= 90 | PASS/WARN/FAIL |
1342
-
1343
- **Recommendation Rationale**: [1-2 sentences explaining why RELEASE/REMEDIATE/BLOCK]
1344
-
1345
- ---
1346
-
1347
- ## Quality Gate Analysis
1348
-
1349
- [EMBED or LINK the full report from qe-quality-gate]
1350
-
1351
- ### Gate Summary
1352
-
1353
- | Gate | Status |
1354
- |------|--------|
1355
- [All 8 quality gates from qe-quality-gate]
1356
-
1357
- ### Failed Test Details
1358
- [Key findings from agent output]
1359
-
1360
- ---
1361
-
1362
- ## Regression Analysis
1363
-
1364
- [EMBED or LINK the full report from qe-regression-analyzer]
1365
-
1366
- ### Impact Summary
1367
-
1368
- | Dimension | Value | Risk |
1369
- |-----------|-------|------|
1370
- [Key metrics from agent output]
1371
-
1372
- ### Missing Coverage
1373
- [Gaps identified in changed code]
1374
-
1375
- ---
1376
-
1377
- ## Flaky Test Analysis
1378
-
1379
- [EMBED or LINK the full report from qe-flaky-hunter]
1380
-
1381
- ### Stability Summary
1382
-
1383
- | Metric | Value | Status |
1384
- |--------|-------|--------|
1385
- [Key metrics from agent output]
1386
-
1387
- ### Flaky Tests Identified
1388
- [List from agent output]
141
+ To resume from a specific step: specify `--from-step N` and the orchestrator will
142
+ skip to step N. Ensure you have the required prerequisite data from prior steps.
1389
143
 
1390
144
  ---
1391
145
 
1392
- ## Conditional Analysis
1393
-
1394
- [INCLUDE ONLY IF APPLICABLE - based on which conditional agents ran]
1395
-
1396
- ### Security Pipeline (IF HAS_SECURITY_PIPELINE)
1397
- [Full output from qe-security-scanner]
1398
-
1399
- ### Performance Pipeline (IF HAS_PERFORMANCE_PIPELINE)
1400
- [Full output from qe-chaos-engineer]
146
+ ## Agent Inventory
1401
147
 
1402
- ### Infrastructure Coverage (IF HAS_INFRA_CHANGE)
1403
- [Full output from qe-coverage-specialist]
148
+ | Agent | Type | Domain | Batch |
149
+ |-------|------|--------|-------|
150
+ | qe-quality-gate | Core (always) | quality-assessment | 1 |
151
+ | qe-regression-analyzer | Core (always) | test-execution | 1 |
152
+ | qe-flaky-hunter | Core (always) | test-execution | 1 |
153
+ | qe-security-scanner | Conditional (HAS_SECURITY_PIPELINE) | security-compliance | 2 |
154
+ | qe-chaos-engineer | Conditional (HAS_INFRA_CHANGE) | chaos-resilience | 2 |
155
+ | qe-coverage-specialist | Conditional (HAS_PERFORMANCE_PIPELINE) | coverage-analysis | 2 |
156
+ | qe-middleware-validator | Conditional (HAS_MIDDLEWARE) | enterprise-integration | 2 |
157
+ | qe-soap-tester | Conditional (HAS_SAP_INTEGRATION) | enterprise-integration | 2 |
158
+ | qe-sod-analyzer | Conditional (HAS_AUTHORIZATION) | enterprise-integration | 2 |
159
+ | qe-deployment-advisor | Analysis (always) | quality-assessment | 3 |
1404
160
 
1405
- ### Middleware Pipeline (IF HAS_MIDDLEWARE)
1406
- [Full output from qe-middleware-validator]
1407
-
1408
- ### SAP Pipeline (IF HAS_SAP_INTEGRATION)
1409
- [Full output from qe-soap-tester]
1410
-
1411
- ### Authorization Pipeline (IF HAS_AUTHORIZATION)
1412
- [Full output from qe-sod-analyzer]
161
+ **Total: 10 agents (3 core + 6 conditional + 1 analysis)**
1413
162
 
1414
163
  ---
1415
164
 
1416
- ## Recommended Actions
1417
-
1418
- ### Before Release (P0 - Blockers)
1419
- - [ ] [Action based on findings]
1420
-
1421
- ### Before Next Sprint (P1 - Important)
1422
- - [ ] [Action based on findings]
1423
-
1424
- ### Tech Debt Backlog (P2 - Improvement)
1425
- - [ ] [Action based on findings]
1426
-
1427
- ---
1428
-
1429
- ## Appendix: Agent Outputs
1430
-
1431
- [Link to or embed full outputs from each agent]
1432
-
1433
- ---
1434
-
1435
- *Generated by QCSD CI/CD Swarm v1.0*
1436
- *Execution Model: Task Tool Parallel Swarm*
1437
- ```
1438
-
1439
- Write the executive summary report to:
1440
- `${OUTPUT_FOLDER}/01-executive-summary.md`
1441
-
1442
- ### Report Validation Checklist
1443
-
1444
- Before presenting report:
1445
-
1446
- ```
1447
- +-- Executive Summary table is complete with all 5 metrics
1448
- +-- Recommendation matches decision logic output
1449
- +-- Quality Gate section includes all 8 gate statuses
1450
- +-- Regression section includes blast radius and risk score
1451
- +-- Flaky Test section includes stability score
1452
- +-- Conditional sections included for all spawned agents
1453
- +-- Recommended actions are specific (not generic)
1454
- +-- Report saved to output folder
1455
- ```
1456
-
1457
- **DO NOT present an incomplete report.**
1458
-
1459
- ---
1460
-
1461
- ## PHASE 7: Store Learnings & Persist State
1462
-
1463
- ### ENFORCEMENT: ALWAYS RUN THIS PHASE
1464
-
1465
- ```
1466
- +-------------------------------------------------------------+
1467
- | LEARNING PERSISTENCE MUST ALWAYS EXECUTE |
1468
- | |
1469
- | This is NOT optional. It runs on EVERY verification scan. |
1470
- | It stores findings for cross-phase feedback loops, |
1471
- | historical pipeline quality tracking, and pattern learning. |
1472
- | |
1473
- | DO NOT skip this phase for any reason. |
1474
- | DO NOT treat this as "nice to have". |
1475
- | Enforcement Rule E9 applies. |
1476
- +-------------------------------------------------------------+
1477
- ```
1478
-
1479
- ### Purpose
1480
-
1481
- Store verification findings for:
1482
- - Cross-phase feedback loops (Verification -> next Ideation cycle)
1483
- - Historical pipeline stability tracking across releases
1484
- - Regression risk trend analysis over time
1485
- - Pattern learning for flaky test prediction improvement
1486
-
1487
- ### Auto-Execution Steps (ALL THREE are MANDATORY)
1488
-
1489
- **Step 1: Store verification findings to memory**
1490
-
1491
- You MUST execute this MCP call with actual values from the verification analysis:
1492
-
1493
- ```javascript
1494
- mcp__agentic-qe__memory_store({
1495
- key: `qcsd-cicd-${releaseId}-${Date.now()}`,
1496
- namespace: "qcsd-cicd",
1497
- value: {
1498
- releaseId: releaseId,
1499
- releaseName: releaseName,
1500
- recommendation: recommendation, // RELEASE, REMEDIATE, BLOCK
1501
- metrics: {
1502
- qualityGatesPassed: qualityGatesPassed,
1503
- testPassRate: testPassRate,
1504
- regressionRisk: regressionRisk,
1505
- flakyRate: flakyRate,
1506
- criticalFlaky: criticalFlaky,
1507
- failedTests: failedTests,
1508
- pipelineStability: stabilityScore,
1509
- securityFindings: securityFindings, // if applicable
1510
- performanceRegressions: performanceRegressions // if applicable
1511
- },
1512
- flags: {
1513
- HAS_SECURITY_PIPELINE: HAS_SECURITY_PIPELINE,
1514
- HAS_PERFORMANCE_PIPELINE: HAS_PERFORMANCE_PIPELINE,
1515
- HAS_INFRA_CHANGE: HAS_INFRA_CHANGE,
1516
- HAS_MIDDLEWARE: HAS_MIDDLEWARE,
1517
- HAS_SAP_INTEGRATION: HAS_SAP_INTEGRATION,
1518
- HAS_AUTHORIZATION: HAS_AUTHORIZATION
1519
- },
1520
- agentsInvoked: agentList,
1521
- timestamp: new Date().toISOString()
1522
- }
1523
- })
1524
- ```
1525
-
1526
- **Step 2: Share learnings with learning coordinator**
1527
-
1528
- You MUST execute this MCP call to propagate patterns cross-domain:
1529
-
1530
- ```javascript
1531
- mcp__agentic-qe__memory_share({
1532
- sourceAgentId: "qcsd-cicd-swarm",
1533
- targetAgentIds: ["qe-learning-coordinator", "qe-pattern-learner"],
1534
- knowledgeDomain: "cicd-verification-patterns"
1535
- })
1536
- ```
1537
-
1538
- **Step 3: Save learning persistence record to output folder**
1539
-
1540
- You MUST use the Write tool to save a JSON record of the persisted learnings:
1541
-
1542
- ```
1543
- Save to: ${OUTPUT_FOLDER}/09-learning-persistence.json
1544
-
1545
- Contents:
1546
- {
1547
- "phase": "QCSD-Verification",
1548
- "releaseId": "[release ID]",
1549
- "releaseName": "[release name]",
1550
- "recommendation": "[RELEASE/REMEDIATE/BLOCK]",
1551
- "memoryKey": "qcsd-cicd-[releaseId]-[timestamp]",
1552
- "namespace": "qcsd-cicd",
1553
- "metrics": {
1554
- "qualityGatesPassed": true/false,
1555
- "testPassRate": [0-100],
1556
- "regressionRisk": [0-50],
1557
- "flakyRate": [0-100],
1558
- "criticalFlaky": [N],
1559
- "failedTests": [N],
1560
- "pipelineStability": [0-100],
1561
- "securityFindings": [N or null],
1562
- "performanceRegressions": [N or null]
1563
- },
1564
- "flags": {
1565
- "HAS_SECURITY_PIPELINE": true/false,
1566
- "HAS_PERFORMANCE_PIPELINE": true/false,
1567
- "HAS_INFRA_CHANGE": true/false,
1568
- "HAS_MIDDLEWARE": true/false,
1569
- "HAS_SAP_INTEGRATION": true/false,
1570
- "HAS_AUTHORIZATION": true/false
1571
- },
1572
- "agentsInvoked": ["list", "of", "agents"],
1573
- "crossPhaseSignals": {
1574
- "toProduction": "Release readiness metrics as production monitoring baseline",
1575
- "toIdeation": "Pipeline patterns for future risk assessment"
1576
- },
1577
- "persistedAt": "[ISO timestamp]"
1578
- }
1579
- ```
1580
-
1581
- ### Fallback: CLI Memory Commands
1582
-
1583
- If MCP memory_store tool is unavailable, use CLI instead (STILL MANDATORY):
1584
-
1585
- ```bash
1586
- npx @claude-flow/cli@latest memory store \
1587
- --key "qcsd-cicd-${RELEASE_ID}-$(date +%s)" \
1588
- --value '{"recommendation":"[VALUE]","testPassRate":[N],"regressionRisk":[N],"flakyRate":[N]}' \
1589
- --namespace qcsd-cicd
1590
-
1591
- npx @claude-flow/cli@latest hooks post-task \
1592
- --task-id "qcsd-cicd-${RELEASE_ID}" \
1593
- --success true
1594
- ```
1595
-
1596
- ### Validation Before Proceeding to Phase 8
1597
-
1598
- ```
1599
- +-- Did I execute mcp__agentic-qe__memory_store with actual values? (not placeholders)
1600
- +-- Did I execute mcp__agentic-qe__memory_share to propagate learnings?
1601
- +-- Did I save 09-learning-persistence.json to the output folder?
1602
- +-- Does the JSON contain the correct recommendation from Phase 5?
1603
- +-- Does the JSON contain actual metrics from Phases 2-4?
1604
- +-- Does the JSON contain actual flag values from Phase 1?
1605
- ```
1606
-
1607
- **If ANY validation check fails, DO NOT proceed to Phase 8.**
1608
-
1609
- ### Cross-Phase Signal Consumption
1610
-
1611
- The CI/CD Swarm both consumes and produces signals for other QCSD phases:
1612
-
1613
- ```
1614
- CONSUMES (from other phases):
1615
- +-- Loop 3 (Development): SHIP/CONDITIONAL/HOLD decisions
1616
- | - Code quality metrics guide verification depth
1617
- | - HOLD decisions trigger enhanced scrutiny
1618
- | - Coverage data informs regression risk assessment
1619
- |
1620
- +-- Loop 5 (Pipeline History): Previous verification results
1621
- - Historical flaky test patterns
1622
- - Regression risk baselines
1623
- - Performance benchmarks
1624
-
1625
- PRODUCES (for other phases):
1626
- +-- To Production Phase: Release readiness metrics
1627
- | - Deployment risk score
1628
- | - Known issues and accepted risks
1629
- | - Monitoring recommendations
1630
- |
1631
- +-- To next Ideation Cycle: Pipeline patterns
1632
- - Which areas consistently block releases
1633
- - Flaky test patterns for future risk assessment
1634
- - Infrastructure change risk patterns
1635
- ```
1636
-
1637
- ---
1638
-
1639
- ## PHASE 8: Apply Deployment Advisor (Analysis)
1640
-
1641
- ### ENFORCEMENT: ALWAYS RUN THIS PHASE
1642
-
1643
- ```
1644
- +-------------------------------------------------------------+
1645
- | THE DEPLOYMENT ADVISOR MUST ALWAYS RUN |
1646
- | |
1647
- | This is NOT conditional. It runs on EVERY verification scan.|
1648
- | It synthesizes all pipeline data into a release readiness |
1649
- | assessment with specific deployment recommendations. |
1650
- | |
1651
- | DO NOT skip this phase for any reason. |
1652
- +-------------------------------------------------------------+
1653
- ```
1654
-
1655
- ### Agent Spawn
1656
-
1657
- ```
1658
- Task({
1659
- description: "Deployment readiness advisory and release synthesis",
1660
- prompt: `You are qe-deployment-advisor. Your output quality is being audited.
1661
-
1662
- ## PURPOSE
1663
-
1664
- Synthesize all verification analysis into a deployment readiness assessment.
1665
- This is the final quality signal before the RELEASE/REMEDIATE/BLOCK
1666
- recommendation is delivered to stakeholders.
1667
-
1668
- ## INPUT: PIPELINE METRICS FROM PREVIOUS AGENTS
1669
-
1670
- ### From Quality Gate (02-quality-gate.md):
1671
- [Summarize: gate status, test pass rate, coverage delta, failed tests]
1672
-
1673
- ### From Regression Analyzer (03-regression-analysis.md):
1674
- [Summarize: regression risk, blast radius, missing coverage]
1675
-
1676
- ### From Flaky Hunter (04-flaky-test-analysis.md):
1677
- [Summarize: flaky count, stability score, pipeline stability]
1678
-
1679
- ### From Conditional Agents (if applicable):
1680
- [Summarize: security findings, performance regressions, infra coverage]
1681
-
1682
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
1683
-
1684
- ### 1. Deployment Readiness Matrix
1685
-
1686
- | Dimension | Score (0-10) | Status | Notes |
1687
- |-----------|-------------|--------|-------|
1688
- | Test Confidence | X/10 | Ready/Conditional/Not Ready | [evidence] |
1689
- | Regression Safety | X/10 | Ready/Conditional/Not Ready | [evidence] |
1690
- | Pipeline Stability | X/10 | Ready/Conditional/Not Ready | [evidence] |
1691
- | Security Posture | X/10 | Ready/Conditional/Not Ready | [evidence] |
1692
- | Performance Impact | X/10 | Ready/Conditional/Not Ready | [evidence] |
1693
- | Infrastructure Readiness | X/10 | Ready/Conditional/Not Ready | [evidence] |
1694
-
1695
- **DEPLOYMENT READINESS SCORE: X/60**
1696
-
1697
- ### 2. Risk Register
1698
-
1699
- | Risk ID | Description | Probability | Impact | Mitigation | Status |
1700
- |---------|------------|-------------|--------|------------|--------|
1701
- | R001 | [risk description] | High/Med/Low | High/Med/Low | [mitigation] | Open/Mitigated |
1702
- | R002 | ... | ... | ... | ... | ... |
1703
-
1704
- ### 3. Deployment Recommendation
1705
-
1706
- | Aspect | Recommendation | Rationale |
1707
- |--------|---------------|-----------|
1708
- | Deploy Strategy | Blue-Green/Canary/Rolling/Direct | [why] |
1709
- | Rollback Plan | Automated/Manual/N-A | [how] |
1710
- | Monitoring Focus | [specific metrics to watch] | [why] |
1711
- | Feature Flags | Required/Recommended/Not Needed | [which features] |
1712
- | Canary Percentage | X% (if canary) | [risk-based] |
1713
-
1714
- ### 4. Go/No-Go Checklist
1715
-
1716
- | Criteria | Status | Notes |
1717
- |----------|--------|-------|
1718
- | All quality gates pass | Pass/Fail | ... |
1719
- | No critical test failures | Pass/Fail | ... |
1720
- | Regression risk acceptable | Pass/Fail | ... |
1721
- | No critical security findings | Pass/Fail | ... |
1722
- | Performance within baselines | Pass/Fail | ... |
1723
- | Rollback plan documented | Pass/Fail | ... |
1724
- | Monitoring configured | Pass/Fail | ... |
1725
-
1726
- ### 5. Post-Deployment Monitoring Plan
1727
-
1728
- | Metric | Baseline | Alert Threshold | Check Frequency |
1729
- |--------|----------|----------------|----------------|
1730
- | Error rate | X% | > X% | Every X min |
1731
- | Response time (p95) | Xms | > Xms | Every X min |
1732
- | CPU utilization | X% | > X% | Every X min |
1733
- | Memory usage | X MB | > X MB | Every X min |
1734
- | Active users | X | < X (drop) | Every X min |
1735
-
1736
- **DEPLOYMENT READINESS ASSESSMENT: READY / CONDITIONAL / NOT READY**
1737
-
1738
- ## OUTPUT FORMAT
1739
-
1740
- Save to: ${OUTPUT_FOLDER}/08-deployment-advisory.md
1741
- Use the Write tool to save BEFORE completing.
1742
-
1743
- ## VALIDATION BEFORE SUBMITTING
1744
-
1745
- +-- Did I synthesize findings from ALL previous agents?
1746
- +-- Did I score all 6 readiness dimensions?
1747
- +-- Did I create a risk register?
1748
- +-- Did I provide deployment strategy recommendation?
1749
- +-- Did I complete the go/no-go checklist?
1750
- +-- Did I define post-deployment monitoring plan?
1751
- +-- Did I save the report to the correct output path?`,
1752
- subagent_type: "qe-deployment-advisor",
1753
- run_in_background: true
1754
- })
1755
- ```
1756
-
1757
- ### Wait for Analysis Completion
1758
-
1759
- ```
1760
- +-------------------------------------------------------------+
1761
- | WAIT for qe-deployment-advisor to complete before |
1762
- | proceeding to Phase 9. |
1763
- | |
1764
- | The deployment advisory is the FINAL quality signal of |
1765
- | the CI/CD Swarm - it synthesizes all metrics into |
1766
- | actionable deployment recommendations. |
1767
- +-------------------------------------------------------------+
1768
- ```
1769
-
1770
- ---
1771
-
1772
- ## PHASE 9: Final Output
1773
-
1774
- **At the very end of swarm execution, ALWAYS output this completion summary:**
1775
-
1776
- ```
1777
- +---------------------------------------------------------------------+
1778
- | QCSD CI/CD SWARM COMPLETE |
1779
- +---------------------------------------------------------------------+
1780
- | |
1781
- | Pipeline Verified: [Feature/Release Name] |
1782
- | Reports Generated: [count] |
1783
- | Output Folder: ${OUTPUT_FOLDER} |
1784
- | |
1785
- | VERIFICATION SCORES: |
1786
- | +-- Quality Gate: PASSED/FAILED (X/Y gates) |
1787
- | +-- Test Pass Rate: __% |
1788
- | +-- Regression Risk: __/50 |
1789
- | +-- Flaky Rate: __% |
1790
- | +-- Pipeline Stability: __/100 |
1791
- | +-- Deployment Readiness: __/60 |
1792
- | [IF HAS_SECURITY_PIPELINE] |
1793
- | +-- Security Score: __/50 |
1794
- | [IF HAS_PERFORMANCE_PIPELINE] |
1795
- | +-- Performance Score: __/40 |
1796
- | [IF HAS_INFRA_CHANGE] |
1797
- | +-- Infrastructure Score: __/40 |
1798
- | [IF HAS_MIDDLEWARE] |
1799
- | +-- Middleware Pipeline: __/50 |
1800
- | [IF HAS_SAP_INTEGRATION] |
1801
- | +-- SAP Pipeline: __/50 |
1802
- | [IF HAS_AUTHORIZATION] |
1803
- | +-- Authorization Pipeline: __/50 |
1804
- | |
1805
- | RECOMMENDATION: [RELEASE / REMEDIATE / BLOCK] |
1806
- | REASON: [1-2 sentence rationale] |
1807
- | |
1808
- | DELIVERABLES: |
1809
- | +-- 01-executive-summary.md |
1810
- | +-- 02-quality-gate.md |
1811
- | +-- 03-regression-analysis.md |
1812
- | +-- 04-flaky-test-analysis.md |
1813
- | [IF HAS_SECURITY_PIPELINE] |
1814
- | +-- 05-security-pipeline.md |
1815
- | [IF HAS_PERFORMANCE_PIPELINE] |
1816
- | +-- 06-performance-pipeline.md |
1817
- | [IF HAS_INFRA_CHANGE] |
1818
- | +-- 07-infrastructure-coverage.md |
1819
- | [IF HAS_MIDDLEWARE] |
1820
- | +-- 10-middleware-pipeline.md |
1821
- | [IF HAS_SAP_INTEGRATION] |
1822
- | +-- 11-sap-pipeline.md |
1823
- | [IF HAS_AUTHORIZATION] |
1824
- | +-- 12-sod-pipeline.md |
1825
- | +-- 08-deployment-advisory.md |
1826
- | +-- 09-learning-persistence.json |
1827
- | |
1828
- +---------------------------------------------------------------------+
1829
- ```
1830
-
1831
- **IF recommendation is BLOCK, ALSO output this prominent action box:**
1832
-
1833
- ```
1834
- +---------------------------------------------------------------------+
1835
- | ACTION REQUIRED: PIPELINE BLOCKED - DO NOT RELEASE |
1836
- +---------------------------------------------------------------------+
1837
- | |
1838
- | The following blockers MUST be resolved before release: |
1839
- | |
1840
- | 1. [Blocker 1 with specific remediation] |
1841
- | 2. [Blocker 2 with specific remediation] |
1842
- | 3. [Blocker 3 with specific remediation] |
1843
- | |
1844
- | NEXT STEPS: |
1845
- | - Address all P0 blockers listed above |
1846
- | - Re-run CI/CD pipeline after fixes |
1847
- | - Re-run /qcsd-cicd-swarm after pipeline passes |
1848
- | - Target: 100% test pass, risk <= 15, 0 critical findings |
1849
- | |
1850
- +---------------------------------------------------------------------+
1851
- ```
1852
-
1853
- **IF recommendation is REMEDIATE, output this guidance box:**
1854
-
1855
- ```
1856
- +---------------------------------------------------------------------+
1857
- | REMEDIATE: PIPELINE NEEDS ATTENTION BEFORE RELEASE |
1858
- +---------------------------------------------------------------------+
1859
- | |
1860
- | The pipeline can proceed WITH these remediations: |
1861
- | |
1862
- | 1. [Remediation 1 - must be addressed before release] |
1863
- | 2. [Remediation 2 - must be addressed in follow-up] |
1864
- | |
1865
- | DEPLOYMENT STRATEGY: |
1866
- | - Use canary/blue-green deployment for risk mitigation |
1867
- | - Monitor [specific metrics] post-deployment |
1868
- | - Automated rollback if [conditions] |
1869
- | |
1870
- | RISK ACCEPTANCE: |
1871
- | - Release owner acknowledges remaining risks |
1872
- | - Follow-up issues created for deferred remediations |
1873
- | |
1874
- +---------------------------------------------------------------------+
1875
- ```
1876
-
1877
- **DO NOT end the swarm without displaying the completion summary.**
1878
-
1879
- ---
1880
-
1881
- ## Report Filename Mapping
1882
-
1883
- | Agent | Report Filename | Phase |
1884
- |-------|----------------|-------|
1885
- | qe-quality-gate | `02-quality-gate.md` | Batch 1 |
1886
- | qe-regression-analyzer | `03-regression-analysis.md` | Batch 1 |
1887
- | qe-flaky-hunter | `04-flaky-test-analysis.md` | Batch 1 |
1888
- | qe-security-scanner | `05-security-pipeline.md` | Batch 2 (conditional) |
1889
- | qe-chaos-engineer | `06-performance-pipeline.md` | Batch 2 (conditional) |
1890
- | qe-coverage-specialist | `07-infrastructure-coverage.md` | Batch 2 (conditional) |
1891
- | qe-middleware-validator | `10-middleware-pipeline.md` | Batch 2 (conditional) |
1892
- | qe-soap-tester | `11-sap-pipeline.md` | Batch 2 (conditional) |
1893
- | qe-sod-analyzer | `12-sod-pipeline.md` | Batch 2 (conditional) |
1894
- | qe-deployment-advisor | `08-deployment-advisory.md` | Batch 3 (analysis) |
1895
- | Learning Persistence | `09-learning-persistence.json` | Phase 7 (auto-execute) |
1896
- | Synthesis | `01-executive-summary.md` | Phase 6 |
1897
-
1898
- ---
1899
-
1900
- ## DDD Domain Integration
1901
-
1902
- This swarm operates across **2 primary domains**, **4 conditional domains**,
1903
- and **1 analysis domain**:
1904
-
1905
- ```
1906
- +-----------------------------------------------------------------------------+
1907
- | QCSD CI/CD VERIFICATION - DOMAIN MAP |
1908
- +-----------------------------------------------------------------------------+
1909
- | |
1910
- | PRIMARY DOMAINS (Always Active) |
1911
- | +-------------------------------+ +-------------------------------+ |
1912
- | | quality-assessment | | test-execution | |
1913
- | | --------------------------- | | --------------------------- | |
1914
- | | - qe-quality-gate | | - qe-regression-analyzer | |
1915
- | | (threshold enforcement, | | (change impact, blast | |
1916
- | | pass/fail evaluation) | | radius, regression risk) | |
1917
- | +-------------------------------+ | | |
1918
- | | - qe-flaky-hunter | |
1919
- | | (flaky detection, pipeline | |
1920
- | | stability assessment) | |
1921
- | +-------------------------------+ |
1922
- | |
1923
- | CONDITIONAL DOMAINS (Based on Pipeline Content) |
1924
- | +-----------------------+ +-----------------------+ +------------------+ |
1925
- | | security-compliance | | chaos-resilience | | coverage-analysis| |
1926
- | | ───────────────────── | | ──────────────────── | | ──────────────── | |
1927
- | | qe-security-scanner | | qe-chaos-engineer | | qe-coverage- | |
1928
- | | [IF HAS_SEC_PIPELINE] | | [IF HAS_PERF_PIPE] | | specialist | |
1929
- | | | | | | [IF HAS_INFRA] | |
1930
- | +-----------------------+ +-----------------------+ +------------------+ |
1931
- | |
1932
- | +-----------------------------------------------------------------------+ |
1933
- | | enterprise-integration | |
1934
- | | ----------------------------------------------------------------- | |
1935
- | | - qe-middleware-validator [IF HAS_MIDDLEWARE] | |
1936
- | | - qe-soap-tester [IF HAS_SAP_INTEGRATION] | |
1937
- | | - qe-sod-analyzer [IF HAS_AUTHORIZATION] | |
1938
- | +-----------------------------------------------------------------------+ |
1939
- | |
1940
- | ANALYSIS DOMAIN (Always Active) |
1941
- | +-----------------------------------------------------------------------+ |
1942
- | | quality-assessment | |
1943
- | | ----------------------------------------------------------------- | |
1944
- | | - qe-deployment-advisor (readiness matrix, risk register, go/no-go) | |
1945
- | +-----------------------------------------------------------------------+ |
1946
- | |
1947
- +-----------------------------------------------------------------------------+
1948
- ```
1949
-
1950
- ---
1951
-
1952
- ## Execution Model Options
1953
-
1954
- This skill supports **3 execution models**. Choose based on your environment:
1955
-
1956
- | Model | When to Use | Pros | Cons |
1957
- |-------|-------------|------|------|
1958
- | **Task Tool** (PRIMARY) | Claude Code sessions | Full agent capabilities, parallel execution | Requires Claude Code |
1959
- | **MCP Tools** | MCP server available | Fleet coordination, memory persistence | Requires MCP setup |
1960
- | **CLI** | Terminal/scripts | Works anywhere, scriptable | Sequential only |
1961
-
1962
- ### Quick Start by Model
1963
-
1964
- **Option A: Task Tool (RECOMMENDED)**
1965
- ```
1966
- Just follow the skill phases above - uses Task() calls with run_in_background: true
1967
- ```
1968
-
1969
- **Option B: MCP Tools**
1970
- ```javascript
1971
- // Initialize fleet for Verification domains
1972
- mcp__agentic-qe__fleet_init({
1973
- topology: "hierarchical",
1974
- enabledDomains: ["quality-assessment", "test-execution", "security-compliance", "chaos-resilience", "coverage-analysis"],
1975
- maxAgents: 7
1976
- })
1977
-
1978
- // Orchestrate verification task
1979
- mcp__agentic-qe__task_orchestrate({
1980
- task: "qcsd-cicd-verification",
1981
- strategy: "parallel"
1982
- })
1983
- ```
1984
-
1985
- **Option C: CLI**
1986
- ```bash
1987
- # Initialize coordination
1988
- npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 7
1989
-
1990
- # Route task
1991
- npx @claude-flow/cli@latest hooks pre-task --description "QCSD Verification for [Release]"
1992
-
1993
- # Execute agents
1994
- npx @claude-flow/cli@latest agent spawn --type qe-quality-gate
1995
- npx @claude-flow/cli@latest agent spawn --type qe-regression-analyzer
1996
- npx @claude-flow/cli@latest agent spawn --type qe-flaky-hunter
1997
- ```
1998
-
1999
- ---
2000
-
2001
- ## Quick Reference
2002
-
2003
- ### Enforcement Summary
2004
-
2005
- | Phase | Must Do | Failure Condition |
2006
- |-------|---------|-------------------|
2007
- | 1 | Check ALL 6 flags | Missing flag evaluation |
2008
- | 2 | Spawn ALL 3 core agents in ONE message | Fewer than 3 Task calls |
2009
- | 3 | WAIT for completion | Proceeding before results |
2010
- | 4 | Spawn ALL flagged conditional agents | Skipping a TRUE flag |
2011
- | 5 | Apply EXACT decision logic | Wrong recommendation |
2012
- | 6 | Generate COMPLETE report | Missing sections |
2013
- | 7 | ALWAYS store learnings + save 09-learning-persistence.json | Pattern loss, missing audit trail |
2014
- | 8 | ALWAYS run deployment advisor | Skipping analysis |
2015
- | 9 | Output completion summary | Missing final output |
2016
-
2017
- ### Quality Gate Thresholds
165
+ ## Quality Gate Thresholds
2018
166
 
2019
167
  | Metric | RELEASE | REMEDIATE | BLOCK |
2020
168
  |--------|---------|-----------|-------|
2021
- | Test Pass Rate | >= 99% | 95-98% | < 95% |
2022
- | Regression Risk | <= 15 | 16-40 | > 40 |
2023
- | Flaky Rate | <= 2% | 3-10% | > 10% |
2024
- | Critical Flaky | 0 | 1-3 | > 3 |
2025
- | Security Findings (Critical) | 0 | 0 | > 0 |
2026
-
2027
- ### Domain-to-Agent Mapping
2028
-
2029
- | Domain | Agent | Phase | Batch |
2030
- |--------|-------|-------|-------|
2031
- | quality-assessment | qe-quality-gate | Core | 1 |
2032
- | test-execution | qe-regression-analyzer | Core | 1 |
2033
- | test-execution | qe-flaky-hunter | Core | 1 |
2034
- | security-compliance | qe-security-scanner | Conditional (HAS_SECURITY_PIPELINE) | 2 |
2035
- | chaos-resilience | qe-chaos-engineer | Conditional (HAS_PERFORMANCE_PIPELINE) | 2 |
2036
- | coverage-analysis | qe-coverage-specialist | Conditional (HAS_INFRA_CHANGE) | 2 |
2037
- | enterprise-integration | qe-middleware-validator | Conditional (HAS_MIDDLEWARE) | 2 |
2038
- | enterprise-integration | qe-soap-tester | Conditional (HAS_SAP_INTEGRATION) | 2 |
2039
- | enterprise-integration | qe-sod-analyzer | Conditional (HAS_AUTHORIZATION) | 2 |
2040
- | quality-assessment | qe-deployment-advisor | Analysis (ALWAYS) | 3 |
2041
-
2042
- ### Execution Model Quick Reference
2043
-
2044
- | Model | Initialization | Agent Spawn | Memory Store |
2045
- |-------|---------------|-------------|--------------|
2046
- | **Task Tool** | N/A | `Task({ subagent_type, run_in_background: true })` | N/A (use MCP) |
2047
- | **MCP Tools** | `fleet_init({})` | `task_submit({})` | `memory_store({})` |
2048
- | **CLI** | `swarm init` | `agent spawn` | `memory store` |
2049
-
2050
- ### MCP Tools Quick Reference
2051
-
2052
- ```javascript
2053
- // Initialization
2054
- mcp__agentic-qe__fleet_init({
2055
- topology: "hierarchical",
2056
- enabledDomains: ["quality-assessment", "test-execution", "security-compliance", "chaos-resilience", "coverage-analysis"],
2057
- maxAgents: 7
2058
- })
2059
-
2060
- // Task submission
2061
- mcp__agentic-qe__task_submit({ type: "...", priority: "p0", payload: {...} })
2062
- mcp__agentic-qe__task_orchestrate({ task: "...", strategy: "parallel" })
2063
-
2064
- // Status
2065
- mcp__agentic-qe__fleet_status({ verbose: true })
2066
- mcp__agentic-qe__task_list({ status: "pending" })
2067
-
2068
- // Memory
2069
- mcp__agentic-qe__memory_store({ key: "...", value: {...}, namespace: "qcsd-cicd" })
2070
- mcp__agentic-qe__memory_query({ pattern: "qcsd-cicd-*", namespace: "qcsd-cicd" })
2071
- mcp__agentic-qe__memory_share({
2072
- sourceAgentId: "qcsd-cicd-swarm",
2073
- targetAgentIds: ["qe-learning-coordinator"],
2074
- knowledgeDomain: "cicd-verification-patterns"
2075
- })
2076
- ```
2077
-
2078
- ### CLI Quick Reference
2079
-
2080
- ```bash
2081
- # Initialization
2082
- npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 7
2083
-
2084
- # Agent operations
2085
- npx @claude-flow/cli@latest agent spawn --type [agent-type] --task "[description]"
2086
- npx @claude-flow/cli@latest hooks pre-task --description "[task]"
2087
- npx @claude-flow/cli@latest hooks post-task --task-id "[id]" --success true
2088
-
2089
- # Status
2090
- npx @claude-flow/cli@latest swarm status
2091
-
2092
- # Memory
2093
- npx @claude-flow/cli@latest memory store --key "[key]" --value "[json]" --namespace qcsd-cicd
2094
- npx @claude-flow/cli@latest memory search --query "[query]" --namespace qcsd-cicd
2095
- npx @claude-flow/cli@latest memory list --namespace qcsd-cicd
2096
- ```
169
+ | Test Pass Rate | >= 99% | 95 - 98.9% | < 95% |
170
+ | Regression Count | 0 | 1-3 (P2/P3) | Any P0/P1 |
171
+ | Flaky Test Rate | < 2% | 2 - 5% | > 5% |
172
+ | Quality Gate | ALL PASS | WARN gates only | ANY FAIL gate |
173
+ | Security Scan | No HIGH/CRITICAL | MEDIUM only | HIGH/CRITICAL found |
174
+ | Coverage Delta | >= 0% | -1% to -5% | < -5% |
2097
175
 
2098
176
  ---
2099
177
 
2100
- ## Swarm Topology
178
+ ## Report Filename Mapping
2101
179
 
2102
- ```
2103
- QCSD CI/CD SWARM v1.0
2104
- |
2105
- BATCH 1 (Core - Parallel)
2106
- +-----------+---+-----------+
2107
- | | |
2108
- +-----v-----+ +---v--------+ +---v-----------+
2109
- | Quality | | Regression | | Flaky |
2110
- | Gate | | Analyzer | | Hunter |
2111
- | (Threshd) | | (Risk/Imp) | | (Stability) |
2112
- |-----------| |------------| |---------------|
2113
- | qual-asmt | | test-exec | | test-exec |
2114
- +-----+-----+ +-----+------+ +------+--------+
2115
- | | |
2116
- +--------------+---------------+
2117
- |
2118
- [METRICS GATE]
2119
- |
2120
- BATCH 2 (Conditional - Parallel)
2121
- +-----------+---+-----------+
2122
- | | |
2123
- +-----v-----+ +---v--------+ +---v----------+
2124
- | Security | | Chaos | | Coverage |
2125
- | Scanner | | Engineer | | Specialist |
2126
- | [IF SEC] | | [IF PERF] | | [IF INFRA] |
2127
- |-----------| |------------| |--------------|
2128
- | sec-compl | | chaos-res | | cov-analy |
2129
- +-----------+ +------------+ +--------------+
2130
- +-------------+---+-------------+
2131
- | | |
2132
- +-----v------+ +---v--------+ +------v-------+
2133
- | Middleware | | SOAP | | SoD |
2134
- | Validator | | Tester | | Analyzer |
2135
- | [IF MIDW] | | [IF SAP] | | [IF AUTH] |
2136
- |------------| |------------| |--------------|
2137
- | ent-integ | | ent-integ | | ent-integ |
2138
- +------------+ +------------+ +--------------+
2139
- |
2140
- [SYNTHESIS]
2141
- |
2142
- PHASE 7 (Learning Persistence - Always)
2143
- |
2144
- +-------v-------+
2145
- | memory_store |
2146
- | memory_share |
2147
- | 09-learning- |
2148
- | persistence |
2149
- | (ALWAYS RUNS) |
2150
- +-------+-------+
2151
- |
2152
- BATCH 3 (Analysis - Always)
2153
- |
2154
- +-------v-------+
2155
- | Deployment |
2156
- | Advisor |
2157
- | (ALWAYS RUNS) |
2158
- |---------------|
2159
- | qual-asmt |
2160
- +-------+-------+
2161
- |
2162
- [FINAL REPORT]
2163
- ```
180
+ | Agent | Report Filename | Step |
181
+ |-------|----------------|------|
182
+ | qe-quality-gate | `02-quality-gates.md` | 2 |
183
+ | qe-regression-analyzer | `03-regression-analysis.md` | 2 |
184
+ | qe-flaky-hunter | `04-flaky-test-analysis.md` | 2 |
185
+ | qe-security-scanner | `05-security-scan.md` | 4 |
186
+ | qe-chaos-engineer | `06-chaos-resilience.md` | 4 |
187
+ | qe-coverage-specialist | `07-coverage-analysis.md` | 4 |
188
+ | qe-middleware-validator | `08-middleware-health.md` | 4 |
189
+ | qe-soap-tester | `09-soap-contracts.md` | 4 |
190
+ | qe-sod-analyzer | `10-sod-compliance.md` | 4 |
191
+ | Learning Persistence | `11-learning-persistence.json` | 7 |
192
+ | qe-deployment-advisor | `12-deployment-advisory.md` | 8 |
193
+ | Synthesis | `01-executive-summary.md` | 6 |
2164
194
 
2165
195
  ---
2166
196
 
2167
- ## Inventory Summary
2168
-
2169
- | Resource Type | Count | Primary | Conditional | Analysis |
2170
- |---------------|:-----:|:-------:|:-----------:|:--------:|
2171
- | **Agents** | 10 | 3 | 6 | 1 |
2172
- | **Sub-agents** | 0 | - | - | - |
2173
- | **Skills** | 4 | 4 | - | - |
2174
- | **Domains** | 7 | 2 | 4 | 1 |
2175
- | **Parallel Batches** | 3 | 1 | 1 | 1 |
2176
-
2177
- **Skills Used:**
2178
- 1. `shift-left-testing` - Pre-merge test strategy
2179
- 2. `shift-right-testing` - Post-deploy monitoring patterns
2180
- 3. `regression-testing` - Regression detection framework
2181
- 4. `security-testing` - OWASP scanning patterns
197
+ ## Execution Model Options
2182
198
 
2183
- **Frameworks Applied:**
2184
- 1. Quality Gate Enforcement - Threshold-based pass/fail evaluation
2185
- 2. Regression Risk Analysis - Change impact and blast radius calculation
2186
- 3. Flaky Test Detection - Pattern-based stability assessment
2187
- 4. SAST/DAST Pipeline Validation - Security gate verification
2188
- 5. Performance Regression Detection - Baseline comparison analysis
2189
- 6. Deployment Readiness Matrix - Multi-dimensional release assessment
199
+ | Model | When to Use | Agent Spawn |
200
+ |-------|-------------|-------------|
201
+ | **Task Tool** (PRIMARY) | Claude Code sessions | `Task({ subagent_type, run_in_background: true })` |
202
+ | **MCP Tools** | MCP server available | `fleet_init({})` / `task_submit({})` |
203
+ | **CLI** | Terminal/scripts | `swarm init` / `agent spawn` |
2190
204
 
2191
205
  ---
2192
206
 
2193
207
  ## Key Principle
2194
208
 
2195
- **Releases ship when pipelines are green, not when deadlines arrive.**
2196
-
2197
- This swarm provides:
2198
- 1. **Are quality gates passing?** -> Quality Gate Evaluation (8 dimensions)
2199
- 2. **Will changes break existing features?** -> Regression Risk Analysis (5 factors)
2200
- 3. **Is the pipeline stable?** -> Flaky Test Detection (6 root cause categories)
2201
- 4. **Is the security pipeline clean?** -> Security Gate Validation (if security changes)
2202
- 5. **Are performance baselines met?** -> Performance Regression Detection (if perf changes)
2203
- 6. **Is infrastructure properly tested?** -> Infrastructure Coverage (if infra changes)
2204
- 7. **Is it safe to deploy?** -> Deployment Readiness Advisory (always)
2205
- 8. **Should we release?** -> RELEASE/REMEDIATE/BLOCK decision
2206
- 9. **What did we learn?** -> Memory persistence for future cycles
209
+ **Release safety is verified by evidence, not assumptions. This swarm provides
210
+ pipeline-level quality assessment to ensure every release meets quality gates.**