project-iris 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +214 -323
- package/bin/cli.js +21 -0
- package/flows/aidlc/README.md +372 -0
- package/flows/aidlc/agents/construction-agent.md +79 -0
- package/flows/aidlc/agents/inception-agent.md +97 -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 +67 -0
- package/flows/aidlc/memory-bank.yaml +104 -0
- package/flows/aidlc/quick-start.md +322 -0
- package/flows/aidlc/skills/construction/bolt-list.md +163 -0
- package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
- package/flows/aidlc/skills/construction/bolt-start.md +442 -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 +372 -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 +278 -0
- package/flows/aidlc/skills/master/analyze-context.md +239 -0
- package/flows/aidlc/skills/master/answer-question.md +141 -0
- package/flows/aidlc/skills/master/explain-flow.md +158 -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/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt.md +3 -3
- package/{dist → flows/aidlc}/templates/construction/bolt-types/spike-bolt.md +2 -2
- 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/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/analytics/env-detector.js +92 -0
- package/lib/analytics/index.js +22 -0
- package/lib/analytics/machine-id.js +33 -0
- package/lib/analytics/tracker.js +232 -0
- package/lib/cli-utils.js +342 -0
- package/lib/constants.js +32 -0
- package/lib/installer.js +402 -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 +22 -0
- package/lib/markdown-validator.ts +175 -0
- package/lib/yaml-validator.ts +99 -0
- package/package.json +105 -32
- package/scripts/artifact-validator.js +594 -0
- package/scripts/bolt-complete.js +606 -0
- package/scripts/status-integrity.js +598 -0
- package/dist/bridge/agent-runner.js +0 -190
- package/dist/bridge/connector-factory.js +0 -31
- package/dist/bridge/connectors/antigravity-connector.js +0 -18
- package/dist/bridge/connectors/cursor-connector.js +0 -31
- package/dist/bridge/connectors/in-process-connector.js +0 -29
- package/dist/bridge/connectors/vscode-connector.js +0 -31
- package/dist/bridge/connectors/windsurf-connector.js +0 -23
- package/dist/bridge/filesystem-connector.js +0 -110
- package/dist/bridge/helper.js +0 -203
- package/dist/bridge/types.js +0 -10
- package/dist/cli.js +0 -40
- package/dist/commands/ask.js +0 -259
- package/dist/commands/bridge.js +0 -88
- package/dist/commands/create.js +0 -25
- package/dist/commands/develop.js +0 -141
- package/dist/commands/doctor.js +0 -102
- package/dist/commands/flow.js +0 -301
- package/dist/commands/framework.js +0 -273
- package/dist/commands/generate.js +0 -59
- package/dist/commands/install.js +0 -100
- package/dist/commands/pack.js +0 -33
- package/dist/commands/phase.js +0 -38
- package/dist/commands/run.js +0 -199
- package/dist/commands/status.js +0 -114
- package/dist/commands/uninstall.js +0 -14
- package/dist/commands/use.js +0 -20
- package/dist/commands/validate.js +0 -102
- package/dist/framework/framework-loader.js +0 -97
- package/dist/framework/framework-paths.js +0 -48
- package/dist/framework/framework-types.js +0 -15
- package/dist/iris/artifact-checker.js +0 -78
- package/dist/iris/artifacts/config.js +0 -68
- package/dist/iris/artifacts/generator.js +0 -88
- package/dist/iris/artifacts/types.js +0 -1
- package/dist/iris/bundle.js +0 -44
- package/dist/iris/doctrine/collector.js +0 -124
- package/dist/iris/fixer.js +0 -149
- package/dist/iris/flows/manifest.js +0 -124
- package/dist/iris/framework-context.js +0 -49
- package/dist/iris/framework-manager.js +0 -215
- package/dist/iris/fs/atomic.js +0 -22
- package/dist/iris/guard.js +0 -38
- package/dist/iris/importers/index.js +0 -9
- package/dist/iris/importers/types.js +0 -8
- package/dist/iris/importers/writer.js +0 -139
- package/dist/iris/include.js +0 -49
- package/dist/iris/installer.js +0 -334
- package/dist/iris/interactive/env.js +0 -21
- package/dist/iris/interactive/intent-interview.js +0 -345
- package/dist/iris/interactive/intent-schema.js +0 -28
- package/dist/iris/interactive/interview-io.js +0 -22
- package/dist/iris/interview/config.js +0 -71
- package/dist/iris/interview/types.js +0 -16
- package/dist/iris/interview/utils.js +0 -38
- package/dist/iris/manifest.js +0 -54
- package/dist/iris/packer.js +0 -325
- package/dist/iris/parsers/unit-parser.js +0 -43
- package/dist/iris/paths.js +0 -18
- package/dist/iris/policy.js +0 -133
- package/dist/iris/proc.js +0 -56
- package/dist/iris/report.js +0 -53
- package/dist/iris/resolver.js +0 -66
- package/dist/iris/router.js +0 -114
- package/dist/iris/routes.js +0 -189
- package/dist/iris/run-state.js +0 -146
- package/dist/iris/state.js +0 -113
- package/dist/iris/templates.js +0 -70
- package/dist/iris/tmp.js +0 -24
- package/dist/iris/uninstaller.js +0 -181
- package/dist/iris/utils/interpolate.js +0 -42
- package/dist/iris/validator.js +0 -391
- package/dist/iris/workflow/config.js +0 -51
- package/dist/iris/workflow/engine.js +0 -129
- package/dist/iris/workflow/steps.js +0 -448
- package/dist/iris/workflow/types.js +0 -1
- package/dist/iris_bundle/frameworks/iris-core/framework.yaml +0 -9
- package/dist/iris_bundle/frameworks/iris-core/memory/memory-bank.yaml +0 -1
- package/dist/iris_bundle/frameworks/iris-core/policy.yaml +0 -7
- package/dist/iris_bundle/frameworks/iris-core/templates/config/memory-bank.yaml +0 -1
- package/dist/iris_bundle/frameworks/iris-core/templates/construction/bolt-types/spike-bolt.md +0 -240
- package/dist/lib.js +0 -96
- package/dist/templates/construction/bolt-template.md +0 -226
- package/dist/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -49
- package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -55
- package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -67
- package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -62
- package/dist/templates/construction/bolt-types/ddd-construction-bolt.md +0 -528
- package/dist/templates/construction/bolt-types/simple-construction-bolt.md +0 -347
- package/dist/templates/inception/requirements-template.md +0 -144
- package/dist/templates/inception/stories-template.md +0 -38
- package/dist/templates/inception/story-template.md +0 -147
- package/dist/templates/inception/system-context-template.md +0 -29
- package/dist/templates/inception/unit-brief-template.md +0 -177
- package/dist/templates/inception/units-template.md +0 -52
- package/dist/utils/exit-codes.js +0 -7
- package/dist/utils/logo.js +0 -17
- package/dist/workflows/bolt-execution.js +0 -238
- package/dist/workflows/bolt-plan.js +0 -221
- package/dist/workflows/intent-inception.js +0 -285
- package/dist/workflows/memory-bank-generator.js +0 -180
- package/dist/workflows/reporting.js +0 -74
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/simple-construction-bolt.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/requirements-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/stories-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/story-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/system-context-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/unit-brief-template.md +0 -0
- /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/units-template.md +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# Skill: Verify Deployment
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
Post-deployment validation skill. Runs health checks and smoke tests.
|
|
8
|
+
|
|
9
|
+
**NO Checkpoint** - Verification is an automated check, not a decision point.
|
|
10
|
+
|
|
11
|
+
Verification happens after each deploy skill checkpoint. If verification fails, recommend rollback.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Goal
|
|
16
|
+
|
|
17
|
+
Confirm that a deployment is healthy, functional, and meeting acceptance criteria before proceeding to next environment.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Input
|
|
22
|
+
|
|
23
|
+
- **Required**: `--unit` - The unit to verify
|
|
24
|
+
- **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
|
|
25
|
+
- **Optional**: `--env` - Target environment (default: last deployed)
|
|
26
|
+
- **Optional**: `--version` - Specific version (default: currently deployed)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Process
|
|
31
|
+
|
|
32
|
+
### 1. Load Deployment Context
|
|
33
|
+
|
|
34
|
+
From `deployment/history.md`:
|
|
35
|
+
|
|
36
|
+
- Current deployed version
|
|
37
|
+
- Deployment timestamp
|
|
38
|
+
- Previous version (for comparison)
|
|
39
|
+
|
|
40
|
+
### 2. Execute Health Checks
|
|
41
|
+
|
|
42
|
+
- [ ] **Endpoint Health**: GET `/health` → 200 OK
|
|
43
|
+
- [ ] **Readiness**: GET `/ready` → 200 OK
|
|
44
|
+
- [ ] **Database**: Connection test → Connected
|
|
45
|
+
- [ ] **Cache**: Connection test → Connected
|
|
46
|
+
- [ ] **External APIs**: Connectivity check → Reachable
|
|
47
|
+
|
|
48
|
+
### 3. Run Smoke Tests
|
|
49
|
+
|
|
50
|
+
Execute critical path tests:
|
|
51
|
+
|
|
52
|
+
- [ ] **Authentication**: Login flow works (if applicable)
|
|
53
|
+
- [ ] **Core CRUD**: Basic operations work (required)
|
|
54
|
+
- [ ] **API Endpoints**: Key endpoints respond (required)
|
|
55
|
+
- [ ] **Error Handling**: Errors handled gracefully (required)
|
|
56
|
+
|
|
57
|
+
### 4. Check Metrics
|
|
58
|
+
|
|
59
|
+
Verify operational metrics are within bounds:
|
|
60
|
+
|
|
61
|
+
- [ ] **Response Time**: < SLA (p95 latency)
|
|
62
|
+
- [ ] **Error Rate**: < 1% (4xx/5xx responses)
|
|
63
|
+
- [ ] **CPU**: < 80% (resource utilization)
|
|
64
|
+
- [ ] **Memory**: < 80% (resource utilization)
|
|
65
|
+
|
|
66
|
+
### 5. Compare to Baseline
|
|
67
|
+
|
|
68
|
+
If previous version exists:
|
|
69
|
+
|
|
70
|
+
- Error rate comparison
|
|
71
|
+
- Latency comparison
|
|
72
|
+
- Resource usage comparison
|
|
73
|
+
|
|
74
|
+
### 6. Document Results
|
|
75
|
+
|
|
76
|
+
Create `deployment/verification-{version}.md`:
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
---
|
|
80
|
+
version: {version}
|
|
81
|
+
environment: {env}
|
|
82
|
+
verified: {timestamp}
|
|
83
|
+
status: passed|failed
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Verification Report: {version}
|
|
87
|
+
|
|
88
|
+
### Health Checks
|
|
89
|
+
|
|
90
|
+
- ✅ **Endpoint**: 200 OK, 15ms
|
|
91
|
+
- ✅ **Database**: Connected
|
|
92
|
+
- ✅ **Cache**: Connected
|
|
93
|
+
|
|
94
|
+
### Smoke Tests
|
|
95
|
+
|
|
96
|
+
- ✅ **Login Flow**: 234ms
|
|
97
|
+
- ✅ **Create Item**: 156ms
|
|
98
|
+
- ✅ **API Health**: 12ms
|
|
99
|
+
|
|
100
|
+
### Metrics
|
|
101
|
+
|
|
102
|
+
- ✅ **p95 Latency**: 145ms (threshold: <200ms)
|
|
103
|
+
- ✅ **Error Rate**: 0.02% (threshold: <1%)
|
|
104
|
+
|
|
105
|
+
### Baseline Comparison
|
|
106
|
+
|
|
107
|
+
- **p95 Latency**: 142ms → 145ms (+2%)
|
|
108
|
+
- **Error Rate**: 0.01% → 0.02% (+0.01%)
|
|
109
|
+
|
|
110
|
+
### Conclusion
|
|
111
|
+
{passed|failed}: {summary}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Output (Verification Passed)
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
## Verification Passed: {unit-name}
|
|
120
|
+
|
|
121
|
+
### Status: ✅ VERIFIED
|
|
122
|
+
|
|
123
|
+
### Results Summary
|
|
124
|
+
|
|
125
|
+
- ✅ **Health Checks**: {n}/{n} passed
|
|
126
|
+
- ✅ **Smoke Tests**: {n}/{n} passed
|
|
127
|
+
- ✅ **Metric Checks**: {n}/{n} passed
|
|
128
|
+
|
|
129
|
+
### Key Metrics
|
|
130
|
+
|
|
131
|
+
- ✅ **Response Time (p95)**: {value}ms
|
|
132
|
+
- ✅ **Error Rate**: {value}%
|
|
133
|
+
- ✅ **Uptime**: 100%
|
|
134
|
+
|
|
135
|
+
### Environment Status
|
|
136
|
+
|
|
137
|
+
- ✅ **{env}**: `{version}` - Verified
|
|
138
|
+
|
|
139
|
+
### Documentation Created
|
|
140
|
+
- `{unit-path}/deployment/verification-{version}.md`
|
|
141
|
+
|
|
142
|
+
### Actions
|
|
143
|
+
|
|
144
|
+
1 - **monitor**: Setup monitoring for this unit
|
|
145
|
+
2 - **deploy**: Deploy to next environment
|
|
146
|
+
3 - **menu**: Return to operations menu
|
|
147
|
+
|
|
148
|
+
### Suggested Next Step
|
|
149
|
+
→ **monitor** - Setup monitoring for `{unit-name}`
|
|
150
|
+
|
|
151
|
+
**Type a number or press Enter for suggested action.**
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Output (Verification Failed)
|
|
157
|
+
|
|
158
|
+
```markdown
|
|
159
|
+
## Verification Failed: {unit-name}
|
|
160
|
+
|
|
161
|
+
### Status: ❌ FAILED
|
|
162
|
+
|
|
163
|
+
### Failed Checks
|
|
164
|
+
|
|
165
|
+
- ❌ **{check1}**: Expected {expected}, got {actual}
|
|
166
|
+
- ❌ **{check2}**: Expected {expected}, got {actual}
|
|
167
|
+
|
|
168
|
+
### Error Details
|
|
169
|
+
{error messages or logs}
|
|
170
|
+
|
|
171
|
+
### Impact Assessment
|
|
172
|
+
|
|
173
|
+
- **Severity**: {critical|high|medium|low}
|
|
174
|
+
- **Affected**: {what's broken}
|
|
175
|
+
|
|
176
|
+
### Recommended Action
|
|
177
|
+
⚠️ **ROLLBACK RECOMMENDED**
|
|
178
|
+
|
|
179
|
+
Previous stable version: `{prev-version}`
|
|
180
|
+
|
|
181
|
+
Rollback command:
|
|
182
|
+
deploy --unit="{unit}" --env="{env}" --version="{prev-version}"
|
|
183
|
+
|
|
184
|
+
### Actions
|
|
185
|
+
|
|
186
|
+
1 - **rollback**: Rollback to previous version
|
|
187
|
+
2 - **investigate**: Investigate root cause
|
|
188
|
+
3 - **menu**: Return to operations menu
|
|
189
|
+
|
|
190
|
+
### Suggested Next Step
|
|
191
|
+
→ **rollback** - Restore `{prev-version}` immediately
|
|
192
|
+
|
|
193
|
+
**Type a number or press Enter for suggested action.**
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Human Validation Point
|
|
199
|
+
|
|
200
|
+
On success:
|
|
201
|
+
> "Verification passed for `{unit}` v`{version}` in {env}. All {n} checks passed. Ready to proceed to {next-action}?"
|
|
202
|
+
|
|
203
|
+
On failure:
|
|
204
|
+
> "⚠️ Verification FAILED for `{unit}` v`{version}`. {n} checks failed. Recommend rollback to `{prev-version}`. Proceed with rollback?"
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Transition
|
|
209
|
+
|
|
210
|
+
After verification:
|
|
211
|
+
|
|
212
|
+
- → **Monitor** (`.iris/skills/operations/monitor.md`) - if verified and final environment
|
|
213
|
+
- → **Deploy** (`.iris/skills/operations/deploy.md`) - to next environment if verified
|
|
214
|
+
- → **Rollback** - if verification fails (deploy previous version)
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Test Contract
|
|
219
|
+
|
|
220
|
+
```yaml
|
|
221
|
+
input: Unit name, environment, version
|
|
222
|
+
output: Verification report with health checks, smoke tests, metrics
|
|
223
|
+
checkpoints: 0 (automated validation only)
|
|
224
|
+
```
|
|
@@ -100,7 +100,7 @@ This bolt type implements Domain-Driven Design (DDD) methodology through five se
|
|
|
100
100
|
|
|
101
101
|
**Artifact**: `ddd-01-domain-model.md`
|
|
102
102
|
**Template**: `.iris/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md`
|
|
103
|
-
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory
|
|
103
|
+
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory-bank.yaml`
|
|
104
104
|
*(Default: `memory-bank/bolts/{bolt-id}/ddd-01-domain-model.md`)*
|
|
105
105
|
|
|
106
106
|
**Template Structure**:
|
|
@@ -180,7 +180,7 @@ created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
|
180
180
|
|
|
181
181
|
**Artifact**: `ddd-02-technical-design.md`
|
|
182
182
|
**Template**: `.iris/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md`
|
|
183
|
-
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory
|
|
183
|
+
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory-bank.yaml`
|
|
184
184
|
*(Default: `memory-bank/bolts/{bolt-id}/ddd-02-technical-design.md`)*
|
|
185
185
|
|
|
186
186
|
**Template Structure**:
|
|
@@ -421,7 +421,7 @@ src/{unit}/
|
|
|
421
421
|
|
|
422
422
|
**Artifact**: `ddd-03-test-report.md`
|
|
423
423
|
**Template**: `.iris/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md`
|
|
424
|
-
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory
|
|
424
|
+
**Location**: Path defined by `schema.bolts` in `.iris/aidlc/memory-bank.yaml`
|
|
425
425
|
*(Default: `memory-bank/bolts/{bolt-id}/ddd-03-test-report.md`)*
|
|
426
426
|
|
|
427
427
|
**Test Structure**:
|
|
@@ -71,7 +71,7 @@ This bolt type is for research and proof-of-concept work when there are unknowns
|
|
|
71
71
|
6 - **Evaluate trade-offs**: Compare options
|
|
72
72
|
|
|
73
73
|
**Artifact**: `spike-exploration.md`
|
|
74
|
-
**Location**: Path defined by `schema.units` in `.iris/aidlc/memory
|
|
74
|
+
**Location**: Path defined by `schema.units` in `.iris/aidlc/memory-bank.yaml`
|
|
75
75
|
*(Default: `{intents-path}/{intent}/units/{unit}/spike-exploration.md`)*
|
|
76
76
|
|
|
77
77
|
**Template Structure**:
|
|
@@ -133,7 +133,7 @@ time_box: {hours}
|
|
|
133
133
|
5 - **Present to team**: Share knowledge
|
|
134
134
|
|
|
135
135
|
**Artifact**: `spike-report.md`
|
|
136
|
-
**Location**: Path defined by `schema.units` in `.iris/aidlc/memory
|
|
136
|
+
**Location**: Path defined by `schema.units` in `.iris/aidlc/memory-bank.yaml`
|
|
137
137
|
*(Default: `{intents-path}/{intent}/units/{unit}/spike-report.md`)*
|
|
138
138
|
|
|
139
139
|
**Template Structure**:
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Construction Log Template
|
|
2
|
+
|
|
3
|
+
Use this template to track construction progress and replanning decisions for a unit.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Location
|
|
8
|
+
|
|
9
|
+
`{intents-path}/{intent}/units/{unit}/construction-log.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Template
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
---
|
|
17
|
+
unit: {UUU}-{unit-name}
|
|
18
|
+
intent: {NNN}-{intent-name}
|
|
19
|
+
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
20
|
+
last_updated: {YYYY-MM-DDTHH:MM:SSZ}
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Construction Log: {unit-name}
|
|
24
|
+
|
|
25
|
+
## Original Plan
|
|
26
|
+
|
|
27
|
+
**From Inception**: {number} bolts planned
|
|
28
|
+
**Planned Date**: {inception-date}
|
|
29
|
+
|
|
30
|
+
| Bolt ID | Stories | Type |
|
|
31
|
+
|---------|---------|------|
|
|
32
|
+
| {bolt-1} | {stories} | {type} |
|
|
33
|
+
| {bolt-2} | {stories} | {type} |
|
|
34
|
+
|
|
35
|
+
## Replanning History
|
|
36
|
+
|
|
37
|
+
| Date | Action | Change | Reason | Approved |
|
|
38
|
+
|------|--------|--------|--------|----------|
|
|
39
|
+
|
|
40
|
+
## Current Bolt Structure
|
|
41
|
+
|
|
42
|
+
| Bolt ID | Stories | Status | Changed |
|
|
43
|
+
|---------|---------|--------|---------|
|
|
44
|
+
| {bolt-1} | {stories} | ✅ completed | - |
|
|
45
|
+
| {bolt-2} | {stories} | ⏳ in-progress | - |
|
|
46
|
+
| {bolt-3} | {stories} | [ ] planned | Split from bolt-2 |
|
|
47
|
+
|
|
48
|
+
## Execution History
|
|
49
|
+
|
|
50
|
+
| Date | Bolt | Event | Details |
|
|
51
|
+
|------|------|-------|---------|
|
|
52
|
+
| {date} | {bolt-id} | started | Stage 1: {stage-name} |
|
|
53
|
+
| {date} | {bolt-id} | stage-complete | {stage} → {next-stage} |
|
|
54
|
+
| {date} | {bolt-id} | completed | All {n} stages done |
|
|
55
|
+
|
|
56
|
+
## Execution Summary
|
|
57
|
+
|
|
58
|
+
| Metric | Value |
|
|
59
|
+
|--------|-------|
|
|
60
|
+
| Original bolts planned | {n} |
|
|
61
|
+
| Current bolt count | {n} |
|
|
62
|
+
| Bolts completed | {n} |
|
|
63
|
+
| Bolts in progress | {n} |
|
|
64
|
+
| Bolts remaining | {n} |
|
|
65
|
+
| Replanning events | {n} |
|
|
66
|
+
|
|
67
|
+
## Notes
|
|
68
|
+
|
|
69
|
+
{Any additional observations or decisions made during construction}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## When to Create
|
|
75
|
+
|
|
76
|
+
Create this file when:
|
|
77
|
+
|
|
78
|
+
1. First bolt for a unit starts (initialize with original plan)
|
|
79
|
+
2. Any replanning action occurs (append, split, reorder)
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## When to Update
|
|
84
|
+
|
|
85
|
+
Update this file when:
|
|
86
|
+
|
|
87
|
+
1. A bolt starts (add to Execution History, update Current Bolt Structure)
|
|
88
|
+
2. A stage completes (add to Execution History)
|
|
89
|
+
3. A bolt completes (add to Execution History, update Current Bolt Structure, update Execution Summary)
|
|
90
|
+
4. A replanning action occurs (add to Replanning History, update Current Bolt Structure)
|
|
91
|
+
5. Construction completes (add final summary to Notes)
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Replanning History Actions
|
|
96
|
+
|
|
97
|
+
| Action | Description |
|
|
98
|
+
|--------|-------------|
|
|
99
|
+
| `append` | New bolt(s) added to plan |
|
|
100
|
+
| `split` | Existing bolt split into multiple |
|
|
101
|
+
| `reorder` | Execution order changed |
|
|
102
|
+
| `scope-change` | Stories added/removed from bolt |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Example Entries
|
|
107
|
+
|
|
108
|
+
### Replanning History Example
|
|
109
|
+
|
|
110
|
+
```markdown
|
|
111
|
+
| Date | Action | Change | Reason | Approved |
|
|
112
|
+
|------|--------|--------|--------|----------|
|
|
113
|
+
| 2025-12-07 | split | bolt-2 → bolt-2, bolt-3 | Scope too large for single bolt | Yes |
|
|
114
|
+
| 2025-12-08 | append | Added bolt-4 | New stories from feedback | Yes |
|
|
115
|
+
| 2025-12-09 | reorder | bolt-4 before bolt-3 | Dependency discovered | Yes |
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Execution History Example
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
| Date | Bolt | Event | Details |
|
|
122
|
+
|------|------|-------|---------|
|
|
123
|
+
| 2025-12-07 | bolt-auth-1 | started | Stage 1: Model |
|
|
124
|
+
| 2025-12-07 | bolt-auth-1 | stage-complete | Model → Design |
|
|
125
|
+
| 2025-12-07 | bolt-auth-1 | stage-complete | Design → Implement |
|
|
126
|
+
| 2025-12-08 | bolt-auth-1 | stage-complete | Implement → Test |
|
|
127
|
+
| 2025-12-08 | bolt-auth-1 | completed | All 4 stages done |
|
|
128
|
+
| 2025-12-08 | bolt-auth-2 | started | Stage 1: Model |
|
|
129
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Coding Standards
|
|
2
|
+
|
|
3
|
+
## General Principles
|
|
4
|
+
|
|
5
|
+
- {e.g., DRY, KISS, SOLID}
|
|
6
|
+
- {e.g., Clean Code practices}
|
|
7
|
+
|
|
8
|
+
## Naming Conventions
|
|
9
|
+
|
|
10
|
+
- Variables: {e.g., camelCase}
|
|
11
|
+
- Functions: {e.g., camelCase}
|
|
12
|
+
- Classes: {e.g., PascalCase}
|
|
13
|
+
- Files: {e.g., kebab-case}
|
|
14
|
+
|
|
15
|
+
## Formatting
|
|
16
|
+
|
|
17
|
+
- Indentation: {e.g., 2 spaces}
|
|
18
|
+
- Line Length: {e.g., 80 characters}
|
|
19
|
+
- Braces: {e.g., K&R style}
|
|
20
|
+
|
|
21
|
+
## Comments & Documentation
|
|
22
|
+
|
|
23
|
+
- {e.g., JSDoc for functions}
|
|
24
|
+
- {e.g., Explain WHY, not WHAT}
|
|
25
|
+
|
|
26
|
+
## Testing
|
|
27
|
+
|
|
28
|
+
- {e.g., Unit tests for all business logic}
|
|
29
|
+
- {e.g., Integration tests for API endpoints}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# System Architecture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
{High-level system description}
|
|
6
|
+
|
|
7
|
+
## Architecture Diagram
|
|
8
|
+
|
|
9
|
+
{Mermaid diagram or description}
|
|
10
|
+
|
|
11
|
+
## Components
|
|
12
|
+
|
|
13
|
+
- {Component 1}: {Purpose}
|
|
14
|
+
- {Component 2}: {Purpose}
|
|
15
|
+
|
|
16
|
+
## Data Flow
|
|
17
|
+
|
|
18
|
+
{How data moves through the system}
|
|
19
|
+
|
|
20
|
+
## Technology Stack
|
|
21
|
+
|
|
22
|
+
{Languages, frameworks, databases, etc.}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Tech Stack
|
|
2
|
+
|
|
3
|
+
## Core Technologies
|
|
4
|
+
|
|
5
|
+
- Language: {e.g., TypeScript, Python}
|
|
6
|
+
- Framework: {e.g., React, Next.js, Django}
|
|
7
|
+
- Database: {e.g., PostgreSQL, MongoDB}
|
|
8
|
+
|
|
9
|
+
## Infrastructure
|
|
10
|
+
|
|
11
|
+
- Cloud Provider: {e.g., AWS, GCP}
|
|
12
|
+
- Containerization: {e.g., Docker, Kubernetes}
|
|
13
|
+
- CI/CD: {e.g., GitHub Actions}
|
|
14
|
+
|
|
15
|
+
## Tools & Libraries
|
|
16
|
+
|
|
17
|
+
- Testing: {e.g., Jest, Pytest}
|
|
18
|
+
- Linting: {e.g., ESLint, Pylint}
|
|
19
|
+
- Documentation: {e.g., MkDocs, Storybook}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Inception Log Template
|
|
2
|
+
|
|
3
|
+
Use this template to track inception progress and decisions for an intent.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Location
|
|
8
|
+
|
|
9
|
+
`{intents-path}/{intent}/inception-log.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Template
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
---
|
|
17
|
+
intent: {NNN}-{intent-name}
|
|
18
|
+
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
19
|
+
completed: {YYYY-MM-DDTHH:MM:SSZ or null}
|
|
20
|
+
status: {in-progress | complete}
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Inception Log: {intent-name}
|
|
24
|
+
|
|
25
|
+
## Overview
|
|
26
|
+
|
|
27
|
+
**Intent**: {brief description}
|
|
28
|
+
**Type**: {green-field | brown-field | defect-fix | refactoring}
|
|
29
|
+
**Created**: {date}
|
|
30
|
+
|
|
31
|
+
## Artifacts Created
|
|
32
|
+
|
|
33
|
+
| Artifact | Status | File |
|
|
34
|
+
|----------|--------|------|
|
|
35
|
+
| Requirements | ✅ | requirements.md |
|
|
36
|
+
| System Context | ✅ | system-context.md |
|
|
37
|
+
| Units | ✅ | units/{unit-name}/unit-brief.md |
|
|
38
|
+
| Stories | ✅ | units/{unit-name}/stories/*.md |
|
|
39
|
+
| Bolt Plan | ✅ | memory-bank/bolts/bolt-*.md |
|
|
40
|
+
|
|
41
|
+
## Summary
|
|
42
|
+
|
|
43
|
+
| Metric | Count |
|
|
44
|
+
|--------|-------|
|
|
45
|
+
| Functional Requirements | {n} |
|
|
46
|
+
| Non-Functional Requirements | {n} |
|
|
47
|
+
| Units | {n} |
|
|
48
|
+
| Stories | {n} |
|
|
49
|
+
| Bolts Planned | {n} |
|
|
50
|
+
|
|
51
|
+
## Units Breakdown
|
|
52
|
+
|
|
53
|
+
| Unit | Stories | Bolts | Priority |
|
|
54
|
+
|------|---------|-------|----------|
|
|
55
|
+
| {unit-1} | {n} | {n} | Must |
|
|
56
|
+
| {unit-2} | {n} | {n} | Should |
|
|
57
|
+
|
|
58
|
+
## Decision Log
|
|
59
|
+
|
|
60
|
+
| Date | Decision | Rationale | Approved |
|
|
61
|
+
|------|----------|-----------|----------|
|
|
62
|
+
|
|
63
|
+
## Scope Changes
|
|
64
|
+
|
|
65
|
+
| Date | Change | Reason | Impact |
|
|
66
|
+
|------|--------|--------|--------|
|
|
67
|
+
|
|
68
|
+
## Ready for Construction
|
|
69
|
+
|
|
70
|
+
**Checklist**:
|
|
71
|
+
- [ ] All requirements documented
|
|
72
|
+
- [ ] System context defined
|
|
73
|
+
- [ ] Units decomposed
|
|
74
|
+
- [ ] Stories created for all units
|
|
75
|
+
- [ ] Bolts planned
|
|
76
|
+
- [ ] Human review complete
|
|
77
|
+
|
|
78
|
+
## Next Steps
|
|
79
|
+
|
|
80
|
+
1. Begin Construction Phase
|
|
81
|
+
2. Start with Unit: {first-unit}
|
|
82
|
+
3. Execute: `/iris-construction-agent --unit="{first-unit}"`
|
|
83
|
+
|
|
84
|
+
## Dependencies
|
|
85
|
+
|
|
86
|
+
{Execution order based on unit dependencies}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## When to Create
|
|
92
|
+
|
|
93
|
+
Create this file when:
|
|
94
|
+
|
|
95
|
+
1. Intent is created (intent-create skill)
|
|
96
|
+
2. Initialize with basic metadata and empty sections
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## When to Update
|
|
101
|
+
|
|
102
|
+
Update this file when:
|
|
103
|
+
|
|
104
|
+
1. An artifact is completed (update Artifacts Created table)
|
|
105
|
+
2. A decision is made during inception (add to Decision Log)
|
|
106
|
+
3. Scope changes (add to Scope Changes)
|
|
107
|
+
4. Inception completes (mark status complete, fill summary)
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Decision Log Examples
|
|
112
|
+
|
|
113
|
+
```markdown
|
|
114
|
+
## Decision Log
|
|
115
|
+
|
|
116
|
+
| Date | Decision | Rationale | Approved |
|
|
117
|
+
|------|----------|-----------|----------|
|
|
118
|
+
| 2025-12-07 | Split auth into 2 units | Separation of concerns | Yes |
|
|
119
|
+
| 2025-12-07 | Use JWT over sessions | Stateless API requirement | Yes |
|
|
120
|
+
| 2025-12-08 | Add MFA to scope | Security requirement from review | Yes |
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Scope Changes Examples
|
|
126
|
+
|
|
127
|
+
```markdown
|
|
128
|
+
## Scope Changes
|
|
129
|
+
|
|
130
|
+
| Date | Change | Reason | Impact |
|
|
131
|
+
|------|--------|--------|--------|
|
|
132
|
+
| 2025-12-08 | Added MFA stories | Security requirement | +2 stories, +1 bolt |
|
|
133
|
+
| 2025-12-09 | Removed social login | Out of scope for MVP | -3 stories, -1 bolt |
|
|
134
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Project Context
|
|
2
|
+
|
|
3
|
+
This directory contains project-level context and metadata.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
The `memory-bank/project/` directory stores information about your overall project that persists across all intents and units.
|
|
8
|
+
|
|
9
|
+
## Files to Create
|
|
10
|
+
|
|
11
|
+
- **project-brief.md**: High-level project overview, goals, and scope
|
|
12
|
+
- **tech-stack.md**: Technology choices and rationale
|
|
13
|
+
- **team.md**: Team structure and roles
|
|
14
|
+
- **conventions.md**: Coding standards, naming conventions, etc.
|
|
15
|
+
|
|
16
|
+
## Example: project-brief.md
|
|
17
|
+
|
|
18
|
+
```markdown
|
|
19
|
+
---
|
|
20
|
+
created: 2024-11-22
|
|
21
|
+
updated: 2024-11-22
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Project Brief
|
|
25
|
+
|
|
26
|
+
## Project Name
|
|
27
|
+
{Your project name}
|
|
28
|
+
|
|
29
|
+
## Overview
|
|
30
|
+
{Brief description of what this project does}
|
|
31
|
+
|
|
32
|
+
## Business Goals
|
|
33
|
+
- {Goal 1}
|
|
34
|
+
- {Goal 2}
|
|
35
|
+
|
|
36
|
+
## Target Users
|
|
37
|
+
{Who will use this system}
|
|
38
|
+
|
|
39
|
+
## Success Criteria
|
|
40
|
+
- {Measurable criterion 1}
|
|
41
|
+
- {Measurable criterion 2}
|
|
42
|
+
|
|
43
|
+
## Timeline
|
|
44
|
+
- Inception: {dates}
|
|
45
|
+
- Construction: {dates}
|
|
46
|
+
- Launch: {target date}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Getting Started
|
|
50
|
+
|
|
51
|
+
1. Create `project-brief.md` with your project overview
|
|
52
|
+
2. Document your tech stack in `tech-stack.md`
|
|
53
|
+
3. Add any other project-level context as needed
|
|
54
|
+
|
|
55
|
+
These files will be referenced by agents throughout the AI-DLC workflow.
|