agentic-qe 3.3.3 → 3.3.5

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 (553) hide show
  1. package/.claude/agents/v3/README.md +100 -0
  2. package/.claude/agents/v3/qe-accessibility-auditor.md +112 -11
  3. package/.claude/agents/v3/qe-bdd-generator.md +40 -0
  4. package/.claude/agents/v3/qe-coverage-specialist.md +39 -0
  5. package/.claude/agents/v3/qe-defect-predictor.md +36 -0
  6. package/.claude/agents/v3/qe-gap-detector.md +39 -0
  7. package/.claude/agents/v3/qe-pattern-learner.md +31 -0
  8. package/.claude/agents/v3/qe-product-factors-assessor.md +34 -0
  9. package/.claude/agents/v3/qe-quality-criteria-recommender.md +32 -0
  10. package/.claude/agents/v3/qe-quality-gate.md +39 -0
  11. package/.claude/agents/v3/qe-queen-coordinator.md +332 -166
  12. package/.claude/agents/v3/qe-requirements-validator.md +37 -0
  13. package/.claude/agents/v3/qe-risk-assessor.md +33 -0
  14. package/.claude/agents/v3/qe-tdd-specialist.md +33 -0
  15. package/.claude/agents/v3/qe-test-architect.md +36 -0
  16. package/.claude/helpers/statusline-v3.cjs +38 -42
  17. package/.claude/skills/README.md +30 -104
  18. package/.claude/skills/a11y-ally/SKILL.md +1658 -0
  19. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  20. package/.claude/skills/skills-manifest.json +78 -8
  21. package/README.md +18 -4
  22. package/package.json +1 -1
  23. package/scripts/cloud-db-config.json +10 -5
  24. package/scripts/demo-warmup.sh +45 -0
  25. package/scripts/fetch-content.js +460 -0
  26. package/scripts/merge-v3-to-root.sql +48 -0
  27. package/v3/CHANGELOG.md +166 -0
  28. package/v3/README.md +11 -6
  29. package/v3/assets/agents/v3/README.md +100 -0
  30. package/v3/assets/agents/v3/qe-accessibility-auditor.md +112 -11
  31. package/v3/assets/agents/v3/qe-bdd-generator.md +40 -0
  32. package/v3/assets/agents/v3/qe-coverage-specialist.md +39 -0
  33. package/v3/assets/agents/v3/qe-defect-predictor.md +36 -0
  34. package/v3/assets/agents/v3/qe-gap-detector.md +39 -0
  35. package/v3/assets/agents/v3/qe-pattern-learner.md +31 -0
  36. package/v3/assets/agents/v3/qe-product-factors-assessor.md +34 -0
  37. package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +32 -0
  38. package/v3/assets/agents/v3/qe-quality-gate.md +39 -0
  39. package/v3/assets/agents/v3/qe-queen-coordinator.md +332 -166
  40. package/v3/assets/agents/v3/qe-requirements-validator.md +37 -0
  41. package/v3/assets/agents/v3/qe-risk-assessor.md +33 -0
  42. package/v3/assets/agents/v3/qe-tdd-specialist.md +33 -0
  43. package/v3/assets/agents/v3/qe-test-architect.md +36 -0
  44. package/v3/assets/hooks/cross-phase-memory.yaml +253 -0
  45. package/v3/assets/skills/a11y-ally/SKILL.md +1658 -0
  46. package/v3/assets/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
  47. package/v3/assets/skills/skills-manifest.json +753 -0
  48. package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -1
  49. package/v3/dist/adapters/claude-flow/model-router-bridge.js +6 -4
  50. package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -1
  51. package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -1
  52. package/v3/dist/adapters/claude-flow/pretrain-bridge.js +13 -8
  53. package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -1
  54. package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -1
  55. package/v3/dist/adapters/claude-flow/trajectory-bridge.js +9 -6
  56. package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
  57. package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
  58. package/v3/dist/benchmarks/performance-benchmarks.js +5 -3
  59. package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
  60. package/v3/dist/cli/bundle.js +27646 -23204
  61. package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
  62. package/v3/dist/cli/commands/hooks.js +288 -0
  63. package/v3/dist/cli/commands/hooks.js.map +1 -1
  64. package/v3/dist/cli/commands/sync.d.ts.map +1 -1
  65. package/v3/dist/cli/commands/sync.js +0 -6
  66. package/v3/dist/cli/commands/sync.js.map +1 -1
  67. package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
  68. package/v3/dist/cli/handlers/init-handler.js +11 -0
  69. package/v3/dist/cli/handlers/init-handler.js.map +1 -1
  70. package/v3/dist/cli/index.js +14 -2
  71. package/v3/dist/cli/index.js.map +1 -1
  72. package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
  73. package/v3/dist/cli/scheduler/persistent-scheduler.js +3 -2
  74. package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
  75. package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
  76. package/v3/dist/cli/wizards/test-wizard.js +6 -4
  77. package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
  78. package/v3/dist/coordination/consensus/providers/claude-provider.js +1 -1
  79. package/v3/dist/coordination/consensus/providers/gemini-provider.js +1 -1
  80. package/v3/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +1 -1
  81. package/v3/dist/coordination/consensus/providers/native-learning-provider.js +10 -8
  82. package/v3/dist/coordination/consensus/providers/native-learning-provider.js.map +1 -1
  83. package/v3/dist/coordination/consensus/providers/ollama-provider.d.ts.map +1 -1
  84. package/v3/dist/coordination/consensus/providers/ollama-provider.js +5 -4
  85. package/v3/dist/coordination/consensus/providers/ollama-provider.js.map +1 -1
  86. package/v3/dist/coordination/consensus/providers/openai-provider.d.ts.map +1 -1
  87. package/v3/dist/coordination/consensus/providers/openai-provider.js +5 -4
  88. package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
  89. package/v3/dist/coordination/constants.d.ts +198 -0
  90. package/v3/dist/coordination/constants.d.ts.map +1 -0
  91. package/v3/dist/coordination/constants.js +210 -0
  92. package/v3/dist/coordination/constants.js.map +1 -0
  93. package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
  94. package/v3/dist/coordination/mincut/dream-integration.js +5 -1
  95. package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
  96. package/v3/dist/coordination/queen-coordinator.d.ts +9 -1
  97. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  98. package/v3/dist/coordination/queen-coordinator.js +49 -9
  99. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  100. package/v3/dist/coordination/task-executor.d.ts.map +1 -1
  101. package/v3/dist/coordination/task-executor.js +7 -8
  102. package/v3/dist/coordination/task-executor.js.map +1 -1
  103. package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
  104. package/v3/dist/coordination/workflow-orchestrator.js +261 -0
  105. package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
  106. package/v3/dist/domains/chaos-resilience/plugin.d.ts +14 -3
  107. package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
  108. package/v3/dist/domains/chaos-resilience/plugin.js +96 -0
  109. package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
  110. package/v3/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +1 -1
  111. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js +12 -8
  112. package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
  113. package/v3/dist/domains/code-intelligence/plugin.d.ts +13 -3
  114. package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
  115. package/v3/dist/domains/code-intelligence/plugin.js +85 -0
  116. package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
  117. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +1 -1
  118. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js +3 -2
  119. package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
  120. package/v3/dist/domains/constants.d.ts +481 -0
  121. package/v3/dist/domains/constants.d.ts.map +1 -0
  122. package/v3/dist/domains/constants.js +503 -0
  123. package/v3/dist/domains/constants.js.map +1 -0
  124. package/v3/dist/domains/contract-testing/plugin.d.ts +6 -1
  125. package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
  126. package/v3/dist/domains/contract-testing/plugin.js +80 -1
  127. package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
  128. package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
  129. package/v3/dist/domains/contract-testing/services/contract-validator.js +5 -4
  130. package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
  131. package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
  132. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +1 -0
  133. package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
  134. package/v3/dist/domains/defect-intelligence/coordinator.d.ts +2 -2
  135. package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
  136. package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
  137. package/v3/dist/domains/defect-intelligence/plugin.d.ts +6 -1
  138. package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
  139. package/v3/dist/domains/defect-intelligence/plugin.js +101 -0
  140. package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
  141. package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
  142. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +3 -2
  143. package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
  144. package/v3/dist/domains/domain-interface.d.ts.map +1 -1
  145. package/v3/dist/domains/domain-interface.js +24 -9
  146. package/v3/dist/domains/domain-interface.js.map +1 -1
  147. package/v3/dist/domains/learning-optimization/plugin.d.ts +2 -1
  148. package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
  149. package/v3/dist/domains/learning-optimization/plugin.js +49 -0
  150. package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
  151. package/v3/dist/domains/quality-assessment/coordinator.d.ts +90 -1
  152. package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
  153. package/v3/dist/domains/quality-assessment/coordinator.js +310 -0
  154. package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
  155. package/v3/dist/domains/requirements-validation/index.d.ts +1 -0
  156. package/v3/dist/domains/requirements-validation/index.d.ts.map +1 -1
  157. package/v3/dist/domains/requirements-validation/index.js +2 -0
  158. package/v3/dist/domains/requirements-validation/index.js.map +1 -1
  159. package/v3/dist/domains/requirements-validation/plugin.d.ts +13 -1
  160. package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
  161. package/v3/dist/domains/requirements-validation/plugin.js +94 -0
  162. package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
  163. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts +245 -0
  164. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -0
  165. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +1143 -0
  166. package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -0
  167. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +1 -1
  168. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +3 -2
  169. package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +1 -1
  170. package/v3/dist/domains/security-compliance/plugin.d.ts +3 -2
  171. package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
  172. package/v3/dist/domains/security-compliance/plugin.js +64 -0
  173. package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
  174. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +25 -0
  175. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +1 -0
  176. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +160 -0
  177. package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +1 -0
  178. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +48 -0
  179. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -0
  180. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +385 -0
  181. package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -0
  182. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +20 -0
  183. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +1 -0
  184. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +99 -0
  185. package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +1 -0
  186. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +62 -0
  187. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -0
  188. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +329 -0
  189. package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -0
  190. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +46 -0
  191. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -0
  192. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +180 -0
  193. package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -0
  194. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts +14 -0
  195. package/v3/dist/domains/security-compliance/services/scanners/index.d.ts.map +1 -0
  196. package/v3/dist/domains/security-compliance/services/scanners/index.js +16 -0
  197. package/v3/dist/domains/security-compliance/services/scanners/index.js.map +1 -0
  198. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +92 -0
  199. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -0
  200. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +440 -0
  201. package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -0
  202. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +78 -0
  203. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -0
  204. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +179 -0
  205. package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -0
  206. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +91 -0
  207. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -0
  208. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js +15 -0
  209. package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js.map +1 -0
  210. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts +16 -0
  211. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +1 -0
  212. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js +507 -0
  213. package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js.map +1 -0
  214. package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
  215. package/v3/dist/domains/security-compliance/services/security-auditor.js +2 -1
  216. package/v3/dist/domains/security-compliance/services/security-auditor.js.map +1 -1
  217. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts +20 -213
  218. package/v3/dist/domains/security-compliance/services/security-scanner.d.ts.map +1 -1
  219. package/v3/dist/domains/security-compliance/services/security-scanner.js +37 -2013
  220. package/v3/dist/domains/security-compliance/services/security-scanner.js.map +1 -1
  221. package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
  222. package/v3/dist/domains/security-compliance/services/semgrep-integration.js +7 -6
  223. package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
  224. package/v3/dist/domains/test-execution/services/auth-state-manager.d.ts.map +1 -1
  225. package/v3/dist/domains/test-execution/services/auth-state-manager.js +6 -4
  226. package/v3/dist/domains/test-execution/services/auth-state-manager.js.map +1 -1
  227. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts +55 -0
  228. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -0
  229. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js +407 -0
  230. package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +1 -0
  231. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +122 -0
  232. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -0
  233. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +325 -0
  234. package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -0
  235. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +97 -0
  236. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -0
  237. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +297 -0
  238. package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -0
  239. package/v3/dist/domains/test-execution/services/e2e/index.d.ts +22 -0
  240. package/v3/dist/domains/test-execution/services/e2e/index.d.ts.map +1 -0
  241. package/v3/dist/domains/test-execution/services/e2e/index.js +52 -0
  242. package/v3/dist/domains/test-execution/services/e2e/index.js.map +1 -0
  243. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +51 -0
  244. package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -0
  245. package/v3/dist/domains/test-execution/services/e2e/result-collector.js +133 -0
  246. package/v3/dist/domains/test-execution/services/e2e/result-collector.js.map +1 -0
  247. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts +48 -0
  248. package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -0
  249. package/v3/dist/domains/test-execution/services/e2e/step-executors.js +422 -0
  250. package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -0
  251. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts +49 -0
  252. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -0
  253. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +146 -0
  254. package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -0
  255. package/v3/dist/domains/test-execution/services/e2e/types.d.ts +138 -0
  256. package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -0
  257. package/v3/dist/domains/test-execution/services/e2e/types.js +65 -0
  258. package/v3/dist/domains/test-execution/services/e2e/types.js.map +1 -0
  259. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +33 -0
  260. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +1 -0
  261. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js +114 -0
  262. package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +1 -0
  263. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +18 -392
  264. package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
  265. package/v3/dist/domains/test-execution/services/e2e-runner.js +25 -1757
  266. package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
  267. package/v3/dist/domains/test-execution/services/flaky-detector.d.ts.map +1 -1
  268. package/v3/dist/domains/test-execution/services/flaky-detector.js +12 -9
  269. package/v3/dist/domains/test-execution/services/flaky-detector.js.map +1 -1
  270. package/v3/dist/domains/test-execution/services/retry-handler.d.ts.map +1 -1
  271. package/v3/dist/domains/test-execution/services/retry-handler.js +7 -5
  272. package/v3/dist/domains/test-execution/services/retry-handler.js.map +1 -1
  273. package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
  274. package/v3/dist/domains/test-execution/services/test-executor.js +4 -3
  275. package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
  276. package/v3/dist/domains/visual-accessibility/coordinator.d.ts +70 -0
  277. package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
  278. package/v3/dist/domains/visual-accessibility/coordinator.js +172 -0
  279. package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
  280. package/v3/dist/domains/visual-accessibility/plugin.d.ts +2 -1
  281. package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
  282. package/v3/dist/domains/visual-accessibility/plugin.js +63 -0
  283. package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
  284. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
  285. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +3 -2
  286. package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
  287. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +1 -1
  288. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js +22 -12
  289. package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
  290. package/v3/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +1 -1
  291. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js +3 -2
  292. package/v3/dist/domains/visual-accessibility/services/viewport-capture.js.map +1 -1
  293. package/v3/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +1 -1
  294. package/v3/dist/domains/visual-accessibility/services/visual-regression.js +3 -2
  295. package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
  296. package/v3/dist/hooks/cross-phase-hooks.d.ts +42 -0
  297. package/v3/dist/hooks/cross-phase-hooks.d.ts.map +1 -0
  298. package/v3/dist/hooks/cross-phase-hooks.js +338 -0
  299. package/v3/dist/hooks/cross-phase-hooks.js.map +1 -0
  300. package/v3/dist/hooks/index.d.ts +9 -0
  301. package/v3/dist/hooks/index.d.ts.map +1 -0
  302. package/v3/dist/hooks/index.js +9 -0
  303. package/v3/dist/hooks/index.js.map +1 -0
  304. package/v3/dist/init/agents-installer.d.ts.map +1 -1
  305. package/v3/dist/init/agents-installer.js +6 -4
  306. package/v3/dist/init/agents-installer.js.map +1 -1
  307. package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -1
  308. package/v3/dist/init/enhancements/claude-flow-adapter.js +15 -9
  309. package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
  310. package/v3/dist/init/enhancements/detector.js +6 -4
  311. package/v3/dist/init/enhancements/detector.js.map +1 -1
  312. package/v3/dist/init/init-wizard.d.ts +5 -0
  313. package/v3/dist/init/init-wizard.d.ts.map +1 -1
  314. package/v3/dist/init/init-wizard.js +77 -14
  315. package/v3/dist/init/init-wizard.js.map +1 -1
  316. package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
  317. package/v3/dist/init/migration/data-migrator.js +6 -4
  318. package/v3/dist/init/migration/data-migrator.js.map +1 -1
  319. package/v3/dist/init/phases/02-analysis.js +2 -2
  320. package/v3/dist/init/phases/02-analysis.js.map +1 -1
  321. package/v3/dist/init/phases/04-database.d.ts.map +1 -1
  322. package/v3/dist/init/phases/04-database.js +0 -1
  323. package/v3/dist/init/phases/04-database.js.map +1 -1
  324. package/v3/dist/init/phases/05-learning.js +1 -1
  325. package/v3/dist/init/phases/05-learning.js.map +1 -1
  326. package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -1
  327. package/v3/dist/init/phases/11-claude-md.js +25 -0
  328. package/v3/dist/init/phases/11-claude-md.js.map +1 -1
  329. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  330. package/v3/dist/init/phases/12-verification.js +2 -1
  331. package/v3/dist/init/phases/12-verification.js.map +1 -1
  332. package/v3/dist/init/project-analyzer.d.ts.map +1 -1
  333. package/v3/dist/init/project-analyzer.js +12 -8
  334. package/v3/dist/init/project-analyzer.js.map +1 -1
  335. package/v3/dist/init/skills-installer.d.ts.map +1 -1
  336. package/v3/dist/init/skills-installer.js +6 -4
  337. package/v3/dist/init/skills-installer.js.map +1 -1
  338. package/v3/dist/init/token-bootstrap.d.ts.map +1 -1
  339. package/v3/dist/init/token-bootstrap.js +2 -1
  340. package/v3/dist/init/token-bootstrap.js.map +1 -1
  341. package/v3/dist/integrations/agent-booster-wasm/index.d.ts.map +1 -1
  342. package/v3/dist/integrations/agent-booster-wasm/index.js +8 -4
  343. package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
  344. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -1
  345. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +3 -2
  346. package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -1
  347. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
  348. package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
  349. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +1 -1
  350. package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +1 -1
  351. package/v3/dist/integrations/browser/agent-browser/client.d.ts.map +1 -1
  352. package/v3/dist/integrations/browser/agent-browser/client.js +9 -6
  353. package/v3/dist/integrations/browser/agent-browser/client.js.map +1 -1
  354. package/v3/dist/integrations/browser/agent-browser/command-executor.d.ts.map +1 -1
  355. package/v3/dist/integrations/browser/agent-browser/command-executor.js +3 -2
  356. package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
  357. package/v3/dist/integrations/browser/index.d.ts +1 -0
  358. package/v3/dist/integrations/browser/index.d.ts.map +1 -1
  359. package/v3/dist/integrations/browser/index.js +6 -0
  360. package/v3/dist/integrations/browser/index.js.map +1 -1
  361. package/v3/dist/integrations/browser/web-content-fetcher.d.ts +154 -0
  362. package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -0
  363. package/v3/dist/integrations/browser/web-content-fetcher.js +529 -0
  364. package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -0
  365. package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -1
  366. package/v3/dist/integrations/coherence/threshold-tuner.js +3 -2
  367. package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -1
  368. package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
  369. package/v3/dist/integrations/coherence/wasm-loader.js +3 -2
  370. package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
  371. package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
  372. package/v3/dist/integrations/n8n/agent-factory.js +6 -4
  373. package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
  374. package/v3/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +1 -1
  375. package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
  376. package/v3/dist/integrations/ruvector/interfaces.js +1 -1
  377. package/v3/dist/integrations/ruvector/interfaces.js.map +1 -1
  378. package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
  379. package/v3/dist/integrations/ruvector/sona-persistence.js +6 -4
  380. package/v3/dist/integrations/ruvector/sona-persistence.js.map +1 -1
  381. package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
  382. package/v3/dist/integrations/vibium/client.js +3 -2
  383. package/v3/dist/integrations/vibium/client.js.map +1 -1
  384. package/v3/dist/kernel/agent-coordinator.d.ts +1 -1
  385. package/v3/dist/kernel/agent-coordinator.d.ts.map +1 -1
  386. package/v3/dist/kernel/agent-coordinator.js +4 -4
  387. package/v3/dist/kernel/agent-coordinator.js.map +1 -1
  388. package/v3/dist/kernel/constants.d.ts +155 -0
  389. package/v3/dist/kernel/constants.d.ts.map +1 -0
  390. package/v3/dist/kernel/constants.js +169 -0
  391. package/v3/dist/kernel/constants.js.map +1 -0
  392. package/v3/dist/kernel/event-bus.d.ts +8 -0
  393. package/v3/dist/kernel/event-bus.d.ts.map +1 -1
  394. package/v3/dist/kernel/event-bus.js +79 -17
  395. package/v3/dist/kernel/event-bus.js.map +1 -1
  396. package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
  397. package/v3/dist/kernel/hybrid-backend.js +4 -3
  398. package/v3/dist/kernel/hybrid-backend.js.map +1 -1
  399. package/v3/dist/kernel/index.d.ts +1 -1
  400. package/v3/dist/kernel/index.d.ts.map +1 -1
  401. package/v3/dist/kernel/index.js +3 -1
  402. package/v3/dist/kernel/index.js.map +1 -1
  403. package/v3/dist/kernel/kernel.d.ts.map +1 -1
  404. package/v3/dist/kernel/kernel.js +3 -2
  405. package/v3/dist/kernel/kernel.js.map +1 -1
  406. package/v3/dist/kernel/memory-backend.d.ts.map +1 -1
  407. package/v3/dist/kernel/memory-backend.js +4 -3
  408. package/v3/dist/kernel/memory-backend.js.map +1 -1
  409. package/v3/dist/kernel/unified-memory.d.ts +26 -0
  410. package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
  411. package/v3/dist/kernel/unified-memory.js +68 -13
  412. package/v3/dist/kernel/unified-memory.js.map +1 -1
  413. package/v3/dist/kernel/unified-persistence.js +3 -2
  414. package/v3/dist/kernel/unified-persistence.js.map +1 -1
  415. package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
  416. package/v3/dist/learning/aqe-learning-engine.js +12 -8
  417. package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
  418. package/v3/dist/learning/dream/index.d.ts +1 -1
  419. package/v3/dist/learning/dream/index.d.ts.map +1 -1
  420. package/v3/dist/learning/dream/index.js +3 -1
  421. package/v3/dist/learning/dream/index.js.map +1 -1
  422. package/v3/dist/learning/dream/spreading-activation.d.ts +41 -0
  423. package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
  424. package/v3/dist/learning/dream/spreading-activation.js +79 -0
  425. package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
  426. package/v3/dist/learning/pattern-store.d.ts.map +1 -1
  427. package/v3/dist/learning/pattern-store.js +16 -6
  428. package/v3/dist/learning/pattern-store.js.map +1 -1
  429. package/v3/dist/learning/qe-unified-memory.js +1 -1
  430. package/v3/dist/learning/qe-unified-memory.js.map +1 -1
  431. package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
  432. package/v3/dist/learning/real-embeddings.js +7 -1
  433. package/v3/dist/learning/real-embeddings.js.map +1 -1
  434. package/v3/dist/learning/real-qe-reasoning-bank.js +2 -2
  435. package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
  436. package/v3/dist/learning/sqlite-persistence.d.ts +2 -2
  437. package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
  438. package/v3/dist/learning/sqlite-persistence.js +1 -1
  439. package/v3/dist/learning/sqlite-persistence.js.map +1 -1
  440. package/v3/dist/learning/v2-to-v3-migration.d.ts +2 -2
  441. package/v3/dist/learning/v2-to-v3-migration.d.ts.map +1 -1
  442. package/v3/dist/learning/v2-to-v3-migration.js +2 -2
  443. package/v3/dist/learning/v2-to-v3-migration.js.map +1 -1
  444. package/v3/dist/logging/console-logger.d.ts +96 -0
  445. package/v3/dist/logging/console-logger.d.ts.map +1 -0
  446. package/v3/dist/logging/console-logger.js +247 -0
  447. package/v3/dist/logging/console-logger.js.map +1 -0
  448. package/v3/dist/logging/index.d.ts +42 -0
  449. package/v3/dist/logging/index.d.ts.map +1 -0
  450. package/v3/dist/logging/index.js +39 -0
  451. package/v3/dist/logging/index.js.map +1 -0
  452. package/v3/dist/logging/logger-factory.d.ts +145 -0
  453. package/v3/dist/logging/logger-factory.d.ts.map +1 -0
  454. package/v3/dist/logging/logger-factory.js +218 -0
  455. package/v3/dist/logging/logger-factory.js.map +1 -0
  456. package/v3/dist/logging/logger.d.ts +89 -0
  457. package/v3/dist/logging/logger.d.ts.map +1 -0
  458. package/v3/dist/logging/logger.js +74 -0
  459. package/v3/dist/logging/logger.js.map +1 -0
  460. package/v3/dist/mcp/bundle.js +11385 -7526
  461. package/v3/dist/mcp/handlers/agent-handlers.js +2 -2
  462. package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
  463. package/v3/dist/mcp/handlers/core-handlers.d.ts +2 -0
  464. package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
  465. package/v3/dist/mcp/handlers/core-handlers.js +33 -0
  466. package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
  467. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts +110 -0
  468. package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts.map +1 -0
  469. package/v3/dist/mcp/handlers/cross-phase-handlers.js +216 -0
  470. package/v3/dist/mcp/handlers/cross-phase-handlers.js.map +1 -0
  471. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts +151 -0
  472. package/v3/dist/mcp/handlers/domain-handler-configs.d.ts.map +1 -0
  473. package/v3/dist/mcp/handlers/domain-handler-configs.js +486 -0
  474. package/v3/dist/mcp/handlers/domain-handler-configs.js.map +1 -0
  475. package/v3/dist/mcp/handlers/domain-handlers.d.ts +174 -120
  476. package/v3/dist/mcp/handlers/domain-handlers.d.ts.map +1 -1
  477. package/v3/dist/mcp/handlers/domain-handlers.js +178 -1049
  478. package/v3/dist/mcp/handlers/domain-handlers.js.map +1 -1
  479. package/v3/dist/mcp/handlers/handler-factory.d.ts +182 -0
  480. package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -0
  481. package/v3/dist/mcp/handlers/handler-factory.js +327 -0
  482. package/v3/dist/mcp/handlers/handler-factory.js.map +1 -0
  483. package/v3/dist/mcp/handlers/index.d.ts +1 -0
  484. package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
  485. package/v3/dist/mcp/handlers/index.js +2 -0
  486. package/v3/dist/mcp/handlers/index.js.map +1 -1
  487. package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
  488. package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
  489. package/v3/dist/mcp/handlers/task-handlers.js +91 -7
  490. package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
  491. package/v3/dist/mcp/server.d.ts.map +1 -1
  492. package/v3/dist/mcp/server.js +107 -1
  493. package/v3/dist/mcp/server.js.map +1 -1
  494. package/v3/dist/mcp/types.d.ts +5 -3
  495. package/v3/dist/mcp/types.d.ts.map +1 -1
  496. package/v3/dist/memory/cross-phase-memory.d.ts +55 -0
  497. package/v3/dist/memory/cross-phase-memory.d.ts.map +1 -0
  498. package/v3/dist/memory/cross-phase-memory.js +265 -0
  499. package/v3/dist/memory/cross-phase-memory.js.map +1 -0
  500. package/v3/dist/memory/index.d.ts +9 -0
  501. package/v3/dist/memory/index.d.ts.map +1 -0
  502. package/v3/dist/memory/index.js +9 -0
  503. package/v3/dist/memory/index.js.map +1 -0
  504. package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
  505. package/v3/dist/shared/io/file-reader.js +3 -2
  506. package/v3/dist/shared/io/file-reader.js.map +1 -1
  507. package/v3/dist/shared/utils/binary-insert.d.ts +85 -0
  508. package/v3/dist/shared/utils/binary-insert.d.ts.map +1 -0
  509. package/v3/dist/shared/utils/binary-insert.js +122 -0
  510. package/v3/dist/shared/utils/binary-insert.js.map +1 -0
  511. package/v3/dist/shared/utils/index.d.ts +1 -0
  512. package/v3/dist/shared/utils/index.d.ts.map +1 -1
  513. package/v3/dist/shared/utils/index.js +1 -0
  514. package/v3/dist/shared/utils/index.js.map +1 -1
  515. package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
  516. package/v3/dist/strange-loop/belief-reconciler.js +3 -2
  517. package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
  518. package/v3/dist/sync/claude-flow-bridge.d.ts +1 -1
  519. package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -1
  520. package/v3/dist/sync/claude-flow-bridge.js +7 -5
  521. package/v3/dist/sync/claude-flow-bridge.js.map +1 -1
  522. package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
  523. package/v3/dist/sync/cloud/postgres-writer.js +0 -1
  524. package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
  525. package/v3/dist/sync/interfaces.d.ts +6 -0
  526. package/v3/dist/sync/interfaces.d.ts.map +1 -1
  527. package/v3/dist/sync/interfaces.js +34 -47
  528. package/v3/dist/sync/interfaces.js.map +1 -1
  529. package/v3/dist/sync/readers/sqlite-reader.d.ts +1 -1
  530. package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
  531. package/v3/dist/sync/readers/sqlite-reader.js +4 -3
  532. package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
  533. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +1 -1
  534. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js +3 -2
  535. package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
  536. package/v3/dist/test-scheduling/git-aware/test-selector.d.ts.map +1 -1
  537. package/v3/dist/test-scheduling/git-aware/test-selector.js +3 -2
  538. package/v3/dist/test-scheduling/git-aware/test-selector.js.map +1 -1
  539. package/v3/dist/types/cross-phase-signals.d.ts +119 -0
  540. package/v3/dist/types/cross-phase-signals.d.ts.map +1 -0
  541. package/v3/dist/types/cross-phase-signals.js +33 -0
  542. package/v3/dist/types/cross-phase-signals.js.map +1 -0
  543. package/v3/dist/types/index.d.ts +9 -0
  544. package/v3/dist/types/index.d.ts.map +1 -0
  545. package/v3/dist/types/index.js +9 -0
  546. package/v3/dist/types/index.js.map +1 -0
  547. package/v3/dist/workers/worker-manager.d.ts.map +1 -1
  548. package/v3/dist/workers/worker-manager.js +3 -2
  549. package/v3/dist/workers/worker-manager.js.map +1 -1
  550. package/v3/dist/workflows/browser/workflow-loader.d.ts +3 -3
  551. package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
  552. package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
  553. package/v3/package.json +4 -1
@@ -0,0 +1,1750 @@
1
+ ---
2
+ name: qcsd-ideation-swarm
3
+ description: "QCSD Ideation phase swarm for Quality Criteria sessions using HTSM v6.3, Risk Storming, and Testability analysis before development begins. Uses 5-tier browser cascade: Vibium → agent-browser → Playwright+Stealth → WebFetch → WebSearch-fallback."
4
+ category: qcsd-phases
5
+ priority: critical
6
+ version: 7.5.1
7
+ tokenEstimate: 3500
8
+ # DDD Domain Mapping (from QCSD-AGENTIC-QE-MAPPING-FRAMEWORK.md)
9
+ domains:
10
+ primary:
11
+ - domain: requirements-validation
12
+ agents: [qe-quality-criteria-recommender, qe-requirements-validator]
13
+ - domain: coverage-analysis
14
+ agents: [qe-risk-assessor]
15
+ conditional:
16
+ - domain: security-compliance
17
+ agents: [qe-security-auditor]
18
+ - domain: visual-accessibility
19
+ agents: [qe-accessibility-auditor]
20
+ - domain: cross-domain
21
+ agents: [qe-qx-partner]
22
+ # Agent Inventory
23
+ agents:
24
+ core: [qe-quality-criteria-recommender, qe-risk-assessor, qe-requirements-validator]
25
+ conditional: [qe-accessibility-auditor, qe-security-auditor, qe-qx-partner]
26
+ total: 6
27
+ sub_agents: 0
28
+ skills: [testability-scoring, risk-based-testing, context-driven-testing, holistic-testing-pact]
29
+ # Execution Models (Task Tool is PRIMARY)
30
+ execution:
31
+ primary: task-tool
32
+ alternatives: [mcp-tools, cli]
33
+ swarm_pattern: true
34
+ parallel_batches: 2
35
+ last_updated: 2026-01-28
36
+ # v7.5.1 Changelog: Added prominent follow-up recommendation box at end of swarm execution (Phase URL-9)
37
+ # v7.5.0 Changelog: Added HAS_VIDEO flag detection with /a11y-ally follow-up recommendation for video caption generation
38
+ # v7.4.0 Changelog: Automated browser cascade via scripts/fetch-content.js with 30s per-tier timeouts
39
+ # v7.2.0 Changelog: Added 5-tier browser cascade (Vibium → agent-browser → Playwright+Stealth → WebFetch → WebSearch)
40
+ html_output: true
41
+ enforcement_level: strict
42
+ tags: [qcsd, ideation, htsm, quality-criteria, risk-storming, testability, swarm, parallel, ddd]
43
+ ---
44
+
45
+ # QCSD Ideation Swarm v7.0
46
+
47
+ Shift-left quality engineering swarm for PI Planning and Sprint Planning.
48
+
49
+ ---
50
+
51
+ ## URL-Based Analysis Mode (v7.1)
52
+
53
+ When analyzing a live website URL, use this specialized execution pattern.
54
+
55
+ ### Parameters
56
+
57
+ - `URL`: Website to analyze (required)
58
+ - `OUTPUT_FOLDER`: Where to save reports (default: `/workspaces/agentic-qe/Agentic QCSD/{domain}/`)
59
+
60
+ ---
61
+
62
+ ## ⛔ URL MODE: COMPLETE EXECUTION FLOW
63
+
64
+ **You MUST follow ALL phases in order. Skipping phases is a FAILURE.**
65
+
66
+ ### PHASE URL-1: Setup and Content Fetch (AUTOMATED CASCADE)
67
+
68
+ **The browser cascade is now FULLY AUTOMATED via `scripts/fetch-content.js`.**
69
+
70
+ **Single command - automatic tier fallback with 30s timeout per tier:**
71
+
72
+ ```bash
73
+ # SINGLE COMMAND - handles all tiers automatically:
74
+ node /workspaces/agentic-qe/scripts/fetch-content.js "${URL}" "${OUTPUT_FOLDER}" --timeout 30000
75
+ ```
76
+
77
+ **What the script does automatically:**
78
+ 1. Creates output folder
79
+ 2. Tries Playwright+Stealth (30s timeout)
80
+ 3. Falls back to HTTP Fetch (30s timeout)
81
+ 4. Falls back to WebSearch placeholder (30s timeout)
82
+ 5. Saves `content.html`, `screenshot.png`, and `fetch-result.json`
83
+
84
+ **Execution:**
85
+
86
+ ```javascript
87
+ // 1. Run the automated fetch cascade
88
+ const fetchResult = Bash({
89
+ command: `node /workspaces/agentic-qe/scripts/fetch-content.js "${URL}" "${OUTPUT_FOLDER}" --timeout 30000`,
90
+ timeout: 120000 // 2 min total max
91
+ })
92
+
93
+ // 2. Parse the JSON result from stdout
94
+ const result = JSON.parse(fetchResult.stdout)
95
+
96
+ // 3. Read the content
97
+ const content = Read({ file_path: `${OUTPUT_FOLDER}/content.html` })
98
+ const fetchMethod = result.tier
99
+ const contentSize = result.contentSize
100
+ ```
101
+
102
+ **If script is not available, fall back to inline Playwright:**
103
+
104
+ ```javascript
105
+ // FALLBACK: Only if scripts/fetch-content.js doesn't exist
106
+ Bash({ command: `mkdir -p "${OUTPUT_FOLDER}"` })
107
+
108
+ // Quick Playwright fetch (single tier, no cascade)
109
+ Bash({
110
+ command: `cd /tmp && rm -rf qcsd-fetch && mkdir qcsd-fetch && cd qcsd-fetch && npm init -y && npm install playwright-extra puppeteer-extra-plugin-stealth playwright 2>/dev/null`,
111
+ timeout: 60000
112
+ })
113
+
114
+ // ... minimal inline script as last resort
115
+ ```
116
+
117
+ **MANDATORY: Output fetch method used:**
118
+ ```
119
+ ┌─────────────────────────────────────────────────────────────┐
120
+ │ CONTENT FETCH RESULT │
121
+ ├─────────────────────────────────────────────────────────────┤
122
+ │ Method Used: [vibium/agent-browser/playwright/webfetch/ │
123
+ │ websearch-fallback] │
124
+ │ Content Size: [X KB] │
125
+ │ Status: [SUCCESS/DEGRADED] │
126
+ │ │
127
+ │ If DEGRADED (websearch-fallback), analysis is based on │
128
+ │ public information, not live page inspection. │
129
+ └─────────────────────────────────────────────────────────────┘
130
+ ```
131
+
132
+ ### PHASE URL-2: Programmatic Flag Detection (MANDATORY)
133
+
134
+ **You MUST detect flags from the fetched content. Do NOT skip this phase.**
135
+
136
+ ```javascript
137
+ // Detect HAS_UI
138
+ const HAS_UI = (
139
+ /<(form|button|input|select|textarea|img|video|canvas|nav|header|footer|aside)/i.test(content) ||
140
+ /carousel|slider|modal|dialog|dropdown|menu|tab|accordion/i.test(content) ||
141
+ /class=["'][^"']*btn|button|card|grid|flex/i.test(content)
142
+ );
143
+
144
+ // Detect HAS_SECURITY
145
+ const HAS_SECURITY = (
146
+ /login|password|auth|token|session|credential|oauth|jwt|sso/i.test(content) ||
147
+ /newsletter|subscribe|signup|email.*input|register/i.test(content) || // PII collection
148
+ /payment|checkout|credit.*card|billing/i.test(content) ||
149
+ /cookie|consent|gdpr|privacy/i.test(content)
150
+ );
151
+
152
+ // Detect HAS_UX
153
+ const HAS_UX = (
154
+ /user|customer|visitor|journey|experience|engagement/i.test(content) ||
155
+ /<form/i.test(content) && /<button/i.test(content) || // Interactive forms
156
+ /onboarding|wizard|step.*step|progress/i.test(content) ||
157
+ /feedback|rating|review|comment/i.test(content)
158
+ );
159
+
160
+ // Detect HAS_VIDEO (for a11y-ally follow-up recommendation)
161
+ const HAS_VIDEO = (
162
+ /<video/i.test(content) ||
163
+ /youtube\.com\/embed|vimeo\.com|wistia\.com/i.test(content) ||
164
+ /\.mp4|\.webm|\.m3u8/i.test(content) ||
165
+ /data-video-url|data-mobile-url|data-desktop-url/i.test(content)
166
+ );
167
+ ```
168
+
169
+ **You MUST output flag detection results before proceeding:**
170
+
171
+ ```
172
+ ┌─────────────────────────────────────────────────────────────┐
173
+ │ FLAG DETECTION RESULTS │
174
+ ├─────────────────────────────────────────────────────────────┤
175
+ │ │
176
+ │ HAS_UI: [TRUE/FALSE] │
177
+ │ Evidence: [what triggered it - specific patterns] │
178
+ │ │
179
+ │ HAS_SECURITY: [TRUE/FALSE] │
180
+ │ Evidence: [what triggered it - specific patterns] │
181
+ │ │
182
+ │ HAS_UX: [TRUE/FALSE] │
183
+ │ Evidence: [what triggered it - specific patterns] │
184
+ │ │
185
+ │ HAS_VIDEO: [TRUE/FALSE] │
186
+ │ Evidence: [video URLs found - for a11y follow-up] │
187
+ │ │
188
+ │ EXPECTED AGENTS: │
189
+ │ - Core: 3 (always) │
190
+ │ - Conditional: [count based on TRUE flags] │
191
+ │ - TOTAL: [3 + conditional count] │
192
+ │ │
193
+ │ FOLLOW-UP RECOMMENDED: │
194
+ │ - /a11y-ally: [YES if HAS_VIDEO=TRUE, else NO] │
195
+ │ │
196
+ └─────────────────────────────────────────────────────────────┘
197
+ ```
198
+
199
+ **❌ DO NOT proceed to Phase URL-3 without outputting flag detection results.**
200
+
201
+ ### PHASE URL-3: Spawn Core Agents (PARALLEL)
202
+
203
+ **All 3 core agents MUST be spawned. Fewer is a FAILURE.**
204
+
205
+ Spawn ALL THREE in a single message:
206
+
207
+ ```javascript
208
+ // Agent 1: Quality Criteria (HTSM v6.3)
209
+ Task({
210
+ description: "QCSD Quality Criteria Analysis",
211
+ prompt: `You are qe-quality-criteria-recommender analyzing ${URL}.
212
+
213
+ ## WEBSITE CONTENT
214
+ ${content}
215
+
216
+ ## ANALYSIS REQUIREMENTS
217
+ Analyze ALL 10 HTSM v6.3 categories with weight and testability score for each.
218
+
219
+ ## OUTPUT REQUIREMENTS (MANDATORY)
220
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/02-quality-criteria-analysis.md
221
+ 2. Use the Write tool to save BEFORE completing
222
+ 3. Report MUST be complete - no placeholders`,
223
+ subagent_type: "qe-quality-criteria-recommender",
224
+ run_in_background: true
225
+ })
226
+
227
+ // Agent 2: Risk Assessment (SFDIPOT)
228
+ Task({
229
+ description: "QCSD Risk Assessment",
230
+ prompt: `You are qe-risk-assessor analyzing ${URL}.
231
+
232
+ ## WEBSITE CONTENT
233
+ ${content}
234
+
235
+ ## ANALYSIS REQUIREMENTS
236
+ Apply SFDIPOT framework: Structure, Function, Data, Interfaces, Platform, Operations, Time.
237
+ Identify minimum 10 risks with probability, impact, and score.
238
+
239
+ ## OUTPUT REQUIREMENTS (MANDATORY)
240
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/04-risk-assessment.md
241
+ 2. Use the Write tool to save BEFORE completing
242
+ 3. Report MUST be complete - no placeholders`,
243
+ subagent_type: "qe-risk-assessor",
244
+ run_in_background: true
245
+ })
246
+
247
+ // Agent 3: Requirements Validator (Testability)
248
+ Task({
249
+ description: "QCSD Testability Assessment",
250
+ prompt: `You are qe-requirements-validator analyzing ${URL}.
251
+
252
+ ## WEBSITE CONTENT
253
+ ${content}
254
+
255
+ ## ANALYSIS REQUIREMENTS
256
+ Apply 10 Principles of Testability. Score each principle 0-100.
257
+ Identify blockers and recommendations.
258
+
259
+ ## OUTPUT REQUIREMENTS (MANDATORY)
260
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/03-testability-assessment.md
261
+ 2. Use the Write tool to save BEFORE completing
262
+ 3. Report MUST be complete - no placeholders`,
263
+ subagent_type: "qe-requirements-validator",
264
+ run_in_background: true
265
+ })
266
+ ```
267
+
268
+ ### PHASE URL-4: Spawn Conditional Agents (PARALLEL)
269
+
270
+ **Spawn agents based on flags detected in Phase URL-2.**
271
+
272
+ ```javascript
273
+ // IF HAS_UI === TRUE
274
+ Task({
275
+ description: "QCSD Accessibility Audit",
276
+ prompt: `You are qe-accessibility-auditor analyzing ${URL}.
277
+
278
+ ## WEBSITE CONTENT
279
+ ${content}
280
+
281
+ ## ANALYSIS REQUIREMENTS
282
+ Perform WCAG 2.2 AA compliance assessment.
283
+ Identify accessibility barriers, missing ARIA, color contrast issues.
284
+
285
+ ## OUTPUT REQUIREMENTS (MANDATORY)
286
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/07-accessibility-audit.md
287
+ 2. Use the Write tool to save BEFORE completing`,
288
+ subagent_type: "qe-accessibility-auditor",
289
+ run_in_background: true
290
+ })
291
+
292
+ // IF HAS_SECURITY === TRUE
293
+ Task({
294
+ description: "QCSD Security Threat Model",
295
+ prompt: `You are qe-security-auditor analyzing ${URL}.
296
+
297
+ ## WEBSITE CONTENT
298
+ ${content}
299
+
300
+ ## ANALYSIS REQUIREMENTS
301
+ Apply STRIDE threat modeling framework.
302
+ Identify vulnerabilities, attack vectors, and mitigations.
303
+
304
+ ## OUTPUT REQUIREMENTS (MANDATORY)
305
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/05-security-threat-model.md
306
+ 2. Use the Write tool to save BEFORE completing`,
307
+ subagent_type: "qe-security-auditor",
308
+ run_in_background: true
309
+ })
310
+
311
+ // IF HAS_UX === TRUE
312
+ Task({
313
+ description: "QCSD Quality Experience Analysis",
314
+ prompt: `You are qe-qx-partner analyzing ${URL}.
315
+
316
+ ## WEBSITE CONTENT
317
+ ${content}
318
+
319
+ ## ANALYSIS REQUIREMENTS
320
+ Analyze user journeys, experience quality, friction points.
321
+ Map key user flows and identify UX risks.
322
+
323
+ ## OUTPUT REQUIREMENTS (MANDATORY)
324
+ 1. Write your complete analysis to: ${OUTPUT_FOLDER}/08-quality-experience.md
325
+ 2. Use the Write tool to save BEFORE completing`,
326
+ subagent_type: "qe-qx-partner",
327
+ run_in_background: true
328
+ })
329
+ ```
330
+
331
+ ### PHASE URL-5: Agent Count Validation
332
+
333
+ **Before proceeding, verify agent count:**
334
+
335
+ ```
336
+ ┌─────────────────────────────────────────────────────────────┐
337
+ │ AGENT COUNT VALIDATION │
338
+ ├─────────────────────────────────────────────────────────────┤
339
+ │ │
340
+ │ CORE AGENTS (ALWAYS 3): │
341
+ │ □ qe-quality-criteria-recommender - SPAWNED? [Y/N] │
342
+ │ □ qe-risk-assessor - SPAWNED? [Y/N] │
343
+ │ □ qe-requirements-validator - SPAWNED? [Y/N] │
344
+ │ │
345
+ │ CONDITIONAL AGENTS (based on flags): │
346
+ │ □ qe-accessibility-auditor - SPAWNED? [Y/N] (HAS_UI) │
347
+ │ □ qe-security-auditor - SPAWNED? [Y/N] (HAS_SECURITY) │
348
+ │ □ qe-qx-partner - SPAWNED? [Y/N] (HAS_UX) │
349
+ │ │
350
+ │ VALIDATION: │
351
+ │ Expected agents: [3 + count of TRUE flags] │
352
+ │ Actual spawned: [count] │
353
+ │ Status: [PASS/FAIL] │
354
+ │ │
355
+ │ If ACTUAL < EXPECTED, you have FAILED. Spawn missing │
356
+ │ agents before proceeding. │
357
+ │ │
358
+ └─────────────────────────────────────────────────────────────┘
359
+ ```
360
+
361
+ **❌ DO NOT proceed if validation FAILS.**
362
+
363
+ ### PHASE URL-6: Wait for Agents and Verify Reports
364
+
365
+ After spawning, inform user and wait:
366
+
367
+ ```
368
+ I've launched [N] agents in background:
369
+ - 📊 Quality Criteria Recommender: HTSM v6.3 analysis → 02-quality-criteria-analysis.md
370
+ - ⚠️ Risk Assessor: SFDIPOT analysis → 04-risk-assessment.md
371
+ - 🧪 Requirements Validator: Testability assessment → 03-testability-assessment.md
372
+ [IF HAS_UI]
373
+ - ♿ Accessibility Auditor: WCAG 2.2 audit → 07-accessibility-audit.md
374
+ [IF HAS_SECURITY]
375
+ - 🔒 Security Auditor: STRIDE threat model → 05-security-threat-model.md
376
+ [IF HAS_UX]
377
+ - 🎯 QX Partner: User experience analysis → 08-quality-experience.md
378
+
379
+ Each agent will write directly to: ${OUTPUT_FOLDER}/
380
+ ```
381
+
382
+ Verify reports exist before synthesis:
383
+ ```bash
384
+ ls -la "${OUTPUT_FOLDER}"
385
+ ```
386
+
387
+ ### PHASE URL-7: Invoke Related Skills (MANDATORY)
388
+
389
+ **After agent reports are complete, invoke these skills:**
390
+
391
+ ```javascript
392
+ // Testability Scoring - applies formal scoring methodology
393
+ Skill({ skill: "testability-scoring", args: `${OUTPUT_FOLDER}/03-testability-assessment.md` })
394
+
395
+ // Risk-Based Testing - prioritizes test selection
396
+ Skill({ skill: "risk-based-testing", args: `${OUTPUT_FOLDER}/04-risk-assessment.md` })
397
+ ```
398
+
399
+ **Required Skill Invocations:**
400
+
401
+ | Skill | When | Purpose |
402
+ |-------|------|---------|
403
+ | `testability-scoring` | After testability report | Formal 0-100 score calculation |
404
+ | `risk-based-testing` | After risk report | Test prioritization matrix |
405
+ | `context-driven-testing` | Always | Apply CDT principles to recommendations |
406
+ | `holistic-testing-pact` | Always | Validate test strategy completeness |
407
+
408
+ **❌ Analysis is INCOMPLETE without invoking related skills.**
409
+
410
+ ### PHASE URL-8: Synthesis and Executive Summary
411
+
412
+ After all agents complete and skills are invoked:
413
+
414
+ 1. **Read all agent reports**
415
+ 2. **Generate Executive Summary** → `${OUTPUT_FOLDER}/01-executive-summary.md`
416
+ 3. **Generate Consolidated Test Ideas** → `${OUTPUT_FOLDER}/06-test-ideas.md`
417
+ 4. **Add Follow-up Recommendations** (if HAS_VIDEO=TRUE):
418
+ ```markdown
419
+ ## Recommended Follow-up Actions
420
+
421
+ | Action | Skill/Command | Reason |
422
+ |--------|---------------|--------|
423
+ | Generate Video Captions | `/a11y-ally ${URL}` | Video detected without captions - WCAG 1.2.2 compliance |
424
+ ```
425
+ 5. **Store learnings in memory**:
426
+ ```bash
427
+ npx @claude-flow/cli@latest memory store \
428
+ --key "qcsd-${domain}-pattern" \
429
+ --value "[key learnings from this analysis]" \
430
+ --namespace patterns
431
+ ```
432
+
433
+ **IMPORTANT:** If HAS_VIDEO=TRUE, the Executive Summary MUST include a "Recommended Follow-up Actions" section recommending `/a11y-ally` for video caption generation. This is NOT automatic - it's a recommendation for the user to run separately.
434
+
435
+ ### Report Filename Mapping
436
+
437
+ | Agent | Report Filename |
438
+ |-------|----------------|
439
+ | qe-quality-criteria-recommender | `02-quality-criteria-analysis.md` |
440
+ | qe-requirements-validator | `03-testability-assessment.md` |
441
+ | qe-risk-assessor | `04-risk-assessment.md` |
442
+ | qe-security-auditor | `05-security-threat-model.md` |
443
+ | qe-accessibility-auditor | `07-accessibility-audit.md` |
444
+ | qe-qx-partner | `08-quality-experience.md` |
445
+ | Synthesis | `01-executive-summary.md` |
446
+ | Synthesis | `06-test-ideas.md` |
447
+
448
+ ### PHASE URL-9: Final Output with Follow-up Recommendations (MANDATORY)
449
+
450
+ **At the very end of swarm execution, ALWAYS output this completion summary:**
451
+
452
+ ```
453
+ ┌─────────────────────────────────────────────────────────────────────┐
454
+ │ QCSD IDEATION SWARM COMPLETE │
455
+ ├─────────────────────────────────────────────────────────────────────┤
456
+ │ │
457
+ │ URL Analyzed: ${URL} │
458
+ │ Reports Generated: 8 │
459
+ │ Output Folder: ${OUTPUT_FOLDER} │
460
+ │ │
461
+ │ QUALITY SCORES: │
462
+ │ ├─ Risk Assessment: [score] │
463
+ │ ├─ Security Posture: [score] │
464
+ │ ├─ Quality Experience: [score] │
465
+ │ ├─ Testability: [score] │
466
+ │ └─ Accessibility: [score] │
467
+ │ │
468
+ └─────────────────────────────────────────────────────────────────────┘
469
+ ```
470
+
471
+ **IF HAS_VIDEO=TRUE, ALSO output this prominent recommendation box:**
472
+
473
+ ```
474
+ ┌─────────────────────────────────────────────────────────────────────┐
475
+ │ ⚠️ FOLLOW-UP ACTION RECOMMENDED │
476
+ ├─────────────────────────────────────────────────────────────────────┤
477
+ │ │
478
+ │ VIDEO DETECTED WITHOUT CAPTIONS │
479
+ │ │
480
+ │ To generate WCAG 1.2.2 compliant captions, run: │
481
+ │ │
482
+ │ /a11y-ally ${URL} │
483
+ │ │
484
+ │ This will: │
485
+ │ • Download video and extract frames │
486
+ │ • Analyze each frame with Claude Vision │
487
+ │ • Generate captions.vtt and audiodesc.vtt │
488
+ │ • Save to docs/accessibility-scans/{page-slug}/ │
489
+ │ │
490
+ └─────────────────────────────────────────────────────────────────────┘
491
+ ```
492
+
493
+ **❌ DO NOT end the swarm without displaying the completion summary.**
494
+ **❌ DO NOT skip the follow-up recommendation box if HAS_VIDEO=TRUE.**
495
+
496
+ ---
497
+
498
+ ## DDD Domain Integration
499
+
500
+ This swarm operates across **3 primary domains** and **3 conditional domains**:
501
+
502
+ ```
503
+ ┌─────────────────────────────────────────────────────────────────────────────┐
504
+ │ QCSD IDEATION - DOMAIN MAP │
505
+ ├─────────────────────────────────────────────────────────────────────────────┤
506
+ │ │
507
+ │ PRIMARY DOMAINS (Always Active) │
508
+ │ ┌─────────────────────────┐ ┌─────────────────────────┐ │
509
+ │ │ requirements-validation │ │ coverage-analysis │ │
510
+ │ │ ─────────────────────── │ │ ───────────────────── │ │
511
+ │ │ • qe-quality-criteria- │ │ • qe-risk-assessor │ │
512
+ │ │ recommender (PRIMARY) │ │ │ │
513
+ │ │ • qe-requirements- │ │ │ │
514
+ │ │ validator │ │ │ │
515
+ │ └─────────────────────────┘ └─────────────────────────┘ │
516
+ │ │
517
+ │ CONDITIONAL DOMAINS (Based on Epic Content) │
518
+ │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
519
+ │ │security-complnce│ │visual-a11y │ │ cross-domain │ │
520
+ │ │─────────────────│ │─────────────────│ │─────────────────│ │
521
+ │ │qe-security- │ │qe-accessibility-│ │ qe-qx-partner │ │
522
+ │ │auditor │ │auditor │ │ │ │
523
+ │ │[IF HAS_SECURITY]│ │[IF HAS_UI] │ │[IF HAS_UX] │ │
524
+ │ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
525
+ │ │
526
+ └─────────────────────────────────────────────────────────────────────────────┘
527
+ ```
528
+
529
+ ---
530
+
531
+ ## Execution Model Options
532
+
533
+ This skill supports **3 execution models**. Choose based on your environment:
534
+
535
+ | Model | When to Use | Pros | Cons |
536
+ |-------|-------------|------|------|
537
+ | **Task Tool** (PRIMARY) | Claude Code sessions | Full agent capabilities, parallel execution | Requires Claude Code |
538
+ | **MCP Tools** | MCP server available | Fleet coordination, memory persistence | Requires MCP setup |
539
+ | **CLI** | Terminal/scripts | Works anywhere, scriptable | Sequential only |
540
+
541
+ ### Quick Start by Model
542
+
543
+ **Option A: Task Tool (RECOMMENDED)**
544
+ ```
545
+ Just follow the skill phases below - uses Task() calls with run_in_background: true
546
+ ```
547
+
548
+ **Option B: MCP Tools**
549
+ ```javascript
550
+ // Initialize fleet for Ideation domains
551
+ mcp__agentic_qe__fleet_init({
552
+ topology: "hierarchical",
553
+ enabledDomains: ["requirements-validation", "coverage-analysis", "security-compliance"],
554
+ maxAgents: 6
555
+ })
556
+
557
+ // Orchestrate ideation task
558
+ mcp__agentic_qe__task_orchestrate({
559
+ task: "qcsd-ideation-analysis",
560
+ strategy: "parallel"
561
+ })
562
+ ```
563
+
564
+ **Option C: CLI**
565
+ ```bash
566
+ # Initialize coordination
567
+ npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 6
568
+
569
+ # Route task
570
+ npx @claude-flow/cli@latest hooks pre-task --description "QCSD Ideation for [Epic]"
571
+
572
+ # Execute agents
573
+ npx @claude-flow/cli@latest agent spawn --type qe-quality-criteria-recommender
574
+ npx @claude-flow/cli@latest agent spawn --type qe-risk-assessor
575
+ npx @claude-flow/cli@latest agent spawn --type qe-requirements-validator
576
+ ```
577
+
578
+ ---
579
+
580
+ ## ⛔ ENFORCEMENT RULES - READ FIRST
581
+
582
+ **These rules are NON-NEGOTIABLE. Violation means skill execution failure.**
583
+
584
+ | Rule | Enforcement |
585
+ |------|-------------|
586
+ | **E1** | You MUST spawn ALL THREE core agents in Phase 2. No exceptions. |
587
+ | **E2** | You MUST put all parallel Task calls in a SINGLE message. |
588
+ | **E3** | You MUST STOP and WAIT after each batch. No proceeding early. |
589
+ | **E4** | You MUST spawn conditional agents if flags are TRUE. No skipping. |
590
+ | **E5** | You MUST apply GO/CONDITIONAL/NO-GO logic exactly as specified. |
591
+ | **E6** | You MUST generate the full report structure. No abbreviated versions. |
592
+ | **E7** | Each agent MUST read its reference files before analysis. |
593
+
594
+ **❌ PROHIBITED BEHAVIORS:**
595
+ - Summarizing instead of spawning agents
596
+ - Skipping agents "for brevity"
597
+ - Proceeding before background tasks complete
598
+ - Providing your own analysis instead of spawning specialists
599
+ - Omitting report sections
600
+ - Using placeholder text like "[details here]"
601
+
602
+ ---
603
+
604
+ ## PHASE 1: Analyze Epic Content
605
+
606
+ **⚠️ MANDATORY: You must complete this analysis before Phase 2.**
607
+
608
+ Scan the epic content and SET these flags. Do not skip any flag.
609
+
610
+ ### Flag Detection (Check ALL THREE)
611
+
612
+ ```
613
+ □ HAS_UI = FALSE
614
+ Set TRUE if epic contains ANY of: UI, frontend, visual, design,
615
+ component, screen, page, form, button, modal, dialog, dashboard,
616
+ widget, interface, display, view, layout, CSS, styling
617
+
618
+ □ HAS_SECURITY = FALSE
619
+ Set TRUE if epic contains ANY of: auth, security, credential, token,
620
+ encrypt, PII, compliance, password, login, session, OAuth, JWT,
621
+ permission, role, access control, RBAC, sensitive, private
622
+
623
+ □ HAS_UX = FALSE
624
+ Set TRUE if epic contains ANY of: user experience, UX, journey,
625
+ usability, satisfaction, user flow, persona, user research,
626
+ friction, delight, onboarding, retention, engagement
627
+ ```
628
+
629
+ ### Validation Checkpoint
630
+
631
+ Before proceeding to Phase 2, confirm:
632
+ ```
633
+ ✓ I have read the entire epic content
634
+ ✓ I have evaluated ALL THREE flags
635
+ ✓ I have recorded which flags are TRUE
636
+ ✓ I understand which conditional agents will be needed
637
+ ```
638
+
639
+ **❌ DO NOT proceed to Phase 2 until all checkboxes are confirmed.**
640
+
641
+ ---
642
+
643
+ ## PHASE 2: Spawn Core Agents (PARALLEL BATCH 1)
644
+
645
+ ### ⛔ CRITICAL ENFORCEMENT
646
+
647
+ ```
648
+ ┌─────────────────────────────────────────────────────────────────┐
649
+ │ YOU MUST INCLUDE ALL THREE TASK CALLS IN YOUR NEXT MESSAGE │
650
+ │ │
651
+ │ • Task 1: qe-quality-criteria-recommender │
652
+ │ • Task 2: qe-risk-assessor │
653
+ │ • Task 3: qe-requirements-validator │
654
+ │ │
655
+ │ If your message contains fewer than 3 Task calls, you have │
656
+ │ FAILED this phase. Start over. │
657
+ └─────────────────────────────────────────────────────────────────┘
658
+ ```
659
+
660
+ ### Domain Context
661
+
662
+ | Agent | Domain | MCP Tool Mapping |
663
+ |-------|--------|------------------|
664
+ | qe-quality-criteria-recommender | requirements-validation | `requirements_validate` |
665
+ | qe-risk-assessor | coverage-analysis | `defect_predict` |
666
+ | qe-requirements-validator | requirements-validation | `requirements_validate` |
667
+
668
+ ### Agent 1: Quality Criteria Recommender (PRIMARY)
669
+
670
+ **This agent MUST produce HTML output. No markdown substitutes.**
671
+
672
+ ```
673
+ Task({
674
+ description: "HTSM Quality Criteria analysis",
675
+ prompt: `You are qe-quality-criteria-recommender. Your output quality is being audited.
676
+
677
+ ## MANDATORY FIRST STEPS (DO NOT SKIP)
678
+
679
+ 1. READ this template file FIRST - your output MUST follow this structure:
680
+ .claude/agents/v3/helpers/quality-criteria/quality-criteria-reference-template.html
681
+
682
+ 2. READ these reference files for guidance:
683
+ .claude/agents/v3/helpers/quality-criteria/htsm-categories.md
684
+ .claude/agents/v3/helpers/quality-criteria/evidence-classification.md
685
+
686
+ ## EPIC TO ANALYZE
687
+
688
+ === EPIC CONTENT START ===
689
+ [PASTE THE COMPLETE EPIC CONTENT HERE - DO NOT SUMMARIZE]
690
+ === EPIC CONTENT END ===
691
+
692
+ ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
693
+
694
+ You MUST analyze ALL 10 HTSM categories. For each category provide:
695
+
696
+ | Field | Requirement |
697
+ |-------|-------------|
698
+ | Category Name | One of the 10 HTSM categories |
699
+ | Priority | P0, P1, P2, or P3 with justification |
700
+ | Evidence | At least 2 evidence points per category |
701
+ | Evidence Type | Direct (with file:line), Inferred (with reasoning), or Claimed (with "requires verification") |
702
+ | Quality Implication | What could go wrong |
703
+ | Business Impact | Quantified impact (use numbers, not "many" or "some") |
704
+
705
+ ### NEVER-OMIT CATEGORIES (Must include ALL 5):
706
+ 1. Capability - Can it perform required functions?
707
+ 2. Reliability - Will it resist failure?
708
+ 3. Security - How protected against unauthorized use?
709
+ 4. Performance - How speedy and responsive?
710
+ 5. Development - How testable/maintainable?
711
+
712
+ ### MAY-OMIT CATEGORIES (Only with ironclad justification):
713
+ 6. Usability, 7. Charisma, 8. Scalability, 9. Compatibility, 10. Installability
714
+
715
+ ## OUTPUT FORMAT
716
+
717
+ Generate COMPLETE HTML report using the template structure.
718
+ Save to: .agentic-qe/quality-criteria/[epic-name]-htsm-analysis.html
719
+
720
+ ## VALIDATION BEFORE SUBMITTING
721
+
722
+ ✓ Did I read the template file?
723
+ ✓ Did I analyze all 10 categories (or justify omissions)?
724
+ ✓ Does every evidence point have proper classification?
725
+ ✓ Are business impacts quantified with numbers?
726
+ ✓ Is output in HTML format using template structure?`,
727
+ subagent_type: "qe-quality-criteria-recommender",
728
+ run_in_background: true
729
+ })
730
+ ```
731
+
732
+ ### Agent 2: Risk Assessor
733
+
734
+ **This agent MUST identify at least 5 risks. Fewer is a failure.**
735
+
736
+ ```
737
+ Task({
738
+ description: "Risk Storming analysis",
739
+ prompt: `You are qe-risk-assessor. Your output quality is being audited.
740
+
741
+ ## METHODOLOGY
742
+
743
+ Apply risk-based-testing methodology systematically.
744
+
745
+ ## EPIC TO ANALYZE
746
+
747
+ === EPIC CONTENT START ===
748
+ [PASTE THE COMPLETE EPIC CONTENT HERE - DO NOT SUMMARIZE]
749
+ === EPIC CONTENT END ===
750
+
751
+ ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
752
+
753
+ ### Risk Identification Requirements
754
+
755
+ You MUST identify risks in ALL FOUR categories:
756
+ 1. **Technical Risks** - Architecture, integration, dependencies, complexity
757
+ 2. **Business Risks** - Revenue impact, user impact, compliance, reputation
758
+ 3. **Quality Risks** - Testability, maintainability, reliability concerns
759
+ 4. **Integration Risks** - Third-party services, APIs, data flows
760
+
761
+ **MINIMUM: 5 total risks. Target: 10+ risks.**
762
+
763
+ ### For EACH Risk, Provide:
764
+
765
+ | Field | Requirement |
766
+ |-------|-------------|
767
+ | Risk ID | R001, R002, etc. |
768
+ | Description | Specific, actionable description (not vague) |
769
+ | Category | Technical, Business, Quality, or Integration |
770
+ | Likelihood | 1-5 scale with justification |
771
+ | Impact | 1-5 scale with justification |
772
+ | Risk Score | Likelihood × Impact |
773
+ | Mitigation | Specific mitigation strategy |
774
+ | Owner | Suggested owner (Dev, QE, Product, Ops) |
775
+
776
+ ### Critical Risk Threshold
777
+ - Score ≥ 15 = CRITICAL (must be flagged prominently)
778
+ - Score 10-14 = HIGH
779
+ - Score 5-9 = MEDIUM
780
+ - Score < 5 = LOW
781
+
782
+ ## OUTPUT FORMAT
783
+
784
+ Markdown with:
785
+ 1. Executive Summary (top 3 risks in bold)
786
+ 2. Risk Matrix Table (sorted by score descending)
787
+ 3. Critical Risks Section (if any score ≥ 15)
788
+ 4. Mitigation Priority List
789
+
790
+ ## VALIDATION BEFORE SUBMITTING
791
+
792
+ ✓ Did I identify at least 5 risks?
793
+ ✓ Did I cover all 4 risk categories?
794
+ ✓ Does every risk have likelihood, impact, AND score?
795
+ ✓ Are critical risks (≥15) clearly flagged?
796
+ ✓ Does every risk have a specific mitigation?`,
797
+ subagent_type: "qe-risk-assessor",
798
+ run_in_background: true
799
+ })
800
+ ```
801
+
802
+ ### Agent 3: Requirements Validator
803
+
804
+ **This agent MUST provide testability score 0-100. No ranges.**
805
+
806
+ ```
807
+ Task({
808
+ description: "AC validation and testability scoring",
809
+ prompt: `You are qe-requirements-validator. Your output quality is being audited.
810
+
811
+ ## METHODOLOGY
812
+
813
+ Apply context-driven-testing and testability-scoring principles.
814
+
815
+ ## ACCEPTANCE CRITERIA TO VALIDATE
816
+
817
+ === ACCEPTANCE CRITERIA START ===
818
+ [PASTE THE COMPLETE ACCEPTANCE CRITERIA HERE - DO NOT SUMMARIZE]
819
+ === ACCEPTANCE CRITERIA END ===
820
+
821
+ ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
822
+
823
+ ### 1. Testability Score (MANDATORY - SINGLE NUMBER)
824
+
825
+ Score each of the 10 testability principles (0-10 each):
826
+
827
+ | Principle | Score | Evidence |
828
+ |-----------|-------|----------|
829
+ | Controllability | X/10 | Can we control inputs/state? |
830
+ | Observability | X/10 | Can we observe outputs/behavior? |
831
+ | Isolability | X/10 | Can we test in isolation? |
832
+ | Separation of Concerns | X/10 | Are responsibilities clear? |
833
+ | Understandability | X/10 | Is behavior clearly specified? |
834
+ | Automatability | X/10 | Can tests be automated? |
835
+ | Heterogeneity | X/10 | Works across environments? |
836
+ | Simplicity | X/10 | Is complexity manageable? |
837
+ | Stability | X/10 | Are requirements stable? |
838
+ | Information Availability | X/10 | Do we have needed info? |
839
+
840
+ **TOTAL TESTABILITY SCORE: XX/100**
841
+
842
+ ### 2. AC Completeness Assessment
843
+
844
+ For EACH acceptance criterion:
845
+
846
+ | AC ID | Text | INVEST Score | Issues | Testable? |
847
+ |-------|------|--------------|--------|-----------|
848
+ | AC1 | ... | X/6 | ... | Yes/No |
849
+
850
+ INVEST Criteria:
851
+ - **I**ndependent (can be tested alone)
852
+ - **N**egotiable (not over-specified)
853
+ - **V**aluable (delivers value)
854
+ - **E**stimable (can estimate effort)
855
+ - **S**mall (testable in one session)
856
+ - **T**estable (clear pass/fail)
857
+
858
+ **AC COMPLETENESS: XX%** (ACs that are fully testable / total ACs)
859
+
860
+ ### 3. Gaps Identified (MANDATORY)
861
+
862
+ List ALL gaps found:
863
+ - Missing scenarios
864
+ - Unclear requirements
865
+ - Untestable criteria
866
+ - Ambiguous language
867
+ - Missing edge cases
868
+
869
+ **MINIMUM: Identify at least 3 gaps or explicitly state "No gaps found after thorough analysis"**
870
+
871
+ ### 4. Recommendations
872
+
873
+ Specific, actionable recommendations to improve testability.
874
+
875
+ ## VALIDATION BEFORE SUBMITTING
876
+
877
+ ✓ Did I score all 10 testability principles?
878
+ ✓ Did I calculate a single testability score (not a range)?
879
+ ✓ Did I assess every AC against INVEST?
880
+ ✓ Did I calculate AC completeness percentage?
881
+ ✓ Did I identify gaps (or explicitly confirm none)?`,
882
+ subagent_type: "qe-requirements-validator",
883
+ run_in_background: true
884
+ })
885
+ ```
886
+
887
+ ### Alternative: MCP Tools Execution
888
+
889
+ If using MCP instead of Task tool:
890
+
891
+ ```javascript
892
+ // Option 1: Orchestrate via Queen Coordinator
893
+ mcp__agentic_qe__fleet_init({
894
+ topology: "hierarchical",
895
+ enabledDomains: ["requirements-validation", "coverage-analysis"],
896
+ maxAgents: 6,
897
+ lazyLoading: true
898
+ })
899
+
900
+ // Submit tasks to specific domains
901
+ mcp__agentic_qe__task_submit({
902
+ type: "quality-criteria-analysis",
903
+ priority: "p0",
904
+ payload: {
905
+ epicContent: epicContent,
906
+ outputFormat: "html",
907
+ htsmVersion: "6.3"
908
+ }
909
+ })
910
+
911
+ mcp__agentic_qe__task_submit({
912
+ type: "risk-assessment",
913
+ priority: "p0",
914
+ payload: {
915
+ epicContent: epicContent,
916
+ riskCategories: ["technical", "business", "quality", "integration"]
917
+ }
918
+ })
919
+
920
+ mcp__agentic_qe__task_submit({
921
+ type: "requirements-validation",
922
+ priority: "p0",
923
+ payload: {
924
+ acceptanceCriteria: acContent,
925
+ scoreTestability: true,
926
+ validateInvest: true
927
+ }
928
+ })
929
+
930
+ // Check task status
931
+ mcp__agentic_qe__task_list({ status: "pending" })
932
+ ```
933
+
934
+ ### Alternative: CLI Execution
935
+
936
+ If using CLI instead of Task tool:
937
+
938
+ ```bash
939
+ # Initialize swarm for ideation
940
+ npx @claude-flow/cli@latest swarm init \
941
+ --topology hierarchical \
942
+ --max-agents 6 \
943
+ --strategy specialized
944
+
945
+ # Pre-task hook for routing
946
+ npx @claude-flow/cli@latest hooks pre-task \
947
+ --description "QCSD Ideation: Quality Criteria, Risk Assessment, AC Validation"
948
+
949
+ # Spawn agents (run in separate terminals or background)
950
+ npx @claude-flow/cli@latest agent spawn \
951
+ --type qe-quality-criteria-recommender \
952
+ --task "Analyze HTSM categories for epic" &
953
+
954
+ npx @claude-flow/cli@latest agent spawn \
955
+ --type qe-risk-assessor \
956
+ --task "Risk storming analysis" &
957
+
958
+ npx @claude-flow/cli@latest agent spawn \
959
+ --type qe-requirements-validator \
960
+ --task "AC validation and testability scoring" &
961
+
962
+ # Wait for completion
963
+ wait
964
+
965
+ # Check swarm status
966
+ npx @claude-flow/cli@latest swarm status
967
+ ```
968
+
969
+ ### Post-Spawn Confirmation
970
+
971
+ After sending all three Task calls, you MUST tell the user:
972
+
973
+ ```
974
+ I've launched 3 core agents in parallel:
975
+
976
+ 🎯 qe-quality-criteria-recommender [Domain: requirements-validation]
977
+ - Analyzing all 10 HTSM v6.3 categories
978
+ - Collecting evidence with classifications
979
+ - Generating HTML report
980
+
981
+ ⚠️ qe-risk-assessor [Domain: coverage-analysis]
982
+ - Identifying Technical, Business, Quality, Integration risks
983
+ - Scoring likelihood × impact
984
+ - Prioritizing mitigations
985
+
986
+ ✅ qe-requirements-validator [Domain: requirements-validation]
987
+ - Scoring testability (10 principles)
988
+ - Validating ACs against INVEST
989
+ - Identifying gaps
990
+
991
+ ⏳ WAITING for all agents to complete before proceeding...
992
+ ```
993
+
994
+ **❌ DO NOT proceed to Phase 3 until you have sent this confirmation.**
995
+
996
+ ---
997
+
998
+ ## PHASE 3: Wait for Batch 1 Completion
999
+
1000
+ ### ⛔ ENFORCEMENT: NO EARLY PROCEEDING
1001
+
1002
+ ```
1003
+ ┌─────────────────────────────────────────────────────────────────┐
1004
+ │ YOU MUST WAIT FOR ALL THREE BACKGROUND TASKS TO COMPLETE │
1005
+ │ │
1006
+ │ ❌ DO NOT summarize what agents "would" find │
1007
+ │ ❌ DO NOT proceed to Phase 4 early │
1008
+ │ ❌ DO NOT provide your own analysis as substitute │
1009
+ │ │
1010
+ │ ✓ WAIT for actual agent results │
1011
+ │ ✓ ONLY proceed when all three have returned │
1012
+ └─────────────────────────────────────────────────────────────────┘
1013
+ ```
1014
+
1015
+ ### Results Extraction Checklist
1016
+
1017
+ When results return, extract and record:
1018
+
1019
+ ```
1020
+ From qe-quality-criteria-recommender:
1021
+ □ htsmCoverage = __/10 categories analyzed
1022
+ □ p0Count = __ P0 priority items
1023
+ □ evidenceQuality = Direct __%, Inferred __%, Claimed __%
1024
+
1025
+ From qe-risk-assessor:
1026
+ □ totalRisks = __ risks identified
1027
+ □ criticalRisks = __ risks with score ≥ 15
1028
+ □ topRiskScore = __ (highest score)
1029
+
1030
+ From qe-requirements-validator:
1031
+ □ testabilityScore = __/100
1032
+ □ acCompleteness = __%
1033
+ □ gapsIdentified = __ gaps
1034
+ ```
1035
+
1036
+ **❌ DO NOT proceed to Phase 4 until ALL fields are filled.**
1037
+
1038
+ ---
1039
+
1040
+ ## PHASE 4: Spawn Conditional Agents (PARALLEL BATCH 2)
1041
+
1042
+ ### ⛔ ENFORCEMENT: NO SKIPPING CONDITIONAL AGENTS
1043
+
1044
+ ```
1045
+ ┌─────────────────────────────────────────────────────────────────┐
1046
+ │ IF A FLAG IS TRUE, YOU MUST SPAWN THAT AGENT │
1047
+ │ │
1048
+ │ HAS_UI = TRUE → MUST spawn qe-accessibility-auditor │
1049
+ │ HAS_SECURITY = TRUE → MUST spawn qe-security-auditor │
1050
+ │ HAS_UX = TRUE → MUST spawn qe-qx-partner │
1051
+ │ │
1052
+ │ Skipping a flagged agent is a FAILURE of this skill. │
1053
+ └─────────────────────────────────────────────────────────────────┘
1054
+ ```
1055
+
1056
+ ### Conditional Domain Mapping
1057
+
1058
+ | Flag | Agent | Domain | MCP Tool |
1059
+ |------|-------|--------|----------|
1060
+ | HAS_UI | qe-accessibility-auditor | visual-accessibility | `accessibility_test` |
1061
+ | HAS_SECURITY | qe-security-auditor | security-compliance | `security_scan_comprehensive` |
1062
+ | HAS_UX | qe-qx-partner | cross-domain | `task_orchestrate` |
1063
+
1064
+ ### Decision Tree
1065
+
1066
+ ```
1067
+ IF HAS_UI == FALSE AND HAS_SECURITY == FALSE AND HAS_UX == FALSE:
1068
+ → Skip to Phase 5 (no conditional agents needed)
1069
+ → State: "No conditional agents needed based on epic analysis"
1070
+
1071
+ ELSE:
1072
+ → Spawn ALL applicable agents in ONE message
1073
+ → Count how many you're spawning: __
1074
+ ```
1075
+
1076
+ ### IF HAS_UI: Accessibility Auditor (MANDATORY WHEN FLAGGED)
1077
+
1078
+ ```
1079
+ Task({
1080
+ description: "Early accessibility review",
1081
+ prompt: `You are qe-accessibility-auditor. Your output quality is being audited.
1082
+
1083
+ ## EPIC CONTENT
1084
+
1085
+ === EPIC CONTENT START ===
1086
+ [PASTE THE COMPLETE EPIC CONTENT HERE]
1087
+ === EPIC CONTENT END ===
1088
+
1089
+ ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1090
+
1091
+ ### 1. UI Components Inventory
1092
+
1093
+ List EVERY UI component mentioned or implied:
1094
+ | Component | Type | A11y Risk Level |
1095
+ |-----------|------|-----------------|
1096
+
1097
+ ### 2. WCAG 2.1 AA Risk Assessment
1098
+
1099
+ For each component, assess against:
1100
+ - Perceivable (text alternatives, captions, adaptable, distinguishable)
1101
+ - Operable (keyboard, timing, seizures, navigation)
1102
+ - Understandable (readable, predictable, input assistance)
1103
+ - Robust (compatible with assistive tech)
1104
+
1105
+ ### 3. Keyboard Navigation Requirements
1106
+
1107
+ List ALL interactions that MUST support keyboard:
1108
+ - [ ] Requirement 1
1109
+ - [ ] Requirement 2
1110
+ - ...
1111
+
1112
+ ### 4. Screen Reader Considerations
1113
+
1114
+ What must be announced? What ARIA roles needed?
1115
+
1116
+ ### 5. Findings Summary
1117
+
1118
+ | Finding | Severity | WCAG Criterion | Recommendation |
1119
+ |---------|----------|----------------|----------------|
1120
+
1121
+ Severity: Critical (blocker), Major (significant barrier), Minor (inconvenience)
1122
+
1123
+ **MINIMUM: 3 findings or explicit "No accessibility risks identified after thorough analysis"**`,
1124
+ subagent_type: "qe-accessibility-auditor",
1125
+ run_in_background: true
1126
+ })
1127
+ ```
1128
+
1129
+ ### IF HAS_SECURITY: Security Auditor (MANDATORY WHEN FLAGGED)
1130
+
1131
+ ```
1132
+ Task({
1133
+ description: "Security threat modeling",
1134
+ prompt: `You are qe-security-auditor. Your output quality is being audited.
1135
+
1136
+ ## EPIC CONTENT
1137
+
1138
+ === EPIC CONTENT START ===
1139
+ [PASTE THE COMPLETE EPIC CONTENT HERE]
1140
+ === EPIC CONTENT END ===
1141
+
1142
+ ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1143
+
1144
+ ### 1. STRIDE Threat Model
1145
+
1146
+ Analyze against ALL SIX categories:
1147
+
1148
+ | Threat Type | Applicable? | Threats Identified | Mitigations |
1149
+ |-------------|-------------|-------------------|-------------|
1150
+ | **S**poofing | Yes/No | ... | ... |
1151
+ | **T**ampering | Yes/No | ... | ... |
1152
+ | **R**epudiation | Yes/No | ... | ... |
1153
+ | **I**nformation Disclosure | Yes/No | ... | ... |
1154
+ | **D**enial of Service | Yes/No | ... | ... |
1155
+ | **E**levation of Privilege | Yes/No | ... | ... |
1156
+
1157
+ ### 2. Authentication/Authorization Requirements
1158
+
1159
+ - Auth method required: ___
1160
+ - Session management: ___
1161
+ - Permission model: ___
1162
+
1163
+ ### 3. Data Protection Concerns
1164
+
1165
+ | Data Type | Classification | Protection Required |
1166
+ |-----------|---------------|---------------------|
1167
+ | ... | PII/Sensitive/Public | Encryption/Masking/None |
1168
+
1169
+ ### 4. Compliance Implications
1170
+
1171
+ Check ALL that apply:
1172
+ - [ ] GDPR (EU user data)
1173
+ - [ ] CCPA (California user data)
1174
+ - [ ] SOC 2 (security controls)
1175
+ - [ ] HIPAA (health data)
1176
+ - [ ] PCI-DSS (payment data)
1177
+ - [ ] Other: ___
1178
+
1179
+ ### 5. Security Testing Requirements
1180
+
1181
+ What security tests MUST be performed?
1182
+
1183
+ **MINIMUM: Identify threats in at least 3 STRIDE categories**`,
1184
+ subagent_type: "qe-security-auditor",
1185
+ run_in_background: true
1186
+ })
1187
+ ```
1188
+
1189
+ ### IF HAS_UX: QX Partner (MANDATORY WHEN FLAGGED)
1190
+
1191
+ ```
1192
+ Task({
1193
+ description: "Quality Experience analysis",
1194
+ prompt: `You are qe-qx-partner. Your output quality is being audited.
1195
+
1196
+ ## METHODOLOGY
1197
+
1198
+ Apply holistic-testing-pact methodology (PACT principles).
1199
+
1200
+ ## EPIC CONTENT
1201
+
1202
+ === EPIC CONTENT START ===
1203
+ [PASTE THE COMPLETE EPIC CONTENT HERE]
1204
+ === EPIC CONTENT END ===
1205
+
1206
+ ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1207
+
1208
+ ### 1. PACT Analysis
1209
+
1210
+ | Dimension | Analysis |
1211
+ |-----------|----------|
1212
+ | **P**eople | Who are the users? Personas? Needs? |
1213
+ | **A**ctivities | What are they trying to do? Goals? |
1214
+ | **C**ontexts | Where/when/how do they use this? |
1215
+ | **T**echnologies | What tech constraints exist? |
1216
+
1217
+ ### 2. User Personas Affected
1218
+
1219
+ | Persona | Impact Level | Key Concerns |
1220
+ |---------|--------------|--------------|
1221
+ | ... | High/Medium/Low | ... |
1222
+
1223
+ ### 3. User Journey Impact
1224
+
1225
+ Map affected touchpoints:
1226
+ ```
1227
+ [Entry] → [Step 1] → [Step 2] → [Exit]
1228
+ ↑ Impact ↑ Impact
1229
+ ```
1230
+
1231
+ ### 4. Quality Experience Risks
1232
+
1233
+ | QX Risk | User Feeling | Business Impact |
1234
+ |---------|--------------|-----------------|
1235
+ | ... | Frustrated/Confused/Delighted | ... |
1236
+
1237
+ ### 5. UX Testing Recommendations
1238
+
1239
+ What UX-specific tests are needed?
1240
+ - Usability testing needs
1241
+ - User research gaps
1242
+ - A/B testing candidates
1243
+
1244
+ **MINIMUM: Identify 3 QX risks or explicit "No QX risks after thorough analysis"**`,
1245
+ subagent_type: "qe-qx-partner",
1246
+ run_in_background: true
1247
+ })
1248
+ ```
1249
+
1250
+ ### Alternative: MCP Tools for Conditional Agents
1251
+
1252
+ ```javascript
1253
+ // IF HAS_UI - Enable visual-accessibility domain
1254
+ if (HAS_UI) {
1255
+ mcp__agentic_qe__accessibility_test({
1256
+ url: targetUrl, // if web-based
1257
+ standard: "WCAG21AA"
1258
+ })
1259
+ }
1260
+
1261
+ // IF HAS_SECURITY - Enable security-compliance domain
1262
+ if (HAS_SECURITY) {
1263
+ mcp__agentic_qe__security_scan_comprehensive({
1264
+ target: "src/",
1265
+ sast: true,
1266
+ dast: false // No runtime yet in ideation
1267
+ })
1268
+ }
1269
+
1270
+ // IF HAS_UX - Cross-domain analysis
1271
+ if (HAS_UX) {
1272
+ mcp__agentic_qe__task_orchestrate({
1273
+ task: "qx-analysis",
1274
+ strategy: "adaptive"
1275
+ })
1276
+ }
1277
+ ```
1278
+
1279
+ ### Alternative: CLI for Conditional Agents
1280
+
1281
+ ```bash
1282
+ # IF HAS_UI
1283
+ if [ "$HAS_UI" = "TRUE" ]; then
1284
+ npx @claude-flow/cli@latest agent spawn \
1285
+ --type qe-accessibility-auditor \
1286
+ --task "WCAG 2.1 AA assessment" &
1287
+ fi
1288
+
1289
+ # IF HAS_SECURITY
1290
+ if [ "$HAS_SECURITY" = "TRUE" ]; then
1291
+ npx @claude-flow/cli@latest agent spawn \
1292
+ --type qe-security-auditor \
1293
+ --task "STRIDE threat modeling" &
1294
+ fi
1295
+
1296
+ # IF HAS_UX
1297
+ if [ "$HAS_UX" = "TRUE" ]; then
1298
+ npx @claude-flow/cli@latest agent spawn \
1299
+ --type qe-qx-partner \
1300
+ --task "PACT quality experience analysis" &
1301
+ fi
1302
+
1303
+ # Wait for conditional agents
1304
+ wait
1305
+ ```
1306
+
1307
+ ### Post-Spawn Confirmation (If Applicable)
1308
+
1309
+ ```
1310
+ I've launched [N] conditional agent(s) in parallel:
1311
+
1312
+ [IF HAS_UI] ♿ qe-accessibility-auditor [Domain: visual-accessibility] - WCAG 2.1 AA assessment
1313
+ [IF HAS_SECURITY] 🔒 qe-security-auditor [Domain: security-compliance] - STRIDE threat modeling
1314
+ [IF HAS_UX] 💫 qe-qx-partner [Domain: cross-domain] - PACT quality experience analysis
1315
+
1316
+ ⏳ WAITING for conditional agents to complete...
1317
+ ```
1318
+
1319
+ ---
1320
+
1321
+ ## PHASE 5: Synthesize Results & Determine Recommendation
1322
+
1323
+ ### ⛔ ENFORCEMENT: EXACT DECISION LOGIC
1324
+
1325
+ **You MUST apply this logic EXACTLY. No interpretation.**
1326
+
1327
+ ```
1328
+ STEP 1: Check NO-GO conditions (ANY triggers NO-GO)
1329
+ ─────────────────────────────────────────────────
1330
+ IF testabilityScore < 40 → NO-GO (reason: "Testability critically low")
1331
+ IF htsmCoverage < 6 → NO-GO (reason: "Insufficient quality coverage")
1332
+ IF acCompleteness < 50 → NO-GO (reason: "Acceptance criteria incomplete")
1333
+ IF criticalRisks > 2 → NO-GO (reason: "Too many critical risks")
1334
+
1335
+ STEP 2: Check GO conditions (ALL required for GO)
1336
+ ─────────────────────────────────────────────────
1337
+ IF testabilityScore >= 80
1338
+ AND htsmCoverage >= 8
1339
+ AND acCompleteness >= 90
1340
+ AND criticalRisks == 0 → GO
1341
+
1342
+ STEP 3: Default
1343
+ ─────────────────────────────────────────────────
1344
+ ELSE → CONDITIONAL
1345
+ ```
1346
+
1347
+ ### Decision Recording
1348
+
1349
+ ```
1350
+ METRICS:
1351
+ - testabilityScore = __/100
1352
+ - htsmCoverage = __/10
1353
+ - acCompleteness = __%
1354
+ - criticalRisks = __
1355
+
1356
+ NO-GO CHECK:
1357
+ - testabilityScore < 40? __ (YES/NO)
1358
+ - htsmCoverage < 6? __ (YES/NO)
1359
+ - acCompleteness < 50? __ (YES/NO)
1360
+ - criticalRisks > 2? __ (YES/NO)
1361
+
1362
+ GO CHECK (only if no NO-GO triggered):
1363
+ - testabilityScore >= 80? __ (YES/NO)
1364
+ - htsmCoverage >= 8? __ (YES/NO)
1365
+ - acCompleteness >= 90? __ (YES/NO)
1366
+ - criticalRisks == 0? __ (YES/NO)
1367
+
1368
+ FINAL RECOMMENDATION: [GO / CONDITIONAL / NO-GO]
1369
+ REASON: ___
1370
+ ```
1371
+
1372
+ ---
1373
+
1374
+ ## PHASE 6: Generate Ideation Report
1375
+
1376
+ ### ⛔ ENFORCEMENT: COMPLETE REPORT STRUCTURE
1377
+
1378
+ **ALL sections below are MANDATORY. No abbreviations.**
1379
+
1380
+ ```markdown
1381
+ # QCSD Ideation Report: [Epic Name]
1382
+
1383
+ **Generated**: [Date/Time]
1384
+ **Recommendation**: [GO / CONDITIONAL / NO-GO]
1385
+ **Agents Executed**: [List all agents that ran]
1386
+
1387
+ ---
1388
+
1389
+ ## Executive Summary
1390
+
1391
+ | Metric | Value | Threshold | Status |
1392
+ |--------|-------|-----------|--------|
1393
+ | HTSM Coverage | X/10 | ≥8 | ✅/⚠️/❌ |
1394
+ | Testability Score | X% | ≥80% | ✅/⚠️/❌ |
1395
+ | AC Completeness | X% | ≥90% | ✅/⚠️/❌ |
1396
+ | Critical Risks | X | 0 | ✅/⚠️/❌ |
1397
+
1398
+ **Recommendation Rationale**: [1-2 sentences explaining why GO/CONDITIONAL/NO-GO]
1399
+
1400
+ ---
1401
+
1402
+ ## Quality Criteria Analysis (HTSM v6.3)
1403
+
1404
+ [EMBED or LINK the HTML report from qe-quality-criteria-recommender]
1405
+
1406
+ ### Priority Items Summary
1407
+
1408
+ | Priority | Count | Categories |
1409
+ |----------|-------|------------|
1410
+ | P0 (Critical) | X | [list] |
1411
+ | P1 (High) | X | [list] |
1412
+ | P2 (Medium) | X | [list] |
1413
+ | P3 (Low) | X | [list] |
1414
+
1415
+ ### Cross-Cutting Concerns
1416
+ [List any concerns that span multiple categories]
1417
+
1418
+ ---
1419
+
1420
+ ## Risk Assessment
1421
+
1422
+ ### Risk Matrix
1423
+
1424
+ | ID | Risk | Category | L | I | Score | Mitigation |
1425
+ |----|------|----------|---|---|-------|------------|
1426
+ [ALL risks from qe-risk-assessor, sorted by score]
1427
+
1428
+ ### Critical Risks (Score ≥ 15)
1429
+ [Highlight critical risks with detailed mitigation plans]
1430
+
1431
+ ### Risk Distribution
1432
+ - Technical: X risks
1433
+ - Business: X risks
1434
+ - Quality: X risks
1435
+ - Integration: X risks
1436
+
1437
+ ---
1438
+
1439
+ ## Requirements Validation
1440
+
1441
+ ### Testability Score: X/100
1442
+
1443
+ | Principle | Score | Notes |
1444
+ |-----------|-------|-------|
1445
+ [All 10 principles from qe-requirements-validator]
1446
+
1447
+ ### AC Completeness: X%
1448
+
1449
+ | AC | Status | Issues |
1450
+ |----|--------|--------|
1451
+ [All ACs evaluated]
1452
+
1453
+ ### Gaps Identified
1454
+ 1. [Gap 1]
1455
+ 2. [Gap 2]
1456
+ [All gaps from qe-requirements-validator]
1457
+
1458
+ ---
1459
+
1460
+ ## Conditional Analysis
1461
+
1462
+ [INCLUDE ONLY IF APPLICABLE - based on which conditional agents ran]
1463
+
1464
+ ### Accessibility Review (IF HAS_UI)
1465
+ [Full output from qe-accessibility-auditor]
1466
+
1467
+ ### Security Assessment (IF HAS_SECURITY)
1468
+ [Full output from qe-security-auditor]
1469
+
1470
+ ### Quality Experience (IF HAS_UX)
1471
+ [Full output from qe-qx-partner]
1472
+
1473
+ ---
1474
+
1475
+ ## Recommended Next Steps
1476
+
1477
+ ### Immediate Actions (Before Development)
1478
+ - [ ] [Action based on findings]
1479
+ - [ ] [Action based on findings]
1480
+
1481
+ ### During Development
1482
+ - [ ] [Action based on findings]
1483
+
1484
+ ### Pre-Release
1485
+ - [ ] [Action based on findings]
1486
+
1487
+ ---
1488
+
1489
+ ## Appendix: Agent Outputs
1490
+
1491
+ [Link to or embed full outputs from each agent]
1492
+
1493
+ ---
1494
+
1495
+ *Generated by QCSD Ideation Swarm v6.1*
1496
+ *Execution Model: Task Tool Parallel Swarm*
1497
+ ```
1498
+
1499
+ ### Report Validation Checklist
1500
+
1501
+ Before presenting report:
1502
+ ```
1503
+ ✓ Executive Summary table is complete with all 4 metrics
1504
+ ✓ Recommendation matches decision logic output
1505
+ ✓ Quality Criteria section includes priority summary
1506
+ ✓ Risk Matrix includes ALL identified risks
1507
+ ✓ Testability score shows all 10 principles
1508
+ ✓ All gaps are listed
1509
+ ✓ Conditional sections included for all spawned agents
1510
+ ✓ Next steps are specific and actionable (not generic)
1511
+ ```
1512
+
1513
+ **❌ DO NOT present an incomplete report.**
1514
+
1515
+ ---
1516
+
1517
+ ## PHASE 7: Store Learnings & Persist State
1518
+
1519
+ ### Purpose
1520
+
1521
+ Store ideation findings for:
1522
+ - Cross-phase feedback loops (Production → next Ideation cycle)
1523
+ - Historical analysis of GO/CONDITIONAL/NO-GO decisions
1524
+ - Pattern learning across epics
1525
+
1526
+ ### Option A: MCP Memory Tools (RECOMMENDED)
1527
+
1528
+ ```javascript
1529
+ // Store ideation findings
1530
+ mcp__agentic_qe__memory_store({
1531
+ key: `qcsd-ideation-${epicId}-${Date.now()}`,
1532
+ namespace: "qcsd-ideation",
1533
+ value: {
1534
+ epicId: epicId,
1535
+ epicName: epicName,
1536
+ recommendation: recommendation, // GO, CONDITIONAL, NO-GO
1537
+ metrics: {
1538
+ htsmCoverage: htsmCoverage,
1539
+ testabilityScore: testabilityScore,
1540
+ acCompleteness: acCompleteness,
1541
+ criticalRisks: criticalRisks
1542
+ },
1543
+ domains: {
1544
+ requirementsValidation: true,
1545
+ coverageAnalysis: true,
1546
+ securityCompliance: HAS_SECURITY,
1547
+ visualAccessibility: HAS_UI,
1548
+ crossDomain: HAS_UX
1549
+ },
1550
+ agentsInvoked: agentList,
1551
+ timestamp: new Date().toISOString()
1552
+ }
1553
+ })
1554
+
1555
+ // Share learnings with learning coordinator for cross-domain patterns
1556
+ mcp__agentic_qe__memory_share({
1557
+ sourceAgentId: "qcsd-ideation-swarm",
1558
+ targetAgentIds: ["qe-learning-coordinator", "qe-pattern-learner"],
1559
+ knowledgeDomain: "ideation-patterns"
1560
+ })
1561
+
1562
+ // Query previous ideation results for similar epics
1563
+ mcp__agentic_qe__memory_query({
1564
+ pattern: "qcsd-ideation-*",
1565
+ namespace: "qcsd-ideation"
1566
+ })
1567
+ ```
1568
+
1569
+ ### Option B: CLI Memory Commands
1570
+
1571
+ ```bash
1572
+ # Store ideation findings
1573
+ npx @claude-flow/cli@latest memory store \
1574
+ --key "qcsd-ideation-${EPIC_ID}" \
1575
+ --value '{"recommendation":"GO","testabilityScore":85,"htsmCoverage":9}' \
1576
+ --namespace qcsd-ideation
1577
+
1578
+ # Search for similar epics
1579
+ npx @claude-flow/cli@latest memory search \
1580
+ --query "ideation recommendation" \
1581
+ --namespace qcsd-ideation
1582
+
1583
+ # List all ideation records
1584
+ npx @claude-flow/cli@latest memory list \
1585
+ --namespace qcsd-ideation
1586
+
1587
+ # Post-task hook for learning
1588
+ npx @claude-flow/cli@latest hooks post-task \
1589
+ --task-id "qcsd-ideation-${EPIC_ID}" \
1590
+ --success true
1591
+ ```
1592
+
1593
+ ### Option C: Direct File Storage (Fallback)
1594
+
1595
+ If MCP/CLI not available, save to `.agentic-qe/`:
1596
+
1597
+ ```bash
1598
+ # Output directory structure
1599
+ .agentic-qe/
1600
+ ├── quality-criteria/
1601
+ │ └── [epic-name]-htsm-analysis.html
1602
+ ├── ideation-reports/
1603
+ │ └── [epic-name]-ideation-report.md
1604
+ └── learnings/
1605
+ └── [epic-id]-ideation-metrics.json
1606
+ ```
1607
+
1608
+ ---
1609
+
1610
+ ## Quick Reference
1611
+
1612
+ ### Enforcement Summary
1613
+
1614
+ | Phase | Must Do | Failure Condition |
1615
+ |-------|---------|-------------------|
1616
+ | 1 | Check ALL 3 flags | Missing flag evaluation |
1617
+ | 2 | Spawn ALL 3 core agents in ONE message | Fewer than 3 Task calls |
1618
+ | 3 | WAIT for completion | Proceeding before results |
1619
+ | 4 | Spawn ALL flagged conditional agents | Skipping a TRUE flag |
1620
+ | 5 | Apply EXACT decision logic | Wrong recommendation |
1621
+ | 6 | Generate COMPLETE report | Missing sections |
1622
+ | 7 | Store learnings (if MCP/CLI available) | Pattern loss |
1623
+
1624
+ ### Quality Gate Thresholds
1625
+
1626
+ | Metric | GO | CONDITIONAL | NO-GO |
1627
+ |--------|-----|-------------|-------|
1628
+ | Testability | ≥80% | 40-79% | <40% |
1629
+ | HTSM Coverage | ≥8/10 | 6-7/10 | <6/10 |
1630
+ | AC Completeness | ≥90% | 50-89% | <50% |
1631
+ | Critical Risks | 0 | 1-2 | >2 |
1632
+
1633
+ ### Domain-to-Agent Mapping
1634
+
1635
+ | Domain | Agent | Primary Phase |
1636
+ |--------|-------|---------------|
1637
+ | requirements-validation | qe-quality-criteria-recommender | Ideation (P) |
1638
+ | requirements-validation | qe-requirements-validator | Ideation (P) |
1639
+ | coverage-analysis | qe-risk-assessor | Ideation (P) |
1640
+ | security-compliance | qe-security-auditor | Ideation (S - conditional) |
1641
+ | visual-accessibility | qe-accessibility-auditor | Ideation (S - conditional) |
1642
+ | cross-domain | qe-qx-partner | Ideation (S - conditional) |
1643
+
1644
+ ### Execution Model Quick Reference
1645
+
1646
+ | Model | Initialization | Agent Spawn | Memory Store |
1647
+ |-------|---------------|-------------|--------------|
1648
+ | **Task Tool** | N/A | `Task({ subagent_type, run_in_background: true })` | N/A (use MCP) |
1649
+ | **MCP Tools** | `fleet_init({})` | `task_submit({})` | `memory_store({})` |
1650
+ | **CLI** | `swarm init` | `agent spawn` | `memory store` |
1651
+
1652
+ ### MCP Tools Quick Reference
1653
+
1654
+ ```javascript
1655
+ // Initialization
1656
+ mcp__agentic_qe__fleet_init({ topology: "hierarchical", enabledDomains: [...], maxAgents: 6 })
1657
+
1658
+ // Task submission
1659
+ mcp__agentic_qe__task_submit({ type: "...", priority: "p0", payload: {...} })
1660
+ mcp__agentic_qe__task_orchestrate({ task: "...", strategy: "parallel" })
1661
+
1662
+ // Status
1663
+ mcp__agentic_qe__fleet_status({ verbose: true })
1664
+ mcp__agentic_qe__task_list({ status: "pending" })
1665
+
1666
+ // Memory
1667
+ mcp__agentic_qe__memory_store({ key: "...", value: {...}, namespace: "qcsd-ideation" })
1668
+ mcp__agentic_qe__memory_query({ pattern: "qcsd-*", namespace: "qcsd-ideation" })
1669
+ mcp__agentic_qe__memory_share({ sourceAgentId: "...", targetAgentIds: [...], knowledgeDomain: "..." })
1670
+ ```
1671
+
1672
+ ### CLI Quick Reference
1673
+
1674
+ ```bash
1675
+ # Initialization
1676
+ npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 6
1677
+
1678
+ # Agent operations
1679
+ npx @claude-flow/cli@latest agent spawn --type [agent-type] --task "[description]"
1680
+ npx @claude-flow/cli@latest hooks pre-task --description "[task]"
1681
+ npx @claude-flow/cli@latest hooks post-task --task-id "[id]" --success true
1682
+
1683
+ # Status
1684
+ npx @claude-flow/cli@latest swarm status
1685
+
1686
+ # Memory
1687
+ npx @claude-flow/cli@latest memory store --key "[key]" --value "[json]" --namespace qcsd-ideation
1688
+ npx @claude-flow/cli@latest memory search --query "[query]" --namespace qcsd-ideation
1689
+ npx @claude-flow/cli@latest memory list --namespace qcsd-ideation
1690
+ ```
1691
+
1692
+ ### Swarm Topology
1693
+
1694
+ ```
1695
+ QCSD IDEATION SWARM v7.0
1696
+
1697
+ ┌───────────────┼───────────────┐
1698
+ │ │ │
1699
+ ┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐
1700
+ │Quality │ │ Risk │ │ AC │
1701
+ │Criteria │ │ Assessor │ │ Validator │
1702
+ │ (HTML) │ │ │ │ │
1703
+ │─────────│ │───────────│ │───────────│
1704
+ │req-valid│ │cov-anlysis│ │req-valid │
1705
+ └────┬────┘ └─────┬─────┘ └─────┬─────┘
1706
+ │ │ │
1707
+ └───────────────┼───────────────┘
1708
+
1709
+ [QUALITY GATE]
1710
+
1711
+ ┌───────────────┼───────────────┐
1712
+ │ │ │
1713
+ ┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐
1714
+ │ A11y │ │ Security │ │ QX │
1715
+ │[IF UI] │ │[IF AUTH] │ │ [IF UX] │
1716
+ │─────────│ │───────────│ │───────────│
1717
+ │vis-a11y │ │sec-compli │ │cross-dom │
1718
+ └─────────┘ └───────────┘ └───────────┘
1719
+ ```
1720
+
1721
+ ---
1722
+
1723
+ ## Inventory Summary
1724
+
1725
+ | Resource Type | Count | Primary | Conditional |
1726
+ |---------------|:-----:|:-------:|:-----------:|
1727
+ | **Agents** | 6 | 3 | 3 |
1728
+ | **Sub-agents** | 0 | - | - |
1729
+ | **Skills** | 4 | 4 | - |
1730
+ | **Domains** | 5 | 2 | 3 |
1731
+
1732
+ **Skills Used:**
1733
+ 1. `testability-scoring` - 10 testability principles
1734
+ 2. `risk-based-testing` - Risk prioritization
1735
+ 3. `context-driven-testing` - Context-appropriate strategy
1736
+ 4. `holistic-testing-pact` - PACT methodology (People, Activities, Contexts, Technologies)
1737
+
1738
+ ---
1739
+
1740
+ ## Key Principle
1741
+
1742
+ **Quality is built in from the start, not tested in at the end.**
1743
+
1744
+ This swarm provides:
1745
+ 1. **What quality criteria matter?** → HTSM Analysis (10 categories)
1746
+ 2. **What risks exist?** → Risk Storming (4 categories)
1747
+ 3. **Are requirements testable?** → AC Validation (10 principles)
1748
+ 4. **Is it accessible/secure/good UX?** → Conditional specialists
1749
+ 5. **Should we proceed?** → GO/CONDITIONAL/NO-GO decision
1750
+ 6. **What did we learn?** → Memory persistence for future cycles