3.3 KiB
name, description, nextStepFile, knowledgeIndex, outputFile
| name | description | nextStepFile | knowledgeIndex | outputFile |
|---|---|---|---|---|
| step-01-load-context | Load knowledge base, determine scope, and gather context | ./step-02-discover-tests.md | {project-root}/_bmad/tea/testarch/tea-index.csv | {test_artifacts}/test-review.md |
Step 1: Load Context & Knowledge Base
STEP GOAL
Determine review scope, load required knowledge fragments, and gather related artifacts.
MANDATORY EXECUTION RULES
- 📖 Read the entire step file before acting
- ✅ Speak in
{communication_language}
EXECUTION PROTOCOLS:
- 🎯 Follow the MANDATORY SEQUENCE exactly
- 💾 Record outputs before proceeding
- 📖 Load the next step only when instructed
CONTEXT BOUNDARIES:
- Available context: config, loaded artifacts, and knowledge fragments
- Focus: this step's goal only
- Limits: do not execute future steps
- Dependencies: prior steps' outputs (if any)
MANDATORY SEQUENCE
CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
1. Determine Scope
Use review_scope:
- single: one file
- directory: all tests in folder
- suite: all tests in repo
If unclear, ask the user.
2. Load Knowledge Base
From {knowledgeIndex} load:
Read {config_source} and check tea_use_playwright_utils and tea_browser_automation to select the correct fragment set.
Core:
test-quality.mddata-factories.mdtest-levels-framework.mdselective-testing.mdtest-healing-patterns.mdselector-resilience.mdtiming-debugging.md
If Playwright Utils enabled:
overview.md,api-request.md,network-recorder.md,auth-session.md,intercept-network-call.md,recurse.md,log.md,file-utils.md,burn-in.md,network-error-monitor.md,fixtures-composition.md
If disabled:
fixture-architecture.mdnetwork-first.mdplaywright-config.mdcomponent-tdd.mdci-burn-in.md
Playwright CLI (if tea_browser_automation is "cli" or "auto"):
playwright-cli.md
MCP Patterns (if tea_browser_automation is "mcp" or "auto"):
- (existing MCP-related fragments, if any are added in future)
3. Gather Context Artifacts
If available:
- Story file (acceptance criteria)
- Test design doc (priorities)
- Framework config
Summarize what was found.
Coverage mapping and coverage gates are out of scope in test-review. Route those concerns to trace.
4. Save Progress
Save this step's accumulated work to {outputFile}.
-
If
{outputFile}does not exist (first save), create it using the workflow template (if available) with YAML frontmatter:--- stepsCompleted: ['step-01-load-context'] lastStep: 'step-01-load-context' lastSaved: '{date}' ---Then write this step's output below the frontmatter.
-
If
{outputFile}already exists, update:- Add
'step-01-load-context'tostepsCompletedarray (only if not already present) - Set
lastStep: 'step-01-load-context' - Set
lastSaved: '{date}' - Append this step's output to the appropriate section of the document.
- Add
Load next step: {nextStepFile}
🚨 SYSTEM SUCCESS/FAILURE METRICS:
✅ SUCCESS:
- Step completed in full with required outputs
❌ SYSTEM FAILURE:
- Skipped sequence steps or missing outputs Master Rule: Skipping steps is FORBIDDEN.