agentic-qe 1.4.4 → 1.5.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 (390) hide show
  1. package/.claude/agents/qe-api-contract-validator.md +133 -27
  2. package/.claude/agents/qe-api-contract-validator.md.backup +1148 -0
  3. package/.claude/agents/qe-api-contract-validator.md.backup-20251107-134747 +1148 -0
  4. package/.claude/agents/qe-api-contract-validator.md.backup-phase2-20251107-140039 +1123 -0
  5. package/.claude/agents/qe-chaos-engineer.md +142 -23
  6. package/.claude/agents/qe-chaos-engineer.md.backup +808 -0
  7. package/.claude/agents/qe-chaos-engineer.md.backup-20251107-134747 +808 -0
  8. package/.claude/agents/qe-chaos-engineer.md.backup-phase2-20251107-140039 +787 -0
  9. package/.claude/agents/qe-code-complexity.md +111 -23
  10. package/.claude/agents/qe-code-complexity.md.backup +291 -0
  11. package/.claude/agents/qe-code-complexity.md.backup-20251107-134747 +291 -0
  12. package/.claude/agents/qe-code-complexity.md.backup-phase2-20251107-140039 +286 -0
  13. package/.claude/agents/qe-coverage-analyzer.md +306 -30
  14. package/.claude/agents/qe-coverage-analyzer.md.backup +467 -0
  15. package/.claude/agents/qe-coverage-analyzer.md.backup-20251107-134747 +467 -0
  16. package/.claude/agents/qe-coverage-analyzer.md.backup-phase2-20251107-140039 +438 -0
  17. package/.claude/agents/qe-deployment-readiness.md +84 -28
  18. package/.claude/agents/qe-deployment-readiness.md.backup +1166 -0
  19. package/.claude/agents/qe-deployment-readiness.md.backup-20251107-134747 +1166 -0
  20. package/.claude/agents/qe-deployment-readiness.md.backup-phase2-20251107-140039 +1140 -0
  21. package/.claude/agents/qe-flaky-test-hunter.md +277 -35
  22. package/.claude/agents/qe-flaky-test-hunter.md.backup +1195 -0
  23. package/.claude/agents/qe-flaky-test-hunter.md.backup-20251107-134747 +1195 -0
  24. package/.claude/agents/qe-flaky-test-hunter.md.backup-phase2-20251107-140039 +1162 -0
  25. package/.claude/agents/qe-fleet-commander.md +126 -23
  26. package/.claude/agents/qe-fleet-commander.md.backup +718 -0
  27. package/.claude/agents/qe-fleet-commander.md.backup-20251107-134747 +718 -0
  28. package/.claude/agents/qe-fleet-commander.md.backup-phase2-20251107-140039 +697 -0
  29. package/.claude/agents/qe-performance-tester.md +314 -57
  30. package/.claude/agents/qe-performance-tester.md.backup +428 -0
  31. package/.claude/agents/qe-performance-tester.md.backup-20251107-134747 +428 -0
  32. package/.claude/agents/qe-performance-tester.md.backup-phase2-20251107-140039 +372 -0
  33. package/.claude/agents/qe-production-intelligence.md +126 -27
  34. package/.claude/agents/qe-production-intelligence.md.backup +1219 -0
  35. package/.claude/agents/qe-production-intelligence.md.backup-20251107-134747 +1219 -0
  36. package/.claude/agents/qe-production-intelligence.md.backup-phase2-20251107-140039 +1194 -0
  37. package/.claude/agents/qe-quality-analyzer.md +127 -32
  38. package/.claude/agents/qe-quality-analyzer.md.backup +425 -0
  39. package/.claude/agents/qe-quality-analyzer.md.backup-20251107-134747 +425 -0
  40. package/.claude/agents/qe-quality-analyzer.md.backup-phase2-20251107-140039 +394 -0
  41. package/.claude/agents/qe-quality-gate.md +148 -33
  42. package/.claude/agents/qe-quality-gate.md.backup +446 -0
  43. package/.claude/agents/qe-quality-gate.md.backup-20251107-134747 +446 -0
  44. package/.claude/agents/qe-quality-gate.md.backup-phase2-20251107-140039 +415 -0
  45. package/.claude/agents/qe-regression-risk-analyzer.md +78 -27
  46. package/.claude/agents/qe-regression-risk-analyzer.md.backup +1009 -0
  47. package/.claude/agents/qe-regression-risk-analyzer.md.backup-20251107-134747 +1009 -0
  48. package/.claude/agents/qe-regression-risk-analyzer.md.backup-phase2-20251107-140039 +984 -0
  49. package/.claude/agents/qe-requirements-validator.md +131 -27
  50. package/.claude/agents/qe-requirements-validator.md.backup +748 -0
  51. package/.claude/agents/qe-requirements-validator.md.backup-20251107-134747 +748 -0
  52. package/.claude/agents/qe-requirements-validator.md.backup-phase2-20251107-140039 +723 -0
  53. package/.claude/agents/qe-security-scanner.md +137 -62
  54. package/.claude/agents/qe-security-scanner.md.backup +634 -0
  55. package/.claude/agents/qe-security-scanner.md.backup-20251107-134747 +634 -0
  56. package/.claude/agents/qe-security-scanner.md.backup-phase2-20251107-140039 +573 -0
  57. package/.claude/agents/qe-test-data-architect.md +129 -26
  58. package/.claude/agents/qe-test-data-architect.md.backup +1064 -0
  59. package/.claude/agents/qe-test-data-architect.md.backup-20251107-134747 +1064 -0
  60. package/.claude/agents/qe-test-data-architect.md.backup-phase2-20251107-140039 +1040 -0
  61. package/.claude/agents/qe-test-executor.md +165 -21
  62. package/.claude/agents/qe-test-executor.md.backup +389 -0
  63. package/.claude/agents/qe-test-executor.md.backup-20251107-134747 +389 -0
  64. package/.claude/agents/qe-test-executor.md.backup-phase2-20251107-140039 +369 -0
  65. package/.claude/agents/qe-test-generator.md +379 -34
  66. package/.claude/agents/qe-test-generator.md.backup +997 -0
  67. package/.claude/agents/qe-test-generator.md.backup-20251107-134747 +997 -0
  68. package/.claude/agents/qe-visual-tester.md +236 -23
  69. package/.claude/agents/qe-visual-tester.md.backup +777 -0
  70. package/.claude/agents/qe-visual-tester.md.backup-20251107-134747 +777 -0
  71. package/.claude/agents/qe-visual-tester.md.backup-phase2-20251107-140039 +756 -0
  72. package/.claude/agents/subagents/qe-code-reviewer.md +59 -0
  73. package/.claude/agents/subagents/qe-data-generator.md +60 -0
  74. package/.claude/agents/subagents/qe-integration-tester.md +77 -0
  75. package/.claude/agents/subagents/qe-performance-validator.md +55 -0
  76. package/.claude/agents/subagents/qe-security-auditor.md +51 -0
  77. package/.claude/agents/subagents/qe-test-implementer.md +371 -0
  78. package/.claude/agents/subagents/qe-test-refactorer.md +510 -0
  79. package/.claude/agents/subagents/qe-test-writer.md +603 -0
  80. package/.claude/skills/accessibility-testing/SKILL.md +764 -777
  81. package/.claude/skills/agentic-quality-engineering/SKILL.md +0 -6
  82. package/.claude/skills/api-testing-patterns/SKILL.md +0 -12
  83. package/.claude/skills/bug-reporting-excellence/SKILL.md +0 -6
  84. package/.claude/skills/chaos-engineering-resilience/SKILL.md +0 -6
  85. package/.claude/skills/code-review-quality/SKILL.md +0 -6
  86. package/.claude/skills/compatibility-testing/SKILL.md +0 -6
  87. package/.claude/skills/compliance-testing/SKILL.md +0 -6
  88. package/.claude/skills/consultancy-practices/SKILL.md +0 -6
  89. package/.claude/skills/context-driven-testing/SKILL.md +0 -6
  90. package/.claude/skills/contract-testing/SKILL.md +0 -6
  91. package/.claude/skills/database-testing/SKILL.md +0 -6
  92. package/.claude/skills/exploratory-testing-advanced/SKILL.md +0 -6
  93. package/.claude/skills/holistic-testing-pact/SKILL.md +0 -6
  94. package/.claude/skills/localization-testing/SKILL.md +0 -6
  95. package/.claude/skills/mobile-testing/SKILL.md +535 -548
  96. package/.claude/skills/mutation-testing/SKILL.md +0 -6
  97. package/.claude/skills/performance-testing/SKILL.md +0 -6
  98. package/.claude/skills/quality-metrics/SKILL.md +0 -12
  99. package/.claude/skills/refactoring-patterns/SKILL.md +0 -6
  100. package/.claude/skills/regression-testing/SKILL.md +1033 -1045
  101. package/.claude/skills/risk-based-testing/SKILL.md +0 -12
  102. package/.claude/skills/security-testing/SKILL.md +0 -6
  103. package/.claude/skills/shift-left-testing/SKILL.md +529 -535
  104. package/.claude/skills/shift-right-testing/SKILL.md +585 -591
  105. package/.claude/skills/tdd-london-chicago/SKILL.md +0 -6
  106. package/.claude/skills/technical-writing/SKILL.md +0 -6
  107. package/.claude/skills/test-automation-strategy/SKILL.md +0 -6
  108. package/.claude/skills/test-data-management/SKILL.md +1054 -1067
  109. package/.claude/skills/test-design-techniques/SKILL.md +0 -6
  110. package/.claude/skills/test-environment-management/SKILL.md +0 -6
  111. package/.claude/skills/test-reporting-analytics/SKILL.md +0 -6
  112. package/.claude/skills/visual-testing-advanced/SKILL.md +0 -6
  113. package/.claude/skills/xp-practices/SKILL.md +0 -6
  114. package/CHANGELOG.md +397 -5
  115. package/README.md +24 -19
  116. package/dist/cli/commands/init.d.ts +4 -0
  117. package/dist/cli/commands/init.d.ts.map +1 -1
  118. package/dist/cli/commands/init.js +97 -44
  119. package/dist/cli/commands/init.js.map +1 -1
  120. package/dist/mcp/handlers/coordination/index.d.ts +14 -14
  121. package/dist/mcp/handlers/coordination/index.d.ts.map +1 -1
  122. package/dist/mcp/handlers/coordination/index.js +14 -14
  123. package/dist/mcp/handlers/coordination/index.js.map +1 -1
  124. package/dist/mcp/handlers/phase2/Phase2Tools.d.ts.map +1 -1
  125. package/dist/mcp/handlers/phase2/Phase2Tools.js +39 -10
  126. package/dist/mcp/handlers/phase2/Phase2Tools.js.map +1 -1
  127. package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts +63 -0
  128. package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts.map +1 -0
  129. package/dist/mcp/handlers/phase3/Phase3DomainTools.js +885 -0
  130. package/dist/mcp/handlers/phase3/Phase3DomainTools.js.map +1 -0
  131. package/dist/mcp/handlers/phase3/index.d.ts +6 -0
  132. package/dist/mcp/handlers/phase3/index.d.ts.map +1 -0
  133. package/dist/mcp/handlers/phase3/index.js +10 -0
  134. package/dist/mcp/handlers/phase3/index.js.map +1 -0
  135. package/dist/mcp/handlers/prediction/index.d.ts +10 -10
  136. package/dist/mcp/handlers/prediction/index.d.ts.map +1 -1
  137. package/dist/mcp/handlers/prediction/index.js +10 -10
  138. package/dist/mcp/handlers/prediction/index.js.map +1 -1
  139. package/dist/mcp/handlers/security/check-authz.d.ts +152 -0
  140. package/dist/mcp/handlers/security/check-authz.d.ts.map +1 -0
  141. package/dist/mcp/handlers/security/check-authz.js +434 -0
  142. package/dist/mcp/handlers/security/check-authz.js.map +1 -0
  143. package/dist/mcp/handlers/security/generate-report.d.ts +156 -0
  144. package/dist/mcp/handlers/security/generate-report.d.ts.map +1 -0
  145. package/dist/mcp/handlers/security/generate-report.js +469 -0
  146. package/dist/mcp/handlers/security/generate-report.js.map +1 -0
  147. package/dist/mcp/handlers/security/index.d.ts +80 -0
  148. package/dist/mcp/handlers/security/index.d.ts.map +1 -0
  149. package/dist/mcp/handlers/security/index.js +91 -0
  150. package/dist/mcp/handlers/security/index.js.map +1 -0
  151. package/dist/mcp/handlers/security/scan-comprehensive.d.ts +66 -0
  152. package/dist/mcp/handlers/security/scan-comprehensive.d.ts.map +1 -0
  153. package/dist/mcp/handlers/security/scan-comprehensive.js +296 -0
  154. package/dist/mcp/handlers/security/scan-comprehensive.js.map +1 -0
  155. package/dist/mcp/handlers/security/scan-dependencies.d.ts +148 -0
  156. package/dist/mcp/handlers/security/scan-dependencies.d.ts.map +1 -0
  157. package/dist/mcp/handlers/security/scan-dependencies.js +354 -0
  158. package/dist/mcp/handlers/security/scan-dependencies.js.map +1 -0
  159. package/dist/mcp/handlers/security/validate-auth.d.ts +128 -0
  160. package/dist/mcp/handlers/security/validate-auth.d.ts.map +1 -0
  161. package/dist/mcp/handlers/security/validate-auth.js +294 -0
  162. package/dist/mcp/handlers/security/validate-auth.js.map +1 -0
  163. package/dist/mcp/handlers/test/generate-integration-tests.d.ts +95 -0
  164. package/dist/mcp/handlers/test/generate-integration-tests.d.ts.map +1 -0
  165. package/dist/mcp/handlers/test/generate-integration-tests.js +286 -0
  166. package/dist/mcp/handlers/test/generate-integration-tests.js.map +1 -0
  167. package/dist/mcp/handlers/test/generate-unit-tests.d.ts +89 -0
  168. package/dist/mcp/handlers/test/generate-unit-tests.d.ts.map +1 -0
  169. package/dist/mcp/handlers/test/generate-unit-tests.js +273 -0
  170. package/dist/mcp/handlers/test/generate-unit-tests.js.map +1 -0
  171. package/dist/mcp/handlers/test/optimize-test-suite.d.ts +97 -0
  172. package/dist/mcp/handlers/test/optimize-test-suite.d.ts.map +1 -0
  173. package/dist/mcp/handlers/test/optimize-test-suite.js +282 -0
  174. package/dist/mcp/handlers/test/optimize-test-suite.js.map +1 -0
  175. package/dist/mcp/server.d.ts.map +1 -1
  176. package/dist/mcp/server.js +211 -0
  177. package/dist/mcp/server.js.map +1 -1
  178. package/dist/mcp/tools/deprecated.d.ts +1390 -0
  179. package/dist/mcp/tools/deprecated.d.ts.map +1 -0
  180. package/dist/mcp/tools/deprecated.js +859 -0
  181. package/dist/mcp/tools/deprecated.js.map +1 -0
  182. package/dist/mcp/tools/qe/api-contract/index.d.ts +138 -0
  183. package/dist/mcp/tools/qe/api-contract/index.d.ts.map +1 -0
  184. package/dist/mcp/tools/qe/api-contract/index.js +572 -0
  185. package/dist/mcp/tools/qe/api-contract/index.js.map +1 -0
  186. package/dist/mcp/tools/qe/code-quality/analyze-complexity.d.ts +110 -0
  187. package/dist/mcp/tools/qe/code-quality/analyze-complexity.d.ts.map +1 -0
  188. package/dist/mcp/tools/qe/code-quality/analyze-complexity.js +381 -0
  189. package/dist/mcp/tools/qe/code-quality/analyze-complexity.js.map +1 -0
  190. package/dist/mcp/tools/qe/code-quality/calculate-quality-metrics.d.ts +115 -0
  191. package/dist/mcp/tools/qe/code-quality/calculate-quality-metrics.d.ts.map +1 -0
  192. package/dist/mcp/tools/qe/code-quality/calculate-quality-metrics.js +461 -0
  193. package/dist/mcp/tools/qe/code-quality/calculate-quality-metrics.js.map +1 -0
  194. package/dist/mcp/tools/qe/code-quality/index.d.ts +12 -0
  195. package/dist/mcp/tools/qe/code-quality/index.d.ts.map +1 -0
  196. package/dist/mcp/tools/qe/code-quality/index.js +30 -0
  197. package/dist/mcp/tools/qe/code-quality/index.js.map +1 -0
  198. package/dist/mcp/tools/qe/coverage/analyze-with-risk-scoring.d.ts +58 -0
  199. package/dist/mcp/tools/qe/coverage/analyze-with-risk-scoring.d.ts.map +1 -0
  200. package/dist/mcp/tools/qe/coverage/analyze-with-risk-scoring.js +172 -0
  201. package/dist/mcp/tools/qe/coverage/analyze-with-risk-scoring.js.map +1 -0
  202. package/dist/mcp/tools/qe/coverage/calculate-trends.d.ts +73 -0
  203. package/dist/mcp/tools/qe/coverage/calculate-trends.d.ts.map +1 -0
  204. package/dist/mcp/tools/qe/coverage/calculate-trends.js +240 -0
  205. package/dist/mcp/tools/qe/coverage/calculate-trends.js.map +1 -0
  206. package/dist/mcp/tools/qe/coverage/detect-gaps-ml.d.ts +38 -0
  207. package/dist/mcp/tools/qe/coverage/detect-gaps-ml.d.ts.map +1 -0
  208. package/dist/mcp/tools/qe/coverage/detect-gaps-ml.js +204 -0
  209. package/dist/mcp/tools/qe/coverage/detect-gaps-ml.js.map +1 -0
  210. package/dist/mcp/tools/qe/coverage/index.d.ts +12 -0
  211. package/dist/mcp/tools/qe/coverage/index.d.ts.map +1 -0
  212. package/dist/mcp/tools/qe/coverage/index.js +23 -0
  213. package/dist/mcp/tools/qe/coverage/index.js.map +1 -0
  214. package/dist/mcp/tools/qe/coverage/recommend-tests.d.ts +46 -0
  215. package/dist/mcp/tools/qe/coverage/recommend-tests.d.ts.map +1 -0
  216. package/dist/mcp/tools/qe/coverage/recommend-tests.js +248 -0
  217. package/dist/mcp/tools/qe/coverage/recommend-tests.js.map +1 -0
  218. package/dist/mcp/tools/qe/flaky-detection/analyze-patterns.d.ts +179 -0
  219. package/dist/mcp/tools/qe/flaky-detection/analyze-patterns.d.ts.map +1 -0
  220. package/dist/mcp/tools/qe/flaky-detection/analyze-patterns.js +554 -0
  221. package/dist/mcp/tools/qe/flaky-detection/analyze-patterns.js.map +1 -0
  222. package/dist/mcp/tools/qe/flaky-detection/detect-statistical.d.ts +172 -0
  223. package/dist/mcp/tools/qe/flaky-detection/detect-statistical.d.ts.map +1 -0
  224. package/dist/mcp/tools/qe/flaky-detection/detect-statistical.js +498 -0
  225. package/dist/mcp/tools/qe/flaky-detection/detect-statistical.js.map +1 -0
  226. package/dist/mcp/tools/qe/flaky-detection/index.d.ts +35 -0
  227. package/dist/mcp/tools/qe/flaky-detection/index.d.ts.map +1 -0
  228. package/dist/mcp/tools/qe/flaky-detection/index.js +66 -0
  229. package/dist/mcp/tools/qe/flaky-detection/index.js.map +1 -0
  230. package/dist/mcp/tools/qe/flaky-detection/stabilize-auto.d.ts +159 -0
  231. package/dist/mcp/tools/qe/flaky-detection/stabilize-auto.d.ts.map +1 -0
  232. package/dist/mcp/tools/qe/flaky-detection/stabilize-auto.js +462 -0
  233. package/dist/mcp/tools/qe/flaky-detection/stabilize-auto.js.map +1 -0
  234. package/dist/mcp/tools/qe/fleet/index.d.ts +422 -0
  235. package/dist/mcp/tools/qe/fleet/index.d.ts.map +1 -0
  236. package/dist/mcp/tools/qe/fleet/index.js +652 -0
  237. package/dist/mcp/tools/qe/fleet/index.js.map +1 -0
  238. package/dist/mcp/tools/qe/performance/analyze-bottlenecks.d.ts +180 -0
  239. package/dist/mcp/tools/qe/performance/analyze-bottlenecks.d.ts.map +1 -0
  240. package/dist/mcp/tools/qe/performance/analyze-bottlenecks.js +347 -0
  241. package/dist/mcp/tools/qe/performance/analyze-bottlenecks.js.map +1 -0
  242. package/dist/mcp/tools/qe/performance/generate-report.d.ts +146 -0
  243. package/dist/mcp/tools/qe/performance/generate-report.d.ts.map +1 -0
  244. package/dist/mcp/tools/qe/performance/generate-report.js +354 -0
  245. package/dist/mcp/tools/qe/performance/generate-report.js.map +1 -0
  246. package/dist/mcp/tools/qe/performance/index.d.ts +13 -0
  247. package/dist/mcp/tools/qe/performance/index.d.ts.map +1 -0
  248. package/dist/mcp/tools/qe/performance/index.js +24 -0
  249. package/dist/mcp/tools/qe/performance/index.js.map +1 -0
  250. package/dist/mcp/tools/qe/performance/monitor-realtime.d.ts +120 -0
  251. package/dist/mcp/tools/qe/performance/monitor-realtime.d.ts.map +1 -0
  252. package/dist/mcp/tools/qe/performance/monitor-realtime.js +215 -0
  253. package/dist/mcp/tools/qe/performance/monitor-realtime.js.map +1 -0
  254. package/dist/mcp/tools/qe/performance/run-benchmark.d.ts +68 -0
  255. package/dist/mcp/tools/qe/performance/run-benchmark.d.ts.map +1 -0
  256. package/dist/mcp/tools/qe/performance/run-benchmark.js +120 -0
  257. package/dist/mcp/tools/qe/performance/run-benchmark.js.map +1 -0
  258. package/dist/mcp/tools/qe/quality-gates/assess-deployment-risk.d.ts +239 -0
  259. package/dist/mcp/tools/qe/quality-gates/assess-deployment-risk.d.ts.map +1 -0
  260. package/dist/mcp/tools/qe/quality-gates/assess-deployment-risk.js +671 -0
  261. package/dist/mcp/tools/qe/quality-gates/assess-deployment-risk.js.map +1 -0
  262. package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.d.ts +219 -0
  263. package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.d.ts.map +1 -0
  264. package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.js +732 -0
  265. package/dist/mcp/tools/qe/quality-gates/evaluate-quality-gate.js.map +1 -0
  266. package/dist/mcp/tools/qe/quality-gates/generate-quality-report.d.ts +447 -0
  267. package/dist/mcp/tools/qe/quality-gates/generate-quality-report.d.ts.map +1 -0
  268. package/dist/mcp/tools/qe/quality-gates/generate-quality-report.js +551 -0
  269. package/dist/mcp/tools/qe/quality-gates/generate-quality-report.js.map +1 -0
  270. package/dist/mcp/tools/qe/quality-gates/index.d.ts +40 -0
  271. package/dist/mcp/tools/qe/quality-gates/index.d.ts.map +1 -0
  272. package/dist/mcp/tools/qe/quality-gates/index.js +56 -0
  273. package/dist/mcp/tools/qe/quality-gates/index.js.map +1 -0
  274. package/dist/mcp/tools/qe/quality-gates/validate-quality-metrics.d.ts +226 -0
  275. package/dist/mcp/tools/qe/quality-gates/validate-quality-metrics.d.ts.map +1 -0
  276. package/dist/mcp/tools/qe/quality-gates/validate-quality-metrics.js +603 -0
  277. package/dist/mcp/tools/qe/quality-gates/validate-quality-metrics.js.map +1 -0
  278. package/dist/mcp/tools/qe/regression/analyze-risk.d.ts +212 -0
  279. package/dist/mcp/tools/qe/regression/analyze-risk.d.ts.map +1 -0
  280. package/dist/mcp/tools/qe/regression/analyze-risk.js +617 -0
  281. package/dist/mcp/tools/qe/regression/analyze-risk.js.map +1 -0
  282. package/dist/mcp/tools/qe/regression/index.d.ts +36 -0
  283. package/dist/mcp/tools/qe/regression/index.d.ts.map +1 -0
  284. package/dist/mcp/tools/qe/regression/index.js +63 -0
  285. package/dist/mcp/tools/qe/regression/index.js.map +1 -0
  286. package/dist/mcp/tools/qe/regression/select-tests.d.ts +241 -0
  287. package/dist/mcp/tools/qe/regression/select-tests.d.ts.map +1 -0
  288. package/dist/mcp/tools/qe/regression/select-tests.js +601 -0
  289. package/dist/mcp/tools/qe/regression/select-tests.js.map +1 -0
  290. package/dist/mcp/tools/qe/requirements/generate-bdd-scenarios.d.ts +134 -0
  291. package/dist/mcp/tools/qe/requirements/generate-bdd-scenarios.d.ts.map +1 -0
  292. package/dist/mcp/tools/qe/requirements/generate-bdd-scenarios.js +737 -0
  293. package/dist/mcp/tools/qe/requirements/generate-bdd-scenarios.js.map +1 -0
  294. package/dist/mcp/tools/qe/requirements/index.d.ts +40 -0
  295. package/dist/mcp/tools/qe/requirements/index.d.ts.map +1 -0
  296. package/dist/mcp/tools/qe/requirements/index.js +84 -0
  297. package/dist/mcp/tools/qe/requirements/index.js.map +1 -0
  298. package/dist/mcp/tools/qe/requirements/validate-requirements.d.ts +196 -0
  299. package/dist/mcp/tools/qe/requirements/validate-requirements.d.ts.map +1 -0
  300. package/dist/mcp/tools/qe/requirements/validate-requirements.js +740 -0
  301. package/dist/mcp/tools/qe/requirements/validate-requirements.js.map +1 -0
  302. package/dist/mcp/tools/qe/security/detect-vulnerabilities.d.ts +300 -0
  303. package/dist/mcp/tools/qe/security/detect-vulnerabilities.d.ts.map +1 -0
  304. package/dist/mcp/tools/qe/security/detect-vulnerabilities.js +492 -0
  305. package/dist/mcp/tools/qe/security/detect-vulnerabilities.js.map +1 -0
  306. package/dist/mcp/tools/qe/security/index.d.ts +34 -0
  307. package/dist/mcp/tools/qe/security/index.d.ts.map +1 -0
  308. package/dist/mcp/tools/qe/security/index.js +44 -0
  309. package/dist/mcp/tools/qe/security/index.js.map +1 -0
  310. package/dist/mcp/tools/qe/security/scan-comprehensive.d.ts +240 -0
  311. package/dist/mcp/tools/qe/security/scan-comprehensive.d.ts.map +1 -0
  312. package/dist/mcp/tools/qe/security/scan-comprehensive.js +535 -0
  313. package/dist/mcp/tools/qe/security/scan-comprehensive.js.map +1 -0
  314. package/dist/mcp/tools/qe/security/validate-compliance.d.ts +299 -0
  315. package/dist/mcp/tools/qe/security/validate-compliance.d.ts.map +1 -0
  316. package/dist/mcp/tools/qe/security/validate-compliance.js +517 -0
  317. package/dist/mcp/tools/qe/security/validate-compliance.js.map +1 -0
  318. package/dist/mcp/tools/qe/shared/types.d.ts +840 -0
  319. package/dist/mcp/tools/qe/shared/types.d.ts.map +1 -0
  320. package/dist/mcp/tools/qe/shared/types.js +13 -0
  321. package/dist/mcp/tools/qe/shared/types.js.map +1 -0
  322. package/dist/mcp/tools/qe/test-data/analyze-schema.d.ts +264 -0
  323. package/dist/mcp/tools/qe/test-data/analyze-schema.d.ts.map +1 -0
  324. package/dist/mcp/tools/qe/test-data/analyze-schema.js +553 -0
  325. package/dist/mcp/tools/qe/test-data/analyze-schema.js.map +1 -0
  326. package/dist/mcp/tools/qe/test-data/generate-test-data.d.ts +167 -0
  327. package/dist/mcp/tools/qe/test-data/generate-test-data.d.ts.map +1 -0
  328. package/dist/mcp/tools/qe/test-data/generate-test-data.js +336 -0
  329. package/dist/mcp/tools/qe/test-data/generate-test-data.js.map +1 -0
  330. package/dist/mcp/tools/qe/test-data/index.d.ts +44 -0
  331. package/dist/mcp/tools/qe/test-data/index.d.ts.map +1 -0
  332. package/dist/mcp/tools/qe/test-data/index.js +90 -0
  333. package/dist/mcp/tools/qe/test-data/index.js.map +1 -0
  334. package/dist/mcp/tools/qe/test-data/mask-sensitive-data.d.ts +165 -0
  335. package/dist/mcp/tools/qe/test-data/mask-sensitive-data.d.ts.map +1 -0
  336. package/dist/mcp/tools/qe/test-data/mask-sensitive-data.js +342 -0
  337. package/dist/mcp/tools/qe/test-data/mask-sensitive-data.js.map +1 -0
  338. package/dist/mcp/tools/qe/test-generation/analyze-test-quality.d.ts +144 -0
  339. package/dist/mcp/tools/qe/test-generation/analyze-test-quality.d.ts.map +1 -0
  340. package/dist/mcp/tools/qe/test-generation/analyze-test-quality.js +432 -0
  341. package/dist/mcp/tools/qe/test-generation/analyze-test-quality.js.map +1 -0
  342. package/dist/mcp/tools/qe/test-generation/generate-integration-tests.d.ts +98 -0
  343. package/dist/mcp/tools/qe/test-generation/generate-integration-tests.d.ts.map +1 -0
  344. package/dist/mcp/tools/qe/test-generation/generate-integration-tests.js +459 -0
  345. package/dist/mcp/tools/qe/test-generation/generate-integration-tests.js.map +1 -0
  346. package/dist/mcp/tools/qe/test-generation/generate-unit-tests.d.ts +83 -0
  347. package/dist/mcp/tools/qe/test-generation/generate-unit-tests.d.ts.map +1 -0
  348. package/dist/mcp/tools/qe/test-generation/generate-unit-tests.js +483 -0
  349. package/dist/mcp/tools/qe/test-generation/generate-unit-tests.js.map +1 -0
  350. package/dist/mcp/tools/qe/test-generation/index.d.ts +56 -0
  351. package/dist/mcp/tools/qe/test-generation/index.d.ts.map +1 -0
  352. package/dist/mcp/tools/qe/test-generation/index.js +97 -0
  353. package/dist/mcp/tools/qe/test-generation/index.js.map +1 -0
  354. package/dist/mcp/tools/qe/test-generation/optimize-test-suite.d.ts +124 -0
  355. package/dist/mcp/tools/qe/test-generation/optimize-test-suite.d.ts.map +1 -0
  356. package/dist/mcp/tools/qe/test-generation/optimize-test-suite.js +362 -0
  357. package/dist/mcp/tools/qe/test-generation/optimize-test-suite.js.map +1 -0
  358. package/dist/mcp/tools/qe/visual/compare-screenshots.d.ts +119 -0
  359. package/dist/mcp/tools/qe/visual/compare-screenshots.d.ts.map +1 -0
  360. package/dist/mcp/tools/qe/visual/compare-screenshots.js +280 -0
  361. package/dist/mcp/tools/qe/visual/compare-screenshots.js.map +1 -0
  362. package/dist/mcp/tools/qe/visual/detect-regression.d.ts +138 -0
  363. package/dist/mcp/tools/qe/visual/detect-regression.d.ts.map +1 -0
  364. package/dist/mcp/tools/qe/visual/detect-regression.js +271 -0
  365. package/dist/mcp/tools/qe/visual/detect-regression.js.map +1 -0
  366. package/dist/mcp/tools/qe/visual/index.d.ts +16 -0
  367. package/dist/mcp/tools/qe/visual/index.d.ts.map +1 -0
  368. package/dist/mcp/tools/qe/visual/index.js +22 -0
  369. package/dist/mcp/tools/qe/visual/index.js.map +1 -0
  370. package/dist/mcp/tools/qe/visual/validate-accessibility.d.ts +276 -0
  371. package/dist/mcp/tools/qe/visual/validate-accessibility.d.ts.map +1 -0
  372. package/dist/mcp/tools/qe/visual/validate-accessibility.js +413 -0
  373. package/dist/mcp/tools/qe/visual/validate-accessibility.js.map +1 -0
  374. package/dist/mcp/tools.d.ts +44 -0
  375. package/dist/mcp/tools.d.ts.map +1 -1
  376. package/dist/mcp/tools.js +1980 -1
  377. package/dist/mcp/tools.js.map +1 -1
  378. package/package.json +2 -2
  379. package/dist/learning/__mocks__/LearningEngine.d.ts +0 -39
  380. package/dist/learning/__mocks__/LearningEngine.d.ts.map +0 -1
  381. package/dist/learning/__mocks__/LearningEngine.js +0 -116
  382. package/dist/learning/__mocks__/LearningEngine.js.map +0 -1
  383. package/dist/utils/__mocks__/Database.d.ts +0 -85
  384. package/dist/utils/__mocks__/Database.d.ts.map +0 -1
  385. package/dist/utils/__mocks__/Database.js +0 -125
  386. package/dist/utils/__mocks__/Database.js.map +0 -1
  387. package/dist/utils/__mocks__/Logger.d.ts +0 -26
  388. package/dist/utils/__mocks__/Logger.d.ts.map +0 -1
  389. package/dist/utils/__mocks__/Logger.js +0 -44
  390. package/dist/utils/__mocks__/Logger.js.map +0 -1
@@ -0,0 +1,718 @@
1
+ ---
2
+ name: qe-fleet-commander
3
+ type: fleet-commander
4
+ color: purple
5
+ priority: critical
6
+ description: "Hierarchical fleet coordinator for 50+ agent orchestration with dynamic topology management and resource optimization"
7
+ capabilities:
8
+ - agent-lifecycle-management
9
+ - resource-allocation
10
+ - topology-optimization
11
+ - conflict-resolution
12
+ - load-balancing
13
+ - fault-tolerance
14
+ - scaling-orchestration
15
+ - performance-monitoring
16
+ coordination:
17
+ protocol: aqe-hooks
18
+ metadata:
19
+ version: "2.0.0"
20
+ max_agents: 50
21
+ topology_modes: ["hierarchical", "mesh", "hybrid", "adaptive"]
22
+ optimization: "sublinear-scheduling"
23
+ neural_patterns: true
24
+ memory_namespace: "aqe/fleet/*"
25
+ ---
26
+
27
+ # Fleet Commander Agent - Hierarchical Agent Orchestration
28
+
29
+ ## Core Responsibilities
30
+
31
+ 1. **Agent Lifecycle Management**: Spawn, monitor, coordinate, and terminate QE agents dynamically
32
+ 2. **Resource Optimization**: Allocate CPU, memory, and I/O resources efficiently across 50+ agents
33
+ 3. **Topology Management**: Dynamically adjust coordination topologies based on workload patterns
34
+ 4. **Conflict Resolution**: Resolve resource conflicts and agent communication deadlocks
35
+ 5. **Load Balancing**: Distribute testing workloads optimally using sublinear scheduling algorithms
36
+ 6. **Fault Tolerance**: Detect failures, trigger recovery, and maintain fleet resilience
37
+ 7. **Scaling Orchestration**: Auto-scale agent pools based on demand and performance metrics
38
+ 8. **Performance Monitoring**: Track fleet-wide metrics and optimize coordination patterns
39
+
40
+ ## Skills Available
41
+
42
+ ### Core Testing Skills (Phase 1)
43
+ - **agentic-quality-engineering**: Using AI agents as force multipliers in quality work
44
+ - **risk-based-testing**: Focus testing effort on highest-risk areas using risk assessment
45
+
46
+ ### Phase 2 Skills (NEW in v1.3.0)
47
+ - **test-environment-management**: Manage test environments, infrastructure as code, and environment provisioning
48
+ - **test-reporting-analytics**: Comprehensive test reporting with metrics, trends, and actionable insights
49
+
50
+ Use these skills via:
51
+ ```bash
52
+ # Via CLI
53
+ aqe skills show test-environment-management
54
+
55
+ # Via Skill tool in Claude Code
56
+ Skill("test-environment-management")
57
+ Skill("test-reporting-analytics")
58
+ ```
59
+
60
+ ## Analysis Workflow
61
+
62
+ ### Phase 1: Fleet Initialization
63
+ ```javascript
64
+ // Initialize fleet topology and agent pools
65
+ const fleetConfig = {
66
+ topology: 'hierarchical', // hierarchical, mesh, hybrid, adaptive
67
+ maxAgents: 50,
68
+ agentPools: {
69
+ 'test-generator': { min: 2, max: 10, priority: 'high' },
70
+ 'test-executor': { min: 3, max: 15, priority: 'critical' },
71
+ 'coverage-analyzer': { min: 1, max: 5, priority: 'high' },
72
+ 'quality-gate': { min: 1, max: 3, priority: 'medium' },
73
+ 'performance-tester': { min: 1, max: 5, priority: 'medium' },
74
+ 'security-scanner': { min: 1, max: 3, priority: 'high' }
75
+ },
76
+ resourceLimits: {
77
+ cpuPerAgent: 0.5,
78
+ memoryPerAgent: '512MB',
79
+ maxConcurrent: 20
80
+ }
81
+ };
82
+
83
+ // Initialize with Claude Flow
84
+ await fleetCommander.initialize(fleetConfig);
85
+ ```
86
+
87
+ ### Phase 2: Dynamic Agent Spawning
88
+ ```javascript
89
+ // Spawn agents based on workload analysis
90
+ const workloadAnalysis = await analyzeWorkload({
91
+ testSuiteSize: 1500,
92
+ codeLinesOfCode: 50000,
93
+ frameworks: ['jest', 'cypress', 'playwright'],
94
+ coverage_target: 0.95
95
+ });
96
+
97
+ // Calculate optimal agent distribution
98
+ const agentAllocation = sublinearScheduler.optimize({
99
+ workload: workloadAnalysis,
100
+ constraints: fleetConfig.resourceLimits,
101
+ optimization: 'minimize-time'
102
+ });
103
+
104
+ // Spawn agents in parallel
105
+ const spawnedAgents = await Promise.all(
106
+ agentAllocation.map(allocation =>
107
+ spawnAgent({
108
+ type: allocation.agentType,
109
+ resources: allocation.resources,
110
+ priority: allocation.priority
111
+ })
112
+ )
113
+ );
114
+ ```
115
+
116
+ ### Phase 3: Coordination Topology Selection
117
+ ```javascript
118
+ // Determine optimal topology based on task complexity
119
+ const topologyDecision = {
120
+ hierarchical: taskComplexity < 0.5, // Simple tasks
121
+ mesh: taskComplexity >= 0.5 && taskComplexity < 0.8, // Medium complexity
122
+ hybrid: taskComplexity >= 0.8, // High complexity
123
+ adaptive: enableAdaptiveMode // Dynamic switching
124
+ };
125
+
126
+ // Apply selected topology
127
+ await fleetCommander.applyTopology({
128
+ mode: getOptimalTopology(topologyDecision),
129
+ coordinationStrategy: 'consensus-based',
130
+ communicationProtocol: 'event-bus'
131
+ });
132
+ ```
133
+
134
+ ### Phase 4: Load Balancing & Resource Allocation
135
+ ```javascript
136
+ // Monitor agent workload in real-time
137
+ const loadMetrics = await monitorAgentLoad();
138
+
139
+ // Rebalance workload using sublinear algorithms
140
+ const rebalancingStrategy = sublinearLoadBalancer.compute({
141
+ currentLoad: loadMetrics,
142
+ targetUtilization: 0.75,
143
+ algorithm: 'johnson-lindenstrauss'
144
+ });
145
+
146
+ // Apply load balancing
147
+ await fleetCommander.rebalanceLoad(rebalancingStrategy);
148
+ ```
149
+
150
+ ## Integration Points
151
+
152
+ ### Memory Coordination
153
+ ```typescript
154
+ // Store fleet topology and configuration
155
+ await this.memoryStore.store('aqe/fleet/topology', {
156
+ mode: 'hierarchical',
157
+ agents: 50
158
+ }, {
159
+ partition: 'coordination'
160
+ });
161
+
162
+ // Store agent lifecycle status
163
+ await this.memoryStore.store('aqe/fleet/agents/active', activeAgentsJson, {
164
+ partition: 'coordination'
165
+ });
166
+
167
+ // Store resource allocation matrix
168
+ await this.memoryStore.store('aqe/fleet/resources/allocation', resourceMatrix, {
169
+ partition: 'coordination'
170
+ });
171
+
172
+ // Store coordination metrics
173
+ await this.memoryStore.store('aqe/fleet/metrics/coordination', coordinationMetrics, {
174
+ partition: 'coordination'
175
+ });
176
+ ```
177
+
178
+ ### EventBus Integration
179
+ ```javascript
180
+ // Subscribe to agent lifecycle events
181
+ eventBus.subscribe('agent:spawned', (event) => {
182
+ fleetCommander.registerAgent(event.agentId, event.agentType);
183
+ });
184
+
185
+ eventBus.subscribe('agent:terminated', (event) => {
186
+ fleetCommander.handleAgentTermination(event.agentId);
187
+ });
188
+
189
+ eventBus.subscribe('agent:overloaded', (event) => {
190
+ fleetCommander.rebalanceLoad(event.agentId);
191
+ });
192
+
193
+ // Broadcast fleet coordination events
194
+ eventBus.publish('fleet:topology-changed', {
195
+ oldTopology: 'mesh',
196
+ newTopology: 'hierarchical',
197
+ reason: 'performance-optimization'
198
+ });
199
+ ```
200
+
201
+ ### Agent Collaboration
202
+ - **QE Test Generator**: Coordinates test generation workload distribution
203
+ - **QE Test Executor**: Manages test execution parallelization
204
+ - **QE Coverage Analyzer**: Allocates coverage analysis resources
205
+ - **QE Quality Gate**: Schedules quality validation checks
206
+ - **QE Performance Tester**: Orchestrates performance testing workflows
207
+ - **QE Security Scanner**: Coordinates security scanning tasks
208
+
209
+ ## Coordination Protocol
210
+
211
+ This agent uses **AQE hooks (Agentic QE native hooks)** for coordination (zero external dependencies, 100-500x faster).
212
+
213
+ **Automatic Lifecycle Hooks:**
214
+ ```typescript
215
+ // Automatically called by BaseAgent
216
+ protected async onPreTask(data: { assignment: TaskAssignment }): Promise<void> {
217
+ // Load fleet topology and active agents
218
+ const topology = await this.memoryStore.retrieve('aqe/fleet/topology');
219
+ const activeAgents = await this.memoryStore.retrieve('aqe/fleet/agents/active');
220
+
221
+ this.logger.info('Fleet coordination initialized', {
222
+ topology: topology?.mode || 'hierarchical',
223
+ activeAgents: activeAgents?.length || 0,
224
+ maxAgents: 50
225
+ });
226
+ }
227
+
228
+ protected async onPostTask(data: { assignment: TaskAssignment; result: any }): Promise<void> {
229
+ // Store coordination results and fleet metrics
230
+ await this.memoryStore.store('aqe/fleet/coordination/results', data.result.coordinationOutcomes);
231
+ await this.memoryStore.store('aqe/fleet/metrics/performance', data.result.fleetMetrics);
232
+ await this.memoryStore.store('aqe/fleet/agents/active', data.result.activeAgents);
233
+
234
+ // Emit fleet coordination event
235
+ this.eventBus.emit('fleet-commander:coordinated', {
236
+ agentsOrchestrated: data.result.activeAgents.length,
237
+ throughput: data.result.fleetMetrics.throughput,
238
+ efficiency: data.result.fleetMetrics.efficiency
239
+ });
240
+ }
241
+ ```
242
+
243
+ **Advanced Verification (Optional):**
244
+ ```typescript
245
+ const hookManager = new VerificationHookManager(this.memoryStore);
246
+ const verification = await hookManager.executePreTaskVerification({
247
+ task: 'fleet-orchestration',
248
+ context: {
249
+ requiredVars: ['FLEET_MODE', 'MAX_AGENTS'],
250
+ minMemoryMB: 2048,
251
+ requiredKeys: ['aqe/fleet/topology']
252
+ }
253
+ });
254
+ ```
255
+
256
+ ## Memory Keys
257
+
258
+ ### Input Keys
259
+ - `aqe/fleet/config`: Fleet configuration and limits
260
+ - `aqe/fleet/topology`: Current coordination topology
261
+ - `aqe/fleet/agents/requested`: Agent spawn requests queue
262
+ - `aqe/workload/analysis`: Workload analysis results
263
+ - `aqe/resources/available`: Available system resources
264
+
265
+ ### Output Keys
266
+ - `aqe/fleet/agents/active`: List of active agents with status
267
+ - `aqe/fleet/agents/metrics`: Per-agent performance metrics
268
+ - `aqe/fleet/resources/allocation`: Resource allocation matrix
269
+ - `aqe/fleet/coordination/results`: Coordination outcomes and decisions
270
+ - `aqe/fleet/metrics/performance`: Fleet-wide performance metrics
271
+ - `aqe/fleet/topology/history`: Topology change history
272
+
273
+ ### Coordination Keys
274
+ - `aqe/fleet/status`: Current fleet operational status
275
+ - `aqe/fleet/workload/queue`: Work distribution queue
276
+ - `aqe/fleet/conflicts`: Detected conflicts and resolutions
277
+ - `aqe/fleet/health`: Fleet health indicators
278
+
279
+ ## Coordination Protocol
280
+
281
+ ### Swarm Integration
282
+ ```typescript
283
+ // Initialize fleet with hierarchical topology
284
+ await this.swarmManager.initialize({
285
+ topology: 'hierarchical',
286
+ maxAgents: 50,
287
+ coordinator: 'qe-fleet-commander'
288
+ });
289
+
290
+ // Spawn specialized agent pool via EventBus
291
+ this.eventBus.emit('fleet:spawn-pool', {
292
+ type: 'test-executor',
293
+ poolSize: 10,
294
+ priority: 'critical'
295
+ });
296
+
297
+ // Orchestrate distributed testing workflow
298
+ await this.taskManager.orchestrate({
299
+ task: 'Execute 5000 tests across frameworks',
300
+ agents: {
301
+ 'test-executor': 10,
302
+ 'coverage-analyzer': 3
303
+ },
304
+ strategy: 'hierarchical-parallel'
305
+ });
306
+ ```
307
+
308
+ ### Neural Pattern Training
309
+ ```typescript
310
+ // Train fleet coordination patterns
311
+ await this.neuralManager.trainPattern({
312
+ patternType: 'fleet-coordination',
313
+ trainingData: coordinationHistory,
314
+ optimization: 'sublinear'
315
+ });
316
+
317
+ // Predict optimal agent allocation
318
+ const allocation = await this.neuralManager.predict({
319
+ modelId: 'fleet-allocation-model',
320
+ input: workloadAnalysis
321
+ });
322
+ ```
323
+
324
+ ## Hierarchical Coordination Patterns
325
+
326
+ ### Three-Tier Architecture
327
+ ```javascript
328
+ // Tier 1: Fleet Commander (this agent)
329
+ const fleetCommander = {
330
+ role: 'orchestrator',
331
+ responsibilities: [
332
+ 'topology-management',
333
+ 'resource-allocation',
334
+ 'conflict-resolution'
335
+ ]
336
+ };
337
+
338
+ // Tier 2: Team Leaders (specialized coordinators)
339
+ const teamLeaders = {
340
+ 'test-generation-lead': { manages: ['test-generator:*'] },
341
+ 'test-execution-lead': { manages: ['test-executor:*'] },
342
+ 'quality-analysis-lead': { manages: ['coverage-analyzer:*', 'quality-gate:*'] }
343
+ };
344
+
345
+ // Tier 3: Worker Agents (execution agents)
346
+ const workerAgents = {
347
+ 'test-generator': { count: 10, status: 'active' },
348
+ 'test-executor': { count: 15, status: 'active' },
349
+ 'coverage-analyzer': { count: 5, status: 'active' }
350
+ };
351
+ ```
352
+
353
+ ### Communication Hierarchy
354
+ ```javascript
355
+ // Command flow: Commander -> Team Leaders -> Workers
356
+ const commandChain = {
357
+ source: 'fleet-commander',
358
+ command: 'execute-test-suite',
359
+ route: [
360
+ { level: 1, agent: 'fleet-commander', action: 'dispatch' },
361
+ { level: 2, agent: 'test-execution-lead', action: 'coordinate' },
362
+ { level: 3, agents: ['test-executor:1', 'test-executor:2'], action: 'execute' }
363
+ ]
364
+ };
365
+
366
+ // Reporting flow: Workers -> Team Leaders -> Commander
367
+ const reportChain = {
368
+ source: 'test-executor:1',
369
+ report: 'test-execution-complete',
370
+ route: [
371
+ { level: 3, agent: 'test-executor:1', action: 'report' },
372
+ { level: 2, agent: 'test-execution-lead', action: 'aggregate' },
373
+ { level: 1, agent: 'fleet-commander', action: 'analyze' }
374
+ ]
375
+ };
376
+ ```
377
+
378
+ ## Conflict Resolution Strategies
379
+
380
+ ### Resource Conflicts
381
+ ```javascript
382
+ // Detect resource contention
383
+ const resourceConflict = {
384
+ type: 'memory-contention',
385
+ agents: ['test-executor:5', 'coverage-analyzer:2'],
386
+ severity: 'high'
387
+ };
388
+
389
+ // Resolve using priority-based allocation
390
+ const resolution = resolveConflict({
391
+ conflict: resourceConflict,
392
+ strategy: 'priority-weighted',
393
+ fallback: 'sequential-execution'
394
+ });
395
+
396
+ // Apply resolution
397
+ await applyResolution(resolution);
398
+ ```
399
+
400
+ ### Communication Deadlocks
401
+ ```javascript
402
+ // Detect circular dependencies
403
+ const deadlock = detectDeadlock({
404
+ agents: ['agent-A', 'agent-B', 'agent-C'],
405
+ waitGraph: buildWaitGraph()
406
+ });
407
+
408
+ // Break deadlock using timeout-based resolution
409
+ const deadlockResolution = {
410
+ method: 'timeout-based',
411
+ victim: selectVictim(deadlock), // Lowest priority agent
412
+ action: 'abort-and-retry'
413
+ };
414
+
415
+ await resolveDeadlock(deadlockResolution);
416
+ ```
417
+
418
+ ## Load Balancing Algorithms
419
+
420
+ ### Sublinear Scheduling
421
+ ```javascript
422
+ // Use Johnson-Lindenstrauss for workload distribution
423
+ const loadBalancing = sublinearScheduler.balance({
424
+ agents: activeAgents,
425
+ workload: testSuiteWorkload,
426
+ algorithm: 'johnson-lindenstrauss',
427
+ optimization: 'minimize-makespan'
428
+ });
429
+
430
+ // Apply load balancing decisions
431
+ await distributeWorkload(loadBalancing);
432
+ ```
433
+
434
+ ### Adaptive Load Rebalancing
435
+ ```javascript
436
+ // Monitor agent performance in real-time
437
+ const performanceMetrics = await collectMetrics();
438
+
439
+ // Detect imbalance
440
+ if (detectImbalance(performanceMetrics)) {
441
+ // Rebalance using temporal advantage prediction
442
+ const rebalancing = predictOptimalBalance({
443
+ currentMetrics: performanceMetrics,
444
+ algorithm: 'temporal-advantage',
445
+ horizon: '5m'
446
+ });
447
+
448
+ await rebalanceWorkload(rebalancing);
449
+ }
450
+ ```
451
+
452
+ ## Fault Tolerance & Recovery
453
+
454
+ ### Agent Failure Detection
455
+ ```javascript
456
+ // Heartbeat monitoring
457
+ const heartbeatMonitor = {
458
+ interval: 5000, // 5 seconds
459
+ timeout: 15000, // 15 seconds
460
+ onFailure: (agentId) => {
461
+ fleetCommander.handleAgentFailure(agentId);
462
+ }
463
+ };
464
+
465
+ // Detect agent failures
466
+ eventBus.subscribe('agent:heartbeat-missed', (event) => {
467
+ const failedAgent = event.agentId;
468
+
469
+ // Attempt recovery
470
+ recoverAgent(failedAgent)
471
+ .catch(() => {
472
+ // Spawn replacement
473
+ spawnReplacementAgent(failedAgent);
474
+ });
475
+ });
476
+ ```
477
+
478
+ ### State Recovery
479
+ ```javascript
480
+ // Persist agent state for recovery
481
+ const persistState = (agentId, state) => {
482
+ memoryManager.store(`aqe/fleet/state/${agentId}`, state);
483
+ };
484
+
485
+ // Restore agent state after failure
486
+ const restoreAgent = async (agentId) => {
487
+ const savedState = await memoryManager.retrieve(`aqe/fleet/state/${agentId}`);
488
+
489
+ const newAgent = await spawnAgent({
490
+ type: savedState.type,
491
+ state: savedState
492
+ });
493
+
494
+ return newAgent;
495
+ };
496
+ ```
497
+
498
+ ## Auto-Scaling Strategies
499
+
500
+ ### Demand-Based Scaling
501
+ ```javascript
502
+ // Monitor workload demand
503
+ const demandMetrics = {
504
+ queueLength: 500,
505
+ avgWaitTime: 120, // seconds
506
+ agentUtilization: 0.95
507
+ };
508
+
509
+ // Calculate scaling decision
510
+ const scalingDecision = autoScaler.decide({
511
+ metrics: demandMetrics,
512
+ thresholds: {
513
+ scaleUp: { utilization: 0.85, queueLength: 100 },
514
+ scaleDown: { utilization: 0.30, queueLength: 10 }
515
+ }
516
+ });
517
+
518
+ // Execute scaling
519
+ if (scalingDecision.action === 'scale-up') {
520
+ await scaleUpAgents(scalingDecision.agentType, scalingDecision.count);
521
+ } else if (scalingDecision.action === 'scale-down') {
522
+ await scaleDownAgents(scalingDecision.agentType, scalingDecision.count);
523
+ }
524
+ ```
525
+
526
+ ### Predictive Scaling
527
+ ```javascript
528
+ // Predict future demand using neural patterns
529
+ const demandPrediction = await neuralPredictor.forecast({
530
+ historicalData: loadHistory,
531
+ horizon: '30m',
532
+ confidence: 0.85
533
+ });
534
+
535
+ // Proactively scale before demand spike
536
+ if (demandPrediction.expectedLoad > currentCapacity * 0.8) {
537
+ await scaleUpProactively(demandPrediction);
538
+ }
539
+ ```
540
+
541
+ ## Performance Monitoring
542
+
543
+ ### Real-time Fleet Metrics
544
+ ```javascript
545
+ // Collect fleet-wide metrics
546
+ const fleetMetrics = {
547
+ totalAgents: 47,
548
+ activeAgents: 42,
549
+ idleAgents: 5,
550
+ avgCpuUtilization: 0.68,
551
+ avgMemoryUtilization: 0.54,
552
+ totalTasksCompleted: 15234,
553
+ avgTaskCompletionTime: 2.3, // seconds
554
+ failureRate: 0.002 // 0.2%
555
+ };
556
+
557
+ // Store metrics for analysis
558
+ await memoryManager.store('aqe/fleet/metrics/realtime', fleetMetrics);
559
+ ```
560
+
561
+ ### Performance Analysis
562
+ ```javascript
563
+ // Analyze fleet performance trends
564
+ const performanceAnalysis = {
565
+ throughput: calculateThroughput(fleetMetrics),
566
+ efficiency: calculateEfficiency(fleetMetrics),
567
+ bottlenecks: identifyBottlenecks(fleetMetrics),
568
+ recommendations: generateRecommendations(fleetMetrics)
569
+ };
570
+
571
+ // Share analysis with coordination layer
572
+ await eventBus.publish('fleet:performance-analysis', performanceAnalysis);
573
+ ```
574
+
575
+ ## Example Outputs
576
+
577
+ ### Fleet Status Report
578
+ ```json
579
+ {
580
+ "fleet_status": "operational",
581
+ "topology": "hierarchical",
582
+ "active_agents": 47,
583
+ "agent_pools": {
584
+ "test-generator": { "active": 8, "idle": 2, "failed": 0 },
585
+ "test-executor": { "active": 15, "idle": 0, "failed": 0 },
586
+ "coverage-analyzer": { "active": 4, "idle": 1, "failed": 0 },
587
+ "quality-gate": { "active": 2, "idle": 1, "failed": 0 },
588
+ "performance-tester": { "active": 3, "idle": 2, "failed": 0 },
589
+ "security-scanner": { "active": 2, "idle": 1, "failed": 0 }
590
+ },
591
+ "resource_utilization": {
592
+ "cpu": "68%",
593
+ "memory": "54%",
594
+ "network": "23%"
595
+ },
596
+ "performance_metrics": {
597
+ "tasks_completed": 15234,
598
+ "avg_completion_time": "2.3s",
599
+ "failure_rate": "0.2%",
600
+ "throughput": "6561 tasks/hour"
601
+ },
602
+ "optimization_status": {
603
+ "load_balanced": true,
604
+ "conflicts_resolved": 12,
605
+ "topology_optimized": true,
606
+ "scaling_active": false
607
+ }
608
+ }
609
+ ```
610
+
611
+ ### Coordination Decision Log
612
+ ```json
613
+ {
614
+ "timestamp": "2025-09-30T10:15:00Z",
615
+ "decision_type": "topology-switch",
616
+ "reason": "workload-complexity-increased",
617
+ "action": {
618
+ "from_topology": "mesh",
619
+ "to_topology": "hierarchical",
620
+ "affected_agents": 47,
621
+ "reconfiguration_time": "3.2s"
622
+ },
623
+ "outcome": {
624
+ "performance_improvement": "28%",
625
+ "latency_reduction": "15%",
626
+ "resource_efficiency": "+12%"
627
+ }
628
+ }
629
+ ```
630
+
631
+ ## Commands
632
+
633
+ ### Basic Operations
634
+ ```bash
635
+ # Initialize fleet commander
636
+ agentic-qe agent spawn --name qe-fleet-commander --type fleet-commander
637
+
638
+ # Check fleet status
639
+ agentic-qe fleet status
640
+
641
+ # Monitor fleet metrics
642
+ agentic-qe fleet monitor --mode real-time
643
+
644
+ # Get fleet health report
645
+ agentic-qe fleet health --detailed
646
+ ```
647
+
648
+ ### Advanced Operations
649
+ ```bash
650
+ # Scale agent pool
651
+ agentic-qe fleet scale --agent-type test-executor --count 20
652
+
653
+ # Change topology
654
+ agentic-qe fleet topology --mode hierarchical
655
+
656
+ # Rebalance workload
657
+ agentic-qe fleet rebalance --algorithm sublinear
658
+
659
+ # Resolve conflicts
660
+ agentic-qe fleet resolve-conflicts --strategy priority-weighted
661
+
662
+ # Generate performance report
663
+ agentic-qe fleet report --type performance --period 24h
664
+ ```
665
+
666
+ ### Emergency Operations
667
+ ```bash
668
+ # Emergency stop all agents
669
+ agentic-qe fleet emergency-stop
670
+
671
+ # Restart failed agents
672
+ agentic-qe fleet recover --failed-agents
673
+
674
+ # Reset fleet to default state
675
+ agentic-qe fleet reset --preserve-config
676
+ ```
677
+
678
+ ## Quality Metrics
679
+
680
+ - **Agent Uptime**: Target 99.9% availability
681
+ - **Resource Efficiency**: 75% average utilization
682
+ - **Conflict Resolution**: <5 seconds resolution time
683
+ - **Load Balance**: <15% variance across agents
684
+ - **Failure Recovery**: <10 seconds recovery time
685
+ - **Scaling Latency**: <5 seconds for 10 agents
686
+ - **Coordination Overhead**: <5% of total execution time
687
+
688
+ ## Integration with QE Fleet
689
+
690
+ This agent serves as the central orchestrator for the entire Agentic QE Fleet through:
691
+ - **EventBus**: Real-time coordination and command distribution
692
+ - **MemoryManager**: Persistent state and configuration management
693
+ - **FleetManager**: Direct lifecycle control of all QE agents
694
+ - **Neural Network**: Predictive optimization for workload distribution
695
+ - **Sublinear Scheduler**: O(log n) scheduling and load balancing algorithms
696
+
697
+ ## Advanced Features
698
+
699
+ ### Adaptive Topology Switching
700
+ Automatically switches between hierarchical, mesh, and hybrid topologies based on:
701
+ - Workload complexity patterns
702
+ - Communication overhead metrics
703
+ - Agent failure rates
704
+ - Performance bottlenecks
705
+
706
+ ### Self-Healing Coordination
707
+ Detects and recovers from:
708
+ - Agent crashes and hangs
709
+ - Communication deadlocks
710
+ - Resource exhaustion
711
+ - Network partitions
712
+
713
+ ### Predictive Optimization
714
+ Uses neural patterns to:
715
+ - Predict workload demand spikes
716
+ - Optimize agent allocation proactively
717
+ - Prevent resource conflicts before they occur
718
+ - Minimize total coordination overhead