project-iris 0.0.16 → 0.0.17
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/flows/aidlc/agents/inception-agent.md +23 -12
- package/flows/aidlc/memory-bank.yaml +3 -0
- package/flows/aidlc/skills/construction/bolt-start.md +4 -0
- package/flows/aidlc/skills/inception/bolt-plan.md +2 -1
- package/flows/aidlc/skills/inception/context.md +2 -1
- package/flows/aidlc/skills/inception/navigator.md +13 -8
- package/flows/aidlc/skills/inception/requirements.md +444 -97
- package/flows/aidlc/skills/inception/review.md +75 -11
- package/flows/aidlc/skills/inception/risks.md +541 -0
- package/flows/aidlc/skills/inception/story-create.md +2 -1
- package/flows/aidlc/skills/inception/units.md +2 -1
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +97 -15
- package/package.json +1 -1
|
@@ -4,26 +4,46 @@
|
|
|
4
4
|
|
|
5
5
|
## Mandatory Output Rules (READ FIRST)
|
|
6
6
|
|
|
7
|
+
### General Rules
|
|
7
8
|
- 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
|
|
8
9
|
- ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
|
|
9
10
|
- ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending)
|
|
10
11
|
- ✅ **ALWAYS** show progress tracker at checkpoint moments
|
|
11
|
-
- ✅ **ALWAYS**
|
|
12
|
-
-
|
|
12
|
+
- ✅ **ALWAYS** ask clarifying questions BEFORE generating anything
|
|
13
|
+
- ✅ **ALWAYS** present FULL requirements at review (no summaries)
|
|
14
|
+
- 🛑 **STOP** at each checkpoint - wait for user response
|
|
15
|
+
|
|
16
|
+
### Functional Requirements Rules
|
|
17
|
+
- ✅ **ALWAYS** start with user/goal clarification before listing FRs
|
|
18
|
+
- ✅ **ALWAYS** include User Story format: "As a {user}, I want {action} so that {benefit}"
|
|
19
|
+
- ✅ **ALWAYS** include testable Acceptance Criteria (binary pass/fail)
|
|
20
|
+
- ✅ **ALWAYS** assign Priority (Must/Should/Could)
|
|
21
|
+
- ✅ **ALWAYS** identify dependencies between FRs
|
|
22
|
+
|
|
23
|
+
### Non-Functional Requirements Rules
|
|
24
|
+
- ✅ **ALWAYS** walk through ALL 5 NFR categories (Performance, Scalability, Security, Reliability, Compliance)
|
|
25
|
+
- ✅ **ALWAYS** ensure NFRs have measurable metrics (not vague)
|
|
26
|
+
- ✅ **ALWAYS** define SLOs for critical requirements
|
|
27
|
+
- ✅ **ALWAYS** document trade-offs when NFRs conflict
|
|
13
28
|
|
|
14
29
|
## Success Metrics
|
|
15
30
|
|
|
16
31
|
- ✅ Clarifying questions asked before generating
|
|
17
|
-
- ✅
|
|
18
|
-
- ✅
|
|
19
|
-
- ✅
|
|
32
|
+
- ✅ Each FR has: User Story, Acceptance Criteria, Priority, Dependencies
|
|
33
|
+
- ✅ All 5 NFR categories addressed
|
|
34
|
+
- ✅ Each NFR has: Category, Requirement, Metric, Target
|
|
35
|
+
- ✅ SLOs defined for critical requirements
|
|
36
|
+
- ✅ Trade-offs documented when requirements conflict
|
|
20
37
|
|
|
21
38
|
## Failure Modes
|
|
22
39
|
|
|
23
|
-
- ❌ Using ASCII table for checkpoints
|
|
24
40
|
- ❌ Generating requirements without asking questions first
|
|
25
|
-
- ❌
|
|
26
|
-
- ❌
|
|
41
|
+
- ❌ FRs without testable acceptance criteria
|
|
42
|
+
- ❌ FRs without user story format
|
|
43
|
+
- ❌ Vague NFRs without metrics (e.g., "must be fast", "must be secure")
|
|
44
|
+
- ❌ Skipping NFR categories without explicit user confirmation
|
|
45
|
+
- ❌ Summarizing at review instead of showing full details
|
|
46
|
+
- ❌ Not documenting trade-offs between conflicting requirements
|
|
27
47
|
|
|
28
48
|
---
|
|
29
49
|
|
|
@@ -41,18 +61,17 @@ Show at start of this skill:
|
|
|
41
61
|
|
|
42
62
|
---
|
|
43
63
|
|
|
44
|
-
## Checkpoints
|
|
64
|
+
## Checkpoints
|
|
45
65
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
| Checkpoint 2 | Requirements review | User approval |
|
|
66
|
+
- **Checkpoint 1**: Clarifying questions for Functional Requirements
|
|
67
|
+
- **Checkpoint 2**: NFR category discovery (5 categories)
|
|
68
|
+
- **Checkpoint 3**: Full requirements review and approval
|
|
50
69
|
|
|
51
70
|
---
|
|
52
71
|
|
|
53
72
|
## Goal
|
|
54
73
|
|
|
55
|
-
Elicit, analyze, and document functional and non-functional requirements through structured inquiry.
|
|
74
|
+
Elicit, analyze, and document functional and non-functional requirements through structured inquiry, following AI-DLC's comprehensive approach.
|
|
56
75
|
|
|
57
76
|
---
|
|
58
77
|
|
|
@@ -68,45 +87,267 @@ Elicit, analyze, and document functional and non-functional requirements through
|
|
|
68
87
|
|
|
69
88
|
## Process
|
|
70
89
|
|
|
71
|
-
### Step 1:
|
|
90
|
+
### Step 1: Functional Requirements Discovery
|
|
72
91
|
|
|
73
|
-
**Checkpoint 1**:
|
|
92
|
+
**Checkpoint 1**: Ask clarifying questions BEFORE generating anything.
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## Functional Requirements Discovery
|
|
74
96
|
|
|
75
|
-
```text
|
|
76
97
|
Before I generate requirements, I need to understand:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
|
|
99
|
+
### Users & Goals
|
|
100
|
+
1. Who are the primary users of this feature?
|
|
101
|
+
2. What problem does this solve for them?
|
|
102
|
+
3. What key outcomes/success metrics matter?
|
|
103
|
+
|
|
104
|
+
### Scope & Boundaries
|
|
105
|
+
4. What are the main user flows/actions?
|
|
106
|
+
5. What is explicitly OUT of scope?
|
|
107
|
+
|
|
108
|
+
### Constraints
|
|
109
|
+
6. Any regulatory/compliance requirements?
|
|
110
|
+
7. Any technical constraints or dependencies?
|
|
111
|
+
8. Timeline or budget constraints?
|
|
112
|
+
|
|
113
|
+
### Concerns
|
|
114
|
+
9. What concerns you most about this feature?
|
|
115
|
+
10. Any known risks or unknowns?
|
|
116
|
+
|
|
117
|
+
Please answer these questions so I can generate accurate requirements.
|
|
82
118
|
```
|
|
83
119
|
|
|
84
120
|
**Wait for user response.**
|
|
85
121
|
|
|
86
122
|
---
|
|
87
123
|
|
|
88
|
-
### Step 2: Generate Requirements
|
|
124
|
+
### Step 2: Generate Functional Requirements
|
|
125
|
+
|
|
126
|
+
After user answers, generate FRs covering:
|
|
127
|
+
|
|
128
|
+
- **Core Functionality**: Main user flows from answers
|
|
129
|
+
- **Data Requirements**: What data is created, stored, retrieved
|
|
130
|
+
- **Integration Points**: External systems, APIs
|
|
131
|
+
- **Error Handling**: Edge cases, failure scenarios
|
|
132
|
+
- **Business Rules**: Validation, constraints
|
|
133
|
+
|
|
134
|
+
**Structure each FR as:**
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
### FR-{N}: {Title}
|
|
138
|
+
- **User Story**: As a {user}, I want {action} so that {benefit}
|
|
139
|
+
- **Description**: {Detailed explanation of what the system must do}
|
|
140
|
+
- **Acceptance Criteria**:
|
|
141
|
+
- [ ] {Testable criterion 1 - binary pass/fail}
|
|
142
|
+
- [ ] {Testable criterion 2 - binary pass/fail}
|
|
143
|
+
- [ ] {Testable criterion 3 - binary pass/fail}
|
|
144
|
+
- **Priority**: Must/Should/Could
|
|
145
|
+
- **Dependencies**: {Other FRs, external systems, or "None"}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### Step 3: NFR Category Discovery
|
|
151
|
+
|
|
152
|
+
**Checkpoint 2**: Walk through each NFR category with targeted questions.
|
|
153
|
+
|
|
154
|
+
Present each category one at a time:
|
|
155
|
+
|
|
156
|
+
#### Category 1: Performance
|
|
157
|
+
|
|
158
|
+
```markdown
|
|
159
|
+
## NFR Category 1/5: Performance
|
|
160
|
+
|
|
161
|
+
1. **Response Time**: What's acceptable for main operations?
|
|
162
|
+
- 1 - Fast (< 100ms) - Real-time feel
|
|
163
|
+
- 2 - Standard (< 500ms) - Typical web app
|
|
164
|
+
- 3 - Tolerant (< 2s) - Complex operations
|
|
165
|
+
- 4 - Specify custom target
|
|
166
|
+
|
|
167
|
+
2. **Throughput**: Expected request volume?
|
|
168
|
+
- Requests per second: ___
|
|
169
|
+
- Peak vs normal ratio: ___
|
|
170
|
+
|
|
171
|
+
3. **Latency-sensitive operations**: Any operations needing special attention?
|
|
172
|
+
|
|
173
|
+
Your answers (or 'skip' if not applicable):
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Wait for response, then continue to next category.**
|
|
177
|
+
|
|
178
|
+
#### Category 2: Scalability
|
|
179
|
+
|
|
180
|
+
```markdown
|
|
181
|
+
## NFR Category 2/5: Scalability
|
|
182
|
+
|
|
183
|
+
1. **Current Load**:
|
|
184
|
+
- Expected daily active users: ___
|
|
185
|
+
- Peak concurrent users: ___
|
|
186
|
+
- Data volume (records): ___
|
|
187
|
+
|
|
188
|
+
2. **Growth** (next 12 months):
|
|
189
|
+
- 1 - Low (< 2x growth)
|
|
190
|
+
- 2 - Medium (2-5x growth)
|
|
191
|
+
- 3 - High (5-10x growth)
|
|
192
|
+
- 4 - Hyper (> 10x growth)
|
|
193
|
+
|
|
194
|
+
3. **Scaling Strategy**:
|
|
195
|
+
- 1 - Horizontal (add instances)
|
|
196
|
+
- 2 - Vertical (larger instances)
|
|
197
|
+
- 3 - Auto-scaling (dynamic)
|
|
198
|
+
- 4 - Need recommendation
|
|
199
|
+
|
|
200
|
+
Your answers:
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**Wait for response.**
|
|
204
|
+
|
|
205
|
+
#### Category 3: Security
|
|
206
|
+
|
|
207
|
+
```markdown
|
|
208
|
+
## NFR Category 3/5: Security
|
|
209
|
+
|
|
210
|
+
1. **Authentication**:
|
|
211
|
+
- 1 - OAuth 2.0 / OIDC (social/enterprise SSO)
|
|
212
|
+
- 2 - JWT (stateless tokens)
|
|
213
|
+
- 3 - Session-based (traditional)
|
|
214
|
+
- 4 - API Keys (service-to-service)
|
|
215
|
+
- 5 - None (public access)
|
|
216
|
+
- 6 - Inherit from project standards
|
|
217
|
+
|
|
218
|
+
2. **Authorization**:
|
|
219
|
+
- 1 - RBAC (role-based)
|
|
220
|
+
- 2 - ABAC (attribute-based)
|
|
221
|
+
- 3 - Simple (admin/user)
|
|
222
|
+
- 4 - None needed
|
|
223
|
+
|
|
224
|
+
3. **Data Sensitivity**:
|
|
225
|
+
- 1 - Public (no sensitive data)
|
|
226
|
+
- 2 - Internal (business data)
|
|
227
|
+
- 3 - Confidential (PII, financial)
|
|
228
|
+
- 4 - Regulated (HIPAA, PCI-DSS)
|
|
229
|
+
|
|
230
|
+
4. **Encryption**:
|
|
231
|
+
- At rest required? (yes/no)
|
|
232
|
+
- In transit required? (yes/no, default: yes)
|
|
233
|
+
|
|
234
|
+
Your answers:
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Wait for response.**
|
|
238
|
+
|
|
239
|
+
#### Category 4: Reliability
|
|
240
|
+
|
|
241
|
+
```markdown
|
|
242
|
+
## NFR Category 4/5: Reliability
|
|
243
|
+
|
|
244
|
+
1. **Availability Target**:
|
|
245
|
+
- 1 - 99.0% (~3.6 days downtime/year) - Internal tools
|
|
246
|
+
- 2 - 99.9% (~8.7 hours/year) - Standard apps
|
|
247
|
+
- 3 - 99.95% (~4.4 hours/year) - Business critical
|
|
248
|
+
- 4 - 99.99% (~52 min/year) - Mission critical
|
|
249
|
+
|
|
250
|
+
2. **Recovery**:
|
|
251
|
+
- RTO (time to recover): ___
|
|
252
|
+
- RPO (acceptable data loss): ___
|
|
253
|
+
|
|
254
|
+
3. **Failure Handling**:
|
|
255
|
+
- Graceful degradation needed? (yes/no)
|
|
256
|
+
- Which features can degrade?
|
|
257
|
+
|
|
258
|
+
4. **Backup**:
|
|
259
|
+
- Frequency: ___
|
|
260
|
+
- Retention period: ___
|
|
261
|
+
|
|
262
|
+
Your answers:
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**Wait for response.**
|
|
266
|
+
|
|
267
|
+
#### Category 5: Compliance
|
|
268
|
+
|
|
269
|
+
```markdown
|
|
270
|
+
## NFR Category 5/5: Compliance
|
|
271
|
+
|
|
272
|
+
1. **Regulatory Requirements** (select all that apply):
|
|
273
|
+
- 1 - GDPR (EU data protection)
|
|
274
|
+
- 2 - HIPAA (healthcare - US)
|
|
275
|
+
- 3 - PCI-DSS (payment cards)
|
|
276
|
+
- 4 - SOC 2 (service controls)
|
|
277
|
+
- 5 - SOX (financial - US)
|
|
278
|
+
- 6 - None specific
|
|
279
|
+
- 7 - Other: ___
|
|
280
|
+
|
|
281
|
+
2. **Audit Requirements**:
|
|
282
|
+
- Audit logging needed? (yes/no)
|
|
283
|
+
- Log retention period: ___
|
|
284
|
+
- Immutable logs required? (yes/no)
|
|
285
|
+
|
|
286
|
+
3. **Data Residency**:
|
|
287
|
+
- Geographic restrictions? (yes/no)
|
|
288
|
+
- Allowed regions: ___
|
|
289
|
+
|
|
290
|
+
Your answers:
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**Wait for response.**
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
### Step 4: Define SLOs
|
|
298
|
+
|
|
299
|
+
Based on NFR answers, define Service Level Objectives:
|
|
300
|
+
|
|
301
|
+
```markdown
|
|
302
|
+
## Service Level Objectives (SLOs)
|
|
303
|
+
|
|
304
|
+
Based on your requirements, here are the proposed SLOs:
|
|
305
|
+
|
|
306
|
+
### Availability SLO
|
|
307
|
+
- **Indicator**: % of successful requests (non-5xx)
|
|
308
|
+
- **Target**: {X}% over 30-day window
|
|
309
|
+
- **Error Budget**: {Y} minutes/month
|
|
310
|
+
|
|
311
|
+
### Latency SLO
|
|
312
|
+
- **Indicator**: Response time at p95
|
|
313
|
+
- **Target**: < {X}ms
|
|
314
|
+
- **Scope**: All API endpoints
|
|
315
|
+
|
|
316
|
+
### Error Rate SLO
|
|
317
|
+
- **Indicator**: % of failed requests
|
|
318
|
+
- **Target**: < {X}%
|
|
319
|
+
- **Window**: 24-hour rolling
|
|
320
|
+
|
|
321
|
+
Do these SLOs align with your expectations?
|
|
322
|
+
1 - **Yes**: Continue
|
|
323
|
+
2 - **Adjust**: Modify targets
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
### Step 5: Document Trade-offs
|
|
89
329
|
|
|
90
|
-
|
|
330
|
+
If requirements conflict, document trade-offs:
|
|
91
331
|
|
|
92
|
-
|
|
332
|
+
```markdown
|
|
333
|
+
## Requirements Trade-offs
|
|
93
334
|
|
|
94
|
-
|
|
95
|
-
- Error cases → Exception handling
|
|
96
|
-
- Data storage → Data requirements
|
|
97
|
-
- Integrations → External dependencies
|
|
335
|
+
I've identified these trade-offs in your requirements:
|
|
98
336
|
|
|
99
|
-
|
|
337
|
+
### Trade-off 1: {e.g., Performance vs Security}
|
|
338
|
+
- **Conflict**: {Description}
|
|
339
|
+
- **Options**:
|
|
340
|
+
1 - {Option A with implications}
|
|
341
|
+
2 - {Option B with implications}
|
|
342
|
+
- **Recommendation**: {Your recommendation}
|
|
343
|
+
- **Your decision**: ___
|
|
100
344
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
- Security: Authentication, data sensitivity
|
|
104
|
-
- Reliability: Uptime, failure tolerance
|
|
105
|
-
- Compliance: Regulatory, audit
|
|
345
|
+
{Repeat for other trade-offs}
|
|
346
|
+
```
|
|
106
347
|
|
|
107
|
-
|
|
348
|
+
---
|
|
108
349
|
|
|
109
|
-
### Step
|
|
350
|
+
### Step 6: Document Requirements
|
|
110
351
|
|
|
111
352
|
1. **Read Path**: Check `schema.requirements` from `.iris/aidlc/memory-bank.yaml`
|
|
112
353
|
*(Default: `memory-bank/intents/{intent-name}/requirements.md`)*
|
|
@@ -117,101 +358,165 @@ After user answers, generate functional and non-functional requirements.
|
|
|
117
358
|
|
|
118
359
|
```markdown
|
|
119
360
|
## Functional Requirements
|
|
361
|
+
|
|
120
362
|
### FR-1: {Title}
|
|
363
|
+
- **User Story**: As a {user}, I want {action} so that {benefit}
|
|
121
364
|
- **Description**: {What the system must do}
|
|
122
|
-
- **Acceptance Criteria**:
|
|
365
|
+
- **Acceptance Criteria**:
|
|
366
|
+
- [ ] {Testable criterion 1}
|
|
367
|
+
- [ ] {Testable criterion 2}
|
|
123
368
|
- **Priority**: {Must/Should/Could}
|
|
369
|
+
- **Dependencies**: {Other FRs or "None"}
|
|
124
370
|
|
|
125
371
|
## Non-Functional Requirements
|
|
126
|
-
|
|
127
|
-
|
|
372
|
+
|
|
373
|
+
### Performance
|
|
374
|
+
- **NFR-P1**: Response time p95 < {X}ms
|
|
375
|
+
- **NFR-P2**: Throughput > {X} req/s
|
|
376
|
+
|
|
377
|
+
### Scalability
|
|
378
|
+
- **NFR-S1**: Support {X} concurrent users
|
|
379
|
+
|
|
380
|
+
### Security
|
|
381
|
+
- **NFR-SEC1**: {Authentication method}
|
|
382
|
+
- **NFR-SEC2**: {Authorization model}
|
|
383
|
+
|
|
384
|
+
### Reliability
|
|
385
|
+
- **NFR-R1**: {X}% availability
|
|
386
|
+
- **NFR-R2**: RTO < {X}, RPO < {Y}
|
|
387
|
+
|
|
388
|
+
### Compliance
|
|
389
|
+
- **NFR-C1**: {Regulatory requirements}
|
|
390
|
+
|
|
391
|
+
## SLOs
|
|
392
|
+
- **Availability**: {X}%
|
|
393
|
+
- **Latency (p95)**: < {X}ms
|
|
394
|
+
- **Error Rate**: < {X}%
|
|
395
|
+
|
|
396
|
+
## Trade-off Decisions
|
|
397
|
+
- {Trade-off 1}: Chose {option} because {reason}
|
|
128
398
|
```
|
|
129
399
|
|
|
130
400
|
4. **Validate Testability**:
|
|
131
401
|
- ❌ "Fast response" → ✅ "Response < 200ms p95"
|
|
132
402
|
- ❌ "Secure" → ✅ "OAuth 2.0 with MFA"
|
|
133
403
|
- ❌ "Scalable" → ✅ "Support 10K concurrent users"
|
|
404
|
+
- ❌ "User can manage data" → ✅ "User can create, read, update, delete records"
|
|
134
405
|
|
|
135
406
|
---
|
|
136
407
|
|
|
137
|
-
### Step
|
|
138
|
-
|
|
139
|
-
**Checkpoint 2**: Present FULL requirements for approval.
|
|
408
|
+
### Step 7: Requirements Review
|
|
140
409
|
|
|
141
|
-
**
|
|
410
|
+
**Checkpoint 3**: Present FULL requirements for approval.
|
|
142
411
|
|
|
143
|
-
**Show
|
|
412
|
+
**CRITICAL: Show complete details. Do NOT summarize.**
|
|
144
413
|
|
|
145
|
-
```
|
|
414
|
+
```markdown
|
|
146
415
|
### Inception Progress
|
|
147
416
|
- [x] Intent created
|
|
148
|
-
- [ ] Requirements gathered ← current (Checkpoint
|
|
149
|
-
- [ ] Artifacts reviewed
|
|
417
|
+
- [ ] Requirements gathered ← current (Checkpoint 3: approval)
|
|
418
|
+
- [ ] Artifacts reviewed
|
|
150
419
|
- [ ] Ready for Construction
|
|
151
|
-
```
|
|
152
420
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
```text
|
|
156
|
-
### Requirements Review
|
|
421
|
+
---
|
|
157
422
|
|
|
158
|
-
##
|
|
423
|
+
## Complete Requirements Review
|
|
159
424
|
|
|
160
|
-
###
|
|
161
|
-
- **Description**: {full description}
|
|
162
|
-
- **Acceptance Criteria**: {all criteria}
|
|
163
|
-
- **Priority**: {Must/Should/Could}
|
|
425
|
+
### Functional Requirements
|
|
164
426
|
|
|
165
|
-
|
|
427
|
+
#### FR-1: {Title}
|
|
428
|
+
- **User Story**: As a {user}, I want {action} so that {benefit}
|
|
166
429
|
- **Description**: {full description}
|
|
167
|
-
- **Acceptance Criteria**:
|
|
430
|
+
- **Acceptance Criteria**:
|
|
431
|
+
- [ ] {criterion 1}
|
|
432
|
+
- [ ] {criterion 2}
|
|
168
433
|
- **Priority**: {Must/Should/Could}
|
|
434
|
+
- **Dependencies**: {list or "None"}
|
|
169
435
|
|
|
170
|
-
{
|
|
436
|
+
{Continue for all FRs...}
|
|
171
437
|
|
|
172
438
|
---
|
|
173
439
|
|
|
174
|
-
|
|
175
|
-
1 - Yes, continue to generate artifacts
|
|
176
|
-
2 - Need changes (specify what's missing/wrong)
|
|
177
|
-
```
|
|
440
|
+
### Non-Functional Requirements
|
|
178
441
|
|
|
179
|
-
|
|
442
|
+
#### Performance
|
|
443
|
+
- **NFR-P1**: Response time p95 < {X}ms
|
|
444
|
+
- **NFR-P2**: Throughput > {X} req/s
|
|
180
445
|
|
|
181
|
-
|
|
446
|
+
#### Scalability
|
|
447
|
+
- **NFR-S1**: Support {X} concurrent users
|
|
448
|
+
- **NFR-S2**: Scale to {X}x load within {Y} minutes
|
|
182
449
|
|
|
183
|
-
|
|
450
|
+
#### Security
|
|
451
|
+
- **NFR-SEC1**: {Authentication method}
|
|
452
|
+
- **NFR-SEC2**: {Authorization model}
|
|
453
|
+
- **NFR-SEC3**: Data encryption {details}
|
|
184
454
|
|
|
185
|
-
|
|
186
|
-
|
|
455
|
+
#### Reliability
|
|
456
|
+
- **NFR-R1**: {X}% availability
|
|
457
|
+
- **NFR-R2**: RTO < {X}, RPO < {Y}
|
|
187
458
|
|
|
188
|
-
|
|
459
|
+
#### Compliance
|
|
460
|
+
- **NFR-C1**: {Regulatory requirements}
|
|
461
|
+
- **NFR-C2**: Audit logs retained {X} days
|
|
189
462
|
|
|
190
|
-
|
|
191
|
-
- [ ] **FR-2**: {description} - Priority: Should - Status: Draft
|
|
463
|
+
---
|
|
192
464
|
|
|
193
|
-
###
|
|
465
|
+
### SLOs
|
|
466
|
+
- **Availability**: {X}%
|
|
467
|
+
- **Latency (p95)**: < {X}ms
|
|
468
|
+
- **Error Rate**: < {X}%
|
|
194
469
|
|
|
195
|
-
-
|
|
196
|
-
-
|
|
470
|
+
### Trade-off Decisions
|
|
471
|
+
- {Trade-off 1}: Chose {option} because {reason}
|
|
197
472
|
|
|
198
|
-
|
|
473
|
+
---
|
|
199
474
|
|
|
200
|
-
|
|
475
|
+
Do these requirements capture your intent?
|
|
476
|
+
1 - **Approve**: Save and continue
|
|
477
|
+
2 - **Revise**: Request changes (specify what)
|
|
478
|
+
```
|
|
201
479
|
|
|
202
|
-
|
|
203
|
-
- {any feature-specific constraint not in standards}
|
|
480
|
+
**Wait for user response.**
|
|
204
481
|
|
|
205
|
-
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## Output
|
|
485
|
+
|
|
486
|
+
```markdown
|
|
487
|
+
## Requirements Complete: {intent-name}
|
|
488
|
+
|
|
489
|
+
### Summary
|
|
490
|
+
- **Functional Requirements**: {N} defined
|
|
491
|
+
- **Non-Functional Requirements**: {N} across 5 categories
|
|
492
|
+
- **SLOs**: {N} defined
|
|
493
|
+
- **Trade-offs**: {N} documented
|
|
494
|
+
|
|
495
|
+
### FR Quality
|
|
496
|
+
- ✅ All FRs have User Story format
|
|
497
|
+
- ✅ All FRs have testable Acceptance Criteria
|
|
498
|
+
- ✅ All FRs have Priority assigned
|
|
499
|
+
- ✅ Dependencies mapped
|
|
500
|
+
|
|
501
|
+
### NFR Coverage
|
|
502
|
+
- ✅ Performance: {count} requirements
|
|
503
|
+
- ✅ Scalability: {count} requirements
|
|
504
|
+
- ✅ Security: {count} requirements
|
|
505
|
+
- ✅ Reliability: {count} requirements
|
|
506
|
+
- ✅ Compliance: {count} requirements
|
|
507
|
+
|
|
508
|
+
### Artifact Created
|
|
206
509
|
- `{intent-path}/requirements.md`
|
|
207
510
|
|
|
208
511
|
### Actions
|
|
209
512
|
|
|
210
|
-
1 - **
|
|
211
|
-
2 - **
|
|
513
|
+
1 - **risks**: Define risk register for this intent
|
|
514
|
+
2 - **context**: Define system context and boundaries
|
|
515
|
+
3 - **auto-continue**: Batch-generate remaining artifacts
|
|
516
|
+
4 - **menu**: Return to inception menu
|
|
212
517
|
|
|
213
518
|
### Suggested Next Step
|
|
214
|
-
→ **
|
|
519
|
+
→ **risks** - Identify and document risks for `{intent-name}`
|
|
215
520
|
|
|
216
521
|
**Type a number or press Enter for suggested action.**
|
|
217
522
|
```
|
|
@@ -220,33 +525,75 @@ Intent-specific constraints:
|
|
|
220
525
|
|
|
221
526
|
## After Approval
|
|
222
527
|
|
|
223
|
-
Once requirements are approved at Checkpoint
|
|
528
|
+
Once requirements are approved at Checkpoint 3:
|
|
224
529
|
|
|
225
530
|
1. Save to `{intent}/requirements.md`
|
|
226
531
|
2. Update inception-log.md with artifact status
|
|
227
|
-
3.
|
|
532
|
+
3. Present transition options to user
|
|
228
533
|
|
|
229
534
|
---
|
|
230
535
|
|
|
231
536
|
## Transition
|
|
232
537
|
|
|
233
|
-
|
|
538
|
+
### Inception Phase Flow
|
|
539
|
+
|
|
540
|
+
After requirements approved, the Inception flow continues:
|
|
541
|
+
|
|
542
|
+
```text
|
|
543
|
+
Requirements ← YOU ARE HERE
|
|
544
|
+
↓
|
|
545
|
+
Risks (recommended) ─────────────┐
|
|
546
|
+
↓ │
|
|
547
|
+
Context ──────────────────────── │ ─→ Can batch-generate
|
|
548
|
+
↓ │ from here if
|
|
549
|
+
Units ───────────────────────────┤ requirements are
|
|
550
|
+
↓ │ comprehensive
|
|
551
|
+
Stories ─────────────────────────┤
|
|
552
|
+
↓ │
|
|
553
|
+
Bolt Plan ───────────────────────┘
|
|
554
|
+
↓
|
|
555
|
+
Review All Artifacts (Checkpoint 4)
|
|
556
|
+
↓
|
|
557
|
+
Ready for Construction
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
### Next Step Options
|
|
561
|
+
|
|
562
|
+
1 - **risks** (Recommended)
|
|
563
|
+
Define risk register before proceeding
|
|
564
|
+
→ `.iris/aidlc/skills/inception/risks.md`
|
|
565
|
+
Use if: Regulatory concerns, complex integrations, unknowns identified
|
|
566
|
+
|
|
567
|
+
2 - **context**
|
|
568
|
+
Define system boundaries and external actors
|
|
569
|
+
→ `.iris/aidlc/skills/inception/context.md`
|
|
570
|
+
Use if: Risks already covered in project standards
|
|
571
|
+
|
|
572
|
+
3 - **auto-continue**
|
|
573
|
+
Batch-generate Context → Units → Stories → Bolt Plan
|
|
574
|
+
→ Executes skills in sequence, reviews all at Checkpoint 4
|
|
575
|
+
Use if: Rapid iteration needed, will review all artifacts together
|
|
576
|
+
|
|
577
|
+
4 - **menu**
|
|
578
|
+
Return to Inception navigator
|
|
579
|
+
→ `.iris/aidlc/skills/inception/navigator.md`
|
|
580
|
+
Use if: Need to check status or switch intents
|
|
234
581
|
|
|
235
|
-
|
|
236
|
-
- Units
|
|
237
|
-
- Stories
|
|
238
|
-
- Bolt Plan
|
|
582
|
+
### Decision Criteria
|
|
239
583
|
|
|
240
|
-
|
|
584
|
+
- **Choose risks if**: Compliance requirements exist, external dependencies identified, concerns flagged in requirements discovery
|
|
585
|
+
- **Choose context if**: Simple feature with clear boundaries, risks already in project standards
|
|
586
|
+
- **Choose auto-continue if**: Comprehensive requirements captured, trust AI elaboration, will review carefully at Checkpoint 4
|
|
241
587
|
|
|
242
588
|
---
|
|
243
589
|
|
|
244
590
|
## Test Contract
|
|
245
591
|
|
|
246
592
|
```yaml
|
|
247
|
-
input: User answers to
|
|
248
|
-
output: requirements.md with
|
|
249
|
-
checkpoints:
|
|
250
|
-
- Checkpoint 1:
|
|
251
|
-
- Checkpoint 2:
|
|
593
|
+
input: User answers to FR questions + NFR category questions (5 categories)
|
|
594
|
+
output: requirements.md with FRs (user stories, acceptance criteria), NFRs (5 categories), SLOs, trade-offs
|
|
595
|
+
checkpoints: 3
|
|
596
|
+
- Checkpoint 1: FR clarifying questions answered
|
|
597
|
+
- Checkpoint 2: All 5 NFR categories addressed
|
|
598
|
+
- Checkpoint 3: Full requirements approved
|
|
252
599
|
```
|