12 KiB
| title | description |
|---|---|
| Test Architect (TEA) Overview | Understanding the Test Architect (TEA) agent and its role in BMad Method |
The Test Architect (TEA) is a specialized agent focused on quality strategy, test automation, and release gates in BMad Method projects.
Overview
- Persona: Murat, Master Test Architect and Quality Advisor focused on risk-based testing, fixture architecture, ATDD, and CI/CD governance.
- Mission: Deliver actionable quality strategies, automation coverage, and gate decisions that scale with project complexity and compliance demands.
- Use When: BMad Method or Enterprise track projects, integration risk is non-trivial, brownfield regression risk exists, or compliance/NFR evidence is required. (Quick Flow projects typically don't require TEA)
Choose Your TEA Engagement Model
BMad does not mandate TEA. There are five valid ways to use it (or skip it). Pick one intentionally.
-
No TEA
- Skip all TEA workflows. Use your existing team testing approach.
-
TEA-only (Standalone)
- Use TEA on a non-BMad project. Bring your own requirements, acceptance criteria, and environments.
- Typical sequence:
*test-design(system or epic) ->*atddand/or*automate-> optional*test-review->*tracefor coverage and gate decisions. - Run
*frameworkor*cionly if you want TEA to scaffold the harness or pipeline.
-
Integrated: Greenfield - BMad Method (Simple/Standard Work)
- Phase 3: system-level
*test-design, then*frameworkand*ci. - Phase 4: per-epic
*test-design, optional*atdd, then*automateand optional*test-review. - Gate (Phase 2):
*trace.
- Phase 3: system-level
-
Integrated: Brownfield - BMad Method or Enterprise (Simple or Complex)
- Phase 2: baseline
*trace. - Phase 3: system-level
*test-design, then*frameworkand*ci. - Phase 4: per-epic
*test-designfocused on regression and integration risks. - Gate (Phase 2):
*trace;*nfr-assess(if not done earlier). - For brownfield BMad Method, follow the same flow with
*nfr-assessoptional.
- Phase 2: baseline
-
Integrated: Greenfield - Enterprise Method (Enterprise/Compliance Work)
- Phase 2:
*nfr-assess. - Phase 3: system-level
*test-design, then*frameworkand*ci. - Phase 4: per-epic
*test-design, plus*atdd/*automate/*test-review. - Gate (Phase 2):
*trace; archive artifacts as needed.
- Phase 2:
If you are unsure, default to the integrated path for your track and adjust later.
TEA Workflow Lifecycle
TEA integrates into the BMad development lifecycle during Solutioning (Phase 3) and Implementation (Phase 4):
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#fff','primaryTextColor':'#000','primaryBorderColor':'#000','lineColor':'#000','secondaryColor':'#fff','tertiaryColor':'#fff','fontSize':'16px','fontFamily':'arial'}}}%%
graph TB
subgraph Phase2["<b>Phase 2: PLANNING</b>"]
PM["<b>PM: *prd (creates PRD with FRs/NFRs)</b>"]
PlanNote["<b>Business requirements phase</b>"]
NFR2["<b>TEA: *nfr-assess (optional, enterprise)</b>"]
PM -.-> NFR2
NFR2 -.-> PlanNote
PM -.-> PlanNote
end
subgraph Phase3["<b>Phase 3: SOLUTIONING</b>"]
Architecture["<b>Architect: *architecture</b>"]
EpicsStories["<b>PM/Architect: *create-epics-and-stories</b>"]
TestDesignSys["<b>TEA: *test-design (system-level)</b>"]
Framework["<b>TEA: *framework (optional if needed)</b>"]
CI["<b>TEA: *ci (optional if needed)</b>"]
GateCheck["<b>Architect: *implementation-readiness</b>"]
Architecture --> EpicsStories
Architecture --> TestDesignSys
TestDesignSys --> Framework
EpicsStories --> Framework
Framework --> CI
CI --> GateCheck
Phase3Note["<b>Epics created AFTER architecture,</b><br/><b>then system-level test design and test infrastructure setup</b>"]
EpicsStories -.-> Phase3Note
end
subgraph Phase4["<b>Phase 4: IMPLEMENTATION - Per Epic Cycle</b>"]
SprintPlan["<b>SM: *sprint-planning</b>"]
TestDesign["<b>TEA: *test-design (per epic)</b>"]
CreateStory["<b>SM: *create-story</b>"]
ATDD["<b>TEA: *atdd (optional, before dev)</b>"]
DevImpl["<b>DEV: implements story</b>"]
Automate["<b>TEA: *automate</b>"]
TestReview1["<b>TEA: *test-review (optional)</b>"]
Trace1["<b>TEA: *trace (refresh coverage)</b>"]
SprintPlan --> TestDesign
TestDesign --> CreateStory
CreateStory --> ATDD
ATDD --> DevImpl
DevImpl --> Automate
Automate --> TestReview1
TestReview1 --> Trace1
Trace1 -.->|next story| CreateStory
TestDesignNote["<b>Test design: 'How do I test THIS epic?'</b><br/>Creates test-design-epic-N.md per epic"]
TestDesign -.-> TestDesignNote
end
subgraph Gate["<b>EPIC/RELEASE GATE</b>"]
NFR["<b>TEA: *nfr-assess (if not done earlier)</b>"]
TestReview2["<b>TEA: *test-review (final audit, optional)</b>"]
TraceGate["<b>TEA: *trace - Phase 2: Gate</b>"]
GateDecision{"<b>Gate Decision</b>"}
NFR --> TestReview2
TestReview2 --> TraceGate
TraceGate --> GateDecision
GateDecision -->|PASS| Pass["<b>PASS ✅</b>"]
GateDecision -->|CONCERNS| Concerns["<b>CONCERNS ⚠️</b>"]
GateDecision -->|FAIL| Fail["<b>FAIL ❌</b>"]
GateDecision -->|WAIVED| Waived["<b>WAIVED ⏭️</b>"]
end
Phase2 --> Phase3
Phase3 --> Phase4
Phase4 --> Gate
style Phase2 fill:#bbdefb,stroke:#0d47a1,stroke-width:3px,color:#000
style Phase3 fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#000
style Phase4 fill:#e1bee7,stroke:#4a148c,stroke-width:3px,color:#000
style Gate fill:#ffe082,stroke:#f57c00,stroke-width:3px,color:#000
style Pass fill:#4caf50,stroke:#1b5e20,stroke-width:3px,color:#000
style Concerns fill:#ffc107,stroke:#f57f17,stroke-width:3px,color:#000
style Fail fill:#f44336,stroke:#b71c1c,stroke-width:3px,color:#000
style Waived fill:#9c27b0,stroke:#4a148c,stroke-width:3px,color:#000
Phase Numbering Note: BMad uses a 4-phase methodology with optional Phase 1 and documentation prerequisite:
- Documentation (Optional for brownfield): Prerequisite using
*document-project - Phase 1 (Optional): Discovery/Analysis (
*brainstorm,*research,*product-brief) - Phase 2 (Required): Planning (
*prdcreates PRD with FRs/NFRs) - Phase 3 (Track-dependent): Solutioning (
*architecture→*test-design(system-level) →*create-epics-and-stories→ TEA:*framework,*ci→*implementation-readiness) - Phase 4 (Required): Implementation (
*sprint-planning→ per-epic:*test-design→ per-story: dev workflows)
TEA workflows: *framework and *ci run once in Phase 3 after architecture. *test-design is dual-mode:
- System-level (Phase 3): Run immediately after architecture/ADR drafting to produce
test-design-system.md(testability review, ADR → test mapping, Architecturally Significant Requirements (ASRs), environment needs). Feeds the implementation-readiness gate. - Epic-level (Phase 4): Run per-epic to produce
test-design-epic-N.md(risk, priorities, coverage plan).
Quick Flow track skips Phases 1 and 3.
BMad Method and Enterprise use all phases based on project needs.
When an ADR or architecture draft is produced, run *test-design in system-level mode before the implementation-readiness gate. This ensures the ADR has an attached testability review and ADR → test mapping. Keep the test-design updated if ADRs change.
Why TEA is Different from Other BMM Agents
TEA is the only BMM agent that operates in multiple phases (Phase 3 and Phase 4) and has its own knowledge base architecture.
Phase-Specific Agents (Standard Pattern)
Most BMM agents work in a single phase:
- Phase 1 (Analysis): Analyst agent
- Phase 2 (Planning): PM agent
- Phase 3 (Solutioning): Architect agent
- Phase 4 (Implementation): SM, DEV agents
TEA: Multi-Phase Quality Agent (Unique Pattern)
TEA is the only agent that operates in multiple phases:
Phase 1 (Analysis) → [TEA not typically used]
↓
Phase 2 (Planning) → [PM defines requirements - TEA not active]
↓
Phase 3 (Solutioning) → TEA: *framework, *ci (test infrastructure AFTER architecture)
↓
Phase 4 (Implementation) → TEA: *test-design (per epic: "how do I test THIS feature?")
→ TEA: *atdd, *automate, *test-review, *trace (per story)
↓
Epic/Release Gate → TEA: *nfr-assess, *trace Phase 2 (release decision)
TEA's 8 Workflows Across Phases
Standard agents: 1-3 workflows per phase TEA: 8 workflows across Phase 3, Phase 4, and Release Gate
| Phase | TEA Workflows | Frequency | Purpose |
|---|---|---|---|
| Phase 2 | (none) | - | Planning phase - PM defines requirements |
| Phase 3 | *framework, *ci | Once per project | Setup test infrastructure AFTER architecture |
| Phase 4 | *test-design, *atdd, *automate, *test-review, *trace | Per epic/story | Test planning per epic, then per-story testing |
| Release | *nfr-assess, *trace (Phase 2: gate) | Per epic/release | Go/no-go decision |
Note: *trace is a two-phase workflow: Phase 1 (traceability) + Phase 2 (gate decision). This reduces cognitive load while maintaining natural workflow.
TEA Command Catalog
| Command | Primary Outputs | Notes |
|---|---|---|
*framework |
Playwright/Cypress scaffold, .env.example, .nvmrc, sample specs |
Use when no production-ready harness exists |
*ci |
CI workflow, selective test scripts, secrets checklist | Platform-aware (GitHub Actions default) |
*test-design |
Combined risk assessment, mitigation plan, and coverage strategy | Risk scoring + optional exploratory mode |
*atdd |
Failing acceptance tests + implementation checklist | TDD red phase + optional recording mode |
*automate |
Prioritized specs, fixtures, README/script updates, DoD summary | Optional healing/recording, avoid duplicate coverage |
*test-review |
Test quality review report with 0-100 score, violations, fixes | Reviews tests against knowledge base patterns |
*nfr-assess |
NFR assessment report with actions | Focus on security/performance/reliability |
*trace |
Phase 1: Coverage matrix, recommendations. Phase 2: Gate decision (PASS/CONCERNS/FAIL/WAIVED) | Two-phase workflow: traceability + gate decision |
Related Documentation
- Setup Test Framework - How to set up testing infrastructure
- Run Test Design - Creating test plans