Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

trace-template.md 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. ---
  2. stepsCompleted: []
  3. lastStep: ''
  4. lastSaved: ''
  5. workflowType: 'testarch-trace'
  6. inputDocuments: []
  7. coverageBasis: ''
  8. oracleConfidence: ''
  9. oracleResolutionMode: ''
  10. oracleSources: []
  11. externalPointerStatus: ''
  12. ---
  13. # Traceability Matrix & Gate Decision - {TRACE_TARGET_LABEL}
  14. **Target:** {TRACE_TARGET_LABEL}
  15. **Date:** {DATE}
  16. **Evaluator:** {user_name or TEA Agent}
  17. **Coverage Oracle:** {COVERAGE_BASIS}
  18. **Oracle Confidence:** {ORACLE_CONFIDENCE}
  19. **Oracle Sources:** {ORACLE_SOURCES}
  20. ---
  21. Note: This workflow does not generate tests. If gaps exist, run `*atdd` or `*automate` to create coverage.
  22. ## PHASE 1: REQUIREMENTS TRACEABILITY
  23. ### Coverage Summary
  24. | Priority | Total Criteria | FULL Coverage | Coverage % | Status |
  25. | --------- | -------------- | ------------- | ---------- | ------------ |
  26. | P0 | {P0_TOTAL} | {P0_FULL} | {P0_PCT}% | {P0_STATUS} |
  27. | P1 | {P1_TOTAL} | {P1_FULL} | {P1_PCT}% | {P1_STATUS} |
  28. | P2 | {P2_TOTAL} | {P2_FULL} | {P2_PCT}% | {P2_STATUS} |
  29. | P3 | {P3_TOTAL} | {P3_FULL} | {P3_PCT}% | {P3_STATUS} |
  30. | **Total** | **{TOTAL}** | **{FULL}** | **{PCT}%** | **{STATUS}** |
  31. **Legend:**
  32. - ✅ PASS - Coverage meets quality gate threshold
  33. - ⚠️ WARN - Coverage below threshold but not critical
  34. - ❌ FAIL - Coverage below minimum threshold (blocker)
  35. ---
  36. ### Detailed Mapping
  37. #### {CRITERION_ID}: {CRITERION_DESCRIPTION} ({PRIORITY})
  38. - **Coverage:** {COVERAGE_STATUS} {STATUS_ICON}
  39. - **Tests:**
  40. - `{TEST_ID}` - {TEST_FILE}:{LINE}
  41. - **Given:** {GIVEN}
  42. - **When:** {WHEN}
  43. - **Then:** {THEN}
  44. - `{TEST_ID_2}` - {TEST_FILE_2}:{LINE}
  45. - **Given:** {GIVEN_2}
  46. - **When:** {WHEN_2}
  47. - **Then:** {THEN_2}
  48. - **Gaps:** (if PARTIAL or UNIT-ONLY or INTEGRATION-ONLY)
  49. - Missing: {MISSING_SCENARIO_1}
  50. - Missing: {MISSING_SCENARIO_2}
  51. - **Recommendation:** {RECOMMENDATION_TEXT}
  52. ---
  53. #### Example: AC-1: User can login with email and password (P0)
  54. - **Coverage:** FULL ✅
  55. - **Tests:**
  56. - `1.3-E2E-001` - tests/e2e/auth.spec.ts:12
  57. - **Given:** User has valid credentials
  58. - **When:** User submits login form
  59. - **Then:** User is redirected to dashboard
  60. - `1.3-UNIT-001` - tests/unit/auth-service.spec.ts:8
  61. - **Given:** Valid email and password hash
  62. - **When:** validateCredentials is called
  63. - **Then:** Returns user object
  64. ---
  65. #### Example: AC-3: User can reset password via email (P1)
  66. - **Coverage:** PARTIAL ⚠️
  67. - **Tests:**
  68. - `1.3-E2E-003` - tests/e2e/auth.spec.ts:44
  69. - **Given:** User requests password reset
  70. - **When:** User clicks reset link in email
  71. - **Then:** User can set new password
  72. - **Gaps:**
  73. - Missing: Email delivery validation
  74. - Missing: Expired token handling (error path)
  75. - Missing: Invalid token handling (security test)
  76. - Missing: Unit test for token generation logic
  77. - **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).
  78. ---
  79. ### Gap Analysis
  80. #### Critical Gaps (BLOCKER) ❌
  81. {CRITICAL_GAP_COUNT} gaps found. **Do not release until resolved.**
  82. 1. **{CRITERION_ID}: {CRITERION_DESCRIPTION}** (P0)
  83. - Current Coverage: {COVERAGE_STATUS}
  84. - Missing Tests: {MISSING_TEST_DESCRIPTION}
  85. - Recommend: {RECOMMENDED_TEST_ID} ({RECOMMENDED_TEST_LEVEL})
  86. - Impact: {IMPACT_DESCRIPTION}
  87. ---
  88. #### High Priority Gaps (PR BLOCKER) ⚠️
  89. {HIGH_GAP_COUNT} gaps found. **Address before PR merge.**
  90. 1. **{CRITERION_ID}: {CRITERION_DESCRIPTION}** (P1)
  91. - Current Coverage: {COVERAGE_STATUS}
  92. - Missing Tests: {MISSING_TEST_DESCRIPTION}
  93. - Recommend: {RECOMMENDED_TEST_ID} ({RECOMMENDED_TEST_LEVEL})
  94. - Impact: {IMPACT_DESCRIPTION}
  95. ---
  96. #### Medium Priority Gaps (Nightly) ⚠️
  97. {MEDIUM_GAP_COUNT} gaps found. **Address in nightly test improvements.**
  98. 1. **{CRITERION_ID}: {CRITERION_DESCRIPTION}** (P2)
  99. - Current Coverage: {COVERAGE_STATUS}
  100. - Recommend: {RECOMMENDED_TEST_ID} ({RECOMMENDED_TEST_LEVEL})
  101. ---
  102. #### Low Priority Gaps (Optional) ℹ️
  103. {LOW_GAP_COUNT} gaps found. **Optional - add if time permits.**
  104. 1. **{CRITERION_ID}: {CRITERION_DESCRIPTION}** (P3)
  105. - Current Coverage: {COVERAGE_STATUS}
  106. ---
  107. ### Coverage Heuristics Findings
  108. #### Endpoint Coverage Gaps
  109. - Endpoints without direct API tests: {endpoint_gap_count}
  110. - Examples:
  111. - {endpoint_gap_1}
  112. - {endpoint_gap_2}
  113. #### Auth/Authz Negative-Path Gaps
  114. - Criteria missing denied/invalid-path tests: {auth_negative_gap_count}
  115. - Examples:
  116. - {auth_gap_1}
  117. - {auth_gap_2}
  118. #### Happy-Path-Only Criteria
  119. - Criteria missing error/edge scenarios: {happy_path_only_gap_count}
  120. - Examples:
  121. - {happy_path_gap_1}
  122. - {happy_path_gap_2}
  123. ---
  124. ### Quality Assessment
  125. #### Tests with Issues
  126. **BLOCKER Issues** ❌
  127. - `{TEST_ID}` - {ISSUE_DESCRIPTION} - {REMEDIATION}
  128. **WARNING Issues** ⚠️
  129. - `{TEST_ID}` - {ISSUE_DESCRIPTION} - {REMEDIATION}
  130. **INFO Issues** ℹ️
  131. - `{TEST_ID}` - {ISSUE_DESCRIPTION} - {REMEDIATION}
  132. ---
  133. #### Example Quality Issues
  134. **WARNING Issues** ⚠️
  135. - `1.3-E2E-001` - 145 seconds (exceeds 90s target) - Optimize fixture setup to reduce test duration
  136. - `1.3-UNIT-005` - 320 lines (exceeds 300 line limit) - Split into multiple focused test files
  137. **INFO Issues** ℹ️
  138. - `1.3-E2E-002` - Missing Given-When-Then structure - Refactor describe block to use BDD format
  139. ---
  140. #### Tests Passing Quality Gates
  141. **{PASSING_TEST_COUNT}/{TOTAL_TEST_COUNT} tests ({PASSING_PCT}%) meet all quality criteria** ✅
  142. ---
  143. ### Duplicate Coverage Analysis
  144. #### Acceptable Overlap (Defense in Depth)
  145. - {CRITERION_ID}: Tested at unit (business logic) and E2E (user journey) ✅
  146. #### Unacceptable Duplication ⚠️
  147. - {CRITERION_ID}: Same validation at E2E and Component level
  148. - Recommendation: Remove {TEST_ID} or consolidate with {OTHER_TEST_ID}
  149. ---
  150. ### Coverage by Test Level
  151. | Test Level | Tests | Criteria Covered | Coverage % |
  152. | ---------- | ----------------- | -------------------- | ---------------- |
  153. | E2E | {E2E_COUNT} | {E2E_CRITERIA} | {E2E_PCT}% |
  154. | API | {API_COUNT} | {API_CRITERIA} | {API_PCT}% |
  155. | Component | {COMP_COUNT} | {COMP_CRITERIA} | {COMP_PCT}% |
  156. | Unit | {UNIT_COUNT} | {UNIT_CRITERIA} | {UNIT_PCT}% |
  157. | **Total** | **{TOTAL_TESTS}** | **{TOTAL_CRITERIA}** | **{TOTAL_PCT}%** |
  158. ---
  159. ### Traceability Recommendations
  160. #### Immediate Actions (Before PR Merge)
  161. 1. **{ACTION_1}** - {DESCRIPTION}
  162. 2. **{ACTION_2}** - {DESCRIPTION}
  163. #### Short-term Actions (This Milestone)
  164. 1. **{ACTION_1}** - {DESCRIPTION}
  165. 2. **{ACTION_2}** - {DESCRIPTION}
  166. #### Long-term Actions (Backlog)
  167. 1. **{ACTION_1}** - {DESCRIPTION}
  168. ---
  169. #### Example Recommendations
  170. **Immediate Actions (Before PR Merge)**
  171. 1. **Add P1 Password Reset Tests** - Implement `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%.
  172. 2. **Optimize Slow E2E Test** - Refactor `1.3-E2E-001` to use faster fixture setup. Currently 145s, target is <90s.
  173. **Short-term Actions (This Milestone)**
  174. 1. **Enhance P2 Coverage** - Add E2E validation for session timeout (`1.3-E2E-005`). Currently UNIT-ONLY coverage.
  175. 2. **Split Large Test File** - Break `1.3-UNIT-005` (320 lines) into multiple focused test files (<300 lines each).
  176. **Long-term Actions (Backlog)**
  177. 1. **Enrich P3 Coverage** - Add tests for edge cases in P3 criteria if time permits.
  178. ---
  179. ## PHASE 2: QUALITY GATE DECISION
  180. **Gate Type:** {story | epic | release | hotfix}
  181. **Decision Mode:** {deterministic | manual}
  182. ---
  183. ### Evidence Summary
  184. #### Test Execution Results
  185. - **Total Tests**: {total_count}
  186. - **Passed**: {passed_count} ({pass_percentage}%)
  187. - **Failed**: {failed_count} ({fail_percentage}%)
  188. - **Skipped**: {skipped_count} ({skip_percentage}%)
  189. - **Duration**: {total_duration}
  190. **Priority Breakdown:**
  191. - **P0 Tests**: {p0_passed}/{p0_total} passed ({p0_pass_rate}%) {✅ | ❌}
  192. - **P1 Tests**: {p1_passed}/{p1_total} passed ({p1_pass_rate}%) {✅ | ⚠️ | ❌}
  193. - **P2 Tests**: {p2_passed}/{p2_total} passed ({p2_pass_rate}%) {informational}
  194. - **P3 Tests**: {p3_passed}/{p3_total} passed ({p3_pass_rate}%) {informational}
  195. **Overall Pass Rate**: {overall_pass_rate}% {✅ | ⚠️ | ❌}
  196. **Test Results Source**: {CI_run_id | test_report_url | local_run}
  197. ---
  198. #### Coverage Summary (from Phase 1)
  199. **Requirements Coverage:**
  200. - **P0 Acceptance Criteria**: {p0_covered}/{p0_total} covered ({p0_coverage}%) {✅ | ❌}
  201. - **P1 Acceptance Criteria**: {p1_covered}/{p1_total} covered ({p1_coverage}%) {✅ | ⚠️ | ❌}
  202. - **P2 Acceptance Criteria**: {p2_covered}/{p2_total} covered ({p2_coverage}%) {informational}
  203. - **Overall Coverage**: {overall_coverage}%
  204. **Code Coverage** (if available):
  205. - **Line Coverage**: {line_coverage}% {✅ | ⚠️ | ❌}
  206. - **Branch Coverage**: {branch_coverage}% {✅ | ⚠️ | ❌}
  207. - **Function Coverage**: {function_coverage}% {✅ | ⚠️ | ❌}
  208. **Coverage Source**: {coverage_report_url | coverage_file_path}
  209. ---
  210. #### Non-Functional Requirements (NFRs)
  211. **Security**: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
  212. - Security Issues: {security_issue_count}
  213. - {details_if_issues}
  214. **Performance**: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
  215. - {performance_metrics_summary}
  216. **Reliability**: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
  217. - {reliability_metrics_summary}
  218. **Maintainability**: {PASS | CONCERNS | FAIL | NOT_ASSESSED} {✅ | ⚠️ | ❌}
  219. - {maintainability_metrics_summary}
  220. **NFR Source**: {nfr_assessment_file_path | not_assessed}
  221. ---
  222. #### Flakiness Validation
  223. **Burn-in Results** (if available):
  224. - **Burn-in Iterations**: {iteration_count} (e.g., 10)
  225. - **Flaky Tests Detected**: {flaky_test_count} {✅ if 0 | ❌ if >0}
  226. - **Stability Score**: {stability_percentage}%
  227. **Flaky Tests List** (if any):
  228. - {flaky_test_1_name} - {failure_rate}
  229. - {flaky_test_2_name} - {failure_rate}
  230. **Burn-in Source**: {CI_burn_in_run_id | not_available}
  231. ---
  232. ### Decision Criteria Evaluation
  233. #### P0 Criteria (Must ALL Pass)
  234. | Criterion | Threshold | Actual | Status |
  235. | --------------------- | --------- | ------------------------- | -------- | -------- |
  236. | P0 Coverage | 100% | {p0_coverage}% | {✅ PASS | ❌ FAIL} |
  237. | P0 Test Pass Rate | 100% | {p0_pass_rate}% | {✅ PASS | ❌ FAIL} |
  238. | Security Issues | 0 | {security_issue_count} | {✅ PASS | ❌ FAIL} |
  239. | Critical NFR Failures | 0 | {critical_nfr_fail_count} | {✅ PASS | ❌ FAIL} |
  240. | Flaky Tests | 0 | {flaky_test_count} | {✅ PASS | ❌ FAIL} |
  241. **P0 Evaluation**: {✅ ALL PASS | ❌ ONE OR MORE FAILED}
  242. ---
  243. #### P1 Criteria (Required for PASS, May Accept for CONCERNS)
  244. | Criterion | Threshold | Actual | Status |
  245. | ---------------------- | ------------------------- | -------------------- | -------- | ----------- | -------- |
  246. | P1 Coverage | ≥{min_p1_coverage}% | {p1_coverage}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} |
  247. | P1 Test Pass Rate | ≥{min_p1_pass_rate}% | {p1_pass_rate}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} |
  248. | Overall Test Pass Rate | ≥{min_overall_pass_rate}% | {overall_pass_rate}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} |
  249. | Overall Coverage | ≥{min_coverage}% | {overall_coverage}% | {✅ PASS | ⚠️ CONCERNS | ❌ FAIL} |
  250. **P1 Evaluation**: {✅ ALL PASS | ⚠️ SOME CONCERNS | ❌ FAILED}
  251. ---
  252. #### P2/P3 Criteria (Informational, Don't Block)
  253. | Criterion | Actual | Notes |
  254. | ----------------- | --------------- | ------------------------------------------------------------ |
  255. | P2 Test Pass Rate | {p2_pass_rate}% | {allow_p2_failures ? "Tracked, doesn't block" : "Evaluated"} |
  256. | P3 Test Pass Rate | {p3_pass_rate}% | {allow_p3_failures ? "Tracked, doesn't block" : "Evaluated"} |
  257. ---
  258. ### GATE DECISION: {PASS | CONCERNS | FAIL | WAIVED}
  259. ---
  260. ### Rationale
  261. {Explain decision based on criteria evaluation}
  262. {Highlight key evidence that drove decision}
  263. {Note any assumptions or caveats}
  264. **Example (PASS):**
  265. > 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.
  266. **Example (CONCERNS):**
  267. > 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.
  268. **Example (FAIL):**
  269. > CRITICAL BLOCKERS DETECTED:
  270. >
  271. > 1. P0 coverage incomplete (80%) - AC-2 security validation missing
  272. > 2. P0 test failures (75% pass rate) in core search functionality
  273. > 3. Unresolved SQL injection vulnerability in search filter (CRITICAL)
  274. >
  275. > Release MUST BE BLOCKED until P0 issues are resolved. Security vulnerability cannot be waived.
  276. **Example (WAIVED):**
  277. > 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:
  278. >
  279. > - Regulatory priority overrides legacy module risk
  280. > - Workaround available (use Excel 2010+)
  281. > - Issue will be fixed in v2.4.1 hotfix (due Oct 20)
  282. > - Enhanced monitoring in place
  283. ---
  284. ### {Section: Delete if not applicable}
  285. #### Residual Risks (For CONCERNS or WAIVED)
  286. List unresolved P1/P2 issues that don't block release but should be tracked:
  287. 1. **{Risk Description}**
  288. - **Priority**: P1 | P2
  289. - **Probability**: Low | Medium | High
  290. - **Impact**: Low | Medium | High
  291. - **Risk Score**: {probability × impact}
  292. - **Mitigation**: {workaround or monitoring plan}
  293. - **Remediation**: {fix in next milestone/release}
  294. **Overall Residual Risk**: {LOW | MEDIUM | HIGH}
  295. ---
  296. #### Waiver Details (For WAIVED only)
  297. **Original Decision**: ❌ FAIL
  298. **Reason for Failure**:
  299. - {list_of_blocking_issues}
  300. **Waiver Information**:
  301. - **Waiver Reason**: {business_justification}
  302. - **Waiver Approver**: {name}, {role} (e.g., Jane Doe, VP Engineering)
  303. - **Approval Date**: {YYYY-MM-DD}
  304. - **Waiver Expiry**: {YYYY-MM-DD} (**NOTE**: Does NOT apply to next release)
  305. **Monitoring Plan**:
  306. - {enhanced_monitoring_1}
  307. - {enhanced_monitoring_2}
  308. - {escalation_criteria}
  309. **Remediation Plan**:
  310. - **Fix Target**: {next_release_version} (e.g., v2.4.1 hotfix)
  311. - **Due Date**: {YYYY-MM-DD}
  312. - **Owner**: {team_or_person}
  313. - **Verification**: {how_fix_will_be_verified}
  314. **Business Justification**:
  315. {detailed_explanation_of_why_waiver_is_acceptable}
  316. ---
  317. #### Critical Issues (For FAIL or CONCERNS)
  318. Top blockers requiring immediate attention:
  319. | Priority | Issue | Description | Owner | Due Date | Status |
  320. | -------- | ------------- | ------------------- | ------------ | ------------ | ------------------ |
  321. | P0 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
  322. | P0 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
  323. | P1 | {issue_title} | {brief_description} | {owner_name} | {YYYY-MM-DD} | {OPEN/IN_PROGRESS} |
  324. **Blocking Issues Count**: {p0_blocker_count} P0 blockers, {p1_blocker_count} P1 issues
  325. ---
  326. ### Gate Recommendations
  327. #### For PASS Decision ✅
  328. 1. **Proceed to deployment**
  329. - Deploy to staging environment
  330. - Validate with smoke tests
  331. - Monitor key metrics for 24-48 hours
  332. - Deploy to production with standard monitoring
  333. 2. **Post-Deployment Monitoring**
  334. - {metric_1_to_monitor}
  335. - {metric_2_to_monitor}
  336. - {alert_thresholds}
  337. 3. **Success Criteria**
  338. - {success_criterion_1}
  339. - {success_criterion_2}
  340. ---
  341. #### For CONCERNS Decision ⚠️
  342. 1. **Deploy with Enhanced Monitoring**
  343. - Deploy to staging with extended validation period
  344. - Enable enhanced logging/monitoring for known risk areas:
  345. - {risk_area_1}
  346. - {risk_area_2}
  347. - Set aggressive alerts for potential issues
  348. - Deploy to production with caution
  349. 2. **Create Remediation Backlog**
  350. - Create story: "{fix_title_1}" (Priority: {priority})
  351. - Create story: "{fix_title_2}" (Priority: {priority})
  352. - Target milestone: {next_milestone}
  353. 3. **Post-Deployment Actions**
  354. - Monitor {specific_areas} closely for {time_period}
  355. - Weekly status updates on remediation progress
  356. - Re-assess after fixes deployed
  357. ---
  358. #### For FAIL Decision ❌
  359. 1. **Block Deployment Immediately**
  360. - Do NOT deploy to any environment
  361. - Notify stakeholders of blocking issues
  362. - Escalate to tech lead and PM
  363. 2. **Fix Critical Issues**
  364. - Address P0 blockers listed in Critical Issues section
  365. - Owner assignments confirmed
  366. - Due dates agreed upon
  367. - Daily standup on blocker resolution
  368. 3. **Re-Run Gate After Fixes**
  369. - Re-run full test suite after fixes
  370. - Re-run `bmad tea *trace` workflow
  371. - Verify decision is PASS before deploying
  372. ---
  373. #### For WAIVED Decision 🔓
  374. 1. **Deploy with Business Approval**
  375. - Confirm waiver approver has signed off
  376. - Document waiver in release notes
  377. - Notify all stakeholders of waived risks
  378. 2. **Aggressive Monitoring**
  379. - {enhanced_monitoring_plan}
  380. - {escalation_procedures}
  381. - Daily checks on waived risk areas
  382. 3. **Mandatory Remediation**
  383. - Fix MUST be completed by {due_date}
  384. - Issue CANNOT be waived in next release
  385. - Track remediation progress weekly
  386. - Verify fix in next gate
  387. ---
  388. ### Next Steps
  389. **Immediate Actions** (next 24-48 hours):
  390. 1. {action_1}
  391. 2. {action_2}
  392. 3. {action_3}
  393. **Follow-up Actions** (next milestone/release):
  394. 1. {action_1}
  395. 2. {action_2}
  396. 3. {action_3}
  397. **Stakeholder Communication**:
  398. - Notify PM: {decision_summary}
  399. - Notify SM: {decision_summary}
  400. - Notify DEV lead: {decision_summary}
  401. ---
  402. ## Integrated YAML Snippet (CI/CD)
  403. ```yaml
  404. traceability_and_gate:
  405. # Phase 1: Traceability
  406. traceability:
  407. story_id: "{STORY_ID}"
  408. date: "{DATE}"
  409. coverage:
  410. overall: {OVERALL_PCT}%
  411. p0: {P0_PCT}%
  412. p1: {P1_PCT}%
  413. p2: {P2_PCT}%
  414. p3: {P3_PCT}%
  415. gaps:
  416. critical: {CRITICAL_COUNT}
  417. high: {HIGH_COUNT}
  418. medium: {MEDIUM_COUNT}
  419. low: {LOW_COUNT}
  420. quality:
  421. passing_tests: {PASSING_COUNT}
  422. total_tests: {TOTAL_TESTS}
  423. blocker_issues: {BLOCKER_COUNT}
  424. warning_issues: {WARNING_COUNT}
  425. recommendations:
  426. - "{RECOMMENDATION_1}"
  427. - "{RECOMMENDATION_2}"
  428. # Phase 2: Gate Decision
  429. gate_decision:
  430. decision: "{PASS | CONCERNS | FAIL | WAIVED}"
  431. gate_type: "{story | epic | release | hotfix}"
  432. decision_mode: "{deterministic | manual}"
  433. criteria:
  434. p0_coverage: {p0_coverage}%
  435. p0_pass_rate: {p0_pass_rate}%
  436. p1_coverage: {p1_coverage}%
  437. p1_pass_rate: {p1_pass_rate}%
  438. overall_pass_rate: {overall_pass_rate}%
  439. overall_coverage: {overall_coverage}%
  440. security_issues: {security_issue_count}
  441. critical_nfrs_fail: {critical_nfr_fail_count}
  442. flaky_tests: {flaky_test_count}
  443. thresholds:
  444. min_p0_coverage: 100
  445. min_p0_pass_rate: 100
  446. min_p1_coverage: {min_p1_coverage}
  447. min_p1_pass_rate: {min_p1_pass_rate}
  448. min_overall_pass_rate: {min_overall_pass_rate}
  449. min_coverage: {min_coverage}
  450. evidence:
  451. test_results: "{CI_run_id | test_report_url}"
  452. traceability: "{trace_file_path}"
  453. nfr_assessment: "{nfr_file_path}"
  454. code_coverage: "{coverage_report_url}"
  455. next_steps: "{brief_summary_of_recommendations}"
  456. waiver: # Only if WAIVED
  457. reason: "{business_justification}"
  458. approver: "{name}, {role}"
  459. expiry: "{YYYY-MM-DD}"
  460. remediation_due: "{YYYY-MM-DD}"
  461. ```
  462. ---
  463. ## Related Artifacts
  464. - **Story File:** {STORY_FILE_PATH}
  465. - **Test Design:** {TEST_DESIGN_PATH} (if available)
  466. - **Tech Spec:** {TECH_SPEC_PATH} (if available)
  467. - **Test Results:** {TEST_RESULTS_PATH}
  468. - **NFR Evidence Audit:** {NFR_FILE_PATH} (if available)
  469. - **Test Files:** {TEST_DIR_PATH}
  470. ---
  471. ## Sign-Off
  472. **Phase 1 - Traceability Assessment:**
  473. - Overall Coverage: {OVERALL_PCT}%
  474. - P0 Coverage: {P0_PCT}% {P0_STATUS}
  475. - P1 Coverage: {P1_PCT}% {P1_STATUS}
  476. - Critical Gaps: {CRITICAL_COUNT}
  477. - High Priority Gaps: {HIGH_COUNT}
  478. **Phase 2 - Gate Decision:**
  479. - **Decision**: {PASS | CONCERNS | FAIL | WAIVED} {STATUS_ICON}
  480. - **P0 Evaluation**: {✅ ALL PASS | ❌ ONE OR MORE FAILED}
  481. - **P1 Evaluation**: {✅ ALL PASS | ⚠️ SOME CONCERNS | ❌ FAILED}
  482. **Overall Status:** {STATUS} {STATUS_ICON}
  483. **Next Steps:**
  484. - If PASS ✅: Proceed to deployment
  485. - If CONCERNS ⚠️: Deploy with monitoring, create remediation backlog
  486. - If FAIL ❌: Block deployment, fix critical issues, re-run workflow
  487. - If WAIVED 🔓: Deploy with business approval and aggressive monitoring
  488. **Generated:** {DATE}
  489. **Workflow:** testarch-trace v4.0 (Enhanced with Gate Decision)
  490. ---
  491. <!-- Powered by BMAD-CORE™ -->