Story: {STORY_TITLE} Date: {DATE} Evaluator: {user_name or TEA Agent}
Note: This workflow does not generate tests. If gaps exist, run *atdd or *automate to create coverage.
| Priority | Total Criteria | FULL Coverage | Coverage % | Status |
|---|---|---|---|---|
| P0 | {P0_TOTAL} | {P0_FULL} | {P0_PCT}% | {P0_STATUS} |
| P1 | {P1_TOTAL} | {P1_FULL} | {P1_PCT}% | {P1_STATUS} |
| P2 | {P2_TOTAL} | {P2_FULL} | {P2_PCT}% | {P2_STATUS} |
| P3 | {P3_TOTAL} | {P3_FULL} | {P3_PCT}% | {P3_STATUS} |
| Total | {TOTAL} | {FULL} | {PCT}% | {STATUS} |
Legend:
Tests:
{TEST_ID} - {TEST_FILE}:{LINE}{TEST_ID_2} - {TEST_FILE_2}:{LINE}Gaps: (if PARTIAL or UNIT-ONLY or INTEGRATION-ONLY)
Recommendation: {RECOMMENDATION_TEXT}
1.3-E2E-001 - tests/e2e/auth.spec.ts:121.3-UNIT-001 - tests/unit/auth-service.spec.ts:8Tests:
1.3-E2E-003 - tests/e2e/auth.spec.ts:44Gaps:
Recommendation: Add 1.3-API-001 for email service integration testing and 1.3-UNIT-003 for token generation logic. Add 1.3-E2E-004 for error path validation (expired/invalid tokens).
{CRITICAL_GAP_COUNT} gaps found. Do not release until resolved.
{HIGH_GAP_COUNT} gaps found. Address before PR merge.
{MEDIUM_GAP_COUNT} gaps found. Address in nightly test improvements.
{LOW_GAP_COUNT} gaps found. Optional - add if time permits.
BLOCKER Issues ❌
{TEST_ID} - {ISSUE_DESCRIPTION} - {REMEDIATION}WARNING Issues ⚠️
{TEST_ID} - {ISSUE_DESCRIPTION} - {REMEDIATION}INFO Issues ℹ️
{TEST_ID} - {ISSUE_DESCRIPTION} - {REMEDIATION}WARNING Issues ⚠️
1.3-E2E-001 - 145 seconds (exceeds 90s target) - Optimize fixture setup to reduce test duration1.3-UNIT-005 - 320 lines (exceeds 300 line limit) - Split into multiple focused test filesINFO Issues ℹ️
1.3-E2E-002 - Missing Given-When-Then structure - Refactor describe block to use BDD format{PASSING_TEST_COUNT}/{TOTAL_TEST_COUNT} tests ({PASSING_PCT}%) meet all quality criteria ✅
| Test Level | Tests | Criteria Covered | Coverage % |
|---|---|---|---|
| E2E | {E2E_COUNT} | {E2E_CRITERIA} | {E2E_PCT}% |
| API | {API_COUNT} | {API_CRITERIA} | {API_PCT}% |
| Component | {COMP_COUNT} | {COMP_CRITERIA} | {COMP_PCT}% |
| Unit | {UNIT_COUNT} | {UNIT_CRITERIA} | {UNIT_PCT}% |
| Total | {TOTAL_TESTS} | {TOTAL_CRITERIA} | {TOTAL_PCT}% |
Immediate Actions (Before PR Merge)
1.3-API-001 for email service integration and 1.3-E2E-004 for error path validation. P1 coverage currently at 80%, target is 90%.1.3-E2E-001 to use faster fixture setup. Currently 145s, target is <90s.Short-term Actions (This Sprint)
1.3-E2E-005). Currently UNIT-ONLY coverage.1.3-UNIT-005 (320 lines) into multiple focused test files (<300 lines each).Long-term Actions (Backlog)
Gate Type: {story | epic | release | hotfix} Decision Mode: {deterministic | manual}
Priority Breakdown:
Overall Pass Rate: {overall_pass_rate}% {✅ | ⚠️ | ❌}
Test Results Source: {CI_run_id | test_report_url | local_run}
Requirements Coverage:
Code Coverage (if available):
Coverage Source: {coverage_report_url | coverage_file_path}
Security: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
Performance: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
Reliability: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
Maintainability: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
NFR Source: {nfr_assessment_file_path | not_assessed}
Burn-in Results (if available):
Flaky Tests List (if any):
Burn-in Source: {CI_burn_in_run_id | not_available}
| Criterion | Threshold | Actual | Status | | --------------------- | --------- | ------------------------- | -------- | -------- | | P0 Coverage | 100% | {p0_coverage}% | {✅ PASS | ❌ FAIL} | | P0 Test Pass Rate | 100% | {p0_pass_rate}% | {✅ PASS | ❌ FAIL} | | Security Issues | 0 | {security_issue_count} | {✅ PASS | ❌ FAIL} | | Critical NFR Failures | 0 | {critical_nfr_fail_count} | {✅ PASS | ❌ FAIL} | | Flaky Tests | 0 | {flaky_test_count} | {✅ PASS | ❌ FAIL} |
P0 Evaluation: {✅ ALL PASS | ❌ ONE OR MORE FAILED}
| Criterion | Threshold | Actual | Status | | ---------------------- | ------------------------- | -------------------- | -------- | ----------- | -------- | | P1 Coverage | ≥{min_p1_coverage}% | {p1_coverage}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} | | P1 Test Pass Rate | ≥{min_p1_pass_rate}% | {p1_pass_rate}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} | | Overall Test Pass Rate | ≥{min_overall_pass_rate}% | {overall_pass_rate}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} | | Overall Coverage | ≥{min_coverage}% | {overall_coverage}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} |
P1 Evaluation: {✅ ALL PASS | ⚠️ SOME CONCERNS | ❌ FAILED}
| Criterion | Actual | Notes |
|---|---|---|
| P2 Test Pass Rate | {p2_pass_rate}% | {allow_p2_failures ? "Tracked, doesn't block" : "Evaluated"} |
| P3 Test Pass Rate | {p3_pass_rate}% | {allow_p3_failures ? "Tracked, doesn't block" : "Evaluated"} |
{Explain decision based on criteria evaluation}
{Highlight key evidence that drove decision}
{Note any assumptions or caveats}
Example (PASS):
All P0 criteria met with 100% coverage and pass rates across critical tests. All P1 criteria exceeded thresholds with 98% overall pass rate and 92% coverage. No security issues detected. No flaky tests in validation. Feature is ready for production deployment with standard monitoring.
Example (CONCERNS):
All P0 criteria met, ensuring critical user journeys are protected. However, P1 coverage (88%) falls below threshold (90%) due to missing E2E test for AC-5 edge case. Overall pass rate (96%) is excellent. Issues are non-critical and have acceptable workarounds. Risk is low enough to deploy with enhanced monitoring.
Example (FAIL):
CRITICAL BLOCKERS DETECTED:
- P0 coverage incomplete (80%) - AC-2 security validation missing
- P0 test failures (75% pass rate) in core search functionality
- Unresolved SQL injection vulnerability in search filter (CRITICAL)
Release MUST BE BLOCKED until P0 issues are resolved. Security vulnerability cannot be waived.
Example (WAIVED):
Original decision was FAIL due to P0 test failure in legacy Excel 2007 export module (affects <1% of users). However, release contains critical GDPR compliance features required by regulatory deadline (Oct 15). Business has approved waiver given:
- Regulatory priority overrides legacy module risk
- Workaround available (use Excel 2010+)
- Issue will be fixed in v2.4.1 hotfix (due Oct 20)
- Enhanced monitoring in place
List unresolved P1/P2 issues that don't block release but should be tracked:
Overall Residual Risk: {LOW | MEDIUM | HIGH}
Original Decision: ❌ FAIL
Reason for Failure:
Waiver Information:
Monitoring Plan:
Remediation Plan:
Business Justification: {detailed_explanation_of_why_waiver_is_acceptable}
Top blockers requiring immediate attention:
| Priority | Issue | Description | Owner | Due Date | Status |
|---|---|---|---|---|---|
| P0 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
| P0 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
| P1 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
Blocking Issues Count: {p0_blocker_count} P0 blockers, {p1_blocker_count} P1 issues
Proceed to deployment
Post-Deployment Monitoring
Success Criteria
Deploy with Enhanced Monitoring
Create Remediation Backlog
Post-Deployment Actions
Block Deployment Immediately
Fix Critical Issues
Re-Run Gate After Fixes
bmad tea *trace workflowDeploy with Business Approval
Aggressive Monitoring
Mandatory Remediation
Immediate Actions (next 24-48 hours):
Follow-up Actions (next sprint/release):
Stakeholder Communication:
traceability_and_gate:
# Phase 1: Traceability
traceability:
story_id: "{STORY_ID}"
date: "{DATE}"
coverage:
overall: {OVERALL_PCT}%
p0: {P0_PCT}%
p1: {P1_PCT}%
p2: {P2_PCT}%
p3: {P3_PCT}%
gaps:
critical: {CRITICAL_COUNT}
high: {HIGH_COUNT}
medium: {MEDIUM_COUNT}
low: {LOW_COUNT}
quality:
passing_tests: {PASSING_COUNT}
total_tests: {TOTAL_TESTS}
blocker_issues: {BLOCKER_COUNT}
warning_issues: {WARNING_COUNT}
recommendations:
- "{RECOMMENDATION_1}"
- "{RECOMMENDATION_2}"
# Phase 2: Gate Decision
gate_decision:
decision: "{PASS | CONCERNS | FAIL | WAIVED}"
gate_type: "{story | epic | release | hotfix}"
decision_mode: "{deterministic | manual}"
criteria:
p0_coverage: {p0_coverage}%
p0_pass_rate: {p0_pass_rate}%
p1_coverage: {p1_coverage}%
p1_pass_rate: {p1_pass_rate}%
overall_pass_rate: {overall_pass_rate}%
overall_coverage: {overall_coverage}%
security_issues: {security_issue_count}
critical_nfrs_fail: {critical_nfr_fail_count}
flaky_tests: {flaky_test_count}
thresholds:
min_p0_coverage: 100
min_p0_pass_rate: 100
min_p1_coverage: {min_p1_coverage}
min_p1_pass_rate: {min_p1_pass_rate}
min_overall_pass_rate: {min_overall_pass_rate}
min_coverage: {min_coverage}
evidence:
test_results: "{CI_run_id | test_report_url}"
traceability: "{trace_file_path}"
nfr_assessment: "{nfr_file_path}"
code_coverage: "{coverage_report_url}"
next_steps: "{brief_summary_of_recommendations}"
waiver: # Only if WAIVED
reason: "{business_justification}"
approver: "{name}, {role}"
expiry: "{YYYY-MM-DD}"
remediation_due: "{YYYY-MM-DD}"
Phase 1 - Traceability Assessment:
Phase 2 - Gate Decision:
Overall Status: {STATUS} {STATUS_ICON}
Next Steps:
Generated: {DATE} Workflow: testarch-trace v4.0 (Enhanced with Gate Decision)