sdtk-spec-kit 0.4.11 → 0.4.14
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.
- package/README.md +353 -353
- package/assets/atlas/build_atlas.py +880 -880
- package/assets/atlas/doc_atlas_viewer_template.html +3796 -3796
- package/assets/atlas/vendor/mermaid.min.js +2029 -2029
- package/assets/keys/spec-entitlement-public.pem +9 -9
- package/assets/manifest/toolkit-bundle.manifest.json +496 -496
- package/assets/manifest/toolkit-bundle.sha256.txt +97 -97
- package/assets/toolkit/toolkit/AGENTS.md +157 -241
- package/assets/toolkit/toolkit/README.md +51 -51
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +206 -206
- package/assets/toolkit/toolkit/install.ps1 +362 -362
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +95 -91
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +70 -69
- package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +332 -332
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +618 -618
- package/assets/toolkit/toolkit/scripts/agents/validate-mailbox-formal-artifact.py +87 -87
- package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +317 -317
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +262 -262
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +180 -180
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +209 -209
- package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +139 -139
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +143 -143
- package/assets/toolkit/toolkit/sdtk-spec.config.json +28 -28
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +50 -50
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +46 -46
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +48 -48
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -111
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +732 -732
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +79 -79
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +46 -46
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/scripts/render_design_layout_images.py +246 -246
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +133 -133
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/code-quality-reviewer.md +34 -34
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/implementer.md +60 -60
- package/assets/toolkit/toolkit/skills/sdtk-dev/prompts/spec-reviewer.md +41 -41
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +80 -80
- package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +176 -108
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +74 -74
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -75
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +108 -107
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +51 -51
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +54 -54
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md +28 -28
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py +136 -136
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py +414 -414
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +110 -110
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py +97 -97
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +330 -330
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -116
- package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +87 -87
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +59 -59
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +67 -67
- package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +91 -91
- package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +59 -59
- package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +73 -73
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +88 -42
- package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +88 -88
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +58 -58
- package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +113 -112
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +115 -115
- package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -124
- package/assets/toolkit/toolkit/templates/README.md +68 -68
- package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +21 -21
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_DETAIL_TEMPLATE.md +67 -67
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/API_ENDPOINTS_TEMPLATE.md +229 -229
- package/assets/toolkit/toolkit/templates/docs/api/FEATURE_API_TEMPLATE.yaml +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +20 -20
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
- package/assets/toolkit/toolkit/templates/docs/api/feature_api_flow_list_TEMPLATE.txt +12 -12
- package/assets/toolkit/toolkit/templates/docs/architecture/ARCH_DESIGN_TEMPLATE.md +109 -109
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +175 -175
- package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -60
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +117 -117
- package/assets/toolkit/toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md +369 -369
- package/assets/toolkit/toolkit/templates/docs/discovery/REQUIREMENT_TEMPLATE.md +155 -155
- package/assets/toolkit/toolkit/templates/docs/product/BACKLOG_TEMPLATE.md +50 -50
- package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +276 -276
- package/assets/toolkit/toolkit/templates/docs/product/PRD_TEMPLATE.md +66 -66
- package/assets/toolkit/toolkit/templates/docs/product/PROJECT_INITIATION_TEMPLATE.md +98 -98
- package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -90
- package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -162
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_CREATION_RULES.md +129 -129
- package/assets/toolkit/toolkit/templates/docs/qa/TEST_CASE_TEMPLATE.md +104 -104
- package/assets/toolkit/toolkit/templates/docs/specs/BA_SPEC_TEMPLATE.md +139 -139
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_TEMPLATE.md +197 -197
- package/assets/toolkit/toolkit/templates/handoffs/ARCH_TO_DEV.md +31 -31
- package/assets/toolkit/toolkit/templates/handoffs/BA_TO_ARCH.md +28 -28
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE1_SPEC_REVIEW.md +26 -26
- package/assets/toolkit/toolkit/templates/handoffs/DEV_STAGE2_CODE_QUALITY_REVIEW.md +20 -20
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +33 -33
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +60 -60
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +30 -30
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +26 -26
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +63 -63
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +76 -76
- package/bin/sdtk.js +15 -15
- package/package.json +48 -48
- package/src/commands/activate.js +94 -94
- package/src/commands/atlas.js +339 -339
- package/src/commands/auth.js +85 -85
- package/src/commands/entitlement.js +170 -170
- package/src/commands/generate.js +191 -170
- package/src/commands/help.js +248 -246
- package/src/commands/init.js +117 -117
- package/src/commands/project.js +51 -51
- package/src/commands/runtime.js +239 -239
- package/src/commands/update.js +11 -11
- package/src/index.js +68 -68
- package/src/lib/activation-state.js +68 -68
- package/src/lib/args.js +116 -116
- package/src/lib/atlas-config.js +200 -200
- package/src/lib/atlas-runner.js +435 -435
- package/src/lib/browser-open.js +39 -39
- package/src/lib/capabilities.js +89 -89
- package/src/lib/entitlements.js +245 -245
- package/src/lib/errors.js +41 -41
- package/src/lib/github-access.js +143 -143
- package/src/lib/legacy-auth-migration.js +56 -56
- package/src/lib/license-activation.js +386 -386
- package/src/lib/powershell.js +85 -85
- package/src/lib/premium-loader.js +124 -124
- package/src/lib/premium-packs.js +333 -333
- package/src/lib/premium-sync.js +235 -235
- package/src/lib/project-audit.js +332 -332
- package/src/lib/project-config.js +108 -108
- package/src/lib/project-ingest.js +450 -450
- package/src/lib/project-refresh.js +666 -666
- package/src/lib/project-target-guard.js +79 -79
- package/src/lib/requirement-analysis.js +14 -4
- package/src/lib/scope.js +83 -83
- package/src/lib/state.js +74 -74
- package/src/lib/suite-state.js +70 -70
- package/src/lib/toolkit-payload.js +99 -99
- package/src/lib/update.js +333 -333
|
@@ -1,108 +1,176 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sdtk-orchestrator
|
|
3
|
-
description: "
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SDTK
|
|
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
|
-
##
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
##
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
If
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sdtk-orchestrator
|
|
3
|
+
description: "Classify intent and route to the correct SDTK product workflow: SDTK-CODE start→plan→build→verify→ship, SDTK-SPEC PM→BA→ARCH→DEV→QA, or SDTK-OPS. Uses two-stage classify→registry routing with coarse-to-fine product selection."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SDTK Orchestrator (Classify-and-Route)
|
|
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
|
+
## Stage 1 — Classify Intent
|
|
21
|
+
Before selecting any role or product lane, classify the incoming request:
|
|
22
|
+
|
|
23
|
+
| Request type | Classification |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Raw / unclear idea | `brainstorm-discovery` |
|
|
26
|
+
| Analyze, clarify, or investigate an issue | `code-brainstorm` or `discovery` |
|
|
27
|
+
| Build a feature, fix a bug, or refactor | `sdtk-code` |
|
|
28
|
+
| Formal project spec or feature delivery pipeline | `sdtk-spec` |
|
|
29
|
+
| Deploy, infra, CI/CD, incident, monitoring | `sdtk-ops` |
|
|
30
|
+
| Code review or release decision | `review-qa` |
|
|
31
|
+
| Atlas / wiki graph or Ask | `atlas-wiki` |
|
|
32
|
+
| Project ingest, refresh, or audit | `project-cmd` |
|
|
33
|
+
| "What should we do next?" | `orchestrator-state-review` |
|
|
34
|
+
|
|
35
|
+
If the classification is ambiguous: **ask one focused question**, do not guess.
|
|
36
|
+
Cap re-routes at 2. If a third route would be needed, escalate to the user with an explicit summary of what has been tried and why it is blocked.
|
|
37
|
+
|
|
38
|
+
## Stage 2 — Coarse-to-Fine Route
|
|
39
|
+
After classifying intent, pick the **product** first, then the **skill within** that product:
|
|
40
|
+
|
|
41
|
+
- `brainstorm-discovery` → create or update `docs/discovery/REQUIREMENT_[FEATURE_KEY].md`; PM initiation only after `READY_FOR_PM_INITIATION`
|
|
42
|
+
- `code-brainstorm` → `/code-brainstorm` skill before entering the CODE workflow
|
|
43
|
+
- `sdtk-code` → `start -> plan -> build -> verify -> ship` workflow; use `code-brainstorm` when the slice is still ambiguous after intake grounding
|
|
44
|
+
- `sdtk-spec` → PM → BA → ARCH → DEV (planning + `CODE_HANDOFF`) → SDTK-CODE → QA
|
|
45
|
+
- `sdtk-ops` → `ops-discover` (when boundary unclear) or the relevant journey start skill → `ops-verify`
|
|
46
|
+
- `review-qa` → evidence-first review → QA → controller
|
|
47
|
+
- `atlas-wiki` → `sdtk-spec atlas` or `sdtk-wiki atlas`
|
|
48
|
+
|
|
49
|
+
## Few-Shot Routing Examples (P3)
|
|
50
|
+
|
|
51
|
+
| User request | Classified route | Handoff |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| "Analyze why the auth module is slow" | `code-brainstorm` | Route: SDTK-CODE · Reason: investigation before code; Skill: `/code-brainstorm` |
|
|
54
|
+
| "Fix the login bug in issue BK-142" | `sdtk-code` / `bugfix` | Route: SDTK-CODE · Reason: bounded fix with known scope; Skill: `start -> build -> verify -> ship` |
|
|
55
|
+
| "Design and spec the notification feature" | `sdtk-spec` | Route: SDTK-SPEC · Reason: upstream planning required; Skill: PM → BA → ARCH → DEV |
|
|
56
|
+
| "Deploy the v2 release to production" | `sdtk-ops` | Route: SDTK-OPS · Reason: operational rollout; Skill: `ops-plan -> ops-deploy -> ops-verify` |
|
|
57
|
+
| "What should we work on next?" | `orchestrator-state-review` | Route: Orchestrator review · Reason: state check; Skill: read SHARED_PLANNING + backlog |
|
|
58
|
+
|
|
59
|
+
## Routing Guardrails (P4)
|
|
60
|
+
- **Ambiguous → ask:** if intent classification is unclear, ask one focused question before routing.
|
|
61
|
+
- **Cap re-routes:** do not bounce between products more than twice in one session; escalate to the user on the third re-route attempt.
|
|
62
|
+
- **Escalate:** when intent cannot be classified or the re-route limit is hit, state the problem explicitly and ask the user to clarify.
|
|
63
|
+
- **Role prefix wins:** if the user explicitly uses `/pm`, `/ba`, `/arch`, `/dev`, `/qa`, `sdtk-code`, or `sdtk-ops`, execute that role directly without re-classifying.
|
|
64
|
+
|
|
65
|
+
## Per-Route Handoff Line (P5)
|
|
66
|
+
On each routing decision, emit one explicit handoff line before starting work:
|
|
67
|
+
> Route: `<product>` · Reason: `<one-line rationale>` · Next: `<skill or workflow to invoke>`
|
|
68
|
+
|
|
69
|
+
## Initialize
|
|
70
|
+
- Start as Orchestrator Intake for unprefixed user requests.
|
|
71
|
+
- Classify intent before choosing PM/BA/ARCH/DEV/QA or downstream SDTK-CODE/SDTK-OPS paths.
|
|
72
|
+
- Use brainstorm / requirement clarification for unclear ideas before formal PM initiation.
|
|
73
|
+
- Ensure feature key + feature name exist (ask if missing).
|
|
74
|
+
- Read `sdtk-spec.config.json` (project stack + commands) if present.
|
|
75
|
+
- If `toolkit/scripts/init-feature.ps1` exists: run it to create skeleton artifacts; otherwise create the same files from `toolkit/templates/`.
|
|
76
|
+
|
|
77
|
+
## Execute pipeline (one phase per turn)
|
|
78
|
+
- Default unprefixed role: Orchestrator Intake. Select PM only when the request is ready for formal SDTK-SPEC product initiation.
|
|
79
|
+
- Respect role tags: `/pm`, `/ba`, `/arch`, `/dev`, `/qa`.
|
|
80
|
+
- For each SDTK-SPEC phase:
|
|
81
|
+
- Create/update the phase artifact(s) in `docs/`.
|
|
82
|
+
- 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`.
|
|
83
|
+
- 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`.
|
|
84
|
+
- 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`.
|
|
85
|
+
- If phase is DEV, stop at `FEATURE_IMPL_PLAN + CODE_HANDOFF`; do not claim the orchestrator completed downstream code execution.
|
|
86
|
+
- 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`.
|
|
87
|
+
- 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.
|
|
88
|
+
- 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`.
|
|
89
|
+
- Update `SHARED_PLANNING.md` (phase row + activity log).
|
|
90
|
+
- Update `QUALITY_CHECKLIST.md` (mark items PASS/Pending).
|
|
91
|
+
- Produce one clear handoff message to the next role only after the current phase evidence supports that handoff.
|
|
92
|
+
|
|
93
|
+
## SDTK-SPEC Feature Bootstrap
|
|
94
|
+
Run from the project root to create skeleton artifacts before phase work begins:
|
|
95
|
+
```
|
|
96
|
+
sdtk-spec generate --feature-key YOUR_FEATURE --feature-name "Your Feature"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## API design detail mode (Hybrid)
|
|
100
|
+
- Read `sdtk-spec.config.json` key: `orchestration.apiDesignDetailMode`.
|
|
101
|
+
- Supported values:
|
|
102
|
+
- `auto` (default): run `sdtk-api-design-spec` when ARCH has API scope and YAML + flow list are available.
|
|
103
|
+
- `on`: always run `sdtk-api-design-spec` for API scope (fail fast if required inputs are missing).
|
|
104
|
+
- `off`: skip API design detail generation unless user explicitly requests it.
|
|
105
|
+
|
|
106
|
+
## Test-case spec mode (Hybrid)
|
|
107
|
+
- Read `sdtk-spec.config.json` key: `orchestration.testCaseSpecMode`.
|
|
108
|
+
- Supported values:
|
|
109
|
+
- `auto` (default): run `sdtk-test-case-spec` when QA phase requires reusable test-case artifact.
|
|
110
|
+
- `on`: always run `sdtk-test-case-spec` for QA phase (fail fast if required inputs are missing).
|
|
111
|
+
- `off`: skip test-case spec generation unless user explicitly requests it.
|
|
112
|
+
|
|
113
|
+
## Optional: Mailbox Dispatch
|
|
114
|
+
- Use `sdtk-mailbox-dispatch` when one bounded controller-owned phase should be delegated to Claude or Codex.
|
|
115
|
+
- Keep planning local when the controller already has enough repo context.
|
|
116
|
+
- Lock exact include/exclude boundaries, fallback triggers, and verification commands before dispatch.
|
|
117
|
+
- Keep mailbox runtime files transient under `governance/ai/agent-mailbox/runtime/`.
|
|
118
|
+
- Run the default post-issue mailbox retrospective after repo truth is closed and before the next mailbox-driven issue.
|
|
119
|
+
|
|
120
|
+
## Flow Overview
|
|
121
|
+
|
|
122
|
+
```dot
|
|
123
|
+
digraph sdtk_orchestrator_flow {
|
|
124
|
+
rankdir=LR;
|
|
125
|
+
Intake [label="Orchestrator\nIntake"];
|
|
126
|
+
Classify [label="Classify\nIntent"];
|
|
127
|
+
Brainstorm [label="code-brainstorm /\nDiscovery"];
|
|
128
|
+
CODE [label="SDTK-CODE\nstart→plan→build→verify→ship"];
|
|
129
|
+
SPEC [label="SDTK-SPEC\nPM→BA→ARCH→DEV"];
|
|
130
|
+
OPS [label="SDTK-OPS"];
|
|
131
|
+
QA [label="QA"];
|
|
132
|
+
Intake -> Classify;
|
|
133
|
+
Classify -> Brainstorm [label="ambiguous"];
|
|
134
|
+
Classify -> CODE [label="build/fix/refactor"];
|
|
135
|
+
Classify -> SPEC [label="spec/feature delivery"];
|
|
136
|
+
Classify -> OPS [label="deploy/infra/ops"];
|
|
137
|
+
SPEC -> DEV_CODE [label="CODE_HANDOFF"];
|
|
138
|
+
DEV_CODE [label="SDTK-CODE"];
|
|
139
|
+
DEV_CODE -> QA [label="implementation evidence"];
|
|
140
|
+
QA -> SPEC;
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Default bridge is `/dev -> SDTK-CODE -> /qa`.
|
|
145
|
+
|
|
146
|
+
## Verification Before Completion
|
|
147
|
+
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.
|
|
148
|
+
|
|
149
|
+
Do not:
|
|
150
|
+
- say a phase is done or PASS without citing the evidence that proves it
|
|
151
|
+
- treat a planned command as equivalent to an executed command
|
|
152
|
+
- hand off DEV or QA work with overstated verification status
|
|
153
|
+
|
|
154
|
+
If the evidence is incomplete, keep the phase open or mark it blocked instead of overstating completion.
|
|
155
|
+
|
|
156
|
+
## Guardrails
|
|
157
|
+
- Do not skip phases; if prerequisites are missing, ask focused questions.
|
|
158
|
+
- Keep traceability: REQ -> BR/UC/AC -> design -> backlog -> FEATURE_IMPL_PLAN -> CODE_HANDOFF -> downstream implementation evidence -> QA report.
|
|
159
|
+
- Default bridge is `/dev -> SDTK-CODE -> /qa`.
|
|
160
|
+
- Preserve truthful fallback behavior when helper dispatch or built-in skill exposure is unavailable; repo-local contract execution remains valid evidence of workflow support.
|
|
161
|
+
- Keep bounded audits narrow, evidence-cited, and non-approval-bearing; the controller remains the only final acceptance authority.
|
|
162
|
+
- Do not widen a targeted-fix loop beyond the exact findings that triggered the rejection.
|
|
163
|
+
- If input requirements are VI/JP: preserve original text + add EN translation in appendix for traceability (at least in Project Initiation and BA spec).
|
|
164
|
+
|
|
165
|
+
## Common Mistakes
|
|
166
|
+
|
|
167
|
+
| Mistake | Why it is wrong | Do instead |
|
|
168
|
+
|---|---|---|
|
|
169
|
+
| Default to PM for every unprefixed request | Breaks routing for CODE/OPS work and forces SPEC overhead on implementation tasks | Classify intent first; route to the smallest sufficient product workflow |
|
|
170
|
+
| 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 |
|
|
171
|
+
| 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 |
|
|
172
|
+
| 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 |
|
|
173
|
+
| 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 |
|
|
174
|
+
| Use mailbox dispatch as a generic worker platform or reopen broad planning through it | Wastes controller time and weakens boundary discipline | Keep mailbox delegation bounded, preserve exact boundaries, and prefer local planning when context is already strong |
|
|
175
|
+
| 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 |
|
|
176
|
+
| 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,74 +1,74 @@
|
|
|
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
|
-
## Optional: Condensed Upstream Input
|
|
28
|
-
|
|
29
|
-
If a basic product brief is provided before PM initiation, a condensed upstream
|
|
30
|
-
input package may be produced first using:
|
|
31
|
-
`toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md`
|
|
32
|
-
|
|
33
|
-
The condensed output must carry the REQUIRES_HUMAN_REVIEW label (Gate H2) and
|
|
34
|
-
must be reviewed before the PM phase proceeds. Do not auto-advance to PM or BA
|
|
35
|
-
without explicit human confirmation. If the brief is outside the bounded domain,
|
|
36
|
-
stop and surface a boundary flag (Gate H1) rather than proceeding.
|
|
37
|
-
|
|
38
|
-
The condensed package is a DRAFT accelerator only. It seeds PM initiation; it
|
|
39
|
-
does not replace PM or BA judgment. Deliver the condensed output as:
|
|
40
|
-
`docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
|
|
41
|
-
|
|
42
|
-
For approval/workflow domain briefs, apply the Approval/Workflow Domain
|
|
43
|
-
Extension defined in the template. The extended condensed package must include
|
|
44
|
-
the Role Matrix, State Set, State Transitions, and Policy And Approval Rules
|
|
45
|
-
sections, plus an Open Questions For Human Review section in place of the
|
|
46
|
-
standard Gaps section. Gate H3 (Policy Open Questions Review) applies to all
|
|
47
|
-
approval/workflow condensed outputs and requires explicit PM or maintainer review
|
|
48
|
-
of all open policy questions before the SPEC phase proceeds. Open questions must
|
|
49
|
-
not be silently dropped.
|
|
50
|
-
|
|
51
|
-
## Optional: Mailbox Delegation
|
|
52
|
-
|
|
53
|
-
Use `sdtk-mailbox-dispatch` when PM needs bounded external-agent help without
|
|
54
|
-
opening a full orchestration platform loop.
|
|
55
|
-
|
|
56
|
-
Rules:
|
|
57
|
-
- keep PM planning local when the controller already has enough context
|
|
58
|
-
- delegate only one bounded phase at a time with exact include/exclude truth
|
|
59
|
-
- prefer Claude for controller-spec, wording-heavy review, and SDTK-SPEC shaping
|
|
60
|
-
- prefer Codex for code, tests, harness, or verification-heavy implementation
|
|
61
|
-
- review the formal artifact on disk before trusting raw console output
|
|
62
|
-
- keep governance/ai/agent-mailbox/runtime/ transient and out of feature commits
|
|
63
|
-
- run the post-issue mailbox retrospective before the next mailbox-driven issue
|
|
64
|
-
## Phase 6 Closure Truth
|
|
65
|
-
- Review the final QA and controller decisions before closing the issue.
|
|
66
|
-
- Treat `SHARED_PLANNING.md`, `QUALITY_CHECKLIST.md`, and `governance/ai/core/IMPROVEMENT_BACKLOG.md` as closure-state surfaces that must stay synchronized.
|
|
67
|
-
- Before using `committed` or `pushed` wording, verify the actual git state that supports the claim.
|
|
68
|
-
- Do not turn issue closeout into a fake standalone publish or release-wave claim unless that separate evidence truly exists.
|
|
69
|
-
|
|
70
|
-
## Clarification And Decisions (PM responsibility)
|
|
71
|
-
- Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
|
|
72
|
-
- Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
|
|
73
|
-
- If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
|
|
74
|
-
- 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
|
+
## Optional: Condensed Upstream Input
|
|
28
|
+
|
|
29
|
+
If a basic product brief is provided before PM initiation, a condensed upstream
|
|
30
|
+
input package may be produced first using:
|
|
31
|
+
`toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md`
|
|
32
|
+
|
|
33
|
+
The condensed output must carry the REQUIRES_HUMAN_REVIEW label (Gate H2) and
|
|
34
|
+
must be reviewed before the PM phase proceeds. Do not auto-advance to PM or BA
|
|
35
|
+
without explicit human confirmation. If the brief is outside the bounded domain,
|
|
36
|
+
stop and surface a boundary flag (Gate H1) rather than proceeding.
|
|
37
|
+
|
|
38
|
+
The condensed package is a DRAFT accelerator only. It seeds PM initiation; it
|
|
39
|
+
does not replace PM or BA judgment. Deliver the condensed output as:
|
|
40
|
+
`docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
|
|
41
|
+
|
|
42
|
+
For approval/workflow domain briefs, apply the Approval/Workflow Domain
|
|
43
|
+
Extension defined in the template. The extended condensed package must include
|
|
44
|
+
the Role Matrix, State Set, State Transitions, and Policy And Approval Rules
|
|
45
|
+
sections, plus an Open Questions For Human Review section in place of the
|
|
46
|
+
standard Gaps section. Gate H3 (Policy Open Questions Review) applies to all
|
|
47
|
+
approval/workflow condensed outputs and requires explicit PM or maintainer review
|
|
48
|
+
of all open policy questions before the SPEC phase proceeds. Open questions must
|
|
49
|
+
not be silently dropped.
|
|
50
|
+
|
|
51
|
+
## Optional: Mailbox Delegation
|
|
52
|
+
|
|
53
|
+
Use `sdtk-mailbox-dispatch` when PM needs bounded external-agent help without
|
|
54
|
+
opening a full orchestration platform loop.
|
|
55
|
+
|
|
56
|
+
Rules:
|
|
57
|
+
- keep PM planning local when the controller already has enough context
|
|
58
|
+
- delegate only one bounded phase at a time with exact include/exclude truth
|
|
59
|
+
- prefer Claude for controller-spec, wording-heavy review, and SDTK-SPEC shaping
|
|
60
|
+
- prefer Codex for code, tests, harness, or verification-heavy implementation
|
|
61
|
+
- review the formal artifact on disk before trusting raw console output
|
|
62
|
+
- keep governance/ai/agent-mailbox/runtime/ transient and out of feature commits
|
|
63
|
+
- run the post-issue mailbox retrospective before the next mailbox-driven issue
|
|
64
|
+
## Phase 6 Closure Truth
|
|
65
|
+
- Review the final QA and controller decisions before closing the issue.
|
|
66
|
+
- Treat `SHARED_PLANNING.md`, `QUALITY_CHECKLIST.md`, and `governance/ai/core/IMPROVEMENT_BACKLOG.md` as closure-state surfaces that must stay synchronized.
|
|
67
|
+
- Before using `committed` or `pushed` wording, verify the actual git state that supports the claim.
|
|
68
|
+
- Do not turn issue closeout into a fake standalone publish or release-wave claim unless that separate evidence truly exists.
|
|
69
|
+
|
|
70
|
+
## Clarification And Decisions (PM responsibility)
|
|
71
|
+
- Collect OQ-xx items raised by BA/ARCH/DEV/QA in their respective artifacts.
|
|
72
|
+
- Try to resolve OQ-xx using existing docs and reasonable product/tech decisions.
|
|
73
|
+
- If still missing information from the original input: ask the user (final stakeholder) and record the answer as the resolution.
|
|
74
|
+
- Record decisions in PRD `Decision Log` and update OQ-xx `Resolution` fields in the originating docs.
|
|
@@ -1,75 +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
|
-
- `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
|
|
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
|