project-iris 0.0.16 → 0.0.18
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 +86 -15
- package/flows/aidlc/README.md +358 -214
- package/flows/aidlc/agents/README.md +154 -0
- package/flows/aidlc/agents/inception-agent.md +23 -12
- package/flows/aidlc/agents/master-agent.md +204 -24
- package/flows/aidlc/memory-bank.yaml +61 -10
- package/flows/aidlc/quick-start.md +7 -7
- package/flows/aidlc/skills/README.md +106 -0
- package/flows/aidlc/skills/construction/bolt-start.md +5 -1
- package/flows/aidlc/skills/construction/navigator.md +1 -1
- package/flows/aidlc/skills/inception/bolt-plan.md +3 -2
- package/flows/aidlc/skills/inception/context.md +2 -1
- package/flows/aidlc/skills/inception/intent-create.md +91 -2
- package/flows/aidlc/skills/inception/navigator.md +13 -8
- package/flows/aidlc/skills/inception/requirements.md +541 -95
- 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/skills/master/answer-question.md +1 -1
- package/flows/aidlc/skills/master/code-elevate.md +434 -0
- package/flows/aidlc/skills/master/explain-flow.md +6 -6
- package/flows/aidlc/skills/master/project-init.md +110 -12
- package/flows/aidlc/skills/operations/build.md +32 -4
- package/flows/aidlc/skills/operations/monitor.md +75 -14
- package/flows/aidlc/skills/operations/rollback.md +239 -0
- package/flows/aidlc/templates/README.md +128 -0
- package/flows/aidlc/templates/construction/bolt-template.md +5 -5
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/{ddd-02-technical-design-template.md → ddd-02-logical-design-template.md} +1 -1
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +123 -41
- package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +6 -6
- package/flows/aidlc/templates/construction/construction-guide.md +244 -0
- package/flows/aidlc/templates/construction/construction-log-template.md +7 -6
- package/flows/aidlc/templates/construction/elevation-dynamic-model-template.md +265 -0
- package/flows/aidlc/templates/construction/elevation-static-model-template.md +204 -0
- package/flows/aidlc/templates/inception/prfaq-template.md +147 -0
- package/flows/aidlc/templates/inception/requirements-template.md +70 -5
- package/flows/aidlc/templates/inception/risks-template.md +214 -0
- package/flows/aidlc/templates/operations/deployment-unit-template.md +228 -0
- package/package.json +1 -1
- package/flows/aidlc/templates/inception/project/README.md +0 -55
- /package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/{ddd-01-domain-model-template.md → ddd-01-domain-design-template.md} +0 -0
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
## Success Metrics
|
|
15
15
|
|
|
16
16
|
- ✅ All artifacts verified with ✅ or 🚫 status
|
|
17
|
+
- ✅ Traceability chain validated (Intent→Requirements→Units→Stories→Bolts)
|
|
17
18
|
- ✅ Gaps clearly identified with recommended actions
|
|
18
|
-
- ✅ Final summary shows counts (requirements, units, stories, bolts)
|
|
19
|
+
- ✅ Final summary shows counts (requirements, risks, units, stories, bolts)
|
|
19
20
|
- ✅ Clear transition to Construction Agent
|
|
20
21
|
|
|
21
22
|
## Failure Modes
|
|
22
23
|
|
|
23
24
|
- ❌ Using ASCII table for checkpoints
|
|
24
25
|
- ❌ Not verifying all artifact types
|
|
26
|
+
- ❌ Skipping traceability validation
|
|
25
27
|
- ❌ Skipping gap identification
|
|
26
28
|
- ❌ Not updating inception-log.md on completion
|
|
27
29
|
|
|
@@ -35,6 +37,7 @@ Show at start of this skill:
|
|
|
35
37
|
### Inception Progress
|
|
36
38
|
- [x] Intent created
|
|
37
39
|
- [x] Requirements gathered
|
|
40
|
+
- [x] Risks defined
|
|
38
41
|
- [ ] Artifacts reviewed ← current
|
|
39
42
|
- [ ] Ready for Construction
|
|
40
43
|
```
|
|
@@ -70,14 +73,57 @@ Ensure all inception artifacts are complete, consistent, and ready for Construct
|
|
|
70
73
|
|
|
71
74
|
Check existence and completeness of all required artifacts:
|
|
72
75
|
|
|
73
|
-
- **Requirements**: `{intent}/requirements.md` - FR, NFR, constraints
|
|
76
|
+
- **Requirements**: `{intent}/requirements.md` - FR, NFR, SLOs, constraints
|
|
77
|
+
- **Risks**: `{intent}/risks.md` - Risk register with mitigations
|
|
74
78
|
- **System Context**: `{intent}/system-context.md` - Actors, external systems, data flows
|
|
75
79
|
- **Units**: `{intent}/units.md` - Unit list with purposes
|
|
76
80
|
- **Unit Briefs**: `{intent}/units/{unit}/unit-brief.md` - Scope, entities, success criteria
|
|
77
81
|
- **Stories**: `{intent}/units/{unit}/stories/*.md` - Acceptance criteria
|
|
78
82
|
- **Bolts**: Path from `schema.bolts` - Type, stories, status
|
|
79
83
|
|
|
80
|
-
### 2.
|
|
84
|
+
### 2. Traceability Validation (CRITICAL)
|
|
85
|
+
|
|
86
|
+
Verify complete artifact traceability chain:
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
Intent → Requirements → Units → Stories → Bolts
|
|
90
|
+
↓
|
|
91
|
+
Risks (linked to requirements)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Traceability Matrix Checks:**
|
|
95
|
+
|
|
96
|
+
1. **Intent → Requirements**
|
|
97
|
+
- [ ] All FRs trace to business intent (from intent.md goal)
|
|
98
|
+
- [ ] All NFRs have measurable SLOs defined
|
|
99
|
+
- [ ] Trade-offs documented when requirements conflict
|
|
100
|
+
|
|
101
|
+
2. **Requirements → Units**
|
|
102
|
+
- [ ] Every FR is assigned to exactly one unit
|
|
103
|
+
- [ ] No orphan FRs (requirements without units)
|
|
104
|
+
- [ ] FR-to-unit mapping documented in units.md
|
|
105
|
+
|
|
106
|
+
3. **Requirements → Risks**
|
|
107
|
+
- [ ] High-impact FRs/NFRs have associated risks
|
|
108
|
+
- [ ] Each risk links to Related Requirements (FR-N, NFR-X)
|
|
109
|
+
- [ ] Critical risks have mitigation strategies
|
|
110
|
+
|
|
111
|
+
4. **Units → Stories**
|
|
112
|
+
- [ ] Each unit has stories derived from its assigned FRs
|
|
113
|
+
- [ ] No orphan stories (stories without unit)
|
|
114
|
+
- [ ] Story count matches expected based on FR complexity
|
|
115
|
+
|
|
116
|
+
5. **Stories → Bolts**
|
|
117
|
+
- [ ] Every story is assigned to exactly one bolt
|
|
118
|
+
- [ ] No orphan stories (stories without bolts)
|
|
119
|
+
- [ ] Bolt dependencies respect story dependencies
|
|
120
|
+
|
|
121
|
+
**Validation Outcome:**
|
|
122
|
+
- ✅ = Complete traceability
|
|
123
|
+
- ⚠️ = Partial traceability (gaps identified)
|
|
124
|
+
- ❌ = Broken traceability (must fix before Construction)
|
|
125
|
+
|
|
126
|
+
### 3. Consistency Check
|
|
81
127
|
|
|
82
128
|
Verify cross-artifact consistency:
|
|
83
129
|
|
|
@@ -93,18 +139,29 @@ Verify cross-artifact consistency:
|
|
|
93
139
|
```text
|
|
94
140
|
### Artifacts Review
|
|
95
141
|
|
|
142
|
+
**Traceability Status**
|
|
143
|
+
- ✅ Intent → Requirements: {n} FRs, {m} NFRs
|
|
144
|
+
- ✅ Requirements → Units: All FRs mapped
|
|
145
|
+
- ✅ Requirements → Risks: {r} risks linked
|
|
146
|
+
- ✅ Units → Stories: {s} stories from {u} units
|
|
147
|
+
- ✅ Stories → Bolts: All stories assigned
|
|
148
|
+
|
|
149
|
+
**Risks** ({n} identified)
|
|
150
|
+
- Critical: {count} | High: {count} | Medium: {count} | Low: {count}
|
|
151
|
+
- Key risks: {top 3 critical/high risks}
|
|
152
|
+
|
|
96
153
|
**System Context**
|
|
97
154
|
- Actors: {list}
|
|
98
155
|
- External systems: {list}
|
|
99
156
|
- Data flows: {summary}
|
|
100
157
|
|
|
101
158
|
**Units**
|
|
102
|
-
- {unit-1}: {purpose}
|
|
103
|
-
- {unit-2}: {purpose}
|
|
159
|
+
- {unit-1}: {purpose} - FRs: FR-1, FR-2
|
|
160
|
+
- {unit-2}: {purpose} - FRs: FR-3, FR-4
|
|
104
161
|
|
|
105
162
|
**Stories** ({n} total)
|
|
106
|
-
- {unit-1}: S1, S2, S3
|
|
107
|
-
- {unit-2}: S4, S5
|
|
163
|
+
- {unit-1}: S1, S2, S3 → FR-1, FR-2
|
|
164
|
+
- {unit-2}: S4, S5 → FR-3, FR-4
|
|
108
165
|
|
|
109
166
|
**Bolt Plan** ({n} bolts)
|
|
110
167
|
- bolt-{unit-1}-1: Stories S1-S3
|
|
@@ -161,6 +218,8 @@ status: complete
|
|
|
161
218
|
|
|
162
219
|
- **Functional Requirements**: {n}
|
|
163
220
|
- **Non-Functional Requirements**: {n}
|
|
221
|
+
- **SLOs Defined**: {n}
|
|
222
|
+
- **Risks Identified**: {n} (Critical: {n}, High: {n})
|
|
164
223
|
- **Units**: {n}
|
|
165
224
|
- **Stories**: {n}
|
|
166
225
|
- **Bolts Planned**: {n}
|
|
@@ -168,7 +227,8 @@ status: complete
|
|
|
168
227
|
## Ready for Construction
|
|
169
228
|
|
|
170
229
|
**Checklist**:
|
|
171
|
-
- [x] All requirements documented
|
|
230
|
+
- [x] All requirements documented (FR, NFR, SLOs)
|
|
231
|
+
- [x] Risks identified and mitigated
|
|
172
232
|
- [x] System context defined
|
|
173
233
|
- [x] Units decomposed
|
|
174
234
|
- [x] Stories created for all units
|
|
@@ -204,6 +264,8 @@ status: inception-complete
|
|
|
204
264
|
Summary:
|
|
205
265
|
- {n} functional requirements
|
|
206
266
|
- {m} non-functional requirements
|
|
267
|
+
- {p} SLOs defined
|
|
268
|
+
- {r} risks identified (Critical: {c}, High: {h})
|
|
207
269
|
- {x} units
|
|
208
270
|
- {y} stories
|
|
209
271
|
- {z} bolts planned
|
|
@@ -225,8 +287,10 @@ Ready to start construction?
|
|
|
225
287
|
|
|
226
288
|
### Verification Results
|
|
227
289
|
|
|
228
|
-
- ✅
|
|
229
|
-
- ✅
|
|
290
|
+
- ✅ Requirements complete (FR, NFR, SLOs)
|
|
291
|
+
- ✅ Risks documented with mitigations
|
|
292
|
+
- ✅ System context defined
|
|
293
|
+
- ✅ Traceability chain complete
|
|
230
294
|
- ✅ Stories have acceptance criteria
|
|
231
295
|
- ✅ Bolts planned
|
|
232
296
|
|
|
@@ -265,7 +329,7 @@ If gaps found at Checkpoint 3:
|
|
|
265
329
|
## Test Contract
|
|
266
330
|
|
|
267
331
|
```yaml
|
|
268
|
-
input: All inception artifacts (requirements, context, units, stories, bolts)
|
|
332
|
+
input: All inception artifacts (requirements, risks, context, units, stories, bolts)
|
|
269
333
|
output: inception-log.md updated, intent status = inception-complete
|
|
270
334
|
checkpoints: 2
|
|
271
335
|
- Checkpoint 3: Artifacts reviewed and approved
|
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
# Skill: Define Risk Register
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Mandatory Output Rules (READ FIRST)
|
|
6
|
+
|
|
7
|
+
### General Rules
|
|
8
|
+
- 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
|
|
9
|
+
- ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
|
|
10
|
+
- ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending)
|
|
11
|
+
- ✅ **ALWAYS** show progress tracker at start
|
|
12
|
+
- ✅ **ALWAYS** ask clarifying questions BEFORE generating risks
|
|
13
|
+
- ✅ **ALWAYS** present FULL risk register at review (no summaries)
|
|
14
|
+
- 🛑 **STOP** at each checkpoint - wait for user response
|
|
15
|
+
|
|
16
|
+
### Risk Register Rules
|
|
17
|
+
- ✅ **ALWAYS** categorize risks (Technical, Business, Operational, External, Compliance)
|
|
18
|
+
- ✅ **ALWAYS** use standard impact/likelihood scoring (1-5 scale)
|
|
19
|
+
- ✅ **ALWAYS** calculate risk score (Impact × Likelihood)
|
|
20
|
+
- ✅ **ALWAYS** define mitigation strategy for High/Critical risks
|
|
21
|
+
- ✅ **ALWAYS** assign ownership for each mitigation
|
|
22
|
+
- ✅ **ALWAYS** align with organization's Risk Register format if present
|
|
23
|
+
|
|
24
|
+
## Success Metrics
|
|
25
|
+
|
|
26
|
+
- ✅ Clarifying questions asked before generating risks
|
|
27
|
+
- ✅ All 5 risk categories addressed (Technical, Business, Operational, External, Compliance)
|
|
28
|
+
- ✅ Each risk has: Category, Description, Impact, Likelihood, Score, Mitigation, Owner
|
|
29
|
+
- ✅ High/Critical risks (score ≥ 12) have detailed mitigation plans
|
|
30
|
+
- ✅ Risks linked to relevant requirements (FR/NFR)
|
|
31
|
+
- ✅ Org Risk Register alignment documented (if applicable)
|
|
32
|
+
|
|
33
|
+
## Failure Modes
|
|
34
|
+
|
|
35
|
+
- ❌ Generating risks without asking discovery questions first
|
|
36
|
+
- ❌ Risks without impact/likelihood scoring
|
|
37
|
+
- ❌ High-score risks without mitigation strategies
|
|
38
|
+
- ❌ Skipping risk categories without explicit confirmation
|
|
39
|
+
- ❌ Vague risks without specific triggers or consequences
|
|
40
|
+
- ❌ Summarizing at review instead of showing full details
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Progress Display
|
|
45
|
+
|
|
46
|
+
Show at start of this skill:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
### Inception Progress
|
|
50
|
+
- [x] Intent created
|
|
51
|
+
- [x] Requirements gathered
|
|
52
|
+
- [ ] Risks defined ← current
|
|
53
|
+
- [ ] Artifacts reviewed (Context + Units + Stories + Bolts)
|
|
54
|
+
- [ ] Ready for Construction
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Checkpoints
|
|
60
|
+
|
|
61
|
+
- **Checkpoint 1**: Risk discovery questions answered
|
|
62
|
+
- **Checkpoint 2**: Full risk register review and approval
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Goal
|
|
67
|
+
|
|
68
|
+
Identify, analyze, and document project risks with mitigation strategies, aligning with the organization's Risk Register format where applicable. This follows AI-DLC's requirement for "Description of Risks (matching with organization's Risk Register, if present)".
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Input
|
|
73
|
+
|
|
74
|
+
- **Required**: Intent name or path
|
|
75
|
+
- **Required**: `requirements.md` for the intent
|
|
76
|
+
- **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
|
|
77
|
+
- **Optional**: Existing `risks.md` to update
|
|
78
|
+
- **Optional**: Organization's Risk Register template
|
|
79
|
+
|
|
80
|
+
**Note**: Risks should trace to specific requirements (FR/NFR) identified in the requirements phase.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Process
|
|
85
|
+
|
|
86
|
+
### Step 1: Risk Discovery
|
|
87
|
+
|
|
88
|
+
**Checkpoint 1**: Ask clarifying questions BEFORE generating risks.
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
## Risk Discovery
|
|
92
|
+
|
|
93
|
+
Before I generate the risk register, I need to understand:
|
|
94
|
+
|
|
95
|
+
### Technical Risks
|
|
96
|
+
1. What are the most complex technical components?
|
|
97
|
+
2. Any new/unfamiliar technologies being used?
|
|
98
|
+
3. Integration points with external systems?
|
|
99
|
+
4. Performance or scalability concerns from NFRs?
|
|
100
|
+
|
|
101
|
+
### Business Risks
|
|
102
|
+
5. What happens if the feature fails to deliver value?
|
|
103
|
+
6. Competitive pressures or time-to-market concerns?
|
|
104
|
+
7. User adoption risks?
|
|
105
|
+
|
|
106
|
+
### Operational Risks
|
|
107
|
+
8. Deployment complexity?
|
|
108
|
+
9. Monitoring/observability gaps?
|
|
109
|
+
10. On-call/support readiness?
|
|
110
|
+
|
|
111
|
+
### External Risks
|
|
112
|
+
11. Third-party dependencies (APIs, services)?
|
|
113
|
+
12. Vendor lock-in concerns?
|
|
114
|
+
13. Supply chain vulnerabilities?
|
|
115
|
+
|
|
116
|
+
### Compliance Risks
|
|
117
|
+
14. Regulatory requirements (from NFRs)?
|
|
118
|
+
15. Data privacy concerns?
|
|
119
|
+
16. Audit trail requirements?
|
|
120
|
+
|
|
121
|
+
### Organizational Context
|
|
122
|
+
17. Does your organization have a Risk Register format/template I should follow?
|
|
123
|
+
18. Any existing risks from other projects that apply here?
|
|
124
|
+
|
|
125
|
+
Please answer these questions so I can generate an accurate risk register.
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Wait for user response.**
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### Step 2: Generate Risk Register
|
|
133
|
+
|
|
134
|
+
After user answers, generate risks covering all 5 categories:
|
|
135
|
+
|
|
136
|
+
**Risk Scoring Matrix:**
|
|
137
|
+
- **Impact** (1-5): 1=Negligible, 2=Minor, 3=Moderate, 4=Major, 5=Catastrophic
|
|
138
|
+
- **Likelihood** (1-5): 1=Rare, 2=Unlikely, 3=Possible, 4=Likely, 5=Almost Certain
|
|
139
|
+
- **Risk Score** = Impact × Likelihood
|
|
140
|
+
- **Rating**: Low (1-4), Medium (5-9), High (10-15), Critical (16-25)
|
|
141
|
+
|
|
142
|
+
**Structure each Risk as:**
|
|
143
|
+
|
|
144
|
+
```markdown
|
|
145
|
+
### RISK-{N}: {Title}
|
|
146
|
+
- **Category**: {Technical|Business|Operational|External|Compliance}
|
|
147
|
+
- **Description**: {What could go wrong and why}
|
|
148
|
+
- **Trigger**: {What would cause this risk to materialize}
|
|
149
|
+
- **Consequence**: {What happens if the risk materializes}
|
|
150
|
+
- **Impact**: {1-5} - {Justification}
|
|
151
|
+
- **Likelihood**: {1-5} - {Justification}
|
|
152
|
+
- **Risk Score**: {Impact × Likelihood} ({Low|Medium|High|Critical})
|
|
153
|
+
- **Related Requirements**: {FR-N, NFR-X or "None"}
|
|
154
|
+
- **Mitigation Strategy**: {How to reduce impact or likelihood}
|
|
155
|
+
- **Contingency Plan**: {What to do if risk materializes}
|
|
156
|
+
- **Owner**: {Role responsible for monitoring/mitigation}
|
|
157
|
+
- **Status**: {Open|Mitigating|Accepted|Closed}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### Step 3: Category-by-Category Review
|
|
163
|
+
|
|
164
|
+
Present risks by category for validation:
|
|
165
|
+
|
|
166
|
+
#### Category 1/5: Technical Risks
|
|
167
|
+
|
|
168
|
+
```markdown
|
|
169
|
+
## Technical Risks Review
|
|
170
|
+
|
|
171
|
+
These risks relate to technology choices, architecture, and implementation:
|
|
172
|
+
|
|
173
|
+
### RISK-T1: {Title}
|
|
174
|
+
{Full risk details as above}
|
|
175
|
+
|
|
176
|
+
### RISK-T2: {Title}
|
|
177
|
+
{Full risk details as above}
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
**Validation Questions:**
|
|
182
|
+
1. Are there other technical risks I should consider?
|
|
183
|
+
2. Are the impact/likelihood scores accurate?
|
|
184
|
+
3. Are the mitigation strategies realistic?
|
|
185
|
+
|
|
186
|
+
Your feedback (or 'approve' to continue):
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Wait for response, then continue to next category.**
|
|
190
|
+
|
|
191
|
+
#### Category 2/5: Business Risks
|
|
192
|
+
|
|
193
|
+
```markdown
|
|
194
|
+
## Business Risks Review
|
|
195
|
+
|
|
196
|
+
These risks relate to business value, adoption, and market factors:
|
|
197
|
+
|
|
198
|
+
### RISK-B1: {Title}
|
|
199
|
+
{Full risk details}
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
**Validation Questions:**
|
|
204
|
+
1. Are there business risks I've missed?
|
|
205
|
+
2. Any concerns about the business impact scoring?
|
|
206
|
+
|
|
207
|
+
Your feedback:
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Wait for response.**
|
|
211
|
+
|
|
212
|
+
#### Category 3/5: Operational Risks
|
|
213
|
+
|
|
214
|
+
```markdown
|
|
215
|
+
## Operational Risks Review
|
|
216
|
+
|
|
217
|
+
These risks relate to deployment, monitoring, and support:
|
|
218
|
+
|
|
219
|
+
### RISK-O1: {Title}
|
|
220
|
+
{Full risk details}
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
**Validation Questions:**
|
|
225
|
+
1. Are deployment/operational risks accurately captured?
|
|
226
|
+
2. Any gaps in the mitigation strategies?
|
|
227
|
+
|
|
228
|
+
Your feedback:
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Wait for response.**
|
|
232
|
+
|
|
233
|
+
#### Category 4/5: External Risks
|
|
234
|
+
|
|
235
|
+
```markdown
|
|
236
|
+
## External Risks Review
|
|
237
|
+
|
|
238
|
+
These risks relate to third-party dependencies and external factors:
|
|
239
|
+
|
|
240
|
+
### RISK-E1: {Title}
|
|
241
|
+
{Full risk details}
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
**Validation Questions:**
|
|
246
|
+
1. Are all third-party dependencies covered?
|
|
247
|
+
2. Any vendor-specific concerns I should add?
|
|
248
|
+
|
|
249
|
+
Your feedback:
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Wait for response.**
|
|
253
|
+
|
|
254
|
+
#### Category 5/5: Compliance Risks
|
|
255
|
+
|
|
256
|
+
```markdown
|
|
257
|
+
## Compliance Risks Review
|
|
258
|
+
|
|
259
|
+
These risks relate to regulatory, legal, and audit requirements:
|
|
260
|
+
|
|
261
|
+
### RISK-C1: {Title}
|
|
262
|
+
{Full risk details}
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
**Validation Questions:**
|
|
267
|
+
1. Are regulatory requirements fully addressed?
|
|
268
|
+
2. Any compliance gaps I've missed?
|
|
269
|
+
|
|
270
|
+
Your feedback:
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
**Wait for response.**
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
### Step 4: Risk Summary and Prioritization
|
|
278
|
+
|
|
279
|
+
Generate risk summary sorted by score:
|
|
280
|
+
|
|
281
|
+
```markdown
|
|
282
|
+
## Risk Summary
|
|
283
|
+
|
|
284
|
+
### Critical Risks (Score 16-25) - Immediate attention required
|
|
285
|
+
- **RISK-{N}**: {Title} - Score: {X} - Owner: {Role}
|
|
286
|
+
|
|
287
|
+
### High Risks (Score 10-15) - Active mitigation required
|
|
288
|
+
- **RISK-{N}**: {Title} - Score: {X} - Owner: {Role}
|
|
289
|
+
|
|
290
|
+
### Medium Risks (Score 5-9) - Monitor closely
|
|
291
|
+
- **RISK-{N}**: {Title} - Score: {X} - Owner: {Role}
|
|
292
|
+
|
|
293
|
+
### Low Risks (Score 1-4) - Accept or monitor
|
|
294
|
+
- **RISK-{N}**: {Title} - Score: {X} - Owner: {Role}
|
|
295
|
+
|
|
296
|
+
### Risk Distribution
|
|
297
|
+
- **Technical**: {count} risks
|
|
298
|
+
- **Business**: {count} risks
|
|
299
|
+
- **Operational**: {count} risks
|
|
300
|
+
- **External**: {count} risks
|
|
301
|
+
- **Compliance**: {count} risks
|
|
302
|
+
|
|
303
|
+
### Total Risk Score: {sum of all risk scores}
|
|
304
|
+
### Average Risk Score: {average}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
### Step 5: Document Risk Register
|
|
310
|
+
|
|
311
|
+
1. **Read Path**: Check `schema.risks` from `.iris/aidlc/memory-bank.yaml`
|
|
312
|
+
*(Default: `memory-bank/intents/{intent-name}/risks.md`)*
|
|
313
|
+
|
|
314
|
+
2. **Use Template**: `.iris/aidlc/templates/inception/risks-template.md` (if exists)
|
|
315
|
+
|
|
316
|
+
3. **Structure**:
|
|
317
|
+
|
|
318
|
+
```markdown
|
|
319
|
+
---
|
|
320
|
+
intent: {intent-name}
|
|
321
|
+
created: {timestamp}
|
|
322
|
+
last_updated: {timestamp}
|
|
323
|
+
total_risks: {count}
|
|
324
|
+
critical_risks: {count}
|
|
325
|
+
high_risks: {count}
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
# Risk Register: {intent-name}
|
|
329
|
+
|
|
330
|
+
## Overview
|
|
331
|
+
- **Total Risks**: {count}
|
|
332
|
+
- **Critical (16-25)**: {count}
|
|
333
|
+
- **High (10-15)**: {count}
|
|
334
|
+
- **Medium (5-9)**: {count}
|
|
335
|
+
- **Low (1-4)**: {count}
|
|
336
|
+
|
|
337
|
+
## Technical Risks
|
|
338
|
+
### RISK-T1: {Title}
|
|
339
|
+
{Full details}
|
|
340
|
+
|
|
341
|
+
## Business Risks
|
|
342
|
+
### RISK-B1: {Title}
|
|
343
|
+
{Full details}
|
|
344
|
+
|
|
345
|
+
## Operational Risks
|
|
346
|
+
### RISK-O1: {Title}
|
|
347
|
+
{Full details}
|
|
348
|
+
|
|
349
|
+
## External Risks
|
|
350
|
+
### RISK-E1: {Title}
|
|
351
|
+
{Full details}
|
|
352
|
+
|
|
353
|
+
## Compliance Risks
|
|
354
|
+
### RISK-C1: {Title}
|
|
355
|
+
{Full details}
|
|
356
|
+
|
|
357
|
+
## Mitigation Tracking
|
|
358
|
+
| Risk ID | Mitigation Action | Owner | Due Date | Status |
|
|
359
|
+
|---------|------------------|-------|----------|--------|
|
|
360
|
+
| RISK-T1 | {Action} | {Owner} | {Date} | {Status} |
|
|
361
|
+
|
|
362
|
+
## Risk Register Alignment
|
|
363
|
+
{Note alignment with organization's Risk Register format, or state "Standalone"}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
### Step 6: Risk Register Review
|
|
369
|
+
|
|
370
|
+
**Checkpoint 2**: Present FULL risk register for approval.
|
|
371
|
+
|
|
372
|
+
**CRITICAL: Show complete details. Do NOT summarize.**
|
|
373
|
+
|
|
374
|
+
```markdown
|
|
375
|
+
### Inception Progress
|
|
376
|
+
- [x] Intent created
|
|
377
|
+
- [x] Requirements gathered
|
|
378
|
+
- [ ] Risks defined ← current (Checkpoint 2: approval)
|
|
379
|
+
- [ ] Artifacts reviewed
|
|
380
|
+
- [ ] Ready for Construction
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## Complete Risk Register Review
|
|
385
|
+
|
|
386
|
+
### Summary
|
|
387
|
+
- **Total Risks**: {count}
|
|
388
|
+
- **Critical**: {count} | **High**: {count} | **Medium**: {count} | **Low**: {count}
|
|
389
|
+
|
|
390
|
+
### Critical & High Risks (Requiring Active Mitigation)
|
|
391
|
+
|
|
392
|
+
#### RISK-{N}: {Title}
|
|
393
|
+
- **Category**: {Category}
|
|
394
|
+
- **Description**: {full description}
|
|
395
|
+
- **Impact**: {score} | **Likelihood**: {score} | **Risk Score**: {total}
|
|
396
|
+
- **Mitigation**: {strategy}
|
|
397
|
+
- **Owner**: {role}
|
|
398
|
+
|
|
399
|
+
{Continue for all Critical/High risks...}
|
|
400
|
+
|
|
401
|
+
### Medium & Low Risks
|
|
402
|
+
|
|
403
|
+
{List with abbreviated format}
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
Does this risk register capture all known risks?
|
|
408
|
+
1 - **Approve**: Save and continue
|
|
409
|
+
2 - **Revise**: Request changes (specify what)
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
**Wait for user response.**
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## Output
|
|
417
|
+
|
|
418
|
+
```markdown
|
|
419
|
+
## Risk Register Complete: {intent-name}
|
|
420
|
+
|
|
421
|
+
### Summary
|
|
422
|
+
- **Total Risks**: {N} identified
|
|
423
|
+
- **Critical Risks**: {N} (immediate attention)
|
|
424
|
+
- **High Risks**: {N} (active mitigation)
|
|
425
|
+
- **Medium Risks**: {N} (monitoring)
|
|
426
|
+
- **Low Risks**: {N} (accepted)
|
|
427
|
+
|
|
428
|
+
### Risk Quality
|
|
429
|
+
- ✅ All risks have impact/likelihood scoring
|
|
430
|
+
- ✅ All Critical/High risks have mitigation plans
|
|
431
|
+
- ✅ All risks have assigned owners
|
|
432
|
+
- ✅ Risks linked to requirements
|
|
433
|
+
|
|
434
|
+
### Category Coverage
|
|
435
|
+
- ✅ Technical: {count} risks
|
|
436
|
+
- ✅ Business: {count} risks
|
|
437
|
+
- ✅ Operational: {count} risks
|
|
438
|
+
- ✅ External: {count} risks
|
|
439
|
+
- ✅ Compliance: {count} risks
|
|
440
|
+
|
|
441
|
+
### Artifact Created
|
|
442
|
+
- `{intent-path}/risks.md`
|
|
443
|
+
|
|
444
|
+
### Actions
|
|
445
|
+
|
|
446
|
+
1 - **context**: Define system context and boundaries
|
|
447
|
+
2 - **auto-continue**: Batch-generate remaining artifacts
|
|
448
|
+
3 - **menu**: Return to inception menu
|
|
449
|
+
|
|
450
|
+
### Suggested Next Step
|
|
451
|
+
→ **context** - Define system boundaries for `{intent-name}`
|
|
452
|
+
|
|
453
|
+
**Type a number or press Enter for suggested action.**
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## After Approval
|
|
459
|
+
|
|
460
|
+
Once risks are approved at Checkpoint 2:
|
|
461
|
+
|
|
462
|
+
1. Save to `{intent}/risks.md`
|
|
463
|
+
2. Update inception-log.md with artifact status
|
|
464
|
+
3. Present transition options to user
|
|
465
|
+
|
|
466
|
+
---
|
|
467
|
+
|
|
468
|
+
## Transition
|
|
469
|
+
|
|
470
|
+
### Inception Phase Flow
|
|
471
|
+
|
|
472
|
+
After risks defined, the Inception flow continues:
|
|
473
|
+
|
|
474
|
+
```text
|
|
475
|
+
Requirements
|
|
476
|
+
↓
|
|
477
|
+
Risks ← YOU ARE HERE
|
|
478
|
+
↓
|
|
479
|
+
Context ──────────────────────────┐
|
|
480
|
+
↓ │
|
|
481
|
+
Units ────────────────────────────┤ Can batch-generate
|
|
482
|
+
↓ │ from here if risks
|
|
483
|
+
Stories ──────────────────────────┤ are comprehensive
|
|
484
|
+
↓ │
|
|
485
|
+
Bolt Plan ────────────────────────┘
|
|
486
|
+
↓
|
|
487
|
+
Review All Artifacts (Checkpoint 4)
|
|
488
|
+
↓
|
|
489
|
+
Ready for Construction
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Next Step Options
|
|
493
|
+
|
|
494
|
+
1 - **context** (Recommended)
|
|
495
|
+
Define system boundaries and external actors
|
|
496
|
+
→ `.iris/aidlc/skills/inception/context.md`
|
|
497
|
+
Use if: Complex integrations, many external dependencies
|
|
498
|
+
|
|
499
|
+
2 - **auto-continue**
|
|
500
|
+
Batch-generate Context → Units → Stories → Bolt Plan
|
|
501
|
+
→ Executes skills in sequence, reviews all at Checkpoint 4
|
|
502
|
+
Use if: Risks are comprehensive, rapid iteration needed
|
|
503
|
+
|
|
504
|
+
3 - **menu**
|
|
505
|
+
Return to Inception navigator
|
|
506
|
+
→ `.iris/aidlc/skills/inception/navigator.md`
|
|
507
|
+
Use if: Need to check status or switch intents
|
|
508
|
+
|
|
509
|
+
### Decision Criteria
|
|
510
|
+
|
|
511
|
+
- **Choose context if**: Many external systems, complex integrations, brownfield project
|
|
512
|
+
- **Choose auto-continue if**: Greenfield project, clear boundaries, trust AI elaboration
|
|
513
|
+
- **Choose menu if**: Need to review other intents or check overall progress
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
## Risk Monitoring (Post-Inception)
|
|
518
|
+
|
|
519
|
+
During Construction and Operations, risks should be reviewed:
|
|
520
|
+
|
|
521
|
+
### Construction Phase
|
|
522
|
+
- Review technical risks before each Bolt
|
|
523
|
+
- Update risk status as mitigations are implemented
|
|
524
|
+
- Add new risks discovered during development
|
|
525
|
+
|
|
526
|
+
### Operations Phase
|
|
527
|
+
- Review operational risks before deployment
|
|
528
|
+
- Update external/compliance risks as regulations change
|
|
529
|
+
- Close mitigated risks, add new operational risks
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
## Test Contract
|
|
534
|
+
|
|
535
|
+
```yaml
|
|
536
|
+
input: User answers to risk discovery questions (5 categories)
|
|
537
|
+
output: risks.md with categorized risks, scoring, mitigations, owners
|
|
538
|
+
checkpoints: 2
|
|
539
|
+
- Checkpoint 1: Risk discovery questions answered
|
|
540
|
+
- Checkpoint 2: Full risk register approved
|
|
541
|
+
```
|
|
@@ -35,12 +35,13 @@ Show at start of this skill:
|
|
|
35
35
|
### Inception Progress
|
|
36
36
|
- [x] Intent created
|
|
37
37
|
- [x] Requirements gathered
|
|
38
|
+
- [x] Risks defined
|
|
38
39
|
- [ ] Generating artifacts... ← current
|
|
39
40
|
- [x] System Context
|
|
40
41
|
- [x] Units
|
|
41
42
|
- [ ] Stories ← this skill
|
|
42
43
|
- [ ] Bolt Plan
|
|
43
|
-
- [ ] Artifacts reviewed (Checkpoint
|
|
44
|
+
- [ ] Artifacts reviewed (Checkpoint 4)
|
|
44
45
|
- [ ] Ready for Construction
|
|
45
46
|
```
|
|
46
47
|
|