sdtk-spec-kit 0.3.13 → 0.3.15
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/assets/manifest/toolkit-bundle.manifest.json +96 -156
- package/assets/manifest/toolkit-bundle.sha256.txt +45 -57
- package/assets/toolkit/toolkit/AGENTS.md +17 -15
- package/assets/toolkit/toolkit/README.md +3 -2
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +11 -1
- package/assets/toolkit/toolkit/install.ps1 +60 -50
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +2 -2
- package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +110 -51
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +76 -3
- package/assets/toolkit/toolkit/scripts/agents/validate-mailbox-formal-artifact.py +87 -0
- package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +9 -0
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +179 -169
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -84
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +46 -10
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +7 -0
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +42 -3
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +1 -0
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +61 -5
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +63 -5
- package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +5 -4
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +22 -13
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +53 -33
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +60 -24
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +9 -9
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -90
- package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +49 -9
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +3 -3
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +9 -1
- package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +36 -2
- package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +1 -0
- package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +58 -5
- package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +60 -5
- package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +5 -4
- package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +9 -0
- package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +49 -27
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +74 -20
- package/assets/toolkit/toolkit/templates/README.md +5 -1
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +1 -2
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +3 -3
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
- package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +140 -0
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +26 -0
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +2 -2
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +12 -8
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +8 -2
- package/package.json +48 -48
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +0 -22
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +0 -128
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +0 -22
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +0 -128
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md +0 -129
|
@@ -4,8 +4,8 @@ This file is kept only for backward compatibility.
|
|
|
4
4
|
|
|
5
5
|
Do not use this file as the primary source of truth anymore.
|
|
6
6
|
The rule set has been split into two files:
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
7
|
+
- `toolkit/templates/docs/api/YAML_CREATION_RULES.md`
|
|
8
|
+
- `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md`
|
|
9
9
|
|
|
10
10
|
Use the YAML rules file for:
|
|
11
11
|
- endpoint path/method conventions
|
|
@@ -17,4 +17,4 @@ Use the API design + flowchart rules file for:
|
|
|
17
17
|
- PlantUML flow depth and wording
|
|
18
18
|
- API design detail markdown rules
|
|
19
19
|
|
|
20
|
-
This compatibility note should remain only until all references are migrated.
|
|
20
|
+
This compatibility note should remain only until all references are migrated.
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
# YAML CREATION RULES FINAL
|
|
2
|
-
|
|
3
|
-
This file is the canonical rule set for designing and maintaining feature-level OpenAPI YAML.
|
|
4
|
-
|
|
5
|
-
Use this file for:
|
|
6
|
-
- OpenAPI YAML contract design
|
|
7
|
-
- endpoint path/method decisions
|
|
8
|
-
- request/response schema design
|
|
9
|
-
- endpoint summary and contract consistency checks
|
|
10
|
-
|
|
11
|
-
Do not use this file as the primary rule source for:
|
|
12
|
-
- flowchart writing details
|
|
13
|
-
- API design detail markdown layout
|
|
14
|
-
|
|
15
|
-
Use `
|
|
16
|
-
|
|
17
|
-
## 1. Rule Precedence
|
|
18
|
-
- Priority 1: follow the existing system's real route, method, payload, and response conventions.
|
|
19
|
-
- Priority 2: match the current source code and runtime behavior.
|
|
20
|
-
- Priority 3: apply the reusable standards in this document.
|
|
21
|
-
- If a reusable rule conflicts with the target system, keep the system rule and document the exception explicitly.
|
|
22
|
-
|
|
23
|
-
## 2. API Scope Classification
|
|
24
|
-
- Every endpoint must be classified as one of:
|
|
25
|
-
- `New`
|
|
26
|
-
- `Deferred`
|
|
27
|
-
- `Existing (reuse)`
|
|
28
|
-
- Do not silently create a new feature-local API if an existing system API already provides the same behavior with a compatible contract.
|
|
29
|
-
- If the existing API is close in purpose but payload or response is incompatible with the feature need, create a bounded new API.
|
|
30
|
-
|
|
31
|
-
## 3. Endpoint Path Design
|
|
32
|
-
- Use singular resource names in endpoint paths.
|
|
33
|
-
- Use explicit action segments only when needed by system convention:
|
|
34
|
-
- `list`
|
|
35
|
-
- `search`
|
|
36
|
-
- `edit`
|
|
37
|
-
- `delete`
|
|
38
|
-
- `multi-create`
|
|
39
|
-
- Prefer stable system-style patterns such as:
|
|
40
|
-
- list: `GET /{resource}/list/{organization_uuid}/{parent_uuid}`
|
|
41
|
-
- search: `POST /{resource}/search/{organization_uuid}`
|
|
42
|
-
- view-specific search: `POST /{resource}/resource-view/search/{organization_uuid}`
|
|
43
|
-
- create: `POST /{resource}/{organization_uuid}`
|
|
44
|
-
- detail: `GET /{resource}/{organization_uuid}/{resource_uuid}`
|
|
45
|
-
- edit: `POST /{resource}/edit/{organization_uuid}/{resource_uuid}`
|
|
46
|
-
- delete: `POST /{resource}/delete/{organization_uuid}/{resource_uuid}`
|
|
47
|
-
- Separate namespaces by bounded context.
|
|
48
|
-
- Do not repeat namespace meaning in child path segments.
|
|
49
|
-
|
|
50
|
-
## 4. Request Contract Rules
|
|
51
|
-
- For feature-owned POST search and write APIs, prefer a stable wrapper:
|
|
52
|
-
- `data: { ... }`
|
|
53
|
-
- For complex filters, place fields under:
|
|
54
|
-
- `data.info`
|
|
55
|
-
- If reusing an existing system API, keep the owning module's contract shape exactly as-is.
|
|
56
|
-
- Do not force reused APIs into the feature wrapper pattern.
|
|
57
|
-
- If a payload field changes behavior, the field must be explicit in the schema and must not remain only in examples.
|
|
58
|
-
|
|
59
|
-
## 5. Response Contract Rules
|
|
60
|
-
- Success responses must include `status` at minimum.
|
|
61
|
-
- Create APIs should return the minimum new identifier required by the caller.
|
|
62
|
-
- Example: `status + task_assignment_uuid`
|
|
63
|
-
- Edit and delete APIs should return status-only unless the target system has a stronger standard.
|
|
64
|
-
- Pre-check or validation helper APIs should return only the minimum boolean or status needed by the UI.
|
|
65
|
-
- Do not return detail payloads the UI does not consume.
|
|
66
|
-
- Do not add FE-only visual helper payloads when the client can derive them safely.
|
|
67
|
-
- Example: remove `timeline_backgrounds` if the frontend renders timeline lines from existing data.
|
|
68
|
-
|
|
69
|
-
## 6. Naming and Field Mapping Rules
|
|
70
|
-
- Use canonical business-domain terminology from the system glossary and database.
|
|
71
|
-
- Prefer actual system terms such as:
|
|
72
|
-
- `resource`
|
|
73
|
-
- `task`
|
|
74
|
-
- `assignee`
|
|
75
|
-
- `certification`
|
|
76
|
-
- Avoid legacy aliases when an official term already exists.
|
|
77
|
-
- Field names should align with database semantics when they represent the same concept.
|
|
78
|
-
- If the DB uses a string state code, the API field must not be modeled as an integer.
|
|
79
|
-
- If a field is date-only (`format: date`), include the display format in the description.
|
|
80
|
-
- Example: `Start date (YYYYMMDD)`
|
|
81
|
-
|
|
82
|
-
## 7. Search and List API Rules
|
|
83
|
-
- One search API may serve multiple UI actions when the logic is the same:
|
|
84
|
-
- initial load
|
|
85
|
-
- search button
|
|
86
|
-
- refresh after mode/date change
|
|
87
|
-
- If one endpoint serves multiple UI actions, document that explicitly in YAML description and endpoint docs.
|
|
88
|
-
- Search APIs must define filter combination semantics clearly:
|
|
89
|
-
- AND across different fields
|
|
90
|
-
- OR within each `*_uuids` array
|
|
91
|
-
- If UI rendering depends on stable order, the YAML description must state the confirmed ORDER BY logic.
|
|
92
|
-
|
|
93
|
-
## 8. Split vs Reuse Rules
|
|
94
|
-
- Split read/search endpoints when the FE needs materially different grouped or view-shaped datasets.
|
|
95
|
-
- Merge or remove helper payloads when they add maintenance cost without business value.
|
|
96
|
-
- Reuse existing platform APIs when behavior already exists and only a feature-level mapping layer is needed.
|
|
97
|
-
- Example: reuse shared environment setting APIs instead of creating feature-local setting APIs.
|
|
98
|
-
|
|
99
|
-
## 9. Sample Data Rules
|
|
100
|
-
- For fields declared as `format: uuid`, use canonical UUID samples.
|
|
101
|
-
- Example: `123e4567-e89b-12d3-a456-426614174000`
|
|
102
|
-
- Do not use placeholder UUID-like labels such as:
|
|
103
|
-
- `customer-uuid-001`
|
|
104
|
-
- `assign-uuid-001`
|
|
105
|
-
- Keep sample data deterministic and internally consistent across request and response examples.
|
|
106
|
-
|
|
107
|
-
## 10. Cross-Artifact Consistency Rules
|
|
108
|
-
- The YAML contract is the source of truth for:
|
|
109
|
-
- endpoint path
|
|
110
|
-
- method
|
|
111
|
-
- request wrapper
|
|
112
|
-
- response shape
|
|
113
|
-
- After any YAML contract change, sync these artifacts:
|
|
114
|
-
- endpoint markdown
|
|
115
|
-
- flow list
|
|
116
|
-
- PlantUML flow assets
|
|
117
|
-
- API design detail markdown
|
|
118
|
-
- If any artifact cannot yet be synced, note the mismatch explicitly rather than leaving stale content.
|
|
119
|
-
|
|
120
|
-
## 11. Minimum YAML Quality Gate
|
|
121
|
-
- Path/method follow the target system convention.
|
|
122
|
-
- API type is classified (`New`, `Deferred`, `Existing (reuse)`).
|
|
123
|
-
- Request/response wrappers are stable and explicit.
|
|
124
|
-
- FE-only helper payloads are removed.
|
|
125
|
-
- Field names and types match DB semantics.
|
|
126
|
-
- UUID examples are valid UUIDs.
|
|
127
|
-
- Date descriptions include display format where needed.
|
|
128
|
-
- Search/list APIs document filter semantics and ordering when relevant.
|
|
1
|
+
# YAML CREATION RULES FINAL
|
|
2
|
+
|
|
3
|
+
This file is the canonical rule set for designing and maintaining feature-level OpenAPI YAML.
|
|
4
|
+
|
|
5
|
+
Use this file for:
|
|
6
|
+
- OpenAPI YAML contract design
|
|
7
|
+
- endpoint path/method decisions
|
|
8
|
+
- request/response schema design
|
|
9
|
+
- endpoint summary and contract consistency checks
|
|
10
|
+
|
|
11
|
+
Do not use this file as the primary rule source for:
|
|
12
|
+
- flowchart writing details
|
|
13
|
+
- API design detail markdown layout
|
|
14
|
+
|
|
15
|
+
Use `toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md` for those.
|
|
16
|
+
|
|
17
|
+
## 1. Rule Precedence
|
|
18
|
+
- Priority 1: follow the existing system's real route, method, payload, and response conventions.
|
|
19
|
+
- Priority 2: match the current source code and runtime behavior.
|
|
20
|
+
- Priority 3: apply the reusable standards in this document.
|
|
21
|
+
- If a reusable rule conflicts with the target system, keep the system rule and document the exception explicitly.
|
|
22
|
+
|
|
23
|
+
## 2. API Scope Classification
|
|
24
|
+
- Every endpoint must be classified as one of:
|
|
25
|
+
- `New`
|
|
26
|
+
- `Deferred`
|
|
27
|
+
- `Existing (reuse)`
|
|
28
|
+
- Do not silently create a new feature-local API if an existing system API already provides the same behavior with a compatible contract.
|
|
29
|
+
- If the existing API is close in purpose but payload or response is incompatible with the feature need, create a bounded new API.
|
|
30
|
+
|
|
31
|
+
## 3. Endpoint Path Design
|
|
32
|
+
- Use singular resource names in endpoint paths.
|
|
33
|
+
- Use explicit action segments only when needed by system convention:
|
|
34
|
+
- `list`
|
|
35
|
+
- `search`
|
|
36
|
+
- `edit`
|
|
37
|
+
- `delete`
|
|
38
|
+
- `multi-create`
|
|
39
|
+
- Prefer stable system-style patterns such as:
|
|
40
|
+
- list: `GET /{resource}/list/{organization_uuid}/{parent_uuid}`
|
|
41
|
+
- search: `POST /{resource}/search/{organization_uuid}`
|
|
42
|
+
- view-specific search: `POST /{resource}/resource-view/search/{organization_uuid}`
|
|
43
|
+
- create: `POST /{resource}/{organization_uuid}`
|
|
44
|
+
- detail: `GET /{resource}/{organization_uuid}/{resource_uuid}`
|
|
45
|
+
- edit: `POST /{resource}/edit/{organization_uuid}/{resource_uuid}`
|
|
46
|
+
- delete: `POST /{resource}/delete/{organization_uuid}/{resource_uuid}`
|
|
47
|
+
- Separate namespaces by bounded context.
|
|
48
|
+
- Do not repeat namespace meaning in child path segments.
|
|
49
|
+
|
|
50
|
+
## 4. Request Contract Rules
|
|
51
|
+
- For feature-owned POST search and write APIs, prefer a stable wrapper:
|
|
52
|
+
- `data: { ... }`
|
|
53
|
+
- For complex filters, place fields under:
|
|
54
|
+
- `data.info`
|
|
55
|
+
- If reusing an existing system API, keep the owning module's contract shape exactly as-is.
|
|
56
|
+
- Do not force reused APIs into the feature wrapper pattern.
|
|
57
|
+
- If a payload field changes behavior, the field must be explicit in the schema and must not remain only in examples.
|
|
58
|
+
|
|
59
|
+
## 5. Response Contract Rules
|
|
60
|
+
- Success responses must include `status` at minimum.
|
|
61
|
+
- Create APIs should return the minimum new identifier required by the caller.
|
|
62
|
+
- Example: `status + task_assignment_uuid`
|
|
63
|
+
- Edit and delete APIs should return status-only unless the target system has a stronger standard.
|
|
64
|
+
- Pre-check or validation helper APIs should return only the minimum boolean or status needed by the UI.
|
|
65
|
+
- Do not return detail payloads the UI does not consume.
|
|
66
|
+
- Do not add FE-only visual helper payloads when the client can derive them safely.
|
|
67
|
+
- Example: remove `timeline_backgrounds` if the frontend renders timeline lines from existing data.
|
|
68
|
+
|
|
69
|
+
## 6. Naming and Field Mapping Rules
|
|
70
|
+
- Use canonical business-domain terminology from the system glossary and database.
|
|
71
|
+
- Prefer actual system terms such as:
|
|
72
|
+
- `resource`
|
|
73
|
+
- `task`
|
|
74
|
+
- `assignee`
|
|
75
|
+
- `certification`
|
|
76
|
+
- Avoid legacy aliases when an official term already exists.
|
|
77
|
+
- Field names should align with database semantics when they represent the same concept.
|
|
78
|
+
- If the DB uses a string state code, the API field must not be modeled as an integer.
|
|
79
|
+
- If a field is date-only (`format: date`), include the display format in the description.
|
|
80
|
+
- Example: `Start date (YYYYMMDD)`
|
|
81
|
+
|
|
82
|
+
## 7. Search and List API Rules
|
|
83
|
+
- One search API may serve multiple UI actions when the logic is the same:
|
|
84
|
+
- initial load
|
|
85
|
+
- search button
|
|
86
|
+
- refresh after mode/date change
|
|
87
|
+
- If one endpoint serves multiple UI actions, document that explicitly in YAML description and endpoint docs.
|
|
88
|
+
- Search APIs must define filter combination semantics clearly:
|
|
89
|
+
- AND across different fields
|
|
90
|
+
- OR within each `*_uuids` array
|
|
91
|
+
- If UI rendering depends on stable order, the YAML description must state the confirmed ORDER BY logic.
|
|
92
|
+
|
|
93
|
+
## 8. Split vs Reuse Rules
|
|
94
|
+
- Split read/search endpoints when the FE needs materially different grouped or view-shaped datasets.
|
|
95
|
+
- Merge or remove helper payloads when they add maintenance cost without business value.
|
|
96
|
+
- Reuse existing platform APIs when behavior already exists and only a feature-level mapping layer is needed.
|
|
97
|
+
- Example: reuse shared environment setting APIs instead of creating feature-local setting APIs.
|
|
98
|
+
|
|
99
|
+
## 9. Sample Data Rules
|
|
100
|
+
- For fields declared as `format: uuid`, use canonical UUID samples.
|
|
101
|
+
- Example: `123e4567-e89b-12d3-a456-426614174000`
|
|
102
|
+
- Do not use placeholder UUID-like labels such as:
|
|
103
|
+
- `customer-uuid-001`
|
|
104
|
+
- `assign-uuid-001`
|
|
105
|
+
- Keep sample data deterministic and internally consistent across request and response examples.
|
|
106
|
+
|
|
107
|
+
## 10. Cross-Artifact Consistency Rules
|
|
108
|
+
- The YAML contract is the source of truth for:
|
|
109
|
+
- endpoint path
|
|
110
|
+
- method
|
|
111
|
+
- request wrapper
|
|
112
|
+
- response shape
|
|
113
|
+
- After any YAML contract change, sync these artifacts:
|
|
114
|
+
- endpoint markdown
|
|
115
|
+
- flow list
|
|
116
|
+
- PlantUML flow assets
|
|
117
|
+
- API design detail markdown
|
|
118
|
+
- If any artifact cannot yet be synced, note the mismatch explicitly rather than leaving stale content.
|
|
119
|
+
|
|
120
|
+
## 11. Minimum YAML Quality Gate
|
|
121
|
+
- Path/method follow the target system convention.
|
|
122
|
+
- API type is classified (`New`, `Deferred`, `Existing (reuse)`).
|
|
123
|
+
- Request/response wrappers are stable and explicit.
|
|
124
|
+
- FE-only helper payloads are removed.
|
|
125
|
+
- Field names and types match DB semantics.
|
|
126
|
+
- UUID examples are valid UUIDs.
|
|
127
|
+
- Date descriptions include display format where needed.
|
|
128
|
+
- Search/list APIs document filter semantics and ordering when relevant.
|
|
@@ -123,6 +123,146 @@ that were not explicit in the brief. List them as numbered items.
|
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
|
|
126
|
+
## Approval/Workflow Domain Extension
|
|
127
|
+
|
|
128
|
+
> **Use this extension only for approval/workflow domain briefs.**
|
|
129
|
+
> For service/request tracker and other non-approval/workflow domains, omit
|
|
130
|
+
> this section entirely.
|
|
131
|
+
>
|
|
132
|
+
> When the source brief describes a request-approval pattern (e.g., leave
|
|
133
|
+
> approval, purchase approval, access request), the condensed upstream output
|
|
134
|
+
> document must use a **flat eight-section structure** rather than the base
|
|
135
|
+
> six-section structure above. The output document begins with the same
|
|
136
|
+
> REQUIRES_HUMAN_REVIEW header, Input Statement, and Next Step blocks, but
|
|
137
|
+
> replaces all numbered sections with the eight sections below, numbered
|
|
138
|
+
> consecutively. Do not append these subsections after a completed base
|
|
139
|
+
> six-section document; instead, produce the approval/workflow flat structure
|
|
140
|
+
> as the single unified output document.
|
|
141
|
+
>
|
|
142
|
+
> Section mapping from base to approval/workflow flat structure:
|
|
143
|
+
> - Section 1 Actors: same content and purpose as base Section 1. No change.
|
|
144
|
+
> - Section 2 Role Matrix: new section. Supplements Section 1 Actors with a
|
|
145
|
+
> permission table. Must surface ambiguities rather than silently resolving
|
|
146
|
+
> them.
|
|
147
|
+
> - Section 3 Workflow Entities: replaces base Section 2 Entities. Same
|
|
148
|
+
> purpose but must include workflow-state-carrying fields explicitly.
|
|
149
|
+
> - Section 4 State Set: new section. Makes the workflow state machine
|
|
150
|
+
> explicit with named states and terminal flags.
|
|
151
|
+
> - Section 5 State Transitions: new section. Lists all allowed and blocked
|
|
152
|
+
> transitions with guard conditions and policy constraints.
|
|
153
|
+
> - Section 6 Policy And Approval Rules: replaces base Section 5 Business
|
|
154
|
+
> Rules. Same DRAFT-labelled purpose; approval-specific rule set.
|
|
155
|
+
> - Section 7 Screens And Interaction Points: replaces base Sections 3 and 4
|
|
156
|
+
> (Screen Candidates and Flows). For approval/workflow domains, named
|
|
157
|
+
> screens and interaction points provide sufficient upstream structure.
|
|
158
|
+
> - Section 8 Draft Acceptance Criteria: same as base Section 6 but the last
|
|
159
|
+
> column header is "Linked Transition" (not "Linked Flow") because criteria
|
|
160
|
+
> anchor to state transitions rather than named flows in this domain.
|
|
161
|
+
> - Open Questions For Human Review: replaces the base Gaps section. Must
|
|
162
|
+
> surface unresolved policy items explicitly with phase-owner tagging.
|
|
163
|
+
>
|
|
164
|
+
> Gate H3 (Policy Open Questions Review): all open questions in the Open
|
|
165
|
+
> Questions section must be reviewed by the PM or maintainer before the SPEC
|
|
166
|
+
> phase proceeds. Each question must be resolved with an explicit decision or
|
|
167
|
+
> carried forward as a named OQ-xx item into the BA_SPEC phase. Questions
|
|
168
|
+
> must not be silently dropped.
|
|
169
|
+
>
|
|
170
|
+
> For approval/workflow outputs, replace the generic Next Step instruction
|
|
171
|
+
> "Resolve all gaps listed above" with explicit review and resolution of the
|
|
172
|
+
> Open Questions For Human Review section under Gate H3.
|
|
173
|
+
|
|
174
|
+
### 2. Role Matrix
|
|
175
|
+
|
|
176
|
+
> A table mapping each actor to their permitted actions within the workflow.
|
|
177
|
+
> Mark each cell as YES, NO, or POLICY (permission depends on a configurable
|
|
178
|
+
> rule not fully specified in the brief). Surface any permission ambiguity;
|
|
179
|
+
> do not silently resolve it. At least one POLICY-tagged cell or one open
|
|
180
|
+
> question must appear if the brief does not fully specify all permissions.
|
|
181
|
+
|
|
182
|
+
| Actor | Can Submit | Can Approve | Can Reject | Can Request Revision | Can Resubmit | Can Delegate | Can Admin-Configure |
|
|
183
|
+
|-------|-----------|-------------|------------|---------------------|-------------|-------------|---------------------|
|
|
184
|
+
| Add actor rows here | YES / NO / POLICY | YES / NO / POLICY | YES / NO / POLICY | YES / NO / POLICY | YES / NO / POLICY | YES / NO / POLICY | YES / NO / POLICY |
|
|
185
|
+
|
|
186
|
+
### 3. Workflow Entities
|
|
187
|
+
|
|
188
|
+
> Named data entities with key attributes at summary level. Must include
|
|
189
|
+
> workflow-state-carrying fields explicitly. Minimum: Request entity (with
|
|
190
|
+
> state attribute), Submitter entity, Approver entity, WorkflowState entity
|
|
191
|
+
> or enumeration. No full normalized data model required at this stage.
|
|
192
|
+
|
|
193
|
+
| Entity | Key Attributes | Relationships |
|
|
194
|
+
|--------|----------------|---------------|
|
|
195
|
+
| Add entity rows here | Key attributes including state field | Relationship notes |
|
|
196
|
+
|
|
197
|
+
### 4. State Set
|
|
198
|
+
|
|
199
|
+
> An explicit named list of all workflow states the Request entity can occupy.
|
|
200
|
+
> Each state must have a name, brief description, responsible actor, and a
|
|
201
|
+
> terminal flag (YES or NO). Minimum required states: Draft, Submitted, Under
|
|
202
|
+
> Review, Approved (terminal: YES), Rejected, Revision Required.
|
|
203
|
+
|
|
204
|
+
| State | Description | Responsible Actor | Terminal |
|
|
205
|
+
|-------|-------------|------------------|----------|
|
|
206
|
+
| Add state rows here | One-line description | Actor responsible at this state | YES / NO |
|
|
207
|
+
|
|
208
|
+
### 5. State Transitions
|
|
209
|
+
|
|
210
|
+
> An explicit named list of allowed state transitions. Each transition must
|
|
211
|
+
> have: from-state, to-state, triggering actor, triggering action, and any
|
|
212
|
+
> guard condition or policy constraint. Mark policy-dependent transitions as
|
|
213
|
+
> POLICY and flag for human review. Explicitly list blocked transitions with
|
|
214
|
+
> the block reason.
|
|
215
|
+
|
|
216
|
+
| From State | To State | Triggering Actor | Triggering Action | Guard / Constraint |
|
|
217
|
+
|-----------|----------|-----------------|------------------|-------------------|
|
|
218
|
+
| Add transition rows here | | | | |
|
|
219
|
+
|
|
220
|
+
### 6. Policy And Approval Rules (DRAFT)
|
|
221
|
+
|
|
222
|
+
> All rules below are DRAFT and require human review before adoption. These
|
|
223
|
+
> rules govern approval logic, delegation, escalation, and boundary conditions.
|
|
224
|
+
> Each rule must carry the DRAFT label.
|
|
225
|
+
|
|
226
|
+
| ID | Rule | DRAFT |
|
|
227
|
+
|----|------|-------|
|
|
228
|
+
| APR-D01 | Add derived approval policy rule | DRAFT |
|
|
229
|
+
|
|
230
|
+
### 7. Screens And Interaction Points
|
|
231
|
+
|
|
232
|
+
> Named candidate screens and interaction points with one-sentence purpose,
|
|
233
|
+
> mapped to at least one actor. This replaces the base Screen Candidates and
|
|
234
|
+
> Flows sections for approval/workflow domains. Minimum required screens:
|
|
235
|
+
> Submit Request Form, Submitter Status View, Approver Work Queue, Request
|
|
236
|
+
> Detail with Action Panel, Revision Detail View.
|
|
237
|
+
|
|
238
|
+
| Screen | Purpose | Primary Actor |
|
|
239
|
+
|--------|---------|---------------|
|
|
240
|
+
| Add candidate screen rows here | One-sentence purpose | Actor |
|
|
241
|
+
|
|
242
|
+
### 8. Draft Acceptance Criteria (DRAFT)
|
|
243
|
+
|
|
244
|
+
> All criteria below are DRAFT and require human review before adoption.
|
|
245
|
+
> Express in Given/When/Then form. The last column is "Linked Transition"
|
|
246
|
+
> because criteria anchor to state transitions in this domain.
|
|
247
|
+
|
|
248
|
+
| ID | Given | When | Then | Linked Transition |
|
|
249
|
+
|----|-------|------|------|------------------|
|
|
250
|
+
| AC-D01 | Precondition | Action | Expected result | Transition name |
|
|
251
|
+
|
|
252
|
+
### Open Questions For Human Review
|
|
253
|
+
|
|
254
|
+
> Use this section instead of the standard Gaps section for approval/workflow
|
|
255
|
+
> domain condensed packages. Each open question must be numbered, described in
|
|
256
|
+
> one sentence, and tagged with the phase that owns resolution (PM or BA). At
|
|
257
|
+
> least two unresolved policy questions must appear if the brief does not
|
|
258
|
+
> explicitly answer quorum rules and delegation rules.
|
|
259
|
+
|
|
260
|
+
| ID | Open Question | Phase Owner |
|
|
261
|
+
|----|--------------|-------------|
|
|
262
|
+
| OQ-01 | Describe an unresolved policy or domain question | PM / BA |
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
126
266
|
## Next Step
|
|
127
267
|
|
|
128
268
|
After human review of this document:
|
|
@@ -28,6 +28,32 @@ Current canonical generator output is schema `0.2`; downstream `SDTK-CODE` still
|
|
|
28
28
|
- test obligations are implementation-ready acceptance mapping statements, not vague labels.
|
|
29
29
|
- suggested next command appears only when the handoff status is `READY_FOR_SDTK_CODE`.
|
|
30
30
|
|
|
31
|
+
## Workflow-Domain Guidance (Approval/Workflow Features Only)
|
|
32
|
+
Use this section only when the current feature includes approval states, state transitions, role-based gates, or policy-sensitive workflow behavior.
|
|
33
|
+
|
|
34
|
+
- Keep `implementation_slices` in state-machine-first order. The recommended seven-slice pattern is:
|
|
35
|
+
1. workflow state machine and domain invariants
|
|
36
|
+
2. API and transition contracts
|
|
37
|
+
3. RBAC and actor-to-transition permissions
|
|
38
|
+
4. transition guards and policy enforcement
|
|
39
|
+
5. submitter-facing UI
|
|
40
|
+
6. approver-facing UI
|
|
41
|
+
7. downstream integration or notification hooks
|
|
42
|
+
- Populate all four `impact_map` keys (`api_refs`, `database_refs`, `ui_refs`, `flow_refs`) with concrete refs when they exist. If `database_refs` is missing for a workflow-domain handoff, carry that gap as an explicit `open_blocker`. For other intentionally absent surfaces, make the gap explicit in planning notes instead of leaving the surface implied.
|
|
43
|
+
- Write `test_obligations` that cover all four workflow categories:
|
|
44
|
+
- valid positive transitions
|
|
45
|
+
- blocked or invalid transitions
|
|
46
|
+
- role-permission boundaries
|
|
47
|
+
- policy-sensitive edge cases
|
|
48
|
+
- Add `recovery_notes` when the workflow has fragile coupling points, especially state-machine changes or cases where an unresolved OQ can invalidate current transition assumptions mid-implementation.
|
|
49
|
+
- Required source inputs for workflow-domain handoff authoring:
|
|
50
|
+
- `docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
|
|
51
|
+
- `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md`
|
|
52
|
+
- `docs/product/BACKLOG_[FEATURE_KEY].md`
|
|
53
|
+
- `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
|
|
54
|
+
- at least one `docs/database/*` source
|
|
55
|
+
- Carry unresolved workflow decisions that still affect implementation truth as `open_blockers`. Do not emit `READY_FOR_SDTK_CODE` if an unresolved `OQ-xx` still changes role permissions, transition legality, or policy outcome semantics.
|
|
56
|
+
|
|
31
57
|
## Forbidden Shortcuts
|
|
32
58
|
- Do not auto-run `sdtk-code` from `/dev`.
|
|
33
59
|
- Do not emit `READY_FOR_SDTK_CODE` with hidden blockers.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- source requirement notes or attachments
|
|
6
6
|
- current `SHARED_PLANNING.md`
|
|
7
7
|
- (Optional) `docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md` if a
|
|
8
|
-
condensation step was run before PM initiation
|
|
8
|
+
condensation step was run before PM initiation. If present, BA must
|
|
9
9
|
read it alongside the Project Initiation doc. All condensed content is DRAFT
|
|
10
10
|
and requires human review before adoption.
|
|
11
11
|
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
- Feature: `[FEATURE_KEY]`
|
|
28
28
|
- PM scope summary: 3 to 7 bullets
|
|
29
29
|
- Known open questions: `OQ-xx` list or `None`
|
|
30
|
-
- Expected BA focus: rules, use cases, acceptance criteria, NFRs
|
|
30
|
+
- Expected BA focus: rules, use cases, acceptance criteria, NFRs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AGENT REPORT TEMPLATE
|
|
1
|
+
# AGENT REPORT TEMPLATE
|
|
2
2
|
1. Metadata
|
|
3
3
|
- Worker
|
|
4
4
|
- Runtime
|
|
@@ -19,28 +19,32 @@
|
|
|
19
19
|
- primary formal artifact path
|
|
20
20
|
- written by agent or controller fallback
|
|
21
21
|
- fallback reason when controller authored the artifact
|
|
22
|
-
6.
|
|
22
|
+
6. Phase Artifact Validation
|
|
23
|
+
- canonical filename pass or fail or skipped
|
|
24
|
+
- canonical verdict vocabulary pass or fail or skipped
|
|
25
|
+
- validator output summary or skip reason
|
|
26
|
+
7. Exact Verification Results
|
|
23
27
|
- <command> -> <result>
|
|
24
28
|
- <command> -> <result>
|
|
25
|
-
|
|
29
|
+
8. Boundary Truth
|
|
26
30
|
- included surfaces actually touched
|
|
27
31
|
- excluded surfaces not touched
|
|
28
32
|
- formal artifacts created
|
|
29
33
|
- boundary mode actually executed
|
|
30
34
|
- parent issue status after this batch (`DONE` | `IN_PROGRESS`)
|
|
31
|
-
|
|
35
|
+
9. Git Truth
|
|
32
36
|
- git status --short --untracked-files=all
|
|
33
37
|
- git diff --name-only
|
|
34
38
|
- git diff --cached --name-only
|
|
35
39
|
- git rev-parse HEAD
|
|
36
40
|
- git branch --show-current
|
|
37
|
-
|
|
41
|
+
10. Fallback Truth
|
|
38
42
|
- fallback trigger reached or not
|
|
39
43
|
- fallback path used or not
|
|
40
44
|
- stalled runtime diff accepted: yes or no
|
|
41
|
-
|
|
45
|
+
11. Blockers / Open Questions
|
|
42
46
|
- <item>
|
|
43
|
-
|
|
47
|
+
12. Ready State
|
|
44
48
|
- <ready / not ready>
|
|
45
49
|
- <reason>
|
|
46
|
-
- <next step>
|
|
50
|
+
- <next step>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AGENT TASK TEMPLATE
|
|
1
|
+
# AGENT TASK TEMPLATE
|
|
2
2
|
Issue:
|
|
3
3
|
- <ISSUE_KEY> | <TITLE>
|
|
4
4
|
Runtime:
|
|
@@ -14,6 +14,8 @@ Decision Requested:
|
|
|
14
14
|
- <exact decision or ready-state question>
|
|
15
15
|
Issue Closeout Mode:
|
|
16
16
|
- <full-issue|phase-only>
|
|
17
|
+
Execution Permission:
|
|
18
|
+
- <read-only|workspace-write-approved>
|
|
17
19
|
Formal Outputs To Produce:
|
|
18
20
|
1. <tracked artifact path>
|
|
19
21
|
2. <tracked artifact path>
|
|
@@ -31,6 +33,10 @@ Boundary Mode:
|
|
|
31
33
|
- <canonical-only|canonical+distribution|other>
|
|
32
34
|
Primary Formal Artifact:
|
|
33
35
|
- <tracked artifact path that controller will trust first>
|
|
36
|
+
Canonical Review-Phase Artifact Rules:
|
|
37
|
+
- controller-dev-review => `SDTK_BK###_CONTROLLER_DEV_REVIEW_R#_YYYYMMDD.md` + `APPROVED FOR QA HANDOFF` or `CHANGES REQUIRED BEFORE QA`
|
|
38
|
+
- qa-review => `SDTK_BK###_QA_CHECKPOINT_REPORT_R#_YYYYMMDD.md` + `APPROVED FOR CONTROLLER ACCEPTANCE` or `CHANGES REQUIRED BEFORE CONTROLLER ACCEPTANCE`
|
|
39
|
+
- controller-acceptance => `SDTK_BK###_CONTROLLER_ACCEPTANCE_R#_YYYYMMDD.md` + `APPROVED FOR COMMIT-READY STATE` or `NOT APPROVED FOR COMMIT-READY STATE`
|
|
34
40
|
Carryover Findings / Fixed Truth To Preserve:
|
|
35
41
|
- <prior blocker ID or prior approved truth>
|
|
36
42
|
- <prior blocker ID or prior approved truth>
|
|
@@ -56,4 +62,4 @@ Return Format:
|
|
|
56
62
|
5. exact verification results
|
|
57
63
|
6. boundary truth
|
|
58
64
|
7. blockers or open questions
|
|
59
|
-
8. explicit readiness statement
|
|
65
|
+
8. explicit readiness statement
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sdtk-spec-kit",
|
|
3
|
+
"version": "0.3.15",
|
|
4
|
+
"description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
|
|
5
|
+
"bin": {
|
|
6
|
+
"sdtk-spec": "bin/sdtk.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "src/index.js",
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/",
|
|
12
|
+
"src/",
|
|
13
|
+
"assets/"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "npm run verify:payload \u0026\u0026 npm run pack:smoke",
|
|
17
|
+
"build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 \u0026\u0026 powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
|
|
18
|
+
"verify:payload": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\"",
|
|
19
|
+
"pack:smoke": "npm pack --dry-run",
|
|
20
|
+
"pack:release": "npm pack",
|
|
21
|
+
"prepublishOnly": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\""
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": "\u003e=18.13.0"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"sdtk",
|
|
28
|
+
"sdtk-spec",
|
|
29
|
+
"sdtk-spec-kit",
|
|
30
|
+
"cli",
|
|
31
|
+
"documentation",
|
|
32
|
+
"toolkit",
|
|
33
|
+
"dockkit"
|
|
34
|
+
],
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
|
|
39
|
+
"directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://agenttoolkits.dev",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
}
|
|
48
|
+
}
|