specsmd 0.0.1
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 +300 -0
- package/bin/cli.js +21 -0
- package/flows/aidlc/README.md +372 -0
- package/flows/aidlc/agents/construction-agent.md +81 -0
- package/flows/aidlc/agents/inception-agent.md +95 -0
- package/flows/aidlc/agents/master-agent.md +61 -0
- package/flows/aidlc/agents/operations-agent.md +89 -0
- package/flows/aidlc/commands/construction-agent.md +63 -0
- package/flows/aidlc/commands/inception-agent.md +55 -0
- package/flows/aidlc/commands/master-agent.md +47 -0
- package/flows/aidlc/commands/operations-agent.md +77 -0
- package/flows/aidlc/context-config.yaml +41 -0
- package/flows/aidlc/memory-bank.yaml +104 -0
- package/flows/aidlc/quick-start.md +315 -0
- package/flows/aidlc/skills/construction/bolt-list.md +163 -0
- package/flows/aidlc/skills/construction/bolt-replan.md +343 -0
- package/flows/aidlc/skills/construction/bolt-start.md +289 -0
- package/flows/aidlc/skills/construction/bolt-status.md +185 -0
- package/flows/aidlc/skills/construction/navigator.md +196 -0
- package/flows/aidlc/skills/inception/bolt-plan.md +338 -0
- package/flows/aidlc/skills/inception/context.md +171 -0
- package/flows/aidlc/skills/inception/intent-create.md +211 -0
- package/flows/aidlc/skills/inception/intent-list.md +124 -0
- package/flows/aidlc/skills/inception/navigator.md +207 -0
- package/flows/aidlc/skills/inception/requirements.md +227 -0
- package/flows/aidlc/skills/inception/review.md +248 -0
- package/flows/aidlc/skills/inception/story-create.md +304 -0
- package/flows/aidlc/skills/inception/units.md +271 -0
- package/flows/aidlc/skills/master/analyze-context.md +132 -0
- package/flows/aidlc/skills/master/answer-question.md +141 -0
- package/flows/aidlc/skills/master/explain-flow.md +146 -0
- package/flows/aidlc/skills/master/project-init.md +281 -0
- package/flows/aidlc/skills/master/route-request.md +126 -0
- package/flows/aidlc/skills/operations/build.md +237 -0
- package/flows/aidlc/skills/operations/deploy.md +259 -0
- package/flows/aidlc/skills/operations/monitor.md +265 -0
- package/flows/aidlc/skills/operations/navigator.md +209 -0
- package/flows/aidlc/skills/operations/verify.md +224 -0
- package/flows/aidlc/templates/construction/bolt-template.md +193 -0
- package/flows/aidlc/templates/construction/bolt-types/bdd-construction-bolt.md +250 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +528 -0
- package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +273 -0
- package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
- package/flows/aidlc/templates/construction/bolt-types/tdd-construction-bolt.md +259 -0
- package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
- package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
- package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
- package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
- package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
- package/flows/aidlc/templates/inception/project/README.md +55 -0
- package/flows/aidlc/templates/inception/requirements-template.md +144 -0
- package/flows/aidlc/templates/inception/stories-template.md +38 -0
- package/flows/aidlc/templates/inception/story-template.md +147 -0
- package/flows/aidlc/templates/inception/system-context-template.md +29 -0
- package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
- package/flows/aidlc/templates/inception/units-template.md +52 -0
- package/flows/aidlc/templates/standards/catalog.yaml +345 -0
- package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
- package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
- package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
- package/lib/InstallerFactory.js +36 -0
- package/lib/cli-utils.js +372 -0
- package/lib/constants.js +31 -0
- package/lib/installer.js +314 -0
- package/lib/installers/AntigravityInstaller.js +22 -0
- package/lib/installers/ClaudeInstaller.js +85 -0
- package/lib/installers/ClineInstaller.js +21 -0
- package/lib/installers/CodexInstaller.js +21 -0
- package/lib/installers/CopilotInstaller.js +113 -0
- package/lib/installers/CursorInstaller.js +63 -0
- package/lib/installers/GeminiInstaller.js +75 -0
- package/lib/installers/KiroInstaller.js +22 -0
- package/lib/installers/OpenCodeInstaller.js +22 -0
- package/lib/installers/RooInstaller.js +22 -0
- package/lib/installers/ToolInstaller.js +73 -0
- package/lib/installers/WindsurfInstaller.js +76 -0
- package/lib/markdown-validator.ts +175 -0
- package/lib/yaml-validator.ts +99 -0
- package/package.json +65 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# Skill: Build Deployment Artifacts
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Progress Display
|
|
6
|
+
|
|
7
|
+
Show at start of this skill:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
### Operations Progress
|
|
11
|
+
- [ ] Build approval ← current
|
|
12
|
+
- [ ] Staging deploy
|
|
13
|
+
- [ ] Production deploy
|
|
14
|
+
- [ ] Monitoring setup
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Checkpoints in This Skill
|
|
20
|
+
|
|
21
|
+
| Checkpoint | Purpose | Wait For |
|
|
22
|
+
|------------|---------|----------|
|
|
23
|
+
| Checkpoint 1 | Build approval | User confirmation |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Goal
|
|
28
|
+
|
|
29
|
+
Create deployable packages (containers, functions, bundles) for a Unit and document the build metadata.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Input
|
|
34
|
+
|
|
35
|
+
- **Required**: `--unit` - The unit to build
|
|
36
|
+
- **Required**: `.specsmd/aidlc/memory-bank.yaml` - artifact schema
|
|
37
|
+
- **Optional**: `--version` - Explicit version tag (default: auto-generate)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Process
|
|
42
|
+
|
|
43
|
+
### 1. Verify Prerequisites
|
|
44
|
+
|
|
45
|
+
Check construction completion:
|
|
46
|
+
|
|
47
|
+
- [ ] **All bolts complete**: Path from `schema.bolts` (Required)
|
|
48
|
+
- [ ] **Tests passing**: Last bolt test stage (Required)
|
|
49
|
+
- [ ] **Code exists**: Unit source directory (Required)
|
|
50
|
+
|
|
51
|
+
### 2. Detect Build Type
|
|
52
|
+
|
|
53
|
+
Analyze unit structure to determine build strategy:
|
|
54
|
+
|
|
55
|
+
- `Dockerfile` → **Container** → `docker build`
|
|
56
|
+
- `serverless.yml` → **Serverless** → Framework deploy
|
|
57
|
+
- `package.json` → **Node.js** → `npm run build`
|
|
58
|
+
- `Cargo.toml` → **Rust** → `cargo build --release`
|
|
59
|
+
- `go.mod` → **Go** → `go build`
|
|
60
|
+
|
|
61
|
+
### 3. Determine Version
|
|
62
|
+
|
|
63
|
+
Generate semantic version:
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
## Version Calculation
|
|
67
|
+
|
|
68
|
+
Base: {major}.{minor}.{patch}
|
|
69
|
+
Commit: {short-sha}
|
|
70
|
+
Tag: v{version}-{commit}
|
|
71
|
+
|
|
72
|
+
Example: v1.2.0-abc123
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 4. Execute Build
|
|
76
|
+
|
|
77
|
+
Run appropriate build commands:
|
|
78
|
+
|
|
79
|
+
1. **Pre-build**: Install dependencies
|
|
80
|
+
2. **Build**: Compile/bundle
|
|
81
|
+
3. **Test**: Run final verification
|
|
82
|
+
4. **Package**: Create deployable artifact
|
|
83
|
+
5. **Tag**: Apply version tag
|
|
84
|
+
|
|
85
|
+
### 5. Push to Registry
|
|
86
|
+
|
|
87
|
+
Upload artifact to configured registry:
|
|
88
|
+
|
|
89
|
+
- Container → Container registry
|
|
90
|
+
- Package → Package registry
|
|
91
|
+
- Function → Function storage
|
|
92
|
+
|
|
93
|
+
### 6. Document Build
|
|
94
|
+
|
|
95
|
+
Create/update `deployment/build.md`:
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
---
|
|
99
|
+
version: {version}
|
|
100
|
+
commit: {sha}
|
|
101
|
+
built: {timestamp}
|
|
102
|
+
status: success
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Build: {version}
|
|
106
|
+
|
|
107
|
+
### Artifact
|
|
108
|
+
- **Type**: {container|function|package}
|
|
109
|
+
- **Tag**: `{registry}/{unit}:{version}`
|
|
110
|
+
- **Size**: {size}
|
|
111
|
+
- **SHA**: {artifact-sha}
|
|
112
|
+
|
|
113
|
+
### Build Environment
|
|
114
|
+
- OS: {os}
|
|
115
|
+
- Runtime: {runtime-version}
|
|
116
|
+
- Builder: {tool-version}
|
|
117
|
+
|
|
118
|
+
### Dependencies
|
|
119
|
+
|
|
120
|
+
- **{dep1}**: {ver}
|
|
121
|
+
- **{dep2}**: {ver}
|
|
122
|
+
|
|
123
|
+
### Build Log Summary
|
|
124
|
+
{key events from build}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Output
|
|
130
|
+
|
|
131
|
+
````markdown
|
|
132
|
+
## Build Complete: {unit-name}
|
|
133
|
+
|
|
134
|
+
### Artifact Created
|
|
135
|
+
|
|
136
|
+
- **Version**: `{version}`
|
|
137
|
+
- **Tag**: `{registry}/{unit}:{version}`
|
|
138
|
+
- **Built**: {timestamp}
|
|
139
|
+
- **Size**: {size}
|
|
140
|
+
|
|
141
|
+
### Build Summary
|
|
142
|
+
- Dependencies: {count} packages
|
|
143
|
+
- Build time: {duration}
|
|
144
|
+
- Tests: ✅ All passing
|
|
145
|
+
|
|
146
|
+
### Artifact Location
|
|
147
|
+
```text
|
|
148
|
+
{registry-url}/{unit}:{version}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Documentation Updated
|
|
152
|
+
|
|
153
|
+
- `{unit-path}/deployment/build.md`
|
|
154
|
+
|
|
155
|
+
### Actions
|
|
156
|
+
|
|
157
|
+
1 - **deploy**: Deploy to dev environment
|
|
158
|
+
2 - **menu**: Return to operations menu
|
|
159
|
+
|
|
160
|
+
### Suggested Next Step
|
|
161
|
+
|
|
162
|
+
→ **deploy** - Deploy `{version}` to dev environment
|
|
163
|
+
|
|
164
|
+
**Type a number or press Enter for suggested action.**
|
|
165
|
+
````
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Output (Build Failed)
|
|
170
|
+
|
|
171
|
+
````markdown
|
|
172
|
+
## Build Failed: {unit-name}
|
|
173
|
+
|
|
174
|
+
### Error
|
|
175
|
+
```text
|
|
176
|
+
{error message}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Failure Point
|
|
180
|
+
|
|
181
|
+
- **Stage**: {compile|test|package}
|
|
182
|
+
- **Exit Code**: {code}
|
|
183
|
+
|
|
184
|
+
### Logs
|
|
185
|
+
|
|
186
|
+
{relevant log excerpt}
|
|
187
|
+
|
|
188
|
+
### Suggested Actions
|
|
189
|
+
|
|
190
|
+
1. Fix the build error in source code
|
|
191
|
+
2. Re-run build: `build --unit="{unit}"`
|
|
192
|
+
|
|
193
|
+
### No Artifacts Created
|
|
194
|
+
|
|
195
|
+
Build must succeed before deployment.
|
|
196
|
+
````
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Build Confirmation
|
|
201
|
+
|
|
202
|
+
**Checkpoint 1**: Ask user to confirm build:
|
|
203
|
+
|
|
204
|
+
```text
|
|
205
|
+
Ready to build v{version}?
|
|
206
|
+
|
|
207
|
+
This will:
|
|
208
|
+
1. Verify all tests pass
|
|
209
|
+
2. Create deployable artifact
|
|
210
|
+
3. Tag with version {version}
|
|
211
|
+
4. Push to registry
|
|
212
|
+
|
|
213
|
+
Proceed with build?
|
|
214
|
+
1 - Yes, build
|
|
215
|
+
2 - Cancel
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Wait for user response.**
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Transition
|
|
223
|
+
|
|
224
|
+
After build approved and completed:
|
|
225
|
+
|
|
226
|
+
- → **Deploy** - deploy to dev environment
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Test Contract
|
|
231
|
+
|
|
232
|
+
```yaml
|
|
233
|
+
input: Unit name, version
|
|
234
|
+
output: Deployable artifact, build.md documentation
|
|
235
|
+
checkpoints: 1
|
|
236
|
+
- Checkpoint 1: Build approved by user
|
|
237
|
+
```
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# Skill: Deploy to Environment
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Progress Display
|
|
6
|
+
|
|
7
|
+
Show at start of this skill (varies by environment):
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
### Operations Progress
|
|
11
|
+
- [x] Build approval
|
|
12
|
+
- [ ] Staging deploy ← current (or)
|
|
13
|
+
- [ ] Production deploy ← current
|
|
14
|
+
- [ ] Monitoring setup
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Checkpoints in This Skill
|
|
20
|
+
|
|
21
|
+
| Checkpoint | Purpose | Wait For |
|
|
22
|
+
|------------|---------|----------|
|
|
23
|
+
| Checkpoint 2 | Staging deploy approval | User confirmation |
|
|
24
|
+
| Checkpoint 3 | Production deploy approval | User confirmation (⚠️ affects users) |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Goal
|
|
29
|
+
|
|
30
|
+
Deploy built artifacts to a target environment with progressive validation and rollback capability.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Input
|
|
35
|
+
|
|
36
|
+
- **Required**: `--unit` - The unit to deploy
|
|
37
|
+
- **Required**: `--env` - Target environment (`dev`, `staging`, `prod`)
|
|
38
|
+
- **Required**: `.specsmd/aidlc/memory-bank.yaml` - artifact schema
|
|
39
|
+
- **Optional**: `--version` - Specific version (default: latest build)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Process
|
|
44
|
+
|
|
45
|
+
### 1. Verify Prerequisites
|
|
46
|
+
|
|
47
|
+
- [ ] **Build exists**: Required for all environments
|
|
48
|
+
- [ ] **Tests passing**: Required for all environments
|
|
49
|
+
- [ ] **Deployed to dev**: Required for staging, prod
|
|
50
|
+
- [ ] **Deployed to staging**: Required for prod
|
|
51
|
+
- [ ] **Staging verification passed**: Required for prod
|
|
52
|
+
|
|
53
|
+
### 2. Environment Progression
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
## Deployment Progression
|
|
57
|
+
|
|
58
|
+
Dev ──────► Staging ──────► Production
|
|
59
|
+
│ │ │
|
|
60
|
+
▼ ▼ ▼
|
|
61
|
+
Fast Validation Real users
|
|
62
|
+
iteration required approval required
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 3. Pre-Deployment Checks
|
|
66
|
+
|
|
67
|
+
For the target environment:
|
|
68
|
+
|
|
69
|
+
- [ ] **Infrastructure**: Verify resources exist
|
|
70
|
+
- [ ] **Secrets**: Confirm secrets configured
|
|
71
|
+
- [ ] **Dependencies**: Check external services available
|
|
72
|
+
- [ ] **Current version**: Record for rollback
|
|
73
|
+
|
|
74
|
+
### 4. Execute Deployment
|
|
75
|
+
|
|
76
|
+
Based on deployment type:
|
|
77
|
+
|
|
78
|
+
- **Container** → Update container image
|
|
79
|
+
- **Serverless** → Deploy function
|
|
80
|
+
- **Static** → Sync to CDN/bucket
|
|
81
|
+
- **Kubernetes** → Apply manifests
|
|
82
|
+
|
|
83
|
+
### 5. Wait for Health
|
|
84
|
+
|
|
85
|
+
Monitor deployment until healthy:
|
|
86
|
+
|
|
87
|
+
- Health check endpoint responding
|
|
88
|
+
- No crash loops
|
|
89
|
+
- Readiness probes passing
|
|
90
|
+
|
|
91
|
+
### 6. Document Deployment
|
|
92
|
+
|
|
93
|
+
Append to `deployment/history.md`:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
---
|
|
97
|
+
version: {version}
|
|
98
|
+
environment: {env}
|
|
99
|
+
deployed: {timestamp}
|
|
100
|
+
deployed_by: {user}
|
|
101
|
+
status: success
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Deployment: {version} → {env}
|
|
105
|
+
|
|
106
|
+
### Details
|
|
107
|
+
|
|
108
|
+
- **Version**: `{version}`
|
|
109
|
+
- **Environment**: {env}
|
|
110
|
+
- **Timestamp**: {timestamp}
|
|
111
|
+
- **Duration**: {duration}
|
|
112
|
+
- **Previous Version**: `{prev-version}`
|
|
113
|
+
|
|
114
|
+
### Changes
|
|
115
|
+
{diff summary from previous version}
|
|
116
|
+
|
|
117
|
+
### Rollback Command
|
|
118
|
+
```text
|
|
119
|
+
deploy --unit="{unit}" --env="{env}" --version="{prev-version}"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Output
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
## Deployment Complete: {unit-name}
|
|
128
|
+
|
|
129
|
+
### Status
|
|
130
|
+
|
|
131
|
+
- **Version**: `{version}`
|
|
132
|
+
- **Environment**: {env}
|
|
133
|
+
- **Status**: ✅ Deployed
|
|
134
|
+
- **Health**: ✅ Healthy
|
|
135
|
+
|
|
136
|
+
### Deployment Details
|
|
137
|
+
- Started: {start-time}
|
|
138
|
+
- Completed: {end-time}
|
|
139
|
+
- Duration: {duration}
|
|
140
|
+
|
|
141
|
+
### Environment State
|
|
142
|
+
|
|
143
|
+
- ✅ **Development**: `{version}` - Active
|
|
144
|
+
- ✅ **Staging**: `{version}` - Active
|
|
145
|
+
- ⏳ **Production**: `{prev-version}` - Awaiting
|
|
146
|
+
|
|
147
|
+
### Documentation Updated
|
|
148
|
+
- `{unit-path}/deployment/history.md`
|
|
149
|
+
|
|
150
|
+
### Actions
|
|
151
|
+
|
|
152
|
+
1 - **verify**: Verify this deployment
|
|
153
|
+
2 - **deploy**: Deploy to next environment
|
|
154
|
+
3 - **menu**: Return to operations menu
|
|
155
|
+
|
|
156
|
+
### Suggested Next Step
|
|
157
|
+
→ **verify** - Verify deployment in {env}
|
|
158
|
+
|
|
159
|
+
**Type a number or press Enter for suggested action.**
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Output (Production Approval Required)
|
|
165
|
+
|
|
166
|
+
````markdown
|
|
167
|
+
## Production Deployment: {unit-name}
|
|
168
|
+
|
|
169
|
+
### ⚠️ PRODUCTION DEPLOYMENT APPROVAL REQUIRED
|
|
170
|
+
|
|
171
|
+
This deployment will affect real users.
|
|
172
|
+
|
|
173
|
+
### Pre-Deployment Checklist
|
|
174
|
+
- [x] Staging deployment successful
|
|
175
|
+
- [x] Staging verification passed
|
|
176
|
+
- [x] All tests passing
|
|
177
|
+
- [ ] **Human approval required**
|
|
178
|
+
|
|
179
|
+
### Deployment Plan
|
|
180
|
+
|
|
181
|
+
- **Version**: `{version}`
|
|
182
|
+
- **Current Production**: `{current-version}`
|
|
183
|
+
- **Changes**: {summary}
|
|
184
|
+
|
|
185
|
+
### Rollback Plan
|
|
186
|
+
If issues detected:
|
|
187
|
+
```text
|
|
188
|
+
deploy --unit="{unit}" --env="prod" --version="{current-version}"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Proceed?
|
|
192
|
+
>
|
|
193
|
+
> "⚠️ This will deploy to PRODUCTION. All staging checks passed. Approve deployment? (yes/no)"
|
|
194
|
+
````
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Staging Deploy Confirmation
|
|
199
|
+
|
|
200
|
+
**Checkpoint 2**: Ask user to confirm staging deploy:
|
|
201
|
+
|
|
202
|
+
```text
|
|
203
|
+
Ready to deploy to staging?
|
|
204
|
+
|
|
205
|
+
Version: {version}
|
|
206
|
+
Environment: Staging (production-like validation)
|
|
207
|
+
|
|
208
|
+
This will update the staging environment.
|
|
209
|
+
1 - Yes, deploy to staging
|
|
210
|
+
2 - Cancel
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Wait for user response.**
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## Production Deploy Confirmation
|
|
218
|
+
|
|
219
|
+
**Checkpoint 3**: Ask user to confirm production deploy (⚠️ CRITICAL):
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
⚠️ PRODUCTION DEPLOYMENT
|
|
223
|
+
|
|
224
|
+
This affects real users.
|
|
225
|
+
|
|
226
|
+
Version: {version}
|
|
227
|
+
Current Production: {current-version}
|
|
228
|
+
All staging tests: ✅ Passed
|
|
229
|
+
|
|
230
|
+
Rollback command ready:
|
|
231
|
+
deploy --unit="{unit}" --env="prod" --version="{current-version}"
|
|
232
|
+
|
|
233
|
+
Proceed with production deployment?
|
|
234
|
+
1 - Yes, deploy to PRODUCTION
|
|
235
|
+
2 - Cancel
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Wait for user response.**
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Transition
|
|
243
|
+
|
|
244
|
+
After deploy approved and completed:
|
|
245
|
+
|
|
246
|
+
- → **Verify** - verify deployment health
|
|
247
|
+
- → **Monitor** - setup monitoring (after production)
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Test Contract
|
|
252
|
+
|
|
253
|
+
```yaml
|
|
254
|
+
input: Unit name, version, environment
|
|
255
|
+
output: Deployed artifact, history.md documentation
|
|
256
|
+
checkpoints: 1-2
|
|
257
|
+
- Checkpoint 2: Staging deploy approved (if staging)
|
|
258
|
+
- Checkpoint 3: Production deploy approved (if production)
|
|
259
|
+
```
|