Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. # Requirements Traceability & Gate Decision - Validation Checklist
  2. **Workflow:** `testarch-trace`
  3. **Purpose:** Ensure complete traceability matrix with actionable gap analysis AND make deployment readiness decision (PASS/CONCERNS/FAIL/WAIVED)
  4. This checklist covers **two sequential phases**:
  5. - **PHASE 1**: Requirements Traceability (always executed)
  6. - **PHASE 2**: Quality Gate Decision (decision fields emitted only when `allow_gate: true` and the collection is gate-eligible)
  7. ---
  8. # PHASE 1: REQUIREMENTS TRACEABILITY
  9. ## Prerequisites Validation
  10. - [ ] A coverage oracle is available or inferred (formal requirements, spec, resolvable external pointer, or synthetic journeys)
  11. - [ ] Test suite exists (or gaps are acknowledged and documented)
  12. - [ ] If tests are missing, recommend `*atdd` (trace does not run it automatically)
  13. - [ ] Test directory path is correct (`test_dir` variable)
  14. - [ ] Story file is accessible (if using BMad mode)
  15. - [ ] Knowledge base is loaded (test-priorities, traceability, risk-governance)
  16. ---
  17. ## Context Loading
  18. - [ ] Story file read successfully (if applicable)
  19. - [ ] Oracle items extracted or inferred correctly
  20. - [ ] Story ID identified (e.g., 1.3)
  21. - [ ] `test-design.md` loaded (if available)
  22. - [ ] `tech-spec.md` loaded (if available)
  23. - [ ] `PRD.md` loaded (if available)
  24. - [ ] Relevant knowledge fragments loaded from `tea-index.csv`
  25. ---
  26. ## Test Discovery and Cataloging
  27. - [ ] Tests auto-discovered using multiple strategies (test IDs, describe blocks, file paths)
  28. - [ ] Tests categorized by level (E2E, API, Component, Unit)
  29. - [ ] Test metadata extracted:
  30. - [ ] Test IDs (e.g., 1.3-E2E-001)
  31. - [ ] Describe/context blocks
  32. - [ ] It blocks (individual test cases)
  33. - [ ] Given-When-Then structure (if BDD)
  34. - [ ] Priority markers (P0/P1/P2/P3)
  35. - [ ] All relevant test files found (no tests missed due to naming conventions)
  36. ---
  37. ## Criteria-to-Test Mapping
  38. - [ ] Each oracle item mapped to tests (or marked as NONE)
  39. - [ ] Explicit references found (test IDs, describe blocks mentioning criterion)
  40. - [ ] Test level documented (E2E, API, Component, Unit)
  41. - [ ] Given-When-Then narrative verified for alignment
  42. - [ ] Traceability matrix table generated:
  43. - [ ] Criterion ID
  44. - [ ] Description
  45. - [ ] Test ID
  46. - [ ] Test File
  47. - [ ] Test Level
  48. - [ ] Coverage Status
  49. ---
  50. ## Coverage Classification
  51. - [ ] Coverage status classified for each criterion:
  52. - [ ] **FULL** - All scenarios validated at appropriate level(s)
  53. - [ ] **PARTIAL** - Some coverage but missing edge cases or levels
  54. - [ ] **NONE** - No test coverage at any level
  55. - [ ] **UNIT-ONLY** - Only unit tests (missing integration/E2E validation)
  56. - [ ] **INTEGRATION-ONLY** - Only API/Component tests (missing unit confidence)
  57. - [ ] Classification justifications provided
  58. - [ ] Edge cases considered in FULL vs PARTIAL determination
  59. ---
  60. ## Duplicate Coverage Detection
  61. - [ ] Duplicate coverage checked across test levels
  62. - [ ] Acceptable overlap identified (defense in depth for critical paths)
  63. - [ ] Unacceptable duplication flagged (same validation at multiple levels)
  64. - [ ] Recommendations provided for consolidation
  65. - [ ] Selective testing principles applied
  66. ---
  67. ## Gap Analysis
  68. - [ ] Coverage gaps identified:
  69. - [ ] Criteria with NONE status
  70. - [ ] Criteria with PARTIAL status
  71. - [ ] Criteria with UNIT-ONLY status
  72. - [ ] Criteria with INTEGRATION-ONLY status
  73. - [ ] Coverage heuristics gaps identified:
  74. - [ ] Endpoints referenced in requirements/specs but not covered by API tests
  75. - [ ] Auth/authz criteria missing denied/invalid path tests
  76. - [ ] Criteria with happy-path-only coverage (missing error scenarios)
  77. - [ ] Inferred UI journeys missing E2E/component coverage
  78. - [ ] Inferred UI journeys missing loading/empty/error/permission state coverage
  79. - [ ] Gaps prioritized by risk level using test-priorities framework:
  80. - [ ] **CRITICAL** - P0 criteria without FULL coverage (BLOCKER)
  81. - [ ] **HIGH** - P1 criteria without FULL coverage (PR blocker)
  82. - [ ] **MEDIUM** - P2 criteria without FULL coverage (nightly gap)
  83. - [ ] **LOW** - P3 criteria without FULL coverage (acceptable)
  84. - [ ] Specific test recommendations provided for each gap:
  85. - [ ] Suggested test level (E2E, API, Component, Unit)
  86. - [ ] Test description (Given-When-Then)
  87. - [ ] Recommended test ID (e.g., 1.3-E2E-004)
  88. - [ ] Explanation of why test is needed
  89. ---
  90. ## Coverage Metrics
  91. - [ ] Overall coverage percentage calculated (FULL coverage / total criteria)
  92. - [ ] P0 coverage percentage calculated
  93. - [ ] P1 coverage percentage calculated
  94. - [ ] P2 coverage percentage calculated (if applicable)
  95. - [ ] Coverage by level calculated:
  96. - [ ] E2E coverage %
  97. - [ ] API coverage %
  98. - [ ] Component coverage %
  99. - [ ] Unit coverage %
  100. ---
  101. ## Test Quality Verification
  102. For each mapped test, verify:
  103. - [ ] Explicit assertions are present (not hidden in helpers)
  104. - [ ] Test follows Given-When-Then structure
  105. - [ ] No hard waits or sleeps (deterministic waiting only)
  106. - [ ] Self-cleaning (test cleans up its data)
  107. - [ ] File size < 300 lines
  108. - [ ] Test duration < 90 seconds
  109. Quality issues flagged:
  110. - [ ] **BLOCKER** issues identified (missing assertions, hard waits, flaky patterns)
  111. - [ ] **WARNING** issues identified (large files, slow tests, unclear structure)
  112. - [ ] **INFO** issues identified (style inconsistencies, missing documentation)
  113. Knowledge fragments referenced:
  114. - [ ] `test-quality.md` for Definition of Done
  115. - [ ] `fixture-architecture.md` for self-cleaning patterns
  116. - [ ] `network-first.md` for Playwright best practices
  117. - [ ] `data-factories.md` for test data patterns
  118. ---
  119. ## Phase 1 Deliverables Generated
  120. ### Traceability Matrix Markdown
  121. - [ ] File created at `{test_artifacts}/traceability-matrix.md`
  122. - [ ] Template from `trace-template.md` used
  123. - [ ] Full mapping table included
  124. - [ ] Coverage status section included
  125. - [ ] Gap analysis section included
  126. - [ ] Quality assessment section included
  127. - [ ] Recommendations section included
  128. ### Machine-Readable JSON Output
  129. - [ ] `e2e-trace-summary.json` written to `{e2e_trace_summary_output}`
  130. - [ ] JSON is valid and parseable
  131. - [ ] `schema_version` field present
  132. - [ ] `repo`, `collection_mode`, `collection_status`, `inventory_basis`, and `source_sha` fields populated
  133. - [ ] `gate_basis` populated (`priority_thresholds` when gate-eligible, `none` otherwise)
  134. - [ ] `snapshot_at` replaces the old `generated_at` timestamp field
  135. - [ ] Oracle metadata populated (`resolution_mode`, `confidence`, `sources`, `external_pointer_status`, `synthetic`)
  136. - [ ] `target.type` and `target.id` identify the evaluated story / epic / release / hotfix
  137. - [ ] `gate_status` populated only when `allow_gate: true` and `collection_status` is `COLLECTED`
  138. - [ ] `coverage.inventory` includes `covered`, `total`, and `pct`
  139. - [ ] `coverage.priority_breakdown` includes P0–P3 and `coverage.by_level` includes e2e/api/component/unit/other
  140. - [ ] `tests` counts are deduplicated from unique discovered tests (no per-requirement double counting)
  141. - [ ] `risk_summary` counts match Phase 1 gap analysis
  142. - [ ] `heuristics` fields populated (`endpoint_gaps`, `auth_negative_path_status`, `error_path_status`)
  143. - [ ] UI heuristic fields populated when using a source-derived oracle (`ui_journey_status`, `ui_state_status`)
  144. - [ ] `gate_criteria` thresholds and actuals match gate decision
  145. - [ ] `blockers` array present (may be empty)
  146. - [ ] `recommendations` array present (may be empty)
  147. - [ ] `links.trace_report_path` points to `traceability-matrix.md`
  148. - [ ] `links.trace_report_url`, `links.artifact_url`, and `links.journey_evidence_url` fields present (may be empty)
  149. - [ ] `gate-decision.json` written to `{gate_decision_output}` when gate-eligible
  150. - [ ] `gate-decision.json` contains `evaluated_at`, `gate_basis`, `gate_status`, `rationale`, and per-criterion status fields
  151. ### Updated Story File (if enabled)
  152. - [ ] "Traceability" section added to story markdown
  153. - [ ] Link to traceability matrix included
  154. - [ ] Coverage summary included
  155. ---
  156. ## Phase 1 Quality Assurance
  157. ### Accuracy Checks
  158. - [ ] All oracle items accounted for (none skipped)
  159. - [ ] Test IDs correctly formatted (e.g., 1.3-E2E-001)
  160. - [ ] File paths are correct and accessible
  161. - [ ] Coverage percentages calculated correctly
  162. - [ ] No false positives (tests incorrectly mapped to criteria)
  163. - [ ] No false negatives (existing tests missed in mapping)
  164. ### Completeness Checks
  165. - [ ] All test levels considered (E2E, API, Component, Unit)
  166. - [ ] All priorities considered (P0, P1, P2, P3)
  167. - [ ] All coverage statuses used appropriately (FULL, PARTIAL, NONE, UNIT-ONLY, INTEGRATION-ONLY)
  168. - [ ] All gaps have recommendations
  169. - [ ] All quality issues have severity and remediation guidance
  170. ### Actionability Checks
  171. - [ ] Recommendations are specific (not generic)
  172. - [ ] Test IDs suggested for new tests
  173. - [ ] Given-When-Then provided for recommended tests
  174. - [ ] Impact explained for each gap
  175. - [ ] Priorities clear (CRITICAL, HIGH, MEDIUM, LOW)
  176. ---
  177. ## Phase 1 Documentation
  178. - [ ] Traceability matrix is readable and well-formatted
  179. - [ ] Tables render correctly in markdown
  180. - [ ] Code blocks have proper syntax highlighting
  181. - [ ] Links are valid and accessible
  182. - [ ] Recommendations are clear and prioritized
  183. ---
  184. # PHASE 2: QUALITY GATE DECISION
  185. **Note**: Phase 2 always emits `e2e-trace-summary.json`; gate decision fields are populated only when `allow_gate: true` and `collection_status` resolves to `COLLECTED`.
  186. ---
  187. ## Prerequisites
  188. ### Evidence Gathering
  189. - [ ] Test execution results obtained (CI/CD pipeline, test framework reports)
  190. - [ ] Story/epic/release file identified and read
  191. - [ ] Test design document discovered or explicitly provided (if available)
  192. - [ ] Traceability matrix discovered or explicitly provided (available from Phase 1)
  193. - [ ] NFR evidence audit discovered or explicitly provided (if available)
  194. - [ ] Code coverage report discovered or explicitly provided (if available)
  195. - [ ] Burn-in results discovered or explicitly provided (if available)
  196. ### Evidence Validation
  197. - [ ] Evidence freshness validated (warn if >7 days old, recommend re-running workflows)
  198. - [ ] All required assessments available or user acknowledged gaps
  199. - [ ] Test results are complete (not partial or interrupted runs)
  200. - [ ] Test results match current codebase (not from outdated branch)
  201. ### Knowledge Base Loading
  202. - [ ] `risk-governance.md` loaded successfully
  203. - [ ] `probability-impact.md` loaded successfully
  204. - [ ] `test-quality.md` loaded successfully
  205. - [ ] `test-priorities.md` loaded successfully
  206. - [ ] `ci-burn-in.md` loaded (if burn-in results available)
  207. ---
  208. ## Process Steps
  209. ### Step 1: Context Loading
  210. - [ ] Gate type identified (story/epic/release/hotfix)
  211. - [ ] Target ID extracted (story_id, epic_num, or release_version)
  212. - [ ] Decision thresholds loaded from workflow variables
  213. - [ ] Risk tolerance configuration loaded
  214. - [ ] Waiver policy loaded
  215. ### Step 2: Evidence Parsing
  216. **Test Results:**
  217. - [ ] Total test count extracted
  218. - [ ] Passed test count extracted
  219. - [ ] Failed test count extracted
  220. - [ ] Skipped test count extracted
  221. - [ ] Test duration extracted
  222. - [ ] P0 test pass rate calculated
  223. - [ ] P1 test pass rate calculated
  224. - [ ] Overall test pass rate calculated
  225. **Quality Assessments:**
  226. - [ ] P0/P1/P2/P3 scenarios extracted from test-design.md (if available)
  227. - [ ] Risk scores extracted from test-design.md (if available)
  228. - [ ] Coverage percentages extracted from traceability-matrix.md (available from Phase 1)
  229. - [ ] Coverage gaps extracted from traceability-matrix.md (available from Phase 1)
  230. - [ ] NFR status extracted from nfr-assessment.md (if available)
  231. - [ ] Security issues count extracted from nfr-assessment.md (if available)
  232. **Code Coverage:**
  233. - [ ] Line coverage percentage extracted (if available)
  234. - [ ] Branch coverage percentage extracted (if available)
  235. - [ ] Function coverage percentage extracted (if available)
  236. - [ ] Critical path coverage validated (if available)
  237. **Burn-in Results:**
  238. - [ ] Burn-in iterations count extracted (if available)
  239. - [ ] Flaky tests count extracted (if available)
  240. - [ ] Stability score calculated (if available)
  241. ### Step 3: Decision Rules Application
  242. **P0 Criteria Evaluation:**
  243. - [ ] P0 test pass rate evaluated (must be 100%)
  244. - [ ] P0 oracle-item coverage evaluated (must be 100%)
  245. - [ ] Security issues count evaluated (must be 0)
  246. - [ ] Critical NFR failures evaluated (must be 0)
  247. - [ ] Flaky tests evaluated (must be 0 if burn-in enabled)
  248. - [ ] P0 decision recorded: PASS or FAIL
  249. **P1 Criteria Evaluation:**
  250. - [ ] P1 test pass rate evaluated (threshold: min_p1_pass_rate)
  251. - [ ] P1 oracle-item coverage evaluated (PASS >=90%, CONCERNS 80-89%, FAIL <80%)
  252. - [ ] Overall test pass rate evaluated (threshold: min_overall_pass_rate)
  253. - [ ] Overall oracle coverage evaluated (threshold: >=80%)
  254. - [ ] Code coverage considered if available (informational unless explicitly required by policy)
  255. - [ ] P1 decision recorded: PASS or CONCERNS
  256. **P2/P3 Criteria Evaluation:**
  257. - [ ] P2 failures tracked (informational, don't block if allow_p2_failures: true)
  258. - [ ] P3 failures tracked (informational, don't block if allow_p3_failures: true)
  259. - [ ] Residual risks documented
  260. **Final Decision:**
  261. - [ ] Decision determined: PASS / CONCERNS / FAIL / WAIVED
  262. - [ ] Decision rationale documented
  263. - [ ] Decision is deterministic (follows rules, not arbitrary)
  264. ### Step 4: Documentation
  265. **Gate Decision Document Created:**
  266. - [ ] Story/epic/release info section complete (ID, title, description, links)
  267. - [ ] Decision clearly stated (PASS / CONCERNS / FAIL / WAIVED)
  268. - [ ] Decision date recorded
  269. - [ ] Evaluator recorded (user or agent name)
  270. **Evidence Summary Documented:**
  271. - [ ] Test results summary complete (total, passed, failed, pass rates)
  272. - [ ] Coverage summary complete (P0/P1 criteria, code coverage)
  273. - [ ] NFR validation summary complete (security, performance, reliability, maintainability)
  274. - [ ] Flakiness summary complete (burn-in iterations, flaky test count)
  275. **Rationale Documented:**
  276. - [ ] Decision rationale clearly explained
  277. - [ ] Key evidence highlighted
  278. - [ ] Assumptions and caveats noted (if any)
  279. **Residual Risks Documented (if CONCERNS or WAIVED):**
  280. - [ ] Unresolved P1/P2 issues listed
  281. - [ ] Probability × impact estimated for each risk
  282. - [ ] Mitigations or workarounds described
  283. **Waivers Documented (if WAIVED):**
  284. - [ ] Waiver reason documented (business justification)
  285. - [ ] Waiver approver documented (name, role)
  286. - [ ] Waiver expiry date documented
  287. - [ ] Remediation plan documented (fix in next release, due date)
  288. - [ ] Monitoring plan documented
  289. **Critical Issues Documented (if FAIL or CONCERNS):**
  290. - [ ] Top 5-10 critical issues listed
  291. - [ ] Priority assigned to each issue (P0/P1/P2)
  292. - [ ] Owner assigned to each issue
  293. - [ ] Due date assigned to each issue
  294. **Recommendations Documented:**
  295. - [ ] Next steps clearly stated for decision type
  296. - [ ] Deployment recommendation provided
  297. - [ ] Monitoring recommendations provided (if applicable)
  298. - [ ] Remediation recommendations provided (if applicable)
  299. ### Step 5: Status Updates and Notifications
  300. **Gate YAML Created:**
  301. - [ ] Gate YAML snippet generated with decision and criteria
  302. - [ ] Evidence references included in YAML
  303. - [ ] Next steps included in YAML
  304. - [ ] YAML file saved to output folder
  305. **Stakeholder Notification Generated:**
  306. - [ ] Notification subject line created
  307. - [ ] Notification body created with summary
  308. - [ ] Recipients identified (PM, SM, DEV lead, stakeholders)
  309. - [ ] Notification ready for delivery (if notify_stakeholders: true)
  310. **Outputs Saved:**
  311. - [ ] Gate decision document saved to `{outputFile}`
  312. - [ ] `e2e-trace-summary.json` saved to `{e2e_trace_summary_output}` (always)
  313. - [ ] `gate-decision.json` saved to `{gate_decision_output}` (when gate-eligible)
  314. - [ ] All outputs are valid and readable
  315. ---
  316. ## Phase 2 Output Validation
  317. ### Gate Decision Document
  318. **Completeness:**
  319. - [ ] All required sections present (info, decision, evidence, rationale, next steps)
  320. - [ ] No placeholder text or TODOs left in document
  321. - [ ] All evidence references are accurate and complete
  322. - [ ] All links to artifacts are valid
  323. **Accuracy:**
  324. - [ ] Decision matches applied criteria rules
  325. - [ ] Test results match CI/CD pipeline output
  326. - [ ] Coverage percentages match reports
  327. - [ ] NFR status matches assessment document
  328. - [ ] No contradictions or inconsistencies
  329. **Clarity:**
  330. - [ ] Decision rationale is clear and unambiguous
  331. - [ ] Technical jargon is explained or avoided
  332. - [ ] Stakeholders can understand next steps
  333. - [ ] Recommendations are actionable
  334. ### Gate YAML
  335. **Format:**
  336. - [ ] YAML is valid (no syntax errors)
  337. - [ ] All required fields present (target, decision, date, evaluator, criteria, evidence)
  338. - [ ] Field values are correct data types (numbers, strings, dates)
  339. **Content:**
  340. - [ ] Criteria values match decision document
  341. - [ ] Evidence references are accurate
  342. - [ ] Next steps align with decision type
  343. ---
  344. ## Phase 2 Quality Checks
  345. ### Decision Integrity
  346. - [ ] Decision is deterministic (follows rules, not arbitrary)
  347. - [ ] P0 failures result in FAIL decision (unless waived)
  348. - [ ] Security issues result in FAIL decision (unless waived - but should never be waived)
  349. - [ ] Waivers have business justification and approver (if WAIVED)
  350. - [ ] Residual risks are documented (if CONCERNS or WAIVED)
  351. ### Evidence-Based
  352. - [ ] Decision is based on actual test results (not guesses)
  353. - [ ] All claims are supported by evidence
  354. - [ ] No assumptions without documentation
  355. - [ ] Evidence sources are cited (CI run IDs, report URLs)
  356. ### Transparency
  357. - [ ] Decision rationale is transparent and auditable
  358. - [ ] Criteria evaluation is documented step-by-step
  359. - [ ] Any deviations from standard process are explained
  360. - [ ] Waiver justifications are clear (if applicable)
  361. ### Consistency
  362. - [ ] Decision aligns with risk-governance knowledge fragment
  363. - [ ] Priority framework (P0/P1/P2/P3) applied consistently
  364. - [ ] Terminology consistent with test-quality knowledge fragment
  365. - [ ] Decision matrix followed correctly
  366. ---
  367. ## Phase 2 Integration Points
  368. ### CI/CD Pipeline
  369. - [ ] Gate YAML is CI/CD-compatible
  370. - [ ] YAML can be parsed by pipeline automation
  371. - [ ] Decision can be used to block/allow deployments
  372. - [ ] Evidence references are accessible to pipeline
  373. ### Stakeholders
  374. - [ ] Notification message is clear and actionable
  375. - [ ] Decision is explained in non-technical terms
  376. - [ ] Next steps are specific and time-bound
  377. - [ ] Recipients are appropriate for decision type
  378. ---
  379. ## Phase 2 Compliance and Audit
  380. ### Audit Trail
  381. - [ ] Decision date and time recorded
  382. - [ ] Evaluator identified (user or agent)
  383. - [ ] All evidence sources cited
  384. - [ ] Decision criteria documented
  385. - [ ] Rationale clearly explained
  386. ### Traceability
  387. - [ ] Gate decision traceable to story/epic/release
  388. - [ ] Evidence traceable to specific test runs
  389. - [ ] Assessments traceable to workflows that created them
  390. - [ ] Waiver traceable to approver (if applicable)
  391. ### Compliance
  392. - [ ] Security requirements validated (no unresolved vulnerabilities)
  393. - [ ] Quality standards met or waived with justification
  394. - [ ] Regulatory requirements addressed (if applicable)
  395. - [ ] Documentation sufficient for external audit
  396. ---
  397. ## Phase 2 Edge Cases and Exceptions
  398. ### Missing Evidence
  399. - [ ] If test-design.md missing, decision still possible with test results + trace
  400. - [ ] If traceability-matrix.md missing, decision still possible with test results (but Phase 1 should provide it)
  401. - [ ] If nfr-assessment.md missing, NFR validation marked as NOT ASSESSED
  402. - [ ] If code coverage missing, coverage criterion marked as NOT ASSESSED
  403. - [ ] User acknowledged gaps in evidence or provided alternative proof
  404. ### Stale Evidence
  405. - [ ] Evidence freshness checked (if validate_evidence_freshness: true)
  406. - [ ] Warnings issued for assessments >7 days old
  407. - [ ] User acknowledged stale evidence or re-ran workflows
  408. - [ ] Decision document notes any stale evidence used
  409. ### Conflicting Evidence
  410. - [ ] Conflicts between test results and assessments resolved
  411. - [ ] Most recent/authoritative source identified
  412. - [ ] Conflict resolution documented in decision rationale
  413. - [ ] User consulted if conflict cannot be resolved
  414. ### Waiver Scenarios
  415. - [ ] Waiver only used for FAIL decision (not PASS or CONCERNS)
  416. - [ ] Waiver has business justification (not technical convenience)
  417. - [ ] Waiver has named approver with authority (VP/CTO/PO)
  418. - [ ] Waiver has expiry date (does NOT apply to future releases)
  419. - [ ] Waiver has remediation plan with concrete due date
  420. - [ ] Security vulnerabilities are NOT waived (enforced)
  421. ---
  422. # FINAL VALIDATION (Both Phases)
  423. ## Non-Prescriptive Validation
  424. - [ ] Traceability format adapted to team needs (not rigid template)
  425. - [ ] Examples are minimal and focused on patterns
  426. - [ ] Teams can extend with custom classifications
  427. - [ ] Integration with external systems supported (JIRA, Azure DevOps)
  428. - [ ] Compliance requirements considered (if applicable)
  429. ---
  430. ## Documentation and Communication
  431. - [ ] All documents are readable and well-formatted
  432. - [ ] Tables render correctly in markdown
  433. - [ ] Code blocks have proper syntax highlighting
  434. - [ ] Links are valid and accessible
  435. - [ ] Recommendations are clear and prioritized
  436. - [ ] Gate decision is prominent and unambiguous (Phase 2)
  437. ---
  438. ## Final Validation
  439. **Phase 1 (Traceability):**
  440. - [ ] All prerequisites met
  441. - [ ] All oracle items mapped or gaps documented
  442. - [ ] P0 coverage is 100% OR documented as BLOCKER
  443. - [ ] Gap analysis is complete and prioritized
  444. - [ ] Test quality issues identified and flagged
  445. - [ ] Deliverables generated and saved
  446. **Phase 2 (Gate Decision):**
  447. - [ ] All quality evidence gathered
  448. - [ ] Decision criteria applied correctly
  449. - [ ] Decision rationale documented
  450. - [ ] `e2e-trace-summary.json` written and valid JSON
  451. - [ ] `gate-decision.json` written when gate-eligible
  452. - [ ] Status file updated (if enabled)
  453. - [ ] Stakeholders notified (if enabled)
  454. **Workflow Complete:**
  455. - [ ] Phase 1 completed successfully
  456. - [ ] Phase 2 completed successfully (if enabled)
  457. - [ ] All outputs validated and saved
  458. - [ ] Ready to proceed based on gate decision
  459. ---
  460. ## Sign-Off
  461. **Phase 1 - Traceability Status:**
  462. - [ ] ✅ PASS - All quality gates met, no critical gaps
  463. - [ ] ⚠️ WARN - P1 gaps exist, address before PR merge
  464. - [ ] ❌ FAIL - P0 gaps exist, BLOCKER for release
  465. **Phase 2 - Gate Decision Status (if enabled):**
  466. - [ ] ✅ PASS - Deploy to production
  467. - [ ] ⚠️ CONCERNS - Deploy with monitoring
  468. - [ ] ❌ FAIL - Block deployment, fix issues
  469. - [ ] 🔓 WAIVED - Deploy with business approval and remediation plan
  470. **Next Actions:**
  471. - If PASS (both phases): Proceed to deployment
  472. - If WARN/CONCERNS: Address gaps/issues, proceed with monitoring
  473. - If FAIL (either phase): Run `*atdd` for missing tests, fix issues, re-run `*trace`
  474. - If WAIVED: Deploy with approved waiver, schedule remediation
  475. ---
  476. ## Notes
  477. Record any issues, deviations, or important observations during workflow execution:
  478. - **Phase 1 Issues**: [Note any traceability mapping challenges, missing tests, quality concerns]
  479. - **Phase 2 Issues**: [Note any missing, stale, or conflicting evidence]
  480. - **Decision Rationale**: [Document any nuanced reasoning or edge cases]
  481. - **Waiver Details**: [Document waiver negotiations or approvals]
  482. - **Follow-up Actions**: [List any actions required after gate decision]
  483. ---
  484. <!-- Powered by BMAD-CORE™ -->