sdtk-spec-kit 0.3.11 → 0.3.13
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 +79 -39
- package/assets/manifest/toolkit-bundle.sha256.txt +27 -19
- package/assets/toolkit/toolkit/AGENTS.md +1 -1
- package/assets/toolkit/toolkit/README.md +1 -1
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +1 -1
- package/assets/toolkit/toolkit/install.ps1 +347 -310
- package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +52 -0
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +44 -0
- package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +308 -246
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +1 -1
- package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +10 -0
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +28 -4
- package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +70 -0
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +8 -0
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +28 -0
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +25 -0
- package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +9 -0
- package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +58 -57
- package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +70 -0
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +7 -0
- package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +29 -2
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +13 -2
- package/assets/toolkit/toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md +369 -0
- package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +136 -0
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +34 -29
- package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +4 -0
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +46 -0
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +59 -0
- package/package.json +48 -48
- package/src/commands/help.js +2 -0
- package/src/commands/init.js +108 -105
- package/src/lib/project-target-guard.js +53 -0
- package/src/lib/update.js +8 -1
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
# OPS_HANDOFF Creation Rules
|
|
2
|
+
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Document Type: Creation Rules
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Purpose
|
|
9
|
+
|
|
10
|
+
These creation rules define how to author an `OPS_HANDOFF` artifact for a bounded
|
|
11
|
+
small-app feature. The OPS_HANDOFF document bridges CODE-phase delivery to an
|
|
12
|
+
operational readiness review. It is a human-authored, human-reviewed guidance artifact.
|
|
13
|
+
|
|
14
|
+
The artifact path convention is:
|
|
15
|
+
|
|
16
|
+
`docs/dev/OPS_HANDOFF_[FEATURE_KEY].json`
|
|
17
|
+
|
|
18
|
+
This path is consistent with the broader toolkit artifact layout and must not be
|
|
19
|
+
changed without updating all referencing skill guidance, AGENTS.md, and handoff
|
|
20
|
+
template references.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Non-Claims
|
|
25
|
+
|
|
26
|
+
The following limitations apply to every OPS_HANDOFF document regardless of feature.
|
|
27
|
+
These must be preserved verbatim in every artifact authored against this schema.
|
|
28
|
+
|
|
29
|
+
1. "This handoff is not a CI/CD pipeline configuration."
|
|
30
|
+
2. "This handoff does not automate deployment."
|
|
31
|
+
3. "This handoff does not replace human review before any deployment action."
|
|
32
|
+
4. "This handoff does not configure a production monitoring or alerting platform."
|
|
33
|
+
5. "This handoff does not provide automated rollback."
|
|
34
|
+
6. "This handoff is starter-level guidance for a bounded small-app internal deployment only."
|
|
35
|
+
|
|
36
|
+
Authors may add feature-specific non_claims entries to the array, but the six entries
|
|
37
|
+
above are the minimum required set and must not be removed.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 3. Schema Version
|
|
42
|
+
|
|
43
|
+
The current schema version is `"0.1"`. Every OPS_HANDOFF artifact must include:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
"schema_version": "0.1"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Future schema revisions will increment this value. Do not use schema version `"0.1"`
|
|
50
|
+
for artifacts that add fields or structures not defined in this document.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 4. Required Fields
|
|
55
|
+
|
|
56
|
+
The OPS_HANDOFF JSON artifact must contain all of the following top-level fields.
|
|
57
|
+
Optional fields are described in Section 10.
|
|
58
|
+
|
|
59
|
+
| Field | Type | Notes |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| `schema_version` | string | Must be `"0.1"` for this release. |
|
|
62
|
+
| `feature_key` | string | Must match the CODE_HANDOFF feature_key for this feature. |
|
|
63
|
+
| `ops_handoff_status` | string | Either `"READY_FOR_OPS_REVIEW"` or `"BLOCKED_FOR_OPS_REVIEW"`. Human sets this after completing the document. |
|
|
64
|
+
| `source_handoff_ref` | string | Repo-relative path to the CODE_HANDOFF artifact that feeds this handoff (e.g., `"docs/dev/CODE_HANDOFF_SRT-001.json"`). |
|
|
65
|
+
| `non_claims` | array of strings | Minimum six entries as defined in Section 2. |
|
|
66
|
+
| `deploy_starter` | object | See Section 5. |
|
|
67
|
+
| `env_expectations` | array of objects | See Section 6. |
|
|
68
|
+
| `health_check_baseline` | object | See Section 7. |
|
|
69
|
+
| `monitoring_baseline` | object | See Section 8. |
|
|
70
|
+
| `rollback_starter` | object | See Section 9. |
|
|
71
|
+
| `human_gates` | array of objects | See Section 11. Gate H5 is the minimum required entry. |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 5. deploy_starter Object
|
|
76
|
+
|
|
77
|
+
This object describes the bounded steps a human operator would take to start the
|
|
78
|
+
application in an initial deployment environment. It does not automate those steps
|
|
79
|
+
and does not claim cloud-platform management or auto-provisioning.
|
|
80
|
+
|
|
81
|
+
Required sub-fields:
|
|
82
|
+
|
|
83
|
+
| Sub-field | Type | Guidance |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `runtime` | string | Runtime technology, e.g., `"node"`, `"python"`, `"docker"`. Match the tech stack documented in FEATURE_IMPL_PLAN. |
|
|
86
|
+
| `start_command` | string | The exact command a human would run to start the application. Must be a real command, not a placeholder. |
|
|
87
|
+
| `recommended_platform` | string | Deployment target appropriate for a bounded starter, e.g., `"local Docker"`, `"VPS"`, `"basic PaaS tier"`. Must not claim cloud-platform management or automatic provisioning. |
|
|
88
|
+
| `known_limitations` | array of strings | Explicit list of what this starter guidance does not handle. Include at minimum: load balancing, secrets rotation, auto-scaling, and any feature-specific operational gap. |
|
|
89
|
+
|
|
90
|
+
Authoring guidance:
|
|
91
|
+
- `start_command` must reflect the actual runtime entry point from CODE_HANDOFF.
|
|
92
|
+
Do not copy a placeholder command from a template without verifying the real command.
|
|
93
|
+
- `recommended_platform` must not imply that the feature is ready for production traffic.
|
|
94
|
+
- `known_limitations` must be non-empty. A starter deployment for a bounded small app
|
|
95
|
+
always has operational gaps relative to a production-grade deployment.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 6. env_expectations Array
|
|
100
|
+
|
|
101
|
+
Each entry in this array documents one environment variable or configuration value
|
|
102
|
+
that the application requires before it can start or function correctly.
|
|
103
|
+
|
|
104
|
+
Each entry must contain:
|
|
105
|
+
|
|
106
|
+
| Sub-field | Type | Guidance |
|
|
107
|
+
|---|---|---|
|
|
108
|
+
| `name` | string | Environment variable name, e.g., `"DATABASE_URL"`. |
|
|
109
|
+
| `required` | boolean | `true` if the app cannot start or operate without this value. |
|
|
110
|
+
| `description` | string | Human-readable explanation of what this variable controls. |
|
|
111
|
+
| `example_value` | string | A safe placeholder, e.g., `"postgres://user:password@localhost:5432/dbname"`. Never include real credentials or real secrets. |
|
|
112
|
+
| `resolution_owner` | string | Who must supply the real value before deployment, e.g., `"deployer"`, `"operator"`, `"maintainer"`. |
|
|
113
|
+
|
|
114
|
+
Authoring guidance:
|
|
115
|
+
- Source env_expectations from the CODE_HANDOFF impact_map and ARCH_DESIGN.
|
|
116
|
+
- example_value entries must be clearly placeholder values. Do not copy real
|
|
117
|
+
credentials, tokens, or connection strings from any environment.
|
|
118
|
+
- If a variable is conditionally required (only in certain deployment modes),
|
|
119
|
+
set `required` to `false` and explain the condition in `description`.
|
|
120
|
+
- An empty env_expectations array is not valid for most real applications.
|
|
121
|
+
If no environment variables exist, document why that is true.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 7. health_check_baseline Object
|
|
126
|
+
|
|
127
|
+
This object defines the minimum health signal that a human operator or monitoring
|
|
128
|
+
process can use to verify that the application started successfully.
|
|
129
|
+
|
|
130
|
+
Required sub-fields:
|
|
131
|
+
|
|
132
|
+
| Sub-field | Type | Guidance |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| `endpoint` | string | HTTP path for the health check, e.g., `"/health"` or `"/api/health"`. Must be a real endpoint implemented by the feature, not a hypothetical path. |
|
|
135
|
+
| `method` | string | HTTP method, typically `"GET"`. |
|
|
136
|
+
| `expected_status` | integer | Expected HTTP status code when the app is healthy, typically `200`. |
|
|
137
|
+
| `check_notes` | string | Human guidance for interpreting the response. Explain what a successful response looks like and what a failure means for this specific feature. |
|
|
138
|
+
|
|
139
|
+
Authoring guidance:
|
|
140
|
+
- Verify that the endpoint documented here is actually implemented in the feature
|
|
141
|
+
CODE_HANDOFF before authoring this section.
|
|
142
|
+
- `check_notes` must be specific to the feature, not generic. A reviewer reading
|
|
143
|
+
this field should know whether the app is healthy or not after checking the endpoint.
|
|
144
|
+
- If the feature does not expose an HTTP endpoint, adapt this section to the actual
|
|
145
|
+
health signal available (e.g., process liveness, queue depth check) and note the
|
|
146
|
+
deviation from the default HTTP pattern.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 8. monitoring_baseline Object
|
|
151
|
+
|
|
152
|
+
This object defines the minimum observability posture for a starter deployment.
|
|
153
|
+
It does not configure a monitoring platform and does not claim that automated
|
|
154
|
+
alerting is available.
|
|
155
|
+
|
|
156
|
+
Required sub-fields:
|
|
157
|
+
|
|
158
|
+
| Sub-field | Type | Guidance |
|
|
159
|
+
|---|---|---|
|
|
160
|
+
| `key_signals` | array of strings | What a human operator should observe without a full monitoring platform. Examples: `"error log patterns"`, `"response time from health endpoint"`, `"queue depth if applicable"`. Must be non-empty. |
|
|
161
|
+
| `recommended_tooling` | string | Lightweight tooling appropriate for a starter deployment. Example: `"system logs plus manual health check endpoint polling"`. Must not claim a monitoring platform is configured or available. |
|
|
162
|
+
| `non_claim` | string | Explicit statement that this section is not a production monitoring suite. Author this as a complete, human-readable sentence. |
|
|
163
|
+
|
|
164
|
+
Authoring guidance:
|
|
165
|
+
- `key_signals` must be specific to the feature behavior. A reviewer should know
|
|
166
|
+
which signals to watch for this particular app, not generic server health.
|
|
167
|
+
- `recommended_tooling` must be achievable without purchasing or deploying a
|
|
168
|
+
monitoring platform. The recommended tooling is bounded to what a small team can
|
|
169
|
+
apply immediately.
|
|
170
|
+
- `non_claim` is distinct from the top-level `non_claims` array. This field lives
|
|
171
|
+
inside the monitoring_baseline object and provides a context-specific disclaimer.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## 9. rollback_starter Object
|
|
176
|
+
|
|
177
|
+
This object provides bounded, human-executable recovery steps for reverting to a
|
|
178
|
+
prior working state after a failed deployment. It does not implement or trigger
|
|
179
|
+
automated rollback.
|
|
180
|
+
|
|
181
|
+
Required sub-fields:
|
|
182
|
+
|
|
183
|
+
| Sub-field | Type | Guidance |
|
|
184
|
+
|---|---|---|
|
|
185
|
+
| `strategy` | string | High-level rollback approach, e.g., `"redeploy the previous image tag or git commit"`. Must be a real strategy available to the deployment target, not a generic description. |
|
|
186
|
+
| `manual_steps` | array of strings | Ordered, human-executable recovery steps. Each step must be concrete and specific to the feature deployment. Must not claim automated rollback. |
|
|
187
|
+
| `non_claim` | string | Explicit statement that this section does not provide automated rollback. Author as a complete human-readable sentence. |
|
|
188
|
+
|
|
189
|
+
Authoring guidance:
|
|
190
|
+
- `manual_steps` must reflect the actual deployment target documented in
|
|
191
|
+
`deploy_starter.recommended_platform`. Steps for a Docker-based deployment differ
|
|
192
|
+
from steps for a PaaS deployment.
|
|
193
|
+
- Every step must be something a human operator can execute without additional
|
|
194
|
+
tooling beyond what is already documented in `deploy_starter`.
|
|
195
|
+
- `non_claim` is required. A starter rollback procedure is a recovery guide,
|
|
196
|
+
not a rollback automation contract.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 10. open_questions Array (Optional)
|
|
201
|
+
|
|
202
|
+
This array captures environment-specific or deployment-specific details that have
|
|
203
|
+
not yet been resolved at the time the OPS_HANDOFF is authored. Including this array
|
|
204
|
+
is optional, but strongly recommended whenever deployment details are still unknown.
|
|
205
|
+
|
|
206
|
+
Each entry must contain:
|
|
207
|
+
|
|
208
|
+
| Sub-field | Type | Guidance |
|
|
209
|
+
|---|---|---|
|
|
210
|
+
| `id` | string | Short identifier, e.g., `"OQ-01"`. Increment sequentially within the artifact. |
|
|
211
|
+
| `question` | string | Specific unresolved detail that must be answered before the deployment can proceed. |
|
|
212
|
+
| `resolution_owner` | string | Who must resolve this before Gate H5 can pass, e.g., `"deployer"`, `"operator"`, `"maintainer"`. |
|
|
213
|
+
|
|
214
|
+
Authoring guidance:
|
|
215
|
+
- An unresolved open_question does not by itself block authoring the artifact.
|
|
216
|
+
It does block setting `ops_handoff_status` to `"READY_FOR_OPS_REVIEW"` unless
|
|
217
|
+
the question is informational rather than blocking.
|
|
218
|
+
- If all open_questions are blocking, set `ops_handoff_status` to
|
|
219
|
+
`"BLOCKED_FOR_OPS_REVIEW"` and list the blocking questions explicitly.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## 11. human_gates Array
|
|
224
|
+
|
|
225
|
+
This array documents the required human checkpoints that must pass before any
|
|
226
|
+
deployment action may proceed. Every OPS_HANDOFF must include at minimum Gate H5.
|
|
227
|
+
|
|
228
|
+
Each gate entry must contain:
|
|
229
|
+
|
|
230
|
+
| Sub-field | Type | Guidance |
|
|
231
|
+
|---|---|---|
|
|
232
|
+
| `gate_id` | string | Identifier consistent with the broader golden path gate numbering. Gate H5 is the minimum required gate for OPS_HANDOFF review. |
|
|
233
|
+
| `description` | string | What a human must confirm at this gate. Must be specific to the deployment and feature, not generic. |
|
|
234
|
+
| `required_before` | string | What action this gate blocks, e.g., `"any deployment action"`. |
|
|
235
|
+
|
|
236
|
+
### Gate H5: Minimum Required Entry
|
|
237
|
+
|
|
238
|
+
Every OPS_HANDOFF artifact must include Gate H5. The minimum required entry is:
|
|
239
|
+
|
|
240
|
+
```json
|
|
241
|
+
{
|
|
242
|
+
"gate_id": "H5",
|
|
243
|
+
"description": "Controller reviews OPS_HANDOFF artifact and confirms all required fields are complete, non_claims are present, open_questions are resolved or explicitly deferred, and the feature is approved for an initial bounded deployment.",
|
|
244
|
+
"required_before": "any deployment action"
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Gate H5 must not be removed, weakened, or restated to imply that automated review
|
|
249
|
+
replaces human controller judgment.
|
|
250
|
+
|
|
251
|
+
Additional gates (e.g., `"H5a"`, `"H6"`) may be added for feature-specific
|
|
252
|
+
deployment checkpoints, but Gate H5 is always the minimum anchor.
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 12. Full Schema Example
|
|
257
|
+
|
|
258
|
+
The following is a minimal conforming example for a small app with one required
|
|
259
|
+
environment variable. Replace all placeholder values with real, feature-specific
|
|
260
|
+
values before submitting for review.
|
|
261
|
+
|
|
262
|
+
```json
|
|
263
|
+
{
|
|
264
|
+
"schema_version": "0.1",
|
|
265
|
+
"feature_key": "FEATURE-001",
|
|
266
|
+
"ops_handoff_status": "BLOCKED_FOR_OPS_REVIEW",
|
|
267
|
+
"source_handoff_ref": "docs/dev/CODE_HANDOFF_FEATURE-001.json",
|
|
268
|
+
"non_claims": [
|
|
269
|
+
"This handoff is not a CI/CD pipeline configuration.",
|
|
270
|
+
"This handoff does not automate deployment.",
|
|
271
|
+
"This handoff does not replace human review before any deployment action.",
|
|
272
|
+
"This handoff does not configure a production monitoring or alerting platform.",
|
|
273
|
+
"This handoff does not provide automated rollback.",
|
|
274
|
+
"This handoff is starter-level guidance for a bounded small-app internal deployment only."
|
|
275
|
+
],
|
|
276
|
+
"deploy_starter": {
|
|
277
|
+
"runtime": "python",
|
|
278
|
+
"start_command": "gunicorn app:app --bind 0.0.0.0:8000",
|
|
279
|
+
"recommended_platform": "local Docker or basic VPS",
|
|
280
|
+
"known_limitations": [
|
|
281
|
+
"No load balancing is configured.",
|
|
282
|
+
"No secrets rotation is configured.",
|
|
283
|
+
"No auto-scaling is configured.",
|
|
284
|
+
"Not suitable for production traffic without additional review."
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"env_expectations": [
|
|
288
|
+
{
|
|
289
|
+
"name": "DATABASE_URL",
|
|
290
|
+
"required": true,
|
|
291
|
+
"description": "Connection string for the application database.",
|
|
292
|
+
"example_value": "postgres://user:password@localhost:5432/dbname",
|
|
293
|
+
"resolution_owner": "deployer"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"health_check_baseline": {
|
|
297
|
+
"endpoint": "/health",
|
|
298
|
+
"method": "GET",
|
|
299
|
+
"expected_status": 200,
|
|
300
|
+
"check_notes": "A 200 response indicates the app started and reached the database. A 500 or timeout indicates a startup failure; check application logs for the error."
|
|
301
|
+
},
|
|
302
|
+
"monitoring_baseline": {
|
|
303
|
+
"key_signals": [
|
|
304
|
+
"Application error log patterns (look for ERROR or CRITICAL entries).",
|
|
305
|
+
"Response time from the health endpoint (manual polling).",
|
|
306
|
+
"Database connection errors in application logs."
|
|
307
|
+
],
|
|
308
|
+
"recommended_tooling": "System logs plus manual health check endpoint polling.",
|
|
309
|
+
"non_claim": "This monitoring baseline is not a production monitoring or alerting platform configuration."
|
|
310
|
+
},
|
|
311
|
+
"rollback_starter": {
|
|
312
|
+
"strategy": "Redeploy the previous Docker image tag or the previous git commit.",
|
|
313
|
+
"manual_steps": [
|
|
314
|
+
"Stop the current running container or process.",
|
|
315
|
+
"Pull or build the previous known-good image tag or checkout the previous commit.",
|
|
316
|
+
"Restart using the deploy_starter start_command with the previous build.",
|
|
317
|
+
"Confirm the health endpoint returns 200 before declaring recovery complete."
|
|
318
|
+
],
|
|
319
|
+
"non_claim": "This rollback procedure is manual. No automated rollback is provided or implied."
|
|
320
|
+
},
|
|
321
|
+
"human_gates": [
|
|
322
|
+
{
|
|
323
|
+
"gate_id": "H5",
|
|
324
|
+
"description": "Controller reviews OPS_HANDOFF artifact and confirms all required fields are complete, non_claims are present, open_questions are resolved or explicitly deferred, and the feature is approved for an initial bounded deployment.",
|
|
325
|
+
"required_before": "any deployment action"
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"open_questions": [
|
|
329
|
+
{
|
|
330
|
+
"id": "OQ-01",
|
|
331
|
+
"question": "What is the target deployment environment hostname or IP address?",
|
|
332
|
+
"resolution_owner": "deployer"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## 13. Authoring Checklist
|
|
341
|
+
|
|
342
|
+
Before setting `ops_handoff_status` to `"READY_FOR_OPS_REVIEW"`, confirm:
|
|
343
|
+
|
|
344
|
+
- [ ] `schema_version` is `"0.1"`.
|
|
345
|
+
- [ ] `feature_key` matches the CODE_HANDOFF feature_key exactly.
|
|
346
|
+
- [ ] `source_handoff_ref` points to a real file that exists in the repo.
|
|
347
|
+
- [ ] `non_claims` contains all six minimum required entries from Section 2.
|
|
348
|
+
- [ ] `deploy_starter.start_command` is a real, verified command (not a placeholder).
|
|
349
|
+
- [ ] `deploy_starter.known_limitations` is non-empty.
|
|
350
|
+
- [ ] `env_expectations` entries contain safe placeholder `example_value` values only.
|
|
351
|
+
No real secrets, credentials, or connection strings.
|
|
352
|
+
- [ ] `health_check_baseline.endpoint` is implemented by the feature.
|
|
353
|
+
- [ ] `monitoring_baseline.non_claim` is present and accurate.
|
|
354
|
+
- [ ] `rollback_starter.non_claim` is present and accurate.
|
|
355
|
+
- [ ] `human_gates` contains Gate H5 with the minimum required wording.
|
|
356
|
+
- [ ] All `open_questions` that are blocking have been resolved, or
|
|
357
|
+
`ops_handoff_status` is set to `"BLOCKED_FOR_OPS_REVIEW"` with a clear explanation.
|
|
358
|
+
- [ ] No internal tracker IDs or review-only labels appear anywhere in the artifact.
|
|
359
|
+
- [ ] A human controller has reviewed and approved the artifact before any deployment
|
|
360
|
+
action proceeds.
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
## 14. Distribution Parity
|
|
365
|
+
|
|
366
|
+
Packaged distribution parity for this creation rules document is intentionally
|
|
367
|
+
deferred from the current batch. This file is a canonical toolkit template only.
|
|
368
|
+
Distribution payload sync is a separate controlled step and must not be performed
|
|
369
|
+
during the same batch that produces this template.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# CONDENSED UPSTREAM INPUT: {{FEATURE_KEY}}
|
|
2
|
+
|
|
3
|
+
**Document ID:** CONDENSED_UPSTREAM_INPUT_{{FEATURE_KEY}}
|
|
4
|
+
**Version:** 1.0.0
|
|
5
|
+
**Date:** {{DATE}}
|
|
6
|
+
**Author:** PM Agent (condensation step)
|
|
7
|
+
**Status:** REQUIRES_HUMAN_REVIEW
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
> **REQUIRES_HUMAN_REVIEW**
|
|
12
|
+
>
|
|
13
|
+
> This document is a machine-assisted condensation of a basic product brief.
|
|
14
|
+
> All derived content below (actors, entities, screens, flows, rules, and
|
|
15
|
+
> acceptance criteria) is DRAFT only. A human PM or maintainer must review
|
|
16
|
+
> and confirm this package before the SPEC phase begins. SDTK must not
|
|
17
|
+
> auto-advance to PM or BA phases without explicit human confirmation (Gate H2).
|
|
18
|
+
>
|
|
19
|
+
> If the source brief was outside the agreed bounded domain, stop here and
|
|
20
|
+
> surface a boundary flag rather than proceeding (Gate H1).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Input Statement
|
|
25
|
+
|
|
26
|
+
**Source brief:** Provide a one-line description of what was submitted as input.
|
|
27
|
+
|
|
28
|
+
**Approximate input length:** State the approximate word count of the source brief.
|
|
29
|
+
|
|
30
|
+
**Feature key assigned:** {{FEATURE_KEY}} (confirm or replace if the brief did not
|
|
31
|
+
include one; do not invent a feature key without human review).
|
|
32
|
+
|
|
33
|
+
**Condensation notes:** Record any material assumptions made during condensation
|
|
34
|
+
that were not explicit in the brief. List them as numbered items.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 1. Actors
|
|
39
|
+
|
|
40
|
+
> Derived from the brief. Minimum: one requester-type role and one operator-type
|
|
41
|
+
> role. Mark additional roles with (implied) if not named explicitly in the brief.
|
|
42
|
+
|
|
43
|
+
| Role | Responsibility |
|
|
44
|
+
|------|----------------|
|
|
45
|
+
| Add derived actor rows here | One-line responsibility |
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Entities
|
|
50
|
+
|
|
51
|
+
> Named data entities with key attributes at summary level. No full normalized
|
|
52
|
+
> data model required. Minimum: the primary request or work-item entity and its
|
|
53
|
+
> actor-linked entities.
|
|
54
|
+
|
|
55
|
+
| Entity | Key Attributes | Relationships |
|
|
56
|
+
|--------|----------------|---------------|
|
|
57
|
+
| Add derived entity rows here | Key attributes | Relationship notes |
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 3. Screen Candidates
|
|
62
|
+
|
|
63
|
+
> Candidate screens mapped to at least one actor. This is a candidate list only,
|
|
64
|
+
> not a final UI specification. Minimum: list screen, detail screen, creation
|
|
65
|
+
> form, and operator work-queue or dashboard.
|
|
66
|
+
|
|
67
|
+
| Screen | Purpose | Primary Actor |
|
|
68
|
+
|--------|---------|---------------|
|
|
69
|
+
| Add candidate screen rows here | One-sentence purpose | Actor |
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. Flows
|
|
74
|
+
|
|
75
|
+
> Named flows with start actor, trigger, key steps, and expected outcome.
|
|
76
|
+
> Minimum required flows: submit request, view requests, assign request,
|
|
77
|
+
> update status, close request.
|
|
78
|
+
|
|
79
|
+
### Flow 1: [Flow Name]
|
|
80
|
+
|
|
81
|
+
- **Start actor:** Actor name
|
|
82
|
+
- **Trigger:** Triggering event
|
|
83
|
+
- **Key steps:**
|
|
84
|
+
1. Step one
|
|
85
|
+
2. Step two
|
|
86
|
+
- **Expected outcome:** Outcome
|
|
87
|
+
|
|
88
|
+
> Add additional named flows following the same structure.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 5. Business Rules (DRAFT)
|
|
93
|
+
|
|
94
|
+
> All rules below are DRAFT and require human review before adoption.
|
|
95
|
+
> Rules are derived from the brief or implied by the bounded domain.
|
|
96
|
+
|
|
97
|
+
| ID | Rule | Source |
|
|
98
|
+
|----|------|--------|
|
|
99
|
+
| BR-D01 | Add derived rule | Brief / Implied |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 6. Draft Acceptance Criteria (DRAFT)
|
|
104
|
+
|
|
105
|
+
> All criteria below are DRAFT. They seed the SPEC phase and require human
|
|
106
|
+
> review before adoption. Express in Given/When/Then form.
|
|
107
|
+
|
|
108
|
+
| ID | Given | When | Then | Linked Flow |
|
|
109
|
+
|----|-------|------|------|-------------|
|
|
110
|
+
| AC-D01 | Precondition | Action | Expected result | Flow name |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Gaps
|
|
115
|
+
|
|
116
|
+
> List any areas where the brief did not provide enough signal to derive content
|
|
117
|
+
> confidently. Each gap must be addressed by the PM or maintainer before the
|
|
118
|
+
> SPEC phase can proceed.
|
|
119
|
+
|
|
120
|
+
| ID | Gap Description | Needed By |
|
|
121
|
+
|----|----------------|-----------|
|
|
122
|
+
| GAP-01 | Describe what is missing | PM / BA phase |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Next Step
|
|
127
|
+
|
|
128
|
+
After human review of this document:
|
|
129
|
+
|
|
130
|
+
1. Confirm feature key {{FEATURE_KEY}} is correct.
|
|
131
|
+
2. Resolve all gaps listed above.
|
|
132
|
+
3. Use this package as structured input to the PM initiation step:
|
|
133
|
+
`@pm please create PROJECT_INITIATION_{{FEATURE_KEY}}.md`
|
|
134
|
+
|
|
135
|
+
Do not advance to the PM or BA phase until this document has been explicitly
|
|
136
|
+
confirmed by the PM or maintainer (Gate H2).
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
# DEV to SDTK-CODE Handoff
|
|
2
|
-
|
|
3
|
-
## Required Inputs
|
|
4
|
-
- `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
|
|
5
|
-
- `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
|
|
6
|
-
- `sdtk-spec.config.json`
|
|
7
|
-
- required upstream refs listed in the handoff artifact
|
|
8
|
-
|
|
9
|
-
## Required Outputs
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
- `
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
1
|
+
# DEV to SDTK-CODE Handoff
|
|
2
|
+
|
|
3
|
+
## Required Inputs
|
|
4
|
+
- `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
|
|
5
|
+
- `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
|
|
6
|
+
- `sdtk-spec.config.json`
|
|
7
|
+
- required upstream refs listed in the handoff artifact
|
|
8
|
+
|
|
9
|
+
## Required Outputs
|
|
10
|
+
Current canonical generator output is schema `0.2`; downstream `SDTK-CODE` still accepts `0.1` handoffs for truthful compatibility.
|
|
11
|
+
|
|
12
|
+
- explicit readiness decision for SDTK-CODE:
|
|
13
|
+
- `READY_FOR_SDTK_CODE`, or
|
|
14
|
+
- `BLOCKED_FOR_SDTK_CODE`
|
|
15
|
+
- recommended lane:
|
|
16
|
+
- `feature`, or
|
|
17
|
+
- `bugfix`
|
|
18
|
+
- implementation slices (ordered build sequence)
|
|
19
|
+
- impact map derived from the current handoff refs
|
|
20
|
+
- test obligations
|
|
21
|
+
- optional recovery notes
|
|
22
|
+
- blocker list when not ready
|
|
23
|
+
|
|
24
|
+
## Mandatory Checks
|
|
25
|
+
- `FEATURE_IMPL_PLAN` and `CODE_HANDOFF` reference the same feature key.
|
|
26
|
+
- `required_refs` always include `ARCH_DESIGN` and `BACKLOG`.
|
|
27
|
+
- implementation slices stay in the recommended downstream build order.
|
|
28
|
+
- test obligations are implementation-ready acceptance mapping statements, not vague labels.
|
|
29
|
+
- suggested next command appears only when the handoff status is `READY_FOR_SDTK_CODE`.
|
|
30
|
+
|
|
31
|
+
## Forbidden Shortcuts
|
|
32
|
+
- Do not auto-run `sdtk-code` from `/dev`.
|
|
33
|
+
- Do not emit `READY_FOR_SDTK_CODE` with hidden blockers.
|
|
34
|
+
- Do not treat planning notes as a substitute for the machine-readable `CODE_HANDOFF` artifact.
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
- `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
|
|
5
5
|
- source requirement notes or attachments
|
|
6
6
|
- current `SHARED_PLANNING.md`
|
|
7
|
+
- (Optional) `docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md` if a
|
|
8
|
+
condensation step was run before PM initiation (BK-056). If present, BA must
|
|
9
|
+
read it alongside the Project Initiation doc. All condensed content is DRAFT
|
|
10
|
+
and requires human review before adoption.
|
|
7
11
|
|
|
8
12
|
## Required Outputs
|
|
9
13
|
- `docs/specs/BA_SPEC_[FEATURE_KEY].md`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# AGENT REPORT TEMPLATE
|
|
2
|
+
1. Metadata
|
|
3
|
+
- Worker
|
|
4
|
+
- Runtime
|
|
5
|
+
- Phase
|
|
6
|
+
- Repo / Branch
|
|
7
|
+
- Decision Requested
|
|
8
|
+
- Issue Closeout Mode
|
|
9
|
+
- Runtime Outcome (`completed` | `stalled` | `fallback-used`)
|
|
10
|
+
2. Short Summary
|
|
11
|
+
- <summary>
|
|
12
|
+
3. Exact Files Changed
|
|
13
|
+
- <path>
|
|
14
|
+
- <path>
|
|
15
|
+
4. Carryover Findings Resolution
|
|
16
|
+
- <prior blocker or truth preserved or resolved>
|
|
17
|
+
- <prior blocker or truth preserved or resolved>
|
|
18
|
+
5. Formal Artifact Truth
|
|
19
|
+
- primary formal artifact path
|
|
20
|
+
- written by agent or controller fallback
|
|
21
|
+
- fallback reason when controller authored the artifact
|
|
22
|
+
6. Exact Verification Results
|
|
23
|
+
- <command> -> <result>
|
|
24
|
+
- <command> -> <result>
|
|
25
|
+
7. Boundary Truth
|
|
26
|
+
- included surfaces actually touched
|
|
27
|
+
- excluded surfaces not touched
|
|
28
|
+
- formal artifacts created
|
|
29
|
+
- boundary mode actually executed
|
|
30
|
+
- parent issue status after this batch (`DONE` | `IN_PROGRESS`)
|
|
31
|
+
8. Git Truth
|
|
32
|
+
- git status --short --untracked-files=all
|
|
33
|
+
- git diff --name-only
|
|
34
|
+
- git diff --cached --name-only
|
|
35
|
+
- git rev-parse HEAD
|
|
36
|
+
- git branch --show-current
|
|
37
|
+
9. Fallback Truth
|
|
38
|
+
- fallback trigger reached or not
|
|
39
|
+
- fallback path used or not
|
|
40
|
+
- stalled runtime diff accepted: yes or no
|
|
41
|
+
10. Blockers / Open Questions
|
|
42
|
+
- <item>
|
|
43
|
+
11. Ready State
|
|
44
|
+
- <ready / not ready>
|
|
45
|
+
- <reason>
|
|
46
|
+
- <next step>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# AGENT TASK TEMPLATE
|
|
2
|
+
Issue:
|
|
3
|
+
- <ISSUE_KEY> | <TITLE>
|
|
4
|
+
Runtime:
|
|
5
|
+
- <claude|codex>
|
|
6
|
+
Phase:
|
|
7
|
+
- <plan|controller-spec|implementation|controller-dev-review|qa-review|controller-acceptance|post-issue-retrospective|ops|other>
|
|
8
|
+
Worktree / Repo:
|
|
9
|
+
- <ABSOLUTE_PATH>
|
|
10
|
+
- Branch: <BRANCH>
|
|
11
|
+
Objective:
|
|
12
|
+
- <one clear sentence>
|
|
13
|
+
Decision Requested:
|
|
14
|
+
- <exact decision or ready-state question>
|
|
15
|
+
Issue Closeout Mode:
|
|
16
|
+
- <full-issue|phase-only>
|
|
17
|
+
Formal Outputs To Produce:
|
|
18
|
+
1. <tracked artifact path>
|
|
19
|
+
2. <tracked artifact path>
|
|
20
|
+
Include Boundary:
|
|
21
|
+
1. <path or surface>
|
|
22
|
+
2. <path or surface>
|
|
23
|
+
Exclude Boundary:
|
|
24
|
+
1. <excluded path or surface>
|
|
25
|
+
2. <excluded path or surface>
|
|
26
|
+
Inputs:
|
|
27
|
+
- <file 1>
|
|
28
|
+
- <file 2>
|
|
29
|
+
- <file 3>
|
|
30
|
+
Boundary Mode:
|
|
31
|
+
- <canonical-only|canonical+distribution|other>
|
|
32
|
+
Primary Formal Artifact:
|
|
33
|
+
- <tracked artifact path that controller will trust first>
|
|
34
|
+
Carryover Findings / Fixed Truth To Preserve:
|
|
35
|
+
- <prior blocker ID or prior approved truth>
|
|
36
|
+
- <prior blocker ID or prior approved truth>
|
|
37
|
+
Formal Artifact Write Expectation:
|
|
38
|
+
- <agent-authored formal artifact|controller-authored fallback allowed if runtime is blocked>
|
|
39
|
+
Timebox / Search Budget:
|
|
40
|
+
- <deliver-first / max search budget / when to stop and escalate>
|
|
41
|
+
Runtime Stall Budget / Fallback Trigger:
|
|
42
|
+
- <max runtime wait or retry budget / exact trigger that allows controller-local or native fallback>
|
|
43
|
+
Execution Rules:
|
|
44
|
+
1. <critical rule>
|
|
45
|
+
2. <critical rule>
|
|
46
|
+
3. <commit/push restriction if relevant>
|
|
47
|
+
Required Verification:
|
|
48
|
+
- <command 1>
|
|
49
|
+
- <command 2>
|
|
50
|
+
- <command 3>
|
|
51
|
+
Return Format:
|
|
52
|
+
1. metadata
|
|
53
|
+
2. short summary
|
|
54
|
+
3. exact files changed
|
|
55
|
+
4. formal artifact truth
|
|
56
|
+
5. exact verification results
|
|
57
|
+
6. boundary truth
|
|
58
|
+
7. blockers or open questions
|
|
59
|
+
8. explicit readiness statement
|