sdtk-spec-kit 0.4.4 → 0.4.6
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 +369 -376
- package/assets/atlas/build_atlas.py +880 -880
- package/assets/atlas/doc_atlas_viewer_template.html +3796 -3782
- package/assets/atlas/vendor/mermaid.min.js +2029 -2029
- package/assets/keys/spec-entitlement-public.pem +11 -11
- package/assets/manifest/toolkit-bundle.manifest.json +178 -178
- package/assets/manifest/toolkit-bundle.sha256.txt +83 -83
- package/assets/toolkit/toolkit/AGENTS.md +247 -245
- package/assets/toolkit/toolkit/README.md +50 -50
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +207 -208
- package/assets/toolkit/toolkit/install.ps1 +21 -21
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +92 -92
- package/assets/toolkit/toolkit/runtimes/codex/CODEX_TEMPLATE.md +70 -70
- 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 +86 -86
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +262 -262
- 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 +27 -27
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +49 -49
- package/assets/toolkit/toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md +47 -47
- package/assets/toolkit/toolkit/session/SDTK_AGENT_WORKING_RULES.md +49 -49
- 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/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 +2 -2
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +17 -17
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +106 -106
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +50 -50
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +53 -53
- 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-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 +2 -2
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +40 -40
- 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 +112 -112
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +115 -115
- package/assets/toolkit/toolkit/templates/README.md +68 -68
- 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 +228 -228
- 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 +107 -107
- package/assets/toolkit/toolkit/templates/docs/design/DESIGN_LAYOUT_TEMPLATE.md +60 -60
- 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/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_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/PM_TO_BA.md +29 -29
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +26 -26
- 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 +90 -90
- package/src/commands/analyze.js +11 -0
- package/src/commands/atlas.js +341 -352
- package/src/commands/auth.js +85 -85
- package/src/commands/entitlement.js +163 -163
- package/src/commands/generate.js +209 -147
- package/src/commands/help.js +41 -33
- package/src/commands/init.js +15 -15
- package/src/commands/project.js +51 -51
- package/src/commands/runtime.js +239 -239
- package/src/index.js +9 -6
- 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 -355
- package/src/lib/browser-open.js +39 -39
- package/src/lib/capabilities.js +92 -92
- package/src/lib/design-handoff-provenance.js +189 -0
- package/src/lib/entitlements.js +238 -238
- package/src/lib/errors.js +41 -41
- package/src/lib/github-access.js +143 -143
- package/src/lib/legacy-auth-migration.js +55 -55
- package/src/lib/license-activation.js +375 -375
- package/src/lib/powershell.js +85 -85
- package/src/lib/premium-loader.js +126 -126
- package/src/lib/premium-packs.js +331 -331
- 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/requirement-analysis.js +472 -0
- package/src/lib/scope.js +83 -83
- package/src/lib/state.js +73 -73
- package/src/lib/suite-state.js +70 -70
- package/src/lib/toolkit-payload.js +99 -99
- package/src/lib/atlas-ask.js +0 -170
|
@@ -1,369 +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.
|
|
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.
|