bmad-method-test-architecture-enterprise 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/cli/lib/evaluate/test-design-replay.js +3 -2
- package/package.json +2 -2
- package/skills/bmad-tea-automate/SKILL.md +1 -0
- package/skills/bmad-tea-automate/red/atdd-checklist-template.md +7 -2
- package/skills/bmad-tea-automate/red/checklist.md +1 -1
- package/skills/bmad-tea-automate/red/resources/atdd-checklist-2-4-guest-checkout.example.md +5 -2
- package/skills/bmad-tea-automate/red/steps-c/step-01-preflight-and-context.md +12 -14
- package/skills/bmad-tea-automate/red/steps-c/step-01b-resume.md +4 -2
- package/skills/bmad-tea-automate/red/steps-c/step-04c-aggregate.md +7 -5
- package/skills/bmad-tea-automate/red/steps-c/step-05-validate-and-complete.md +5 -3
- package/skills/bmad-tea-automate/steps-c/step-01-preflight-and-context.md +4 -2
- package/skills/bmad-tea-automate/steps-c/step-01b-resume.md +2 -0
- package/skills/bmad-tea-automate/steps-c/step-02-identify-targets.md +1 -1
- package/skills/bmad-tea-evaluate/references/ci.md +2 -2
- package/skills/bmad-tea-framework/resources/framework-setup-progress.example.md +1 -1
- package/skills/bmad-tea-framework/resources/hooks/tea-enforce.cjs +295 -39
- package/skills/bmad-tea-framework/steps-c/step-04-docs-and-scripts.md +2 -2
- package/skills/bmad-tea-nfr/SKILL.md +1 -0
- package/skills/bmad-tea-nfr/steps-c/step-01-load-context.md +4 -2
- package/skills/bmad-tea-nfr/steps-c/step-01b-resume.md +2 -0
- package/skills/bmad-tea-test-design/checklist.md +39 -8
- package/skills/bmad-tea-test-design/steps-c/step-01-detect-mode.md +4 -1
- package/skills/bmad-tea-test-design/steps-c/step-03-risk-and-testability.md +1 -1
- package/skills/bmad-tea-test-design/steps-c/step-04-coverage-plan.md +10 -3
- package/skills/bmad-tea-test-design/steps-c/step-05-generate-output.md +69 -21
- package/skills/bmad-tea-test-design/steps-e/step-02-apply-edit.md +3 -0
- package/skills/bmad-tea-test-design/steps-v/step-01-validate.md +1 -0
- package/skills/bmad-tea-test-design/test-design-qa-template.md +1 -1
- package/skills/bmad-tea-test-review/SKILL.md +2 -1
- package/skills/bmad-tea-test-review/steps-c/step-01-load-context.md +7 -4
- package/skills/bmad-tea-test-review/steps-c/step-01b-resume.md +2 -0
- package/skills/bmad-tea-trace/SKILL.md +1 -0
- package/skills/bmad-tea-trace/steps-c/step-01-load-context.md +6 -4
- package/skills/bmad-tea-trace/steps-c/step-01b-resume.md +2 -0
- package/skills/bmod-tea/bmod.toml +1 -1
- package/skills/bmod-tea/contracts/story-identity.md +77 -0
- package/skills/bmod-tea/help/help.md +38 -6
- package/skills/bmod-tea/migration-2.toml +100 -0
|
@@ -55,6 +55,8 @@ Use explicit intent if the user already indicates scope:
|
|
|
55
55
|
- **Epic + Stories (no PRD/ADR)** → **Epic-Level Mode**
|
|
56
56
|
- **Both PRD/ADR + Epic/Stories** → Prefer **System-Level Mode** first
|
|
57
57
|
|
|
58
|
+
An explicit system- or epic-level request decides the mode here, and section B does not run, so its preview-layout halt does not apply. When the active initiative is in the preview layout (defined in section B), mention that `bmad migrate` moves its breakdown into `tickets/`, and continue in the requested mode.
|
|
59
|
+
|
|
58
60
|
If intent is unclear, ask:
|
|
59
61
|
|
|
60
62
|
> "Should I create (A) **System-level** test design (PRD + ADR → Architecture + QA docs), or (B) **Epic-level** test design (Epic → single test plan)?"
|
|
@@ -63,11 +65,12 @@ If intent is unclear, ask:
|
|
|
63
65
|
|
|
64
66
|
If user intent is unclear:
|
|
65
67
|
|
|
68
|
+
- If an initiative is active and its folder is in the preview layout (below) → tell the user to run `bmad migrate`, which moves the breakdown into `tickets/`, and to rerun Test Design afterwards. **Halt** without choosing a mode.
|
|
66
69
|
- If an initiative is active and its ticket tree holds an epic → **Epic-Level Mode**
|
|
67
70
|
- Otherwise, on a v6 project, if `{implementation_artifacts}/sprint-status.yaml` exists → **Epic-Level Mode**
|
|
68
71
|
- Otherwise → **System-Level Mode**
|
|
69
72
|
|
|
70
|
-
The active initiative and the output folder belong to BMad core, not TEA's config. Read them with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder --key core.active_initiative`. When `core.active_initiative` is set, the initiative folder is `{output_folder}/{active_initiative}
|
|
73
|
+
The active initiative and the output folder belong to BMad core, not TEA's config. Read them with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core.output_folder --key core.active_initiative`. When `core.active_initiative` is set, the initiative folder is `{output_folder}/{active_initiative}/`. It holds an epic when `tickets/tickets.toml` inside it has an `[[epic]]` table or a `tickets/epic-*/` folder exists. It is in the preview layout when a `tickets.toml`, an `epic-*/` folder, a `story-*.md`, `spike-*.md` or `bug-*.md` leaf file, or a `*-plan.md` plan sits directly in the initiative folder, with or without a `tickets/` folder beside it; BMad's ticket tools refuse that layout until it is migrated.
|
|
71
74
|
|
|
72
75
|
`{implementation_artifacts}` exists only on a v6 project and is a BMM setting that TEA's config does not define. Read `modules.bmm.implementation_artifacts` with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key modules.bmm.implementation_artifacts`. When it is not set, use `{output_folder}/implementation-artifacts`; a v7 project has no such key, so a missing sprint-status file there means System-Level Mode.
|
|
73
76
|
|
|
@@ -72,7 +72,7 @@ Using `risk-governance.md` and `probability-impact.md` (if loaded):
|
|
|
72
72
|
- Preserve the risk table columns `Risk ID`, `Category`, `Description`, `Probability`, `Impact`, and `Score`. Add a separate source-evidence column when useful. State the failure consequence in `Description` and cite the supporting input.
|
|
73
73
|
- Open each `Description` with the source statement's own key words for the gap, such as the verbs and nouns the epic uses for the missing control, the unsafe behavior, or the unmet target, then state the consequence. A reader searching the epic for those words finds the row.
|
|
74
74
|
- Give every risk table the header its band has in the template. The delimiter row and every body row carry exactly as many cells as that header. Put owner and timeline text inside the `Mitigation` or `Action` cell when the band's header has no column for them.
|
|
75
|
-
- Assign unique canonical IDs `R-001`, `R-002`, and so on. Preserve those IDs in coverage, mitigations, summaries, and handoffs. Keep epic or story identity in the document run key.
|
|
75
|
+
- Assign unique canonical IDs `R-001`, `R-002`, and so on, numbered in the order the risks' gap statements first appear in the supplied sources. Read the sources in the order step 2 lists them for the mode, and each source from top to bottom. A merged risk takes the position of its earliest statement. Residual risks, registered when no gap statement exists, are numbered in story order. Within each band table, list rows in ID order. Preserve those IDs in coverage, mitigations, summaries, and handoffs. Keep epic or story identity in the document run key.
|
|
76
76
|
- Preserve explicit score ranges in risk-band headings: high score 6 or greater, medium score 3 to 4, and low score 1 to 2. For a band with no identified risk, state that absence outside the table and leave its table body empty.
|
|
77
77
|
- Classify by category: TECH / SEC / PERF / DATA / BUS / OPS
|
|
78
78
|
- Score Probability (1–3) and Impact (1–3)
|
|
@@ -47,19 +47,26 @@ For each requirement or risk-driven scenario:
|
|
|
47
47
|
- Map NFR-derived risks to planned validation scenarios and evidence sources
|
|
48
48
|
- Use the exact `Risk ID` assigned in the risk register in every `Risk Link` cell. A prose description alone is not a traceable mapping.
|
|
49
49
|
- Each `Test Level` cell contains exactly one canonical value: E2E, API, Component, Integration, or Unit. Put performance, operational, device, and other qualifiers in scenario descriptions or notes.
|
|
50
|
-
- Give every scored risk exactly one risk-linked coverage row, and give it the single test level where the failure first becomes observable. The failure crosses no boundary: Unit. It lives in one rendered interface unit: Component. It crosses one owned store, queue, file, or event boundary: Integration. It crosses the HTTP or contract boundary of one service: API. It spans two or more deployables, a user journey, or a deadline measured on real devices: E2E.
|
|
50
|
+
- Give every scored risk exactly one risk-linked coverage row, and give it the single test level where the failure first becomes observable. The failure crosses no boundary: Unit. It lives in one rendered interface unit: Component. It crosses one owned store, queue, file, or event boundary: Integration. It crosses the HTTP or contract boundary of one service: API. It spans two or more deployables, a user journey, or a deadline measured on real devices: E2E. When the mechanism fits more than one description, settle the level with these rules:
|
|
51
|
+
- Use the boundary of the component that lacks the control or behaves unsafely. The system whose response triggers the failure does not set the level.
|
|
52
|
+
- Classify the failure as the sources describe it today, with the components they name. A mitigation component the sources do not name, such as a new configuration value or a policy extracted for testing, does not set the level.
|
|
53
|
+
- For an absent control, take the level of the behavior that control would govern, as the sources describe that behavior. Absence of a control does not by itself make a risk Unit.
|
|
54
|
+
- A missing release, rollout, or disable control for a build that users install, such as a mobile or desktop app, spans the shipped build and the system that would switch it: E2E. A switch read inside one service takes that service's boundary.
|
|
55
|
+
|
|
56
|
+
Name the risk's mechanism, the boundary it crosses, and the resulting level in the row notes. Record the individual scenarios in the row's `Notes` and their number in `Test Count`; do not add a second row for the same risk. Rows that cover no scored risk use `-` in `Risk Link`.
|
|
57
|
+
|
|
51
58
|
- Place a risk's row under the one priority heading that matches its consequence. A risk never appears under two priority headings.
|
|
52
59
|
|
|
53
60
|
**Priority rules:** decide each priority on business impact, user reach, and workaround
|
|
54
61
|
availability. Risk score is supporting evidence and is not a required condition for any priority.
|
|
55
|
-
Walk the Priority Decision Tree in `test-priorities-matrix.md` for each scenario.
|
|
62
|
+
Walk the Priority Decision Tree in `test-priorities-matrix.md` for each scenario. Wherever that fragment assigns P0, in its criteria, checklist, decision tree, or example function, the P0 holds only when both P0 conditions below hold; otherwise assign P1 or lower.
|
|
56
63
|
|
|
57
64
|
- P0: Critical business, security, data-integrity, or compliance impact with no safe workaround
|
|
58
65
|
- P1: Core, frequent, or complex behavior with material user reach and a limited workaround
|
|
59
66
|
- P2: Secondary behavior with narrower user reach and an acceptable workaround
|
|
60
67
|
- P3: Rare, cosmetic, or experimental behavior with minimal impact and an easy workaround
|
|
61
68
|
|
|
62
|
-
Record the failure consequence and the source-supported workaround in the primary coverage row's notes. Preserve these four priority criteria in the published plan. Evaluate a performance budget or an operational control through its documented business consequence before assigning its test priority. Assess a workaround against the original failure consequence, before proposed mitigations. A valid workaround preserves essential business operation and resolves the affected state. Pausing the application, leaving a core user action unresolved, or suppressing a symptom needs a source-backed recovery path before it can justify a lower priority. Record the evidence for recoverability; mark it unresolved when the source provides none. Separate an acceptance threshold from the consequence of missing it. For a latency or throughput target, state whether the source establishes a critical business deadline, permanent loss, blocked essential operation, or bounded degradation while work remains recoverable. Record an unstated business consequence as a clarification. Assign P0 when the documented consequence
|
|
69
|
+
Record the failure consequence and the source-supported workaround in the primary coverage row's notes. Preserve these four priority criteria in the published plan. Evaluate a performance budget or an operational control through its documented business consequence before assigning its test priority. Assess a workaround against the original failure consequence, before proposed mitigations. A valid workaround preserves essential business operation and resolves the affected state. Pausing the application, leaving a core user action unresolved, or suppressing a symptom needs a source-backed recovery path before it can justify a lower priority. Record the evidence for recoverability; mark it unresolved when the source provides none. Separate an acceptance threshold from the consequence of missing it. For a latency or throughput target, state whether the source establishes a critical business deadline, permanent loss, blocked essential operation, or bounded degradation while work remains recoverable. Record an unstated business consequence as a clarification. Assign P0 only when both conditions hold: the documented consequence is a critical business, security, data-integrity, or compliance impact, and no safe workaround exists. A missing workaround alone leaves a risk at P1 or lower. Judge each risk on its own documented consequence. A risk whose consequence is that another registered risk's harm lasts longer or reaches more users takes P1 or lower, and the risk that causes the harm carries the P0 scenarios. This does not apply when the sources mandate the missing control itself, or when no registered risk carries the harm the control would limit; judge those on the critical-impact criterion. A release acceptance target can still have P1 coverage when the documented consequence is material degradation. An empty priority band is valid; explain why the planned scenarios belong to the assigned bands. When every primary risk has the same priority, justify how each consequence meets that criterion.
|
|
63
70
|
|
|
64
71
|
---
|
|
65
72
|
|
|
@@ -9,7 +9,7 @@ progressFile: '{test_artifacts}/test-design/test-design-progress-{run_key}.md'
|
|
|
9
9
|
|
|
10
10
|
## STEP GOAL
|
|
11
11
|
|
|
12
|
-
Write the final test-design document(s) using the correct template(s), then validate against the checklist.
|
|
12
|
+
Write the final test-design document(s) using the correct template(s), polish them under the Editorial Contract, then validate the saved outputs against the checklist.
|
|
13
13
|
|
|
14
14
|
## MANDATORY EXECUTION RULES
|
|
15
15
|
|
|
@@ -135,8 +135,53 @@ Epic-level mode remains single-worker by default (one output artifact).
|
|
|
135
135
|
|
|
136
136
|
---
|
|
137
137
|
|
|
138
|
+
## Editorial Contract
|
|
139
|
+
|
|
140
|
+
This contract governs the wording of every Create-mode output: the epic document, both system-level documents, and the handoff. Apply it while populating templates in section 2, and again as the final cleanup in section 4. It needs no separate prompt or extra pass from the user.
|
|
141
|
+
|
|
142
|
+
It edits prose only. Scope, risk scores, priorities, coverage, risk acceptance, and release criteria keep the values steps 3 and 4 decided. When editing exposes a substantive defect, such as a missing scenario, a wrong score, or an unmapped risk, return to the step that owns that decision, fix it there, and carry the fix forward. Never repair it as a wording change.
|
|
143
|
+
|
|
144
|
+
When rules conflict, resolve them in this order: technical correctness and evidence, then the template and parser contracts, then reviewer comprehension, then style.
|
|
145
|
+
|
|
146
|
+
### Writing Rules
|
|
147
|
+
|
|
148
|
+
- Replace filler with a concrete statement, or delete it when no information is lost.
|
|
149
|
+
- State the actor, action, condition, and expected result whenever the sources provide them. When a needed detail is missing, keep the gap visible as `UNKNOWN`, an open assumption, or a clarification item, and leave it unfilled.
|
|
150
|
+
- Use one name per concept. Keep the exact repository names and domain terms the sources use.
|
|
151
|
+
- Put prerequisites, conditions, and warnings before the action they govern.
|
|
152
|
+
- Split an instruction that combines several actions or conditions into separate steps. Keep complete sentences and the context a reader needs; a shorter sentence that loses a condition is a defect.
|
|
153
|
+
- Keep rationale, scenario references, and execution instructions in the template sections that already hold them.
|
|
154
|
+
- Remove promotional claims and vague attribution such as "industry best practice says". Keep citations, and make clear which statements are observed facts, planned checks, assumptions, or unknowns.
|
|
155
|
+
- Write planned verification as planned. A test that has not run never reads as run, verified, or passing.
|
|
156
|
+
|
|
157
|
+
### Protected Content
|
|
158
|
+
|
|
159
|
+
Keep these exact, in meaning and in text, through every edit:
|
|
160
|
+
|
|
161
|
+
- Requirement, risk, and test IDs; requirement-to-test mappings; source links and evidence references; explicit exclusions.
|
|
162
|
+
- Risk category, probability, impact, score, owner, mitigation, and timeline decisions.
|
|
163
|
+
- Test levels and priorities; preconditions, test data, sequence, assertions, negative cases, cleanup, and dependencies.
|
|
164
|
+
- Thresholds, units, comparison operators, timeouts, retry counts, quantifiers, and negations.
|
|
165
|
+
- Assumptions, unknowns, confidence statements, unverified behavior, unresolved owners, and missing acceptance criteria.
|
|
166
|
+
- Literal commands, paths, symbols, code, regular expressions, payloads, Unicode test data, and expected strings.
|
|
167
|
+
- Required filenames, headings, table headers, status values, and handoff keys.
|
|
168
|
+
|
|
169
|
+
Downstream scoring reads the documents by structure, so structure is protected too:
|
|
170
|
+
|
|
171
|
+
- Priority section headings open with `P0`, `P1`, `P2`, or `P3`. Keep that opening when rewording a heading.
|
|
172
|
+
- Risk-band headings state their score range, for example `(Score ≥6)`. Keep the range.
|
|
173
|
+
- A heading that opens or ends with Example or Illustration, a heading that ends with Reference, and a paragraph that opens `Example:`, `Worked example:`, or `Illustration:` mark the tables after them as reference material, and scoring skips them. Never place a scored risk table or coverage table under such a label, and never add such a label above one.
|
|
174
|
+
- Scoring also skips every table inside a blockquote. Keep scored risk and coverage tables out of blockquotes and callouts.
|
|
175
|
+
- Keep the canonical risk and coverage column names from the templates.
|
|
176
|
+
|
|
177
|
+
This contract sets no banned-word or punctuation list. Terms such as test harness and test vector can be exact technical language. A reusable safety requirement stays even when it also applies to other projects. Keep uncertainty wherever the sources are uncertain. Keep every required document; the system-level pair stays two documents.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
138
181
|
## 2. Populate Templates
|
|
139
182
|
|
|
183
|
+
Write each output with the Editorial Contract applied from the start.
|
|
184
|
+
|
|
140
185
|
Ensure the outputs include:
|
|
141
186
|
|
|
142
187
|
- Risk assessment matrix
|
|
@@ -150,19 +195,7 @@ Ensure the outputs include:
|
|
|
150
195
|
|
|
151
196
|
---
|
|
152
197
|
|
|
153
|
-
## 3.
|
|
154
|
-
|
|
155
|
-
Validate the output(s) against:
|
|
156
|
-
|
|
157
|
-
- `checklist.md` in this workflow folder
|
|
158
|
-
- [ ] CLI sessions cleaned up (no orphaned browsers)
|
|
159
|
-
- [ ] Temp artifacts stored under `{test_artifacts}/test-design/`
|
|
160
|
-
|
|
161
|
-
If any checklist criteria are missing, fix before completion.
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
## 4. Generate BMAD Handoff Document (System-Level Mode Only)
|
|
198
|
+
## 3. Generate BMAD Handoff Document (System-Level Mode Only)
|
|
166
199
|
|
|
167
200
|
**If this is a system-level test design** (not component/feature level):
|
|
168
201
|
|
|
@@ -178,15 +211,30 @@ If any checklist criteria are missing, fix before completion.
|
|
|
178
211
|
|
|
179
212
|
---
|
|
180
213
|
|
|
181
|
-
##
|
|
214
|
+
## 4. Polish Output
|
|
215
|
+
|
|
216
|
+
Review every output saved so far, including the handoff in system-level mode, and finish all edits before section 5:
|
|
217
|
+
|
|
218
|
+
1. **Apply the Editorial Contract**: Make the final wording pass. Compare each edited passage with its draft and confirm the Protected Content is unchanged.
|
|
219
|
+
2. **Remove duplication**: Progressive-append workflow may have created repeated sections — consolidate
|
|
220
|
+
3. **Verify consistency**: Ensure terminology, risk scores, and references are consistent throughout, and that the handoff carries the same risk IDs, scores, and priorities as the test design
|
|
221
|
+
4. **Check completeness**: All template sections should be populated or explicitly marked N/A
|
|
222
|
+
5. **Table schema**: Preserve the canonical risk and coverage column names from the templates. Verify every scored risk has one unique `R-<three digits>` ID, every coverage link preserves that exact ID, and every risk-band heading states its score range. Probability, Impact, and Score cells contain only bare integers; explain each judgment in prose and verify Score equals Probability × Impact. Empty bands contain no risk rows; describe the absence in prose outside the table. Keep each risk description readable and traceable to its source.
|
|
223
|
+
6. **Format cleanup**: Ensure markdown formatting is clean (tables aligned, headers consistent, no orphaned references)
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 5. Validate Final Outputs
|
|
182
228
|
|
|
183
|
-
|
|
229
|
+
Validate after the last edit to every output. Read the saved files from disk: the epic document in epic-level mode, or both system-level documents and the handoff in system-level mode.
|
|
230
|
+
|
|
231
|
+
Validate the output(s) against:
|
|
232
|
+
|
|
233
|
+
- `checklist.md` in this workflow folder
|
|
234
|
+
- [ ] CLI sessions cleaned up (no orphaned browsers)
|
|
235
|
+
- [ ] Temp artifacts stored under `{test_artifacts}/test-design/`
|
|
184
236
|
|
|
185
|
-
|
|
186
|
-
2. **Verify consistency**: Ensure terminology, risk scores, and references are consistent throughout
|
|
187
|
-
3. **Check completeness**: All template sections should be populated or explicitly marked N/A
|
|
188
|
-
4. **Table schema**: Preserve the canonical risk and coverage column names from the templates. Verify every scored risk has one unique `R-<three digits>` ID, every coverage link preserves that exact ID, and every risk-band heading states its score range. Probability, Impact, and Score cells contain only bare integers; explain each judgment in prose and verify Score equals Probability × Impact. Empty bands contain no risk rows; describe the absence in prose outside the table. Keep each risk description readable and traceable to its source.
|
|
189
|
-
5. **Format cleanup**: Ensure markdown formatting is clean (tables aligned, headers consistent, no orphaned references)
|
|
237
|
+
If any checklist criteria are missing, fix before completion. A fix that changes a saved output reopens validation for the content it touched: rerun the risk, coverage, and cross-document checks after a risk or coverage change, the handoff checks after a handoff change, and the Document Quality checks after any wording change. Completion waits until the last rerun passes with no further edits.
|
|
190
238
|
|
|
191
239
|
---
|
|
192
240
|
|
|
@@ -23,6 +23,9 @@ Apply the requested edits to the selected output and confirm changes.
|
|
|
23
23
|
### Step-Specific Rules:
|
|
24
24
|
|
|
25
25
|
- 🎯 Only apply edits explicitly requested by the user
|
|
26
|
+
- 🚫 Leave text the user did not ask to change exactly as it is; the Create-mode editorial polish does not run here
|
|
27
|
+
- ✅ Write new or changed text under the Writing Rules of the Editorial Contract in `{skill-root}/steps-c/step-05-generate-output.md`
|
|
28
|
+
- ✅ Change a protected value (an ID, score, priority, threshold, or heading) when the user asks for that change, and update every value and reference that depends on it: Score = Probability × Impact, the risk's score band, its coverage links, and its rows in the other system-level document and the handoff. Keep the canonical columns and the parser-sensitive heading rules intact, and leave protected content outside the requested change exactly as it is
|
|
26
29
|
|
|
27
30
|
## EXECUTION PROTOCOLS:
|
|
28
31
|
|
|
@@ -27,6 +27,7 @@ Validate outputs using the workflow checklist and record findings.
|
|
|
27
27
|
- 🎯 Validate against `{validationChecklist}`
|
|
28
28
|
- 🚫 Do not skip checks
|
|
29
29
|
- 🚫 Never overwrite an existing validation report
|
|
30
|
+
- 🚫 Report Document Quality findings without rewriting any validated output
|
|
30
31
|
|
|
31
32
|
## EXECUTION PROTOCOLS:
|
|
32
33
|
|
|
@@ -115,7 +115,7 @@ test('example test @p0', async ({ apiRequest }) => {
|
|
|
115
115
|
| ---------- | -------- | ------------------- | ----------- | ---------------------------- |
|
|
116
116
|
| **{R-ID}** | {CAT} | {Brief description} | **{Score}** | {How QA validates this risk} |
|
|
117
117
|
|
|
118
|
-
### Medium/Low-Priority Risks
|
|
118
|
+
### Medium/Low-Priority Risks (Score 1-5)
|
|
119
119
|
|
|
120
120
|
| Risk ID | Category | Description | Score | QA Test Coverage |
|
|
121
121
|
| ------- | -------- | ------------------- | ------- | ---------------------------- |
|
|
@@ -17,6 +17,7 @@ You will continue to operate with your given name, identity, and communication_s
|
|
|
17
17
|
- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
|
|
18
18
|
- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents.
|
|
19
19
|
- `{tea-knowledge}` is the `knowledge/` folder of the `bmod-tea` skill, installed beside this one: `{skill-root}/../bmod-tea/knowledge`. `tea-index.csv` there lists every fragment by a path relative to that folder.
|
|
20
|
+
- `{tea-contracts}` is the `contracts/` folder of the `bmod-tea` skill, installed beside this one: `{skill-root}/../bmod-tea/contracts`. `story-identity.md` there says how a story is resolved, read and named.
|
|
20
21
|
- `{skill-name}` resolves to the skill directory's basename.
|
|
21
22
|
- Resolve sibling workflow files such as `instructions.md`, `checklist.md`, `steps-c/...`, `steps-e/...`, `steps-v/...`, and templates from `{skill-root}`.
|
|
22
23
|
|
|
@@ -79,7 +80,7 @@ When `headless: true` is resolved (from `workflow.yaml` defaults, a `customize.t
|
|
|
79
80
|
- Never prompt the user — resolve every input from configuration and supplied values.
|
|
80
81
|
- Honor `review_files` (authoritative review set), `context_files` (read-only context set), `output_file_override` (replaces `default_output_file` for the run), and `generate_inline_comments` (inline `// TODO (TEA Review)` comments) as first-class inputs, as documented in `workflow.yaml` and `instructions.md`.
|
|
81
82
|
- Resolve the run's scope without asking. The report defaults to `{test_artifacts}/test-review/test-review-{run_key}.md`; step 1 derives `run_key` from a story or epic named in the invocation or in `context_files`, else from the reviewed target, and starts over when an unfinished report for that key exists.
|
|
82
|
-
- Never go looking for a story, PRD, or test design that `context_files`
|
|
83
|
+
- Never go looking for a story, PRD, or test design that neither `context_files` nor the invocation named. With no human to confirm what was found, an unrequested artifact is a nondeterministic input. A story the invocation names explicitly is resolved and read by `{tea-contracts}/story-identity.md`.
|
|
83
84
|
|
|
84
85
|
When `headless` is false (default), the interactive path below is unchanged.
|
|
85
86
|
|
|
@@ -139,6 +139,7 @@ Context is what the tests are judged _against_: the story or acceptance criteria
|
|
|
139
139
|
|
|
140
140
|
**Resolution order:**
|
|
141
141
|
|
|
142
|
+
0. **The invocation names a story** (a ticket ref, title or leaf file, or a v6 story file) → resolve and read it by `{tea-contracts}/story-identity.md` sections 1 to 3. The story and the files that contract reads for it join the context set, alongside any `context_files`. This is the only way a story the caller did not list enters a review, and it works headless too.
|
|
142
143
|
1. **`context_files` is non-empty** → it IS the complete context set. Read every entry. Validate each path exists and report a missing one in the review report rather than dropping it silently.
|
|
143
144
|
2. **Empty and `headless: false`** → ask the user which story, test design, or changed source applies, and offer to proceed without it.
|
|
144
145
|
3. **Empty and `headless: true`** → proceed with no context. Never ask, never go hunting for a story on your own; an unrequested artifact you happened to find is exactly the nondeterminism this resolution order exists to prevent.
|
|
@@ -146,7 +147,7 @@ Context is what the tests are judged _against_: the story or acceptance criteria
|
|
|
146
147
|
Record `{context_basis}` from what you actually read, never from what was requested:
|
|
147
148
|
|
|
148
149
|
- `none` — nothing was supplied or found
|
|
149
|
-
- `pr_diff` — the supplied context set
|
|
150
|
+
- `pr_diff` — the supplied context set, including a named story and what it brought in
|
|
150
151
|
- `pr_diff_truncated` — the caller states the set was trimmed to a size limit
|
|
151
152
|
|
|
152
153
|
Step 4 must publish this value, so persist it.
|
|
@@ -167,8 +168,8 @@ Every run writes its report to a file whose name carries the run's identity, so
|
|
|
167
168
|
|
|
168
169
|
Apply the first rule that matches:
|
|
169
170
|
|
|
170
|
-
1. **The user named a story or epic in this invocation.** Use it.
|
|
171
|
-
2. **The context set read in section 3 carries exactly one story or epic.** A story comes from a BMM story file (a basename such as `1-2-user-authentication.md`, or an H1 such as `Story 1.2: User Authentication`). An epic comes from an epic document's metadata, H1 heading, or filename. Use only artifacts section 3 actually read. Never go looking for a story or epic to name the run.
|
|
171
|
+
1. **The user named a story or epic in this invocation.** Use it. A named story was already resolved and read in section 3.
|
|
172
|
+
2. **The context set read in section 3 carries exactly one story or epic.** A story comes from a v7 ticket leaf or a BMM story file (a basename such as `1-2-user-authentication.md`, or an H1 such as `Story 1.2: User Authentication`). An epic comes from an epic document's metadata, H1 heading, or filename. Use only artifacts section 3 actually read. Never go looking for a story or epic to name the run.
|
|
172
173
|
3. **The context set carries several stories or epics.** Interactive runs list the candidates and ask which one this review covers. **Halt** until the user answers. Headless runs never ask: they fall through to rule 4, and step 4 states in the report that the context named several scopes, so the run was keyed to its reviewed target.
|
|
173
174
|
4. **No story or epic applies.** When `review_scope` is `suite`, the scope is the whole system. Otherwise the scope is the reviewed target: the project-relative path of the reviewed file (`single`) or directory (`directory`). When `review_files` sets the review set, the target is the one file it names, or the deepest directory that contains every file it names.
|
|
174
175
|
|
|
@@ -181,7 +182,7 @@ Then set the identity from the resolved scope:
|
|
|
181
182
|
| Whole system | `system` | `system` |
|
|
182
183
|
| Reviewed target | `target` | `target-{slug}` |
|
|
183
184
|
|
|
184
|
-
-
|
|
185
|
+
- Resolve, read and name the story by `{tea-contracts}/story-identity.md`: `story_key` is `shop--e1-s2` for a v7 epic entry and the v6 story file basename (`1-2-user-authentication`) for a v6 story.
|
|
185
186
|
- `epic_num` is the epic's number. An epic with no number uses the slug of its title.
|
|
186
187
|
- `{slug}` is the slug of the target path. If the slug comes out empty (the target is the project root), the scope is the whole system: `system`.
|
|
187
188
|
|
|
@@ -244,6 +245,8 @@ lastSaved: '{date}'
|
|
|
244
245
|
|
|
245
246
|
Then write this step's output below the frontmatter.
|
|
246
247
|
|
|
248
|
+
For a story run (`run_scope` is `story`), also write `storyId`, `storyKey`, `ticketRef` and `storyFile` into this frontmatter, as `{tea-contracts}/story-identity.md` section 4 defines them. Other scopes leave them out.
|
|
249
|
+
|
|
247
250
|
`runScope` and `runKey` are this run's identity. Later steps carry both forward unchanged, and Resume mode refuses to continue a report whose `runKey` does not match the run being resumed.
|
|
248
251
|
|
|
249
252
|
**Update `inputDocuments`**: Set `inputDocuments` in the output template frontmatter to the list of artifact paths loaded in this step (e.g., knowledge fragments, test design documents, configuration files).
|
|
@@ -81,6 +81,8 @@ If `workflowStatus` is missing (legacy report), infer it from `lastStep`: `step-
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
+
For a story run, read `{tea-contracts}/story-identity.md` before continuing: a named story is resolved by its sections 1 and 4 for the identity check, `ticketRef` locates the story when `storyFile` is empty or gone, and section 5 governs every citation the checkpoint carries (read through `resolvedSources`; report, never follow, an `unresolved` one). This holds on every resume path, named or not.
|
|
85
|
+
|
|
84
86
|
### 3. Display Progress Dashboard
|
|
85
87
|
|
|
86
88
|
Display progress with checkmark/empty indicators:
|
|
@@ -17,6 +17,7 @@ You will continue to operate with your given name, identity, and communication_s
|
|
|
17
17
|
- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
|
|
18
18
|
- `{project-root}` is the nearest folder containing `_bmad/`, starting at the project working directory and moving up through its parents.
|
|
19
19
|
- `{tea-knowledge}` is the `knowledge/` folder of the `bmod-tea` skill, installed beside this one: `{skill-root}/../bmod-tea/knowledge`. `tea-index.csv` there lists every fragment by a path relative to that folder.
|
|
20
|
+
- `{tea-contracts}` is the `contracts/` folder of the `bmod-tea` skill, installed beside this one: `{skill-root}/../bmod-tea/contracts`. `story-identity.md` there says how a story is resolved, read and named.
|
|
20
21
|
- `{skill-name}` resolves to the skill directory's basename.
|
|
21
22
|
- Resolve sibling workflow files such as `instructions.md`, `checklist.md`, `steps-c/...`, `steps-e/...`, `steps-v/...`, and templates from `{skill-root}`.
|
|
22
23
|
|
|
@@ -119,8 +119,8 @@ The fragment list for this step is a closed set. Start empty and add every fragm
|
|
|
119
119
|
If available:
|
|
120
120
|
|
|
121
121
|
- Story file and acceptance criteria
|
|
122
|
-
- Test design doc (priorities) from `{test_artifacts}/test-design/`, chosen by the target this invocation or the loaded artifacts name (the same target section 4 resolves): `test-design-epic-{epic_num}.md` for an epic; for a story, its epic's plan `test-design-epic-{epic_num}.md`, with the epic number taken from
|
|
123
|
-
- NFR evidence audit, chosen by the same target. Use the first file that exists: `{test_artifacts}/nfr/nfr-assessment-{run_key}.md` for the target's own scope (`story-{story_key}` or `epic-{epic_num}`, keyed as section 4 describes); for a story, its epic's audit `{test_artifacts}/nfr/nfr-assessment-epic-{epic_num}.md`; `{test_artifacts}/nfr/nfr-assessment-system.md`; then the legacy root `{test_artifacts}/nfr-assessment.md`. Name the file used.
|
|
122
|
+
- Test design doc (priorities) from `{test_artifacts}/test-design/`, chosen by the target this invocation or the loaded artifacts name (the same target section 4 resolves): `test-design-epic-{epic_num}.md` for an epic; for a story in a numbered epic (section 3 of the contract), its epic's plan `test-design-epic-{epic_num}.md`, with the epic number taken from a dotted story id (story `1.2` belongs to epic `1`); a story with no numbered epic skips this, and a bare entry id is never read as an epic number; `test-design-architecture.md` and `test-design-qa.md` at system level. Fall back to the same names at the legacy root `{test_artifacts}/`, where runs before the `test-design/` folder wrote them.
|
|
123
|
+
- NFR evidence audit, chosen by the same target. Use the first file that exists: `{test_artifacts}/nfr/nfr-assessment-{run_key}.md` for the target's own scope (`story-{story_key}` or `epic-{epic_num}`, keyed as section 4 describes); for a story in a numbered epic, its epic's audit `{test_artifacts}/nfr/nfr-assessment-epic-{epic_num}.md`; `{test_artifacts}/nfr/nfr-assessment-system.md`; then the legacy root `{test_artifacts}/nfr-assessment.md`. Name the file used.
|
|
124
124
|
- Tech spec / PRD
|
|
125
125
|
- OpenAPI or similar contract/spec files
|
|
126
126
|
- Placeholder files that reference external requirements systems
|
|
@@ -140,14 +140,14 @@ Resolve the gate target, `run_scope`, and `run_key` **now**, before anything is
|
|
|
140
140
|
Resolve the gate type in this order:
|
|
141
141
|
|
|
142
142
|
1. The gate type the user named in this invocation (for example "trace epic 16" is `epic`, "release gate for 2.4.0" is `release`).
|
|
143
|
-
2. The kind of target the loaded artifacts identify: a story file is `story`, an epic document is `epic`.
|
|
143
|
+
2. The kind of target the loaded artifacts identify: a story (a v7 ticket or a v6 story file) is `story`, an epic document is `epic`.
|
|
144
144
|
3. The configured `{gate_type}`.
|
|
145
145
|
|
|
146
146
|
### B) Target ID and Label
|
|
147
147
|
|
|
148
148
|
Resolve the target for that gate type in the same order: the target the user named in this invocation first, then the target the loaded artifacts carry.
|
|
149
149
|
|
|
150
|
-
- **story:**
|
|
150
|
+
- **story:** `story_id` and `story_key` by `{tea-contracts}/story-identity.md`, which also resolves and reads the story: `1.2` and `shop--e1-s2` for a v7 epic entry, the story's own id and its file basename (`1-2-user-authentication`) for a v6 story.
|
|
151
151
|
- **epic:** `epic_num`, read from the epic document metadata, its H1 heading, or its filename. If the epic carries no number, use the slug of its title (slug rule below) in place of the number.
|
|
152
152
|
- **release:** the release version, from this invocation or from the release notes or version the loaded artifacts name.
|
|
153
153
|
- **hotfix:** the hotfix id, from this invocation or from the loaded artifacts.
|
|
@@ -228,6 +228,8 @@ oracleLedger: [{ id: '{oracle item id}', requirement: '{requirement text}', prio
|
|
|
228
228
|
|
|
229
229
|
Then write this step's output below the frontmatter.
|
|
230
230
|
|
|
231
|
+
For a story run (`run_scope` is `story`), also write `storyId`, `storyKey`, `ticketRef` and `storyFile` into this frontmatter, as `{tea-contracts}/story-identity.md` section 4 defines them. Other scopes leave them out.
|
|
232
|
+
|
|
231
233
|
`runScope`, `runKey`, `targetType`, `targetId`, and `targetLabel` are this run's identity. Later steps carry them forward unchanged and never re-derive them: Step 4 reads the target from this frontmatter, and Resume mode refuses to continue a file whose `runKey` does not match the run being resumed.
|
|
232
234
|
|
|
233
235
|
Load next step: `{nextStepFile}`
|
|
@@ -81,6 +81,8 @@ If `workflowStatus` is missing (legacy progress file), infer it from `lastStep`:
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
+
For a story run, read `{tea-contracts}/story-identity.md` before continuing: a named story is resolved by its sections 1 and 4 for the identity check, `ticketRef` locates the story when `storyFile` is empty or gone, and section 5 governs every citation the checkpoint carries (read through `resolvedSources`; report, never follow, an `unresolved` one). This holds on every resume path, named or not.
|
|
85
|
+
|
|
84
86
|
### 3. Display Progress Dashboard
|
|
85
87
|
|
|
86
88
|
Display:
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Story identity and intake
|
|
2
|
+
|
|
3
|
+
Every story-scoped TEA workflow (Automate red and expand mode, Trace, NFR, Test Review) resolves a story, reads it, and names its outputs by these rules, so the same story gets the same key in every workflow. Each workflow adds only its own rules on top.
|
|
4
|
+
|
|
5
|
+
## 1. Resolve the story
|
|
6
|
+
|
|
7
|
+
Decide the route once, from the reference the user gave or the artifacts already loaded:
|
|
8
|
+
|
|
9
|
+
- **v6 story file.** The reference is a path to a Markdown story outside any `initiative-*/` or `backlog/` folder, or `{project-root}/_bmad/method/scripts/tickets.py` does not exist. Use the story file as the workflow always has, with the v6 key in section 4.
|
|
10
|
+
- **v7 ticket.** Anything else: `<epic id>.<entry id>` (`1.2`), an entry id, a tracker id, a leaf file name or path, or a title phrase. Run:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
uv run "{project-root}/_bmad/method/scripts/tickets.py" --project-root "{project-root}" find ["<dir>"] "<ref>"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Quote each argument, so a title phrase such as `guest checkout` reaches `find` as one reference. For a leaf file path, pass its container folder as `<dir>` and its basename as `<ref>`. Otherwise leave `<dir>` out unless the user named an initiative, epic or `backlog/` folder.
|
|
17
|
+
|
|
18
|
+
The output is one JSON object. A result with `error`:
|
|
19
|
+
|
|
20
|
+
- No match, an ambiguous phrase, or no active initiative: in an interactive run, show the message and ask which story or folder is meant; **halt** until answered. A headless run halts with the message.
|
|
21
|
+
- A parent initiative: list its child initiatives and ask which one; a headless run halts with the list.
|
|
22
|
+
- The earlier layout: **halt** and tell the user to run `bmad migrate`, which moves the breakdown into `tickets/`.
|
|
23
|
+
|
|
24
|
+
A v7 error never falls back to the v6 route.
|
|
25
|
+
|
|
26
|
+
## 2. Read the story
|
|
27
|
+
|
|
28
|
+
From the `find` result:
|
|
29
|
+
|
|
30
|
+
- **Ticket text:** the file at `story_file` when it is not null; otherwise the entry's `description`, `verify`, `references` and `notes` from the result. A pulled leaf's `Verify:` line is in the leaf.
|
|
31
|
+
- **Story context:** the files the story's own `companions` and typed References name.
|
|
32
|
+
- **Parent context:** when `epic_file` is not null, read its Requirements lines whose ids the story's `covers` lists, its Constraints, and the files its `companions` and References name. When it is null (a `backlog/` leaf), skip parent discovery.
|
|
33
|
+
- **Plan:** when the file at `plan` exists, read its acceptance criteria. Its `## Prior builds` section is history, never criteria.
|
|
34
|
+
|
|
35
|
+
Record each file read with its path. List a file that cannot be read as unavailable; never guess its content.
|
|
36
|
+
|
|
37
|
+
**Criteria, in this order:**
|
|
38
|
+
|
|
39
|
+
1. The ticket's numbered criteria, each keeping the `R` ids it names.
|
|
40
|
+
2. When the ticket has only a `verify` line: the plan's acceptance criteria, when the plan has any.
|
|
41
|
+
3. Otherwise the `verify` line, as one criterion carrying the story's `covers`.
|
|
42
|
+
|
|
43
|
+
When the ticket and the plan both list criteria and they differ, an interactive run shows both and asks which hold; a headless run uses the ticket's and lists the plan-only criteria as unreconciled in its output.
|
|
44
|
+
|
|
45
|
+
## 3. Classify the container
|
|
46
|
+
|
|
47
|
+
From the `find` result's `folder`, which names the container (its `epic` field holds the same name for every shape, so it does not tell them apart):
|
|
48
|
+
|
|
49
|
+
- **Epic entry:** `folder` starts with `epic-`. The initiative is the `initiative-*` folder above `tickets/` in the `epic_file` path. The `ref` is `<epic id>.<entry id>` when the initiative numbers the epic; an epic its initiative does not number gives a bare entry id, and has no epic id.
|
|
50
|
+
- **Initiative entry:** `folder` starts with `initiative-`. The `ref` is the bare entry id, and `epic_file` is the initiative's own file.
|
|
51
|
+
- **Backlog leaf:** `folder` is `backlog`. The `ref` and `file` are the leaf's file name, and `epic_file` is null.
|
|
52
|
+
|
|
53
|
+
Only an epic entry has epic context: its epic's Test Design (`test-design-epic-<epic id>.md`) and epic-scoped reports; an epic with no epic id has no numbered Test Design to look up. An initiative entry or backlog leaf skips every epic lookup and goes straight to the system-level and legacy names.
|
|
54
|
+
|
|
55
|
+
## 4. Name the story
|
|
56
|
+
|
|
57
|
+
- `story_id`: the `ref` (`1.2`) for a v7 ticket; the story id the v6 story states otherwise.
|
|
58
|
+
- `story_key`:
|
|
59
|
+
- epic entry: `<initiative>--e<epic id>-s<entry id>`, for example `shop--e1-s2`; for an epic with no epic id, `<initiative>--<epic folder>-s<entry id>`, for example `shop--epic-loyalty-s2`. Never read the entry id as an epic id;
|
|
60
|
+
- initiative entry: `<initiative>--s<entry id>`;
|
|
61
|
+
- backlog leaf: `backlog--<leaf file stem>`;
|
|
62
|
+
- v6 story file: the file's basename without `.md` (`1-2-user-authentication`); without a file, the story id with `.` replaced by `-`.
|
|
63
|
+
|
|
64
|
+
`<initiative>` is the initiative folder name without its `initiative-` prefix. An entry id is used as written, letters included (`s6a`, `sCC2`). Folder names never contain `--`, so keys of different shapes and initiatives never collide. Entry ids and containers do not change when an entry is retitled, so neither does the key.
|
|
65
|
+
|
|
66
|
+
- `ticketRef`: the `ref` plus the container folder relative to `{project-root}`, for example `1.2 @ _bmad-output/initiative-shop/tickets/epic-checkout`, `2 @ _bmad-output/initiative-shop-e1` or `story-coupon-banner.md @ _bmad-output/backlog`. Empty for a v6 story.
|
|
67
|
+
- `storyFile`: the leaf or v6 story path; empty for an entry that is not pulled.
|
|
68
|
+
|
|
69
|
+
Checkpoints record `storyId`, `storyKey`, `ticketRef` and `storyFile`. A check that requires the story's location accepts `storyFile` or `ticketRef`.
|
|
70
|
+
|
|
71
|
+
Every story output of every workflow uses `story-<story_key>` as its run key, so ATDD checklists, automation summaries, NFR reports, Test Review reports and traceability matrices for one story share it.
|
|
72
|
+
|
|
73
|
+
## 5. Artifacts from before v7 keys
|
|
74
|
+
|
|
75
|
+
This applies only to a story resolved through the v7 route; a v6 or no-method run never mentions it. When no output exists under the new key but the test artifacts folder holds story outputs whose key has no `--`, unlike every shape above (a v6 basename such as `1-2-user-authentication`, or a leaf stem such as `story-guest-checkout`), tell the user that `bmad migrate tea` carries them onto their tickets, and ask whether to run it first. Continue as a fresh run only if they decline. A headless run continues and says so in its output.
|
|
76
|
+
|
|
77
|
+
Every resume of a story run loads this section too. A migrated artifact carries `resolvedSources`: per citation, the original reference, its current location, and `resolved` or `unresolved`. Read a citation through its `resolved` entry. Report an `unresolved` citation; never follow it. Leave the original citation as written.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Test Architect knowledge
|
|
2
2
|
|
|
3
|
-
This document covers the skills of the `tea` module: what each one gives the user, when to recommend it, and what to offer next. Full documentation: <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/llms.txt>
|
|
3
|
+
This document covers the skills of the `tea` module: what each one gives the user, when to recommend it, where it fits in the method's flow, and what to offer next. Full documentation: <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/llms.txt>
|
|
4
4
|
|
|
5
5
|
## The skills
|
|
6
6
|
|
|
7
7
|
- `bmad-tea`: Murat, the Master Test Architect, for risk-based test strategy, fixture architecture, API, UI, mobile and contract testing, and release gates. Recommend him when the user wants testing advice or does not know which TEA workflow fits; he routes to the rest.
|
|
8
|
-
- `bmad-tea-teach-me-testing`: teaches testing fundamentals in 7 sessions (TEA Academy), with a progress file, session notes and a completion summary. Recommend it to someone learning testing, at any
|
|
9
|
-
- `bmad-tea-test-design`: risk-based test planning, producing a test design document. Recommend it
|
|
10
|
-
- `bmad-tea-framework`: owns production-ready framework and CI setup, with framework-only, CI-only, or both scope. It installs Playwright Utils or Pact.js Utils when enabled. Recommend it
|
|
11
|
-
- `bmad-tea-automate`: owns test generation in red or expand mode. Red mode writes failing acceptance tests and an ATDD checklist before
|
|
8
|
+
- `bmad-tea-teach-me-testing`: teaches testing fundamentals in 7 sessions (TEA Academy), with a progress file, session notes and a completion summary. Recommend it to someone learning testing, at any point.
|
|
9
|
+
- `bmad-tea-test-design`: risk-based test planning, producing a test design document. At system level it reads the PRD and architecture; at epic level it plans one epic of the active initiative. Recommend it once requirements exist and before tests or a framework do. Afterwards offer `bmad-tea-framework`.
|
|
10
|
+
- `bmad-tea-framework`: owns production-ready framework and CI setup, with framework-only, CI-only, or both scope. It installs Playwright Utils or Pact.js Utils when enabled. Recommend it after test design, before the first story is built. When CI scope cannot be inferred from the request, interactive runs ask whether to include CI. Unattended runs default to framework only and state in the summary that CI was excluded.
|
|
11
|
+
- `bmad-tea-automate`: owns test generation in red or expand mode. Red mode writes failing acceptance tests and an ATDD checklist for one story before it is built, then verifies the intended missing behavior. Expand mode writes tests for implemented code, runs them, heals test defects for up to three rounds by default, and reports product defects. Recommend red mode once a story's criteria are settled and expand mode once code exists.
|
|
12
12
|
- `bmad-tea-evaluate`: builds and runs a scored, evidence-backed evaluation of an agent, skill, workflow or tool-use system. Recommend it after automation when the target's behavior needs proof. Afterwards offer `bmad-tea-framework` with CI scope to enforce it. On explicit request, Evaluate also analyzes saved native Test Design consistency offline or prepares a bounded fresh/configuration proposal. “Is it repeatable?” first clarifies saved records versus new runs. Native live experiments remain blocked by telemetry and enforceable-budget gaps; ordinary evaluation gains no extra experiment work.
|
|
13
13
|
- `bmad-tea-test-review`: audits test quality with a 0-100 score and a review report. Recommend it after tests are written. Afterwards offer `bmad-tea-trace`.
|
|
14
14
|
- `bmad-tea-nfr`: audits the evidence for non-functional requirements and writes an NFR report. Recommend it after automation, before a release.
|
|
@@ -16,9 +16,41 @@ This document covers the skills of the `tea` module: what each one gives the use
|
|
|
16
16
|
|
|
17
17
|
For a release gate, the order is: `bmad-tea-test-review` (optional), `bmad-tea-nfr` (optional), then `bmad-tea-trace`.
|
|
18
18
|
|
|
19
|
+
## Where TEA fits in the method's flow
|
|
20
|
+
|
|
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
|
+
|
|
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. |
|
|
32
|
+
|
|
33
|
+
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
|
+
|
|
19
35
|
## Where things land
|
|
20
36
|
|
|
21
|
-
Every workflow writes under the test artifacts folder, chosen at setup as `modules.tea.test_artifacts
|
|
37
|
+
Every workflow writes under the test artifacts folder, chosen at setup as `modules.tea.test_artifacts`, which can sit outside the output folder. To see what TEA has run, resolve it with `uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key modules.tea.test_artifacts` and look in these folders inside it:
|
|
38
|
+
|
|
39
|
+
| Folder | Written by |
|
|
40
|
+
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
|
|
41
|
+
| `test-design/` | `bmad-tea-test-design`: `test-design-epic-<n>.md`, or `test-design-architecture.md` and `test-design-qa.md` at system level |
|
|
42
|
+
| `framework/`, `ci/` | `bmad-tea-framework` |
|
|
43
|
+
| `atdd/` | `bmad-tea-automate` red mode: one `atdd-checklist-<story>.md` per story |
|
|
44
|
+
| `automate/` | `bmad-tea-automate` expand mode |
|
|
45
|
+
| `test-review/` | `bmad-tea-test-review` |
|
|
46
|
+
| `nfr/` | `bmad-tea-nfr` |
|
|
47
|
+
| `trace/` | `bmad-tea-trace`: one `traceability-matrix-<scope>.md` per story, epic, release or hotfix |
|
|
48
|
+
| `evaluate/` | `bmad-tea-evaluate` working state |
|
|
49
|
+
| `tea-academy/`, `teaching-progress/` | `bmad-tea-teach-me-testing` |
|
|
50
|
+
|
|
51
|
+
A file there shows a workflow ran, not that its work is finished: a file whose frontmatter says `workflowStatus: 'in-progress'` is a started run the user can resume.
|
|
52
|
+
|
|
53
|
+
Runs before these folders existed wrote to the root of the test artifacts folder, and the workflows still read those files: `test-design-epic-<n>.md`, `test-design-architecture.md`, `test-design-qa.md`, `test-design-progress.md` and `test-design-progress-<scope>.md`, `framework-setup-progress.md`, `ci-pipeline-progress.md`, `atdd-checklist-<story>.md`, `automation-summary.md`, `test-review.md`, `nfr-assessment.md` and `traceability-matrix.md`. Read them the same way: the name or heading gives the scope, and only a checkpoint, the report's own status, its content or the user settles whether that run finished. When a root file and a folder file cover the same scope, say both exist and let the user pick. Evaluate writes evaluation folders under `evals/` by default; a team changes that with `evaluations_folder` in `_bmad/custom/bmad-tea-evaluate.toml`. `bmad setup tea` shows and changes the setup answers.
|
|
22
54
|
|
|
23
55
|
## More detail
|
|
24
56
|
|