bmad-method-test-architecture-enterprise 0.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/.github/CODE_OF_CONDUCT.md +128 -0
  2. package/.github/FUNDING.yaml +15 -0
  3. package/.github/ISSUE_TEMPLATE/config.yaml +11 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +70 -0
  5. package/.github/ISSUE_TEMPLATE/issue.md +61 -0
  6. package/.github/workflows/docs.yaml +66 -0
  7. package/.github/workflows/manual-release.yaml +195 -0
  8. package/.github/workflows/quality.yaml +114 -0
  9. package/.husky/pre-commit +20 -0
  10. package/.markdownlint-cli2.yaml +36 -0
  11. package/.nvmrc +1 -0
  12. package/.prettierignore +9 -0
  13. package/.vscode/settings.json +47 -0
  14. package/CHANGELOG.md +217 -0
  15. package/CONTRIBUTING.md +268 -0
  16. package/LICENSE +26 -0
  17. package/README.md +300 -0
  18. package/SECURITY.md +85 -0
  19. package/TEA-MODULE-MIGRATION-PLAN.md +3788 -0
  20. package/docs/404.md +20 -0
  21. package/docs/MIGRATION.md +447 -0
  22. package/docs/explanation/engagement-models.md +767 -0
  23. package/docs/explanation/fixture-architecture.md +484 -0
  24. package/docs/explanation/knowledge-base-system.md +599 -0
  25. package/docs/explanation/network-first-patterns.md +884 -0
  26. package/docs/explanation/risk-based-testing.md +628 -0
  27. package/docs/explanation/step-file-architecture.md +609 -0
  28. package/docs/explanation/subprocess-architecture.md +578 -0
  29. package/docs/explanation/subprocess-implementation-status.md +327 -0
  30. package/docs/explanation/tea-overview.md +425 -0
  31. package/docs/explanation/test-quality-standards.md +965 -0
  32. package/docs/explanation/testing-as-engineering.md +111 -0
  33. package/docs/glossary/index.md +160 -0
  34. package/docs/how-to/brownfield/use-tea-for-enterprise.md +571 -0
  35. package/docs/how-to/brownfield/use-tea-with-existing-tests.md +631 -0
  36. package/docs/how-to/customization/enable-tea-mcp-enhancements.md +455 -0
  37. package/docs/how-to/customization/integrate-playwright-utils.md +846 -0
  38. package/docs/how-to/workflows/run-atdd.md +460 -0
  39. package/docs/how-to/workflows/run-automate.md +690 -0
  40. package/docs/how-to/workflows/run-nfr-assess.md +731 -0
  41. package/docs/how-to/workflows/run-test-design.md +144 -0
  42. package/docs/how-to/workflows/run-test-review.md +638 -0
  43. package/docs/how-to/workflows/run-trace.md +951 -0
  44. package/docs/how-to/workflows/setup-ci.md +761 -0
  45. package/docs/how-to/workflows/setup-test-framework.md +99 -0
  46. package/docs/index.md +122 -0
  47. package/docs/reference/commands.md +300 -0
  48. package/docs/reference/configuration.md +729 -0
  49. package/docs/reference/knowledge-base.md +365 -0
  50. package/docs/reference/troubleshooting.md +717 -0
  51. package/docs/tutorials/tea-lite-quickstart.md +465 -0
  52. package/eslint.config.mjs +152 -0
  53. package/package.json +117 -0
  54. package/prettier.config.mjs +32 -0
  55. package/release_notes.md +28 -0
  56. package/src/_module-installer/installer.js +92 -0
  57. package/src/agents/tea.agent.yaml +63 -0
  58. package/src/module-help.csv +9 -0
  59. package/src/module.yaml +91 -0
  60. package/src/testarch/knowledge/adr-quality-readiness-checklist.md +377 -0
  61. package/src/testarch/knowledge/api-request.md +442 -0
  62. package/src/testarch/knowledge/api-testing-patterns.md +851 -0
  63. package/src/testarch/knowledge/auth-session.md +548 -0
  64. package/src/testarch/knowledge/burn-in.md +273 -0
  65. package/src/testarch/knowledge/ci-burn-in.md +675 -0
  66. package/src/testarch/knowledge/component-tdd.md +486 -0
  67. package/src/testarch/knowledge/contract-testing.md +957 -0
  68. package/src/testarch/knowledge/data-factories.md +500 -0
  69. package/src/testarch/knowledge/email-auth.md +721 -0
  70. package/src/testarch/knowledge/error-handling.md +725 -0
  71. package/src/testarch/knowledge/feature-flags.md +750 -0
  72. package/src/testarch/knowledge/file-utils.md +456 -0
  73. package/src/testarch/knowledge/fixture-architecture.md +401 -0
  74. package/src/testarch/knowledge/fixtures-composition.md +382 -0
  75. package/src/testarch/knowledge/intercept-network-call.md +426 -0
  76. package/src/testarch/knowledge/log.md +426 -0
  77. package/src/testarch/knowledge/network-error-monitor.md +401 -0
  78. package/src/testarch/knowledge/network-first.md +486 -0
  79. package/src/testarch/knowledge/network-recorder.md +527 -0
  80. package/src/testarch/knowledge/nfr-criteria.md +670 -0
  81. package/src/testarch/knowledge/overview.md +286 -0
  82. package/src/testarch/knowledge/playwright-config.md +730 -0
  83. package/src/testarch/knowledge/probability-impact.md +601 -0
  84. package/src/testarch/knowledge/recurse.md +421 -0
  85. package/src/testarch/knowledge/risk-governance.md +615 -0
  86. package/src/testarch/knowledge/selective-testing.md +732 -0
  87. package/src/testarch/knowledge/selector-resilience.md +527 -0
  88. package/src/testarch/knowledge/test-healing-patterns.md +644 -0
  89. package/src/testarch/knowledge/test-levels-framework.md +473 -0
  90. package/src/testarch/knowledge/test-priorities-matrix.md +373 -0
  91. package/src/testarch/knowledge/test-quality.md +664 -0
  92. package/src/testarch/knowledge/timing-debugging.md +372 -0
  93. package/src/testarch/knowledge/visual-debugging.md +524 -0
  94. package/src/testarch/tea-index.csv +35 -0
  95. package/src/workflows/testarch/README.md +74 -0
  96. package/src/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  97. package/src/workflows/testarch/atdd/checklist.md +374 -0
  98. package/src/workflows/testarch/atdd/instructions.md +38 -0
  99. package/src/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +110 -0
  100. package/src/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +79 -0
  101. package/src/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +76 -0
  102. package/src/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +228 -0
  103. package/src/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +215 -0
  104. package/src/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +212 -0
  105. package/src/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +329 -0
  106. package/src/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +68 -0
  107. package/src/workflows/testarch/atdd/steps-e/step-01-assess.md +65 -0
  108. package/src/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +60 -0
  109. package/src/workflows/testarch/atdd/steps-v/step-01-validate.md +67 -0
  110. package/src/workflows/testarch/atdd/validation-report-20260127-095021.md +73 -0
  111. package/src/workflows/testarch/atdd/validation-report-20260127-102401.md +116 -0
  112. package/src/workflows/testarch/atdd/workflow-plan.md +21 -0
  113. package/src/workflows/testarch/atdd/workflow.md +39 -0
  114. package/src/workflows/testarch/atdd/workflow.yaml +47 -0
  115. package/src/workflows/testarch/automate/checklist.md +582 -0
  116. package/src/workflows/testarch/automate/instructions.md +43 -0
  117. package/src/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +127 -0
  118. package/src/workflows/testarch/automate/steps-c/step-02-identify-targets.md +95 -0
  119. package/src/workflows/testarch/automate/steps-c/step-03-generate-tests.md +199 -0
  120. package/src/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +183 -0
  121. package/src/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +181 -0
  122. package/src/workflows/testarch/automate/steps-c/step-03c-aggregate.md +300 -0
  123. package/src/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +69 -0
  124. package/src/workflows/testarch/automate/steps-e/step-01-assess.md +65 -0
  125. package/src/workflows/testarch/automate/steps-e/step-02-apply-edit.md +60 -0
  126. package/src/workflows/testarch/automate/steps-v/step-01-validate.md +67 -0
  127. package/src/workflows/testarch/automate/validation-report-20260127-095021.md +72 -0
  128. package/src/workflows/testarch/automate/validation-report-20260127-102401.md +114 -0
  129. package/src/workflows/testarch/automate/workflow-plan.md +20 -0
  130. package/src/workflows/testarch/automate/workflow.md +39 -0
  131. package/src/workflows/testarch/automate/workflow.yaml +54 -0
  132. package/src/workflows/testarch/ci/checklist.md +247 -0
  133. package/src/workflows/testarch/ci/github-actions-template.yaml +198 -0
  134. package/src/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
  135. package/src/workflows/testarch/ci/instructions.md +38 -0
  136. package/src/workflows/testarch/ci/steps-c/step-01-preflight.md +92 -0
  137. package/src/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +82 -0
  138. package/src/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +75 -0
  139. package/src/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +67 -0
  140. package/src/workflows/testarch/ci/steps-e/step-01-assess.md +65 -0
  141. package/src/workflows/testarch/ci/steps-e/step-02-apply-edit.md +60 -0
  142. package/src/workflows/testarch/ci/steps-v/step-01-validate.md +67 -0
  143. package/src/workflows/testarch/ci/validation-report-20260127-095021.md +72 -0
  144. package/src/workflows/testarch/ci/validation-report-20260127-102401.md +114 -0
  145. package/src/workflows/testarch/ci/workflow-plan.md +20 -0
  146. package/src/workflows/testarch/ci/workflow.md +39 -0
  147. package/src/workflows/testarch/ci/workflow.yaml +47 -0
  148. package/src/workflows/testarch/framework/checklist.md +320 -0
  149. package/src/workflows/testarch/framework/instructions.md +38 -0
  150. package/src/workflows/testarch/framework/steps-c/step-01-preflight.md +75 -0
  151. package/src/workflows/testarch/framework/steps-c/step-02-select-framework.md +73 -0
  152. package/src/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +120 -0
  153. package/src/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +70 -0
  154. package/src/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +68 -0
  155. package/src/workflows/testarch/framework/steps-e/step-01-assess.md +65 -0
  156. package/src/workflows/testarch/framework/steps-e/step-02-apply-edit.md +60 -0
  157. package/src/workflows/testarch/framework/steps-v/step-01-validate.md +67 -0
  158. package/src/workflows/testarch/framework/validation-report-20260127-095021.md +73 -0
  159. package/src/workflows/testarch/framework/validation-report-20260127-102401.md +116 -0
  160. package/src/workflows/testarch/framework/workflow-plan.md +22 -0
  161. package/src/workflows/testarch/framework/workflow.md +39 -0
  162. package/src/workflows/testarch/framework/workflow.yaml +49 -0
  163. package/src/workflows/testarch/nfr-assess/checklist.md +407 -0
  164. package/src/workflows/testarch/nfr-assess/instructions.md +36 -0
  165. package/src/workflows/testarch/nfr-assess/nfr-report-template.md +462 -0
  166. package/src/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +85 -0
  167. package/src/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +82 -0
  168. package/src/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +64 -0
  169. package/src/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +140 -0
  170. package/src/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +138 -0
  171. package/src/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +84 -0
  172. package/src/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +85 -0
  173. package/src/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +88 -0
  174. package/src/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +219 -0
  175. package/src/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +71 -0
  176. package/src/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +65 -0
  177. package/src/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +60 -0
  178. package/src/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +67 -0
  179. package/src/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +73 -0
  180. package/src/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +116 -0
  181. package/src/workflows/testarch/nfr-assess/workflow-plan.md +19 -0
  182. package/src/workflows/testarch/nfr-assess/workflow.md +39 -0
  183. package/src/workflows/testarch/nfr-assess/workflow.yaml +49 -0
  184. package/src/workflows/testarch/test-design/checklist.md +410 -0
  185. package/src/workflows/testarch/test-design/instructions.md +52 -0
  186. package/src/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +109 -0
  187. package/src/workflows/testarch/test-design/steps-c/step-02-load-context.md +127 -0
  188. package/src/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +85 -0
  189. package/src/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +98 -0
  190. package/src/workflows/testarch/test-design/steps-c/step-05-generate-output.md +97 -0
  191. package/src/workflows/testarch/test-design/steps-e/step-01-assess.md +65 -0
  192. package/src/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +60 -0
  193. package/src/workflows/testarch/test-design/steps-v/step-01-validate.md +67 -0
  194. package/src/workflows/testarch/test-design/test-design-architecture-template.md +222 -0
  195. package/src/workflows/testarch/test-design/test-design-qa-template.md +296 -0
  196. package/src/workflows/testarch/test-design/test-design-template.md +294 -0
  197. package/src/workflows/testarch/test-design/validation-report-20260127-095021.md +73 -0
  198. package/src/workflows/testarch/test-design/validation-report-20260127-102401.md +116 -0
  199. package/src/workflows/testarch/test-design/workflow-plan.md +22 -0
  200. package/src/workflows/testarch/test-design/workflow.md +39 -0
  201. package/src/workflows/testarch/test-design/workflow.yaml +71 -0
  202. package/src/workflows/testarch/test-review/checklist.md +472 -0
  203. package/src/workflows/testarch/test-review/instructions.md +36 -0
  204. package/src/workflows/testarch/test-review/steps-c/step-01-load-context.md +101 -0
  205. package/src/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +69 -0
  206. package/src/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +184 -0
  207. package/src/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +214 -0
  208. package/src/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +125 -0
  209. package/src/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +102 -0
  210. package/src/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +111 -0
  211. package/src/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +117 -0
  212. package/src/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +246 -0
  213. package/src/workflows/testarch/test-review/steps-c/step-04-generate-report.md +72 -0
  214. package/src/workflows/testarch/test-review/steps-e/step-01-assess.md +65 -0
  215. package/src/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +60 -0
  216. package/src/workflows/testarch/test-review/steps-v/step-01-validate.md +67 -0
  217. package/src/workflows/testarch/test-review/test-review-template.md +390 -0
  218. package/src/workflows/testarch/test-review/validation-report-20260127-095021.md +72 -0
  219. package/src/workflows/testarch/test-review/validation-report-20260127-102401.md +114 -0
  220. package/src/workflows/testarch/test-review/workflow-plan.md +18 -0
  221. package/src/workflows/testarch/test-review/workflow.md +39 -0
  222. package/src/workflows/testarch/test-review/workflow.yaml +48 -0
  223. package/src/workflows/testarch/trace/checklist.md +642 -0
  224. package/src/workflows/testarch/trace/instructions.md +36 -0
  225. package/src/workflows/testarch/trace/steps-c/step-01-load-context.md +80 -0
  226. package/src/workflows/testarch/trace/steps-c/step-02-discover-tests.md +69 -0
  227. package/src/workflows/testarch/trace/steps-c/step-03-map-criteria.md +65 -0
  228. package/src/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +244 -0
  229. package/src/workflows/testarch/trace/steps-c/step-05-gate-decision.md +232 -0
  230. package/src/workflows/testarch/trace/steps-e/step-01-assess.md +65 -0
  231. package/src/workflows/testarch/trace/steps-e/step-02-apply-edit.md +60 -0
  232. package/src/workflows/testarch/trace/steps-v/step-01-validate.md +67 -0
  233. package/src/workflows/testarch/trace/trace-template.md +675 -0
  234. package/src/workflows/testarch/trace/validation-report-20260127-095021.md +73 -0
  235. package/src/workflows/testarch/trace/validation-report-20260127-102401.md +116 -0
  236. package/src/workflows/testarch/trace/workflow-plan.md +21 -0
  237. package/src/workflows/testarch/trace/workflow.md +39 -0
  238. package/src/workflows/testarch/trace/workflow.yaml +57 -0
  239. package/test/README.md +23 -0
  240. package/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +27 -0
  241. package/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +30 -0
  242. package/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +22 -0
  243. package/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +20 -0
  244. package/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +25 -0
  245. package/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +24 -0
  246. package/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +25 -0
  247. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml +25 -0
  248. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml +25 -0
  249. package/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +31 -0
  250. package/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +25 -0
  251. package/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +25 -0
  252. package/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +25 -0
  253. package/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +25 -0
  254. package/test/fixtures/agent-schema/invalid/metadata/empty-module-string.agent.yaml +26 -0
  255. package/test/fixtures/agent-schema/invalid/metadata/empty-name.agent.yaml +24 -0
  256. package/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +27 -0
  257. package/test/fixtures/agent-schema/invalid/metadata/missing-id.agent.yaml +23 -0
  258. package/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +24 -0
  259. package/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +27 -0
  260. package/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +27 -0
  261. package/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +24 -0
  262. package/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +29 -0
  263. package/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +31 -0
  264. package/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +28 -0
  265. package/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +28 -0
  266. package/test/fixtures/agent-schema/invalid/top-level/empty-file.agent.yaml +5 -0
  267. package/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +28 -0
  268. package/test/fixtures/agent-schema/invalid/top-level/missing-agent-key.agent.yaml +11 -0
  269. package/test/fixtures/agent-schema/invalid/yaml-errors/invalid-indentation.agent.yaml +19 -0
  270. package/test/fixtures/agent-schema/invalid/yaml-errors/malformed-yaml.agent.yaml +18 -0
  271. package/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +24 -0
  272. package/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +22 -0
  273. package/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +27 -0
  274. package/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +31 -0
  275. package/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +22 -0
  276. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +38 -0
  277. package/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +24 -0
  278. package/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml +31 -0
  279. package/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +34 -0
  280. package/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml +24 -0
  281. package/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +24 -0
  282. package/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +24 -0
  283. package/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +24 -0
  284. package/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml +23 -0
  285. package/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml +24 -0
  286. package/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +24 -0
  287. package/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +24 -0
  288. package/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +22 -0
  289. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +28 -0
  290. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +30 -0
  291. package/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +24 -0
  292. package/test/schema/agent.js +491 -0
  293. package/test/test-agent-schema.js +387 -0
  294. package/test/test-installation-components.js +183 -0
  295. package/test/test-knowledge-base.js +199 -0
  296. package/test/unit-test-schema.js +133 -0
  297. package/test/validate-agent-schema.js +110 -0
  298. package/tools/build-docs.js +575 -0
  299. package/tools/fix-doc-links.js +288 -0
  300. package/tools/schema/agent.js +491 -0
  301. package/tools/validate-agent-schema.js +111 -0
  302. package/tools/validate-doc-links.js +371 -0
  303. package/tools/verify-paths.js +100 -0
  304. package/website/README.md +137 -0
  305. package/website/astro.config.mjs +158 -0
  306. package/website/package-lock.json +6856 -0
  307. package/website/package.json +23 -0
  308. package/website/public/favicon.ico +0 -0
  309. package/website/public/img/tea-logo.svg +7 -0
  310. package/website/public/robots.txt +37 -0
  311. package/website/src/components/Banner.astro +59 -0
  312. package/website/src/components/Header.astro +121 -0
  313. package/website/src/components/MobileMenuFooter.astro +53 -0
  314. package/website/src/content/config.ts +6 -0
  315. package/website/src/lib/site-url.js +25 -0
  316. package/website/src/pages/404.astro +11 -0
  317. package/website/src/rehype-base-paths.js +89 -0
  318. package/website/src/rehype-markdown-links.js +117 -0
  319. package/website/src/styles/custom.css +499 -0
  320. package/website/tsconfig.json +9 -0
@@ -0,0 +1,717 @@
1
+ ---
2
+ title: Troubleshooting Guide
3
+ description: Diagnose and resolve common issues when using TEA
4
+ ---
5
+
6
+ # Troubleshooting Guide
7
+
8
+ This guide helps you diagnose and resolve common issues when using TEA (Test Architect).
9
+
10
+ ## Table of Contents
11
+
12
+ - [Installation Issues](#installation-issues)
13
+ - [Agent Loading Issues](#agent-loading-issues)
14
+ - [Workflow Execution Issues](#workflow-execution-issues)
15
+ - [Knowledge Base Issues](#knowledge-base-issues)
16
+ - [Configuration Issues](#configuration-issues)
17
+ - [Output and File Issues](#output-and-file-issues)
18
+ - [Integration Issues](#integration-issues)
19
+ - [Performance Issues](#performance-issues)
20
+ - [Getting Help](#getting-help)
21
+
22
+ ---
23
+
24
+ ## Installation Issues
25
+
26
+ ### TEA Module Not Found After Installation
27
+
28
+ **Symptom**: After running `npx bmad-method install`, TEA agent is not available.
29
+
30
+ **Causes**:
31
+
32
+ - TEA was not selected during installation
33
+ - Installation process failed silently
34
+ - `_bmad/tea/` directory was not created
35
+
36
+ **Solutions**:
37
+
38
+ 1. Verify TEA installation:
39
+
40
+ ```bash
41
+ ls -la _bmad/tea/
42
+ # Should show: agents/, workflows/, testarch/, module.yaml
43
+ ```
44
+
45
+ 2. If missing, reinstall TEA:
46
+
47
+ ```bash
48
+ npx bmad-method install
49
+ # Select: Test Architect (TEA)
50
+ ```
51
+
52
+ 3. Check installation logs for errors:
53
+ ```bash
54
+ # Look for error messages during installation
55
+ npx bmad-method install --verbose
56
+ ```
57
+
58
+ ### Module Installation Hangs
59
+
60
+ **Symptom**: Installation process hangs or times out.
61
+
62
+ **Causes**:
63
+
64
+ - Network connectivity issues
65
+ - NPM registry timeout
66
+ - Disk space issues
67
+
68
+ **Solutions**:
69
+
70
+ 1. Check network connectivity:
71
+
72
+ ```bash
73
+ ping registry.npmjs.org
74
+ ```
75
+
76
+ 2. Check available disk space:
77
+
78
+ ```bash
79
+ df -h
80
+ ```
81
+
82
+ 3. Clear NPM cache and retry:
83
+
84
+ ```bash
85
+ npm cache clean --force
86
+ npx bmad-method install
87
+ ```
88
+
89
+ 4. Use alternative registry:
90
+ ```bash
91
+ npm config set registry https://registry.npmjs.org/
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Agent Loading Issues
97
+
98
+ ### "Agent Not Found" Error
99
+
100
+ **Symptom**: Error message: `Error: Agent '_bmad/tea' not found` or `Agent 'tea' could not be loaded`.
101
+
102
+ **Causes**:
103
+
104
+ - TEA not installed
105
+ - Incorrect agent path
106
+ - Corrupted installation
107
+
108
+ **Solutions**:
109
+
110
+ 1. Verify TEA agent file exists:
111
+
112
+ ```bash
113
+ ls -la _bmad/tea/agents/tea.agent.yaml
114
+ ```
115
+
116
+ 2. Validate agent YAML syntax:
117
+
118
+ ```bash
119
+ # Check for YAML syntax errors
120
+ node tools/validate-agent-schema.js
121
+ ```
122
+
123
+ 3. Reinstall TEA if corrupted:
124
+ ```bash
125
+ rm -rf _bmad/tea/
126
+ npx bmad-method install
127
+ ```
128
+
129
+ ### TEA Loads But Commands Don't Work
130
+
131
+ **Symptom**: TEA agent loads successfully, but workflow triggers (TF, TD, AT, etc.) don't execute.
132
+
133
+ **Causes**:
134
+
135
+ - Workflow files missing
136
+ - Incorrect workflow paths in agent definition
137
+ - YAML syntax errors in workflow files
138
+
139
+ **Solutions**:
140
+
141
+ 1. Check workflow directories exist:
142
+
143
+ ```bash
144
+ ls -la _bmad/tea/workflows/testarch/
145
+ # Should show: atdd/, automate/, ci/, framework/, nfr-assess/, test-design/, test-review/, trace/
146
+ ```
147
+
148
+ 2. Validate workflow YAML files:
149
+
150
+ ```bash
151
+ # Check each workflow
152
+ cat _bmad/tea/workflows/testarch/test-design/workflow.yaml
153
+ ```
154
+
155
+ 3. Test workflow trigger directly:
156
+ ```bash
157
+ # Try full command
158
+ /bmad:tea:test-design
159
+ ```
160
+
161
+ ---
162
+
163
+ ## Workflow Execution Issues
164
+
165
+ ### Workflow Starts But Produces No Output
166
+
167
+ **Symptom**: Workflow executes but doesn't generate expected files (test designs, reports, tests).
168
+
169
+ **Causes**:
170
+
171
+ - Output directory doesn't exist or lacks write permissions
172
+ - Variable `test_artifacts` not configured
173
+ - Workflow completed but didn't reach output generation step
174
+
175
+ **Solutions**:
176
+
177
+ 1. Check output directory configuration:
178
+
179
+ ```bash
180
+ cat _bmad/tea/module.yaml | grep test_artifacts
181
+ ```
182
+
183
+ 2. Create output directory if missing:
184
+
185
+ ```bash
186
+ mkdir -p test-results
187
+ ```
188
+
189
+ 3. Check directory permissions:
190
+
191
+ ```bash
192
+ ls -la test-results/
193
+ # Should be writable
194
+ ```
195
+
196
+ 4. Verify workflow completed all steps:
197
+ ```
198
+ # Check Claude's response for completion message
199
+ # Look for: "✓ Test design complete" or similar
200
+ ```
201
+
202
+ ### Subprocess Fails to Execute
203
+
204
+ **Symptom**: Workflow reports subprocess failure, e.g., "API test generation subprocess failed".
205
+
206
+ **Causes**:
207
+
208
+ - Subprocess step file missing
209
+ - Temp file write permissions issue
210
+ - Invalid subprocess output format
211
+
212
+ **Solutions**:
213
+
214
+ 1. Verify subprocess step files exist:
215
+
216
+ ```bash
217
+ # For automate workflow
218
+ ls -la _bmad/tea/workflows/testarch/automate/steps-c/step-03*.md
219
+ # Should show: step-03a-subprocess-api.md, step-03b-subprocess-e2e.md, step-03c-aggregate.md
220
+ ```
221
+
222
+ 2. Check temp file directory permissions:
223
+
224
+ ```bash
225
+ ls -la /tmp/ | grep bmad-tea
226
+ # Should show temp files if workflow ran
227
+ ```
228
+
229
+ 3. Look for error messages in subprocess output:
230
+ ```
231
+ # Check Claude's response for specific error details
232
+ ```
233
+
234
+ ### Knowledge Fragments Not Loading
235
+
236
+ **Symptom**: Workflow executes but doesn't reference knowledge base patterns (e.g., no mention of "test-quality", "network-first").
237
+
238
+ **Causes**:
239
+
240
+ - `tea-index.csv` missing or corrupted
241
+ - Knowledge fragment files missing
242
+ - Workflow manifest doesn't specify fragments
243
+
244
+ **Solutions**:
245
+
246
+ 1. Verify tea-index.csv exists:
247
+
248
+ ```bash
249
+ cat _bmad/tea/testarch/tea-index.csv | wc -l
250
+ # Should show 35 lines (header + 34 fragments)
251
+ ```
252
+
253
+ 2. Check knowledge fragment files:
254
+
255
+ ```bash
256
+ ls -la _bmad/tea/testarch/knowledge/ | wc -l
257
+ # Should show 34+ files
258
+ ```
259
+
260
+ 3. Validate CSV format:
261
+
262
+ ```bash
263
+ head -5 _bmad/tea/testarch/tea-index.csv
264
+ # Should show: fragment_id,title,description,tags,file_path
265
+ ```
266
+
267
+ 4. Check workflow manifest:
268
+ ```bash
269
+ # Each workflow.yaml should specify knowledge_fragments
270
+ grep -A 5 "knowledge_fragments" _bmad/tea/workflows/testarch/test-design/workflow.yaml
271
+ ```
272
+
273
+ ---
274
+
275
+ ## Configuration Issues
276
+
277
+ ### Variables Not Prompting During Installation
278
+
279
+ **Symptom**: Installation completes without asking for TEA configuration (test_artifacts, Playwright Utils, etc.).
280
+
281
+ **Causes**:
282
+
283
+ - Variables marked as `prompt: false` in module.yaml
284
+ - Installation running in non-interactive mode
285
+ - Module.yaml misconfigured
286
+
287
+ **Solutions**:
288
+
289
+ 1. Check variable prompt settings:
290
+
291
+ ```bash
292
+ cat _bmad/tea/module.yaml | grep -A 3 "test_artifacts"
293
+ # Should show prompt: true
294
+ ```
295
+
296
+ 2. Manually edit module.yaml if needed:
297
+
298
+ ```bash
299
+ # Update _bmad/tea/module.yaml
300
+ vi _bmad/tea/module.yaml
301
+ ```
302
+
303
+ 3. Run installation in interactive mode:
304
+ ```bash
305
+ npx bmad-method install --interactive
306
+ ```
307
+
308
+ ### Playwright Utils Integration Not Working
309
+
310
+ **Symptom**: Workflows don't include Playwright Utils references even though `tea_use_playwright_utils` is enabled.
311
+
312
+ **Causes**:
313
+
314
+ - Variable set to `false` in module.yaml
315
+ - Playwright Utils knowledge fragments missing
316
+ - Workflow doesn't support Playwright Utils integration
317
+
318
+ **Solutions**:
319
+
320
+ 1. Verify variable setting:
321
+
322
+ ```bash
323
+ cat _bmad/tea/module.yaml | grep tea_use_playwright_utils
324
+ # Should show: default: true (if enabled)
325
+ ```
326
+
327
+ 2. Check Playwright Utils fragments exist:
328
+
329
+ ```bash
330
+ grep -i "playwright-utils" _bmad/tea/testarch/tea-index.csv
331
+ # Should show 6 fragments
332
+ ```
333
+
334
+ 3. Note: Only certain workflows integrate Playwright Utils:
335
+ - ✅ Framework (TF)
336
+ - ✅ Test Design (TD)
337
+ - ✅ ATDD (AT)
338
+ - ✅ Automate (TA)
339
+ - ✅ Test Review (RV)
340
+ - ❌ CI, Trace, NFR-Assess (not applicable)
341
+
342
+ ---
343
+
344
+ ## Output and File Issues
345
+
346
+ ### Test Files Generated in Wrong Location
347
+
348
+ **Symptom**: Test files created in unexpected directory.
349
+
350
+ **Causes**:
351
+
352
+ - `test_artifacts` variable misconfigured
353
+ - Relative path confusion
354
+ - Working directory changed
355
+
356
+ **Solutions**:
357
+
358
+ 1. Check test_artifacts configuration:
359
+
360
+ ```bash
361
+ cat _bmad/tea/module.yaml | grep test_artifacts
362
+ ```
363
+
364
+ 2. Use absolute paths:
365
+
366
+ ```bash
367
+ # Specify absolute path
368
+ export TEST_ARTIFACTS=/path/to/project/test-results
369
+ ```
370
+
371
+ 3. Verify working directory:
372
+ ```bash
373
+ pwd
374
+ # Should be project root
375
+ ```
376
+
377
+ ### Generated Tests Have Syntax Errors
378
+
379
+ **Symptom**: TEA generates tests with JavaScript/TypeScript syntax errors.
380
+
381
+ **Causes**:
382
+
383
+ - Framework configuration mismatch (Playwright vs Cypress)
384
+ - Wrong test template loaded
385
+ - Knowledge fragment syntax error
386
+
387
+ **Solutions**:
388
+
389
+ 1. Specify framework explicitly:
390
+
391
+ ```
392
+ # In chat with TEA
393
+ "Generate Playwright tests using TypeScript"
394
+ ```
395
+
396
+ 2. Validate generated tests:
397
+
398
+ ```bash
399
+ npx eslint tests/**/*.spec.ts
400
+ ```
401
+
402
+ 3. Check knowledge fragments for errors:
403
+ ```bash
404
+ # Validate markdown syntax
405
+ markdownlint _bmad/tea/testarch/knowledge/*.md
406
+ ```
407
+
408
+ ### File Permission Errors
409
+
410
+ **Symptom**: Error: `EACCES: permission denied` when writing files.
411
+
412
+ **Causes**:
413
+
414
+ - Directory not writable
415
+ - File owned by different user
416
+ - Disk full
417
+
418
+ **Solutions**:
419
+
420
+ 1. Check directory permissions:
421
+
422
+ ```bash
423
+ ls -la test-results/
424
+ ```
425
+
426
+ 2. Fix permissions:
427
+
428
+ ```bash
429
+ chmod -R u+w test-results/
430
+ ```
431
+
432
+ 3. Check disk space:
433
+ ```bash
434
+ df -h
435
+ ```
436
+
437
+ ---
438
+
439
+ ## Integration Issues
440
+
441
+ ### Playwright Utils Not Found
442
+
443
+ **Symptom**: Tests reference Playwright Utils but imports fail.
444
+
445
+ **Causes**:
446
+
447
+ - Playwright Utils not installed
448
+ - Wrong import path
449
+ - Version mismatch
450
+
451
+ **Solutions**:
452
+
453
+ 1. Install Playwright Utils:
454
+
455
+ ```bash
456
+ npm install @muratkeremozcan/playwright-utils
457
+ ```
458
+
459
+ 2. Verify installation:
460
+
461
+ ```bash
462
+ npm ls @muratkeremozcan/playwright-utils
463
+ ```
464
+
465
+ 3. Check import paths in generated tests:
466
+ ```typescript
467
+ // Should be:
468
+ import { expect, test } from '@muratkeremozcan/playwright-utils';
469
+ ```
470
+
471
+ ### MCP Enhancements Not Applying
472
+
473
+ **Symptom**: `tea_use_mcp_enhancements` enabled but no MCP features in outputs.
474
+
475
+ **Causes**:
476
+
477
+ - MCP server not configured in Claude Desktop
478
+ - Variable not read correctly
479
+ - Workflow doesn't support MCP enhancements
480
+
481
+ **Solutions**:
482
+
483
+ 1. Verify MCP configuration in Claude Desktop:
484
+
485
+ ```json
486
+ // Check claude_desktop_config.json
487
+ {
488
+ "mcpServers": {
489
+ "playwright": {
490
+ "command": "npx",
491
+ "args": ["@modelcontextprotocol/server-playwright"]
492
+ }
493
+ }
494
+ }
495
+ ```
496
+
497
+ 2. Check variable setting:
498
+
499
+ ```bash
500
+ cat _bmad/tea/module.yaml | grep tea_use_mcp_enhancements
501
+ ```
502
+
503
+ 3. Restart Claude Desktop after configuration changes.
504
+
505
+ ---
506
+
507
+ ## Performance Issues
508
+
509
+ ### Workflows Taking Too Long
510
+
511
+ **Symptom**: Workflows run for several minutes without completing.
512
+
513
+ **Causes**:
514
+
515
+ - Large codebase exploration
516
+ - Many test files to review
517
+ - Subprocess execution overhead
518
+ - Network latency (if using web-based Claude)
519
+
520
+ **Solutions**:
521
+
522
+ 1. Scope workflows to specific directories:
523
+
524
+ ```
525
+ # Instead of "review all tests"
526
+ "Review tests in tests/e2e/checkout/"
527
+ ```
528
+
529
+ 2. Use selective workflows:
530
+ - Use `automate` for targeted test generation
531
+ - Use `test-review` on specific files, not entire suite
532
+
533
+ 3. Check system resources:
534
+ ```bash
535
+ top
536
+ # Look for CPU/memory usage
537
+ ```
538
+
539
+ ### Large Knowledge Base Loading Slowly
540
+
541
+ **Symptom**: Initial workflow load takes 30+ seconds.
542
+
543
+ **Causes**:
544
+
545
+ - All 34 fragments loading at once
546
+ - Large fragment file sizes
547
+ - Disk I/O bottleneck
548
+
549
+ **Solutions**:
550
+
551
+ 1. This is expected behavior - knowledge base loading is one-time per workflow
552
+ 2. Use cached knowledge (workflows cache fragments in memory)
553
+ 3. For repeated runs, performance should improve
554
+
555
+ ---
556
+
557
+ ## Getting Help
558
+
559
+ ### Debug Mode
560
+
561
+ Enable debug logging for detailed diagnostics:
562
+
563
+ ```bash
564
+ # Set debug environment variable
565
+ export DEBUG=bmad:tea:*
566
+
567
+ # Run workflow with verbose output
568
+ # (Note: Exact implementation depends on BMAD Method)
569
+ ```
570
+
571
+ ### Collecting Diagnostic Information
572
+
573
+ When reporting issues, include:
574
+
575
+ 1. **TEA Version**:
576
+
577
+ ```bash
578
+ cat _bmad/tea/module.yaml | grep version
579
+ ```
580
+
581
+ 2. **BMAD Method Version**:
582
+
583
+ ```bash
584
+ bmad --version
585
+ ```
586
+
587
+ 3. **Node Version**:
588
+
589
+ ```bash
590
+ node --version
591
+ ```
592
+
593
+ 4. **Operating System**:
594
+
595
+ ```bash
596
+ uname -a
597
+ ```
598
+
599
+ 5. **Directory Structure**:
600
+
601
+ ```bash
602
+ tree -L 2 _bmad/tea/
603
+ ```
604
+
605
+ 6. **Error Messages**: Copy full error message and stack trace
606
+
607
+ 7. **Steps to Reproduce**: Exact commands that trigger the issue
608
+
609
+ ### Support Channels
610
+
611
+ 1. **Documentation**: [test-architect.bmad-method.org](https://test-architect.bmad-method.org)
612
+ 2. **GitHub Issues**: [Report a bug](https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/issues/new?template=issue.md)
613
+ 3. **GitHub Discussions**: [Ask a question](https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/discussions)
614
+ 4. **Migration Guide**: [docs/MIGRATION.md](/docs/MIGRATION.md) for upgrade issues
615
+
616
+ ### Before Reporting an Issue
617
+
618
+ Check these first:
619
+
620
+ - [ ] TEA is installed: `ls -la _bmad/tea/`
621
+ - [ ] Using correct command namespace: `/bmad:tea:*` not `/bmad:bmm:tea:*`
622
+ - [ ] Module.yaml exists and is valid
623
+ - [ ] Knowledge base files present (34 fragments)
624
+ - [ ] Output directory exists and is writable
625
+ - [ ] No disk space issues: `df -h`
626
+ - [ ] Node version >=20.0.0: `node --version`
627
+ - [ ] Searched existing issues on GitHub
628
+
629
+ ---
630
+
631
+ ## Common Error Messages
632
+
633
+ ### "Module 'tea' not found"
634
+
635
+ **Fix**: Reinstall TEA module via `npx bmad-method install`
636
+
637
+ ### "Knowledge fragment 'test-quality' not found"
638
+
639
+ **Fix**: Verify `_bmad/tea/testarch/tea-index.csv` exists and lists the fragment
640
+
641
+ ### "Cannot write to test-results/"
642
+
643
+ **Fix**: Create directory and fix permissions: `mkdir -p test-results && chmod u+w test-results`
644
+
645
+ ### "Workflow 'test-design' failed at step 3"
646
+
647
+ **Fix**: Check step file exists: `_bmad/tea/workflows/testarch/test-design/steps-c/step-03-*`
648
+
649
+ ### "Agent YAML validation failed"
650
+
651
+ **Fix**: Validate YAML syntax: `node tools/validate-agent-schema.js`
652
+
653
+ ### "Subprocess execution timeout"
654
+
655
+ **Fix**: Large codebases may timeout. Scope workflow to smaller directory.
656
+
657
+ ---
658
+
659
+ ## Advanced Troubleshooting
660
+
661
+ ### Manually Validate Installation
662
+
663
+ Run this validation script:
664
+
665
+ ```bash
666
+ #!/bin/bash
667
+ echo "Validating TEA Installation..."
668
+
669
+ # Check agent file
670
+ if [ -f "_bmad/tea/agents/tea.agent.yaml" ]; then
671
+ echo "✓ Agent file exists"
672
+ else
673
+ echo "✗ Agent file missing"
674
+ fi
675
+
676
+ # Check workflows
677
+ for workflow in atdd automate ci framework nfr-assess test-design test-review trace; do
678
+ if [ -f "_bmad/tea/workflows/testarch/$workflow/workflow.yaml" ]; then
679
+ echo "✓ Workflow: $workflow"
680
+ else
681
+ echo "✗ Workflow missing: $workflow"
682
+ fi
683
+ done
684
+
685
+ # Check knowledge base
686
+ fragment_count=$(ls _bmad/tea/testarch/knowledge/*.md 2>/dev/null | wc -l)
687
+ echo "Knowledge fragments: $fragment_count (expected: 34)"
688
+
689
+ # Check tea-index.csv
690
+ csv_lines=$(wc -l < _bmad/tea/testarch/tea-index.csv 2>/dev/null || echo "0")
691
+ echo "TEA index lines: $csv_lines (expected: 35)"
692
+
693
+ echo "Validation complete!"
694
+ ```
695
+
696
+ ### Reset TEA to Fresh State
697
+
698
+ If all else fails, reset TEA completely:
699
+
700
+ ```bash
701
+ # Backup existing configuration
702
+ cp _bmad/tea/module.yaml /tmp/tea-module-backup.yaml
703
+
704
+ # Remove TEA
705
+ rm -rf _bmad/tea/
706
+
707
+ # Reinstall
708
+ npx bmad-method install
709
+ # Select: Test Architect (TEA)
710
+
711
+ # Restore configuration if needed
712
+ cp /tmp/tea-module-backup.yaml _bmad/tea/module.yaml
713
+ ```
714
+
715
+ ---
716
+
717
+ **Still stuck?** Open a [GitHub Issue](https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/issues) with diagnostic information.