project-iris 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +261 -94
- 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 +112 -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 +106 -33
- 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
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
# Bolt Type: Simple Construction
|
|
2
|
-
|
|
3
|
-
## Mandatory Output Rules (READ FIRST)
|
|
4
|
-
|
|
5
|
-
- 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
|
|
6
|
-
- ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
|
|
7
|
-
- ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending) 🚫 (blocked)
|
|
8
|
-
|
|
9
|
-
## Success Metrics
|
|
10
|
-
|
|
11
|
-
- ✅ Activities presented as numbered lists (not tables)
|
|
12
|
-
- ✅ Stage progress shown with status indicators
|
|
13
|
-
- ✅ Human checkpoints clearly marked
|
|
14
|
-
|
|
15
|
-
## Failure Modes
|
|
16
|
-
|
|
17
|
-
- ❌ Using ASCII table for activities
|
|
18
|
-
- ❌ Auto-advancing without human confirmation
|
|
19
|
-
- ❌ Skipping stages
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## ⛔ CRITICAL: Stage Execution Sequence
|
|
24
|
-
|
|
25
|
-
**Stages MUST be executed in this exact order:**
|
|
26
|
-
|
|
27
|
-
```text
|
|
28
|
-
Stage 1: Plan → Stage 2: Implement → Stage 3: Test
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Stage Overview:**
|
|
32
|
-
|
|
33
|
-
- ✅/[ ] **1. Plan** (Required) → `implementation-plan.md`
|
|
34
|
-
- ✅/[ ] **2. Implement** (Required) → Source code + `implementation-walkthrough.md`
|
|
35
|
-
- ✅/[ ] **3. Test** (Required) → Tests + `test-walkthrough.md`
|
|
36
|
-
|
|
37
|
-
**Rules**:
|
|
38
|
-
|
|
39
|
-
- Each stage MUST be completed before the next begins
|
|
40
|
-
- **⛔ Human validation is MANDATORY at each stage checkpoint - STOP and WAIT for approval**
|
|
41
|
-
- NEVER auto-advance to next stage without explicit user confirmation
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Metadata
|
|
46
|
-
|
|
47
|
-
```yaml
|
|
48
|
-
bolt_type: simple-construction-bolt
|
|
49
|
-
name: Simple Construction Bolt
|
|
50
|
-
description: Lightweight construction for UI, integrations, utilities, and non-DDD work
|
|
51
|
-
version: 1.0.0
|
|
52
|
-
suitable_for:
|
|
53
|
-
- Frontend pages and components
|
|
54
|
-
- Simple backend endpoints
|
|
55
|
-
- Integrations with external APIs
|
|
56
|
-
- Utilities and helper modules
|
|
57
|
-
- Scripts and automation
|
|
58
|
-
- CLI commands
|
|
59
|
-
stages_count: 3
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Overview
|
|
65
|
-
|
|
66
|
-
This bolt type provides a lightweight construction process for work that doesn't need full domain modeling. It's ideal for UI work, integrations, utilities, and any code where the design is straightforward.
|
|
67
|
-
|
|
68
|
-
**Best For**:
|
|
69
|
-
|
|
70
|
-
- Frontend pages, components, layouts
|
|
71
|
-
- Simple CRUD endpoints without complex business logic
|
|
72
|
-
- Third-party API integrations
|
|
73
|
-
- Utility functions and helpers
|
|
74
|
-
- CLI commands and scripts
|
|
75
|
-
- Configuration and setup tasks
|
|
76
|
-
|
|
77
|
-
**NOT For** (use `ddd-construction-bolt` instead):
|
|
78
|
-
|
|
79
|
-
- Complex domain logic with business rules
|
|
80
|
-
- Systems requiring bounded contexts
|
|
81
|
-
- Services with rich domain models
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## Stages
|
|
86
|
-
|
|
87
|
-
### Stage 1: Plan
|
|
88
|
-
|
|
89
|
-
**Objective**: Define what to build with clear requirements
|
|
90
|
-
|
|
91
|
-
**Duration**: Minutes to hours (typically 15-60 minutes)
|
|
92
|
-
|
|
93
|
-
**Activities**:
|
|
94
|
-
|
|
95
|
-
1 - **Review stories**: Understand what needs to be built
|
|
96
|
-
2 - **Define scope**: List specific deliverables
|
|
97
|
-
3 - **Identify dependencies**: External APIs, other units, libraries
|
|
98
|
-
4 - **Define acceptance criteria**: How will we know it's done?
|
|
99
|
-
5 - **Note technical approach**: High-level implementation notes
|
|
100
|
-
|
|
101
|
-
**Artifact**: `implementation-plan.md`
|
|
102
|
-
**Location**: `memory-bank/bolts/{bolt-id}/implementation-plan.md`
|
|
103
|
-
|
|
104
|
-
**Template Structure**:
|
|
105
|
-
|
|
106
|
-
```markdown
|
|
107
|
-
---
|
|
108
|
-
stage: plan
|
|
109
|
-
bolt: {bolt-id}
|
|
110
|
-
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## Implementation Plan: {unit-name}
|
|
114
|
-
|
|
115
|
-
### Objective
|
|
116
|
-
{What this bolt will accomplish}
|
|
117
|
-
|
|
118
|
-
### Deliverables
|
|
119
|
-
- {Deliverable 1}
|
|
120
|
-
- {Deliverable 2}
|
|
121
|
-
|
|
122
|
-
### Dependencies
|
|
123
|
-
- {Dependency 1}: {why needed}
|
|
124
|
-
|
|
125
|
-
### Technical Approach
|
|
126
|
-
{Brief notes on how to implement}
|
|
127
|
-
|
|
128
|
-
### Acceptance Criteria
|
|
129
|
-
- [ ] {Criterion 1}
|
|
130
|
-
- [ ] {Criterion 2}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Completion Criteria**:
|
|
134
|
-
|
|
135
|
-
- [ ] Stories reviewed and understood
|
|
136
|
-
- [ ] Deliverables clearly defined
|
|
137
|
-
- [ ] Dependencies identified
|
|
138
|
-
- [ ] Acceptance criteria documented
|
|
139
|
-
|
|
140
|
-
**⛔ HUMAN Checkpoint**: Present plan summary and **STOP**. Wait for user to confirm before proceeding to Stage 2.
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
### Stage 2: Implement
|
|
145
|
-
|
|
146
|
-
**Objective**: Write the code and document what was done
|
|
147
|
-
|
|
148
|
-
**Duration**: Hours (varies by complexity)
|
|
149
|
-
|
|
150
|
-
**Activities**:
|
|
151
|
-
|
|
152
|
-
1 - **Setup structure**: Create files and folders
|
|
153
|
-
2 - **Implement core functionality**: Build the main features
|
|
154
|
-
3 - **Handle edge cases**: Error handling, validation
|
|
155
|
-
4 - **Add documentation**: Code comments, JSDoc/docstrings
|
|
156
|
-
5 - **Run linting**: Ensure code style compliance
|
|
157
|
-
6 - **Document implementation**: Create implementation walkthrough
|
|
158
|
-
|
|
159
|
-
**Artifacts**:
|
|
160
|
-
|
|
161
|
-
- Source code - As defined in project structure (e.g., `src/`, `app/`, `pages/`)
|
|
162
|
-
- `implementation-walkthrough.md` - `memory-bank/bolts/{bolt-id}/implementation-walkthrough.md`
|
|
163
|
-
|
|
164
|
-
**Implementation Walkthrough Guidelines**:
|
|
165
|
-
|
|
166
|
-
⚠️ **CRITICAL RULES**:
|
|
167
|
-
|
|
168
|
-
- **NO CODE** in this document - only structure summaries and descriptions
|
|
169
|
-
- **USE CHECKMARKS** for all file entries (completed work)
|
|
170
|
-
- **BE CONSISTENT** - follow the template exactly
|
|
171
|
-
|
|
172
|
-
**Template**:
|
|
173
|
-
|
|
174
|
-
```markdown
|
|
175
|
-
---
|
|
176
|
-
stage: implement
|
|
177
|
-
bolt: {bolt-id}
|
|
178
|
-
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Implementation Walkthrough: {unit-name}
|
|
182
|
-
|
|
183
|
-
### Summary
|
|
184
|
-
|
|
185
|
-
{2-3 sentence overview of what was built - NO CODE}
|
|
186
|
-
|
|
187
|
-
### Structure Overview
|
|
188
|
-
|
|
189
|
-
{High-level description of the architecture/organization - NO CODE}
|
|
190
|
-
|
|
191
|
-
### Completed Work
|
|
192
|
-
|
|
193
|
-
- [x] `{path/to/file}` - {what this file does, not how}
|
|
194
|
-
- [x] `{path/to/file}` - {what this file does, not how}
|
|
195
|
-
- [x] `{path/to/file}` - {what this file does, not how}
|
|
196
|
-
|
|
197
|
-
### Key Decisions
|
|
198
|
-
|
|
199
|
-
- **{Decision}**: {Why this approach was chosen}
|
|
200
|
-
|
|
201
|
-
### Deviations from Plan
|
|
202
|
-
|
|
203
|
-
{Any changes from implementation-plan.md and why, or "None"}
|
|
204
|
-
|
|
205
|
-
### Dependencies Added
|
|
206
|
-
|
|
207
|
-
- [x] `{package}` - {why needed}
|
|
208
|
-
|
|
209
|
-
### Developer Notes
|
|
210
|
-
|
|
211
|
-
{Gotchas, tips, or context for future work - keep brief}
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
**What to Include**:
|
|
215
|
-
|
|
216
|
-
- ✅ File paths with brief purpose descriptions
|
|
217
|
-
- ✅ Architectural decisions and rationale
|
|
218
|
-
- ✅ Deviations from original plan
|
|
219
|
-
- ✅ High-level structure explanations
|
|
220
|
-
|
|
221
|
-
**What NOT to Include**:
|
|
222
|
-
|
|
223
|
-
- ❌ Code snippets or examples
|
|
224
|
-
- ❌ Implementation details (how it works internally)
|
|
225
|
-
- ❌ Line-by-line explanations
|
|
226
|
-
- ❌ API signatures or type definitions
|
|
227
|
-
|
|
228
|
-
**Completion Criteria**:
|
|
229
|
-
|
|
230
|
-
- [ ] All deliverables from plan implemented
|
|
231
|
-
- [ ] Code follows project coding standards
|
|
232
|
-
- [ ] Linting passes
|
|
233
|
-
- [ ] Code is documented
|
|
234
|
-
- [ ] Implementation walkthrough created
|
|
235
|
-
|
|
236
|
-
**⛔ HUMAN Checkpoint**: Present implementation summary and **STOP**. Wait for user to confirm before proceeding to Stage 3.
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
### Stage 3: Test
|
|
241
|
-
|
|
242
|
-
**Objective**: Verify the implementation works correctly
|
|
243
|
-
|
|
244
|
-
**Duration**: Minutes to hours (typically 30-120 minutes)
|
|
245
|
-
|
|
246
|
-
**Activities**:
|
|
247
|
-
|
|
248
|
-
1 - **Write unit tests**: Test individual functions/components
|
|
249
|
-
2 - **Write integration tests**: Test API endpoints or component interactions
|
|
250
|
-
3 - **Run test suite**: Execute all tests
|
|
251
|
-
4 - **Verify acceptance criteria**: Check against plan
|
|
252
|
-
5 - **Document results**: Create test report
|
|
253
|
-
|
|
254
|
-
**Artifact**: `test-walkthrough.md`
|
|
255
|
-
**Location**: `memory-bank/bolts/{bolt-id}/test-walkthrough.md`
|
|
256
|
-
|
|
257
|
-
**Template Structure**:
|
|
258
|
-
|
|
259
|
-
```markdown
|
|
260
|
-
---
|
|
261
|
-
stage: test
|
|
262
|
-
bolt: {bolt-id}
|
|
263
|
-
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
264
|
-
---
|
|
265
|
-
|
|
266
|
-
## Test Report: {unit-name}
|
|
267
|
-
|
|
268
|
-
### Summary
|
|
269
|
-
|
|
270
|
-
- **Tests**: {passed}/{total} passed
|
|
271
|
-
- **Coverage**: {percentage}%
|
|
272
|
-
|
|
273
|
-
### Test Files
|
|
274
|
-
|
|
275
|
-
- [x] `{path/to/test-file.test.ts}` - {what this test file covers}
|
|
276
|
-
- [x] `{path/to/another.test.ts}` - {what this test file covers}
|
|
277
|
-
|
|
278
|
-
### Acceptance Criteria Validation
|
|
279
|
-
|
|
280
|
-
- ✅/❌ **{Criterion}**: {Status}
|
|
281
|
-
|
|
282
|
-
### Issues Found
|
|
283
|
-
{Any issues discovered during testing}
|
|
284
|
-
|
|
285
|
-
### Notes
|
|
286
|
-
{Additional observations}
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
**Completion Criteria**:
|
|
290
|
-
|
|
291
|
-
- [ ] All tests passing
|
|
292
|
-
- [ ] Acceptance criteria verified
|
|
293
|
-
- [ ] Test report created
|
|
294
|
-
|
|
295
|
-
**⛔ HUMAN Checkpoint**: Present test report and **STOP**. Wait for user to confirm bolt completion.
|
|
296
|
-
|
|
297
|
-
---
|
|
298
|
-
|
|
299
|
-
## State Tracking
|
|
300
|
-
|
|
301
|
-
Bolt instance tracks progress:
|
|
302
|
-
|
|
303
|
-
```yaml
|
|
304
|
-
---
|
|
305
|
-
current_stage: implement
|
|
306
|
-
stages_completed:
|
|
307
|
-
- name: plan
|
|
308
|
-
completed: 2024-12-05T10:00:00Z
|
|
309
|
-
artifact: implementation-plan.md
|
|
310
|
-
status: in-progress
|
|
311
|
-
---
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
---
|
|
315
|
-
|
|
316
|
-
## Bolt Context Loading
|
|
317
|
-
|
|
318
|
-
For Stage 2 (Implement) and Stage 3 (Test), load all artifacts from the bolt folder:
|
|
319
|
-
|
|
320
|
-
**Location**: `memory-bank/bolts/{bolt-id}/`
|
|
321
|
-
|
|
322
|
-
**Load all files in this folder**, which may include:
|
|
323
|
-
|
|
324
|
-
- `bolt.md` - Bolt instance metadata
|
|
325
|
-
- `implementation-plan.md` - Plan from Stage 1
|
|
326
|
-
- `implementation-walkthrough.md` - Developer notes from Stage 2 (if exists)
|
|
327
|
-
|
|
328
|
-
This ensures later stages have full context from earlier work.
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
## Usage by Construction Agent
|
|
333
|
-
|
|
334
|
-
1. **Load bolt instance** from path defined by `schema.bolts`
|
|
335
|
-
2. **Read `bolt_type` field** (e.g., `simple-construction-bolt`)
|
|
336
|
-
3. **Load this definition** from `.iris/aidlc/templates/construction/bolt-types/`
|
|
337
|
-
4. **Check `current_stage`** in bolt instance
|
|
338
|
-
5. **Load bolt folder artifacts** if stage requires previous context
|
|
339
|
-
6. **Execute stage** following activities defined here
|
|
340
|
-
7. **Create artifacts** as specified
|
|
341
|
-
8. **⛔ STOP and present completion summary** - DO NOT continue automatically
|
|
342
|
-
9. **Wait for user confirmation** - user must explicitly approve
|
|
343
|
-
10. **Only after approval**: Update bolt state and advance to next stage
|
|
344
|
-
|
|
345
|
-
**⛔ CRITICAL**: Steps 8-9 are MANDATORY. Never skip the human checkpoint. Never auto-advance.
|
|
346
|
-
|
|
347
|
-
The Construction Agent is **bolt-type agnostic** - it reads stages from this file and executes them.
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
# Requirements Template
|
|
2
|
-
|
|
3
|
-
Use this template when documenting requirements for an intent.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Frontmatter
|
|
8
|
-
|
|
9
|
-
```yaml
|
|
10
|
-
---
|
|
11
|
-
intent: {NNN}-{intent-name}
|
|
12
|
-
phase: inception
|
|
13
|
-
status: draft|in-progress|complete
|
|
14
|
-
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
15
|
-
updated: {YYYY-MM-DDTHH:MM:SSZ}
|
|
16
|
-
---
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Note: All naming is derived from folder names. No prefix field needed.
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Content
|
|
24
|
-
|
|
25
|
-
```markdown
|
|
26
|
-
# Requirements: {Intent Name}
|
|
27
|
-
|
|
28
|
-
## Intent Overview
|
|
29
|
-
|
|
30
|
-
{High-level description of what this intent aims to achieve}
|
|
31
|
-
|
|
32
|
-
## Business Goals
|
|
33
|
-
|
|
34
|
-
| Goal | Success Metric | Priority |
|
|
35
|
-
|------|----------------|----------|
|
|
36
|
-
| {Goal 1} | {How to measure success} | Must |
|
|
37
|
-
| {Goal 2} | {How to measure success} | Should |
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## Functional Requirements
|
|
42
|
-
|
|
43
|
-
### FR-1: {Requirement Title}
|
|
44
|
-
- **Description**: {What the system must do}
|
|
45
|
-
- **Acceptance Criteria**: {Measurable conditions for success}
|
|
46
|
-
- **Priority**: Must/Should/Could
|
|
47
|
-
- **Related Stories**: {Story IDs when defined}
|
|
48
|
-
|
|
49
|
-
### FR-2: {Requirement Title}
|
|
50
|
-
- **Description**: {What the system must do}
|
|
51
|
-
- **Acceptance Criteria**: {Measurable conditions for success}
|
|
52
|
-
- **Priority**: Must/Should/Could
|
|
53
|
-
- **Related Stories**: {Story IDs when defined}
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## Non-Functional Requirements
|
|
58
|
-
|
|
59
|
-
### Performance
|
|
60
|
-
| Requirement | Metric | Target |
|
|
61
|
-
|-------------|--------|--------|
|
|
62
|
-
| Response Time | p95 latency | < 200ms |
|
|
63
|
-
| Throughput | Requests/second | > 1000 |
|
|
64
|
-
|
|
65
|
-
### Scalability
|
|
66
|
-
| Requirement | Metric | Target |
|
|
67
|
-
|-------------|--------|--------|
|
|
68
|
-
| Concurrent Users | Active sessions | 10,000 |
|
|
69
|
-
| Data Volume | Records | 10M+ |
|
|
70
|
-
|
|
71
|
-
### Security
|
|
72
|
-
| Requirement | Standard | Notes |
|
|
73
|
-
|-------------|----------|-------|
|
|
74
|
-
| Authentication | OAuth 2.0 / JWT | {details} |
|
|
75
|
-
| Authorization | RBAC | {details} |
|
|
76
|
-
| Data Protection | AES-256 | {details} |
|
|
77
|
-
|
|
78
|
-
### Reliability
|
|
79
|
-
| Requirement | Metric | Target |
|
|
80
|
-
|-------------|--------|--------|
|
|
81
|
-
| Availability | Uptime | 99.9% |
|
|
82
|
-
| Recovery | RTO | < 1 hour |
|
|
83
|
-
|
|
84
|
-
### Compliance
|
|
85
|
-
| Requirement | Standard | Notes |
|
|
86
|
-
|-------------|----------|-------|
|
|
87
|
-
| {Regulation} | {Standard} | {details} |
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Constraints
|
|
92
|
-
|
|
93
|
-
### Technical Constraints
|
|
94
|
-
|
|
95
|
-
**Project-wide standards**: Required standards will be loaded from memory-bank standards folder by Construction Agent
|
|
96
|
-
|
|
97
|
-
**Intent-specific constraints** (only list constraints unique to this feature):
|
|
98
|
-
- {Constraint specific to this intent, not covered by standards}
|
|
99
|
-
|
|
100
|
-
### Business Constraints
|
|
101
|
-
- {Constraint 1: e.g., budget limitation}
|
|
102
|
-
- {Constraint 2: e.g., timeline requirement}
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Assumptions
|
|
107
|
-
|
|
108
|
-
| Assumption | Risk if Invalid | Mitigation |
|
|
109
|
-
|------------|-----------------|------------|
|
|
110
|
-
| {Assumption 1} | {What happens if wrong} | {How to mitigate} |
|
|
111
|
-
| {Assumption 2} | {What happens if wrong} | {How to mitigate} |
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Open Questions
|
|
116
|
-
|
|
117
|
-
| Question | Owner | Due Date | Resolution |
|
|
118
|
-
|----------|-------|----------|------------|
|
|
119
|
-
| {Question 1} | {Who} | {When} | {Pending/Resolved} |
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## Priority Definitions
|
|
125
|
-
|
|
126
|
-
| Priority | Meaning |
|
|
127
|
-
|----------|---------|
|
|
128
|
-
| **Must** | Required for MVP, system unusable without |
|
|
129
|
-
| **Should** | Important, significant value but not blocking |
|
|
130
|
-
| **Could** | Nice to have, enhances experience |
|
|
131
|
-
| **Won't** | Out of scope for this intent |
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
## Requirement Quality Checklist
|
|
136
|
-
|
|
137
|
-
Before marking requirements complete, verify:
|
|
138
|
-
|
|
139
|
-
- [ ] All requirements are testable (measurable, not vague)
|
|
140
|
-
- [ ] Acceptance criteria are binary (pass/fail)
|
|
141
|
-
- [ ] NFRs have specific metrics and targets
|
|
142
|
-
- [ ] Dependencies are identified
|
|
143
|
-
- [ ] Constraints are documented
|
|
144
|
-
- [ ] Assumptions are stated and risks assessed
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
intent: {NNN}-{intent-name}
|
|
3
|
-
phase: inception
|
|
4
|
-
status: stories-created
|
|
5
|
-
updated: {YYYY-MM-DDTHH:MM:SSZ}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# {Intent Name} - Stories
|
|
9
|
-
|
|
10
|
-
## User Stories
|
|
11
|
-
|
|
12
|
-
### Story-1: {Title}
|
|
13
|
-
|
|
14
|
-
**As a** {user type}
|
|
15
|
-
**I want** {goal}
|
|
16
|
-
**So that** {benefit}
|
|
17
|
-
|
|
18
|
-
**Acceptance Criteria**:
|
|
19
|
-
|
|
20
|
-
- [ ] {Criterion 1}
|
|
21
|
-
- [ ] {Criterion 2}
|
|
22
|
-
|
|
23
|
-
**Priority**: High/Medium/Low
|
|
24
|
-
**Estimate**: {T-shirt size: S/M/L/XL}
|
|
25
|
-
|
|
26
|
-
### Story-2: {Title}
|
|
27
|
-
|
|
28
|
-
...
|
|
29
|
-
|
|
30
|
-
## Technical Stories
|
|
31
|
-
|
|
32
|
-
### Tech-Story-1: {Title}
|
|
33
|
-
|
|
34
|
-
**Description**: {What needs to be done technically}
|
|
35
|
-
**Rationale**: {Why this is needed}
|
|
36
|
-
**Acceptance Criteria**:
|
|
37
|
-
|
|
38
|
-
- [ ] {Criterion}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# Story Template
|
|
2
|
-
|
|
3
|
-
Use this template when creating individual story files during story creation.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Frontmatter
|
|
8
|
-
|
|
9
|
-
```yaml
|
|
10
|
-
---
|
|
11
|
-
id: {SSS}-{title-slug}
|
|
12
|
-
unit: {UUU}-{unit-name}
|
|
13
|
-
intent: {NNN}-{intent-name}
|
|
14
|
-
status: draft
|
|
15
|
-
priority: must|should|could
|
|
16
|
-
created: {YYYY-MM-DDTHH:MM:SSZ}
|
|
17
|
-
assigned_bolt: null
|
|
18
|
-
implemented: false
|
|
19
|
-
---
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Content
|
|
25
|
-
|
|
26
|
-
```markdown
|
|
27
|
-
# Story: {SSS}-{title-slug}
|
|
28
|
-
|
|
29
|
-
## User Story
|
|
30
|
-
|
|
31
|
-
**As a** {user role}
|
|
32
|
-
**I want** {goal/action}
|
|
33
|
-
**So that** {benefit/reason}
|
|
34
|
-
|
|
35
|
-
## Acceptance Criteria
|
|
36
|
-
|
|
37
|
-
- [ ] **Given** {precondition}, **When** {action}, **Then** {expected outcome}
|
|
38
|
-
- [ ] **Given** {precondition}, **When** {action}, **Then** {expected outcome}
|
|
39
|
-
- [ ] **Given** {precondition}, **When** {action}, **Then** {expected outcome}
|
|
40
|
-
|
|
41
|
-
## Technical Notes
|
|
42
|
-
|
|
43
|
-
{Implementation hints, constraints, or considerations}
|
|
44
|
-
|
|
45
|
-
## Dependencies
|
|
46
|
-
|
|
47
|
-
### Requires
|
|
48
|
-
- {Other stories this depends on, or "None"}
|
|
49
|
-
|
|
50
|
-
### Enables
|
|
51
|
-
- {Stories that depend on this, or "None"}
|
|
52
|
-
|
|
53
|
-
## Edge Cases
|
|
54
|
-
|
|
55
|
-
| Scenario | Expected Behavior |
|
|
56
|
-
|----------|-------------------|
|
|
57
|
-
| {edge case 1} | {behavior} |
|
|
58
|
-
| {edge case 2} | {behavior} |
|
|
59
|
-
|
|
60
|
-
## Out of Scope
|
|
61
|
-
|
|
62
|
-
- {What this story does NOT cover}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Priority Levels
|
|
68
|
-
|
|
69
|
-
| Priority | Meaning | Criteria |
|
|
70
|
-
|----------|---------|----------|
|
|
71
|
-
| `must` | Required for MVP | System unusable without this |
|
|
72
|
-
| `should` | Important | Significant value, not blocking |
|
|
73
|
-
| `could` | Nice to have | Enhances experience |
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## Status Values
|
|
78
|
-
|
|
79
|
-
| Status | Meaning |
|
|
80
|
-
|--------|---------|
|
|
81
|
-
| `draft` | Story written, needs review |
|
|
82
|
-
| `ready` | Reviewed, ready for bolt |
|
|
83
|
-
| `in-progress` | Being implemented in a bolt |
|
|
84
|
-
| `implemented` | Code complete |
|
|
85
|
-
| `tested` | Tests passing |
|
|
86
|
-
| `done` | All acceptance criteria met |
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## Example
|
|
91
|
-
|
|
92
|
-
```yaml
|
|
93
|
-
---
|
|
94
|
-
id: 001-user-signup
|
|
95
|
-
unit: 001-auth-service
|
|
96
|
-
intent: 001-user-authentication
|
|
97
|
-
status: ready
|
|
98
|
-
priority: must
|
|
99
|
-
created: 2024-12-05T10:00:00Z
|
|
100
|
-
assigned_bolt: 001-auth-service
|
|
101
|
-
implemented: false
|
|
102
|
-
---
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
```markdown
|
|
106
|
-
# Story: 001-user-signup
|
|
107
|
-
|
|
108
|
-
## User Story
|
|
109
|
-
|
|
110
|
-
**As a** new user
|
|
111
|
-
**I want** to register with my email and password
|
|
112
|
-
**So that** I can access the application
|
|
113
|
-
|
|
114
|
-
## Acceptance Criteria
|
|
115
|
-
|
|
116
|
-
- [ ] **Given** I am on the registration page, **When** I enter valid email and password, **Then** my account is created and I receive a confirmation email
|
|
117
|
-
- [ ] **Given** I enter an email that already exists, **When** I submit registration, **Then** I see an error message "Email already registered"
|
|
118
|
-
- [ ] **Given** I enter a password less than 8 characters, **When** I submit, **Then** I see validation error
|
|
119
|
-
|
|
120
|
-
## Technical Notes
|
|
121
|
-
|
|
122
|
-
- Password must be hashed with bcrypt (cost factor 12)
|
|
123
|
-
- Email validation should use RFC 5322 compliant regex
|
|
124
|
-
- Rate limit registration to 5 attempts per IP per hour
|
|
125
|
-
|
|
126
|
-
## Dependencies
|
|
127
|
-
|
|
128
|
-
### Requires
|
|
129
|
-
- None (first story)
|
|
130
|
-
|
|
131
|
-
### Enables
|
|
132
|
-
- 002-user-login (User login)
|
|
133
|
-
- 003-email-verification (Email verification)
|
|
134
|
-
|
|
135
|
-
## Edge Cases
|
|
136
|
-
|
|
137
|
-
| Scenario | Expected Behavior |
|
|
138
|
-
|----------|-------------------|
|
|
139
|
-
| SQL injection in email | Safely escaped, validation fails |
|
|
140
|
-
| Very long email (255+ chars) | Validation error |
|
|
141
|
-
| Unicode in password | Allowed, properly encoded |
|
|
142
|
-
|
|
143
|
-
## Out of Scope
|
|
144
|
-
|
|
145
|
-
- Social login (OAuth) - separate story
|
|
146
|
-
- Password reset - separate story
|
|
147
|
-
```
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
intent: {NNN}-{intent-name}
|
|
3
|
-
phase: inception
|
|
4
|
-
status: context-defined
|
|
5
|
-
updated: {YYYY-MM-DDTHH:MM:SSZ}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# {Intent Name} - System Context
|
|
9
|
-
|
|
10
|
-
## System Overview
|
|
11
|
-
|
|
12
|
-
{High-level description of what we are building}
|
|
13
|
-
|
|
14
|
-
## Context Diagram
|
|
15
|
-
|
|
16
|
-
{Mermaid diagram showing System, Users, and External Systems}
|
|
17
|
-
|
|
18
|
-
## External Integrations
|
|
19
|
-
|
|
20
|
-
- **System A**: {Purpose of integration}
|
|
21
|
-
- **System B**: {Purpose of integration}
|
|
22
|
-
|
|
23
|
-
## High-Level Constraints
|
|
24
|
-
|
|
25
|
-
- {e.g., Must run on AWS, Must use existing Auth provider}
|
|
26
|
-
|
|
27
|
-
## Key NFR Goals
|
|
28
|
-
|
|
29
|
-
- {High-level performance/security goals to guide construction}
|