last-redoc-date
| last-redoc-date |
|---|
| 2025-09-30 |
Test Architect (TEA) Agent Guide
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 level and compliance demands.
- Use When: Project level ≥2, integration risk is non-trivial, brownfield regression risk exists, or compliance/NFR evidence is required.
Prerequisites and Setup
- Run the core planning workflows first:
- Analyst
*product-brief - Product Manager
*plan-project - Architect
*solution-architecture
- Analyst
- Confirm
bmad/bmm/config.yamldefinesproject_name,output_folder,dev_story_location, and language settings. - Ensure a test test framework setup exists; if not, use
*frameworkcommand to create a test framework setup, prior to development. - Skim supporting references (knowledge under
testarch/, command workflows underworkflows/testarch/).tea-index.csv+knowledge/*.md
High-Level Cheat Sheets
Greenfield Feature Launch (Level 2)
| Phase | Test Architect | Dev / Team | Outputs |
|---|---|---|---|
| Setup | - | Analyst *product-brief, PM *plan-project, Architect *solution-architecture |
{output_folder}/product-brief*.md, PRD.md, epics.md, solution-architecture.md |
| Pre-Implementation | Run *framework (if harness missing), *ci, and *test-design |
Review risk/design/CI guidance, align backlog | Test scaffold, CI pipeline, risk and coverage strategy |
| Story Prep | - | Scrum Master *create-story, *story-context |
Story markdown + context XML |
| Implementation | (Optional) Trigger *atdd before dev to supply failing tests + checklist |
Implement story guided by ATDD checklist | Failing acceptance tests + implementation checklist |
| Post-Dev | Execute *automate, re-run *trace |
Address recommendations, update code/tests | Regression specs, refreshed coverage matrix |
| Release | Run *gate |
Confirm Definition of Done, share release notes | Gate YAML + release summary (owners, waivers) |
Execution Notes
- Run
*frameworkonly once per repo or when modern harness support is missing. *frameworkfollowed by*ciestablishes install + pipeline;*test-designthen handles risk scoring, mitigations, and scenario planning in one pass.- Use
*atddbefore coding when the team can adopt ATDD; share its checklist with the dev agent. - Post-implementation, keep
*tracecurrent, expand coverage with*automate, and finish with*gate.
Worked Example – “Nova CRM” Greenfield Feature
- Planning: Analyst runs
*product-brief; PM executes*plan-projectto produce PRD and epics; Architect completes*solution-architecturefor the new module. - Setup: TEA checks harness via
*framework, configures*ci, and runs*test-designto capture risk/coverage plans. - Story Prep: Scrum Master generates the story via
*create-story; PO validates using*assess-project-ready. - Implementation: TEA optionally runs
*atdd; Dev implements with guidance from failing tests and the plan. - Post-Dev and Release: TEA runs
*automate, re-runs*trace, and finishes with*gateto document the decision.
Brownfield Feature Enhancement (Level 3–4)
| Phase | Test Architect | Dev / Team | Outputs |
|---|---|---|---|
| Refresh Context | - | Analyst/PM/Architect rerun planning workflows | Updated planning artifacts in {output_folder} |
| Baseline Coverage | Run *trace to inventory existing tests |
Review matrix, flag hotspots | Coverage matrix + initial gate snippet |
| Risk Targeting | Run *test-design |
Align remediation/backlog priorities | Brownfield risk memo + scenario matrix |
| Story Prep | - | Scrum Master *create-story |
Updated story markdown |
| Implementation | (Optional) Run *atdd before dev |
Implement story, referencing checklist/tests | Failing acceptance tests + implementation checklist |
| Post-Dev | Apply *automate, re-run *trace, trigger *nfr-assess if needed |
Resolve gaps, update docs/tests | Regression specs, refreshed coverage matrix, NFR report |
| Release | Run *gate |
Product Owner *assess-project-ready, share release notes |
Gate YAML + release summary |
Execution Notes
- Lead with
*traceso remediation plans target true coverage gaps. Ensure*frameworkand*ciare in place early in the engagement; if the brownfield lacks them, run those setup steps immediately after refreshing context. *test-designshould highlight regression hotspots, mitigations, and P0 scenarios.- Use
*atddwhen stories benefit from ATDD; otherwise proceed to implementation and rely on post-dev automation. - After development, expand coverage with
*automate, re-run*trace, and close with*gate. Run*nfr-assessnow if non-functional risks weren't addressed earlier. - Product Owner
*assess-project-readyconfirms the team has artifacts before handoff or release.
Worked Example – “Atlas Payments” Brownfield Story
- Context Refresh: Analyst reruns
*product-brief; PM executes*plan-projectto update PRD, analysis, andepics.md; Architect triggers*solution-architecturecapturing legacy payment flows. - Baseline Coverage: TEA executes
*traceto record current coverage indocs/qa/assessments/atlas-payment-trace.md. - Risk and Design:
*test-designflags settlement edge cases, plans mitigations, and allocates new API/E2E scenarios with P0 priorities. - Story Prep: Scrum Master generates
stories/story-1.1.mdvia*create-story, automatically pulling updated context. - ATDD First: TEA runs
*atdd, producing failing Playwright specs undertests/e2e/payments/plus an implementation checklist. - Implementation: Dev pairs with the checklist/tests to deliver the story.
- Post-Implementation: TEA applies
*automate, re-runs*trace, performs*nfr-assessto validate SLAs, and closes with*gatemarking PASS with follow-ups.
Enterprise / Compliance Program (Level 4)
| Phase | Test Architect | Dev / Team | Outputs |
|---|---|---|---|
| Strategic Planning | - | Analyst/PM/Architect standard workflows | Enterprise-grade PRD, epics, architecture |
| Quality Planning | Run *framework, *test-design, *nfr-assess |
Review guidance, align compliance requirements | Harness scaffold, risk + coverage plan, NFR documentation |
| Pipeline Enablement | Configure *ci |
Coordinate secrets, pipeline approvals | .github/workflows/test.yml, helper scripts |
| Execution | Enforce *atdd, *automate, *trace per story |
Implement stories, resolve TEA findings | Tests, fixtures, coverage matrices |
| Release | Run *gate |
Capture sign-offs, archive artifacts | Updated assessments, gate YAML, audit trail |
Execution Notes
- Use
*atddfor every story when feasible so acceptance tests lead implementation in regulated environments. *ciscaffolds selective testing scripts, burn-in jobs, caching, and notifications for long-running suites.- Prior to release, rerun coverage (
*trace,*automate) and formalize the decision in*gate; store everything for audits. Call*nfr-assesshere if compliance/performance requirements weren't captured during planning.
Worked Example – “Helios Ledger” Enterprise Release
- Strategic Planning: Analyst/PM/Architect complete PRD, epics, and architecture using the standard workflows.
- Quality Planning: TEA runs
*framework,*test-design, and*nfr-assessto establish mitigations, coverage, and NFR targets. - Pipeline Setup: TEA configures CI via
*ciwith selective execution scripts. - Execution: For each story, TEA enforces
*atdd,*automate, and*trace; Dev teams iterate on the findings. - Release: TEA re-checks coverage and logs the final gate decision via
*gate, archiving artifacts for compliance.
Command Catalog
| Command | Task File | Primary Outputs | Notes |
|---|---|---|---|
*framework |
workflows/testarch/framework/instructions.md |
Playwright/Cypress scaffold, .env.example, .nvmrc, sample specs |
Use when no production-ready harness exists |
*atdd |
workflows/testarch/atdd/instructions.md |
Failing acceptance tests + implementation checklist | Requires approved story + harness |
*automate |
workflows/testarch/automate/instructions.md |
Prioritized specs, fixtures, README/script updates, DoD summary | Avoid duplicate coverage (see priority matrix) |
*ci |
workflows/testarch/ci/instructions.md |
CI workflow, selective test scripts, secrets checklist | Platform-aware (GitHub Actions default) |
*test-design |
workflows/testarch/test-design/instructions.md |
Combined risk assessment, mitigation plan, and coverage strategy | Handles risk scoring and test design in one pass |
*trace |
workflows/testarch/trace/instructions.md |
Coverage matrix, recommendations, gate snippet | Requires access to story/tests repositories |
*nfr-assess |
workflows/testarch/nfr-assess/instructions.md |
NFR assessment report with actions | Focus on security/performance/reliability |
*gate |
workflows/testarch/gate/instructions.md |
Gate YAML + summary (PASS/CONCERNS/FAIL/WAIVED) | Deterministic decision rules + rationale |
Command Guidance and Context Loading
- Each task now carries its own preflight/flow/deliverable guidance inline.
tea-index.csvmaps workflow needs to knowledge fragments; keep tags accurate as you add guidance.- Consider future modularization into orchestrated workflows if additional automation is needed.
- Update the fragment markdown files alongside workflow edits so guidance and outputs stay in sync.
Workflow Placement
The TEA stack has three tightly-linked layers:
- Agent spec (
agents/tea.md) – declares the persona, critical actions, and therun-workflowentries for every TEA command. Critical actions instruct the agent to loadtea-index.csvand then fetch only the fragments it needs fromknowledge/before giving guidance. - Knowledge index (
tea-index.csv) – catalogues each fragment with tags and file paths. Workflows call out the IDs they need (e.g.,risk-governance,fixture-architecture) so the agent loads targeted guidance instead of a monolithic brief. - Workflows (
workflows/testarch/*) – contain the task flows and referencetea-index.csvin their<flow>/<notes>sections to request specific fragments. Keeping all workflows in this directory ensures consistent discovery during planning (*framework), implementation (*atdd,*automate,*trace), and release (*nfr-assess,*gate).
This separation lets us expand the knowledge base without touching agent wiring and keeps every command remote-controllable via the standard BMAD workflow runner. As navigation improves, we can add lightweight entrypoints or tags in the index without changing where workflows live.
Appendix
- Supporting Knowledge:
tea-index.csv– Catalog of knowledge fragments with tags and file paths underknowledge/for task-specific loading.knowledge/*.md– Focused summaries (fixtures, network, CI, levels, priorities, etc.) distilled from Murat’s external resources.test-resources-for-ai-flat.txt– Raw 347 KB archive retained for manual deep dives when a fragment needs source validation.