sdtk-spec-kit 0.3.9 → 0.3.11

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 (52) hide show
  1. package/README.md +136 -106
  2. package/assets/manifest/toolkit-bundle.manifest.json +94 -80
  3. package/assets/manifest/toolkit-bundle.sha256.txt +41 -38
  4. package/assets/toolkit/toolkit/AGENTS.md +5 -4
  5. package/assets/toolkit/toolkit/README.md +50 -0
  6. package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +185 -0
  7. package/assets/toolkit/toolkit/install.ps1 +2 -2
  8. package/assets/toolkit/toolkit/scripts/init-feature.ps1 +4 -3
  9. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +32 -12
  10. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +33 -6
  11. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +84 -84
  12. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  13. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  14. package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +127 -127
  15. package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -83
  16. package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  17. package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  18. package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +127 -127
  19. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +108 -98
  20. package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +7 -4
  21. package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +7 -4
  22. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +97 -81
  23. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +37 -30
  24. package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -52
  25. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  26. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +30 -30
  27. package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +25 -25
  28. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +4 -2
  29. package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +90 -90
  30. package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +3 -0
  31. package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +25 -53
  32. package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +16 -8
  33. package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -121
  34. package/assets/toolkit/toolkit/templates/README.md +1 -0
  35. package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
  36. package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
  37. package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +127 -127
  38. package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +174 -174
  39. package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +106 -93
  40. package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -0
  41. package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -61
  42. package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
  43. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +4 -0
  44. package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +5 -0
  45. package/package.json +16 -16
  46. package/src/commands/help.js +123 -101
  47. package/src/commands/init.js +10 -2
  48. package/src/commands/runtime.js +27 -5
  49. package/src/commands/update.js +11 -0
  50. package/src/index.js +62 -59
  51. package/src/lib/scope.js +19 -4
  52. package/src/lib/update.js +326 -0
@@ -1,81 +1,97 @@
1
- ---
2
- name: sdtk-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.
4
- ---
5
-
6
- # SDTK-SPEC Orchestrator (multi-agent workflow)
7
-
8
- ## Critical Constraints
9
- - I do not skip mandatory phases or hand off without current-phase evidence.
10
- - I do not treat planned commands as equivalent to completed work.
11
-
12
- ## Initialize
13
- - Ensure feature key + feature name exist (ask if missing).
14
- - Read `sdtk-spec.config.json` (project stack + commands) if present.
15
- - If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
16
-
17
- ## Execute pipeline (one phase per turn)
18
- - Default role: PM (entry point) if user did not specify.
19
- - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
20
- - For each phase:
21
- - Create/update the phase artifact(s) in `docs/`.
22
- - If phase is ARCH and API contract/flow is in scope, invoke `sdtk-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`.
23
- - If phase is ARCH and API detail spec is in scope, invoke `sdtk-api-design-spec` to produce/update `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`.
24
- - If phase is ARCH and UI flow behavior is in scope, invoke `sdtk-screen-design-spec` to produce/update `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`.
25
- - If phase is DEV, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; do not claim the orchestrator completed downstream code execution.
26
- - If phase is QA and test-case specification is in scope, invoke `sdtk-test-case-spec` to produce/update `docs/qa/[FEATURE_KEY]_TEST_CASE.md`.
27
- - Update `SHARED_PLANNING.md` (phase row + activity log).
28
- - Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
29
- - Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
30
-
31
- ## API design detail mode (Hybrid)
32
- - Read `sdtk-spec.config.json` key: `orchestration.apiDesignDetailMode`.
33
- - Supported values:
34
- - `auto` (default): run `sdtk-api-design-spec` when ARCH has API scope and YAML + flow list are available.
35
- - `on`: always run `sdtk-api-design-spec` for API scope (fail fast if required inputs are missing).
36
- - `off`: skip API design detail generation unless user explicitly requests it.
37
-
38
- ## Test-case spec mode (Hybrid)
39
- - Read `sdtk-spec.config.json` key: `orchestration.testCaseSpecMode`.
40
- - Supported values:
41
- - `auto` (default): run `sdtk-test-case-spec` when QA phase requires reusable test-case artifact.
42
- - `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
43
- - `off`: skip test-case spec generation unless user explicitly requests it.
44
-
45
- ## Flow Overview
46
-
47
- ```dot
48
- digraph sdtk_orchestrator_flow {
49
- rankdir=LR;
50
- PM -> BA;
51
- BA -> ARCH;
52
- ARCH -> DEV;
53
- DEV -> SDTK_CODE [label="CODE_HANDOFF"];
54
- SDTK_CODE -> QA [label="implementation evidence"];
55
- QA -> PM;
56
- }
57
- ```
58
-
59
- ## Verification Before Completion
60
- Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` whenever you mark a phase complete, mark a gate PASS, or hand off to the next role. Require fresh verification evidence before you state that the phase is done.
61
-
62
- Do not:
63
- - say a phase is done or PASS without citing the evidence that proves it
64
- - treat a planned command as equivalent to an executed command
65
- - hand off DEV or QA work with overstated verification status
66
-
67
- If the evidence is incomplete, keep the phase open or mark it blocked instead of overstating completion.
68
-
69
- ## Guardrails
70
- - Do not skip phases; if prerequisites are missing, ask focused questions.
71
- - Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report.
72
- - Default bridge is `/dev -> SDTK-CODE -> /qa`.
73
- - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
74
-
75
- ## Common Mistakes
76
-
77
- | Mistake | Why it is wrong | Do instead |
78
- |---|---|---|
79
- | Skip directly from PM to DEV because the request seems small | Breaks traceability and removes BA and ARCH controls | Keep phase order unless the user explicitly narrows scope with acceptable evidence |
80
- | Hand off a phase based on planned checks instead of executed evidence | Creates false PASS status and weakens downstream gates | Require fresh evidence before marking the phase complete |
81
- | Mix generation, review, and release decisions in one uncontrolled turn | Makes status tracking ambiguous | Complete one phase handoff at a time and update shared state before moving on |
1
+ ---
2
+ name: sdtk-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.
4
+ ---
5
+
6
+ # SDTK-SPEC Orchestrator (multi-agent workflow)
7
+
8
+ ## Critical Constraints
9
+ - I do not skip mandatory phases or hand off without current-phase evidence.
10
+ - I do not treat planned commands as equivalent to completed work.
11
+ - I preserve truthful fallback behavior and do not overclaim universal helper-dispatch or universal skill exposure across every runtime surface.
12
+ - If bounded audits are requested, they stay narrow, evidence-cited, and non-approval-bearing.
13
+
14
+ ## Runtime Entrypoint Truth
15
+ - For Codex, project-local orchestrator support is bounded to explicit `CODEX_HOME=<project>/.codex`; `.codex/skills/sdtk-orchestrator` or helper dispatch do not prove direct built-in exposure.
16
+ - For Claude, visible-list presence of `orchestrator` does not prove `/orchestrator` or any other direct alias.
17
+ - `visible` and `working` are separate runtime checks; `working` requires observable controller action from a bounded request.
18
+ - Until runtime-specific direct syntax is validated, continue via the repo-local orchestrator contract in the current session.
19
+
20
+ ## Initialize
21
+ - Ensure feature key + feature name exist (ask if missing).
22
+ - Read `sdtk-spec.config.json` (project stack + commands) if present.
23
+ - If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
24
+
25
+ ## Execute pipeline (one phase per turn)
26
+ - Default role: PM (entry point) if user did not specify.
27
+ - Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
28
+ - For each phase:
29
+ - Create/update the phase artifact(s) in `docs/`.
30
+ - If phase is ARCH and API contract/flow is in scope, invoke `sdtk-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`.
31
+ - If phase is ARCH and API detail spec is in scope, invoke `sdtk-api-design-spec` to produce/update `docs/api/[FEATURE_KEY]_API_DESIGN_DETAIL.md`.
32
+ - If phase is ARCH and UI flow behavior is in scope, invoke `sdtk-screen-design-spec` to produce/update `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`.
33
+ - If phase is DEV, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; do not claim the orchestrator completed downstream code execution.
34
+ - If phase is QA and test-case specification is in scope, invoke `sdtk-test-case-spec` to produce/update `docs/qa/[FEATURE_KEY]_TEST_CASE.md`.
35
+ - If phase is QA and controller review is in scope, preserve `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md` as the primary QA output and `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` as the separate persisted controller verdict artifact.
36
+ - If QA or controller rejects a batch, route the next pass only through a bounded targeted-fix loop with explicit allowed surfaces and refresh order: `verify -> QA -> controller`.
37
+ - Update `SHARED_PLANNING.md` (phase row + activity log).
38
+ - Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
39
+ - Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
40
+
41
+ ## API design detail mode (Hybrid)
42
+ - Read `sdtk-spec.config.json` key: `orchestration.apiDesignDetailMode`.
43
+ - Supported values:
44
+ - `auto` (default): run `sdtk-api-design-spec` when ARCH has API scope and YAML + flow list are available.
45
+ - `on`: always run `sdtk-api-design-spec` for API scope (fail fast if required inputs are missing).
46
+ - `off`: skip API design detail generation unless user explicitly requests it.
47
+
48
+ ## Test-case spec mode (Hybrid)
49
+ - Read `sdtk-spec.config.json` key: `orchestration.testCaseSpecMode`.
50
+ - Supported values:
51
+ - `auto` (default): run `sdtk-test-case-spec` when QA phase requires reusable test-case artifact.
52
+ - `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
53
+ - `off`: skip test-case spec generation unless user explicitly requests it.
54
+
55
+ ## Flow Overview
56
+
57
+ ```dot
58
+ digraph sdtk_orchestrator_flow {
59
+ rankdir=LR;
60
+ PM -> BA;
61
+ BA -> ARCH;
62
+ ARCH -> DEV;
63
+ DEV -> SDTK_CODE [label="CODE_HANDOFF"];
64
+ SDTK_CODE -> QA [label="implementation evidence"];
65
+ QA -> PM;
66
+ }
67
+ ```
68
+
69
+ ## Verification Before Completion
70
+ Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` whenever you mark a phase complete, mark a gate PASS, or hand off to the next role. Require fresh verification evidence before you state that the phase is done.
71
+
72
+ Do not:
73
+ - say a phase is done or PASS without citing the evidence that proves it
74
+ - treat a planned command as equivalent to an executed command
75
+ - hand off DEV or QA work with overstated verification status
76
+
77
+ If the evidence is incomplete, keep the phase open or mark it blocked instead of overstating completion.
78
+
79
+ ## Guardrails
80
+ - Do not skip phases; if prerequisites are missing, ask focused questions.
81
+ - Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report.
82
+ - Default bridge is `/dev -> SDTK-CODE -> /qa`.
83
+ - Preserve truthful fallback behavior when helper dispatch or built-in skill exposure is unavailable; repo-local contract execution remains valid evidence of workflow support.
84
+ - Keep bounded audits narrow, evidence-cited, and non-approval-bearing; the controller remains the only final acceptance authority.
85
+ - Do not widen a targeted-fix loop beyond the exact findings that triggered the rejection.
86
+ - If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
87
+
88
+ ## Common Mistakes
89
+
90
+ | Mistake | Why it is wrong | Do instead |
91
+ |---|---|---|
92
+ | Skip directly from PM to DEV because the request seems small | Breaks traceability and removes BA and ARCH controls | Keep phase order unless the user explicitly narrows scope with acceptable evidence |
93
+ | Hand off a phase based on planned checks instead of executed evidence | Creates false PASS status and weakens downstream gates | Require fresh evidence before marking the phase complete |
94
+ | Mix generation, review, and release decisions in one uncontrolled turn | Makes status tracking ambiguous | Complete one phase handoff at a time and update shared state before moving on |
95
+ | Claim helper-dispatch or skill exposure is universal across every runtime surface | Overstates runtime guarantees and breaks truthful fallback behavior | State the verified surface only and keep the repo-local fallback explicit |
96
+ | Let a bounded audit issue the final verdict or replace QA/controller review | Breaks authority boundaries and creates ambiguous approval ownership | Keep audits narrow and evidence-cited, then return the findings to QA/controller |
97
+ | Let a rejected batch jump straight to ship or PM closure | Breaks the targeted-fix refresh order and hides unresolved findings | Route rejected batches through the bounded loop `verify -> QA -> controller` before any later phase |
@@ -1,30 +1,37 @@
1
- ---
2
- name: sdtk-pm
3
- description: Product Manager + meta-orchestrator workflow for SDTK-SPEC. Use when you need to start a new feature (Phase 1) or produce PM planning artifacts (PRD + BACKLOG) and update SHARED_PLANNING.md / QUALITY_CHECKLIST.md with correct phase handoffs.
4
- ---
5
-
6
- # SDTK-SPEC PM (Entry Point + Planning)
7
-
8
- ## Critical Constraints
9
- - I do not hand off PM work until `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md` reflect the current phase.
10
- - I do not hide unresolved scope or decision gaps; I record them as `OQ-xx` items for downstream roles.
11
-
12
- ## Outputs
13
- - Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
14
- - Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
15
-
16
- ## Process
17
- 1. Confirm `FEATURE_KEY` + `FEATURE_NAME` + Phase-1 scope in/out.
18
- 2. Create/update PM artifact(s) using `toolkit/templates/docs/product/*` as structure.
19
- 3. Ensure REQ-xx list is clear and testable.
20
- 4. If requirements are provided in VI/JP: keep the original text in an appendix and add an EN translation (literal) for traceability.
21
- 5. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md`.
22
- 6. Handoff:
23
- - After Project Initiation -> `@ba please analyze ...`
24
- - After PRD/Backlog -> `@arch please design ...`
25
-
26
- ## Clarification And Decisions (PM responsibility)
27
- - Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
28
- - Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
29
- - If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
30
- - Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
1
+ ---
2
+ name: sdtk-pm
3
+ description: Product Manager + meta-orchestrator workflow for SDTK-SPEC. Use when you need to start a new feature (Phase 1) or produce PM planning artifacts (PRD + BACKLOG) and update SHARED_PLANNING.md / QUALITY_CHECKLIST.md with correct phase handoffs.
4
+ ---
5
+
6
+ # SDTK-SPEC PM (Entry Point + Planning)
7
+
8
+ ## Critical Constraints
9
+ - I do not hand off PM work until `SHARED_PLANNING.md` and `QUALITY_CHECKLIST.md` reflect the current phase.
10
+ - I do not hide unresolved scope or decision gaps; I record them as `OQ-xx` items for downstream roles.
11
+ - I do not write `committed`, `pushed`, `publish-ready`, or `ship complete` closure wording without exact git and downstream-phase evidence to support it.
12
+
13
+ ## Outputs
14
+ - Phase 1: `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
15
+ - Phase 2+ (after BA spec): `docs/product/PRD_[FEATURE_KEY].md` + `docs/product/BACKLOG_[FEATURE_KEY].md`
16
+
17
+ ## Process
18
+ 1. Confirm `FEATURE_KEY` + `FEATURE_NAME` + Phase-1 scope in/out.
19
+ 2. Create/update PM artifact(s) using `toolkit/templates/docs/product/*` as structure.
20
+ 3. Ensure REQ-xx list is clear and testable.
21
+ 4. If requirements are provided in VI/JP: keep the original text in an appendix and add an EN translation (literal) for traceability.
22
+ 5. Update `SHARED_PLANNING.md` + `QUALITY_CHECKLIST.md`.
23
+ 6. Handoff:
24
+ - After Project Initiation -> `@ba please analyze ...`
25
+ - After PRD/Backlog -> `@arch please design ...`
26
+
27
+ ## Phase 6 Closure Truth
28
+ - Review the final QA and controller decisions before closing the issue.
29
+ - Treat `SHARED_PLANNING.md`, `QUALITY_CHECKLIST.md`, and `governance/ai/core/IMPROVEMENT_BACKLOG.md` as closure-state surfaces that must stay synchronized.
30
+ - Before using `committed` or `pushed` wording, verify the actual git state that supports the claim.
31
+ - Do not turn issue closeout into a fake standalone publish or release-wave claim unless that separate evidence truly exists.
32
+
33
+ ## Clarification And Decisions (PM responsibility)
34
+ - Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
35
+ - Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
36
+ - If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
37
+ - Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
@@ -1,52 +1,75 @@
1
- ---
2
- name: sdtk-qa
3
- description: QA workflow for SDTK-SPEC. Use when you need to validate downstream implementation evidence against BA/PRD/Backlog, run quality gates, document defects, and produce a QA_RELEASE_REPORT with a release decision.
4
- ---
5
-
6
- # SDTK-SPEC QA (Testing + Release Decision)
7
-
8
- ## Critical Constraints
9
- - I do not start QA handoff or release decision work until downstream implementation evidence exists, normally from SDTK-CODE.
10
- - I do not approve without exact specification quotes and fresh verification evidence.
11
-
12
- ## Output
13
- - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
14
- - Optional (when detailed test design spec is requested):
15
- - `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `sdtk-test-case-spec`
16
-
17
- ## Process
18
- 1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, and downstream implementation evidence are available and reference the same feature scope.
19
- 2. Treat SDTK-CODE workflow evidence as the normal bridge into QA, but allow equivalent downstream coding-review evidence when SDTK-CODE is not the implementation owner.
20
- 3. Create test strategy mapped to UC/AC.
21
- 4. If test-case specification artifact is required, invoke `sdtk-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.
22
- 5. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
23
- 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` if still missing info.
24
- 7. Execute the required checks, record the commands used, and capture the actual results (unit/integration/e2e or document review evidence as applicable).
25
- 8. When validating requirement behavior, quote the exact specification text before recording a match or mismatch.
26
- 9. Record defects with severity and status.
27
- 10. Decide: APPROVED vs REJECTED only after fresh verification evidence supports the verdict.
28
- 11. Update shared state + Phase 5 checklist.
29
- 12. Handoff: `@pm please finalize release status ...` if approved.
30
-
31
- ## Verification Before Completion
32
- Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` and require fresh verification evidence before any QA verdict or handoff.
33
-
34
- Do not:
35
- - issue an APPROVED verdict without fresh verification evidence
36
- - infer PASS from expected behavior, partial logs, or missing runtime access
37
- - overstate benchmark-mode results as if they were live execution results
38
-
39
- If the environment cannot run the proving checks, follow the benchmark QA mode policy explicitly and state that the result is not fully verified at runtime.
40
-
41
- ## Specification Quoting
42
- When validating a requirement, quote the exact source text before judging the evidence.
43
-
44
- Use this format:
45
- - `Spec says: "[exact quote]" -> Evidence: [match/mismatch + file reference]`
46
-
47
- Apply it to BA, PRD or BACKLOG, ARCH, API, DB, and flow-action sources whenever they define the expected behavior.
48
-
49
- ## Order-Critical Hard Gate
50
- Do not start QA handoff, release testing, or release decision work until downstream implementation evidence is documented for the current feature, normally from SDTK-CODE `verify`/`ship` outputs or equivalent coding-review evidence.
51
-
52
- If downstream implementation evidence is missing or stale, keep the work blocked and request a refreshed downstream handoff before QA starts.
1
+ ---
2
+ name: sdtk-qa
3
+ description: QA workflow for SDTK-SPEC. Use when you need to validate downstream implementation evidence against BA/PRD/Backlog, run quality gates, document defects, and produce a QA_RELEASE_REPORT with a release decision.
4
+ ---
5
+
6
+ # SDTK-SPEC QA (Testing + Release Decision)
7
+
8
+ ## Critical Constraints
9
+ - I do not start QA handoff or release decision work until downstream implementation evidence exists, normally from SDTK-CODE.
10
+ - I do not approve without exact specification quotes and fresh verification evidence.
11
+ - `docs/dev/REVIEW_PACKET_[FEATURE_KEY].md` is a required QA input when `SDTK-CODE verify` has run.
12
+ - `OPS_HANDOFF_[FEATURE_KEY].json` alone is not sufficient final release evidence.
13
+ - When operationalization is in scope, I require both CODE evidence and OPS evidence before I can issue `APPROVED`.
14
+ - I remain the final release authority for the QA verdict and do not hand final release-status ownership back to PM after QA approval.
15
+ - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md` remains the primary QA output even when `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` exists.
16
+
17
+ ## Output
18
+ - `docs/qa/QA_RELEASE_REPORT_[FEATURE_KEY].md`
19
+ - Controller verdict artifact remains separate and downstream:
20
+ - `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md`
21
+ - Optional (when detailed test design spec is requested):
22
+ - `docs/qa/[FEATURE_KEY]_TEST_CASE.md` via `sdtk-test-case-spec`
23
+
24
+ ## Process
25
+ 1. Validate prerequisites: `FEATURE_IMPL_PLAN`, `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, downstream implementation evidence, and downstream operational evidence are available and reference the same feature scope.
26
+ 2. Treat SDTK-CODE workflow evidence as the normal bridge into QA. In the current formal suite flow, `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json` plus downstream operational evidence are also required before final release approval.
27
+ 3. Create test strategy mapped to UC/AC.
28
+ 4. If test-case specification artifact is required, invoke `sdtk-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.
29
+ 5. Apply `governance/ai/core/SDTK_BENCHMARK_QA_MODE_POLICY.md` for benchmark-mode verdict rules when no executable build exists.
30
+ 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` if still missing info.
31
+ 7. Execute the required checks, record the commands used, and capture the actual results (unit/integration/e2e or document review evidence as applicable).
32
+ 8. When validating requirement behavior, quote the exact specification text before recording a match or mismatch.
33
+ 9. Record defects with severity and status.
34
+ 10. 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`.
35
+ 11. In each lane subsection, fill the required fields: `Scope Checked`, `Findings`, `Severity`, `Evidence Refs`, and `Residual Risk / Notes`.
36
+ 12. Keep findings severity-ordered and evidence-backed; do not hide a real finding behind summary prose.
37
+ 13. Record `CODE_HANDOFF`, `REVIEW_PACKET`, `OPS_HANDOFF`, CODE evidence, and OPS evidence in the QA release artifact.
38
+ 14. Keep release-gate wording consistent with the actual verdict. Do not let a gate checkbox or summary line contradict `APPROVED` or `REJECTED`.
39
+ 15. Treat `REVIEW_PACKET` as verify input only. It does not replace the QA verdict or become the final release authority.
40
+ 16. Decide: APPROVED vs REJECTED only after fresh verification evidence supports the verdict. Missing required OPS evidence blocks APPROVED in the current formal suite flow.
41
+ 17. 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.
42
+ 18. Missing helper dispatch is not a QA blocker by itself; continue the review directly with the available artifacts and evidence.
43
+ 19. If QA rejects the batch, route the next pass only through a bounded targeted-fix loop: targeted fix -> refreshed verify -> refreshed QA -> controller. Do not widen scope silently during that loop.
44
+ 20. Final controller acceptance, when requested, is persisted separately at `docs/qa/CONTROLLER_ACCEPTANCE_[FEATURE_KEY].md` and does not replace the primary QA release report.
45
+ 21. Update shared state + Phase 5 checklist.
46
+ 22. Handoff: notify `@pm` and other stakeholders of the recorded QA release decision and any required follow-up, without reassigning final QA release authority.
47
+
48
+ ## Verification Before Completion
49
+ Apply `governance/ai/core/SDTK_VERIFICATION_BEFORE_COMPLETION_POLICY.md` and require fresh verification evidence before any QA verdict or handoff.
50
+
51
+ Do not:
52
+ - issue an APPROVED verdict without fresh verification evidence
53
+ - infer PASS from expected behavior, partial logs, or missing runtime access
54
+ - overstate benchmark-mode results as if they were live execution results
55
+ - let severity ordering, verdict wording, or release-gate wording drift out of sync
56
+
57
+ If the environment cannot run the proving checks, follow the benchmark QA mode policy explicitly and state that the result is not fully verified at runtime.
58
+
59
+ ## Specification Quoting
60
+ When validating a requirement, quote the exact source text before judging the evidence.
61
+
62
+ Use this format:
63
+ - `Spec says: "[exact quote]" -> Evidence: [match/mismatch + file reference]`
64
+
65
+ Apply it to BA, PRD or BACKLOG, ARCH, API, DB, and flow-action sources whenever they define the expected behavior.
66
+
67
+ ## Order-Critical Hard Gate
68
+ Do not start QA handoff, release testing, or release decision work until downstream implementation evidence is documented for the current feature, normally from SDTK-CODE `verify`/`ship` outputs or equivalent coding-review evidence.
69
+
70
+ If downstream implementation evidence is missing or stale, keep the work blocked and request a refreshed downstream handoff before QA starts.
71
+
72
+ Block final QA approval until:
73
+ - `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json` exists and matches the current feature scope
74
+ - downstream OPS evidence is present and current
75
+ - QA release notes show `REVIEW_PACKET`, CODE evidence, and OPS evidence as separate first-class inputs