sdtk-spec-kit 0.3.10 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +219 -197
  2. package/assets/manifest/toolkit-bundle.manifest.json +72 -57
  3. package/assets/manifest/toolkit-bundle.sha256.txt +30 -27
  4. package/assets/toolkit/toolkit/README.md +50 -0
  5. package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +185 -0
  6. package/assets/toolkit/toolkit/install.ps1 +347 -310
  7. package/assets/toolkit/toolkit/scripts/init-feature.ps1 +2 -1
  8. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +84 -84
  9. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  10. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  11. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +127 -127
  12. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -83
  13. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  14. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  15. package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +127 -127
  16. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +108 -102
  17. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +97 -81
  18. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +37 -30
  19. package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -61
  20. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  21. package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +90 -90
  22. package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +25 -53
  23. package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +12 -6
  24. package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -124
  25. package/assets/toolkit/toolkit/templates/README.md +1 -0
  26. package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
  27. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  28. package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +127 -127
  29. package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +174 -174
  30. package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +106 -96
  31. package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -0
  32. package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -95
  33. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  34. package/package.json +20 -20
  35. package/src/commands/help.js +26 -10
  36. package/src/commands/init.js +108 -105
  37. package/src/commands/update.js +11 -0
  38. package/src/index.js +62 -59
  39. package/src/lib/project-target-guard.js +53 -0
  40. package/src/lib/update.js +333 -0
@@ -1,63 +1,35 @@
1
1
  ---
2
2
  name: orchestrator
3
- description: Orchestrate a full 6-phase SDLC multi-agent workflow (PM/BA/ARCH/DEV/QA) using this repo's conventions: SHARED_PLANNING.md + QUALITY_CHECKLIST.md + docs/* artifacts + explicit /dev -> SDTK-CODE -> /qa handoffs.
3
+ description: Orchestrate the SDTK-SPEC 6-phase workflow in Claude Code using SHARED_PLANNING.md + QUALITY_CHECKLIST.md + docs/* artifacts + explicit /dev -> SDTK-CODE -> /qa handoffs.
4
4
  ---
5
5
 
6
- ## SDTK-SPEC Pipeline Rules (always apply)
7
- 1. Pipeline: PM Initiation -> BA Analysis -> PM Planning -> Architecture Design -> Development Planning + SDTK-CODE Handoff -> QA Validation
8
- 2. After completing phase work: update SHARED_PLANNING.md + QUALITY_CHECKLIST.md
9
- 3. If unclear: log OQ-xx in artifact, escalate to PM (PM asks user if needed)
10
- 4. Traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA
11
- 5. Default bridge is `/dev -> SDTK-CODE -> /qa`
12
- 6. Do not skip phases. If inputs missing, ask focused questions.
6
+ ## Critical Constraints
7
+ - I do not skip mandatory phases or hand off without current-phase evidence.
8
+ - I do not treat visible-list presence as proof of a working direct invocation.
9
+ - I do not treat planned commands as equivalent to completed work.
10
+ - I preserve truthful fallback behavior and do not overclaim universal helper-dispatch or universal built-in exposure across every Claude surface.
13
11
 
14
- ## Current Context
15
- - Config: !`node -e "try{process.stdout.write(require('fs').readFileSync('sdtk-spec.config.json','utf8'))}catch{process.stdout.write('{}')}"`
16
- - Pipeline: !`node -e "try{process.stdout.write(require('fs').readFileSync('SHARED_PLANNING.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
17
- - Gates: !`node -e "try{process.stdout.write(require('fs').readFileSync('QUALITY_CHECKLIST.md','utf8'))}catch{process.stdout.write('Not initialized')}"`
18
- - State: !`node -e "try{process.stdout.write(require('fs').readFileSync('.sdtk/orchestration-state.json','utf8'))}catch{process.stdout.write('{}')}"`
19
-
20
- ## Input
21
- $ARGUMENTS
22
-
23
- If no arguments provided, read current feature context from SHARED_PLANNING.md.
24
-
25
- # SDTK-SPEC Orchestrator (multi-agent workflow)
26
-
27
- ## Initialize
28
- - Ensure feature key + feature name exist (ask if missing).
29
- - Read `sdtk-spec.config.json` (project stack + commands) if present.
30
- - Run `sdtk-spec generate --feature-key <KEY> --feature-name "<NAME>"` to create skeleton artifacts.
12
+ ## Claude Runtime Entrypoint Truth
13
+ - Visible-list presence of `orchestrator` does not prove `/orchestrator` or any other direct alias.
14
+ - `visible` and `working` are separate checks; `working` requires observable controller action from a bounded request.
15
+ - Until a Claude-specific direct syntax is validated, the supported controller path remains the repo-local orchestrator contract in the current session.
16
+ - Run `sdtk-spec generate --feature-key <KEY> --feature-name "<NAME>" --project-path .` to create skeleton artifacts before phase work begins.
31
17
 
32
18
  ## Execute pipeline (one phase per turn)
33
- - Default role: PM (entry point) if user did not specify.
34
- - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
19
+ - Default role: `PM` if the user did not specify one.
20
+ - Respect role tags: `PM`, `BA`, `ARCH`, `DEV`, `QA`.
35
21
  - For each phase:
36
- - Create/update the phase artifact(s) in `docs/`.
37
- - If phase is ARCH and API contract/flow is in scope, invoke `/api-doc` to produce/update `docs/api/[FeaturePascal]_API.yaml`, `docs/api/[FEATURE_KEY]_ENDPOINTS.md`, and `docs/api/[feature_snake]_api_flow_list.txt`.
38
- - If phase is ARCH and API detail spec is in scope, invoke `/api-design-spec` to produce/update `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`.
39
- - If phase is ARCH and UI flow behavior is in scope, invoke `/screen-design-spec` to produce/update `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`.
40
- - If phase is DEV, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; downstream implementation is outside `/dev`.
41
- - If phase is QA and test-case specification is in scope, invoke `/test-case-spec` to produce/update `docs/qa/[FEATURE_KEY]_TEST_CASE.md`.
42
- - Update `SHARED_PLANNING.md` (phase row + activity log).
43
- - Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
44
- - Produce one clear handoff message to the next role.
45
-
46
- ## API design detail mode (Hybrid)
47
- - Read `sdtk-spec.config.json` key: `orchestration.apiDesignDetailMode`.
48
- - Supported values:
49
- - `auto` (default): run `/api-design-spec` when ARCH has API scope and YAML + flow list are available.
50
- - `on`: always run `/api-design-spec` for API scope (fail fast if required inputs are missing).
51
- - `off`: skip API design detail generation unless user explicitly requests it.
52
-
53
- ## Test-case spec mode (Hybrid)
54
- - Read `sdtk-spec.config.json` key: `orchestration.testCaseSpecMode`.
55
- - Supported values:
56
- - `auto` (default): run `/test-case-spec` when QA phase requires reusable test-case artifact.
57
- - `on`: always run `/test-case-spec` for QA phase (fail fast if required inputs are missing).
58
- - `off`: skip test-case spec generation unless user explicitly requests it.
22
+ - Create or update the current-phase artifact in `docs/`.
23
+ - If phase is `ARCH` and API contract or flow is in scope, invoke `sdtk-api-doc`.
24
+ - If phase is `ARCH` and API detail spec is in scope, invoke `sdtk-api-design-spec`.
25
+ - If phase is `ARCH` and UI flow behavior is in scope, invoke `sdtk-screen-design-spec`.
26
+ - If phase is `DEV`, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; downstream implementation runs in SDTK-CODE, not here.
27
+ - If phase is `QA` and test-case specification is in scope, invoke `sdtk-test-case-spec`.
28
+ - Update `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md`.
29
+ - Hand off only after the current phase has fresh evidence.
59
30
 
60
31
  ## Guardrails
61
- - Do not skip phases; if prerequisites are missing, ask focused questions.
62
- - Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report.
63
- - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
32
+ - Keep traceability: `REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report`.
33
+ - Preserve the repo-local orchestrator contract as the exact fallback when direct built-in exposure or invocation is absent or unvalidated.
34
+ - Do not claim that Claude visible-list presence proves `/orchestrator`.
35
+ - Do not claim built-in exposure parity across every Claude surface.
@@ -15,6 +15,7 @@ description: QA workflow for SDTK-SPEC. Use when you need to validate downstream
15
15
  Read QUALITY_CHECKLIST.md and verify:
16
16
  - Phase 4 DEV gate must show planning/handoff completion.
17
17
  - Downstream implementation evidence exists for the same feature scope.
18
+ - `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` exists for the same feature scope when `SDTK-CODE verify` has run.
18
19
  - `OPS_HANDOFF` and downstream OPS evidence exist for the same feature scope.
19
20
 
20
21
  If prerequisites are not met, report which gate or downstream evidence is missing and suggest user complete `/dev` or the SDTK-CODE flow first.
@@ -34,19 +35,24 @@ If no arguments are provided, read current feature context from SHARED_PLANNING.
34
35
 
35
36
  ## Output
36
37
  - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
38
+ - `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` remains a separate downstream controller artifact and does not replace the primary QA output
37
39
  - Optional (when detailed test design spec is requested):
38
40
  - `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `/test-case-spec`
39
41
 
40
42
  ## Process
41
- 1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, `OPS_HANDOFF`, downstream implementation evidence, and downstream OPS evidence are available and aligned.
43
+ 1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, downstream implementation evidence, and downstream OPS evidence are available and aligned.
42
44
  2. Treat SDTK-CODE workflow evidence as the normal bridge into QA. In the current formal suite flow, `OPS_HANDOFF` plus downstream OPS evidence are also required before final QA approval.
43
45
  3. Create test strategy mapped to UC/AC.
44
46
  4. If test-case specification artifact is required, invoke `/test-case-spec` and align counts/coverage with release testing scope. Keep the structured TEST_CASE total consistent with the release-report baseline; track E2E separately if needed.
45
47
  5. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
46
48
  6. If acceptance criteria / expected behavior is unclear, record OQ-xx in QA report and preserve benchmark-expected ambiguity per `governance/ai/core/SDTK_BENCHMARK_OQ_POLICY.md`; escalate to PM.
47
49
  7. Execute/record results (unit/integration/e2e as applicable).
48
- 8. Record defects with severity and status.
49
- 9. Record `CODE_HANDOFF`, `OPS_HANDOFF`, CODE evidence, and OPS evidence in the QA release artifact.
50
- 10. Decide: APPROVED vs REJECTED (with reasons). `OPS_HANDOFF` alone is not sufficient final release evidence, and missing required OPS evidence blocks approval.
51
- 11. Update shared state + Phase 5 checklist.
52
- 12. Handoff: suggest user run `/pm` to finalize release status if approved.
50
+ 8. Persist the five mandatory review lanes inside `QA_RELEASE_REPORT_[FEATURE_KEY].md` under `3.1 Contract Review`, `3.2 Behavior Review`, `3.3 Evidence Review`, `3.4 Truth-Sync Review`, and `3.5 Closeout Hygiene Review`.
51
+ 9. In each lane subsection, fill `Scope Checked`, `Findings`, `Severity`, `Evidence Refs`, and `Residual Risk / Notes`.
52
+ 10. Record defects with severity and status.
53
+ 11. Record `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, CODE evidence, and OPS evidence in the QA release artifact.
54
+ 12. If the controller requests a bounded audit, answer one narrow evidence question only, cite exact refs, and do not issue the final verdict from that audit response.
55
+ 13. Missing helper dispatch is not a QA blocker by itself; continue the review directly with the available artifacts and evidence.
56
+ 14. Decide: APPROVED vs REJECTED (with reasons). `OPS_HANDOFF` alone is not sufficient final release evidence, and missing required OPS evidence blocks approval.
57
+ 15. Update shared state + Phase 5 checklist.
58
+ 16. Handoff: notify PM and stakeholders of the QA verdict and follow-up without reassigning final QA release authority.
@@ -1,124 +1,124 @@
1
- # QUALITY CHECKLIST
2
- ## Multi-Agent Development Pipeline Gates (v2.1 - 6 Phases)
3
-
4
- **Current Feature:** `{{FEATURE_KEY}}`
5
- **Last Updated:** `{{DATETIME}}`
6
- **Overall Status:** `PHASE 1 PM INITIATION - IN PROGRESS`
7
-
8
- ---
9
-
10
- ## PHASE 1: PM INITIATION (Project Kickoff) CHECKLIST
11
-
12
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
13
- |---|----------|--------|-------------|--------------|------|
14
- | 1 | Requirements received from stakeholders | [ ] Pending | PM Agent | | |
15
- | 2 | Business problem clearly defined | [ ] Pending | PM Agent | | |
16
- | 3 | High-level scope documented (REQ-xx) + Open Questions (OQ-xx) captured | [ ] Pending | PM Agent | | |
17
- | 4 | Stakeholders identified | [ ] Pending | PM Agent | | |
18
- | 5 | Success criteria defined (measurable) | [ ] Pending | PM Agent | | |
19
- | **6** | **PM INITIATION COMPLETE** | [ ] Pending | **PM Gate** | **@ba please analyze** | |
20
-
21
- ---
22
-
23
- ## PHASE 2: BA (Business Analysis) CHECKLIST
24
-
25
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
26
- |---|----------|--------|-------------|--------------|------|
27
- | 1 | Domain Glossary complete (all terms defined) | [ ] Pending | BA Agent | | |
28
- | 2 | Business Rules numbered and complete (BR-01...) | [ ] Pending | BA Agent | | |
29
- | 3 | Use Cases cover 100% requirements (UC-01...) | [ ] Pending | BA Agent | | |
30
- | 4 | Data entities and relationships documented | [ ] Pending | BA Agent | | |
31
- | 5 | Risks identified + prioritized (High/Med/Low) | [ ] Pending | BA Agent | | |
32
- | 6 | Open questions listed for PM/ARCH review | [ ] Pending | BA Agent | | |
33
- | **7** | **BA SPECS READY** | [ ] Pending | **BA Gate** | **@pm specs ready for PRD** | |
34
-
35
- ---
36
-
37
- ## PHASE 2+: PM PLANNING CHECKLIST
38
-
39
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
40
- |---|----------|--------|-------------|--------------|------|
41
- | 1 | PRD aligns 100% with BA specs + resolves/records OQ decisions | [ ] Pending | PM Agent | | |
42
- | 2 | Backlog 100% traceable to BA Use Cases | [ ] Pending | PM Agent | | |
43
- | 3 | Story priorities reflect business value (MoSCoW) | [ ] Pending | PM Agent | | |
44
- | 4 | Success metrics defined and measurable | [ ] Pending | PM Agent | | |
45
- | 5 | Release criteria objective and testable | [ ] Pending | PM Agent | | |
46
- | 6 | Effort estimates realistic (Fibonacci story points) | [ ] Pending | PM Agent | | |
47
- | **7** | **PM BACKLOG READY** | [ ] Pending | **PM Gate** | **@arch please design** | |
48
-
49
- ---
50
-
51
- ## PHASE 3: ARCH (Solution Architecture) CHECKLIST
52
-
53
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
54
- |---|----------|--------|-------------|--------------|------|
55
- | 1 | System architecture diagram complete + assumptions/OQ documented | [ ] Pending | ARCH Agent | | |
56
- | 2 | Database schema/ERD documented + `DATABASE_SPEC_[FEATURE_KEY].md` updated (if DB scope) | [ ] Pending | ARCH Agent | | |
57
- | 3 | API contract docs updated (`[FeaturePascal]_API.yaml` + `[FEATURE_KEY]_ENDPOINTS.md`) when API scope exists | [ ] Pending | ARCH Agent | | |
58
- | 4 | API flow list updated (`[feature_snake]_api_flow_list.txt`) when API scope exists | [ ] Pending | ARCH Agent | | |
59
- | 5 | API design detail updated (`[FEATURE_KEY]_API_DESIGN_DETAIL.md`) when API scope exists and mode is `auto/on` | [ ] Pending | ARCH Agent | Mode from `sdtk-spec.config.json` | |
60
- | 6 | Flow-action screen spec updated (`[FEATURE_KEY]_FLOW_ACTION_SPEC.md`) when UI flow scope exists | [ ] Pending | ARCH Agent | | |
61
- | 7 | Screen layout spec updated (`DESIGN_LAYOUT_[FEATURE_KEY].md`) when UI scope exists | [ ] Pending | ARCH Agent | | |
62
- | 8 | Security model documented (auth/authz) | [ ] Pending | ARCH Agent | | |
63
- | **9** | **ARCH DESIGN READY** | [ ] Pending | **ARCH Gate** | **@dev please plan and prepare SDTK-CODE handoff** | |
64
-
65
- ---
66
-
67
- ## PHASE 4: DEV (Implementation Planning + SDTK-CODE Handoff) CHECKLIST
68
-
69
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
70
- |---|----------|--------|-------------|--------------|------|
71
- | 1 | `FEATURE_IMPL_PLAN` matches ARCH design + backlog + clarifications logged (OQ-xx) | [ ] Pending | Dev Agent | | |
72
- | 2 | Implementation slices are explicit and scope-bounded | [ ] Pending | Dev Agent | | |
73
- | 3 | Required refs include all mandatory upstream source documents | [ ] Pending | Dev Agent | | |
74
- | 4 | Test obligations are explicit enough for downstream verification | [ ] Pending | Dev Agent | | |
75
- | 5 | Readiness decision is explicit (`READY_FOR_SDTK_CODE` or `BLOCKED_FOR_SDTK_CODE`) | [ ] Pending | Dev Agent | | |
76
- | 6 | `CODE_HANDOFF_[FEATURE_KEY].json` generated or validated successfully | [ ] Pending | Dev Agent | | |
77
- | **7** | **DEV READY FOR SDTK-CODE** | [ ] Pending | **Dev Gate** | **If ready: suggest `sdtk-code start ...`; if blocked: keep blockers visible** | |
78
-
79
- ---
80
-
81
- ## PHASE 5: QA (Quality Assurance) CHECKLIST
82
-
83
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
84
- |---|----------|--------|-------------|--------------|------|
85
- | 1 | Test Strategy covers all critical paths + unclear ACs escalated (OQ-xx) | [ ] Pending | QA Agent | | |
86
- | 2 | Test case specification updated (`[FEATURE_KEY]_TEST_CASE.md`) when detailed test design scope exists | [ ] Pending | QA Agent | | |
87
- | 3 | CODE evidence reviewed and aligned to `CODE_HANDOFF_[FEATURE_KEY].json` | [ ] Pending | QA Agent | | |
88
- | 4 | `OPS_HANDOFF_[FEATURE_KEY].json` reviewed and aligned to tested scope | [ ] Pending | QA Agent | | |
89
- | 5 | OPS evidence reviewed and sufficient | [ ] Pending | QA Agent | Missing required OPS evidence blocks approval | |
90
- | 6 | **E2E Tests:** P1 flows PASS (if applicable) | [ ] Pending | QA Agent | | |
91
- | 7 | **Defects:** 0 HIGH severity open | [ ] Pending | QA Agent | | |
92
- | 8 | **Coverage:** meets targets | [ ] Pending | QA Agent | | |
93
- | 9 | No flaky tests | [ ] Pending | QA Agent | | |
94
- | 10 | Performance meets NFRs | [ ] Pending | QA Agent | | |
95
- | 11 | Release Report complete | [ ] Pending | QA Agent | | |
96
- | **12** | **QA APPROVED** | [ ] Pending | **QA Gate** | **Record QA final decision; notify @pm for stakeholder communication and PM closure follow-up** | |
97
-
98
- ---
99
-
100
- ## PHASE 6: PM CLOSURE CHECKLIST
101
-
102
- | # | Criteria | Status | Verified By | Notes/Issues | Date |
103
- |---|----------|--------|-------------|--------------|------|
104
- | 1 | QA release decision reviewed by PM | [ ] Pending | PM Agent | | |
105
- | 2 | Outstanding OQ/risks triaged for next iteration | [ ] Pending | PM Agent | | |
106
- | 3 | Final status communicated to stakeholders | [ ] Pending | PM Agent | | |
107
- | **4** | **FEATURE CLOSURE COMPLETE** | [ ] Pending | **PM Gate** | **Pipeline complete** | |
108
-
109
- ---
110
-
111
- ## FINAL RELEASE GATE
112
-
113
- ```
114
- RELEASE STATUS: IN PROGRESS
115
-
116
- FINAL VERIFICATION:
117
- [ ] Phase 1 PM Init
118
- [ ] Phase 2 BA
119
- [ ] Phase 2+ PM Plan
120
- [ ] Phase 3 ARCH
121
- [ ] Phase 4 DEV + SDTK-CODE Handoff
122
- [ ] Phase 5 QA
123
- [ ] Phase 6 PM Closure
124
- ```
1
+ # QUALITY CHECKLIST
2
+ ## Multi-Agent Development Pipeline Gates (v2.1 - 6 Phases)
3
+
4
+ **Current Feature:** `{{FEATURE_KEY}}`
5
+ **Last Updated:** `{{DATETIME}}`
6
+ **Overall Status:** `PHASE 1 PM INITIATION - IN PROGRESS`
7
+
8
+ ---
9
+
10
+ ## PHASE 1: PM INITIATION (Project Kickoff) CHECKLIST
11
+
12
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
13
+ |---|----------|--------|-------------|--------------|------|
14
+ | 1 | Requirements received from stakeholders | [ ] Pending | PM Agent | | |
15
+ | 2 | Business problem clearly defined | [ ] Pending | PM Agent | | |
16
+ | 3 | High-level scope documented (REQ-xx) + Open Questions (OQ-xx) captured | [ ] Pending | PM Agent | | |
17
+ | 4 | Stakeholders identified | [ ] Pending | PM Agent | | |
18
+ | 5 | Success criteria defined (measurable) | [ ] Pending | PM Agent | | |
19
+ | **6** | **PM INITIATION COMPLETE** | [ ] Pending | **PM Gate** | **@ba please analyze** | |
20
+
21
+ ---
22
+
23
+ ## PHASE 2: BA (Business Analysis) CHECKLIST
24
+
25
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
26
+ |---|----------|--------|-------------|--------------|------|
27
+ | 1 | Domain Glossary complete (all terms defined) | [ ] Pending | BA Agent | | |
28
+ | 2 | Business Rules numbered and complete (BR-01...) | [ ] Pending | BA Agent | | |
29
+ | 3 | Use Cases cover 100% requirements (UC-01...) | [ ] Pending | BA Agent | | |
30
+ | 4 | Data entities and relationships documented | [ ] Pending | BA Agent | | |
31
+ | 5 | Risks identified + prioritized (High/Med/Low) | [ ] Pending | BA Agent | | |
32
+ | 6 | Open questions listed for PM/ARCH review | [ ] Pending | BA Agent | | |
33
+ | **7** | **BA SPECS READY** | [ ] Pending | **BA Gate** | **@pm specs ready for PRD** | |
34
+
35
+ ---
36
+
37
+ ## PHASE 2+: PM PLANNING CHECKLIST
38
+
39
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
40
+ |---|----------|--------|-------------|--------------|------|
41
+ | 1 | PRD aligns 100% with BA specs + resolves/records OQ decisions | [ ] Pending | PM Agent | | |
42
+ | 2 | Backlog 100% traceable to BA Use Cases | [ ] Pending | PM Agent | | |
43
+ | 3 | Story priorities reflect business value (MoSCoW) | [ ] Pending | PM Agent | | |
44
+ | 4 | Success metrics defined and measurable | [ ] Pending | PM Agent | | |
45
+ | 5 | Release criteria objective and testable | [ ] Pending | PM Agent | | |
46
+ | 6 | Effort estimates realistic (Fibonacci story points) | [ ] Pending | PM Agent | | |
47
+ | **7** | **PM BACKLOG READY** | [ ] Pending | **PM Gate** | **@arch please design** | |
48
+
49
+ ---
50
+
51
+ ## PHASE 3: ARCH (Solution Architecture) CHECKLIST
52
+
53
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
54
+ |---|----------|--------|-------------|--------------|------|
55
+ | 1 | System architecture diagram complete + assumptions/OQ documented | [ ] Pending | ARCH Agent | | |
56
+ | 2 | Database schema/ERD documented + `DATABASE_SPEC_[FEATURE_KEY].md` updated (if DB scope) | [ ] Pending | ARCH Agent | | |
57
+ | 3 | API contract docs updated (`[FeaturePascal]_API.yaml` + `[FEATURE_KEY]_ENDPOINTS.md`) when API scope exists | [ ] Pending | ARCH Agent | | |
58
+ | 4 | API flow list updated (`[feature_snake]_api_flow_list.txt`) when API scope exists | [ ] Pending | ARCH Agent | | |
59
+ | 5 | API design detail updated (`[FEATURE_KEY]_API_DESIGN_DETAIL.md`) when API scope exists and mode is `auto/on` | [ ] Pending | ARCH Agent | Mode from `sdtk-spec.config.json` | |
60
+ | 6 | Flow-action screen spec updated (`[FEATURE_KEY]_FLOW_ACTION_SPEC.md`) when UI flow scope exists | [ ] Pending | ARCH Agent | | |
61
+ | 7 | Screen layout spec updated (`DESIGN_LAYOUT_[FEATURE_KEY].md`) when UI scope exists | [ ] Pending | ARCH Agent | | |
62
+ | 8 | Security model documented (auth/authz) | [ ] Pending | ARCH Agent | | |
63
+ | **9** | **ARCH DESIGN READY** | [ ] Pending | **ARCH Gate** | **@dev please plan and prepare SDTK-CODE handoff** | |
64
+
65
+ ---
66
+
67
+ ## PHASE 4: DEV (Implementation Planning + SDTK-CODE Handoff) CHECKLIST
68
+
69
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
70
+ |---|----------|--------|-------------|--------------|------|
71
+ | 1 | `FEATURE_IMPL_PLAN` matches ARCH design + backlog + clarifications logged (OQ-xx) | [ ] Pending | Dev Agent | | |
72
+ | 2 | Implementation slices are explicit and scope-bounded | [ ] Pending | Dev Agent | | |
73
+ | 3 | Required refs include all mandatory upstream source documents | [ ] Pending | Dev Agent | | |
74
+ | 4 | Test obligations are explicit enough for downstream verification | [ ] Pending | Dev Agent | | |
75
+ | 5 | Readiness decision is explicit (`READY_FOR_SDTK_CODE` or `BLOCKED_FOR_SDTK_CODE`) | [ ] Pending | Dev Agent | | |
76
+ | 6 | `CODE_HANDOFF_[FEATURE_KEY].json` generated or validated successfully | [ ] Pending | Dev Agent | | |
77
+ | **7** | **DEV READY FOR SDTK-CODE** | [ ] Pending | **Dev Gate** | **If ready: suggest `sdtk-code start ...`; if blocked: keep blockers visible** | |
78
+
79
+ ---
80
+
81
+ ## PHASE 5: QA (Quality Assurance) CHECKLIST
82
+
83
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
84
+ |---|----------|--------|-------------|--------------|------|
85
+ | 1 | Test Strategy covers all critical paths + unclear ACs escalated (OQ-xx) | [ ] Pending | QA Agent | | |
86
+ | 2 | Test case specification updated (`[FEATURE_KEY]_TEST_CASE.md`) when detailed test design scope exists | [ ] Pending | QA Agent | | |
87
+ | 3 | CODE evidence reviewed and aligned to `CODE_HANDOFF_[FEATURE_KEY].json` | [ ] Pending | QA Agent | | |
88
+ | 4 | `OPS_HANDOFF_[FEATURE_KEY].json` reviewed and aligned to tested scope | [ ] Pending | QA Agent | | |
89
+ | 5 | OPS evidence reviewed and sufficient | [ ] Pending | QA Agent | Missing required OPS evidence blocks approval | |
90
+ | 6 | **E2E Tests:** P1 flows PASS (if applicable) | [ ] Pending | QA Agent | | |
91
+ | 7 | **Defects:** 0 HIGH severity open | [ ] Pending | QA Agent | | |
92
+ | 8 | **Coverage:** meets targets | [ ] Pending | QA Agent | | |
93
+ | 9 | No flaky tests | [ ] Pending | QA Agent | | |
94
+ | 10 | Performance meets NFRs | [ ] Pending | QA Agent | | |
95
+ | 11 | Release Report complete | [ ] Pending | QA Agent | | |
96
+ | **12** | **QA APPROVED** | [ ] Pending | **QA Gate** | **Record QA final decision; notify @pm for stakeholder communication and PM closure follow-up** | |
97
+
98
+ ---
99
+
100
+ ## PHASE 6: PM CLOSURE CHECKLIST
101
+
102
+ | # | Criteria | Status | Verified By | Notes/Issues | Date |
103
+ |---|----------|--------|-------------|--------------|------|
104
+ | 1 | QA release decision reviewed by PM | [ ] Pending | PM Agent | | |
105
+ | 2 | Outstanding OQ/risks triaged for next iteration | [ ] Pending | PM Agent | | |
106
+ | 3 | Final status communicated to stakeholders | [ ] Pending | PM Agent | No prose-only `committed`, `pushed`, `publish-ready`, or `ship complete` claim without exact git evidence | |
107
+ | **4** | **FEATURE CLOSURE COMPLETE** | [ ] Pending | **PM Gate** | **Pipeline complete** | |
108
+
109
+ ---
110
+
111
+ ## FINAL RELEASE GATE
112
+
113
+ ```
114
+ RELEASE STATUS: IN PROGRESS
115
+
116
+ FINAL VERIFICATION:
117
+ [ ] Phase 1 PM Init
118
+ [ ] Phase 2 BA
119
+ [ ] Phase 2+ PM Plan
120
+ [ ] Phase 3 ARCH
121
+ [ ] Phase 4 DEV + SDTK-CODE Handoff
122
+ [ ] Phase 5 QA
123
+ [ ] Phase 6 PM Closure
124
+ ```
@@ -39,6 +39,7 @@ The script renders templates into `docs/**` and updates:
39
39
  ## Added QA Outputs
40
40
  - `docs/qa/[FEATURE_KEY]_TEST_CASE.md`
41
41
  - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
42
+ - `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md`
42
43
 
43
44
  ## ARCH Orchestration Mapping
44
45
  - API scope: use `sdtk-api-doc`.
@@ -1,81 +1,81 @@
1
- # SHARED PLANNING DOCUMENT
2
- ## Multi-Agent Development Pipeline Tracker (v2.1 - 6 Phases)
3
-
4
- **Current Feature:** `{{FEATURE_KEY}}`
5
- **Feature Name:** `{{FEATURE_NAME}}`
6
- **Last Updated:** `{{DATETIME}}`
7
- **Pipeline Status:** `PHASE 1 - PM INITIATION (IN PROGRESS)`
8
-
9
- ---
10
-
11
- ## PIPELINE STATUS TABLE (6 Phases)
12
-
13
- | Phase | Status | Owner | Start Date | Finish Date | Primary Artifact | Secondary Artifacts | Notes/Blockers |
14
- |-------|--------|-------|------------|-------------|------------------|-------------------|---------------|
15
- | **1. PM Init** | IN_PROGRESS | `@pm` | {{DATE}} | - | `PROJECT_INITIATION_{{FEATURE_KEY}}.md` | Scope + REQ-xx | |
16
- | **2. BA** | Pending | `@ba` | - | - | `BA_SPEC_{{FEATURE_KEY}}.md` | BR/UC/AC/NFR | |
17
- | **2+. PM Plan** | Pending | `@pm` | - | - | `PRD_{{FEATURE_KEY}}.md` | `BACKLOG_{{FEATURE_KEY}}.md` | |
18
- | **3. ARCH** | Pending | `@arch` | - | - | `ARCH_DESIGN_{{FEATURE_KEY}}.md` | API + API_DETAIL + DB + UI specs | |
19
- | **4. Dev** | Pending | `@dev` | - | - | `FEATURE_IMPL_PLAN_{{FEATURE_KEY}}.md` | `CODE_HANDOFF_{{FEATURE_KEY}}.json` + readiness decision | |
20
- | **5. QA** | Pending | `@qa` | - | - | `QA_RELEASE_REPORT_{{FEATURE_KEY}}.md` | `{{FEATURE_KEY}}_TEST_CASE.md` + Test results | |
21
- | **6. PM Closure** | Pending | `@pm` | - | - | Release decision recorded | Handoff complete | |
22
-
23
- ---
24
-
25
- ## VISUAL PIPELINE STATUS
26
- ```
27
- [PM Init] IN_PROGRESS --> [BA] PENDING --> [PM Plan] PENDING --> [ARCH] PENDING --> [Dev] PENDING --> [QA] PENDING --> [PM Closure] PENDING
28
- ```
29
-
30
- ---
31
-
32
- ## ARTIFACTS LOCATION GUIDE
33
-
34
- ```
35
- PM OUTPUTS: docs/product/PROJECT_INITIATION_{{FEATURE_KEY}}.md
36
- docs/product/PRD_{{FEATURE_KEY}}.md
37
- docs/product/BACKLOG_{{FEATURE_KEY}}.md
38
- BA OUTPUTS: docs/specs/BA_SPEC_{{FEATURE_KEY}}.md
39
- ARCH OUTPUTS: docs/architecture/ARCH_DESIGN_{{FEATURE_KEY}}.md
40
- docs/api/{{FEATURE_PASCAL}}_API.yaml
41
- docs/api/{{FEATURE_KEY}}_ENDPOINTS.md
42
- docs/api/{{FEATURE_KEY}}_API_DESIGN_DETAIL.md
43
- docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt
44
- docs/database/DATABASE_SPEC_{{FEATURE_KEY}}.md
45
- docs/specs/{{FEATURE_KEY}}_FLOW_ACTION_SPEC.md
46
- docs/design/DESIGN_LAYOUT_{{FEATURE_KEY}}.md
47
- DEV OUTPUTS: docs/dev/FEATURE_IMPL_PLAN_{{FEATURE_KEY}}.md
48
- docs/dev/CODE_HANDOFF_{{FEATURE_KEY}}.json
49
- QA OUTPUTS: docs/qa/{{FEATURE_KEY}}_TEST_CASE.md
50
- docs/qa/QA_RELEASE_REPORT_{{FEATURE_KEY}}.md
51
- SHARED STATE: SHARED_PLANNING.md + QUALITY_CHECKLIST.md
52
- ```
53
-
54
- ---
55
-
56
- ## CURRENT BLOCKERS / ISSUES
57
- ```
58
- NO BLOCKERS
59
- ```
60
-
61
- ---
62
-
63
- ## OPEN QUESTIONS (Summary)
64
- List any unresolved OQ-xx items here with a pointer to the owning artifact (PM consolidates).
65
-
66
- | Q-ID | Summary | Owner | Source Doc | Status |
67
- |------|---------|-------|------------|--------|
68
- | OQ-01 | TBD | PM | docs/specs/BA_SPEC_{{FEATURE_KEY}}.md | OPEN |
69
-
70
- ---
71
-
72
- ## RECENT ACTIVITY LOG (Agent Updates)
73
-
74
- ```
75
- {{DATETIME}} | [SYSTEM] | INIT | Toolkit initialized for {{FEATURE_KEY}} | @pm please create PROJECT_INITIATION
76
- ```
77
-
78
- **Append updates with format:**
79
- ```
80
- YYYY-MM-DD HH:MM | [PM/BA/ARCH/DEV/QA] | [Status] | [Artifact] | @next_agent
81
- ```
1
+ # SHARED PLANNING DOCUMENT
2
+ ## Multi-Agent Development Pipeline Tracker (v2.1 - 6 Phases)
3
+
4
+ **Current Feature:** `{{FEATURE_KEY}}`
5
+ **Feature Name:** `{{FEATURE_NAME}}`
6
+ **Last Updated:** `{{DATETIME}}`
7
+ **Pipeline Status:** `PHASE 1 - PM INITIATION (IN PROGRESS)`
8
+
9
+ ---
10
+
11
+ ## PIPELINE STATUS TABLE (6 Phases)
12
+
13
+ | Phase | Status | Owner | Start Date | Finish Date | Primary Artifact | Secondary Artifacts | Notes/Blockers |
14
+ |-------|--------|-------|------------|-------------|------------------|-------------------|---------------|
15
+ | **1. PM Init** | IN_PROGRESS | `@pm` | {{DATE}} | - | `PROJECT_INITIATION_{{FEATURE_KEY}}.md` | Scope + REQ-xx | |
16
+ | **2. BA** | Pending | `@ba` | - | - | `BA_SPEC_{{FEATURE_KEY}}.md` | BR/UC/AC/NFR | |
17
+ | **2+. PM Plan** | Pending | `@pm` | - | - | `PRD_{{FEATURE_KEY}}.md` | `BACKLOG_{{FEATURE_KEY}}.md` | |
18
+ | **3. ARCH** | Pending | `@arch` | - | - | `ARCH_DESIGN_{{FEATURE_KEY}}.md` | API + API_DETAIL + DB + UI specs | |
19
+ | **4. Dev** | Pending | `@dev` | - | - | `FEATURE_IMPL_PLAN_{{FEATURE_KEY}}.md` | `CODE_HANDOFF_{{FEATURE_KEY}}.json` + readiness decision | |
20
+ | **5. QA** | Pending | `@qa` | - | - | `QA_RELEASE_REPORT_{{FEATURE_KEY}}.md` | `{{FEATURE_KEY}}_TEST_CASE.md` + Test results | |
21
+ | **6. PM Closure** | Pending | `@pm` | - | - | Release decision recorded | Handoff complete | Requires QA + controller decisions and exact git truth before `committed` / `pushed` wording |
22
+
23
+ ---
24
+
25
+ ## VISUAL PIPELINE STATUS
26
+ ```
27
+ [PM Init] IN_PROGRESS --> [BA] PENDING --> [PM Plan] PENDING --> [ARCH] PENDING --> [Dev] PENDING --> [QA] PENDING --> [PM Closure] PENDING
28
+ ```
29
+
30
+ ---
31
+
32
+ ## ARTIFACTS LOCATION GUIDE
33
+
34
+ ```
35
+ PM OUTPUTS: docs/product/PROJECT_INITIATION_{{FEATURE_KEY}}.md
36
+ docs/product/PRD_{{FEATURE_KEY}}.md
37
+ docs/product/BACKLOG_{{FEATURE_KEY}}.md
38
+ BA OUTPUTS: docs/specs/BA_SPEC_{{FEATURE_KEY}}.md
39
+ ARCH OUTPUTS: docs/architecture/ARCH_DESIGN_{{FEATURE_KEY}}.md
40
+ docs/api/{{FEATURE_PASCAL}}_API.yaml
41
+ docs/api/{{FEATURE_KEY}}_ENDPOINTS.md
42
+ docs/api/{{FEATURE_KEY}}_API_DESIGN_DETAIL.md
43
+ docs/api/{{FEATURE_SNAKE}}_api_flow_list.txt
44
+ docs/database/DATABASE_SPEC_{{FEATURE_KEY}}.md
45
+ docs/specs/{{FEATURE_KEY}}_FLOW_ACTION_SPEC.md
46
+ docs/design/DESIGN_LAYOUT_{{FEATURE_KEY}}.md
47
+ DEV OUTPUTS: docs/dev/FEATURE_IMPL_PLAN_{{FEATURE_KEY}}.md
48
+ docs/dev/CODE_HANDOFF_{{FEATURE_KEY}}.json
49
+ QA OUTPUTS: docs/qa/{{FEATURE_KEY}}_TEST_CASE.md
50
+ docs/qa/QA_RELEASE_REPORT_{{FEATURE_KEY}}.md
51
+ SHARED STATE: SHARED_PLANNING.md + QUALITY_CHECKLIST.md
52
+ ```
53
+
54
+ ---
55
+
56
+ ## CURRENT BLOCKERS / ISSUES
57
+ ```
58
+ NO BLOCKERS
59
+ ```
60
+
61
+ ---
62
+
63
+ ## OPEN QUESTIONS (Summary)
64
+ List any unresolved OQ-xx items here with a pointer to the owning artifact (PM consolidates).
65
+
66
+ | Q-ID | Summary | Owner | Source Doc | Status |
67
+ |------|---------|-------|------------|--------|
68
+ | OQ-01 | TBD | PM | docs/specs/BA_SPEC_{{FEATURE_KEY}}.md | OPEN |
69
+
70
+ ---
71
+
72
+ ## RECENT ACTIVITY LOG (Agent Updates)
73
+
74
+ ```
75
+ {{DATETIME}} | [SYSTEM] | INIT | Toolkit initialized for {{FEATURE_KEY}} | @pm please create PROJECT_INITIATION
76
+ ```
77
+
78
+ **Append updates with format:**
79
+ ```
80
+ YYYY-MM-DD HH:MM | [PM/BA/ARCH/DEV/QA] | [Status] | [Artifact] | @next_agent
81
+ ```