bmad-method-test-architecture-enterprise 3.6.1 → 4.0.1

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 (55) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/README.md +10 -3
  3. package/cli/lib/automate-prompt.js +3 -7
  4. package/cli/lib/framework-setup.js +1 -2
  5. package/cli/lib/parse-report.js +1 -1
  6. package/cli/lib/resolve-tea-config.js +167 -38
  7. package/cli/lib/trace-command.js +13 -5
  8. package/cli/migrate-customizations.js +853 -77
  9. package/cli/teach.js +0 -1
  10. package/cli/test-review.js +6 -2
  11. package/package.json +3 -2
  12. package/skills/bmad-tea/SKILL.md +2 -2
  13. package/skills/bmad-tea-automate/SKILL.md +12 -11
  14. package/skills/bmad-tea-automate/customize.toml +12 -0
  15. package/skills/bmad-tea-automate/red/atdd-checklist-template.md +4 -4
  16. package/skills/bmad-tea-automate/red/checklist.md +1 -0
  17. package/skills/bmad-tea-automate/red/instructions.md +1 -1
  18. package/skills/bmad-tea-automate/red/steps-c/step-04a-subagent-api-failing.md +5 -0
  19. package/skills/bmad-tea-automate/red/steps-c/step-04b-subagent-e2e-failing.md +4 -0
  20. package/skills/bmad-tea-automate/red/steps-c/step-04c-aggregate.md +3 -2
  21. package/skills/bmad-tea-automate/red/steps-c/step-05-validate-and-complete.md +5 -4
  22. package/skills/bmad-tea-automate/red/steps-e/step-02-apply-edit.md +4 -4
  23. package/skills/bmad-tea-automate/red/steps-v/step-01-validate.md +4 -4
  24. package/skills/bmad-tea-automate/red/workflow.yaml +0 -1
  25. package/skills/bmad-tea-automate/resources/test-generation-routing.md +4 -7
  26. package/skills/bmad-tea-automate/steps-c/step-04-validate-and-summarize.md +4 -4
  27. package/skills/bmad-tea-automate/steps-e/step-02-apply-edit.md +4 -4
  28. package/skills/bmad-tea-automate/steps-v/step-01-validate.md +4 -4
  29. package/skills/bmad-tea-automate/workflow.yaml +0 -1
  30. package/skills/bmad-tea-evaluate/SKILL.md +1 -1
  31. package/skills/bmad-tea-framework/SKILL.md +3 -3
  32. package/skills/bmad-tea-framework/customize.toml +11 -2
  33. package/skills/bmad-tea-framework/resources/hooks/tea-enforce.cjs +366 -46
  34. package/skills/bmad-tea-framework/resources/setup-routing.md +6 -6
  35. package/skills/bmad-tea-framework/steps-c/step-04-docs-and-scripts.md +16 -12
  36. package/skills/bmad-tea-framework/workflow.yaml +0 -1
  37. package/skills/bmad-tea-nfr/SKILL.md +2 -2
  38. package/skills/bmad-tea-nfr/workflow.yaml +0 -1
  39. package/skills/bmad-tea-teach-me-testing/SKILL.md +2 -2
  40. package/skills/bmad-tea-test-design/SKILL.md +2 -2
  41. package/skills/bmad-tea-test-design/workflow.yaml +0 -1
  42. package/skills/bmad-tea-test-review/SKILL.md +2 -2
  43. package/skills/bmad-tea-test-review/workflow.yaml +0 -1
  44. package/skills/bmad-tea-trace/SKILL.md +2 -2
  45. package/skills/bmad-tea-trace/steps-c/step-04-analyze-gaps.md +2 -1
  46. package/skills/bmad-tea-trace/steps-c/step-05-gate-decision.md +30 -13
  47. package/skills/bmad-tea-trace/workflow.yaml +0 -1
  48. package/skills/bmod-tea/bmod.toml +3 -3
  49. package/skills/bmod-tea/help/help.md +10 -9
  50. package/skills/bmod-tea/knowledge/maestro-flows.md +1 -1
  51. package/skills/bmod-tea/migration-1.toml +7 -7
  52. package/skills/bmod-tea/migration-3.toml +50 -0
  53. package/skills/bmod-tea/retired.toml +13 -0
  54. package/skills/bmad-tea-automate/red/customize.toml +0 -38
  55. package/skills/bmad-tea-framework/ci/customize.toml +0 -10
@@ -23,7 +23,7 @@ You will continue to operate with your given name, identity, and communication_s
23
23
 
24
24
  ## On Activation
25
25
 
26
- Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-nfr.toml` and `bmad-testarch-nfr.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
26
+ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-nfr.toml` and `bmad-testarch-nfr.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
27
27
 
28
28
  ### Step 1: Resolve the Workflow Block
29
29
 
@@ -51,7 +51,7 @@ Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {proje
51
51
 
52
52
  Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
53
53
 
54
- If `{tea-knowledge}/tea-index.csv` does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`, run that on a yes, and stop until it is there.
54
+ If `{tea-knowledge}/tea-index.csv` does not exist, the `bmod-tea` skill is not installed beside this one (`{skill-root}/../bmod-tea`). Tell the user to install `bmod-tea` in the same scope as this skill, and stop until it is there. For a skill in the project's skills folder run `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`; for a skill in the global skills folder add `-g`. Run the command on a yes. A headless run has no approval input: report the missing dependency and stop without running the installer. A `bmod-tea` installed in the other scope does not satisfy this skill.
55
55
 
56
56
  ### Step 5: Greet the User
57
57
 
@@ -7,7 +7,6 @@ description: 'Audit NFR evidence for performance, security, reliability, and mai
7
7
  date: system-generated
8
8
 
9
9
  # Workflow components
10
- installed_path: "."
11
10
  instructions: "./instructions.md"
12
11
  validation: "./checklist.md"
13
12
  template: "./nfr-report-template.md"
@@ -24,7 +24,7 @@ You will continue to operate with your given name, identity, and communication_s
24
24
 
25
25
  ## On Activation
26
26
 
27
- Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-teach-me-testing.toml` and `bmad-teach-me-testing.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
27
+ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-teach-me-testing.toml` and `bmad-teach-me-testing.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
28
28
 
29
29
  ### Step 1: Resolve the Workflow Block
30
30
 
@@ -52,7 +52,7 @@ Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {proje
52
52
 
53
53
  Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
54
54
 
55
- If `{tea-knowledge}/tea-index.csv` does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`, run that on a yes, and stop until it is there.
55
+ If `{tea-knowledge}/tea-index.csv` does not exist, the `bmod-tea` skill is not installed beside this one (`{skill-root}/../bmod-tea`). Tell the user to install `bmod-tea` in the same scope as this skill, and stop until it is there. For a skill in the project's skills folder run `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`; for a skill in the global skills folder add `-g`. Run the command on a yes. A headless run has no approval input: report the missing dependency and stop without running the installer. A `bmod-tea` installed in the other scope does not satisfy this skill.
56
56
 
57
57
  ### Step 5: Greet the User
58
58
 
@@ -22,7 +22,7 @@ You will continue to operate with your given name, identity, and communication_s
22
22
 
23
23
  ## On Activation
24
24
 
25
- Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-test-design.toml` and `bmad-testarch-test-design.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
25
+ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-test-design.toml` and `bmad-testarch-test-design.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
26
26
 
27
27
  ### Step 1: Resolve the Workflow Block
28
28
 
@@ -50,7 +50,7 @@ Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {proje
50
50
 
51
51
  Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
52
52
 
53
- If `{tea-knowledge}/tea-index.csv` does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`, run that on a yes, and stop until it is there.
53
+ If `{tea-knowledge}/tea-index.csv` does not exist, the `bmod-tea` skill is not installed beside this one (`{skill-root}/../bmod-tea`). Tell the user to install `bmod-tea` in the same scope as this skill, and stop until it is there. For a skill in the project's skills folder run `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`; for a skill in the global skills folder add `-g`. Run the command on a yes. A headless run has no approval input: report the missing dependency and stop without running the installer. A `bmod-tea` installed in the other scope does not satisfy this skill.
54
54
 
55
55
  ### Step 5: Greet the User
56
56
 
@@ -7,7 +7,6 @@ description: 'Create system-level or epic-level test plans. Use when the user sa
7
7
  date: system-generated
8
8
 
9
9
  # Workflow components
10
- installed_path: "."
11
10
  instructions: "./instructions.md"
12
11
  validation: "./checklist.md"
13
12
  # Note: Template selection is mode-based (see instructions.md Step 1.5):
@@ -23,7 +23,7 @@ You will continue to operate with your given name, identity, and communication_s
23
23
 
24
24
  ## On Activation
25
25
 
26
- Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-test-review.toml` and `bmad-testarch-test-review.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
26
+ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-test-review.toml` and `bmad-testarch-test-review.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
27
27
 
28
28
  ### Step 1: Resolve the Workflow Block
29
29
 
@@ -51,7 +51,7 @@ Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {proje
51
51
 
52
52
  Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
53
53
 
54
- If `{tea-knowledge}/tea-index.csv` does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`, run that on a yes, and stop until it is there.
54
+ If `{tea-knowledge}/tea-index.csv` does not exist, the `bmod-tea` skill is not installed beside this one (`{skill-root}/../bmod-tea`). Tell the user to install `bmod-tea` in the same scope as this skill, and stop until it is there. For a skill in the project's skills folder run `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`; for a skill in the global skills folder add `-g`. Run the command on a yes. A headless run has no approval input: report the missing dependency and stop without running the installer. A `bmod-tea` installed in the other scope does not satisfy this skill.
55
55
 
56
56
  ### Step 5: Greet the User
57
57
 
@@ -9,7 +9,6 @@ description: 'Review test quality using best practices validation. Use when the
9
9
  date: system-generated
10
10
 
11
11
  # Workflow components
12
- installed_path: "."
13
12
  instructions: "./instructions.md"
14
13
  validation: "./checklist.md"
15
14
  template: "./test-review-template.md"
@@ -23,7 +23,7 @@ You will continue to operate with your given name, identity, and communication_s
23
23
 
24
24
  ## On Activation
25
25
 
26
- Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-trace.toml` and `bmad-testarch-trace.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
26
+ Before resolving customizations or running hooks, inspect `{project-root}/_bmad/custom/` for `bmad-testarch-trace.toml` and `bmad-testarch-trace.user.toml`. If either exists, stop and tell the user to run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root {project-root}`. Resolve any reported manual merge, then start a fresh chat. Do not continue with default settings while legacy overrides remain.
27
27
 
28
28
  ### Step 1: Resolve the Workflow Block
29
29
 
@@ -51,7 +51,7 @@ Run `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {proje
51
51
 
52
52
  Each `core` and `modules.tea` key is available as `{<key>}`, and as `config.<key>` in later steps. Replace `{project-root}` inside a value with the project root. Setup answers are strings: read `"true"` and `"false"` as booleans.
53
53
 
54
- If `{tea-knowledge}/tea-index.csv` does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`, run that on a yes, and stop until it is there.
54
+ If `{tea-knowledge}/tea-index.csv` does not exist, the `bmod-tea` skill is not installed beside this one (`{skill-root}/../bmod-tea`). Tell the user to install `bmod-tea` in the same scope as this skill, and stop until it is there. For a skill in the project's skills folder run `npx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea`; for a skill in the global skills folder add `-g`. Run the command on a yes. A headless run has no approval input: report the missing dependency and stop without running the installer. A `bmod-tea` installed in the other scope does not satisfy this skill.
55
55
 
56
56
  ### Step 5: Greet the User
57
57
 
@@ -514,7 +514,8 @@ const totalRequirements = traceabilityMatrix.length;
514
514
  const coveredRequirements = traceabilityMatrix.filter((r) => r.coverage === 'FULL' || r.coverage === 'PARTIAL').length;
515
515
  const fullyCovered = traceabilityMatrix.filter((r) => r.coverage === 'FULL').length;
516
516
 
517
- const safePct = (covered, total) => (total > 0 ? Math.round((covered / total) * 100) : 100);
517
+ // Percentages round DOWN, so a displayed value reaches a whole-number threshold exactly when the counts do. Step 5 compares covered/total counts for every gate threshold.
518
+ const safePct = (covered, total) => (total > 0 ? Math.floor((covered * 100) / total) : 100);
518
519
  const coveragePercentage = safePct(fullyCovered, totalRequirements);
519
520
 
520
521
  // Priority-specific coverage
@@ -112,6 +112,12 @@ const p1Coverage = priorityBreakdown.P1.percentage;
112
112
  const hasP1Requirements = (priorityBreakdown.P1.total || 0) > 0;
113
113
  const effectiveP1Coverage = hasP1Requirements ? p1Coverage : 100;
114
114
  const overallCoverage = stats.overall_coverage_percentage;
115
+ // Displayed percentages round down (Math.floor), so a displayed value reaches a whole-number threshold exactly when the counts do. Apply thresholds to integer counts.
116
+ const meetsCoverage = (covered, total, threshold) => total === 0 || covered * 100 >= threshold * total;
117
+ const p0Met = meetsCoverage(priorityBreakdown.P0.covered, priorityBreakdown.P0.total, 100);
118
+ const p1MinimumMet = meetsCoverage(priorityBreakdown.P1.covered, priorityBreakdown.P1.total, 80);
119
+ const p1TargetMet = meetsCoverage(priorityBreakdown.P1.covered, priorityBreakdown.P1.total, 90);
120
+ const overallMet = meetsCoverage(stats.fully_covered, stats.total_requirements, 80);
115
121
  const criticalGaps = (coverageMatrix.gap_analysis?.critical_gaps || []).length;
116
122
  const isUnresolved = (value) => typeof value === 'string' && value.startsWith('{') && value.endsWith('}');
117
123
  const normalizeResolvedToken = (value) => {
@@ -166,6 +172,17 @@ const reportedLiveEvidence =
166
172
  ? coverageMatrix.live_evidence
167
173
  : {};
168
174
  const liveEvidence = { ...liveEvidenceDefaults, ...reportedLiveEvidence };
175
+ // An absent legacy live block retains the defaults. A fresh claim must carry
176
+ // measured counts; missing or malformed evidence cannot establish a passing gate.
177
+ if (liveEvidence.freshness === 'fresh' && (!Number.isInteger(reportedLiveEvidence.failed) || reportedLiveEvidence.failed < 0)) {
178
+ throw new Error('Fresh live evidence requires a nonnegative integer failed count');
179
+ }
180
+ if (
181
+ Object.hasOwn(reportedLiveEvidence, 'fresh_failed') &&
182
+ (!Number.isInteger(reportedLiveEvidence.fresh_failed) || reportedLiveEvidence.fresh_failed < 0)
183
+ ) {
184
+ throw new Error('Live evidence fresh_failed must be a nonnegative integer');
185
+ }
169
186
 
170
187
  // The live-only count is what stands between live evidence and an unconditional PASS, so it is
171
188
  // re-derived here from the requirements themselves rather than trusted as a scalar. Phase 1 can be
@@ -306,33 +323,33 @@ if (!gateEligible) {
306
323
  rationale = `Gate decision skipped because allow_gate=${allowGate} and collection_status=${collectionStatus}.`;
307
324
  } else {
308
325
  // Rule 1: P0 coverage must be 100%
309
- if (p0Coverage < 100) {
326
+ if (!p0Met) {
310
327
  gateDecision = 'FAIL';
311
328
  // Critical gaps are every P0 criterion under FULL, which includes PARTIAL, UNIT-ONLY, and
312
329
  // INTEGRATION-ONLY, so the count is stated as "below FULL coverage". See checklist.md's Gap Analysis.
313
330
  rationale = `P0 coverage is ${p0Coverage}% (required: 100%). ${criticalGaps} critical requirement(s) below FULL coverage.`;
314
331
  }
315
332
  // Rule 2: Overall coverage must be >= 80%
316
- else if (overallCoverage < 80) {
333
+ else if (!overallMet) {
317
334
  gateDecision = 'FAIL';
318
335
  rationale = `Overall coverage is ${overallCoverage}% (minimum: 80%). Significant gaps exist.`;
319
336
  }
320
337
  // Rule 3: P1 coverage < 80% → FAIL
321
- else if (effectiveP1Coverage < 80) {
338
+ else if (!p1MinimumMet) {
322
339
  gateDecision = 'FAIL';
323
340
  rationale = hasP1Requirements
324
341
  ? `P1 coverage is ${effectiveP1Coverage}% (minimum: 80%). High-priority gaps must be addressed.`
325
342
  : `P1 requirements are not present; continuing with remaining gate criteria.`;
326
343
  }
327
344
  // Rule 4: P1 coverage >= 90% and overall >= 80% with P0 at 100% → PASS
328
- else if (effectiveP1Coverage >= 90) {
345
+ else if (p1TargetMet) {
329
346
  gateDecision = 'PASS';
330
347
  rationale = hasP1Requirements
331
348
  ? `P0 coverage is 100%, P1 coverage is ${effectiveP1Coverage}% (target: 90%), and overall coverage is ${overallCoverage}% (minimum: 80%).`
332
349
  : `P0 coverage is 100% and overall coverage is ${overallCoverage}% (minimum: 80%). No P1 requirements detected.`;
333
350
  }
334
351
  // Rule 5: P1 coverage 80-89% with P0 at 100% and overall >= 80% → CONCERNS
335
- else if (effectiveP1Coverage >= 80) {
352
+ else if (p1MinimumMet) {
336
353
  gateDecision = 'CONCERNS';
337
354
  rationale = hasP1Requirements
338
355
  ? `P0 coverage is 100% and overall coverage is ${overallCoverage}% (minimum: 80%), but P1 coverage is ${effectiveP1Coverage}% (target: 90%).`
@@ -366,7 +383,7 @@ if (!gateEligible) {
366
383
  // A live result is a one-time observation of one commit with no artifact anyone can re-run, so a
367
384
  // requirement resting only on it is capped at CONCERNS. This overlay only ever lowers PASS or
368
385
  // annotates an existing CONCERNS; it can never lift a FAIL.
369
- const freshLiveFailures = liveEvidence.fresh_failed ?? (liveEvidence.freshness === 'fresh' ? liveEvidence.failed : 0);
386
+ const freshLiveFailures = Math.max(liveEvidence.fresh_failed ?? 0, liveEvidence.freshness === 'fresh' ? liveEvidence.failed : 0);
370
387
  if (freshLiveFailures > 0 && gateDecision === 'PASS') {
371
388
  gateDecision = 'CONCERNS';
372
389
  rationale = `${rationale} ${freshLiveFailures} fresh live verification failure(s) require investigation.`;
@@ -476,16 +493,16 @@ const gateReport = {
476
493
  ? {
477
494
  p0_coverage_required: '100%',
478
495
  p0_coverage_actual: `${p0Coverage}%`,
479
- p0_status: p0Coverage === 100 ? 'MET' : 'NOT_MET',
496
+ p0_status: p0Met ? 'MET' : 'NOT_MET',
480
497
 
481
498
  p1_coverage_target: '90%',
482
499
  p1_coverage_minimum: '80%',
483
500
  p1_coverage_actual: `${effectiveP1Coverage}%`,
484
- p1_status: effectiveP1Coverage >= 90 ? 'MET' : effectiveP1Coverage >= 80 ? 'PARTIAL' : 'NOT_MET',
501
+ p1_status: p1TargetMet ? 'MET' : p1MinimumMet ? 'PARTIAL' : 'NOT_MET',
485
502
 
486
503
  overall_coverage_minimum: '80%',
487
504
  overall_coverage_actual: `${overallCoverage}%`,
488
- overall_status: overallCoverage >= 80 ? 'MET' : 'NOT_MET',
505
+ overall_status: overallMet ? 'MET' : 'NOT_MET',
489
506
  }
490
507
  : null,
491
508
 
@@ -804,14 +821,14 @@ if (gateEligible) {
804
821
  e2eTraceSummary.gate_criteria = {
805
822
  p0_coverage_required: '100%',
806
823
  p0_coverage_actual: `${p0Coverage}%`,
807
- p0_status: p0Coverage === 100 ? 'MET' : 'NOT_MET',
824
+ p0_status: p0Met ? 'MET' : 'NOT_MET',
808
825
  p1_coverage_target: '90%',
809
826
  p1_coverage_minimum: '80%',
810
827
  p1_coverage_actual: `${effectiveP1Coverage}%`,
811
- p1_status: effectiveP1Coverage >= 90 ? 'MET' : effectiveP1Coverage >= 80 ? 'PARTIAL' : 'NOT_MET',
828
+ p1_status: p1TargetMet ? 'MET' : p1MinimumMet ? 'PARTIAL' : 'NOT_MET',
812
829
  overall_coverage_minimum: '80%',
813
830
  overall_coverage_actual: `${overallCoverage}%`,
814
- overall_status: overallCoverage >= 80 ? 'MET' : 'NOT_MET',
831
+ overall_status: overallMet ? 'MET' : 'NOT_MET',
815
832
  };
816
833
  }
817
834
 
@@ -941,7 +958,7 @@ This is the only write of report content in this step. Section 6 changes the fro
941
958
  - Requirements covered only by live evidence: {liveOnlyCoveredRequirements} (this run is capped at CONCERNS)
942
959
  {endif}
943
960
 
944
- ⚠️ Critical Gaps: {criticalGaps.length} (P0 criteria below FULL coverage)
961
+ ⚠️ Critical Gaps: {criticalGaps} (P0 criteria below FULL coverage)
945
962
 
946
963
  {if waivers}
947
964
  🔓 Waivers Filed: {waivers.filed} ({waivers.valid} valid, {waivers.invalid} invalid). None applied; the decision above is the derived one.
@@ -7,7 +7,6 @@ description: 'Generate traceability matrix and quality gate decision. Use when t
7
7
  date: system-generated
8
8
 
9
9
  # Workflow components
10
- installed_path: "."
11
10
  instructions: "./instructions.md"
12
11
  validation: "./checklist.md"
13
12
  template: "./trace-template.md"
@@ -2,7 +2,7 @@
2
2
 
3
3
  [bmod]
4
4
  code = "tea"
5
- version = "3.6.1"
5
+ version = "4.0.1"
6
6
  update_source = "github:bmad-code-org/bmad-method-test-architecture-enterprise/skills"
7
7
  skills = [
8
8
  "bmad-tea",
@@ -15,12 +15,12 @@ skills = [
15
15
  "bmad-tea-test-review",
16
16
  "bmad-tea-trace",
17
17
  ]
18
- required_skills = [{ skill = "bmad", version = "6.13.0-next", source = "github:bmad-code-org/BMAD-METHOD/skills" }]
18
+ required_skills = [{ skill = "bmad", version = "6.13.0-next", source = "github:bmad-code-org/BMAD-METHOD/skills/core-tools" }]
19
19
  pre_install_message = ""
20
20
  post_install_message = '''
21
21
  TEA is ready. Talk to Murat (bmad-tea) or start with Test Design (bmad-tea-test-design).
22
22
 
23
- Playwright Utils, Pact.js Utils, the Playwright CLI or MCP servers, and the SmartBear MCP each need their own install. Test Framework (bmad-tea-framework) installs the utils packages and owns framework and CI setup. Test Automation (bmad-tea-automate) owns red and expand test generation with run-and-heal enabled by default. Migrate existing CI and ATDD customization filenames with tea-migrate-customizations. Ask bmad how to set up the rest.
23
+ Playwright Utils, Pact.js Utils, the Playwright CLI or MCP servers, and the SmartBear MCP each need their own install. Test Framework (bmad-tea-framework) installs the utils packages and owns framework and CI setup. Test Automation (bmad-tea-automate) owns red and expand test generation with run-and-heal enabled by default. Move older CI and ATDD customization files into [workflow.ci] and [workflow.red] with `bmad migrate tea`, or run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root .`. If `bmad setup` cleanup lists bmad-tea-ci or bmad-tea-atdd customizations as unused, run the migration first and keep the cleanup backup until it has run. Ask bmad how to set up the rest.
24
24
  '''
25
25
 
26
26
  # Asked by `bmad setup` in this order. Members read each answer as modules.tea.<key>.
@@ -20,15 +20,16 @@ For a release gate, the order is: `bmad-tea-test-review` (optional), `bmad-tea-n
20
20
 
21
21
  TEA works on its own. When the method module is installed too, these routes add testing to its flow. Name a method skill only when it is installed, and a TEA skill only when it is installed; otherwise give the route without the missing step, and say which TEA skill would fill it once installed. Depth follows risk: a small, low-risk change needs none of this beyond the checks its build runs.
22
22
 
23
- | The user is | Recommend | Because |
24
- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
25
- | Planning an initiative whose risk, compliance or reach calls for a test strategy | `bmad-tea-test-design` at system level, once the PRD and architecture exist | Testability concerns reach the architecture while it can still change. |
26
- | About to build the stories of an epic | `bmad-tea-test-design` at epic level, then `bmad-tea-framework` when the project has no test framework | The epic's plan sets priorities for every story in it. |
27
- | About to build one story with settled criteria, and wants test-first work | `bmad-tea-automate` in red mode, then `bmad-build` | The builder turns the red tests green; the checklist lists them for the story's plan. Red mode takes the story's ref (`1.2`), its title, or its leaf file, and reads the ticket through the method's ticket tools; on v6 it takes the story file. |
28
- | Done with `bmad-build` and wants a maintained test suite for the work | `bmad-tea-automate` in expand mode | It writes tests that follow the project's framework and fixtures, runs them, and heals test defects. `bmad-qa-generate-e2e-tests` remains the fit for a quick, one-off set of end-to-end tests. |
29
- | Upgraded a v6 project with `bmad migrate method` and has TEA checklists, matrices or reports from before | `bmad migrate tea`, after the method migration | It moves each story output onto its v7 ticket's key from exact evidence, keeps historical citations, and lists anything it cannot map. |
30
- | Has tests whose quality is in doubt | `bmad-tea-test-review` | A scored audit names the flaky, slow or weak tests. |
31
- | Closing an epic or preparing a release | The release-gate order above | Trace gives the gate decision; Test Review and NFR are added when risk calls for them. |
23
+ | The user is | Recommend | Because |
24
+ | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
25
+ | Planning an initiative whose risk, compliance or reach calls for a test strategy | `bmad-tea-test-design` at system level, once the PRD and architecture exist | Testability concerns reach the architecture while it can still change. |
26
+ | About to build the stories of an epic | `bmad-tea-test-design` at epic level, then `bmad-tea-framework` when the project has no test framework | The epic's plan sets priorities for every story in it. |
27
+ | About to build one story with settled criteria, and wants test-first work | `bmad-tea-automate` in red mode, then `bmad-build` | The builder turns the red tests green; the checklist lists them for the story's plan. Red mode takes the story's ref (`1.2`), its title, or its leaf file, and reads the ticket through the method's ticket tools; on v6 it takes the story file. |
28
+ | Done with `bmad-build` and wants a maintained test suite for the work | `bmad-tea-automate` in expand mode | It writes tests that follow the project's framework and fixtures, runs them, and heals test defects. `bmad-qa-generate-e2e-tests` remains the fit for a quick, one-off set of end-to-end tests. |
29
+ | Upgraded a v6 project with `bmad migrate method` and has TEA checklists, matrices or reports from before | `bmad migrate tea`, after the method migration | It moves each story output onto its v7 ticket's key from exact evidence, keeps historical citations, and lists anything it cannot map. |
30
+ | Has `bmad-tea-atdd` or `bmad-tea-ci` customizations, or `bmad setup` cleanup listed them as unused | `bmad migrate tea` (migration 3), before cleanup when you can | It moves red settings into `[workflow.red]` of `bmad-tea-automate.toml` and CI settings into `[workflow.ci]` of `bmad-tea-framework.toml`, reading the cleanup backup when cleanup already removed a file. Keep the `.v6-v7-migration-backup-*` folder until it has run. |
31
+ | Has tests whose quality is in doubt | `bmad-tea-test-review` | A scored audit names the flaky, slow or weak tests. |
32
+ | Closing an epic or preparing a release | The release-gate order above | Trace gives the gate decision; Test Review and NFR are added when risk calls for them. |
32
33
 
33
34
  The story's status is never TEA's to change. Red mode hands its tests to the builder, the builder records the work in the story's plan, and the user or an orchestrator marks the ticket done.
34
35
 
@@ -188,7 +188,7 @@ tags:
188
188
 
189
189
  - Subflows are the mobile equivalent of a fixture: one owner, many consumers
190
190
  - Pass data through `env` rather than baking values into the subflow
191
- - Keep subflows in a dedicated directory so a flow-count metric does not treat them as tests
191
+ - Keep reusable subflows in a `subflows/` directory so a flow-count metric can distinguish them from tests. The write-time hook exempts that exact directory from C4 assertion-presence checks and still enforces hard waits and other applicable rules. Calling test flows must assert the destination state.
192
192
 
193
193
  ### Example 5: Conditional and Platform-Specific Steps
194
194
 
@@ -18,7 +18,7 @@ A project with none of those signals, whose merged `[modules.tea]` holds only su
18
18
  # The state every rule below moves toward.
19
19
  target = """
20
20
  - `_bmad/config.toml` `[modules.tea]` uses these supported keys: `test_artifacts`, `tea_use_playwright_utils`, `tea_use_pactjs_utils`, `tea_pact_mcp`, `tea_browser_automation`, `tea_execution_mode`, `tea_capability_probe`, `test_stack_type`, `test_framework`, `auto_validate`, `auto_heal_failures`, `max_healing_iterations`, `use_mcp_healing`. Every stored value is a string; v6 booleans (`true`, `false`) become `"true"` and `"false"`. Omitted healing options keep their runtime defaults: `auto_validate = "true"`, `auto_heal_failures = "true"`, `max_healing_iterations = "3"`, and `use_mcp_healing = "true"`.
21
- - A v6 `ci_platform` other than `auto` lives in `_bmad/custom/bmad-tea-ci.toml` as `ci_platform = "<value>"` under `[workflow]`.
21
+ - A v6 `ci_platform` other than `auto` lives in `_bmad/custom/bmad-tea-framework.toml` as `ci_platform = "<value>"` under `[workflow.ci]`.
22
22
  - A v6 `tea_evaluations_folder` other than `evals` lives in `_bmad/custom/bmad-tea-evaluate.toml` as `evaluations_folder = "<folder>"` under `[workflow]`, relative to the project root.
23
23
  - `risk_threshold`, `test_design_output`, `test_review_output` and `trace_output` are gone; no skill reads them.
24
24
  - `_bmad/tea/config.yaml`, `_bmad/tea/module-help.csv` and any classic-installer copies of TEA's agents or workflows under `_bmad/tea/` are removed, so the CLI and the skills read only the v7 install.
@@ -26,9 +26,9 @@ target = """
26
26
 
27
27
  precautions = """
28
28
  - Read before writing. Show the user the plan (each key and where it goes) and wait for approval.
29
- - Edit only the `[modules.tea]` tables of `_bmad/config.toml`, `_bmad/custom/config.toml` and `_bmad/custom/config.user.toml`, and the two customization files `_bmad/custom/bmad-tea-ci.toml` and `_bmad/custom/bmad-tea-evaluate.toml`. Keep every other table, key and comment in those files as it is, and merge into a customization file that already exists instead of replacing it.
29
+ - Edit only the `[modules.tea]` tables of `_bmad/config.toml`, `_bmad/custom/config.toml` and `_bmad/custom/config.user.toml`, and the two customization files `_bmad/custom/bmad-tea-framework.toml` and `_bmad/custom/bmad-tea-evaluate.toml`. Keep every other table, key and comment in those files as it is, and merge into a customization file that already exists instead of replacing it.
30
30
  - Never delete a file outside version control. Removing the leftovers is a commit the user chooses; offer it and stop there.
31
- - Preserve `_bmad/custom/bmad-testarch-atdd.toml`, `_bmad/custom/bmad-testarch-atdd.user.toml`, `_bmad/custom/bmad-testarch-automate.toml` and `_bmad/custom/bmad-testarch-automate.user.toml` until `tea-migrate-customizations` moves them. The combined skill resolves the selected mode's customizations.
31
+ - Preserve `_bmad/custom/bmad-testarch-atdd.toml` and `_bmad/custom/bmad-testarch-atdd.user.toml` until `bmad migrate tea` (migration-3) or `tea-migrate-customizations` moves their settings into `[workflow.red]` of `bmad-tea-automate.toml`. The combined skill reads red settings only from that table. Preserve `_bmad/custom/bmad-testarch-automate.toml` and `_bmad/custom/bmad-testarch-automate.user.toml` (expand mode) until `tea-migrate-customizations` renames them to `bmad-tea-automate.toml` and `bmad-tea-automate.user.toml` with `[workflow]` unchanged; migration-3 does not rename them, and their settings never go into `[workflow.red]`.
32
32
  - Never run `bmad setup` from inside this migration; it owns the rest of `_bmad/`. When `[modules.tea]` is missing from every layer, stop and tell the user to run `bmad setup tea` first and to run this migration again afterwards.
33
33
  """
34
34
 
@@ -39,7 +39,7 @@ guide = """
39
39
  | v6 key | v7 destination |
40
40
  |---|---|
41
41
  | `test_artifacts`, `tea_use_playwright_utils`, `tea_use_pactjs_utils`, `tea_pact_mcp`, `tea_browser_automation`, `tea_execution_mode`, `tea_capability_probe`, `test_stack_type`, `test_framework`, `auto_validate`, `auto_heal_failures`, `max_healing_iterations`, `use_mcp_healing` | stays in `[modules.tea]` of the layer that holds it, written as strings |
42
- | `ci_platform` | `_bmad/custom/bmad-tea-ci.toml`, `[workflow]` `ci_platform`, only when the effective value is not `auto`; removed from every `[modules.tea]` layer |
42
+ | `ci_platform` | `_bmad/custom/bmad-tea-framework.toml`, `[workflow.ci]` `ci_platform`, only when the effective value is not `auto`; removed from every `[modules.tea]` layer |
43
43
  | `tea_evaluations_folder` | `_bmad/custom/bmad-tea-evaluate.toml`, `[workflow]` `evaluations_folder`, only when the effective value is not `evals`; strip a leading `{project-root}/` when the value has one; removed from every `[modules.tea]` layer |
44
44
  | `risk_threshold`, `test_design_output`, `test_review_output`, `trace_output` | removed from every `[modules.tea]` layer |
45
45
  | any other key | ask the user; it is not a TEA setting v7 reads |
@@ -48,16 +48,16 @@ guide = """
48
48
  3. **Answers recorded only in `config.yaml`.** `bmad setup tea` writes the defaults it is given, so a project that had only a `_bmad/tea/config.yaml` can hold its v6 answers there while `[modules.tea]` holds defaults. For each of the thirteen kept keys where `config.yaml` differs from the effective `[modules.tea]` value and the effective value equals the default in `bmod.toml`, add a plan row that restores the `config.yaml` value in `_bmad/config.toml`. Show these rows apart from the rest and apply each only on approval; a value the user already changed from the default is never overwritten.
49
49
  4. **Apply the approved plan.** Rewrite the `[modules.tea]` values that are not strings, remove the keys the plan moves or drops from every layer that holds them, and write the two customization files. Create `_bmad/custom/` entries only for values that differ from the defaults named above.
50
50
  5. **Leftovers.** Offer to remove the candidates from step 2 as one commit. A `config.yaml` left beside `_bmad/config.toml` is ignored by the skills and read only by `tea-test-review` when `_bmad/config.toml` does not exist, so it is harmless but misleading, and this migration is offered again while it exists. Say so. On a rerun, offer the removal again and show a step 3 row only while its two values still differ.
51
- 6. **Report.** Give the user the final `[modules.tea]` table, the two customization files that were written, and the leftovers that remain. Run `npx --package=bmad-method-test-architecture-enterprise@3 tea-migrate-customizations --project-root .` to move any other pre-3.0 customization filenames. Resolve a reported old/new value conflict before rerunning it.
51
+ 6. **Report.** Give the user the final `[modules.tea]` table, the two customization files that were written, and the leftovers that remain. Run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root .` to move any other pre-3.0 customization filenames. Resolve a reported old/new value conflict before rerunning it.
52
52
  """
53
53
 
54
54
  checklist = [
55
55
  "The merged `[modules.tea]` (`_bmad/config.toml` with the custom layers) holds only the thirteen supported v7 keys, each stored value a string; omitted healing options use the shipped defaults.",
56
- "A non-default v6 `ci_platform` is `ci_platform` under `[workflow]` in `_bmad/custom/bmad-tea-ci.toml`.",
56
+ "A non-default v6 `ci_platform` is `ci_platform` under `[workflow.ci]` in `_bmad/custom/bmad-tea-framework.toml`.",
57
57
  "A non-default v6 `tea_evaluations_folder` is `evaluations_folder` under `[workflow]` in `_bmad/custom/bmad-tea-evaluate.toml`, without the `{project-root}/` prefix.",
58
58
  "`risk_threshold`, `test_design_output`, `test_review_output` and `trace_output` are in no `[modules.tea]` layer.",
59
59
  "`ci_platform` and `tea_evaluations_folder` are in no `[modules.tea]` layer.",
60
60
  "`uv run _bmad/scripts/resolve_config.py --project-root . --key modules.tea` prints only supported v7 keys; omitted healing options use the shipped defaults.",
61
- "`uv run _bmad/scripts/resolve_customization.py --skill <evaluate-skill-root> --project-root . --key workflow` prints the migrated Evaluate value; Framework CI scope merges `_bmad/custom/bmad-tea-ci.toml` and its user layer to read the migrated CI value.",
61
+ "`uv run _bmad/scripts/resolve_customization.py --skill <evaluate-skill-root> --project-root . --key workflow` prints the migrated Evaluate value; `--skill <framework-skill-root> --key workflow.ci` prints the migrated CI value.",
62
62
  "Every file the plan listed for removal is either removed in the commit the user chose or reported as still present.",
63
63
  ]
@@ -0,0 +1,50 @@
1
+ # TEA's third migration: the red-mode and CI customization surfaces move into the skills that own them, and personal settings move to the file core merges. `bmad migrate` runs a module's `migration-<n>.toml` files in `<n>` order.
2
+
3
+ [migration]
4
+ module = "tea"
5
+ from = "3 with separate atdd and ci customization files"
6
+ to = "3 with [workflow.red] and [workflow.ci] tables"
7
+ title = "Move TEA red and CI customizations into their owning skills"
8
+ summary = "Moves the settings of bmad-tea-atdd into [workflow.red] of bmad-tea-automate.toml and those of bmad-tea-ci into [workflow.ci] of bmad-tea-framework.toml, team and user layers separately, reading live files first and cleanup backups when `bmad setup` already removed a file. Also offers to move [modules.tea] keys of the legacy _bmad/config.user.toml that neither custom layer holds into _bmad/custom/config.user.toml. Nothing is overwritten without your choice."
9
+
10
+ # Read-only signals. Any one of them makes this migration worth offering.
11
+ detect = """
12
+ - `{project-root}/_bmad/custom/` holds `bmad-tea-atdd.toml`, `bmad-tea-atdd.user.toml`, `bmad-tea-ci.toml`, `bmad-tea-ci.user.toml`, `bmad-testarch-atdd.toml`, `bmad-testarch-atdd.user.toml`, `bmad-testarch-ci.toml` or `bmad-testarch-ci.user.toml`.
13
+ - `bmad-tea-framework.toml` or `bmad-tea-framework.user.toml` in `{project-root}/_bmad/custom/` holds `ci_platform` directly under `[workflow]`.
14
+ - A `{project-root}/.v6-v7-migration-backup-*/_bmad/custom/` folder holds one of the files above, or a pre-3.0 `bmad-testarch-<skill>.toml` or `.user.toml` file, and the live `_bmad/custom/` holds neither that file nor its `bmad-tea-*` successor. `bmad setup` cleanup lists these files as unused customizations and deletes them, so a backup can be the only copy left.
15
+ - `{project-root}/_bmad/config.user.toml` exists with a `[modules.tea]` table, live or only as `{project-root}/.v6-v7-migration-backup-*/_bmad/config.user.toml`. Core no longer merges this file. It ranked above `_bmad/config.toml` and below `_bmad/custom/config.toml` and `_bmad/custom/config.user.toml`, so a key is ignored when neither custom file holds it, even if `_bmad/config.toml` sets the same key.
16
+ A project with none of those signals, or one whose plan below is already complete, is migrated; say so and stop.
17
+ """
18
+
19
+ target = """
20
+ - Red-mode settings are `[workflow.red]` in `_bmad/custom/bmad-tea-automate.toml` (team) and `bmad-tea-automate.user.toml` (user). CI settings, `ci_platform` included, are `[workflow.ci]` in `bmad-tea-framework.toml` and `bmad-tea-framework.user.toml`.
21
+ - No `bmad-tea-atdd`, `bmad-tea-ci`, `bmad-testarch-atdd` or `bmad-testarch-ci` file remains in `_bmad/custom/` once its content is verified in the target. `ci_platform` is no longer a key of `[workflow]` in the framework files.
22
+ - Every `[modules.tea]` key of `_bmad/config.user.toml` that neither custom file holds lives in `_bmad/custom/config.user.toml`, where it keeps its precedence over `_bmad/config.toml`.
23
+ """
24
+
25
+ precautions = """
26
+ - Read before writing. Show the user the plan with each source, its provenance and its destination, and wait for approval.
27
+ - Source order: the live `_bmad/custom/` file first. When a live file is absent, search every `.v6-v7-migration-backup-*/_bmad/custom/` folder that actually contains that exact file; the newest containing copy wins, and a newer backup made after the removal does not hide an older one that has the file. Never modify or delete a backup.
28
+ - Team (`.toml`) and user (`.user.toml`) layers map separately: atdd team to automate team, atdd user to automate user, ci team to framework team, ci user to framework user.
29
+ - A key already present in the target with a different value, or differing values for one key across candidate sources, is a conflict. Show both values and each side's provenance and let the user choose; overwrite nothing without that choice. A headless run stops on a conflict.
30
+ - Remove an old live file only after the target write is re-read and verified. When both an old file and the target exist and differ, keep both and report the conflict.
31
+ - Keep every other table, key and comment in the target files as it is, and merge into a file that already exists instead of replacing it.
32
+ - Run `npx --package=bmad-method-test-architecture-enterprise@4 tea-migrate-customizations --project-root .` for the file moves as a script, with the same source order and conflict rules; it stops on a conflict and changes nothing, and `--keep-existing` keeps the existing value where a backup differs. It records what it restored in `_bmad/custom/.tea-customization-migration.json`, so a rerun is quiet. It does not move `_bmad/config.user.toml` keys; it reports them as not migrated, and this migration moves them.
33
+ """
34
+
35
+ guide = """
36
+ 1. **Inventory.** List, per layer (team, user) and surface (red from atdd, CI from ci), every candidate source: the live files named in the detect signals, and for each absent live file the newest backup folder that contains it. Record each source's provenance (`live` or the backup folder). Add framework override files that set `ci_platform` directly under `[workflow]`. Add every `[modules.tea]` key of `_bmad/config.user.toml`, live or from the newest backup that contains it. The old core order was `_bmad/config.toml`, `_bmad/config.user.toml`, `_bmad/custom/config.toml`, `_bmad/custom/config.user.toml`, later files winning. A personal override is a candidate when neither `_bmad/custom/config.toml` nor `_bmad/custom/config.user.toml` holds the key, because only those two layers outranked it. `_bmad/config.toml` is ignored in that comparison, so a key it sets to a different value is still a candidate; show both values and their files. A key that either custom file holds is not a candidate, because the custom value already won before the change.
37
+ 2. **Plan.** Build one row per moved table or key: source file and provenance, destination file and table, and the status (`new`, `same value already present`, `conflict`). Show each conflict with both values. Retired v6 names (`bmad-testarch-atdd`, `bmad-testarch-ci`) are sources too, read before any content rewrite. Wait for approval, and for the user's choice on each conflict. For a `_bmad/config.user.toml` key that `_bmad/config.toml` sets to a different value, report both values and their files, and move the legacy value unless the user keeps the `_bmad/config.toml` one.
38
+ 3. **Apply.** For each approved row write the destination, preserving the source text (comments and order) and rewriting `[workflow]` to `[workflow.red]` or `[workflow.ci]`. Re-read and parse the destination to verify it holds every moved key, then remove the old live file. Move a top-level `ci_platform` into `[workflow.ci]` of the same framework file. Move approved legacy `config.user.toml` keys into `[modules.tea]` of `_bmad/custom/config.user.toml`. A backup source is only read.
39
+ 4. **Resume.** A rerun recomputes the plan from disk: a source whose content is fully present in its destination changes nothing, and an interrupted run continues from the files that remain. Record each key or file restored from a backup, and each backup value the user chose to leave out, in the plan (the script uses `_bmad/custom/.tea-customization-migration.json`); a recorded item is never a conflict again, so a destination the user edited after migrating stays quiet. An unrecorded backup value that differs from the destination is a conflict.
40
+ 5. **Report.** Show the destination tables, the files removed, any conflicts left for the user and the files that remain.
41
+ """
42
+
43
+ checklist = [
44
+ "No `bmad-tea-atdd`, `bmad-tea-ci`, `bmad-testarch-atdd` or `bmad-testarch-ci` file remains in `_bmad/custom/`, or each remaining one is reported with its conflict.",
45
+ "`uv run _bmad/scripts/resolve_customization.py --skill <automate-skill-root> --project-root . --key workflow.red` prints the migrated red settings.",
46
+ "`uv run _bmad/scripts/resolve_customization.py --skill <framework-skill-root> --project-root . --key workflow.ci` prints the migrated CI settings, `ci_platform` included.",
47
+ "`[workflow]` of the framework override files holds no `ci_platform`.",
48
+ "Every `[modules.tea]` key of `_bmad/config.user.toml` that neither custom file holds is in `_bmad/custom/config.user.toml`, or the user kept the canonical value.",
49
+ "A second run changes nothing.",
50
+ ]
@@ -0,0 +1,13 @@
1
+ # Skills the tea module no longer ships under these names. `bmad setup` offers to delete any still installed and
2
+ # moves a renamed skill's `_bmad/custom/` files to the new name. A retired name is never reused.
3
+ renamed = [
4
+ { from = "bmad-testarch-automate", to = "bmad-tea-automate" },
5
+ { from = "bmad-testarch-evaluate", to = "bmad-tea-evaluate" },
6
+ { from = "bmad-testarch-framework", to = "bmad-tea-framework" },
7
+ { from = "bmad-testarch-nfr", to = "bmad-tea-nfr" },
8
+ { from = "bmad-testarch-test-design", to = "bmad-tea-test-design" },
9
+ { from = "bmad-testarch-test-review", to = "bmad-tea-test-review" },
10
+ { from = "bmad-testarch-trace", to = "bmad-tea-trace" },
11
+ { from = "bmad-teach-me-testing", to = "bmad-tea-teach-me-testing" },
12
+ ]
13
+ removed = ["bmad-testarch-atdd", "bmad-testarch-ci"]
@@ -1,38 +0,0 @@
1
- # DO NOT EDIT -- overwritten on every update.
2
- #
3
- # Workflow customization surface for bmad-tea-atdd. Mirrors the
4
- # agent customization shape under the [workflow] namespace.
5
-
6
- [workflow]
7
-
8
- # --- Configurable below. Overrides merge per BMad structural rules: ---
9
- # scalars: override wins • arrays (persistent_facts, activation_steps_*): append
10
-
11
- # Steps to run before the standard activation (config load, greet).
12
- # Overrides append. Use for pre-flight loads, compliance checks, etc.
13
-
14
- activation_steps_prepend = []
15
-
16
- # Steps to run after greet but before the workflow begins.
17
- # Overrides append. Use for context-heavy setup that should happen
18
- # once the user has been acknowledged.
19
-
20
- activation_steps_append = []
21
-
22
- # Persistent facts the workflow keeps in mind for the whole run
23
- # (testing standards, framework conventions, compliance constraints).
24
- # Distinct from the runtime memory sidecar — these are static context
25
- # loaded on activation. Overrides append.
26
- #
27
- # Each entry is either:
28
- # - a literal sentence, e.g. "Every test must run deterministically in CI."
29
- # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/test-standards.md"
30
- # (glob patterns are supported; matching files load in lexical path order as facts).
31
-
32
- persistent_facts = []
33
-
34
- # Scalar: executed when the workflow reaches its terminal step in any
35
- # mode (create, validate, edit), after the final outputs are produced.
36
- # Override wins. Leave empty for no custom post-completion behavior.
37
-
38
- on_complete = ""
@@ -1,10 +0,0 @@
1
- # DO NOT EDIT -- overwritten on every update.
2
- # CI scope defaults for bmad-tea-framework. Project overrides live in
3
- # _bmad/custom/bmad-tea-ci.toml and bmad-tea-ci.user.toml.
4
-
5
- [workflow]
6
- activation_steps_prepend = []
7
- activation_steps_append = []
8
- persistent_facts = []
9
- on_complete = ""
10
- ci_platform = "auto"