6.1 KiB
| name | description |
|---|---|
| up-traceability-gate | Run the enforced traceability completeness check against the single traceability graph and the iteration delivery-surface matrix — scanning for use cases with zero requirements, requirements with no owning use case, requirements with no SRS/HLD/LLD linkage, unimplemented frontend/API/data/integration surfaces, or iterations that closed with undelivered scope. Use this at the end of Stage 5, Stage 9, every Construction iteration, before any baseline/sign-off, and any time drift is suspected. Covers Gates 5.1, 9.1, and 14.1 of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md). |
up-traceability-gate — Gates 5.1 / 9.1 / 14.1 (cross-cutting)
Objective
Make traceability completeness a mandatory, executable checkpoint at every stage boundary touching requirements, architecture, or delivery. Progress is strictly blocked if any story or delivery surface lacks specification or test evidence.
There is exactly one traceability graph — 04_generated_documentation/00_process_control/traceability_graph.md — this skill is the only thing that writes to it. Never hand-edit it directly.
When to invoke
Three mandatory checkpoints, plus ad hoc use:
- Gate 5.1 — after any
up-use-case-authorrun (or batch of runs), before proceeding toup-arch-risk-spike(Stage 6). - Gate 9.1 — after
up-srs-derive(Stage 8) andup-hld-lld-generate(Stage 9), before proceeding to Construction (up-iteration-plan, Stage 10). - Gate 14.1 — at the end of every Construction iteration, before marking any
FR-xxxas "Delivered" and before starting the next iteration or entering Transition. - Ad hoc — any time graph drift is suspected.
Read first
tech-profile.yaml(identifies coverage thresholds, auth claims, and sandboxes)04_generated_documentation/03_requirements/use_cases/(all UC + FR files)04_generated_documentation/03_requirements/SRS/NFR outputs (Stage 8)04_generated_documentation/04_architecture_design/HLD/LLD outputs (Stage 9)- Current iteration's
04_generated_documentation/05_iteration_planning/iterations/iteration-NN/(Gate 14.1 only) - Current iteration's
iteration_surface_matrix.md(Gate 14.1 only) 04_generated_documentation/07_test_design/regression_test_cases.md(Gate 14.1 only — regression-suite health check)- Current iteration's
parallel_work_plan.md, if present (Gate 14.1 only), plusintegration_manifest.mdproduced byup-parallel-work-integratewhen named branches were used 04_generated_documentation/00_process_control/traceability_graph.md(previous state, if any)00_prompts/AI_Native_Unified_Process_v1.md§9 (Quality Gates)
Procedure
Step 0 — Automated Deterministic Validation
Before manual or semantic evaluation, run the deterministic gate validator script:
python3 scripts/verify_traceability_gates.py --gate <5.1|9.1|14.1> [--iteration iteration-NN]
If the script exits with non-zero (Critical issues detected), STOP and resolve them immediately before performing further reviews.
Gate 5.1 — UC ↔ FR Completeness
- Execute
python3 scripts/verify_traceability_gates.py --gate 5.1. - Inspect every file under
04_generated_documentation/03_requirements/use_cases/. For eachUC-xxx, confirm at least oneFR-xxxdeclaresparent_uc = UC-xxx. For everyFR-xxxfound anywhere in the tree, confirm itsparent_ucresolves to an existingUC-xxxfile.
Produce a table: Check-ID | UC or FR | Issue | Severity (Critical/Major/Minor) | Required Action.
FAIL (do not proceed) if any Critical issue exists:
- Critical: a
UC-xxxwith zeroFR-xxxchildren. - Critical: an
FR-xxxwith aparent_ucthat does not exist. - Major: an
FR-xxxwithsource_brd_fr = "new — not in BRD"and no business justification cited.
Gate 9.1 — FR ↔ SRS ↔ HLD ↔ LLD Completeness
- Execute
python3 scripts/verify_traceability_gates.py --gate 9.1. - Scan every
FR-xxxand confirm each resolves to: at least one SRS/NFR requirement, at least one HLD component, and at least one LLD artifact (API, table, or event). Same table format. FAIL if any FR has no SRS linkage, no HLD component, or no LLD artifact.
Gate 14.1 — Iteration Definition of Done
- Execute
python3 scripts/verify_traceability_gates.py --gate 14.1 --iteration iteration-NN. - For the current iteration, confirm for every
STORY-xxx:- Requirement mapped across all applicable delivery surfaces in
iteration_surface_matrix.md. - API documented; database migration present; integration adapter verified.
- Tests passing: unit + API integration + real-runtime tests.
- Browser-E2E evidence for all web portals/views in scope.
- Explicit Unit/Smoke/Usability applicability decisions recorded.
- Required QA deliverables exist per project tailoring tier (e.g.
MANUAL_TESTING_GUIDE.mdand/or 21-sheetIterationNN_<Name>_Complete_Manual_Testcases.xlsx). - Multi-path automated code and branch coverage meets or exceeds configured tier budgets (e.g. ≥95.0% for domain FSMs, ≥90.0% for adapters, ≥80.0% for frontend components).
- Cumulative regression suite passes via
scripts/run_tests.sh --scope iteration-NN.
- Requirement mapped across all applicable delivery surfaces in
FAIL if any story lacks passing tests, automated test coverage does not meet configured thresholds, regression tests fail, QA workbooks/guides are missing, or delivery surfaces are unowned. On pass, mark every associated FR-xxx as "Delivered" in the graph.
Output expected
Updated 04_generated_documentation/00_process_control/traceability_graph.md with a dated Gate-check section; blocking issue table if findings exist.
Exit criteria
Zero Critical issues for the gate being run.
Sample invocation
"Run up-traceability-gate (Gate 5.1) across all use cases authored so far in 04_generated_documentation/03_requirements/use_cases/."
"Run up-traceability-gate (Gate 14.1) for iteration-01."
Related skills
Feeds from: up-use-case-author, up-srs-derive, up-hld-lld-generate, up-code-generate/up-defect-fix, and up-parallel-work-integrate. Feeds into: up-arch-risk-spike, up-iteration-plan, up-uat-handover.