agentic-qe 3.7.8 → 3.7.10

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 (569) hide show
  1. package/.claude/skills/.validation/README.md +111 -111
  2. package/.claude/skills/.validation/examples/chaos-engineering-output.example.json +530 -530
  3. package/.claude/skills/.validation/examples/performance-testing-output.example.json +252 -252
  4. package/.claude/skills/.validation/examples/security-testing-output.example.json +413 -413
  5. package/.claude/skills/.validation/examples/testability-scoring-output.example.json +350 -350
  6. package/.claude/skills/.validation/schemas/skill-eval.schema.json +462 -462
  7. package/.claude/skills/.validation/schemas/skill-frontmatter.schema.json +341 -341
  8. package/.claude/skills/.validation/schemas/skill-output-meta.schema.json +199 -199
  9. package/.claude/skills/.validation/schemas/skill-output.template.json +610 -610
  10. package/.claude/skills/.validation/skill-validation-mcp-integration.md +250 -250
  11. package/.claude/skills/.validation/templates/eval.template.yaml +366 -366
  12. package/.claude/skills/.validation/templates/schemas/output.json +145 -145
  13. package/.claude/skills/.validation/templates/security-testing-eval.template.yaml +725 -725
  14. package/.claude/skills/.validation/templates/skill-frontmatter.example.yaml +225 -225
  15. package/.claude/skills/.validation/test-data/invalid-output.json +5 -5
  16. package/.claude/skills/.validation/test-data/minimal-output.json +9 -9
  17. package/.claude/skills/.validation/test-data/sample-output.json +73 -73
  18. package/.claude/skills/a11y-ally/evals/a11y-ally.yaml +376 -376
  19. package/.claude/skills/a11y-ally/schemas/output.json +549 -549
  20. package/.claude/skills/accessibility-testing/evals/accessibility-testing.yaml +719 -719
  21. package/.claude/skills/accessibility-testing/schemas/output.json +776 -776
  22. package/.claude/skills/accessibility-testing/test-data/sample-output.json +191 -191
  23. package/.claude/skills/agentic-quality-engineering/schemas/output.json +577 -577
  24. package/.claude/skills/api-testing-patterns/evals/api-testing-patterns.yaml +696 -696
  25. package/.claude/skills/api-testing-patterns/schemas/output.json +845 -845
  26. package/.claude/skills/aqe-v2-v3-migration/schemas/output.json +513 -513
  27. package/.claude/skills/brutal-honesty-review/schemas/output.json +291 -291
  28. package/.claude/skills/bug-reporting-excellence/schemas/output.json +288 -288
  29. package/.claude/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -761
  30. package/.claude/skills/chaos-engineering-resilience/schemas/output.json +1205 -1205
  31. package/.claude/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +157 -157
  32. package/.claude/skills/cicd-pipeline-qe-orchestrator/schemas/output.json +542 -542
  33. package/.claude/skills/code-review-quality/schemas/output.json +264 -264
  34. package/.claude/skills/compatibility-testing/evals/compatibility-testing.yaml +410 -410
  35. package/.claude/skills/compatibility-testing/schemas/output.json +551 -551
  36. package/.claude/skills/compliance-testing/evals/compliance-testing.yaml +1107 -1107
  37. package/.claude/skills/compliance-testing/schemas/output.json +845 -845
  38. package/.claude/skills/consultancy-practices/schemas/output.json +282 -282
  39. package/.claude/skills/contract-testing/evals/contract-testing.yaml +748 -748
  40. package/.claude/skills/contract-testing/schemas/output.json +638 -638
  41. package/.claude/skills/database-testing/evals/database-testing.yaml +968 -968
  42. package/.claude/skills/database-testing/schemas/output.json +1446 -1446
  43. package/.claude/skills/debug-loop/SKILL.md +61 -61
  44. package/.claude/skills/enterprise-integration-testing/SKILL.md +735 -735
  45. package/.claude/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +158 -0
  46. package/.claude/skills/enterprise-integration-testing/schemas/output.json +74 -0
  47. package/.claude/skills/enterprise-integration-testing/scripts/validate-config.json +25 -0
  48. package/.claude/skills/iterative-loop/SKILL.md +371 -371
  49. package/.claude/skills/localization-testing/evals/localization-testing.yaml +544 -544
  50. package/.claude/skills/localization-testing/schemas/output.json +325 -325
  51. package/.claude/skills/middleware-testing-patterns/SKILL.md +798 -798
  52. package/.claude/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +153 -0
  53. package/.claude/skills/middleware-testing-patterns/schemas/output.json +58 -0
  54. package/.claude/skills/middleware-testing-patterns/scripts/validate-config.json +25 -0
  55. package/.claude/skills/mobile-testing/evals/mobile-testing.yaml +537 -537
  56. package/.claude/skills/mobile-testing/schemas/output.json +318 -318
  57. package/.claude/skills/mutation-testing/evals/mutation-testing.yaml +652 -652
  58. package/.claude/skills/mutation-testing/schemas/output.json +707 -707
  59. package/.claude/skills/mutation-testing/test-data/sample-output.json +295 -295
  60. package/.claude/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +450 -450
  61. package/.claude/skills/n8n-expression-testing/schemas/output.json +369 -369
  62. package/.claude/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +522 -522
  63. package/.claude/skills/n8n-integration-testing-patterns/schemas/output.json +291 -291
  64. package/.claude/skills/n8n-security-testing/evals/n8n-security-testing.yaml +493 -493
  65. package/.claude/skills/n8n-security-testing/schemas/output.json +293 -293
  66. package/.claude/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +500 -500
  67. package/.claude/skills/n8n-trigger-testing-strategies/schemas/output.json +295 -295
  68. package/.claude/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +497 -497
  69. package/.claude/skills/n8n-workflow-testing-fundamentals/schemas/output.json +254 -254
  70. package/.claude/skills/observability-testing-patterns/SKILL.md +930 -930
  71. package/.claude/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +157 -0
  72. package/.claude/skills/observability-testing-patterns/schemas/output.json +58 -0
  73. package/.claude/skills/observability-testing-patterns/scripts/validate-config.json +25 -0
  74. package/.claude/skills/pentest-validation/SKILL.md +268 -268
  75. package/.claude/skills/pentest-validation/evals/pentest-validation.yaml +708 -708
  76. package/.claude/skills/pentest-validation/schemas/output.json +281 -281
  77. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +144 -144
  78. package/.claude/skills/performance-analysis/schemas/output.json +588 -588
  79. package/.claude/skills/performance-testing/evals/performance-testing.yaml +772 -772
  80. package/.claude/skills/performance-testing/schemas/output.json +1184 -1184
  81. package/.claude/skills/pr-review/SKILL.md +61 -61
  82. package/.claude/skills/qcsd-cicd-swarm/SKILL.md +2206 -2206
  83. package/.claude/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +211 -0
  84. package/.claude/skills/qcsd-cicd-swarm/schemas/output.json +86 -0
  85. package/.claude/skills/qcsd-cicd-swarm/scripts/validate-config.json +30 -0
  86. package/.claude/skills/qcsd-development-swarm/SKILL.md +2154 -2154
  87. package/.claude/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +162 -0
  88. package/.claude/skills/qcsd-development-swarm/schemas/output.json +72 -0
  89. package/.claude/skills/qcsd-development-swarm/scripts/validate-config.json +25 -0
  90. package/.claude/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +138 -138
  91. package/.claude/skills/qcsd-ideation-swarm/schemas/output.json +568 -568
  92. package/.claude/skills/qcsd-production-swarm/SKILL.md +2781 -2781
  93. package/.claude/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -246
  94. package/.claude/skills/qcsd-production-swarm/schemas/output.json +505 -505
  95. package/.claude/skills/qcsd-production-swarm/scripts/validate-config.json +25 -25
  96. package/.claude/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +443 -443
  97. package/.claude/skills/qe-chaos-resilience/schemas/output.json +314 -314
  98. package/.claude/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +459 -459
  99. package/.claude/skills/qe-code-intelligence/schemas/output.json +315 -315
  100. package/.claude/skills/qe-contract-testing/evals/qe-contract-testing.yaml +513 -513
  101. package/.claude/skills/qe-contract-testing/schemas/output.json +295 -295
  102. package/.claude/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +494 -494
  103. package/.claude/skills/qe-coverage-analysis/schemas/output.json +286 -286
  104. package/.claude/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +511 -511
  105. package/.claude/skills/qe-defect-intelligence/schemas/output.json +283 -283
  106. package/.claude/skills/qe-iterative-loop/schemas/output.json +264 -264
  107. package/.claude/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +144 -144
  108. package/.claude/skills/qe-learning-optimization/schemas/output.json +288 -288
  109. package/.claude/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +506 -506
  110. package/.claude/skills/qe-quality-assessment/schemas/output.json +550 -550
  111. package/.claude/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +598 -598
  112. package/.claude/skills/qe-requirements-validation/schemas/output.json +587 -587
  113. package/.claude/skills/qe-security-compliance/evals/qe-security-compliance.yaml +595 -595
  114. package/.claude/skills/qe-security-compliance/schemas/output.json +498 -498
  115. package/.claude/skills/qe-test-execution/evals/qe-test-execution.yaml +607 -607
  116. package/.claude/skills/qe-test-execution/schemas/output.json +529 -529
  117. package/.claude/skills/qe-test-generation/evals/qe-test-generation.yaml +148 -148
  118. package/.claude/skills/qe-test-generation/schemas/output.json +439 -439
  119. package/.claude/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +142 -142
  120. package/.claude/skills/qe-visual-accessibility/schemas/output.json +491 -491
  121. package/.claude/skills/quality-metrics/evals/quality-metrics.yaml +494 -494
  122. package/.claude/skills/quality-metrics/schemas/output.json +403 -403
  123. package/.claude/skills/refactoring-patterns/schemas/output.json +475 -475
  124. package/.claude/skills/regression-testing/evals/regression-testing.yaml +504 -504
  125. package/.claude/skills/regression-testing/schemas/output.json +311 -311
  126. package/.claude/skills/release/SKILL.md +347 -347
  127. package/.claude/skills/risk-based-testing/evals/risk-based-testing.yaml +141 -141
  128. package/.claude/skills/risk-based-testing/schemas/output.json +480 -480
  129. package/.claude/skills/security-testing/evals/security-testing.yaml +789 -789
  130. package/.claude/skills/security-testing/schemas/output.json +879 -879
  131. package/.claude/skills/security-visual-testing/evals/security-visual-testing.yaml +163 -163
  132. package/.claude/skills/security-visual-testing/schemas/output.json +486 -486
  133. package/.claude/skills/sfdipot-product-factors/SKILL.md +239 -239
  134. package/.claude/skills/sherlock-review/schemas/output.json +297 -297
  135. package/.claude/skills/shift-left-testing/evals/shift-left-testing.yaml +145 -145
  136. package/.claude/skills/shift-left-testing/schemas/output.json +459 -459
  137. package/.claude/skills/shift-right-testing/evals/shift-right-testing.yaml +147 -147
  138. package/.claude/skills/shift-right-testing/schemas/output.json +418 -418
  139. package/.claude/skills/skills-manifest.json +1 -1
  140. package/.claude/skills/tdd-london-chicago/schemas/output.json +444 -444
  141. package/.claude/skills/technical-writing/schemas/output.json +268 -268
  142. package/.claude/skills/test-automation-strategy/evals/test-automation-strategy.yaml +148 -148
  143. package/.claude/skills/test-automation-strategy/schemas/output.json +444 -444
  144. package/.claude/skills/test-data-management/evals/test-data-management.yaml +504 -504
  145. package/.claude/skills/test-data-management/schemas/output.json +284 -284
  146. package/.claude/skills/test-design-techniques/evals/test-design-techniques.yaml +142 -142
  147. package/.claude/skills/test-design-techniques/schemas/output.json +295 -295
  148. package/.claude/skills/test-environment-management/schemas/output.json +310 -310
  149. package/.claude/skills/test-idea-rewriting/SKILL.md +229 -229
  150. package/.claude/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +155 -155
  151. package/.claude/skills/test-reporting-analytics/schemas/output.json +329 -329
  152. package/.claude/skills/testability-scoring/evals/testability-scoring.yaml +814 -814
  153. package/.claude/skills/testability-scoring/resources/templates/config.template.js +84 -84
  154. package/.claude/skills/testability-scoring/schemas/output.json +606 -606
  155. package/.claude/skills/testability-scoring/scripts/generate-html-report.js +1007 -1007
  156. package/.claude/skills/trust-tier-manifest.json +78 -7
  157. package/.claude/skills/verification-quality/evals/verification-quality.yaml +150 -150
  158. package/.claude/skills/verification-quality/schemas/output.json +432 -432
  159. package/.claude/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +154 -154
  160. package/.claude/skills/visual-testing-advanced/schemas/output.json +294 -294
  161. package/.claude/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +165 -165
  162. package/.claude/skills/wms-testing-patterns/schemas/output.json +150 -150
  163. package/.claude/skills/wms-testing-patterns/scripts/validate-config.json +51 -51
  164. package/CHANGELOG.md +34 -0
  165. package/README.md +169 -900
  166. package/assets/agents/v3/helpers/quality-criteria/evidence-classification.md +116 -116
  167. package/assets/agents/v3/helpers/quality-criteria/htsm-categories.md +139 -139
  168. package/assets/governance/constitution.md +202 -202
  169. package/assets/governance/shards/chaos-resilience.shard.md +221 -221
  170. package/assets/governance/shards/code-intelligence.shard.md +178 -178
  171. package/assets/governance/shards/contract-testing.shard.md +206 -206
  172. package/assets/governance/shards/coverage-analysis.shard.md +146 -146
  173. package/assets/governance/shards/defect-intelligence.shard.md +182 -182
  174. package/assets/governance/shards/learning-optimization.shard.md +248 -248
  175. package/assets/governance/shards/quality-assessment.shard.md +165 -165
  176. package/assets/governance/shards/requirements-validation.shard.md +177 -177
  177. package/assets/governance/shards/security-compliance.shard.md +196 -196
  178. package/assets/governance/shards/test-execution.shard.md +156 -156
  179. package/assets/governance/shards/test-generation.shard.md +128 -128
  180. package/assets/governance/shards/visual-accessibility.shard.md +209 -209
  181. package/assets/hooks/cross-phase-memory.yaml +253 -253
  182. package/assets/patterns/adr-051-booster-patterns.json +78 -78
  183. package/assets/patterns/adr-051-embedding-patterns.json +147 -147
  184. package/assets/patterns/adr-051-integration-summary.json +62 -62
  185. package/assets/patterns/adr-051-reasoning-patterns.json +166 -166
  186. package/assets/patterns/adr-051-router-patterns.json +113 -113
  187. package/assets/patterns/index.json +136 -136
  188. package/assets/skills/.validation/README.md +111 -111
  189. package/assets/skills/.validation/examples/chaos-engineering-output.example.json +530 -530
  190. package/assets/skills/.validation/examples/performance-testing-output.example.json +252 -252
  191. package/assets/skills/.validation/examples/security-testing-output.example.json +413 -413
  192. package/assets/skills/.validation/examples/testability-scoring-output.example.json +350 -350
  193. package/assets/skills/.validation/schemas/skill-eval.schema.json +462 -462
  194. package/assets/skills/.validation/schemas/skill-frontmatter.schema.json +341 -341
  195. package/assets/skills/.validation/schemas/skill-output-meta.schema.json +199 -199
  196. package/assets/skills/.validation/schemas/skill-output.template.json +610 -610
  197. package/assets/skills/.validation/skill-validation-mcp-integration.md +250 -250
  198. package/assets/skills/.validation/templates/eval.template.yaml +366 -366
  199. package/assets/skills/.validation/templates/schemas/output.json +145 -145
  200. package/assets/skills/.validation/templates/security-testing-eval.template.yaml +725 -725
  201. package/assets/skills/.validation/templates/skill-frontmatter.example.yaml +225 -225
  202. package/assets/skills/.validation/test-data/invalid-output.json +5 -5
  203. package/assets/skills/.validation/test-data/minimal-output.json +9 -9
  204. package/assets/skills/.validation/test-data/sample-output.json +73 -73
  205. package/assets/skills/a11y-ally/SKILL.md +1664 -1658
  206. package/assets/skills/a11y-ally/evals/a11y-ally.yaml +376 -0
  207. package/assets/skills/a11y-ally/schemas/output.json +549 -0
  208. package/assets/skills/a11y-ally/scripts/validate-config.json +42 -0
  209. package/assets/skills/accessibility-testing/evals/accessibility-testing.yaml +719 -719
  210. package/assets/skills/accessibility-testing/schemas/output.json +776 -776
  211. package/assets/skills/accessibility-testing/test-data/sample-output.json +191 -191
  212. package/assets/skills/agentic-quality-engineering/schemas/output.json +577 -577
  213. package/assets/skills/api-testing-patterns/evals/api-testing-patterns.yaml +696 -696
  214. package/assets/skills/api-testing-patterns/schemas/output.json +845 -845
  215. package/assets/skills/aqe-v2-v3-migration/schemas/output.json +513 -513
  216. package/assets/skills/brutal-honesty-review/SKILL.md +5 -0
  217. package/assets/skills/brutal-honesty-review/schemas/output.json +291 -0
  218. package/assets/skills/brutal-honesty-review/scripts/validate-config.json +34 -0
  219. package/assets/skills/bug-reporting-excellence/schemas/output.json +288 -288
  220. package/assets/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -761
  221. package/assets/skills/chaos-engineering-resilience/schemas/output.json +1205 -1205
  222. package/assets/skills/cicd-pipeline-qe-orchestrator/README.md +1 -1
  223. package/assets/skills/cicd-pipeline-qe-orchestrator/SKILL.md +6 -0
  224. package/assets/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +157 -0
  225. package/assets/skills/cicd-pipeline-qe-orchestrator/schemas/output.json +542 -0
  226. package/assets/skills/cicd-pipeline-qe-orchestrator/scripts/validate-config.json +42 -0
  227. package/assets/skills/code-review-quality/schemas/output.json +264 -264
  228. package/assets/skills/compatibility-testing/evals/compatibility-testing.yaml +410 -410
  229. package/assets/skills/compatibility-testing/schemas/output.json +551 -551
  230. package/assets/skills/compliance-testing/evals/compliance-testing.yaml +1107 -1107
  231. package/assets/skills/compliance-testing/schemas/output.json +845 -845
  232. package/assets/skills/consultancy-practices/schemas/output.json +282 -282
  233. package/assets/skills/contract-testing/evals/contract-testing.yaml +748 -748
  234. package/assets/skills/contract-testing/schemas/output.json +638 -638
  235. package/assets/skills/database-testing/evals/database-testing.yaml +968 -968
  236. package/assets/skills/database-testing/schemas/output.json +1446 -1446
  237. package/assets/skills/debug-loop/SKILL.md +61 -61
  238. package/assets/skills/enterprise-integration-testing/SKILL.md +735 -735
  239. package/assets/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +158 -0
  240. package/assets/skills/enterprise-integration-testing/schemas/output.json +74 -0
  241. package/assets/skills/enterprise-integration-testing/scripts/validate-config.json +25 -0
  242. package/assets/skills/localization-testing/evals/localization-testing.yaml +544 -544
  243. package/assets/skills/localization-testing/schemas/output.json +325 -325
  244. package/assets/skills/middleware-testing-patterns/SKILL.md +798 -798
  245. package/assets/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +153 -0
  246. package/assets/skills/middleware-testing-patterns/schemas/output.json +58 -0
  247. package/assets/skills/middleware-testing-patterns/scripts/validate-config.json +25 -0
  248. package/assets/skills/mobile-testing/evals/mobile-testing.yaml +537 -537
  249. package/assets/skills/mobile-testing/schemas/output.json +318 -318
  250. package/assets/skills/mutation-testing/evals/mutation-testing.yaml +652 -652
  251. package/assets/skills/mutation-testing/schemas/output.json +707 -707
  252. package/assets/skills/mutation-testing/test-data/sample-output.json +295 -295
  253. package/assets/skills/n8n-expression-testing/SKILL.md +6 -0
  254. package/assets/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +450 -0
  255. package/assets/skills/n8n-expression-testing/schemas/output.json +369 -0
  256. package/assets/skills/n8n-expression-testing/scripts/validate-config.json +39 -0
  257. package/assets/skills/n8n-integration-testing-patterns/SKILL.md +6 -0
  258. package/assets/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +522 -0
  259. package/assets/skills/n8n-integration-testing-patterns/schemas/output.json +291 -0
  260. package/assets/skills/n8n-integration-testing-patterns/scripts/validate-config.json +34 -0
  261. package/assets/skills/n8n-security-testing/SKILL.md +6 -0
  262. package/assets/skills/n8n-security-testing/evals/n8n-security-testing.yaml +493 -0
  263. package/assets/skills/n8n-security-testing/schemas/output.json +293 -0
  264. package/assets/skills/n8n-security-testing/scripts/validate-config.json +34 -0
  265. package/assets/skills/n8n-trigger-testing-strategies/SKILL.md +6 -0
  266. package/assets/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +500 -0
  267. package/assets/skills/n8n-trigger-testing-strategies/schemas/output.json +295 -0
  268. package/assets/skills/n8n-trigger-testing-strategies/scripts/validate-config.json +34 -0
  269. package/assets/skills/n8n-workflow-testing-fundamentals/SKILL.md +6 -0
  270. package/assets/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +497 -0
  271. package/assets/skills/n8n-workflow-testing-fundamentals/schemas/output.json +254 -0
  272. package/assets/skills/n8n-workflow-testing-fundamentals/scripts/validate-config.json +35 -0
  273. package/assets/skills/observability-testing-patterns/SKILL.md +930 -930
  274. package/assets/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +157 -0
  275. package/assets/skills/observability-testing-patterns/schemas/output.json +58 -0
  276. package/assets/skills/observability-testing-patterns/scripts/validate-config.json +25 -0
  277. package/assets/skills/pentest-validation/SKILL.md +268 -268
  278. package/assets/skills/pentest-validation/evals/pentest-validation.yaml +708 -708
  279. package/assets/skills/pentest-validation/schemas/output.json +281 -281
  280. package/assets/skills/pentest-validation/scripts/validate-config.json +12 -0
  281. package/assets/skills/performance-testing/evals/performance-testing.yaml +772 -772
  282. package/assets/skills/performance-testing/schemas/output.json +1184 -1184
  283. package/assets/skills/pr-review/SKILL.md +61 -61
  284. package/assets/skills/qcsd-cicd-swarm/SKILL.md +2206 -2206
  285. package/assets/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +211 -0
  286. package/assets/skills/qcsd-cicd-swarm/schemas/output.json +86 -0
  287. package/assets/skills/qcsd-cicd-swarm/scripts/validate-config.json +30 -0
  288. package/assets/skills/qcsd-development-swarm/SKILL.md +2154 -2154
  289. package/assets/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +162 -0
  290. package/assets/skills/qcsd-development-swarm/schemas/output.json +72 -0
  291. package/assets/skills/qcsd-development-swarm/scripts/validate-config.json +25 -0
  292. package/assets/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +138 -0
  293. package/assets/skills/qcsd-ideation-swarm/schemas/output.json +568 -0
  294. package/assets/skills/qcsd-ideation-swarm/scripts/validate-config.json +25 -0
  295. package/assets/skills/qcsd-production-swarm/SKILL.md +2781 -0
  296. package/assets/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -0
  297. package/assets/skills/qcsd-production-swarm/schemas/output.json +505 -0
  298. package/assets/skills/qcsd-production-swarm/scripts/validate-config.json +25 -0
  299. package/assets/skills/qcsd-refinement-swarm/evals/qcsd-refinement-swarm.yaml +139 -0
  300. package/assets/skills/qcsd-refinement-swarm/schemas/output.json +811 -0
  301. package/assets/skills/qcsd-refinement-swarm/scripts/validate-config.json +25 -0
  302. package/assets/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +443 -443
  303. package/assets/skills/qe-chaos-resilience/schemas/output.json +314 -314
  304. package/assets/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +459 -459
  305. package/assets/skills/qe-code-intelligence/schemas/output.json +315 -315
  306. package/assets/skills/qe-contract-testing/evals/qe-contract-testing.yaml +513 -513
  307. package/assets/skills/qe-contract-testing/schemas/output.json +295 -295
  308. package/assets/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +494 -494
  309. package/assets/skills/qe-coverage-analysis/schemas/output.json +286 -286
  310. package/assets/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +511 -511
  311. package/assets/skills/qe-defect-intelligence/schemas/output.json +283 -283
  312. package/assets/skills/qe-iterative-loop/schemas/output.json +264 -264
  313. package/assets/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +144 -144
  314. package/assets/skills/qe-learning-optimization/schemas/output.json +288 -288
  315. package/assets/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +506 -506
  316. package/assets/skills/qe-quality-assessment/schemas/output.json +550 -550
  317. package/assets/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +598 -598
  318. package/assets/skills/qe-requirements-validation/schemas/output.json +587 -587
  319. package/assets/skills/qe-security-compliance/evals/qe-security-compliance.yaml +595 -595
  320. package/assets/skills/qe-security-compliance/schemas/output.json +498 -498
  321. package/assets/skills/qe-test-execution/evals/qe-test-execution.yaml +607 -607
  322. package/assets/skills/qe-test-execution/schemas/output.json +529 -529
  323. package/assets/skills/qe-test-generation/evals/qe-test-generation.yaml +148 -148
  324. package/assets/skills/qe-test-generation/schemas/output.json +439 -439
  325. package/assets/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +142 -142
  326. package/assets/skills/qe-visual-accessibility/schemas/output.json +491 -491
  327. package/assets/skills/quality-metrics/evals/quality-metrics.yaml +494 -494
  328. package/assets/skills/quality-metrics/schemas/output.json +403 -403
  329. package/assets/skills/refactoring-patterns/schemas/output.json +475 -475
  330. package/assets/skills/regression-testing/evals/regression-testing.yaml +504 -504
  331. package/assets/skills/regression-testing/schemas/output.json +311 -311
  332. package/assets/skills/risk-based-testing/evals/risk-based-testing.yaml +141 -141
  333. package/assets/skills/risk-based-testing/schemas/output.json +480 -480
  334. package/assets/skills/security-testing/evals/security-testing.yaml +789 -789
  335. package/assets/skills/security-testing/schemas/output.json +879 -879
  336. package/assets/skills/security-visual-testing/evals/security-visual-testing.yaml +163 -163
  337. package/assets/skills/security-visual-testing/schemas/output.json +486 -486
  338. package/assets/skills/security-visual-testing/scripts/validate-config.json +45 -0
  339. package/assets/skills/sfdipot-product-factors/SKILL.md +239 -239
  340. package/assets/skills/sherlock-review/SKILL.md +5 -0
  341. package/assets/skills/sherlock-review/schemas/output.json +297 -0
  342. package/assets/skills/sherlock-review/scripts/validate-config.json +35 -0
  343. package/assets/skills/shift-left-testing/evals/shift-left-testing.yaml +145 -145
  344. package/assets/skills/shift-left-testing/schemas/output.json +459 -459
  345. package/assets/skills/shift-right-testing/evals/shift-right-testing.yaml +147 -147
  346. package/assets/skills/shift-right-testing/schemas/output.json +418 -418
  347. package/assets/skills/tdd-london-chicago/schemas/output.json +444 -444
  348. package/assets/skills/technical-writing/schemas/output.json +268 -268
  349. package/assets/skills/test-automation-strategy/evals/test-automation-strategy.yaml +148 -148
  350. package/assets/skills/test-automation-strategy/schemas/output.json +444 -444
  351. package/assets/skills/test-data-management/evals/test-data-management.yaml +504 -504
  352. package/assets/skills/test-data-management/schemas/output.json +284 -284
  353. package/assets/skills/test-design-techniques/evals/test-design-techniques.yaml +142 -142
  354. package/assets/skills/test-design-techniques/schemas/output.json +295 -295
  355. package/assets/skills/test-environment-management/schemas/output.json +310 -310
  356. package/assets/skills/test-idea-rewriting/SKILL.md +229 -229
  357. package/assets/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +155 -155
  358. package/assets/skills/test-reporting-analytics/schemas/output.json +329 -329
  359. package/assets/skills/testability-scoring/SKILL.md +5 -0
  360. package/assets/skills/testability-scoring/evals/testability-scoring.yaml +814 -0
  361. package/assets/skills/testability-scoring/resources/templates/config.template.js +84 -84
  362. package/assets/skills/testability-scoring/schemas/output.json +606 -0
  363. package/assets/skills/testability-scoring/scripts/generate-html-report.js +1007 -1007
  364. package/assets/skills/testability-scoring/scripts/validate-config.json +42 -0
  365. package/assets/skills/trust-tier-manifest.json +2404 -0
  366. package/assets/skills/verification-quality/evals/verification-quality.yaml +150 -150
  367. package/assets/skills/verification-quality/schemas/output.json +432 -432
  368. package/assets/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +154 -154
  369. package/assets/skills/visual-testing-advanced/schemas/output.json +294 -294
  370. package/assets/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +165 -0
  371. package/assets/skills/wms-testing-patterns/schemas/output.json +150 -0
  372. package/assets/skills/wms-testing-patterns/scripts/validate-config.json +51 -0
  373. package/assets/templates/validation-summary.json +56 -56
  374. package/dist/benchmarks/performance-benchmarks.js +1 -1
  375. package/dist/cli/bundle.js +9158 -2288
  376. package/dist/cli/commands/hooks.d.ts.map +1 -1
  377. package/dist/cli/commands/hooks.js +92 -0
  378. package/dist/cli/commands/hooks.js.map +1 -1
  379. package/dist/cli/commands/mcp.d.ts.map +1 -1
  380. package/dist/cli/commands/mcp.js +11 -9
  381. package/dist/cli/commands/mcp.js.map +1 -1
  382. package/dist/cli/commands/migrate.js +2 -2
  383. package/dist/coordination/constants.d.ts +1 -1
  384. package/dist/coordination/constants.js +1 -1
  385. package/dist/coordination/handlers/coverage-handlers.js +1 -1
  386. package/dist/coordination/handlers/coverage-handlers.js.map +1 -1
  387. package/dist/domains/code-intelligence/services/semantic-analyzer.d.ts +1 -1
  388. package/dist/domains/code-intelligence/services/semantic-analyzer.d.ts.map +1 -1
  389. package/dist/domains/code-intelligence/services/semantic-analyzer.js +1 -1
  390. package/dist/domains/code-intelligence/services/semantic-analyzer.js.map +1 -1
  391. package/dist/domains/coverage-analysis/coordinator.js +1 -1
  392. package/dist/domains/coverage-analysis/services/coverage-analyzer.js +1 -1
  393. package/dist/domains/coverage-analysis/services/coverage-embedder.d.ts +1 -1
  394. package/dist/domains/coverage-analysis/services/coverage-embedder.js +1 -1
  395. package/dist/domains/coverage-analysis/services/gap-detector.js +1 -1
  396. package/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.js +1 -1
  397. package/dist/domains/coverage-analysis/services/hnsw-index.d.ts +2 -2
  398. package/dist/domains/coverage-analysis/services/hnsw-index.js +3 -3
  399. package/dist/domains/coverage-analysis/services/sublinear-analyzer.d.ts +1 -1
  400. package/dist/domains/coverage-analysis/services/sublinear-analyzer.js +1 -1
  401. package/dist/domains/test-execution/services/test-prioritizer.js +1 -1
  402. package/dist/domains/test-generation/context/rust-context-builder.d.ts +31 -0
  403. package/dist/domains/test-generation/context/rust-context-builder.d.ts.map +1 -0
  404. package/dist/domains/test-generation/context/rust-context-builder.js +27 -0
  405. package/dist/domains/test-generation/context/rust-context-builder.js.map +1 -0
  406. package/dist/domains/test-generation/coordinator.js +3 -3
  407. package/dist/domains/test-generation/coordinator.js.map +1 -1
  408. package/dist/domains/test-generation/detectors/mobile-detector.d.ts +41 -0
  409. package/dist/domains/test-generation/detectors/mobile-detector.d.ts.map +1 -0
  410. package/dist/domains/test-generation/detectors/mobile-detector.js +111 -0
  411. package/dist/domains/test-generation/detectors/mobile-detector.js.map +1 -0
  412. package/dist/domains/test-generation/detectors/spring-detector.d.ts +22 -0
  413. package/dist/domains/test-generation/detectors/spring-detector.d.ts.map +1 -0
  414. package/dist/domains/test-generation/detectors/spring-detector.js +37 -0
  415. package/dist/domains/test-generation/detectors/spring-detector.js.map +1 -0
  416. package/dist/domains/test-generation/factories/test-generator-factory.d.ts +2 -1
  417. package/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -1
  418. package/dist/domains/test-generation/factories/test-generator-factory.js +33 -13
  419. package/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -1
  420. package/dist/domains/test-generation/generators/flutter-test-generator.d.ts +107 -0
  421. package/dist/domains/test-generation/generators/flutter-test-generator.d.ts.map +1 -0
  422. package/dist/domains/test-generation/generators/flutter-test-generator.js +590 -0
  423. package/dist/domains/test-generation/generators/flutter-test-generator.js.map +1 -0
  424. package/dist/domains/test-generation/generators/go-test-generator.d.ts +139 -0
  425. package/dist/domains/test-generation/generators/go-test-generator.d.ts.map +1 -0
  426. package/dist/domains/test-generation/generators/go-test-generator.js +654 -0
  427. package/dist/domains/test-generation/generators/go-test-generator.js.map +1 -0
  428. package/dist/domains/test-generation/generators/index.d.ts +8 -0
  429. package/dist/domains/test-generation/generators/index.d.ts.map +1 -1
  430. package/dist/domains/test-generation/generators/index.js +8 -0
  431. package/dist/domains/test-generation/generators/index.js.map +1 -1
  432. package/dist/domains/test-generation/generators/jest-rn-generator.d.ts +95 -0
  433. package/dist/domains/test-generation/generators/jest-rn-generator.d.ts.map +1 -0
  434. package/dist/domains/test-generation/generators/jest-rn-generator.js +591 -0
  435. package/dist/domains/test-generation/generators/jest-rn-generator.js.map +1 -0
  436. package/dist/domains/test-generation/generators/junit5-generator.d.ts +107 -0
  437. package/dist/domains/test-generation/generators/junit5-generator.d.ts.map +1 -0
  438. package/dist/domains/test-generation/generators/junit5-generator.js +588 -0
  439. package/dist/domains/test-generation/generators/junit5-generator.js.map +1 -0
  440. package/dist/domains/test-generation/generators/kotlin-junit-generator.d.ts +109 -0
  441. package/dist/domains/test-generation/generators/kotlin-junit-generator.d.ts.map +1 -0
  442. package/dist/domains/test-generation/generators/kotlin-junit-generator.js +588 -0
  443. package/dist/domains/test-generation/generators/kotlin-junit-generator.js.map +1 -0
  444. package/dist/domains/test-generation/generators/pytest-generator.d.ts +8 -1
  445. package/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -1
  446. package/dist/domains/test-generation/generators/pytest-generator.js +57 -0
  447. package/dist/domains/test-generation/generators/pytest-generator.js.map +1 -1
  448. package/dist/domains/test-generation/generators/rust-test-generator.d.ts +80 -0
  449. package/dist/domains/test-generation/generators/rust-test-generator.d.ts.map +1 -0
  450. package/dist/domains/test-generation/generators/rust-test-generator.js +442 -0
  451. package/dist/domains/test-generation/generators/rust-test-generator.js.map +1 -0
  452. package/dist/domains/test-generation/generators/swift-testing-generator.d.ts +97 -0
  453. package/dist/domains/test-generation/generators/swift-testing-generator.d.ts.map +1 -0
  454. package/dist/domains/test-generation/generators/swift-testing-generator.js +482 -0
  455. package/dist/domains/test-generation/generators/swift-testing-generator.js.map +1 -0
  456. package/dist/domains/test-generation/generators/xunit-generator.d.ts +110 -0
  457. package/dist/domains/test-generation/generators/xunit-generator.d.ts.map +1 -0
  458. package/dist/domains/test-generation/generators/xunit-generator.js +611 -0
  459. package/dist/domains/test-generation/generators/xunit-generator.js.map +1 -0
  460. package/dist/domains/test-generation/interfaces.d.ts +11 -2
  461. package/dist/domains/test-generation/interfaces.d.ts.map +1 -1
  462. package/dist/domains/test-generation/prompts/language-prompts.d.ts +29 -0
  463. package/dist/domains/test-generation/prompts/language-prompts.d.ts.map +1 -0
  464. package/dist/domains/test-generation/prompts/language-prompts.js +135 -0
  465. package/dist/domains/test-generation/prompts/language-prompts.js.map +1 -0
  466. package/dist/domains/test-generation/services/compilation-validator.d.ts +43 -0
  467. package/dist/domains/test-generation/services/compilation-validator.d.ts.map +1 -0
  468. package/dist/domains/test-generation/services/compilation-validator.js +134 -0
  469. package/dist/domains/test-generation/services/compilation-validator.js.map +1 -0
  470. package/dist/domains/test-generation/services/index.d.ts +2 -1
  471. package/dist/domains/test-generation/services/index.d.ts.map +1 -1
  472. package/dist/domains/test-generation/services/index.js +3 -1
  473. package/dist/domains/test-generation/services/index.js.map +1 -1
  474. package/dist/domains/test-generation/services/test-file-resolver.d.ts +32 -0
  475. package/dist/domains/test-generation/services/test-file-resolver.d.ts.map +1 -0
  476. package/dist/domains/test-generation/services/test-file-resolver.js +159 -0
  477. package/dist/domains/test-generation/services/test-file-resolver.js.map +1 -0
  478. package/dist/domains/test-generation/services/test-generator.d.ts +10 -0
  479. package/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
  480. package/dist/domains/test-generation/services/test-generator.js +87 -10
  481. package/dist/domains/test-generation/services/test-generator.js.map +1 -1
  482. package/dist/governance/feature-flags.js +2 -2
  483. package/dist/governance/feature-flags.js.map +1 -1
  484. package/dist/governance/shard-embeddings.js +1 -1
  485. package/dist/init/init-wizard-hooks.d.ts.map +1 -1
  486. package/dist/init/init-wizard-hooks.js +0 -1
  487. package/dist/init/init-wizard-hooks.js.map +1 -1
  488. package/dist/init/phases/07-hooks.d.ts.map +1 -1
  489. package/dist/init/phases/07-hooks.js +0 -2
  490. package/dist/init/phases/07-hooks.js.map +1 -1
  491. package/dist/init/phases/08-mcp.d.ts +8 -4
  492. package/dist/init/phases/08-mcp.d.ts.map +1 -1
  493. package/dist/init/phases/08-mcp.js +13 -31
  494. package/dist/init/phases/08-mcp.js.map +1 -1
  495. package/dist/init/phases/10-workers.js +4 -4
  496. package/dist/init/phases/10-workers.js.map +1 -1
  497. package/dist/init/settings-merge.d.ts.map +1 -1
  498. package/dist/init/settings-merge.js +0 -2
  499. package/dist/init/settings-merge.js.map +1 -1
  500. package/dist/init/token-bootstrap.js +1 -1
  501. package/dist/init/token-bootstrap.js.map +1 -1
  502. package/dist/integrations/rl-suite/algorithms/decision-transformer.js +1 -1
  503. package/dist/kernel/constants.d.ts +2 -2
  504. package/dist/kernel/constants.js +2 -2
  505. package/dist/kernel/hnsw-adapter.js +1 -1
  506. package/dist/kernel/progressive-hnsw-backend.d.ts +2 -2
  507. package/dist/kernel/progressive-hnsw-backend.js +2 -2
  508. package/dist/learning/dream/concept-graph.d.ts +1 -1
  509. package/dist/learning/dream/concept-graph.js +1 -1
  510. package/dist/learning/dream/dream-engine.d.ts +1 -1
  511. package/dist/learning/dream/dream-engine.js +1 -1
  512. package/dist/learning/dream/index.d.ts +1 -1
  513. package/dist/learning/dream/index.js +1 -1
  514. package/dist/learning/dream/types.d.ts +1 -1
  515. package/dist/learning/dream/types.d.ts.map +1 -1
  516. package/dist/learning/dream/types.js +1 -1
  517. package/dist/learning/dream/types.js.map +1 -1
  518. package/dist/learning/token-tracker.js +1 -1
  519. package/dist/learning/token-tracker.js.map +1 -1
  520. package/dist/mcp/bundle.js +7538 -893
  521. package/dist/routing/qe-agent-registry.js +4 -4
  522. package/dist/routing/qe-agent-registry.js.map +1 -1
  523. package/dist/routing/types.d.ts +5 -8
  524. package/dist/routing/types.d.ts.map +1 -1
  525. package/dist/routing/types.js.map +1 -1
  526. package/dist/shared/embeddings/embedding-cache.js +2 -2
  527. package/dist/shared/embeddings/index.d.ts +2 -2
  528. package/dist/shared/embeddings/index.js +2 -2
  529. package/dist/shared/embeddings/nomic-embedder.d.ts +4 -4
  530. package/dist/shared/embeddings/nomic-embedder.js +2 -2
  531. package/dist/shared/embeddings/ollama-client.d.ts +1 -1
  532. package/dist/shared/embeddings/ollama-client.js +2 -2
  533. package/dist/shared/embeddings/ollama-client.js.map +1 -1
  534. package/dist/shared/embeddings/types.d.ts +2 -2
  535. package/dist/shared/embeddings/types.js +2 -2
  536. package/dist/shared/language-detector.d.ts +46 -0
  537. package/dist/shared/language-detector.d.ts.map +1 -0
  538. package/dist/shared/language-detector.js +183 -0
  539. package/dist/shared/language-detector.js.map +1 -0
  540. package/dist/shared/llm/providers/ollama.js +1 -1
  541. package/dist/shared/metrics/code-metrics.d.ts.map +1 -1
  542. package/dist/shared/metrics/code-metrics.js +24 -1
  543. package/dist/shared/metrics/code-metrics.js.map +1 -1
  544. package/dist/shared/parsers/index.d.ts +2 -0
  545. package/dist/shared/parsers/index.d.ts.map +1 -1
  546. package/dist/shared/parsers/index.js +2 -0
  547. package/dist/shared/parsers/index.js.map +1 -1
  548. package/dist/shared/parsers/interfaces.d.ts +81 -0
  549. package/dist/shared/parsers/interfaces.d.ts.map +1 -0
  550. package/dist/shared/parsers/interfaces.js +6 -0
  551. package/dist/shared/parsers/interfaces.js.map +1 -0
  552. package/dist/shared/parsers/multi-language-parser.d.ts +144 -0
  553. package/dist/shared/parsers/multi-language-parser.d.ts.map +1 -0
  554. package/dist/shared/parsers/multi-language-parser.js +1271 -0
  555. package/dist/shared/parsers/multi-language-parser.js.map +1 -0
  556. package/dist/shared/parsers/rust-ownership-analyzer.d.ts +45 -0
  557. package/dist/shared/parsers/rust-ownership-analyzer.d.ts.map +1 -0
  558. package/dist/shared/parsers/rust-ownership-analyzer.js +52 -0
  559. package/dist/shared/parsers/rust-ownership-analyzer.js.map +1 -0
  560. package/dist/shared/parsers/typescript-parser.d.ts +16 -0
  561. package/dist/shared/parsers/typescript-parser.d.ts.map +1 -1
  562. package/dist/shared/parsers/typescript-parser.js +85 -0
  563. package/dist/shared/parsers/typescript-parser.js.map +1 -1
  564. package/dist/shared/types/test-frameworks.d.ts +25 -0
  565. package/dist/shared/types/test-frameworks.d.ts.map +1 -0
  566. package/dist/shared/types/test-frameworks.js +111 -0
  567. package/dist/shared/types/test-frameworks.js.map +1 -0
  568. package/package.json +1 -1
  569. package/scripts/prepare-assets.sh +16 -2
@@ -1,1446 +1,1446 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://agentic-qe.dev/schemas/database-testing-output.json",
4
- "title": "AQE Database Testing Skill Output Schema",
5
- "description": "Schema for database-testing skill output validation. Extends the base skill-output template with schema validation, data integrity testing, migration verification, transaction testing, and query performance analysis.",
6
- "type": "object",
7
- "required": ["skillName", "version", "timestamp", "status", "trustTier", "output"],
8
- "properties": {
9
- "skillName": {
10
- "type": "string",
11
- "const": "database-testing",
12
- "description": "Must be 'database-testing'"
13
- },
14
- "version": {
15
- "type": "string",
16
- "pattern": "^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9]+)?$",
17
- "description": "Semantic version of the skill"
18
- },
19
- "timestamp": {
20
- "type": "string",
21
- "format": "date-time",
22
- "description": "ISO 8601 timestamp of output generation"
23
- },
24
- "status": {
25
- "type": "string",
26
- "enum": ["success", "partial", "failed", "skipped"],
27
- "description": "Overall execution status"
28
- },
29
- "trustTier": {
30
- "type": "integer",
31
- "const": 3,
32
- "description": "Trust tier 3 indicates full validation with eval suite"
33
- },
34
- "output": {
35
- "type": "object",
36
- "required": ["summary", "findings", "testTypes", "databaseInfo"],
37
- "properties": {
38
- "summary": {
39
- "type": "string",
40
- "minLength": 50,
41
- "maxLength": 2000,
42
- "description": "Human-readable summary of database testing findings"
43
- },
44
- "score": {
45
- "$ref": "#/$defs/databaseScore",
46
- "description": "Overall database quality score"
47
- },
48
- "findings": {
49
- "type": "array",
50
- "items": {
51
- "$ref": "#/$defs/databaseFinding"
52
- },
53
- "maxItems": 500,
54
- "description": "List of database issues discovered"
55
- },
56
- "recommendations": {
57
- "type": "array",
58
- "items": {
59
- "$ref": "#/$defs/databaseRecommendation"
60
- },
61
- "maxItems": 100,
62
- "description": "Prioritized recommendations for database improvements"
63
- },
64
- "metrics": {
65
- "$ref": "#/$defs/databaseMetrics",
66
- "description": "Database testing metrics and statistics"
67
- },
68
- "testTypes": {
69
- "$ref": "#/$defs/testTypeBreakdown",
70
- "description": "Breakdown by database test type"
71
- },
72
- "databaseInfo": {
73
- "$ref": "#/$defs/databaseInfo",
74
- "description": "Target database information"
75
- },
76
- "schemaValidation": {
77
- "$ref": "#/$defs/schemaValidation",
78
- "description": "Schema validation results"
79
- },
80
- "dataIntegrity": {
81
- "$ref": "#/$defs/dataIntegrity",
82
- "description": "Data integrity test results"
83
- },
84
- "migrationTests": {
85
- "$ref": "#/$defs/migrationTests",
86
- "description": "Migration test results"
87
- },
88
- "transactionTests": {
89
- "$ref": "#/$defs/transactionTests",
90
- "description": "Transaction/ACID test results"
91
- },
92
- "performanceTests": {
93
- "$ref": "#/$defs/performanceTests",
94
- "description": "Query performance test results"
95
- },
96
- "artifacts": {
97
- "type": "array",
98
- "items": {
99
- "$ref": "#/$defs/artifact"
100
- },
101
- "maxItems": 50,
102
- "description": "Generated test reports and artifacts"
103
- },
104
- "timeline": {
105
- "type": "array",
106
- "items": {
107
- "$ref": "#/$defs/timelineEvent"
108
- },
109
- "description": "Test execution timeline"
110
- }
111
- }
112
- },
113
- "metadata": {
114
- "$ref": "#/$defs/metadata"
115
- },
116
- "validation": {
117
- "$ref": "#/$defs/validationResult"
118
- },
119
- "learning": {
120
- "$ref": "#/$defs/learningData"
121
- }
122
- },
123
- "$defs": {
124
- "databaseScore": {
125
- "type": "object",
126
- "required": ["value", "max"],
127
- "properties": {
128
- "value": {
129
- "type": "number",
130
- "minimum": 0,
131
- "maximum": 100,
132
- "description": "Database quality score (0=critical issues, 100=excellent)"
133
- },
134
- "max": {
135
- "type": "number",
136
- "const": 100,
137
- "description": "Maximum score is always 100"
138
- },
139
- "grade": {
140
- "type": "string",
141
- "pattern": "^[A-F][+-]?$",
142
- "description": "Letter grade: A (90-100), B (80-89), C (70-79), D (60-69), F (<60)"
143
- },
144
- "trend": {
145
- "type": "string",
146
- "enum": ["improving", "stable", "declining", "unknown"],
147
- "description": "Trend compared to previous assessments"
148
- },
149
- "dataQualityLevel": {
150
- "type": "string",
151
- "enum": ["excellent", "good", "fair", "poor", "critical"],
152
- "description": "Overall data quality assessment"
153
- }
154
- }
155
- },
156
- "databaseFinding": {
157
- "type": "object",
158
- "required": ["id", "title", "severity", "testType"],
159
- "properties": {
160
- "id": {
161
- "type": "string",
162
- "pattern": "^DB-\\d{3,6}$",
163
- "description": "Unique finding identifier (e.g., DB-001)"
164
- },
165
- "title": {
166
- "type": "string",
167
- "minLength": 10,
168
- "maxLength": 200,
169
- "description": "Finding title describing the database issue"
170
- },
171
- "description": {
172
- "type": "string",
173
- "maxLength": 2000,
174
- "description": "Detailed description of the database issue"
175
- },
176
- "severity": {
177
- "type": "string",
178
- "enum": ["critical", "high", "medium", "low", "info"],
179
- "description": "Severity: critical=data loss risk, high=integrity risk, medium=performance, low=improvement, info=informational"
180
- },
181
- "testType": {
182
- "type": "string",
183
- "enum": ["schema", "integrity", "migration", "transaction", "performance", "data-quality"],
184
- "description": "Category of database test that found this issue"
185
- },
186
- "category": {
187
- "type": "string",
188
- "enum": [
189
- "missing-constraint",
190
- "orphaned-records",
191
- "constraint-violation",
192
- "schema-mismatch",
193
- "migration-failure",
194
- "migration-rollback-failure",
195
- "data-loss",
196
- "transaction-isolation",
197
- "deadlock",
198
- "slow-query",
199
- "missing-index",
200
- "n-plus-one",
201
- "connection-leak",
202
- "data-corruption",
203
- "referential-integrity",
204
- "null-violation",
205
- "type-mismatch",
206
- "encoding-issue"
207
- ],
208
- "description": "Specific category of database issue"
209
- },
210
- "location": {
211
- "$ref": "#/$defs/databaseLocation",
212
- "description": "Location of the issue in the database"
213
- },
214
- "evidence": {
215
- "type": "string",
216
- "maxLength": 5000,
217
- "description": "Evidence: SQL query, error message, data sample"
218
- },
219
- "remediation": {
220
- "type": "string",
221
- "maxLength": 2000,
222
- "description": "Specific fix instructions for this finding"
223
- },
224
- "sqlFix": {
225
- "type": "string",
226
- "maxLength": 2000,
227
- "description": "SQL statement to fix the issue"
228
- },
229
- "affectedRows": {
230
- "type": "integer",
231
- "minimum": 0,
232
- "description": "Number of rows affected by this issue"
233
- },
234
- "affectedTables": {
235
- "type": "array",
236
- "items": { "type": "string" },
237
- "description": "Tables affected by this issue"
238
- },
239
- "falsePositive": {
240
- "type": "boolean",
241
- "default": false,
242
- "description": "Potential false positive flag"
243
- },
244
- "confidence": {
245
- "type": "number",
246
- "minimum": 0,
247
- "maximum": 1,
248
- "description": "Confidence in finding accuracy (0.0-1.0)"
249
- },
250
- "dataImpact": {
251
- "type": "string",
252
- "enum": ["none", "low", "medium", "high", "critical"],
253
- "description": "Potential data impact if not fixed"
254
- }
255
- }
256
- },
257
- "databaseRecommendation": {
258
- "type": "object",
259
- "required": ["id", "title", "priority", "testType"],
260
- "properties": {
261
- "id": {
262
- "type": "string",
263
- "pattern": "^REC-\\d{3,6}$",
264
- "description": "Unique recommendation identifier"
265
- },
266
- "title": {
267
- "type": "string",
268
- "minLength": 10,
269
- "maxLength": 200,
270
- "description": "Recommendation title"
271
- },
272
- "description": {
273
- "type": "string",
274
- "maxLength": 2000,
275
- "description": "Detailed recommendation description"
276
- },
277
- "priority": {
278
- "type": "string",
279
- "enum": ["critical", "high", "medium", "low"],
280
- "description": "Remediation priority"
281
- },
282
- "effort": {
283
- "type": "string",
284
- "enum": ["trivial", "low", "medium", "high", "major"],
285
- "description": "Estimated effort"
286
- },
287
- "impact": {
288
- "type": "integer",
289
- "minimum": 1,
290
- "maximum": 10,
291
- "description": "Database quality impact if implemented (1-10)"
292
- },
293
- "relatedFindings": {
294
- "type": "array",
295
- "items": {
296
- "type": "string",
297
- "pattern": "^DB-\\d{3,6}$"
298
- },
299
- "description": "IDs of findings this addresses"
300
- },
301
- "testType": {
302
- "type": "string",
303
- "enum": ["schema", "integrity", "migration", "transaction", "performance", "data-quality"],
304
- "description": "Related test type"
305
- },
306
- "sqlExample": {
307
- "type": "object",
308
- "properties": {
309
- "before": {
310
- "type": "string",
311
- "maxLength": 2000,
312
- "description": "Problematic SQL/schema"
313
- },
314
- "after": {
315
- "type": "string",
316
- "maxLength": 2000,
317
- "description": "Recommended SQL/schema"
318
- },
319
- "migration": {
320
- "type": "string",
321
- "maxLength": 2000,
322
- "description": "Migration SQL to apply fix"
323
- }
324
- },
325
- "description": "SQL examples for remediation"
326
- },
327
- "resources": {
328
- "type": "array",
329
- "items": {
330
- "type": "object",
331
- "required": ["title", "url"],
332
- "properties": {
333
- "title": { "type": "string" },
334
- "url": { "type": "string", "format": "uri" }
335
- }
336
- },
337
- "maxItems": 10,
338
- "description": "External resources and documentation"
339
- },
340
- "automatable": {
341
- "type": "boolean",
342
- "description": "Can this fix be automated via migration?"
343
- }
344
- }
345
- },
346
- "testTypeBreakdown": {
347
- "type": "object",
348
- "description": "Database test type breakdown",
349
- "properties": {
350
- "schema": {
351
- "$ref": "#/$defs/testTypeScore",
352
- "description": "Schema validation tests"
353
- },
354
- "integrity": {
355
- "$ref": "#/$defs/testTypeScore",
356
- "description": "Data integrity tests"
357
- },
358
- "migration": {
359
- "$ref": "#/$defs/testTypeScore",
360
- "description": "Migration tests"
361
- },
362
- "transaction": {
363
- "$ref": "#/$defs/testTypeScore",
364
- "description": "Transaction/ACID tests"
365
- },
366
- "performance": {
367
- "$ref": "#/$defs/testTypeScore",
368
- "description": "Query performance tests"
369
- },
370
- "dataQuality": {
371
- "$ref": "#/$defs/testTypeScore",
372
- "description": "Data quality tests"
373
- }
374
- },
375
- "additionalProperties": false
376
- },
377
- "testTypeScore": {
378
- "type": "object",
379
- "required": ["tested", "score"],
380
- "properties": {
381
- "tested": {
382
- "type": "boolean",
383
- "description": "Whether this test type was executed"
384
- },
385
- "score": {
386
- "type": "number",
387
- "minimum": 0,
388
- "maximum": 100,
389
- "description": "Test type score (100 = all passed, 0 = all failed)"
390
- },
391
- "grade": {
392
- "type": "string",
393
- "pattern": "^[A-F][+-]?$",
394
- "description": "Letter grade for this test type"
395
- },
396
- "findingCount": {
397
- "type": "integer",
398
- "minimum": 0,
399
- "description": "Number of findings in this category"
400
- },
401
- "passedTests": {
402
- "type": "integer",
403
- "minimum": 0,
404
- "description": "Number of tests passed"
405
- },
406
- "failedTests": {
407
- "type": "integer",
408
- "minimum": 0,
409
- "description": "Number of tests failed"
410
- },
411
- "skippedTests": {
412
- "type": "integer",
413
- "minimum": 0,
414
- "description": "Number of tests skipped"
415
- },
416
- "status": {
417
- "type": "string",
418
- "enum": ["pass", "fail", "warn", "skip"],
419
- "description": "Overall status for this test type"
420
- }
421
- }
422
- },
423
- "databaseInfo": {
424
- "type": "object",
425
- "required": ["type"],
426
- "properties": {
427
- "type": {
428
- "type": "string",
429
- "enum": ["postgresql", "mysql", "mariadb", "mongodb", "sqlite", "mssql", "oracle", "redis", "cassandra", "other"],
430
- "description": "Database engine type"
431
- },
432
- "version": {
433
- "type": "string",
434
- "description": "Database version"
435
- },
436
- "name": {
437
- "type": "string",
438
- "description": "Database name"
439
- },
440
- "host": {
441
- "type": "string",
442
- "description": "Database host (masked for security)"
443
- },
444
- "schemaCount": {
445
- "type": "integer",
446
- "minimum": 0,
447
- "description": "Number of schemas analyzed"
448
- },
449
- "tableCount": {
450
- "type": "integer",
451
- "minimum": 0,
452
- "description": "Number of tables analyzed"
453
- },
454
- "totalRows": {
455
- "type": "integer",
456
- "minimum": 0,
457
- "description": "Total rows in database"
458
- },
459
- "sizeBytes": {
460
- "type": "integer",
461
- "minimum": 0,
462
- "description": "Database size in bytes"
463
- },
464
- "connectionPool": {
465
- "type": "object",
466
- "properties": {
467
- "min": { "type": "integer" },
468
- "max": { "type": "integer" },
469
- "current": { "type": "integer" }
470
- },
471
- "description": "Connection pool settings"
472
- }
473
- }
474
- },
475
- "schemaValidation": {
476
- "type": "object",
477
- "description": "Schema validation results",
478
- "properties": {
479
- "tablesValidated": {
480
- "type": "integer",
481
- "minimum": 0,
482
- "description": "Number of tables validated"
483
- },
484
- "columnsValidated": {
485
- "type": "integer",
486
- "minimum": 0,
487
- "description": "Number of columns validated"
488
- },
489
- "tables": {
490
- "type": "array",
491
- "items": {
492
- "$ref": "#/$defs/tableValidation"
493
- },
494
- "description": "Per-table validation results"
495
- },
496
- "missingTables": {
497
- "type": "array",
498
- "items": { "type": "string" },
499
- "description": "Tables that should exist but don't"
500
- },
501
- "extraTables": {
502
- "type": "array",
503
- "items": { "type": "string" },
504
- "description": "Tables that exist but shouldn't"
505
- },
506
- "constraintIssues": {
507
- "type": "array",
508
- "items": {
509
- "$ref": "#/$defs/constraintIssue"
510
- },
511
- "description": "Constraint-related issues"
512
- },
513
- "indexIssues": {
514
- "type": "array",
515
- "items": {
516
- "$ref": "#/$defs/indexIssue"
517
- },
518
- "description": "Index-related issues"
519
- }
520
- }
521
- },
522
- "tableValidation": {
523
- "type": "object",
524
- "required": ["name", "status"],
525
- "properties": {
526
- "name": {
527
- "type": "string",
528
- "description": "Table name"
529
- },
530
- "status": {
531
- "type": "string",
532
- "enum": ["valid", "invalid", "warning"],
533
- "description": "Validation status"
534
- },
535
- "columns": {
536
- "type": "array",
537
- "items": {
538
- "$ref": "#/$defs/columnValidation"
539
- },
540
- "description": "Column validation results"
541
- },
542
- "primaryKey": {
543
- "type": "object",
544
- "properties": {
545
- "exists": { "type": "boolean" },
546
- "columns": {
547
- "type": "array",
548
- "items": { "type": "string" }
549
- }
550
- },
551
- "description": "Primary key validation"
552
- },
553
- "foreignKeys": {
554
- "type": "array",
555
- "items": {
556
- "$ref": "#/$defs/foreignKeyValidation"
557
- },
558
- "description": "Foreign key validations"
559
- },
560
- "indexes": {
561
- "type": "array",
562
- "items": {
563
- "$ref": "#/$defs/indexValidation"
564
- },
565
- "description": "Index validations"
566
- },
567
- "rowCount": {
568
- "type": "integer",
569
- "minimum": 0,
570
- "description": "Number of rows in table"
571
- }
572
- }
573
- },
574
- "columnValidation": {
575
- "type": "object",
576
- "required": ["name", "dataType"],
577
- "properties": {
578
- "name": {
579
- "type": "string",
580
- "description": "Column name"
581
- },
582
- "dataType": {
583
- "type": "string",
584
- "description": "Column data type"
585
- },
586
- "expectedType": {
587
- "type": "string",
588
- "description": "Expected data type (if different)"
589
- },
590
- "nullable": {
591
- "type": "boolean",
592
- "description": "Whether column allows NULL"
593
- },
594
- "hasDefault": {
595
- "type": "boolean",
596
- "description": "Whether column has a default value"
597
- },
598
- "defaultValue": {
599
- "description": "Default value"
600
- },
601
- "issues": {
602
- "type": "array",
603
- "items": { "type": "string" },
604
- "description": "Issues with this column"
605
- }
606
- }
607
- },
608
- "foreignKeyValidation": {
609
- "type": "object",
610
- "required": ["name", "referencedTable"],
611
- "properties": {
612
- "name": {
613
- "type": "string",
614
- "description": "Foreign key constraint name"
615
- },
616
- "columns": {
617
- "type": "array",
618
- "items": { "type": "string" },
619
- "description": "Local columns"
620
- },
621
- "referencedTable": {
622
- "type": "string",
623
- "description": "Referenced table name"
624
- },
625
- "referencedColumns": {
626
- "type": "array",
627
- "items": { "type": "string" },
628
- "description": "Referenced columns"
629
- },
630
- "onDelete": {
631
- "type": "string",
632
- "enum": ["CASCADE", "SET NULL", "SET DEFAULT", "RESTRICT", "NO ACTION"],
633
- "description": "ON DELETE action"
634
- },
635
- "onUpdate": {
636
- "type": "string",
637
- "enum": ["CASCADE", "SET NULL", "SET DEFAULT", "RESTRICT", "NO ACTION"],
638
- "description": "ON UPDATE action"
639
- },
640
- "valid": {
641
- "type": "boolean",
642
- "description": "Whether FK is valid"
643
- },
644
- "orphanedRecords": {
645
- "type": "integer",
646
- "minimum": 0,
647
- "description": "Number of orphaned records found"
648
- }
649
- }
650
- },
651
- "indexValidation": {
652
- "type": "object",
653
- "required": ["name"],
654
- "properties": {
655
- "name": {
656
- "type": "string",
657
- "description": "Index name"
658
- },
659
- "columns": {
660
- "type": "array",
661
- "items": { "type": "string" },
662
- "description": "Indexed columns"
663
- },
664
- "unique": {
665
- "type": "boolean",
666
- "description": "Whether index is unique"
667
- },
668
- "type": {
669
- "type": "string",
670
- "enum": ["btree", "hash", "gin", "gist", "brin", "fulltext", "spatial"],
671
- "description": "Index type"
672
- },
673
- "sizeBytes": {
674
- "type": "integer",
675
- "minimum": 0,
676
- "description": "Index size in bytes"
677
- },
678
- "usage": {
679
- "type": "string",
680
- "enum": ["high", "medium", "low", "unused"],
681
- "description": "Index usage level"
682
- }
683
- }
684
- },
685
- "constraintIssue": {
686
- "type": "object",
687
- "required": ["type", "table", "issue"],
688
- "properties": {
689
- "type": {
690
- "type": "string",
691
- "enum": ["primary_key", "foreign_key", "unique", "check", "not_null", "default"],
692
- "description": "Constraint type"
693
- },
694
- "table": {
695
- "type": "string",
696
- "description": "Table name"
697
- },
698
- "constraintName": {
699
- "type": "string",
700
- "description": "Constraint name"
701
- },
702
- "issue": {
703
- "type": "string",
704
- "description": "Issue description"
705
- },
706
- "affectedRows": {
707
- "type": "integer",
708
- "minimum": 0,
709
- "description": "Rows violating constraint"
710
- }
711
- }
712
- },
713
- "indexIssue": {
714
- "type": "object",
715
- "required": ["table", "issue"],
716
- "properties": {
717
- "table": {
718
- "type": "string",
719
- "description": "Table name"
720
- },
721
- "indexName": {
722
- "type": "string",
723
- "description": "Index name"
724
- },
725
- "issue": {
726
- "type": "string",
727
- "description": "Issue description"
728
- },
729
- "recommendation": {
730
- "type": "string",
731
- "description": "Recommended action"
732
- },
733
- "impactedQueries": {
734
- "type": "integer",
735
- "minimum": 0,
736
- "description": "Number of queries impacted"
737
- }
738
- }
739
- },
740
- "dataIntegrity": {
741
- "type": "object",
742
- "description": "Data integrity test results",
743
- "properties": {
744
- "uniqueConstraintTests": {
745
- "type": "object",
746
- "properties": {
747
- "passed": { "type": "integer" },
748
- "failed": { "type": "integer" },
749
- "violations": {
750
- "type": "array",
751
- "items": {
752
- "type": "object",
753
- "properties": {
754
- "table": { "type": "string" },
755
- "constraint": { "type": "string" },
756
- "duplicateCount": { "type": "integer" }
757
- }
758
- }
759
- }
760
- },
761
- "description": "Unique constraint test results"
762
- },
763
- "foreignKeyTests": {
764
- "type": "object",
765
- "properties": {
766
- "passed": { "type": "integer" },
767
- "failed": { "type": "integer" },
768
- "orphanedRecords": {
769
- "type": "array",
770
- "items": {
771
- "type": "object",
772
- "properties": {
773
- "table": { "type": "string" },
774
- "foreignKey": { "type": "string" },
775
- "count": { "type": "integer" }
776
- }
777
- }
778
- }
779
- },
780
- "description": "Foreign key constraint test results"
781
- },
782
- "checkConstraintTests": {
783
- "type": "object",
784
- "properties": {
785
- "passed": { "type": "integer" },
786
- "failed": { "type": "integer" },
787
- "violations": {
788
- "type": "array",
789
- "items": {
790
- "type": "object",
791
- "properties": {
792
- "table": { "type": "string" },
793
- "constraint": { "type": "string" },
794
- "violationCount": { "type": "integer" }
795
- }
796
- }
797
- }
798
- },
799
- "description": "Check constraint test results"
800
- },
801
- "nullConstraintTests": {
802
- "type": "object",
803
- "properties": {
804
- "passed": { "type": "integer" },
805
- "failed": { "type": "integer" },
806
- "unexpectedNulls": {
807
- "type": "array",
808
- "items": {
809
- "type": "object",
810
- "properties": {
811
- "table": { "type": "string" },
812
- "column": { "type": "string" },
813
- "nullCount": { "type": "integer" }
814
- }
815
- }
816
- }
817
- },
818
- "description": "NOT NULL constraint test results"
819
- }
820
- }
821
- },
822
- "migrationTests": {
823
- "type": "object",
824
- "description": "Migration test results",
825
- "properties": {
826
- "migrationsFound": {
827
- "type": "integer",
828
- "minimum": 0,
829
- "description": "Number of migrations found"
830
- },
831
- "migrationsTested": {
832
- "type": "integer",
833
- "minimum": 0,
834
- "description": "Number of migrations tested"
835
- },
836
- "migrations": {
837
- "type": "array",
838
- "items": {
839
- "$ref": "#/$defs/migrationResult"
840
- },
841
- "description": "Individual migration test results"
842
- },
843
- "pendingMigrations": {
844
- "type": "array",
845
- "items": { "type": "string" },
846
- "description": "Migrations not yet applied"
847
- },
848
- "failedMigrations": {
849
- "type": "array",
850
- "items": { "type": "string" },
851
- "description": "Migrations that failed to apply"
852
- }
853
- }
854
- },
855
- "migrationResult": {
856
- "type": "object",
857
- "required": ["name", "status"],
858
- "properties": {
859
- "name": {
860
- "type": "string",
861
- "description": "Migration name/identifier"
862
- },
863
- "version": {
864
- "type": "string",
865
- "description": "Migration version"
866
- },
867
- "status": {
868
- "type": "string",
869
- "enum": ["passed", "failed", "skipped", "pending"],
870
- "description": "Migration test status"
871
- },
872
- "upTest": {
873
- "type": "object",
874
- "properties": {
875
- "passed": { "type": "boolean" },
876
- "durationMs": { "type": "integer" },
877
- "error": { "type": "string" }
878
- },
879
- "description": "Forward migration test"
880
- },
881
- "downTest": {
882
- "type": "object",
883
- "properties": {
884
- "passed": { "type": "boolean" },
885
- "durationMs": { "type": "integer" },
886
- "error": { "type": "string" }
887
- },
888
- "description": "Rollback migration test"
889
- },
890
- "dataPreservation": {
891
- "type": "object",
892
- "properties": {
893
- "tested": { "type": "boolean" },
894
- "passed": { "type": "boolean" },
895
- "dataLossDetected": { "type": "boolean" },
896
- "affectedRows": { "type": "integer" }
897
- },
898
- "description": "Data preservation test"
899
- },
900
- "idempotent": {
901
- "type": "boolean",
902
- "description": "Whether migration is idempotent"
903
- }
904
- }
905
- },
906
- "transactionTests": {
907
- "type": "object",
908
- "description": "Transaction/ACID test results",
909
- "properties": {
910
- "acidCompliance": {
911
- "type": "object",
912
- "properties": {
913
- "atomicity": {
914
- "$ref": "#/$defs/acidTest",
915
- "description": "Atomicity test (all or nothing)"
916
- },
917
- "consistency": {
918
- "$ref": "#/$defs/acidTest",
919
- "description": "Consistency test (constraints valid)"
920
- },
921
- "isolation": {
922
- "$ref": "#/$defs/acidTest",
923
- "description": "Isolation test (concurrent access)"
924
- },
925
- "durability": {
926
- "$ref": "#/$defs/acidTest",
927
- "description": "Durability test (data persists)"
928
- }
929
- },
930
- "description": "ACID property test results"
931
- },
932
- "isolationLevel": {
933
- "type": "string",
934
- "enum": ["READ_UNCOMMITTED", "READ_COMMITTED", "REPEATABLE_READ", "SERIALIZABLE"],
935
- "description": "Current transaction isolation level"
936
- },
937
- "deadlockTests": {
938
- "type": "object",
939
- "properties": {
940
- "tested": { "type": "boolean" },
941
- "deadlocksDetected": { "type": "integer" },
942
- "avgResolutionMs": { "type": "number" }
943
- },
944
- "description": "Deadlock detection tests"
945
- },
946
- "concurrencyTests": {
947
- "type": "object",
948
- "properties": {
949
- "tested": { "type": "boolean" },
950
- "maxConcurrent": { "type": "integer" },
951
- "raceConditionsDetected": { "type": "integer" }
952
- },
953
- "description": "Concurrent access tests"
954
- }
955
- }
956
- },
957
- "acidTest": {
958
- "type": "object",
959
- "required": ["tested", "passed"],
960
- "properties": {
961
- "tested": {
962
- "type": "boolean",
963
- "description": "Whether this property was tested"
964
- },
965
- "passed": {
966
- "type": "boolean",
967
- "description": "Whether test passed"
968
- },
969
- "testCount": {
970
- "type": "integer",
971
- "minimum": 0,
972
- "description": "Number of tests run"
973
- },
974
- "failureCount": {
975
- "type": "integer",
976
- "minimum": 0,
977
- "description": "Number of failures"
978
- },
979
- "details": {
980
- "type": "string",
981
- "description": "Test details"
982
- }
983
- }
984
- },
985
- "performanceTests": {
986
- "type": "object",
987
- "description": "Query performance test results",
988
- "properties": {
989
- "queriesAnalyzed": {
990
- "type": "integer",
991
- "minimum": 0,
992
- "description": "Number of queries analyzed"
993
- },
994
- "slowQueries": {
995
- "type": "array",
996
- "items": {
997
- "$ref": "#/$defs/queryAnalysis"
998
- },
999
- "description": "Slow queries identified"
1000
- },
1001
- "missingIndexes": {
1002
- "type": "array",
1003
- "items": {
1004
- "$ref": "#/$defs/missingIndex"
1005
- },
1006
- "description": "Missing indexes identified"
1007
- },
1008
- "nPlusOneIssues": {
1009
- "type": "array",
1010
- "items": {
1011
- "type": "object",
1012
- "properties": {
1013
- "location": { "type": "string" },
1014
- "queryPattern": { "type": "string" },
1015
- "queryCount": { "type": "integer" },
1016
- "recommendation": { "type": "string" }
1017
- }
1018
- },
1019
- "description": "N+1 query issues"
1020
- },
1021
- "connectionPoolMetrics": {
1022
- "type": "object",
1023
- "properties": {
1024
- "avgWaitMs": { "type": "number" },
1025
- "maxWaitMs": { "type": "number" },
1026
- "timeouts": { "type": "integer" },
1027
- "leaks": { "type": "integer" }
1028
- },
1029
- "description": "Connection pool performance"
1030
- },
1031
- "benchmarks": {
1032
- "type": "array",
1033
- "items": {
1034
- "type": "object",
1035
- "properties": {
1036
- "name": { "type": "string" },
1037
- "avgMs": { "type": "number" },
1038
- "p50Ms": { "type": "number" },
1039
- "p95Ms": { "type": "number" },
1040
- "p99Ms": { "type": "number" },
1041
- "maxMs": { "type": "number" }
1042
- }
1043
- },
1044
- "description": "Performance benchmarks"
1045
- }
1046
- }
1047
- },
1048
- "queryAnalysis": {
1049
- "type": "object",
1050
- "required": ["query", "avgDurationMs"],
1051
- "properties": {
1052
- "query": {
1053
- "type": "string",
1054
- "description": "SQL query (anonymized)"
1055
- },
1056
- "avgDurationMs": {
1057
- "type": "number",
1058
- "minimum": 0,
1059
- "description": "Average execution time"
1060
- },
1061
- "maxDurationMs": {
1062
- "type": "number",
1063
- "minimum": 0,
1064
- "description": "Maximum execution time"
1065
- },
1066
- "executionCount": {
1067
- "type": "integer",
1068
- "minimum": 0,
1069
- "description": "Number of executions"
1070
- },
1071
- "rowsExamined": {
1072
- "type": "integer",
1073
- "minimum": 0,
1074
- "description": "Average rows examined"
1075
- },
1076
- "rowsReturned": {
1077
- "type": "integer",
1078
- "minimum": 0,
1079
- "description": "Average rows returned"
1080
- },
1081
- "usesIndex": {
1082
- "type": "boolean",
1083
- "description": "Whether query uses indexes"
1084
- },
1085
- "executionPlan": {
1086
- "type": "string",
1087
- "description": "Query execution plan"
1088
- },
1089
- "optimization": {
1090
- "type": "string",
1091
- "description": "Suggested optimization"
1092
- }
1093
- }
1094
- },
1095
- "missingIndex": {
1096
- "type": "object",
1097
- "required": ["table", "columns"],
1098
- "properties": {
1099
- "table": {
1100
- "type": "string",
1101
- "description": "Table name"
1102
- },
1103
- "columns": {
1104
- "type": "array",
1105
- "items": { "type": "string" },
1106
- "description": "Columns that should be indexed"
1107
- },
1108
- "impact": {
1109
- "type": "string",
1110
- "enum": ["critical", "high", "medium", "low"],
1111
- "description": "Impact of missing index"
1112
- },
1113
- "affectedQueries": {
1114
- "type": "integer",
1115
- "minimum": 0,
1116
- "description": "Number of queries that would benefit"
1117
- },
1118
- "suggestedIndex": {
1119
- "type": "string",
1120
- "description": "SQL to create suggested index"
1121
- }
1122
- }
1123
- },
1124
- "databaseLocation": {
1125
- "type": "object",
1126
- "description": "Location in database",
1127
- "properties": {
1128
- "schema": {
1129
- "type": "string",
1130
- "description": "Database schema"
1131
- },
1132
- "table": {
1133
- "type": "string",
1134
- "description": "Table name"
1135
- },
1136
- "column": {
1137
- "type": "string",
1138
- "description": "Column name"
1139
- },
1140
- "constraint": {
1141
- "type": "string",
1142
- "description": "Constraint name"
1143
- },
1144
- "index": {
1145
- "type": "string",
1146
- "description": "Index name"
1147
- },
1148
- "migration": {
1149
- "type": "string",
1150
- "description": "Migration name"
1151
- },
1152
- "file": {
1153
- "type": "string",
1154
- "description": "Source file (for migration files)"
1155
- },
1156
- "line": {
1157
- "type": "integer",
1158
- "minimum": 1,
1159
- "description": "Line number in source file"
1160
- }
1161
- }
1162
- },
1163
- "databaseMetrics": {
1164
- "type": "object",
1165
- "properties": {
1166
- "totalFindings": {
1167
- "type": "integer",
1168
- "minimum": 0,
1169
- "description": "Total issues found"
1170
- },
1171
- "criticalCount": {
1172
- "type": "integer",
1173
- "minimum": 0,
1174
- "description": "Critical severity findings"
1175
- },
1176
- "highCount": {
1177
- "type": "integer",
1178
- "minimum": 0,
1179
- "description": "High severity findings"
1180
- },
1181
- "mediumCount": {
1182
- "type": "integer",
1183
- "minimum": 0,
1184
- "description": "Medium severity findings"
1185
- },
1186
- "lowCount": {
1187
- "type": "integer",
1188
- "minimum": 0,
1189
- "description": "Low severity findings"
1190
- },
1191
- "infoCount": {
1192
- "type": "integer",
1193
- "minimum": 0,
1194
- "description": "Informational findings"
1195
- },
1196
- "tablesAnalyzed": {
1197
- "type": "integer",
1198
- "minimum": 0,
1199
- "description": "Number of tables analyzed"
1200
- },
1201
- "constraintsValidated": {
1202
- "type": "integer",
1203
- "minimum": 0,
1204
- "description": "Number of constraints validated"
1205
- },
1206
- "indexesAnalyzed": {
1207
- "type": "integer",
1208
- "minimum": 0,
1209
- "description": "Number of indexes analyzed"
1210
- },
1211
- "migrationsAnalyzed": {
1212
- "type": "integer",
1213
- "minimum": 0,
1214
- "description": "Number of migrations analyzed"
1215
- },
1216
- "queriesAnalyzed": {
1217
- "type": "integer",
1218
- "minimum": 0,
1219
- "description": "Number of queries analyzed"
1220
- },
1221
- "testDurationMs": {
1222
- "type": "integer",
1223
- "minimum": 0,
1224
- "description": "Total test duration in milliseconds"
1225
- },
1226
- "coverage": {
1227
- "type": "object",
1228
- "properties": {
1229
- "schema": { "type": "boolean" },
1230
- "integrity": { "type": "boolean" },
1231
- "migration": { "type": "boolean" },
1232
- "transaction": { "type": "boolean" },
1233
- "performance": { "type": "boolean" }
1234
- },
1235
- "description": "Test coverage indicators"
1236
- }
1237
- }
1238
- },
1239
- "artifact": {
1240
- "type": "object",
1241
- "required": ["type", "path"],
1242
- "properties": {
1243
- "type": {
1244
- "type": "string",
1245
- "enum": ["report", "schema-dump", "migration-script", "data", "log", "query-plan", "benchmark"],
1246
- "description": "Artifact type"
1247
- },
1248
- "path": {
1249
- "type": "string",
1250
- "maxLength": 500,
1251
- "description": "Path to artifact"
1252
- },
1253
- "format": {
1254
- "type": "string",
1255
- "enum": ["json", "sql", "html", "md", "txt", "csv", "xml", "yaml"],
1256
- "description": "Artifact format"
1257
- },
1258
- "description": {
1259
- "type": "string",
1260
- "maxLength": 500,
1261
- "description": "Artifact description"
1262
- },
1263
- "sizeBytes": {
1264
- "type": "integer",
1265
- "minimum": 0,
1266
- "description": "File size in bytes"
1267
- },
1268
- "checksum": {
1269
- "type": "string",
1270
- "pattern": "^sha256:[a-f0-9]{64}$",
1271
- "description": "SHA-256 checksum"
1272
- }
1273
- }
1274
- },
1275
- "timelineEvent": {
1276
- "type": "object",
1277
- "required": ["timestamp", "event"],
1278
- "properties": {
1279
- "timestamp": {
1280
- "type": "string",
1281
- "format": "date-time",
1282
- "description": "Event timestamp"
1283
- },
1284
- "event": {
1285
- "type": "string",
1286
- "maxLength": 200,
1287
- "description": "Event description"
1288
- },
1289
- "type": {
1290
- "type": "string",
1291
- "enum": ["start", "checkpoint", "warning", "error", "complete"],
1292
- "description": "Event type"
1293
- },
1294
- "durationMs": {
1295
- "type": "integer",
1296
- "minimum": 0,
1297
- "description": "Duration since previous event"
1298
- },
1299
- "phase": {
1300
- "type": "string",
1301
- "enum": ["initialization", "schema", "integrity", "migration", "transaction", "performance", "reporting"],
1302
- "description": "Test phase"
1303
- }
1304
- }
1305
- },
1306
- "metadata": {
1307
- "type": "object",
1308
- "properties": {
1309
- "executionTimeMs": {
1310
- "type": "integer",
1311
- "minimum": 0,
1312
- "maximum": 3600000,
1313
- "description": "Execution time in milliseconds"
1314
- },
1315
- "toolsUsed": {
1316
- "type": "array",
1317
- "items": {
1318
- "type": "string",
1319
- "enum": ["psql", "mysql", "mongo", "sqlite3", "knex", "prisma", "typeorm", "sequelize", "drizzle", "node", "pg-query-analyzer"]
1320
- },
1321
- "uniqueItems": true,
1322
- "description": "Database tools used"
1323
- },
1324
- "agentId": {
1325
- "type": "string",
1326
- "pattern": "^qe-[a-z][a-z0-9-]*$",
1327
- "description": "Agent ID"
1328
- },
1329
- "modelUsed": {
1330
- "type": "string",
1331
- "description": "LLM model used for analysis"
1332
- },
1333
- "inputHash": {
1334
- "type": "string",
1335
- "pattern": "^[a-f0-9]{64}$",
1336
- "description": "SHA-256 hash of input"
1337
- },
1338
- "targetPath": {
1339
- "type": "string",
1340
- "description": "Target path"
1341
- },
1342
- "environment": {
1343
- "type": "string",
1344
- "enum": ["development", "staging", "production", "ci"],
1345
- "description": "Execution environment"
1346
- },
1347
- "retryCount": {
1348
- "type": "integer",
1349
- "minimum": 0,
1350
- "maximum": 10,
1351
- "description": "Number of retries"
1352
- }
1353
- }
1354
- },
1355
- "validationResult": {
1356
- "type": "object",
1357
- "properties": {
1358
- "schemaValid": {
1359
- "type": "boolean",
1360
- "description": "Passes JSON schema validation"
1361
- },
1362
- "contentValid": {
1363
- "type": "boolean",
1364
- "description": "Passes content validation"
1365
- },
1366
- "confidence": {
1367
- "type": "number",
1368
- "minimum": 0,
1369
- "maximum": 1,
1370
- "description": "Confidence score"
1371
- },
1372
- "warnings": {
1373
- "type": "array",
1374
- "items": {
1375
- "type": "string",
1376
- "maxLength": 500
1377
- },
1378
- "maxItems": 20,
1379
- "description": "Validation warnings"
1380
- },
1381
- "errors": {
1382
- "type": "array",
1383
- "items": {
1384
- "type": "string",
1385
- "maxLength": 500
1386
- },
1387
- "maxItems": 20,
1388
- "description": "Validation errors"
1389
- },
1390
- "validatorVersion": {
1391
- "type": "string",
1392
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
1393
- "description": "Validator version"
1394
- }
1395
- }
1396
- },
1397
- "learningData": {
1398
- "type": "object",
1399
- "properties": {
1400
- "patternsDetected": {
1401
- "type": "array",
1402
- "items": {
1403
- "type": "string",
1404
- "maxLength": 200
1405
- },
1406
- "maxItems": 20,
1407
- "description": "Database patterns detected (e.g., n-plus-one-query, missing-index)"
1408
- },
1409
- "reward": {
1410
- "type": "number",
1411
- "minimum": 0,
1412
- "maximum": 1,
1413
- "description": "Reward signal for learning (0.0-1.0)"
1414
- },
1415
- "feedbackLoop": {
1416
- "type": "object",
1417
- "properties": {
1418
- "previousRunId": {
1419
- "type": "string",
1420
- "format": "uuid",
1421
- "description": "Previous run ID for comparison"
1422
- },
1423
- "improvement": {
1424
- "type": "number",
1425
- "minimum": -1,
1426
- "maximum": 1,
1427
- "description": "Improvement over previous run"
1428
- }
1429
- }
1430
- },
1431
- "newDatabasePatterns": {
1432
- "type": "array",
1433
- "items": {
1434
- "type": "object",
1435
- "properties": {
1436
- "pattern": { "type": "string" },
1437
- "category": { "type": "string" },
1438
- "confidence": { "type": "number" }
1439
- }
1440
- },
1441
- "description": "New database patterns learned"
1442
- }
1443
- }
1444
- }
1445
- }
1446
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentic-qe.dev/schemas/database-testing-output.json",
4
+ "title": "AQE Database Testing Skill Output Schema",
5
+ "description": "Schema for database-testing skill output validation. Extends the base skill-output template with schema validation, data integrity testing, migration verification, transaction testing, and query performance analysis.",
6
+ "type": "object",
7
+ "required": ["skillName", "version", "timestamp", "status", "trustTier", "output"],
8
+ "properties": {
9
+ "skillName": {
10
+ "type": "string",
11
+ "const": "database-testing",
12
+ "description": "Must be 'database-testing'"
13
+ },
14
+ "version": {
15
+ "type": "string",
16
+ "pattern": "^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9]+)?$",
17
+ "description": "Semantic version of the skill"
18
+ },
19
+ "timestamp": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "description": "ISO 8601 timestamp of output generation"
23
+ },
24
+ "status": {
25
+ "type": "string",
26
+ "enum": ["success", "partial", "failed", "skipped"],
27
+ "description": "Overall execution status"
28
+ },
29
+ "trustTier": {
30
+ "type": "integer",
31
+ "const": 3,
32
+ "description": "Trust tier 3 indicates full validation with eval suite"
33
+ },
34
+ "output": {
35
+ "type": "object",
36
+ "required": ["summary", "findings", "testTypes", "databaseInfo"],
37
+ "properties": {
38
+ "summary": {
39
+ "type": "string",
40
+ "minLength": 50,
41
+ "maxLength": 2000,
42
+ "description": "Human-readable summary of database testing findings"
43
+ },
44
+ "score": {
45
+ "$ref": "#/$defs/databaseScore",
46
+ "description": "Overall database quality score"
47
+ },
48
+ "findings": {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "#/$defs/databaseFinding"
52
+ },
53
+ "maxItems": 500,
54
+ "description": "List of database issues discovered"
55
+ },
56
+ "recommendations": {
57
+ "type": "array",
58
+ "items": {
59
+ "$ref": "#/$defs/databaseRecommendation"
60
+ },
61
+ "maxItems": 100,
62
+ "description": "Prioritized recommendations for database improvements"
63
+ },
64
+ "metrics": {
65
+ "$ref": "#/$defs/databaseMetrics",
66
+ "description": "Database testing metrics and statistics"
67
+ },
68
+ "testTypes": {
69
+ "$ref": "#/$defs/testTypeBreakdown",
70
+ "description": "Breakdown by database test type"
71
+ },
72
+ "databaseInfo": {
73
+ "$ref": "#/$defs/databaseInfo",
74
+ "description": "Target database information"
75
+ },
76
+ "schemaValidation": {
77
+ "$ref": "#/$defs/schemaValidation",
78
+ "description": "Schema validation results"
79
+ },
80
+ "dataIntegrity": {
81
+ "$ref": "#/$defs/dataIntegrity",
82
+ "description": "Data integrity test results"
83
+ },
84
+ "migrationTests": {
85
+ "$ref": "#/$defs/migrationTests",
86
+ "description": "Migration test results"
87
+ },
88
+ "transactionTests": {
89
+ "$ref": "#/$defs/transactionTests",
90
+ "description": "Transaction/ACID test results"
91
+ },
92
+ "performanceTests": {
93
+ "$ref": "#/$defs/performanceTests",
94
+ "description": "Query performance test results"
95
+ },
96
+ "artifacts": {
97
+ "type": "array",
98
+ "items": {
99
+ "$ref": "#/$defs/artifact"
100
+ },
101
+ "maxItems": 50,
102
+ "description": "Generated test reports and artifacts"
103
+ },
104
+ "timeline": {
105
+ "type": "array",
106
+ "items": {
107
+ "$ref": "#/$defs/timelineEvent"
108
+ },
109
+ "description": "Test execution timeline"
110
+ }
111
+ }
112
+ },
113
+ "metadata": {
114
+ "$ref": "#/$defs/metadata"
115
+ },
116
+ "validation": {
117
+ "$ref": "#/$defs/validationResult"
118
+ },
119
+ "learning": {
120
+ "$ref": "#/$defs/learningData"
121
+ }
122
+ },
123
+ "$defs": {
124
+ "databaseScore": {
125
+ "type": "object",
126
+ "required": ["value", "max"],
127
+ "properties": {
128
+ "value": {
129
+ "type": "number",
130
+ "minimum": 0,
131
+ "maximum": 100,
132
+ "description": "Database quality score (0=critical issues, 100=excellent)"
133
+ },
134
+ "max": {
135
+ "type": "number",
136
+ "const": 100,
137
+ "description": "Maximum score is always 100"
138
+ },
139
+ "grade": {
140
+ "type": "string",
141
+ "pattern": "^[A-F][+-]?$",
142
+ "description": "Letter grade: A (90-100), B (80-89), C (70-79), D (60-69), F (<60)"
143
+ },
144
+ "trend": {
145
+ "type": "string",
146
+ "enum": ["improving", "stable", "declining", "unknown"],
147
+ "description": "Trend compared to previous assessments"
148
+ },
149
+ "dataQualityLevel": {
150
+ "type": "string",
151
+ "enum": ["excellent", "good", "fair", "poor", "critical"],
152
+ "description": "Overall data quality assessment"
153
+ }
154
+ }
155
+ },
156
+ "databaseFinding": {
157
+ "type": "object",
158
+ "required": ["id", "title", "severity", "testType"],
159
+ "properties": {
160
+ "id": {
161
+ "type": "string",
162
+ "pattern": "^DB-\\d{3,6}$",
163
+ "description": "Unique finding identifier (e.g., DB-001)"
164
+ },
165
+ "title": {
166
+ "type": "string",
167
+ "minLength": 10,
168
+ "maxLength": 200,
169
+ "description": "Finding title describing the database issue"
170
+ },
171
+ "description": {
172
+ "type": "string",
173
+ "maxLength": 2000,
174
+ "description": "Detailed description of the database issue"
175
+ },
176
+ "severity": {
177
+ "type": "string",
178
+ "enum": ["critical", "high", "medium", "low", "info"],
179
+ "description": "Severity: critical=data loss risk, high=integrity risk, medium=performance, low=improvement, info=informational"
180
+ },
181
+ "testType": {
182
+ "type": "string",
183
+ "enum": ["schema", "integrity", "migration", "transaction", "performance", "data-quality"],
184
+ "description": "Category of database test that found this issue"
185
+ },
186
+ "category": {
187
+ "type": "string",
188
+ "enum": [
189
+ "missing-constraint",
190
+ "orphaned-records",
191
+ "constraint-violation",
192
+ "schema-mismatch",
193
+ "migration-failure",
194
+ "migration-rollback-failure",
195
+ "data-loss",
196
+ "transaction-isolation",
197
+ "deadlock",
198
+ "slow-query",
199
+ "missing-index",
200
+ "n-plus-one",
201
+ "connection-leak",
202
+ "data-corruption",
203
+ "referential-integrity",
204
+ "null-violation",
205
+ "type-mismatch",
206
+ "encoding-issue"
207
+ ],
208
+ "description": "Specific category of database issue"
209
+ },
210
+ "location": {
211
+ "$ref": "#/$defs/databaseLocation",
212
+ "description": "Location of the issue in the database"
213
+ },
214
+ "evidence": {
215
+ "type": "string",
216
+ "maxLength": 5000,
217
+ "description": "Evidence: SQL query, error message, data sample"
218
+ },
219
+ "remediation": {
220
+ "type": "string",
221
+ "maxLength": 2000,
222
+ "description": "Specific fix instructions for this finding"
223
+ },
224
+ "sqlFix": {
225
+ "type": "string",
226
+ "maxLength": 2000,
227
+ "description": "SQL statement to fix the issue"
228
+ },
229
+ "affectedRows": {
230
+ "type": "integer",
231
+ "minimum": 0,
232
+ "description": "Number of rows affected by this issue"
233
+ },
234
+ "affectedTables": {
235
+ "type": "array",
236
+ "items": { "type": "string" },
237
+ "description": "Tables affected by this issue"
238
+ },
239
+ "falsePositive": {
240
+ "type": "boolean",
241
+ "default": false,
242
+ "description": "Potential false positive flag"
243
+ },
244
+ "confidence": {
245
+ "type": "number",
246
+ "minimum": 0,
247
+ "maximum": 1,
248
+ "description": "Confidence in finding accuracy (0.0-1.0)"
249
+ },
250
+ "dataImpact": {
251
+ "type": "string",
252
+ "enum": ["none", "low", "medium", "high", "critical"],
253
+ "description": "Potential data impact if not fixed"
254
+ }
255
+ }
256
+ },
257
+ "databaseRecommendation": {
258
+ "type": "object",
259
+ "required": ["id", "title", "priority", "testType"],
260
+ "properties": {
261
+ "id": {
262
+ "type": "string",
263
+ "pattern": "^REC-\\d{3,6}$",
264
+ "description": "Unique recommendation identifier"
265
+ },
266
+ "title": {
267
+ "type": "string",
268
+ "minLength": 10,
269
+ "maxLength": 200,
270
+ "description": "Recommendation title"
271
+ },
272
+ "description": {
273
+ "type": "string",
274
+ "maxLength": 2000,
275
+ "description": "Detailed recommendation description"
276
+ },
277
+ "priority": {
278
+ "type": "string",
279
+ "enum": ["critical", "high", "medium", "low"],
280
+ "description": "Remediation priority"
281
+ },
282
+ "effort": {
283
+ "type": "string",
284
+ "enum": ["trivial", "low", "medium", "high", "major"],
285
+ "description": "Estimated effort"
286
+ },
287
+ "impact": {
288
+ "type": "integer",
289
+ "minimum": 1,
290
+ "maximum": 10,
291
+ "description": "Database quality impact if implemented (1-10)"
292
+ },
293
+ "relatedFindings": {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "string",
297
+ "pattern": "^DB-\\d{3,6}$"
298
+ },
299
+ "description": "IDs of findings this addresses"
300
+ },
301
+ "testType": {
302
+ "type": "string",
303
+ "enum": ["schema", "integrity", "migration", "transaction", "performance", "data-quality"],
304
+ "description": "Related test type"
305
+ },
306
+ "sqlExample": {
307
+ "type": "object",
308
+ "properties": {
309
+ "before": {
310
+ "type": "string",
311
+ "maxLength": 2000,
312
+ "description": "Problematic SQL/schema"
313
+ },
314
+ "after": {
315
+ "type": "string",
316
+ "maxLength": 2000,
317
+ "description": "Recommended SQL/schema"
318
+ },
319
+ "migration": {
320
+ "type": "string",
321
+ "maxLength": 2000,
322
+ "description": "Migration SQL to apply fix"
323
+ }
324
+ },
325
+ "description": "SQL examples for remediation"
326
+ },
327
+ "resources": {
328
+ "type": "array",
329
+ "items": {
330
+ "type": "object",
331
+ "required": ["title", "url"],
332
+ "properties": {
333
+ "title": { "type": "string" },
334
+ "url": { "type": "string", "format": "uri" }
335
+ }
336
+ },
337
+ "maxItems": 10,
338
+ "description": "External resources and documentation"
339
+ },
340
+ "automatable": {
341
+ "type": "boolean",
342
+ "description": "Can this fix be automated via migration?"
343
+ }
344
+ }
345
+ },
346
+ "testTypeBreakdown": {
347
+ "type": "object",
348
+ "description": "Database test type breakdown",
349
+ "properties": {
350
+ "schema": {
351
+ "$ref": "#/$defs/testTypeScore",
352
+ "description": "Schema validation tests"
353
+ },
354
+ "integrity": {
355
+ "$ref": "#/$defs/testTypeScore",
356
+ "description": "Data integrity tests"
357
+ },
358
+ "migration": {
359
+ "$ref": "#/$defs/testTypeScore",
360
+ "description": "Migration tests"
361
+ },
362
+ "transaction": {
363
+ "$ref": "#/$defs/testTypeScore",
364
+ "description": "Transaction/ACID tests"
365
+ },
366
+ "performance": {
367
+ "$ref": "#/$defs/testTypeScore",
368
+ "description": "Query performance tests"
369
+ },
370
+ "dataQuality": {
371
+ "$ref": "#/$defs/testTypeScore",
372
+ "description": "Data quality tests"
373
+ }
374
+ },
375
+ "additionalProperties": false
376
+ },
377
+ "testTypeScore": {
378
+ "type": "object",
379
+ "required": ["tested", "score"],
380
+ "properties": {
381
+ "tested": {
382
+ "type": "boolean",
383
+ "description": "Whether this test type was executed"
384
+ },
385
+ "score": {
386
+ "type": "number",
387
+ "minimum": 0,
388
+ "maximum": 100,
389
+ "description": "Test type score (100 = all passed, 0 = all failed)"
390
+ },
391
+ "grade": {
392
+ "type": "string",
393
+ "pattern": "^[A-F][+-]?$",
394
+ "description": "Letter grade for this test type"
395
+ },
396
+ "findingCount": {
397
+ "type": "integer",
398
+ "minimum": 0,
399
+ "description": "Number of findings in this category"
400
+ },
401
+ "passedTests": {
402
+ "type": "integer",
403
+ "minimum": 0,
404
+ "description": "Number of tests passed"
405
+ },
406
+ "failedTests": {
407
+ "type": "integer",
408
+ "minimum": 0,
409
+ "description": "Number of tests failed"
410
+ },
411
+ "skippedTests": {
412
+ "type": "integer",
413
+ "minimum": 0,
414
+ "description": "Number of tests skipped"
415
+ },
416
+ "status": {
417
+ "type": "string",
418
+ "enum": ["pass", "fail", "warn", "skip"],
419
+ "description": "Overall status for this test type"
420
+ }
421
+ }
422
+ },
423
+ "databaseInfo": {
424
+ "type": "object",
425
+ "required": ["type"],
426
+ "properties": {
427
+ "type": {
428
+ "type": "string",
429
+ "enum": ["postgresql", "mysql", "mariadb", "mongodb", "sqlite", "mssql", "oracle", "redis", "cassandra", "other"],
430
+ "description": "Database engine type"
431
+ },
432
+ "version": {
433
+ "type": "string",
434
+ "description": "Database version"
435
+ },
436
+ "name": {
437
+ "type": "string",
438
+ "description": "Database name"
439
+ },
440
+ "host": {
441
+ "type": "string",
442
+ "description": "Database host (masked for security)"
443
+ },
444
+ "schemaCount": {
445
+ "type": "integer",
446
+ "minimum": 0,
447
+ "description": "Number of schemas analyzed"
448
+ },
449
+ "tableCount": {
450
+ "type": "integer",
451
+ "minimum": 0,
452
+ "description": "Number of tables analyzed"
453
+ },
454
+ "totalRows": {
455
+ "type": "integer",
456
+ "minimum": 0,
457
+ "description": "Total rows in database"
458
+ },
459
+ "sizeBytes": {
460
+ "type": "integer",
461
+ "minimum": 0,
462
+ "description": "Database size in bytes"
463
+ },
464
+ "connectionPool": {
465
+ "type": "object",
466
+ "properties": {
467
+ "min": { "type": "integer" },
468
+ "max": { "type": "integer" },
469
+ "current": { "type": "integer" }
470
+ },
471
+ "description": "Connection pool settings"
472
+ }
473
+ }
474
+ },
475
+ "schemaValidation": {
476
+ "type": "object",
477
+ "description": "Schema validation results",
478
+ "properties": {
479
+ "tablesValidated": {
480
+ "type": "integer",
481
+ "minimum": 0,
482
+ "description": "Number of tables validated"
483
+ },
484
+ "columnsValidated": {
485
+ "type": "integer",
486
+ "minimum": 0,
487
+ "description": "Number of columns validated"
488
+ },
489
+ "tables": {
490
+ "type": "array",
491
+ "items": {
492
+ "$ref": "#/$defs/tableValidation"
493
+ },
494
+ "description": "Per-table validation results"
495
+ },
496
+ "missingTables": {
497
+ "type": "array",
498
+ "items": { "type": "string" },
499
+ "description": "Tables that should exist but don't"
500
+ },
501
+ "extraTables": {
502
+ "type": "array",
503
+ "items": { "type": "string" },
504
+ "description": "Tables that exist but shouldn't"
505
+ },
506
+ "constraintIssues": {
507
+ "type": "array",
508
+ "items": {
509
+ "$ref": "#/$defs/constraintIssue"
510
+ },
511
+ "description": "Constraint-related issues"
512
+ },
513
+ "indexIssues": {
514
+ "type": "array",
515
+ "items": {
516
+ "$ref": "#/$defs/indexIssue"
517
+ },
518
+ "description": "Index-related issues"
519
+ }
520
+ }
521
+ },
522
+ "tableValidation": {
523
+ "type": "object",
524
+ "required": ["name", "status"],
525
+ "properties": {
526
+ "name": {
527
+ "type": "string",
528
+ "description": "Table name"
529
+ },
530
+ "status": {
531
+ "type": "string",
532
+ "enum": ["valid", "invalid", "warning"],
533
+ "description": "Validation status"
534
+ },
535
+ "columns": {
536
+ "type": "array",
537
+ "items": {
538
+ "$ref": "#/$defs/columnValidation"
539
+ },
540
+ "description": "Column validation results"
541
+ },
542
+ "primaryKey": {
543
+ "type": "object",
544
+ "properties": {
545
+ "exists": { "type": "boolean" },
546
+ "columns": {
547
+ "type": "array",
548
+ "items": { "type": "string" }
549
+ }
550
+ },
551
+ "description": "Primary key validation"
552
+ },
553
+ "foreignKeys": {
554
+ "type": "array",
555
+ "items": {
556
+ "$ref": "#/$defs/foreignKeyValidation"
557
+ },
558
+ "description": "Foreign key validations"
559
+ },
560
+ "indexes": {
561
+ "type": "array",
562
+ "items": {
563
+ "$ref": "#/$defs/indexValidation"
564
+ },
565
+ "description": "Index validations"
566
+ },
567
+ "rowCount": {
568
+ "type": "integer",
569
+ "minimum": 0,
570
+ "description": "Number of rows in table"
571
+ }
572
+ }
573
+ },
574
+ "columnValidation": {
575
+ "type": "object",
576
+ "required": ["name", "dataType"],
577
+ "properties": {
578
+ "name": {
579
+ "type": "string",
580
+ "description": "Column name"
581
+ },
582
+ "dataType": {
583
+ "type": "string",
584
+ "description": "Column data type"
585
+ },
586
+ "expectedType": {
587
+ "type": "string",
588
+ "description": "Expected data type (if different)"
589
+ },
590
+ "nullable": {
591
+ "type": "boolean",
592
+ "description": "Whether column allows NULL"
593
+ },
594
+ "hasDefault": {
595
+ "type": "boolean",
596
+ "description": "Whether column has a default value"
597
+ },
598
+ "defaultValue": {
599
+ "description": "Default value"
600
+ },
601
+ "issues": {
602
+ "type": "array",
603
+ "items": { "type": "string" },
604
+ "description": "Issues with this column"
605
+ }
606
+ }
607
+ },
608
+ "foreignKeyValidation": {
609
+ "type": "object",
610
+ "required": ["name", "referencedTable"],
611
+ "properties": {
612
+ "name": {
613
+ "type": "string",
614
+ "description": "Foreign key constraint name"
615
+ },
616
+ "columns": {
617
+ "type": "array",
618
+ "items": { "type": "string" },
619
+ "description": "Local columns"
620
+ },
621
+ "referencedTable": {
622
+ "type": "string",
623
+ "description": "Referenced table name"
624
+ },
625
+ "referencedColumns": {
626
+ "type": "array",
627
+ "items": { "type": "string" },
628
+ "description": "Referenced columns"
629
+ },
630
+ "onDelete": {
631
+ "type": "string",
632
+ "enum": ["CASCADE", "SET NULL", "SET DEFAULT", "RESTRICT", "NO ACTION"],
633
+ "description": "ON DELETE action"
634
+ },
635
+ "onUpdate": {
636
+ "type": "string",
637
+ "enum": ["CASCADE", "SET NULL", "SET DEFAULT", "RESTRICT", "NO ACTION"],
638
+ "description": "ON UPDATE action"
639
+ },
640
+ "valid": {
641
+ "type": "boolean",
642
+ "description": "Whether FK is valid"
643
+ },
644
+ "orphanedRecords": {
645
+ "type": "integer",
646
+ "minimum": 0,
647
+ "description": "Number of orphaned records found"
648
+ }
649
+ }
650
+ },
651
+ "indexValidation": {
652
+ "type": "object",
653
+ "required": ["name"],
654
+ "properties": {
655
+ "name": {
656
+ "type": "string",
657
+ "description": "Index name"
658
+ },
659
+ "columns": {
660
+ "type": "array",
661
+ "items": { "type": "string" },
662
+ "description": "Indexed columns"
663
+ },
664
+ "unique": {
665
+ "type": "boolean",
666
+ "description": "Whether index is unique"
667
+ },
668
+ "type": {
669
+ "type": "string",
670
+ "enum": ["btree", "hash", "gin", "gist", "brin", "fulltext", "spatial"],
671
+ "description": "Index type"
672
+ },
673
+ "sizeBytes": {
674
+ "type": "integer",
675
+ "minimum": 0,
676
+ "description": "Index size in bytes"
677
+ },
678
+ "usage": {
679
+ "type": "string",
680
+ "enum": ["high", "medium", "low", "unused"],
681
+ "description": "Index usage level"
682
+ }
683
+ }
684
+ },
685
+ "constraintIssue": {
686
+ "type": "object",
687
+ "required": ["type", "table", "issue"],
688
+ "properties": {
689
+ "type": {
690
+ "type": "string",
691
+ "enum": ["primary_key", "foreign_key", "unique", "check", "not_null", "default"],
692
+ "description": "Constraint type"
693
+ },
694
+ "table": {
695
+ "type": "string",
696
+ "description": "Table name"
697
+ },
698
+ "constraintName": {
699
+ "type": "string",
700
+ "description": "Constraint name"
701
+ },
702
+ "issue": {
703
+ "type": "string",
704
+ "description": "Issue description"
705
+ },
706
+ "affectedRows": {
707
+ "type": "integer",
708
+ "minimum": 0,
709
+ "description": "Rows violating constraint"
710
+ }
711
+ }
712
+ },
713
+ "indexIssue": {
714
+ "type": "object",
715
+ "required": ["table", "issue"],
716
+ "properties": {
717
+ "table": {
718
+ "type": "string",
719
+ "description": "Table name"
720
+ },
721
+ "indexName": {
722
+ "type": "string",
723
+ "description": "Index name"
724
+ },
725
+ "issue": {
726
+ "type": "string",
727
+ "description": "Issue description"
728
+ },
729
+ "recommendation": {
730
+ "type": "string",
731
+ "description": "Recommended action"
732
+ },
733
+ "impactedQueries": {
734
+ "type": "integer",
735
+ "minimum": 0,
736
+ "description": "Number of queries impacted"
737
+ }
738
+ }
739
+ },
740
+ "dataIntegrity": {
741
+ "type": "object",
742
+ "description": "Data integrity test results",
743
+ "properties": {
744
+ "uniqueConstraintTests": {
745
+ "type": "object",
746
+ "properties": {
747
+ "passed": { "type": "integer" },
748
+ "failed": { "type": "integer" },
749
+ "violations": {
750
+ "type": "array",
751
+ "items": {
752
+ "type": "object",
753
+ "properties": {
754
+ "table": { "type": "string" },
755
+ "constraint": { "type": "string" },
756
+ "duplicateCount": { "type": "integer" }
757
+ }
758
+ }
759
+ }
760
+ },
761
+ "description": "Unique constraint test results"
762
+ },
763
+ "foreignKeyTests": {
764
+ "type": "object",
765
+ "properties": {
766
+ "passed": { "type": "integer" },
767
+ "failed": { "type": "integer" },
768
+ "orphanedRecords": {
769
+ "type": "array",
770
+ "items": {
771
+ "type": "object",
772
+ "properties": {
773
+ "table": { "type": "string" },
774
+ "foreignKey": { "type": "string" },
775
+ "count": { "type": "integer" }
776
+ }
777
+ }
778
+ }
779
+ },
780
+ "description": "Foreign key constraint test results"
781
+ },
782
+ "checkConstraintTests": {
783
+ "type": "object",
784
+ "properties": {
785
+ "passed": { "type": "integer" },
786
+ "failed": { "type": "integer" },
787
+ "violations": {
788
+ "type": "array",
789
+ "items": {
790
+ "type": "object",
791
+ "properties": {
792
+ "table": { "type": "string" },
793
+ "constraint": { "type": "string" },
794
+ "violationCount": { "type": "integer" }
795
+ }
796
+ }
797
+ }
798
+ },
799
+ "description": "Check constraint test results"
800
+ },
801
+ "nullConstraintTests": {
802
+ "type": "object",
803
+ "properties": {
804
+ "passed": { "type": "integer" },
805
+ "failed": { "type": "integer" },
806
+ "unexpectedNulls": {
807
+ "type": "array",
808
+ "items": {
809
+ "type": "object",
810
+ "properties": {
811
+ "table": { "type": "string" },
812
+ "column": { "type": "string" },
813
+ "nullCount": { "type": "integer" }
814
+ }
815
+ }
816
+ }
817
+ },
818
+ "description": "NOT NULL constraint test results"
819
+ }
820
+ }
821
+ },
822
+ "migrationTests": {
823
+ "type": "object",
824
+ "description": "Migration test results",
825
+ "properties": {
826
+ "migrationsFound": {
827
+ "type": "integer",
828
+ "minimum": 0,
829
+ "description": "Number of migrations found"
830
+ },
831
+ "migrationsTested": {
832
+ "type": "integer",
833
+ "minimum": 0,
834
+ "description": "Number of migrations tested"
835
+ },
836
+ "migrations": {
837
+ "type": "array",
838
+ "items": {
839
+ "$ref": "#/$defs/migrationResult"
840
+ },
841
+ "description": "Individual migration test results"
842
+ },
843
+ "pendingMigrations": {
844
+ "type": "array",
845
+ "items": { "type": "string" },
846
+ "description": "Migrations not yet applied"
847
+ },
848
+ "failedMigrations": {
849
+ "type": "array",
850
+ "items": { "type": "string" },
851
+ "description": "Migrations that failed to apply"
852
+ }
853
+ }
854
+ },
855
+ "migrationResult": {
856
+ "type": "object",
857
+ "required": ["name", "status"],
858
+ "properties": {
859
+ "name": {
860
+ "type": "string",
861
+ "description": "Migration name/identifier"
862
+ },
863
+ "version": {
864
+ "type": "string",
865
+ "description": "Migration version"
866
+ },
867
+ "status": {
868
+ "type": "string",
869
+ "enum": ["passed", "failed", "skipped", "pending"],
870
+ "description": "Migration test status"
871
+ },
872
+ "upTest": {
873
+ "type": "object",
874
+ "properties": {
875
+ "passed": { "type": "boolean" },
876
+ "durationMs": { "type": "integer" },
877
+ "error": { "type": "string" }
878
+ },
879
+ "description": "Forward migration test"
880
+ },
881
+ "downTest": {
882
+ "type": "object",
883
+ "properties": {
884
+ "passed": { "type": "boolean" },
885
+ "durationMs": { "type": "integer" },
886
+ "error": { "type": "string" }
887
+ },
888
+ "description": "Rollback migration test"
889
+ },
890
+ "dataPreservation": {
891
+ "type": "object",
892
+ "properties": {
893
+ "tested": { "type": "boolean" },
894
+ "passed": { "type": "boolean" },
895
+ "dataLossDetected": { "type": "boolean" },
896
+ "affectedRows": { "type": "integer" }
897
+ },
898
+ "description": "Data preservation test"
899
+ },
900
+ "idempotent": {
901
+ "type": "boolean",
902
+ "description": "Whether migration is idempotent"
903
+ }
904
+ }
905
+ },
906
+ "transactionTests": {
907
+ "type": "object",
908
+ "description": "Transaction/ACID test results",
909
+ "properties": {
910
+ "acidCompliance": {
911
+ "type": "object",
912
+ "properties": {
913
+ "atomicity": {
914
+ "$ref": "#/$defs/acidTest",
915
+ "description": "Atomicity test (all or nothing)"
916
+ },
917
+ "consistency": {
918
+ "$ref": "#/$defs/acidTest",
919
+ "description": "Consistency test (constraints valid)"
920
+ },
921
+ "isolation": {
922
+ "$ref": "#/$defs/acidTest",
923
+ "description": "Isolation test (concurrent access)"
924
+ },
925
+ "durability": {
926
+ "$ref": "#/$defs/acidTest",
927
+ "description": "Durability test (data persists)"
928
+ }
929
+ },
930
+ "description": "ACID property test results"
931
+ },
932
+ "isolationLevel": {
933
+ "type": "string",
934
+ "enum": ["READ_UNCOMMITTED", "READ_COMMITTED", "REPEATABLE_READ", "SERIALIZABLE"],
935
+ "description": "Current transaction isolation level"
936
+ },
937
+ "deadlockTests": {
938
+ "type": "object",
939
+ "properties": {
940
+ "tested": { "type": "boolean" },
941
+ "deadlocksDetected": { "type": "integer" },
942
+ "avgResolutionMs": { "type": "number" }
943
+ },
944
+ "description": "Deadlock detection tests"
945
+ },
946
+ "concurrencyTests": {
947
+ "type": "object",
948
+ "properties": {
949
+ "tested": { "type": "boolean" },
950
+ "maxConcurrent": { "type": "integer" },
951
+ "raceConditionsDetected": { "type": "integer" }
952
+ },
953
+ "description": "Concurrent access tests"
954
+ }
955
+ }
956
+ },
957
+ "acidTest": {
958
+ "type": "object",
959
+ "required": ["tested", "passed"],
960
+ "properties": {
961
+ "tested": {
962
+ "type": "boolean",
963
+ "description": "Whether this property was tested"
964
+ },
965
+ "passed": {
966
+ "type": "boolean",
967
+ "description": "Whether test passed"
968
+ },
969
+ "testCount": {
970
+ "type": "integer",
971
+ "minimum": 0,
972
+ "description": "Number of tests run"
973
+ },
974
+ "failureCount": {
975
+ "type": "integer",
976
+ "minimum": 0,
977
+ "description": "Number of failures"
978
+ },
979
+ "details": {
980
+ "type": "string",
981
+ "description": "Test details"
982
+ }
983
+ }
984
+ },
985
+ "performanceTests": {
986
+ "type": "object",
987
+ "description": "Query performance test results",
988
+ "properties": {
989
+ "queriesAnalyzed": {
990
+ "type": "integer",
991
+ "minimum": 0,
992
+ "description": "Number of queries analyzed"
993
+ },
994
+ "slowQueries": {
995
+ "type": "array",
996
+ "items": {
997
+ "$ref": "#/$defs/queryAnalysis"
998
+ },
999
+ "description": "Slow queries identified"
1000
+ },
1001
+ "missingIndexes": {
1002
+ "type": "array",
1003
+ "items": {
1004
+ "$ref": "#/$defs/missingIndex"
1005
+ },
1006
+ "description": "Missing indexes identified"
1007
+ },
1008
+ "nPlusOneIssues": {
1009
+ "type": "array",
1010
+ "items": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "location": { "type": "string" },
1014
+ "queryPattern": { "type": "string" },
1015
+ "queryCount": { "type": "integer" },
1016
+ "recommendation": { "type": "string" }
1017
+ }
1018
+ },
1019
+ "description": "N+1 query issues"
1020
+ },
1021
+ "connectionPoolMetrics": {
1022
+ "type": "object",
1023
+ "properties": {
1024
+ "avgWaitMs": { "type": "number" },
1025
+ "maxWaitMs": { "type": "number" },
1026
+ "timeouts": { "type": "integer" },
1027
+ "leaks": { "type": "integer" }
1028
+ },
1029
+ "description": "Connection pool performance"
1030
+ },
1031
+ "benchmarks": {
1032
+ "type": "array",
1033
+ "items": {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "name": { "type": "string" },
1037
+ "avgMs": { "type": "number" },
1038
+ "p50Ms": { "type": "number" },
1039
+ "p95Ms": { "type": "number" },
1040
+ "p99Ms": { "type": "number" },
1041
+ "maxMs": { "type": "number" }
1042
+ }
1043
+ },
1044
+ "description": "Performance benchmarks"
1045
+ }
1046
+ }
1047
+ },
1048
+ "queryAnalysis": {
1049
+ "type": "object",
1050
+ "required": ["query", "avgDurationMs"],
1051
+ "properties": {
1052
+ "query": {
1053
+ "type": "string",
1054
+ "description": "SQL query (anonymized)"
1055
+ },
1056
+ "avgDurationMs": {
1057
+ "type": "number",
1058
+ "minimum": 0,
1059
+ "description": "Average execution time"
1060
+ },
1061
+ "maxDurationMs": {
1062
+ "type": "number",
1063
+ "minimum": 0,
1064
+ "description": "Maximum execution time"
1065
+ },
1066
+ "executionCount": {
1067
+ "type": "integer",
1068
+ "minimum": 0,
1069
+ "description": "Number of executions"
1070
+ },
1071
+ "rowsExamined": {
1072
+ "type": "integer",
1073
+ "minimum": 0,
1074
+ "description": "Average rows examined"
1075
+ },
1076
+ "rowsReturned": {
1077
+ "type": "integer",
1078
+ "minimum": 0,
1079
+ "description": "Average rows returned"
1080
+ },
1081
+ "usesIndex": {
1082
+ "type": "boolean",
1083
+ "description": "Whether query uses indexes"
1084
+ },
1085
+ "executionPlan": {
1086
+ "type": "string",
1087
+ "description": "Query execution plan"
1088
+ },
1089
+ "optimization": {
1090
+ "type": "string",
1091
+ "description": "Suggested optimization"
1092
+ }
1093
+ }
1094
+ },
1095
+ "missingIndex": {
1096
+ "type": "object",
1097
+ "required": ["table", "columns"],
1098
+ "properties": {
1099
+ "table": {
1100
+ "type": "string",
1101
+ "description": "Table name"
1102
+ },
1103
+ "columns": {
1104
+ "type": "array",
1105
+ "items": { "type": "string" },
1106
+ "description": "Columns that should be indexed"
1107
+ },
1108
+ "impact": {
1109
+ "type": "string",
1110
+ "enum": ["critical", "high", "medium", "low"],
1111
+ "description": "Impact of missing index"
1112
+ },
1113
+ "affectedQueries": {
1114
+ "type": "integer",
1115
+ "minimum": 0,
1116
+ "description": "Number of queries that would benefit"
1117
+ },
1118
+ "suggestedIndex": {
1119
+ "type": "string",
1120
+ "description": "SQL to create suggested index"
1121
+ }
1122
+ }
1123
+ },
1124
+ "databaseLocation": {
1125
+ "type": "object",
1126
+ "description": "Location in database",
1127
+ "properties": {
1128
+ "schema": {
1129
+ "type": "string",
1130
+ "description": "Database schema"
1131
+ },
1132
+ "table": {
1133
+ "type": "string",
1134
+ "description": "Table name"
1135
+ },
1136
+ "column": {
1137
+ "type": "string",
1138
+ "description": "Column name"
1139
+ },
1140
+ "constraint": {
1141
+ "type": "string",
1142
+ "description": "Constraint name"
1143
+ },
1144
+ "index": {
1145
+ "type": "string",
1146
+ "description": "Index name"
1147
+ },
1148
+ "migration": {
1149
+ "type": "string",
1150
+ "description": "Migration name"
1151
+ },
1152
+ "file": {
1153
+ "type": "string",
1154
+ "description": "Source file (for migration files)"
1155
+ },
1156
+ "line": {
1157
+ "type": "integer",
1158
+ "minimum": 1,
1159
+ "description": "Line number in source file"
1160
+ }
1161
+ }
1162
+ },
1163
+ "databaseMetrics": {
1164
+ "type": "object",
1165
+ "properties": {
1166
+ "totalFindings": {
1167
+ "type": "integer",
1168
+ "minimum": 0,
1169
+ "description": "Total issues found"
1170
+ },
1171
+ "criticalCount": {
1172
+ "type": "integer",
1173
+ "minimum": 0,
1174
+ "description": "Critical severity findings"
1175
+ },
1176
+ "highCount": {
1177
+ "type": "integer",
1178
+ "minimum": 0,
1179
+ "description": "High severity findings"
1180
+ },
1181
+ "mediumCount": {
1182
+ "type": "integer",
1183
+ "minimum": 0,
1184
+ "description": "Medium severity findings"
1185
+ },
1186
+ "lowCount": {
1187
+ "type": "integer",
1188
+ "minimum": 0,
1189
+ "description": "Low severity findings"
1190
+ },
1191
+ "infoCount": {
1192
+ "type": "integer",
1193
+ "minimum": 0,
1194
+ "description": "Informational findings"
1195
+ },
1196
+ "tablesAnalyzed": {
1197
+ "type": "integer",
1198
+ "minimum": 0,
1199
+ "description": "Number of tables analyzed"
1200
+ },
1201
+ "constraintsValidated": {
1202
+ "type": "integer",
1203
+ "minimum": 0,
1204
+ "description": "Number of constraints validated"
1205
+ },
1206
+ "indexesAnalyzed": {
1207
+ "type": "integer",
1208
+ "minimum": 0,
1209
+ "description": "Number of indexes analyzed"
1210
+ },
1211
+ "migrationsAnalyzed": {
1212
+ "type": "integer",
1213
+ "minimum": 0,
1214
+ "description": "Number of migrations analyzed"
1215
+ },
1216
+ "queriesAnalyzed": {
1217
+ "type": "integer",
1218
+ "minimum": 0,
1219
+ "description": "Number of queries analyzed"
1220
+ },
1221
+ "testDurationMs": {
1222
+ "type": "integer",
1223
+ "minimum": 0,
1224
+ "description": "Total test duration in milliseconds"
1225
+ },
1226
+ "coverage": {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "schema": { "type": "boolean" },
1230
+ "integrity": { "type": "boolean" },
1231
+ "migration": { "type": "boolean" },
1232
+ "transaction": { "type": "boolean" },
1233
+ "performance": { "type": "boolean" }
1234
+ },
1235
+ "description": "Test coverage indicators"
1236
+ }
1237
+ }
1238
+ },
1239
+ "artifact": {
1240
+ "type": "object",
1241
+ "required": ["type", "path"],
1242
+ "properties": {
1243
+ "type": {
1244
+ "type": "string",
1245
+ "enum": ["report", "schema-dump", "migration-script", "data", "log", "query-plan", "benchmark"],
1246
+ "description": "Artifact type"
1247
+ },
1248
+ "path": {
1249
+ "type": "string",
1250
+ "maxLength": 500,
1251
+ "description": "Path to artifact"
1252
+ },
1253
+ "format": {
1254
+ "type": "string",
1255
+ "enum": ["json", "sql", "html", "md", "txt", "csv", "xml", "yaml"],
1256
+ "description": "Artifact format"
1257
+ },
1258
+ "description": {
1259
+ "type": "string",
1260
+ "maxLength": 500,
1261
+ "description": "Artifact description"
1262
+ },
1263
+ "sizeBytes": {
1264
+ "type": "integer",
1265
+ "minimum": 0,
1266
+ "description": "File size in bytes"
1267
+ },
1268
+ "checksum": {
1269
+ "type": "string",
1270
+ "pattern": "^sha256:[a-f0-9]{64}$",
1271
+ "description": "SHA-256 checksum"
1272
+ }
1273
+ }
1274
+ },
1275
+ "timelineEvent": {
1276
+ "type": "object",
1277
+ "required": ["timestamp", "event"],
1278
+ "properties": {
1279
+ "timestamp": {
1280
+ "type": "string",
1281
+ "format": "date-time",
1282
+ "description": "Event timestamp"
1283
+ },
1284
+ "event": {
1285
+ "type": "string",
1286
+ "maxLength": 200,
1287
+ "description": "Event description"
1288
+ },
1289
+ "type": {
1290
+ "type": "string",
1291
+ "enum": ["start", "checkpoint", "warning", "error", "complete"],
1292
+ "description": "Event type"
1293
+ },
1294
+ "durationMs": {
1295
+ "type": "integer",
1296
+ "minimum": 0,
1297
+ "description": "Duration since previous event"
1298
+ },
1299
+ "phase": {
1300
+ "type": "string",
1301
+ "enum": ["initialization", "schema", "integrity", "migration", "transaction", "performance", "reporting"],
1302
+ "description": "Test phase"
1303
+ }
1304
+ }
1305
+ },
1306
+ "metadata": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "executionTimeMs": {
1310
+ "type": "integer",
1311
+ "minimum": 0,
1312
+ "maximum": 3600000,
1313
+ "description": "Execution time in milliseconds"
1314
+ },
1315
+ "toolsUsed": {
1316
+ "type": "array",
1317
+ "items": {
1318
+ "type": "string",
1319
+ "enum": ["psql", "mysql", "mongo", "sqlite3", "knex", "prisma", "typeorm", "sequelize", "drizzle", "node", "pg-query-analyzer"]
1320
+ },
1321
+ "uniqueItems": true,
1322
+ "description": "Database tools used"
1323
+ },
1324
+ "agentId": {
1325
+ "type": "string",
1326
+ "pattern": "^qe-[a-z][a-z0-9-]*$",
1327
+ "description": "Agent ID"
1328
+ },
1329
+ "modelUsed": {
1330
+ "type": "string",
1331
+ "description": "LLM model used for analysis"
1332
+ },
1333
+ "inputHash": {
1334
+ "type": "string",
1335
+ "pattern": "^[a-f0-9]{64}$",
1336
+ "description": "SHA-256 hash of input"
1337
+ },
1338
+ "targetPath": {
1339
+ "type": "string",
1340
+ "description": "Target path"
1341
+ },
1342
+ "environment": {
1343
+ "type": "string",
1344
+ "enum": ["development", "staging", "production", "ci"],
1345
+ "description": "Execution environment"
1346
+ },
1347
+ "retryCount": {
1348
+ "type": "integer",
1349
+ "minimum": 0,
1350
+ "maximum": 10,
1351
+ "description": "Number of retries"
1352
+ }
1353
+ }
1354
+ },
1355
+ "validationResult": {
1356
+ "type": "object",
1357
+ "properties": {
1358
+ "schemaValid": {
1359
+ "type": "boolean",
1360
+ "description": "Passes JSON schema validation"
1361
+ },
1362
+ "contentValid": {
1363
+ "type": "boolean",
1364
+ "description": "Passes content validation"
1365
+ },
1366
+ "confidence": {
1367
+ "type": "number",
1368
+ "minimum": 0,
1369
+ "maximum": 1,
1370
+ "description": "Confidence score"
1371
+ },
1372
+ "warnings": {
1373
+ "type": "array",
1374
+ "items": {
1375
+ "type": "string",
1376
+ "maxLength": 500
1377
+ },
1378
+ "maxItems": 20,
1379
+ "description": "Validation warnings"
1380
+ },
1381
+ "errors": {
1382
+ "type": "array",
1383
+ "items": {
1384
+ "type": "string",
1385
+ "maxLength": 500
1386
+ },
1387
+ "maxItems": 20,
1388
+ "description": "Validation errors"
1389
+ },
1390
+ "validatorVersion": {
1391
+ "type": "string",
1392
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
1393
+ "description": "Validator version"
1394
+ }
1395
+ }
1396
+ },
1397
+ "learningData": {
1398
+ "type": "object",
1399
+ "properties": {
1400
+ "patternsDetected": {
1401
+ "type": "array",
1402
+ "items": {
1403
+ "type": "string",
1404
+ "maxLength": 200
1405
+ },
1406
+ "maxItems": 20,
1407
+ "description": "Database patterns detected (e.g., n-plus-one-query, missing-index)"
1408
+ },
1409
+ "reward": {
1410
+ "type": "number",
1411
+ "minimum": 0,
1412
+ "maximum": 1,
1413
+ "description": "Reward signal for learning (0.0-1.0)"
1414
+ },
1415
+ "feedbackLoop": {
1416
+ "type": "object",
1417
+ "properties": {
1418
+ "previousRunId": {
1419
+ "type": "string",
1420
+ "format": "uuid",
1421
+ "description": "Previous run ID for comparison"
1422
+ },
1423
+ "improvement": {
1424
+ "type": "number",
1425
+ "minimum": -1,
1426
+ "maximum": 1,
1427
+ "description": "Improvement over previous run"
1428
+ }
1429
+ }
1430
+ },
1431
+ "newDatabasePatterns": {
1432
+ "type": "array",
1433
+ "items": {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "pattern": { "type": "string" },
1437
+ "category": { "type": "string" },
1438
+ "confidence": { "type": "number" }
1439
+ }
1440
+ },
1441
+ "description": "New database patterns learned"
1442
+ }
1443
+ }
1444
+ }
1445
+ }
1446
+ }