agentic-qe 1.1.0 → 1.3.0

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 (567) hide show
  1. package/.claude/agents/qe-coverage-analyzer.md +8 -0
  2. package/.claude/agents/qe-flaky-test-hunter.md +9 -1
  3. package/.claude/agents/qe-test-generator.md +7 -0
  4. package/.claude/agents/reasoning/agent.md +816 -0
  5. package/.claude/agents/reasoning/goal-planner.md +73 -0
  6. package/.claude/settings.json +64 -25
  7. package/.claude/skills/README.md +124 -0
  8. package/.claude/skills/accessibility-testing/SKILL.md +777 -0
  9. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  10. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  11. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  12. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  13. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  14. package/.claude/skills/agentic-quality-engineering/SKILL.md +604 -0
  15. package/.claude/skills/api-testing-patterns/SKILL.md +686 -0
  16. package/.claude/skills/bug-reporting-excellence/SKILL.md +632 -0
  17. package/.claude/skills/chaos-engineering-resilience/SKILL.md +109 -0
  18. package/.claude/skills/code-review-quality/SKILL.md +683 -0
  19. package/.claude/skills/compatibility-testing/SKILL.md +101 -0
  20. package/.claude/skills/compliance-testing/SKILL.md +162 -0
  21. package/.claude/skills/consultancy-practices/SKILL.md +540 -0
  22. package/.claude/skills/context-driven-testing/SKILL.md +466 -0
  23. package/.claude/skills/contract-testing/SKILL.md +193 -0
  24. package/.claude/skills/database-testing/SKILL.md +243 -0
  25. package/.claude/skills/exploratory-testing-advanced/SKILL.md +676 -0
  26. package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
  27. package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
  28. package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
  29. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  30. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  31. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  32. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  33. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  34. package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
  35. package/.claude/skills/holistic-testing-pact/SKILL.md +225 -0
  36. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  37. package/.claude/skills/localization-testing/SKILL.md +115 -0
  38. package/.claude/skills/mobile-testing/SKILL.md +548 -0
  39. package/.claude/skills/mutation-testing/SKILL.md +129 -0
  40. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  41. package/.claude/skills/performance-analysis/SKILL.md +563 -0
  42. package/.claude/skills/performance-testing/SKILL.md +662 -0
  43. package/.claude/skills/quality-metrics/SKILL.md +592 -0
  44. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  45. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  46. package/.claude/skills/refactoring-patterns/SKILL.md +778 -0
  47. package/.claude/skills/regression-testing/SKILL.md +1045 -0
  48. package/.claude/skills/risk-based-testing/SKILL.md +721 -0
  49. package/.claude/skills/security-testing/SKILL.md +651 -0
  50. package/.claude/skills/shift-left-testing/SKILL.md +535 -0
  51. package/.claude/skills/shift-right-testing/SKILL.md +591 -0
  52. package/.claude/skills/skill-builder/SKILL.md +910 -0
  53. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  54. package/.claude/skills/stream-chain/SKILL.md +563 -0
  55. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  56. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  57. package/.claude/skills/tdd-london-chicago/SKILL.md +567 -0
  58. package/.claude/skills/technical-writing/SKILL.md +235 -0
  59. package/.claude/skills/test-automation-strategy/SKILL.md +842 -0
  60. package/.claude/skills/test-data-management/SKILL.md +1067 -0
  61. package/.claude/skills/test-design-techniques/SKILL.md +160 -0
  62. package/.claude/skills/test-environment-management/SKILL.md +204 -0
  63. package/.claude/skills/test-reporting-analytics/SKILL.md +143 -0
  64. package/.claude/skills/verification-quality/SKILL.md +649 -0
  65. package/.claude/skills/visual-testing-advanced/SKILL.md +148 -0
  66. package/.claude/skills/xp-practices/SKILL.md +671 -0
  67. package/.claude/statusline-command.sh +176 -0
  68. package/CHANGELOG.md +623 -6
  69. package/README.md +101 -5
  70. package/config/improvement-loop.config.ts +323 -0
  71. package/config/neural-agent.config.ts +197 -0
  72. package/dist/adapters/MemoryStoreAdapter.d.ts +16 -16
  73. package/dist/adapters/MemoryStoreAdapter.d.ts.map +1 -1
  74. package/dist/adapters/MemoryStoreAdapter.js +16 -16
  75. package/dist/adapters/MemoryStoreAdapter.js.map +1 -1
  76. package/dist/agents/BaseAgent.d.ts +69 -0
  77. package/dist/agents/BaseAgent.d.ts.map +1 -1
  78. package/dist/agents/BaseAgent.js +387 -5
  79. package/dist/agents/BaseAgent.js.map +1 -1
  80. package/dist/agents/CoverageAnalyzerAgent.d.ts +13 -2
  81. package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
  82. package/dist/agents/CoverageAnalyzerAgent.js +112 -12
  83. package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
  84. package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
  85. package/dist/agents/DeploymentReadinessAgent.js +13 -13
  86. package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
  87. package/dist/agents/FlakyTestHunterAgent.d.ts +28 -0
  88. package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
  89. package/dist/agents/FlakyTestHunterAgent.js +160 -4
  90. package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
  91. package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
  92. package/dist/agents/FleetCommanderAgent.js +4 -3
  93. package/dist/agents/FleetCommanderAgent.js.map +1 -1
  94. package/dist/agents/LearningAgent.d.ts +14 -5
  95. package/dist/agents/LearningAgent.d.ts.map +1 -1
  96. package/dist/agents/LearningAgent.js +36 -16
  97. package/dist/agents/LearningAgent.js.map +1 -1
  98. package/dist/agents/NeuralAgentExtension.d.ts +117 -0
  99. package/dist/agents/NeuralAgentExtension.d.ts.map +1 -0
  100. package/dist/agents/NeuralAgentExtension.js +288 -0
  101. package/dist/agents/NeuralAgentExtension.js.map +1 -0
  102. package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
  103. package/dist/agents/PerformanceTesterAgent.js +11 -9
  104. package/dist/agents/PerformanceTesterAgent.js.map +1 -1
  105. package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
  106. package/dist/agents/ProductionIntelligenceAgent.js +14 -13
  107. package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
  108. package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
  109. package/dist/agents/QualityAnalyzerAgent.js +39 -38
  110. package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
  111. package/dist/agents/QualityGateAgent.d.ts.map +1 -1
  112. package/dist/agents/QualityGateAgent.js +7 -6
  113. package/dist/agents/QualityGateAgent.js.map +1 -1
  114. package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
  115. package/dist/agents/RegressionRiskAnalyzerAgent.js +22 -21
  116. package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
  117. package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
  118. package/dist/agents/RequirementsValidatorAgent.js +1 -1
  119. package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
  120. package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
  121. package/dist/agents/SecurityScannerAgent.js +8 -7
  122. package/dist/agents/SecurityScannerAgent.js.map +1 -1
  123. package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
  124. package/dist/agents/TestDataArchitectAgent.js +12 -11
  125. package/dist/agents/TestDataArchitectAgent.js.map +1 -1
  126. package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
  127. package/dist/agents/TestExecutorAgent.js +18 -19
  128. package/dist/agents/TestExecutorAgent.js.map +1 -1
  129. package/dist/agents/TestGeneratorAgent.d.ts +15 -4
  130. package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
  131. package/dist/agents/TestGeneratorAgent.js +172 -49
  132. package/dist/agents/TestGeneratorAgent.js.map +1 -1
  133. package/dist/agents/index.d.ts.map +1 -1
  134. package/dist/agents/index.js +2 -1
  135. package/dist/agents/index.js.map +1 -1
  136. package/dist/agents/mixins/NeuralCapableMixin.d.ts +130 -0
  137. package/dist/agents/mixins/NeuralCapableMixin.d.ts.map +1 -0
  138. package/dist/agents/mixins/NeuralCapableMixin.js +358 -0
  139. package/dist/agents/mixins/NeuralCapableMixin.js.map +1 -0
  140. package/dist/agents/mixins/QUICCapableMixin.d.ts +34 -0
  141. package/dist/agents/mixins/QUICCapableMixin.d.ts.map +1 -0
  142. package/dist/agents/mixins/QUICCapableMixin.js +346 -0
  143. package/dist/agents/mixins/QUICCapableMixin.js.map +1 -0
  144. package/dist/cli/commands/agent/benchmark.d.ts.map +1 -1
  145. package/dist/cli/commands/agent/benchmark.js +2 -1
  146. package/dist/cli/commands/agent/benchmark.js.map +1 -1
  147. package/dist/cli/commands/agent/index.d.ts +5 -0
  148. package/dist/cli/commands/agent/index.d.ts.map +1 -1
  149. package/dist/cli/commands/agent/index.js +11 -6
  150. package/dist/cli/commands/agent/index.js.map +1 -1
  151. package/dist/cli/commands/agent/kill.d.ts +13 -0
  152. package/dist/cli/commands/agent/kill.d.ts.map +1 -0
  153. package/dist/cli/commands/agent/kill.js +65 -0
  154. package/dist/cli/commands/agent/kill.js.map +1 -0
  155. package/dist/cli/commands/agent/list.d.ts +19 -0
  156. package/dist/cli/commands/agent/list.d.ts.map +1 -0
  157. package/dist/cli/commands/agent/list.js +92 -0
  158. package/dist/cli/commands/agent/list.js.map +1 -0
  159. package/dist/cli/commands/agent/logs.d.ts +14 -0
  160. package/dist/cli/commands/agent/logs.d.ts.map +1 -0
  161. package/dist/cli/commands/agent/logs.js +77 -0
  162. package/dist/cli/commands/agent/logs.js.map +1 -0
  163. package/dist/cli/commands/agent/metrics.d.ts +21 -0
  164. package/dist/cli/commands/agent/metrics.d.ts.map +1 -0
  165. package/dist/cli/commands/agent/metrics.js +87 -0
  166. package/dist/cli/commands/agent/metrics.js.map +1 -0
  167. package/dist/cli/commands/agent/spawn.d.ts +28 -0
  168. package/dist/cli/commands/agent/spawn.d.ts.map +1 -0
  169. package/dist/cli/commands/agent/spawn.js +84 -0
  170. package/dist/cli/commands/agent/spawn.js.map +1 -0
  171. package/dist/cli/commands/analyze.d.ts.map +1 -1
  172. package/dist/cli/commands/analyze.js +2 -1
  173. package/dist/cli/commands/analyze.js.map +1 -1
  174. package/dist/cli/commands/config/list.d.ts.map +1 -1
  175. package/dist/cli/commands/config/list.js +2 -1
  176. package/dist/cli/commands/config/list.js.map +1 -1
  177. package/dist/cli/commands/config/set.d.ts +7 -0
  178. package/dist/cli/commands/config/set.d.ts.map +1 -1
  179. package/dist/cli/commands/config/set.js +35 -4
  180. package/dist/cli/commands/config/set.js.map +1 -1
  181. package/dist/cli/commands/fleet/logs.d.ts.map +1 -1
  182. package/dist/cli/commands/fleet/logs.js +2 -1
  183. package/dist/cli/commands/fleet/logs.js.map +1 -1
  184. package/dist/cli/commands/fleet/metrics.d.ts.map +1 -1
  185. package/dist/cli/commands/fleet/metrics.js +2 -1
  186. package/dist/cli/commands/fleet/metrics.js.map +1 -1
  187. package/dist/cli/commands/fleet/monitor.d.ts.map +1 -1
  188. package/dist/cli/commands/fleet/monitor.js +7 -5
  189. package/dist/cli/commands/fleet/monitor.js.map +1 -1
  190. package/dist/cli/commands/fleet.d.ts.map +1 -1
  191. package/dist/cli/commands/fleet.js +2 -1
  192. package/dist/cli/commands/fleet.js.map +1 -1
  193. package/dist/cli/commands/generate.d.ts.map +1 -1
  194. package/dist/cli/commands/generate.js +2 -1
  195. package/dist/cli/commands/generate.js.map +1 -1
  196. package/dist/cli/commands/improve/index.d.ts.map +1 -1
  197. package/dist/cli/commands/improve/index.js +12 -11
  198. package/dist/cli/commands/improve/index.js.map +1 -1
  199. package/dist/cli/commands/init.d.ts +24 -0
  200. package/dist/cli/commands/init.d.ts.map +1 -1
  201. package/dist/cli/commands/init.js +503 -11
  202. package/dist/cli/commands/init.js.map +1 -1
  203. package/dist/cli/commands/learn/index.d.ts.map +1 -1
  204. package/dist/cli/commands/learn/index.js +13 -12
  205. package/dist/cli/commands/learn/index.js.map +1 -1
  206. package/dist/cli/commands/monitor/alerts.d.ts.map +1 -1
  207. package/dist/cli/commands/monitor/alerts.js +2 -1
  208. package/dist/cli/commands/monitor/alerts.js.map +1 -1
  209. package/dist/cli/commands/patterns/index.d.ts.map +1 -1
  210. package/dist/cli/commands/patterns/index.js +20 -19
  211. package/dist/cli/commands/patterns/index.js.map +1 -1
  212. package/dist/cli/commands/quality/decision.d.ts.map +1 -1
  213. package/dist/cli/commands/quality/decision.js +9 -7
  214. package/dist/cli/commands/quality/decision.js.map +1 -1
  215. package/dist/cli/commands/quality/gate.d.ts.map +1 -1
  216. package/dist/cli/commands/quality/gate.js +10 -8
  217. package/dist/cli/commands/quality/gate.js.map +1 -1
  218. package/dist/cli/commands/quality/policy.d.ts.map +1 -1
  219. package/dist/cli/commands/quality/policy.js +10 -8
  220. package/dist/cli/commands/quality/policy.js.map +1 -1
  221. package/dist/cli/commands/quality/risk.d.ts.map +1 -1
  222. package/dist/cli/commands/quality/risk.js +5 -3
  223. package/dist/cli/commands/quality/risk.js.map +1 -1
  224. package/dist/cli/commands/quality/validate.d.ts.map +1 -1
  225. package/dist/cli/commands/quality/validate.js +10 -8
  226. package/dist/cli/commands/quality/validate.js.map +1 -1
  227. package/dist/cli/commands/quantization.d.ts +6 -0
  228. package/dist/cli/commands/quantization.d.ts.map +1 -0
  229. package/dist/cli/commands/quantization.js +188 -0
  230. package/dist/cli/commands/quantization.js.map +1 -0
  231. package/dist/cli/commands/routing/index.d.ts +0 -6
  232. package/dist/cli/commands/routing/index.d.ts.map +1 -1
  233. package/dist/cli/commands/routing/index.js +17 -16
  234. package/dist/cli/commands/routing/index.js.map +1 -1
  235. package/dist/cli/commands/run.d.ts.map +1 -1
  236. package/dist/cli/commands/run.js +2 -1
  237. package/dist/cli/commands/run.js.map +1 -1
  238. package/dist/cli/commands/skills/index.d.ts +51 -0
  239. package/dist/cli/commands/skills/index.d.ts.map +1 -0
  240. package/dist/cli/commands/skills/index.js +365 -0
  241. package/dist/cli/commands/skills/index.js.map +1 -0
  242. package/dist/cli/commands/test/debug.d.ts.map +1 -1
  243. package/dist/cli/commands/test/debug.js +2 -1
  244. package/dist/cli/commands/test/debug.js.map +1 -1
  245. package/dist/cli/commands/test/mutate.d.ts.map +1 -1
  246. package/dist/cli/commands/test/mutate.js +2 -1
  247. package/dist/cli/commands/test/mutate.js.map +1 -1
  248. package/dist/cli/commands/test/parallel.d.ts.map +1 -1
  249. package/dist/cli/commands/test/parallel.js +6 -4
  250. package/dist/cli/commands/test/parallel.js.map +1 -1
  251. package/dist/cli/commands/test/profile.d.ts.map +1 -1
  252. package/dist/cli/commands/test/profile.js +3 -2
  253. package/dist/cli/commands/test/profile.js.map +1 -1
  254. package/dist/cli/commands/test/queue.d.ts.map +1 -1
  255. package/dist/cli/commands/test/queue.js +2 -1
  256. package/dist/cli/commands/test/queue.js.map +1 -1
  257. package/dist/cli/commands/test/retry.d.ts.map +1 -1
  258. package/dist/cli/commands/test/retry.js +6 -4
  259. package/dist/cli/commands/test/retry.js.map +1 -1
  260. package/dist/cli/commands/test/trace.d.ts.map +1 -1
  261. package/dist/cli/commands/test/trace.js +2 -1
  262. package/dist/cli/commands/test/trace.js.map +1 -1
  263. package/dist/cli/commands/test/watch.d.ts.map +1 -1
  264. package/dist/cli/commands/test/watch.js +3 -2
  265. package/dist/cli/commands/test/watch.js.map +1 -1
  266. package/dist/cli/commands/workflow/cancel.d.ts.map +1 -1
  267. package/dist/cli/commands/workflow/cancel.js +2 -1
  268. package/dist/cli/commands/workflow/cancel.js.map +1 -1
  269. package/dist/cli/index-working.js +9 -8
  270. package/dist/cli/index-working.js.map +1 -1
  271. package/dist/cli/index.js +97 -1
  272. package/dist/cli/index.js.map +1 -1
  273. package/dist/core/EventBus.d.ts +38 -0
  274. package/dist/core/EventBus.d.ts.map +1 -1
  275. package/dist/core/EventBus.js +176 -31
  276. package/dist/core/EventBus.js.map +1 -1
  277. package/dist/core/FleetManager.d.ts +35 -1
  278. package/dist/core/FleetManager.d.ts.map +1 -1
  279. package/dist/core/FleetManager.js +121 -45
  280. package/dist/core/FleetManager.js.map +1 -1
  281. package/dist/core/MemoryManager.d.ts +19 -1
  282. package/dist/core/MemoryManager.d.ts.map +1 -1
  283. package/dist/core/MemoryManager.js +25 -1
  284. package/dist/core/MemoryManager.js.map +1 -1
  285. package/dist/core/coordination/OODACoordination.d.ts.map +1 -1
  286. package/dist/core/coordination/OODACoordination.js +2 -1
  287. package/dist/core/coordination/OODACoordination.js.map +1 -1
  288. package/dist/core/embeddings/EmbeddingCache.d.ts +134 -0
  289. package/dist/core/embeddings/EmbeddingCache.d.ts.map +1 -0
  290. package/dist/core/embeddings/EmbeddingCache.js +239 -0
  291. package/dist/core/embeddings/EmbeddingCache.js.map +1 -0
  292. package/dist/core/embeddings/EmbeddingGenerator.d.ts +224 -0
  293. package/dist/core/embeddings/EmbeddingGenerator.d.ts.map +1 -0
  294. package/dist/core/embeddings/EmbeddingGenerator.js +459 -0
  295. package/dist/core/embeddings/EmbeddingGenerator.js.map +1 -0
  296. package/dist/core/embeddings/index.d.ts +15 -0
  297. package/dist/core/embeddings/index.d.ts.map +1 -0
  298. package/dist/core/embeddings/index.js +22 -0
  299. package/dist/core/embeddings/index.js.map +1 -0
  300. package/dist/core/memory/AgentDBIntegration.d.ts +35 -0
  301. package/dist/core/memory/AgentDBIntegration.d.ts.map +1 -0
  302. package/dist/core/memory/AgentDBIntegration.js +75 -0
  303. package/dist/core/memory/AgentDBIntegration.js.map +1 -0
  304. package/dist/core/memory/AgentDBManager.d.ts +200 -0
  305. package/dist/core/memory/AgentDBManager.d.ts.map +1 -0
  306. package/dist/core/memory/AgentDBManager.js +246 -0
  307. package/dist/core/memory/AgentDBManager.js.map +1 -0
  308. package/dist/core/memory/AgentDBService.d.ts +160 -0
  309. package/dist/core/memory/AgentDBService.d.ts.map +1 -0
  310. package/dist/core/memory/AgentDBService.js +450 -0
  311. package/dist/core/memory/AgentDBService.js.map +1 -0
  312. package/dist/core/memory/RealAgentDBAdapter.d.ts +51 -0
  313. package/dist/core/memory/RealAgentDBAdapter.d.ts.map +1 -0
  314. package/dist/core/memory/RealAgentDBAdapter.js +231 -0
  315. package/dist/core/memory/RealAgentDBAdapter.js.map +1 -0
  316. package/dist/core/memory/ReasoningBankAdapter.d.ts +58 -0
  317. package/dist/core/memory/ReasoningBankAdapter.d.ts.map +1 -0
  318. package/dist/core/memory/ReasoningBankAdapter.js +77 -0
  319. package/dist/core/memory/ReasoningBankAdapter.js.map +1 -0
  320. package/dist/core/memory/SwarmMemoryManager.d.ts +75 -3
  321. package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
  322. package/dist/core/memory/SwarmMemoryManager.js +240 -55
  323. package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
  324. package/dist/core/memory/index.d.ts +4 -0
  325. package/dist/core/memory/index.d.ts.map +1 -1
  326. package/dist/core/memory/index.js +9 -1
  327. package/dist/core/memory/index.js.map +1 -1
  328. package/dist/core/neural/NeuralTrainer.d.ts +137 -0
  329. package/dist/core/neural/NeuralTrainer.d.ts.map +1 -0
  330. package/dist/core/neural/NeuralTrainer.js +544 -0
  331. package/dist/core/neural/NeuralTrainer.js.map +1 -0
  332. package/dist/core/neural/index.d.ts +8 -0
  333. package/dist/core/neural/index.d.ts.map +1 -0
  334. package/dist/core/neural/index.js +24 -0
  335. package/dist/core/neural/index.js.map +1 -0
  336. package/dist/core/neural/types.d.ts +216 -0
  337. package/dist/core/neural/types.d.ts.map +1 -0
  338. package/dist/core/neural/types.js +8 -0
  339. package/dist/core/neural/types.js.map +1 -0
  340. package/dist/core/quantization/QuantizationManager.d.ts +83 -0
  341. package/dist/core/quantization/QuantizationManager.d.ts.map +1 -0
  342. package/dist/core/quantization/QuantizationManager.js +264 -0
  343. package/dist/core/quantization/QuantizationManager.js.map +1 -0
  344. package/dist/core/quantization/index.d.ts +5 -0
  345. package/dist/core/quantization/index.d.ts.map +1 -0
  346. package/dist/core/quantization/index.js +9 -0
  347. package/dist/core/quantization/index.js.map +1 -0
  348. package/dist/core/security/CertificateValidator.d.ts +130 -0
  349. package/dist/core/security/CertificateValidator.d.ts.map +1 -0
  350. package/dist/core/security/CertificateValidator.js +376 -0
  351. package/dist/core/security/CertificateValidator.js.map +1 -0
  352. package/dist/core/transport/QUICTransport.d.ts +62 -0
  353. package/dist/core/transport/QUICTransport.d.ts.map +1 -0
  354. package/dist/core/transport/QUICTransport.js +381 -0
  355. package/dist/core/transport/QUICTransport.js.map +1 -0
  356. package/dist/core/transport/SecureQUICTransport.d.ts +71 -0
  357. package/dist/core/transport/SecureQUICTransport.d.ts.map +1 -0
  358. package/dist/core/transport/SecureQUICTransport.js +253 -0
  359. package/dist/core/transport/SecureQUICTransport.js.map +1 -0
  360. package/dist/learning/AdvancedFeatureExtractor.d.ts +123 -0
  361. package/dist/learning/AdvancedFeatureExtractor.d.ts.map +1 -0
  362. package/dist/learning/AdvancedFeatureExtractor.js +423 -0
  363. package/dist/learning/AdvancedFeatureExtractor.js.map +1 -0
  364. package/dist/learning/FlakyPredictionModel.d.ts +11 -1
  365. package/dist/learning/FlakyPredictionModel.d.ts.map +1 -1
  366. package/dist/learning/FlakyPredictionModel.js +82 -35
  367. package/dist/learning/FlakyPredictionModel.js.map +1 -1
  368. package/dist/learning/FlakyTestDetector.d.ts +9 -0
  369. package/dist/learning/FlakyTestDetector.d.ts.map +1 -1
  370. package/dist/learning/FlakyTestDetector.js +28 -6
  371. package/dist/learning/FlakyTestDetector.js.map +1 -1
  372. package/dist/learning/ImprovementLoop.d.ts +16 -2
  373. package/dist/learning/ImprovementLoop.d.ts.map +1 -1
  374. package/dist/learning/ImprovementLoop.js +67 -8
  375. package/dist/learning/ImprovementLoop.js.map +1 -1
  376. package/dist/learning/ImprovementWorker.d.ts +83 -0
  377. package/dist/learning/ImprovementWorker.d.ts.map +1 -0
  378. package/dist/learning/ImprovementWorker.js +164 -0
  379. package/dist/learning/ImprovementWorker.js.map +1 -0
  380. package/dist/learning/NeuralPatternMatcher.d.ts +184 -0
  381. package/dist/learning/NeuralPatternMatcher.d.ts.map +1 -0
  382. package/dist/learning/NeuralPatternMatcher.js +702 -0
  383. package/dist/learning/NeuralPatternMatcher.js.map +1 -0
  384. package/dist/learning/NeuralTrainer.d.ts +209 -0
  385. package/dist/learning/NeuralTrainer.d.ts.map +1 -0
  386. package/dist/learning/NeuralTrainer.js +478 -0
  387. package/dist/learning/NeuralTrainer.js.map +1 -0
  388. package/dist/learning/index.d.ts +13 -7
  389. package/dist/learning/index.d.ts.map +1 -1
  390. package/dist/learning/index.js +27 -11
  391. package/dist/learning/index.js.map +1 -1
  392. package/dist/learning/types.d.ts +1 -0
  393. package/dist/learning/types.d.ts.map +1 -1
  394. package/dist/learning/types.js +16 -0
  395. package/dist/learning/types.js.map +1 -1
  396. package/dist/mcp/MCPToolRegistry.d.ts +34 -0
  397. package/dist/mcp/MCPToolRegistry.d.ts.map +1 -0
  398. package/dist/mcp/MCPToolRegistry.js +48 -0
  399. package/dist/mcp/MCPToolRegistry.js.map +1 -0
  400. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts +3 -3
  401. package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -1
  402. package/dist/mcp/handlers/advanced/mutation-test-execute.js +5 -4
  403. package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -1
  404. package/dist/mcp/handlers/agent-spawn.d.ts.map +1 -1
  405. package/dist/mcp/handlers/agent-spawn.js +2 -1
  406. package/dist/mcp/handlers/agent-spawn.js.map +1 -1
  407. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -1
  408. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +9 -8
  409. package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -1
  410. package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -1
  411. package/dist/mcp/handlers/analysis/coverageGapsDetect.js +6 -5
  412. package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -1
  413. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -1
  414. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +5 -4
  415. package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -1
  416. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -1
  417. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +8 -7
  418. package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -1
  419. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -1
  420. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +7 -6
  421. package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -1
  422. package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -1
  423. package/dist/mcp/handlers/analysis/securityScanComprehensive.js +18 -21
  424. package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -1
  425. package/dist/mcp/handlers/base-handler.d.ts.map +1 -1
  426. package/dist/mcp/handlers/base-handler.js +2 -9
  427. package/dist/mcp/handlers/base-handler.js.map +1 -1
  428. package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -1
  429. package/dist/mcp/handlers/chaos/chaos-inject-failure.js +4 -3
  430. package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -1
  431. package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -1
  432. package/dist/mcp/handlers/chaos/chaos-inject-latency.js +6 -5
  433. package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -1
  434. package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -1
  435. package/dist/mcp/handlers/coordination/event-emit.js +2 -1
  436. package/dist/mcp/handlers/coordination/event-emit.js.map +1 -1
  437. package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -1
  438. package/dist/mcp/handlers/coordination/event-subscribe.js +2 -1
  439. package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -1
  440. package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -1
  441. package/dist/mcp/handlers/coordination/workflow-checkpoint.js +2 -1
  442. package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -1
  443. package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -1
  444. package/dist/mcp/handlers/coordination/workflow-create.js +2 -1
  445. package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -1
  446. package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -1
  447. package/dist/mcp/handlers/coordination/workflow-execute.js +2 -1
  448. package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -1
  449. package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -1
  450. package/dist/mcp/handlers/coordination/workflow-resume.js +2 -1
  451. package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -1
  452. package/dist/mcp/handlers/fleet-init.d.ts.map +1 -1
  453. package/dist/mcp/handlers/fleet-init.js +2 -1
  454. package/dist/mcp/handlers/fleet-init.js.map +1 -1
  455. package/dist/mcp/handlers/fleet-status.d.ts.map +1 -1
  456. package/dist/mcp/handlers/fleet-status.js +31 -30
  457. package/dist/mcp/handlers/fleet-status.js.map +1 -1
  458. package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -1
  459. package/dist/mcp/handlers/integration/dependency-check.js +3 -2
  460. package/dist/mcp/handlers/integration/dependency-check.js.map +1 -1
  461. package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -1
  462. package/dist/mcp/handlers/integration/integration-test-orchestrate.js +2 -1
  463. package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -1
  464. package/dist/mcp/handlers/optimize-tests.d.ts.map +1 -1
  465. package/dist/mcp/handlers/optimize-tests.js +33 -32
  466. package/dist/mcp/handlers/optimize-tests.js.map +1 -1
  467. package/dist/mcp/handlers/predict-defects.d.ts.map +1 -1
  468. package/dist/mcp/handlers/predict-defects.js +46 -45
  469. package/dist/mcp/handlers/predict-defects.js.map +1 -1
  470. package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -1
  471. package/dist/mcp/handlers/prediction/deployment-readiness-check.js +24 -23
  472. package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -1
  473. package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -1
  474. package/dist/mcp/handlers/prediction/predict-defects-ai.js +10 -9
  475. package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -1
  476. package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -1
  477. package/dist/mcp/handlers/prediction/regression-risk-analyze.js +10 -9
  478. package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -1
  479. package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -1
  480. package/dist/mcp/handlers/prediction/visual-test-regression.js +7 -6
  481. package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -1
  482. package/dist/mcp/handlers/quality-analyze.d.ts.map +1 -1
  483. package/dist/mcp/handlers/quality-analyze.js +53 -52
  484. package/dist/mcp/handlers/quality-analyze.js.map +1 -1
  485. package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
  486. package/dist/mcp/handlers/task-orchestrate.js +19 -18
  487. package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
  488. package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -1
  489. package/dist/mcp/handlers/test/test-execute-parallel.js +7 -6
  490. package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -1
  491. package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -1
  492. package/dist/mcp/handlers/test/test-generate-enhanced.js +2 -1
  493. package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -1
  494. package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -1
  495. package/dist/mcp/handlers/test/test-optimize-sublinear.js +3 -2
  496. package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -1
  497. package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
  498. package/dist/mcp/handlers/test-execute.js +11 -10
  499. package/dist/mcp/handlers/test-execute.js.map +1 -1
  500. package/dist/mcp/handlers/test-generate.d.ts.map +1 -1
  501. package/dist/mcp/handlers/test-generate.js +4 -3
  502. package/dist/mcp/handlers/test-generate.js.map +1 -1
  503. package/dist/mcp/server.d.ts +4 -4
  504. package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
  505. package/dist/mcp/services/AgentRegistry.js +9 -2
  506. package/dist/mcp/services/AgentRegistry.js.map +1 -1
  507. package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.d.ts.map +1 -1
  508. package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js +10 -9
  509. package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js.map +1 -1
  510. package/dist/mcp/streaming/StreamingMCPTool.d.ts.map +1 -1
  511. package/dist/mcp/streaming/StreamingMCPTool.js +2 -1
  512. package/dist/mcp/streaming/StreamingMCPTool.js.map +1 -1
  513. package/dist/mcp/streaming/TestExecuteStreamHandler.d.ts.map +1 -1
  514. package/dist/mcp/streaming/TestExecuteStreamHandler.js +6 -5
  515. package/dist/mcp/streaming/TestExecuteStreamHandler.js.map +1 -1
  516. package/dist/reasoning/TestTemplateCreator.d.ts +10 -2
  517. package/dist/reasoning/TestTemplateCreator.d.ts.map +1 -1
  518. package/dist/reasoning/TestTemplateCreator.js +81 -21
  519. package/dist/reasoning/TestTemplateCreator.js.map +1 -1
  520. package/dist/transport/QUICTransport.d.ts +340 -0
  521. package/dist/transport/QUICTransport.d.ts.map +1 -0
  522. package/dist/transport/QUICTransport.js +814 -0
  523. package/dist/transport/QUICTransport.js.map +1 -0
  524. package/dist/transport/UDPTransport.d.ts +348 -0
  525. package/dist/transport/UDPTransport.d.ts.map +1 -0
  526. package/dist/transport/UDPTransport.js +820 -0
  527. package/dist/transport/UDPTransport.js.map +1 -0
  528. package/dist/types/errors.d.ts +1 -1
  529. package/dist/types/index.d.ts +37 -0
  530. package/dist/types/index.d.ts.map +1 -1
  531. package/dist/types/index.js +2 -0
  532. package/dist/types/index.js.map +1 -1
  533. package/dist/types/pattern.types.d.ts +39 -3
  534. package/dist/types/pattern.types.d.ts.map +1 -1
  535. package/dist/types/quic.d.ts +339 -0
  536. package/dist/types/quic.d.ts.map +1 -0
  537. package/dist/types/quic.js +48 -0
  538. package/dist/types/quic.js.map +1 -0
  539. package/dist/utils/Config.js +3 -3
  540. package/dist/utils/Config.js.map +1 -1
  541. package/dist/utils/Database.d.ts +14 -0
  542. package/dist/utils/Database.d.ts.map +1 -1
  543. package/dist/utils/Database.js +51 -4
  544. package/dist/utils/Database.js.map +1 -1
  545. package/dist/utils/Logger.d.ts.map +1 -1
  546. package/dist/utils/Logger.js +111 -26
  547. package/dist/utils/Logger.js.map +1 -1
  548. package/dist/utils/ProcessExit.d.ts +23 -0
  549. package/dist/utils/ProcessExit.d.ts.map +1 -0
  550. package/dist/utils/ProcessExit.js +40 -0
  551. package/dist/utils/ProcessExit.js.map +1 -0
  552. package/dist/utils/SecureRandom.d.ts +171 -0
  553. package/dist/utils/SecureRandom.d.ts.map +1 -0
  554. package/dist/utils/SecureRandom.js +229 -0
  555. package/dist/utils/SecureRandom.js.map +1 -0
  556. package/dist/utils/SecureUrlValidator.d.ts +167 -0
  557. package/dist/utils/SecureUrlValidator.d.ts.map +1 -0
  558. package/dist/utils/SecureUrlValidator.js +306 -0
  559. package/dist/utils/SecureUrlValidator.js.map +1 -0
  560. package/dist/utils/SecureValidation.d.ts +131 -0
  561. package/dist/utils/SecureValidation.d.ts.map +1 -0
  562. package/dist/utils/SecureValidation.js +265 -0
  563. package/dist/utils/SecureValidation.js.map +1 -0
  564. package/dist/utils/validation.d.ts.map +1 -1
  565. package/dist/utils/validation.js +5 -4
  566. package/dist/utils/validation.js.map +1 -1
  567. package/package.json +31 -8
@@ -0,0 +1,721 @@
1
+ ---
2
+ name: risk-based-testing
3
+ description: Focus testing effort on highest-risk areas using risk assessment and prioritization. Use when planning test strategy, allocating testing resources, or making coverage decisions.
4
+ version: 1.0.0
5
+ category: testing
6
+ tags:
7
+ - risk-assessment
8
+ - test-strategy
9
+ - prioritization
10
+ - quality-management
11
+ - decision-making
12
+ - resource-allocation
13
+ difficulty: intermediate
14
+ estimated_time: 45-60 minutes
15
+ author: user
16
+ ---
17
+
18
+ # Risk-Based Testing
19
+
20
+ ## Core Principle
21
+
22
+ **You cannot test everything. Test what matters most.**
23
+
24
+ Risk-based testing focuses testing effort on areas where failures would cause the most harm, weighted by the likelihood of failure.
25
+
26
+ ## Risk Formula
27
+
28
+ ```
29
+ Risk = Probability of Failure × Impact of Failure
30
+ ```
31
+
32
+ **High Risk:** Test thoroughly, often, with multiple techniques
33
+ **Medium Risk:** Standard testing, automated regression
34
+ **Low Risk:** Light testing, maybe skip
35
+
36
+ ## Risk Identification
37
+
38
+ ### Business Impact Factors
39
+
40
+ **Revenue Impact**
41
+ - Directly generates revenue? (checkout, payment)
42
+ - Blocks revenue? (login, product catalog)
43
+ - Minor impact? (help documentation)
44
+
45
+ **User Impact**
46
+ - Number of users affected
47
+ - Frequency of use
48
+ - Critical to user workflow?
49
+ - Workarounds available?
50
+
51
+ **Regulatory/Compliance**
52
+ - Legal requirements
53
+ - Security standards (PCI-DSS, GDPR)
54
+ - Industry regulations
55
+ - Contractual obligations
56
+
57
+ **Reputation**
58
+ - Public-facing features
59
+ - Brand perception
60
+ - Social media amplification risk
61
+ - Customer trust impact
62
+
63
+ **Data Sensitivity**
64
+ - Financial data
65
+ - Personal information
66
+ - Health records
67
+ - Confidential business data
68
+
69
+ ### Technical Risk Factors
70
+
71
+ **Complexity**
72
+ - Complex algorithms → higher risk
73
+ - Many dependencies → higher risk
74
+ - Distributed systems → higher risk
75
+ - Simple CRUD → lower risk
76
+
77
+ **Change Frequency**
78
+ - Frequently changed code → higher risk
79
+ - New technology → higher risk
80
+ - Stable, mature code → lower risk
81
+
82
+ **Test Coverage**
83
+ - Well-tested area → lower risk
84
+ - No automated tests → higher risk
85
+ - Poor test quality → higher risk
86
+
87
+ **Historical Data**
88
+ - Bug history (hotspots)
89
+ - Production incidents
90
+ - Failed releases
91
+ - Customer complaints
92
+
93
+ **Dependencies**
94
+ - Third-party services
95
+ - Legacy systems
96
+ - Network reliability
97
+ - External APIs
98
+
99
+ ## Risk Assessment Matrix
100
+
101
+ ### Creating Risk Matrix
102
+
103
+ ```
104
+ Impact → Low Medium High Critical
105
+ ─────────────────────────────────────────────
106
+ High │ Medium High High CRITICAL
107
+ Prob │
108
+ ↓ │
109
+ Medium │ Low Medium High High
110
+
111
+ Low │ Low Low Medium Medium
112
+
113
+ Rare │ Skip Low Low Medium
114
+ ```
115
+
116
+ **Priority = Risk Level**
117
+ - Critical: Test first, test thoroughly
118
+ - High: Standard comprehensive testing
119
+ - Medium: Focused testing on key scenarios
120
+ - Low: Smoke test or skip if time-limited
121
+
122
+ ### Example Risk Assessment
123
+
124
+ **E-commerce Application:**
125
+
126
+ | Feature | Impact | Probability | Risk | Test Strategy |
127
+ |---------|--------|-------------|------|---------------|
128
+ | Payment processing | Critical | Medium | CRITICAL | Extensive testing, multiple payment types, error scenarios, security testing |
129
+ | Product search | High | Medium | High | Core flows automated, exploratory for edge cases |
130
+ | User reviews | Medium | Low | Medium | Basic functional tests, focus on new features |
131
+ | Help documentation | Low | Low | Low | Quick smoke test, spell check |
132
+ | Admin analytics | Medium | Low | Medium | Key reports tested, edge cases documented |
133
+
134
+ ## Risk-Based Test Planning
135
+
136
+ ### Step 1: Identify Risks
137
+
138
+ **Workshop with stakeholders:**
139
+ - Product owner (business risks)
140
+ - Developers (technical risks)
141
+ - Support team (common issues)
142
+ - QE (quality risks)
143
+ - Security team (security risks)
144
+
145
+ **Output:** List of potential failure points
146
+
147
+ ### Step 2: Assess Each Risk
148
+
149
+ For each risk:
150
+ 1. **Probability:** How likely is this to fail? (Rare/Low/Medium/High)
151
+ 2. **Impact:** What happens if it fails? (Low/Medium/High/Critical)
152
+ 3. **Risk Level:** Use matrix to determine
153
+
154
+ **Example:**
155
+ ```
156
+ Risk: Payment gateway timeout during high traffic
157
+
158
+ Probability: Medium
159
+ - Seen in load tests before
160
+ - Known issue during sales events
161
+ - Mitigation in place but not perfect
162
+
163
+ Impact: Critical
164
+ - Revenue loss (thousands/minute)
165
+ - Customer frustration
166
+ - Bad press potential
167
+
168
+ Risk Level: CRITICAL → Test extensively
169
+ ```
170
+
171
+ ### Step 3: Prioritize Testing
172
+
173
+ **Critical Risks:**
174
+ - Test first in sprint
175
+ - Multiple testing techniques
176
+ - Extensive test coverage
177
+ - Performance/load testing
178
+ - Security testing
179
+ - Manual exploratory testing
180
+ - Automated regression tests
181
+
182
+ **High Risks:**
183
+ - Core test scenarios automated
184
+ - Key user flows tested manually
185
+ - Edge cases documented
186
+ - Regular regression testing
187
+
188
+ **Medium Risks:**
189
+ - Happy path automated
190
+ - Basic edge case testing
191
+ - Spot-check during exploratory sessions
192
+
193
+ **Low Risks:**
194
+ - Smoke test only
195
+ - May skip if time-limited
196
+ - Document known limitations
197
+
198
+ ### Step 4: Allocate Testing Time
199
+
200
+ **Time budget based on risk:**
201
+
202
+ ```
203
+ Critical: 40% of testing time
204
+ High: 35% of testing time
205
+ Medium: 20% of testing time
206
+ Low: 5% of testing time
207
+ ```
208
+
209
+ **Adjust based on context:**
210
+ - Startup: Heavily weight Critical/High
211
+ - Mature product: More balanced
212
+ - Compliance-heavy: May need comprehensive coverage
213
+
214
+ ## Risk-Based Test Design
215
+
216
+ ### Coverage by Risk Level
217
+
218
+ **Critical Risk Area:**
219
+ ```
220
+ Test coverage:
221
+ ✓ Happy path (multiple variations)
222
+ ✓ All error scenarios
223
+ ✓ Boundary conditions
224
+ ✓ Performance under load
225
+ ✓ Security vulnerabilities
226
+ ✓ Recovery from failures
227
+ ✓ Concurrent operations
228
+ ✓ Data integrity
229
+ ✓ Integration points
230
+
231
+ Techniques:
232
+ - Exploratory testing sessions
233
+ - Automated regression suite
234
+ - Load/stress testing
235
+ - Security scanning
236
+ - Chaos engineering
237
+ ```
238
+
239
+ **Medium Risk Area:**
240
+ ```
241
+ Test coverage:
242
+ ✓ Happy path
243
+ ✓ Common error scenarios
244
+ ✓ Key boundary conditions
245
+
246
+ Techniques:
247
+ - Automated happy path tests
248
+ - Spot-check during exploratory testing
249
+ - Basic error handling verification
250
+ ```
251
+
252
+ **Low Risk Area:**
253
+ ```
254
+ Test coverage:
255
+ ✓ Smoke test (works at all?)
256
+
257
+ Techniques:
258
+ - Quick manual check
259
+ - Maybe automated smoke test
260
+ ```
261
+
262
+ ### Example: Login Feature
263
+
264
+ **Risk Assessment:**
265
+ ```
266
+ Impact: High (blocks all functionality)
267
+ Probability: Medium (well-understood, but complex)
268
+ Risk Level: High
269
+ ```
270
+
271
+ **Test Strategy:**
272
+ ```
273
+ Critical Scenarios:
274
+ ✓ Valid credentials → Success
275
+ ✓ Invalid password → Error message
276
+ ✓ Account locked after failed attempts
277
+ ✓ Session timeout handling
278
+ ✓ Multi-factor authentication
279
+ ✓ Password reset flow
280
+ ✓ SQL injection attempts
281
+ ✓ Brute force protection
282
+
283
+ Medium Priority:
284
+ ✓ Remember me functionality
285
+ ✓ Social login integration
286
+ ✓ Different user roles
287
+
288
+ Low Priority:
289
+ ✓ Login page UI variations
290
+ ✓ Keyboard navigation
291
+ ```
292
+
293
+ ## Risk Mitigation Strategies
294
+
295
+ ### Reducing Probability
296
+
297
+ **Technical Mitigation:**
298
+ - Code reviews
299
+ - Static analysis
300
+ - Test automation
301
+ - Pair programming
302
+ - Design patterns
303
+ - Simpler architecture
304
+
305
+ **Process Mitigation:**
306
+ - Feature flags (gradual rollout)
307
+ - Canary deployments
308
+ - Blue-green deployments
309
+ - Comprehensive monitoring
310
+
311
+ ### Reducing Impact
312
+
313
+ **Technical Mitigation:**
314
+ - Graceful degradation
315
+ - Circuit breakers
316
+ - Fallback mechanisms
317
+ - Data backups
318
+ - Rollback procedures
319
+
320
+ **Business Mitigation:**
321
+ - Insurance
322
+ - Service level agreements
323
+ - Customer communication plans
324
+ - Workarounds documented
325
+
326
+ ## Dynamic Risk Assessment
327
+
328
+ **Risks change over time:**
329
+
330
+ **Risk increases when:**
331
+ - Major refactoring
332
+ - New team members
333
+ - Tight deadlines
334
+ - New technology
335
+ - Integration changes
336
+ - High-traffic events coming (Black Friday)
337
+
338
+ **Risk decreases when:**
339
+ - Comprehensive test coverage
340
+ - Code stabilizes
341
+ - Team expertise grows
342
+ - Multiple successful releases
343
+ - Production monitoring improves
344
+
345
+ **Re-assess risks:**
346
+ - Every sprint planning
347
+ - Before major releases
348
+ - After production incidents
349
+ - Quarterly review
350
+
351
+ ## Production Risk Monitoring
352
+
353
+ ### Leading Indicators
354
+
355
+ Monitor for risk signals:
356
+
357
+ **Code metrics:**
358
+ - Increasing complexity
359
+ - Test coverage declining
360
+ - Code churn in critical areas
361
+ - Growing tech debt
362
+
363
+ **Team metrics:**
364
+ - Velocity dropping
365
+ - Bug fix time increasing
366
+ - Team turnover
367
+
368
+ **Production metrics:**
369
+ - Error rates trending up
370
+ - Performance degrading
371
+ - Customer complaints rising
372
+
373
+ ### Incident-Based Risk Assessment
374
+
375
+ **After each production incident:**
376
+
377
+ 1. **Root cause analysis**
378
+ - Why did it happen?
379
+ - Why wasn't it caught?
380
+
381
+ 2. **Risk re-assessment**
382
+ - Was this area properly risk-assessed?
383
+ - Should we increase testing focus?
384
+
385
+ 3. **Preventive measures**
386
+ - Add tests
387
+ - Improve monitoring
388
+ - Architectural changes
389
+
390
+ **Example:**
391
+ ```
392
+ Incident: Payment processing failed for 2 hours
393
+ Root cause: Database connection pool exhausted
394
+ Previous risk level: High
395
+ New risk level: CRITICAL
396
+ Action: Add load testing, improve monitoring, auto-scaling
397
+ ```
398
+
399
+ ## Risk-Based Automation Strategy
400
+
401
+ ### Automate Based on Risk × Frequency
402
+
403
+ ```
404
+ High Risk + High Frequency = MUST AUTOMATE
405
+ High Risk + Low Frequency = Manual testing OK
406
+ Low Risk + High Frequency = Consider automation
407
+ Low Risk + Low Frequency = Skip or manual spot-check
408
+ ```
409
+
410
+ **Automation priorities:**
411
+ ```
412
+ 1. Critical user flows (checkout, payment)
413
+ 2. High-risk regressions (known to break)
414
+ 3. Security vulnerabilities (injection, XSS)
415
+ 4. Data integrity checks
416
+ 5. Integration points
417
+ 6. Lower priority features
418
+ ```
419
+
420
+ ## Communication of Risk
421
+
422
+ ### Stakeholder Risk Dashboard
423
+
424
+ ```markdown
425
+ ## Sprint 15 Risk Dashboard
426
+
427
+ ### CRITICAL Risks
428
+ 🔴 **Payment Gateway Integration**
429
+ - Risk: Integration fails during high traffic
430
+ - Impact: Revenue loss, customer frustration
431
+ - Status: Load testing scheduled, monitoring enhanced
432
+ - Test coverage: 85% → Target: 95%
433
+
434
+ ### HIGH Risks
435
+ 🟡 **User Authentication**
436
+ - Risk: Session handling under concurrent logins
437
+ - Impact: Security vulnerability, user lockouts
438
+ - Status: Tests passing, exploratory testing planned
439
+
440
+ ### Recently Mitigated
441
+ ✅ **Database Performance** (was Critical)
442
+ - Added connection pooling
443
+ - Load testing completed successfully
444
+ - Monitoring in place
445
+ ```
446
+
447
+ ### Risk-Based Test Reports
448
+
449
+ ```markdown
450
+ ## Test Summary - Release 3.2
451
+
452
+ ### Risk Coverage
453
+ ✅ Critical Risks: 100% tested
454
+ ✅ High Risks: 95% tested
455
+ ✅ Medium Risks: 75% tested
456
+ ⚠️ Low Risks: 40% tested (acceptable)
457
+
458
+ ### Issues Found by Risk Level
459
+ - Critical: 0 open issues
460
+ - High: 1 open issue (non-blocking)
461
+ - Medium: 3 open issues (documented)
462
+ - Low: 5 open issues (deferred)
463
+
464
+ ### Recommendation: GREEN for release
465
+ All critical and high-risk areas thoroughly tested and passing.
466
+ ```
467
+
468
+ ## Practical Examples
469
+
470
+ ### Example 1: New Feature - Social Login
471
+
472
+ **Initial Risk Assessment:**
473
+ ```
474
+ Feature: Login via Google/Facebook
475
+ Impact: Medium (alternative to email login exists)
476
+ Probability: Medium (third-party integration, new to team)
477
+ Risk Level: Medium → High
478
+ ```
479
+
480
+ **Test Strategy:**
481
+ - Core flow automated
482
+ - Error scenarios tested
483
+ - Security review (OAuth flow)
484
+ - Privacy compliance check
485
+ - Fallback to email tested
486
+
487
+ ### Example 2: Bug Fix in Payment Processing
488
+
489
+ **Risk Re-Assessment:**
490
+ ```
491
+ Change: Fix rounding error in multi-currency payments
492
+ Area Risk: Critical (payment processing)
493
+ Change Risk: Medium (localized change)
494
+ Overall: High → Test thoroughly despite "simple fix"
495
+ ```
496
+
497
+ **Test Strategy:**
498
+ - Fix verified with unit tests
499
+ - Regression tests for payment flow
500
+ - Manual testing with multiple currencies
501
+ - Edge cases (0.01 amounts, max amounts)
502
+ - Deploy to staging first
503
+ - Monitor production closely
504
+
505
+ ## Combining Risk-Based with Other Approaches
506
+
507
+ ### Risk + Context-Driven Testing
508
+ - Risk identifies WHERE to test
509
+ - Context determines HOW to test
510
+
511
+ ### Risk + Exploratory Testing
512
+ - High-risk areas get more exploration time
513
+ - Use risk assessment to create charters
514
+
515
+ ### Risk + TDD
516
+ - Critical code gets TDD treatment
517
+ - Less critical code might skip TDD
518
+
519
+ ### Risk + Automation
520
+ - Risk determines automation priority
521
+ - High-risk = automate first and thoroughly
522
+
523
+ ## Common Pitfalls
524
+
525
+ ### ❌ Risk Assessment Too Generic
526
+ "High risk: payment processing"
527
+
528
+ **Better:** "Critical risk: payment processing timeout under load during checkout, especially for international transactions"
529
+
530
+ ### ❌ Not Updating Risk Assessment
531
+ Risks from 6 months ago may not be relevant now.
532
+
533
+ **Fix:** Review and update quarterly or after incidents
534
+
535
+ ### ❌ Ignoring Low Probability, High Impact
536
+ Rare but catastrophic events still need attention.
537
+
538
+ **Fix:** Some testing of high-impact items regardless of probability
539
+
540
+ ### ❌ Only Technical Risks
541
+ Missing business, regulatory, reputation risks.
542
+
543
+ **Fix:** Include diverse stakeholders in risk assessment
544
+
545
+ ## Risk-Based Testing Checklist
546
+
547
+ **Before Sprint:**
548
+ - [ ] Risks identified for new features
549
+ - [ ] Risk levels assigned
550
+ - [ ] Test strategy per risk level
551
+ - [ ] Testing time allocated by risk
552
+
553
+ **During Development:**
554
+ - [ ] Critical areas tested first
555
+ - [ ] Risk levels guide test depth
556
+ - [ ] New risks identified and assessed
557
+
558
+ **Before Release:**
559
+ - [ ] All critical risks tested and passed
560
+ - [ ] High risks have sufficient coverage
561
+ - [ ] Known issues documented with risk level
562
+ - [ ] Stakeholders informed of residual risks
563
+
564
+ **After Release:**
565
+ - [ ] Monitor for risk realization
566
+ - [ ] Update risk assessment based on learnings
567
+ - [ ] Improve testing for next cycle
568
+
569
+ ## Using with QE Agents
570
+
571
+ ### Automated Risk Assessment
572
+
573
+ **qe-regression-risk-analyzer** performs intelligent risk scoring:
574
+ ```typescript
575
+ // Agent analyzes PR for risk factors
576
+ const riskAnalysis = await agent.analyzeRisk({
577
+ diff: prChanges,
578
+ historicalData: true,
579
+ complexity: true,
580
+ testCoverage: true
581
+ });
582
+
583
+ // Returns prioritized risk areas
584
+ // {
585
+ // criticalRisks: ['payment-processing', 'auth-session'],
586
+ // highRisks: ['order-calculation'],
587
+ // recommendedTests: [...],
588
+ // estimatedEffort: '4 hours'
589
+ // }
590
+ ```
591
+
592
+ ### Risk-Driven Test Generation
593
+
594
+ **qe-test-generator** creates tests based on risk levels:
595
+ ```typescript
596
+ // Generate tests for critical risk areas
597
+ await agent.generateTests({
598
+ riskLevel: 'critical',
599
+ features: ['payment', 'checkout'],
600
+ coverage: 'comprehensive', // All scenarios + edge cases
601
+ techniques: ['boundary', 'error', 'load', 'security']
602
+ });
603
+
604
+ // Generate lighter tests for low risk
605
+ await agent.generateTests({
606
+ riskLevel: 'low',
607
+ features: ['help-docs'],
608
+ coverage: 'smoke-only' // Just verify it works
609
+ });
610
+ ```
611
+
612
+ ### Dynamic Risk Re-Assessment
613
+
614
+ **qe-production-intelligence** monitors production to update risk scores:
615
+ ```typescript
616
+ // Agent tracks production incidents
617
+ const productionRisks = await agent.analyzeIncidents({
618
+ timeframe: '30d',
619
+ severity: 'high',
620
+ frequency: 'recurring'
621
+ });
622
+
623
+ // Updates risk matrix based on real data
624
+ // "Payment processing: Medium → CRITICAL (3 incidents this month)"
625
+ // → Automatically increases test coverage for payment module
626
+ ```
627
+
628
+ ### Risk-Based Quality Gate
629
+
630
+ **qe-quality-gate** makes GO/NO-GO decisions using risk:
631
+ ```typescript
632
+ // Agent evaluates readiness for release
633
+ const decision = await agent.evaluateRelease({
634
+ strategy: 'risk-based',
635
+ criteria: {
636
+ criticalRisks: 'all-tested-and-passed',
637
+ highRisks: 'coverage >= 90%',
638
+ mediumRisks: 'coverage >= 75%',
639
+ lowRisks: 'documented-only'
640
+ }
641
+ });
642
+
643
+ // Returns:
644
+ // {
645
+ // decision: 'GO' | 'NO-GO',
646
+ // blockers: [],
647
+ // residualRisks: ['Low: UI glitch in admin panel (documented)'],
648
+ // confidence: 0.95
649
+ // }
650
+ ```
651
+
652
+ ### Fleet Coordination for Risk Management
653
+
654
+ ```typescript
655
+ // Multiple agents collaborate on risk management
656
+ const riskFleet = await FleetManager.coordinate({
657
+ strategy: 'risk-based-testing',
658
+ agents: [
659
+ 'qe-regression-risk-analyzer', // Identify risks
660
+ 'qe-test-generator', // Generate risk-targeted tests
661
+ 'qe-test-executor', // Execute by priority
662
+ 'qe-production-intelligence', // Update risk from production
663
+ 'qe-quality-gate' // Make release decision
664
+ ],
665
+ topology: 'sequential'
666
+ });
667
+
668
+ // Executes full risk-based workflow
669
+ await riskFleet.execute({
670
+ release: 'v3.2',
671
+ riskMatrix: 'e-commerce-default'
672
+ });
673
+ ```
674
+
675
+ ### Agent-Assisted Risk Workshops
676
+
677
+ ```typescript
678
+ // Agent facilitates risk identification workshop
679
+ const workshop = await qe-requirements-validator.facilitateRiskWorkshop({
680
+ participants: ['product', 'dev', 'qe', 'support', 'security'],
681
+ features: ['new-checkout-flow'],
682
+ duration: '60min'
683
+ });
684
+
685
+ // Agent synthesizes input into risk matrix
686
+ // Identifies: 15 risks across 5 categories
687
+ // Prioritizes: 3 critical, 5 high, 7 medium
688
+ // Recommends: Test strategy per risk level
689
+ ```
690
+
691
+ ---
692
+
693
+ ## Related Skills
694
+
695
+ **Core Quality Practices:**
696
+ - [agentic-quality-engineering](../agentic-quality-engineering/) - Risk-based agent coordination
697
+ - [holistic-testing-pact](../holistic-testing-pact/) - Risk coverage across test quadrants
698
+ - [context-driven-testing](../context-driven-testing/) - Risk assessment in context
699
+
700
+ **Testing Approaches:**
701
+ - [exploratory-testing-advanced](../exploratory-testing-advanced/) - Risk-guided exploration charters
702
+ - [test-automation-strategy](../test-automation-strategy/) - Automate based on risk × frequency
703
+ - [api-testing-patterns](../api-testing-patterns/) - API risk scenarios
704
+ - [performance-testing](../performance-testing/) - Load test high-risk areas
705
+ - [security-testing](../security-testing/) - Security risk assessment
706
+
707
+ **Communication:**
708
+ - [quality-metrics](../quality-metrics/) - Risk-based metrics dashboard
709
+ - [bug-reporting-excellence](../bug-reporting-excellence/) - Communicate bug risk levels
710
+
711
+ ---
712
+
713
+ ## Remember
714
+
715
+ **Perfect testing is impossible. Smart testing is achievable.**
716
+
717
+ Focus effort where it matters most. Accept that low-risk areas might have bugs. Communicate risk clearly. Adjust as you learn.
718
+
719
+ Risk-based testing isn't about testing less - it's about testing smarter.
720
+
721
+ **With Agents**: Agents automate risk scoring, continuously update risk matrices from production data, and orchestrate test generation based on risk priorities. Use agents to make risk-based testing data-driven and scalable.