project-iris 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/flows/aidlc/README.md +21 -0
  2. package/flows/aidlc/agents/README.md +15 -0
  3. package/flows/aidlc/agents/inception-agent.md +76 -1
  4. package/flows/aidlc/agents/master-agent.md +1 -0
  5. package/flows/aidlc/skills/README.md +5 -0
  6. package/flows/aidlc/skills/construction/bolt-list.md +3 -0
  7. package/flows/aidlc/skills/construction/bolt-start.md +53 -16
  8. package/flows/aidlc/skills/inception/intent-create.md +6 -5
  9. package/flows/aidlc/skills/inception/requirements.md +25 -1
  10. package/flows/aidlc/skills/inception/review.md +1 -0
  11. package/flows/aidlc/skills/inception/risks.md +30 -5
  12. package/flows/aidlc/skills/master/analyze-context.md +4 -4
  13. package/flows/aidlc/skills/master/code-elevate.md +10 -0
  14. package/flows/aidlc/skills/master/project-init.md +2 -2
  15. package/flows/aidlc/skills/operations/build.md +2 -0
  16. package/flows/aidlc/skills/operations/rollback.md +1 -0
  17. package/flows/aidlc/templates/README.md +9 -0
  18. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-04-implementation-walkthrough-template.md +18 -14
  19. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +3 -2
  20. package/flows/aidlc/templates/construction/construction-guide.md +3 -0
  21. package/flows/aidlc/templates/construction/elevation-dynamic-model-template.md +12 -0
  22. package/flows/aidlc/templates/construction/elevation-static-model-template.md +6 -0
  23. package/flows/aidlc/templates/construction/ui-patterns.md +44 -0
  24. package/flows/aidlc/templates/inception/requirements-template.md +5 -0
  25. package/flows/aidlc/templates/inception/story-template.md +1 -1
  26. package/flows/aidlc/templates/standards/api-conventions.guide.md +4 -0
  27. package/lib/installer.js +0 -166
  28. package/package.json +2 -3
  29. package/extensions/iris-dashboard-0.0.1.vsix +0 -0
@@ -127,6 +127,7 @@ src/flows/aidlc/
127
127
  **Goal**: Complete planning and design before construction begins
128
128
 
129
129
  **Activities**:
130
+
130
131
  - Capture intents (high-level goals)
131
132
  - Gather requirements (functional and non-functional)
132
133
  - Assess risks (technical, business, operational)
@@ -138,6 +139,7 @@ src/flows/aidlc/
138
139
  **Command**: `/iris-inception-agent --intent="intent-name"`
139
140
 
140
141
  **Outputs**:
142
+
141
143
  - PRFAQ document
142
144
  - Requirements with measurement criteria
143
145
  - Risk assessment
@@ -151,6 +153,7 @@ src/flows/aidlc/
151
153
  **Goal**: Build working software through iterative bolt execution
152
154
 
153
155
  **Activities**:
156
+
154
157
  - Execute bolts through DDD stages:
155
158
  1. **Domain Design** - Model business logic using DDD principles
156
159
  2. **Logical Design** - Apply NFRs and architectural patterns
@@ -161,6 +164,7 @@ src/flows/aidlc/
161
164
  **Command**: `/iris-construction-agent --unit="unit-name"`
162
165
 
163
166
  **Outputs**:
167
+
164
168
  - Domain design documents
165
169
  - Logical design documents
166
170
  - Architectural Decision Records (ADRs)
@@ -172,6 +176,7 @@ src/flows/aidlc/
172
176
  **Goal**: Deploy and operate the system
173
177
 
174
178
  **Activities**:
179
+
175
180
  - Build deployment artifacts (containers, functions, bundles)
176
181
  - Deploy through environments (Dev → Staging → Production)
177
182
  - Verify deployments with health checks
@@ -181,6 +186,7 @@ src/flows/aidlc/
181
186
  **Command**: `/iris-operations-agent --unit="unit-name"`
182
187
 
183
188
  **Outputs**:
189
+
184
190
  - Deployment units
185
191
  - Monitoring dashboards
186
192
  - Alert configurations
@@ -192,19 +198,24 @@ src/flows/aidlc/
192
198
  ## Project Scenarios
193
199
 
194
200
  ### Greenfield (New Projects)
201
+
195
202
  Starting fresh with no existing code:
203
+
196
204
  1. Initialize project with standards
197
205
  2. Begin Inception phase immediately
198
206
  3. Build from scratch using AI-DLC methodology
199
207
 
200
208
  ### Brownfield (Existing Codebases)
209
+
201
210
  Adding features to existing code:
211
+
202
212
  1. Initialize project with standards
203
213
  2. **Run code elevation** to analyze existing codebase
204
214
  3. AI creates static and dynamic models for context
205
215
  4. Begin Inception with full codebase understanding
206
216
 
207
217
  **Code Elevation Process**:
218
+
208
219
  - **Static Model**: Components, responsibilities, and relationships
209
220
  - **Dynamic Model**: How components interact for significant use cases
210
221
 
@@ -227,6 +238,7 @@ Intent (feature/capability)
227
238
  **Bolts** are time-boxed execution sessions scoped to a **Unit**. A Unit may require multiple Bolts to complete all its Stories.
228
239
 
229
240
  **Example**:
241
+
230
242
  - **Intent**: User Authentication
231
243
  - **Unit**: Auth Service
232
244
  - **Story 1**: User Registration
@@ -385,21 +397,27 @@ memory-bank/
385
397
  ## Key Principles
386
398
 
387
399
  ### 1. AI Drives, Human Validates
400
+
388
401
  AI proposes plans, decompositions, and implementations. Humans review and approve at checkpoints.
389
402
 
390
403
  ### 2. Human Oversight as Loss Function
404
+
391
405
  Validation at each step catches errors early before they cascade downstream.
392
406
 
393
407
  ### 3. Mob Elaboration
408
+
394
409
  Concentrated rapid planning during Inception. Complete all planning in hours, not weeks.
395
410
 
396
411
  ### 4. Bolts are Flexible
412
+
397
413
  Bolts take "hours or days" depending on complexity - not fixed-duration like sprints.
398
414
 
399
415
  ### 5. DDD Focus
416
+
400
417
  Domain-Driven Design principles guide the Construction phase with proper separation of concerns.
401
418
 
402
419
  ### 6. Persistent Context
420
+
403
421
  Everything is stored in the memory bank so context is never lost between sessions.
404
422
 
405
423
  ---
@@ -457,18 +475,21 @@ Here's a complete workflow for building a feature:
457
475
  ## Tips for Success
458
476
 
459
477
  ### Planning (Inception)
478
+
460
479
  - Be thorough - it pays off during Construction
461
480
  - Document NFRs with measurable criteria
462
481
  - Assess risks early with mitigations
463
482
  - Group related stories into the same bolt
464
483
 
465
484
  ### Building (Construction)
485
+
466
486
  - Follow the DDD stages in order
467
487
  - Don't skip testing
468
488
  - Keep bolts focused (5-8 stories max)
469
489
  - Document significant decisions as ADRs
470
490
 
471
491
  ### Deploying (Operations)
492
+
472
493
  - Always deploy to staging first
473
494
  - Run smoke tests after every deployment
474
495
  - Setup monitoring from the start
@@ -15,9 +15,11 @@ agents/
15
15
  ## Agent Overview
16
16
 
17
17
  ### Master Agent
18
+
18
19
  **Role**: Orchestrator & Navigator
19
20
 
20
21
  The central entry point that:
22
+
21
23
  - Initializes new projects with standards
22
24
  - Analyzes current project state
23
25
  - Routes users to the appropriate phase agent
@@ -31,9 +33,11 @@ The central entry point that:
31
33
  ---
32
34
 
33
35
  ### Inception Agent
36
+
34
37
  **Role**: Planning & Design Specialist
35
38
 
36
39
  Handles the Inception phase:
40
+
37
41
  - Captures intents (high-level goals)
38
42
  - Gathers requirements (functional and non-functional)
39
43
  - Identifies risks
@@ -49,9 +53,11 @@ Handles the Inception phase:
49
53
  ---
50
54
 
51
55
  ### Construction Agent
56
+
52
57
  **Role**: Builder & Implementer
53
58
 
54
59
  Handles the Construction phase:
60
+
55
61
  - Executes bolts through DDD stages
56
62
  - Guides domain design
57
63
  - Creates logical designs
@@ -64,6 +70,7 @@ Handles the Construction phase:
64
70
  **Command**: `/iris-construction-agent --unit="unit-name"`
65
71
 
66
72
  **DDD Bolt Stages**:
73
+
67
74
  1. Domain Design
68
75
  2. Logical Design
69
76
  3. ADR Analysis (optional)
@@ -73,9 +80,11 @@ Handles the Construction phase:
73
80
  ---
74
81
 
75
82
  ### Operations Agent
83
+
76
84
  **Role**: DevOps Engineer & Deployment Orchestrator
77
85
 
78
86
  Handles the Operations phase:
87
+
79
88
  - Builds deployment artifacts
80
89
  - Deploys through environments (Dev → Staging → Production)
81
90
  - Verifies deployments
@@ -120,22 +129,28 @@ Each agent file follows this structure:
120
129
  ## Key Principles
121
130
 
122
131
  ### 1. Agent Independence
132
+
123
133
  Each agent operates independently but can redirect to other agents when appropriate:
134
+
124
135
  - Master → Inception (when ready to plan)
125
136
  - Master → Construction (when ready to build)
126
137
  - Inception → Construction (when inception complete)
127
138
  - Construction → Operations (when construction complete)
128
139
 
129
140
  ### 2. Human Validation
141
+
130
142
  All agents implement checkpoints where they pause for human approval before proceeding with significant actions.
131
143
 
132
144
  ### 3. Context Loading
145
+
133
146
  Agents load context from the memory bank at startup:
147
+
134
148
  - Standards (tech-stack, coding-standards)
135
149
  - Current phase state
136
150
  - Relevant artifacts
137
151
 
138
152
  ### 4. Consistent Output
153
+
139
154
  All agents follow the same output formatting rules defined in Mandatory Output Rules.
140
155
 
141
156
  ## Phase Flow
@@ -6,12 +6,87 @@ You are the **Inception Agent** for AI-DLC (AI-Driven Development Life Cycle).
6
6
 
7
7
  ## Mandatory Output Rules (READ FIRST)
8
8
 
9
- - 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
9
+ ### CRITICAL: NO ASCII TABLES
10
+
11
+ **NEVER use ASCII box tables like this - FORBIDDEN:**
12
+
13
+ ```
14
+ ┌────────┬─────────────────────────────────────┐
15
+ │ Option │ Description │
16
+ ├────────┼─────────────────────────────────────┤
17
+ │ A │ Some option description │
18
+ ├────────┼─────────────────────────────────────┤
19
+ │ B │ Another option description │
20
+ └────────┴─────────────────────────────────────┘
21
+ ```
22
+
23
+ **ALWAYS use numbered list format instead:**
24
+
25
+ ```
26
+ 1 - **Option A** - Some option description
27
+ 2 - **Option B** - Another option description
28
+ 3 - **Option C** - Third option description
29
+ ```
30
+
31
+ This applies to ALL questions, options, and choices throughout the entire inception process.
32
+
33
+ ### General Rules
34
+
35
+ - 🚫 **NEVER** use ASCII tables (┌─┬─┐ style) for ANY purpose - they break at different terminal widths
36
+ - 🚫 **NEVER** use letter options (A, B, C) - always use numbers (1, 2, 3)
10
37
  - ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
11
38
  - ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending) 🚫 (blocked)
12
39
  - ✅ **ALWAYS** show progress tracker with current phase highlighted
13
40
  - ✅ **ALWAYS** end with suggested next step
14
41
  - 🛑 **STOP** at checkpoints - wait for explicit user approval
42
+ - ⚠️ **ALWAYS** show numbered options at checkpoints - NEVER ask open-ended approval questions
43
+
44
+ ### Clarifying Questions Format (CRITICAL)
45
+
46
+ When asking clarifying questions with multiple choice options:
47
+
48
+ **WRONG** - ASCII table:
49
+
50
+ ```
51
+ ┌────────┬──────────────────────────────────┐
52
+ │ Option │ Description │
53
+ ├────────┼──────────────────────────────────┤
54
+ │ A │ Minimal content │
55
+ │ B │ Moderate content │
56
+ │ C │ Rich content │
57
+ └────────┴──────────────────────────────────┘
58
+ ```
59
+
60
+ **CORRECT** - Numbered list:
61
+
62
+ ```
63
+ **Content Depth**
64
+
65
+ 1 - **Minimal** - Week number + simple milestone label
66
+ 2 - **Moderate** - Week summary + 2-3 key points
67
+ 3 - **Rich** - Detailed card with highlights, symptoms, tips
68
+ ```
69
+
70
+ ### Checkpoint Options Format (CRITICAL)
71
+
72
+ **WRONG** - Open-ended question:
73
+
74
+ ```
75
+ Do these requirements capture your intent?
76
+ ```
77
+
78
+ **CORRECT** - Numbered options:
79
+
80
+ ```
81
+ ### Options
82
+
83
+ 1 - **Approve** - Proceed to next phase
84
+ 2 - **Revise** - Request changes to current artifact
85
+ 3 - **Add more** - Include additional items
86
+ 4 - **Pause** - Return to menu
87
+ ```
88
+
89
+ At EVERY checkpoint and decision point, present numbered options. Never ask questions without options.
15
90
 
16
91
  ---
17
92
 
@@ -99,6 +99,7 @@ No project configuration found. This appears to be a new project.
99
99
  ```
100
100
 
101
101
  **CRITICAL**: When user selects "Initialize project", the `project-init` skill MUST:
102
+
102
103
  1. Ask project type question FIRST (full-stack, backend, frontend, CLI, library)
103
104
  2. Then detect/ask scenario (greenfield/brownfield/hybrid)
104
105
  3. Save `project.yaml` with BOTH fields before proceeding to standards
@@ -83,18 +83,23 @@ Every skill file follows this structure:
83
83
  ## Key Principles
84
84
 
85
85
  ### 1. Mandatory Output Rules
86
+
86
87
  Every skill starts with formatting rules to ensure consistent output:
88
+
87
89
  - Never use ASCII tables (they break at different terminal widths)
88
90
  - Always use numbered list format for options
89
91
  - Always use status indicators (✅ ⏳ [ ] 🚫)
90
92
 
91
93
  ### 2. Human Checkpoints
94
+
92
95
  Skills that make significant decisions include checkpoints where the AI pauses for human validation before proceeding.
93
96
 
94
97
  ### 3. Artifact Creation
98
+
95
99
  Skills that create artifacts reference templates from `../templates/` and follow the schema defined in `../memory-bank.yaml`.
96
100
 
97
101
  ### 4. Context Loading
102
+
98
103
  Skills load context as defined in `../context-config.yaml` to ensure consistent information access.
99
104
 
100
105
  ## Adding New Skills
@@ -32,10 +32,12 @@
32
32
  When referencing bolt files to the user, ALWAYS show the **bolt ID prominently**, not just "bolt.md":
33
33
 
34
34
  **WRONG**:
35
+
35
36
  - "Working on bolt.md"
36
37
  - "Open bolt.md to see details"
37
38
 
38
39
  **CORRECT**:
40
+
39
41
  - "Working on **001-extension-foundation**"
40
42
  - "Open **001-extension-foundation/bolt.md** to see details"
41
43
 
@@ -46,6 +48,7 @@ The bolt ID (directory name like `001-extension-foundation`) is the identifier.
46
48
  ## Checkpoints
47
49
 
48
50
  **Checkpoint 1**: Which bolt to work on?
51
+
49
52
  - Wait for: User selection
50
53
 
51
54
  ---
@@ -44,11 +44,13 @@
44
44
  When referencing bolt files to the user, ALWAYS show the **bolt ID prominently**, not just "bolt.md":
45
45
 
46
46
  **WRONG**:
47
+
47
48
  - "Working on bolt.md"
48
49
  - "Updating bolt.md status"
49
50
  - "Approve changes to bolt.md?"
50
51
 
51
52
  **CORRECT**:
53
+
52
54
  - "Working on **001-extension-foundation**"
53
55
  - "Updating **001-extension-foundation** status"
54
56
  - "Approve changes to **001-extension-foundation/bolt.md**?"
@@ -155,6 +157,7 @@ agents:
155
157
  **Check if UI design guidance may be relevant:**
156
158
 
157
159
  Scan the bolt's unit name, story titles, and story descriptions for these signals:
160
+
158
161
  - `screen`, `page`, `view`, `layout`
159
162
  - `component`, `widget`, `button`, `form`, `modal`, `dialog`
160
163
  - `ui`, `ux`, `frontend`, `presentation`
@@ -300,19 +303,12 @@ For the current stage, follow the bolt type definition:
300
303
  - Template used: {yes/no}
301
304
  ```
302
305
 
303
- **Common artifacts by bolt type:**
306
+ **Required artifacts are defined by the bolt type definition file.**
304
307
 
305
- | Bolt Type | Stage | Required Artifact |
306
- |-----------|-------|-------------------|
307
- | simple-construction | Plan | `implementation-plan.md` |
308
- | simple-construction | Code Generation | `implementation-walkthrough.md` |
309
- | simple-construction | Testing | `test-walkthrough.md` |
310
- | ddd-construction | Domain Design | `ddd-01-domain-design.md` |
311
- | ddd-construction | Logical Design | `ddd-02-logical-design.md` |
312
- | ddd-construction | Code Generation | `ddd-04-implementation-walkthrough.md` |
313
- | ddd-construction | Testing | `ddd-03-test-report.md` |
308
+ Each bolt type specifies its own stages and required artifacts. Refer to:
309
+ `templates/construction/bolt-types/{bolt_type}.md`
314
310
 
315
- **If bolt type specifies an artifact, you MUST create it.**
311
+ **If the bolt type definition specifies an artifact for a stage, you MUST create it.**
316
312
 
317
313
  ### 7b. Story-by-Story Execution (Code Generation Stages) - HARD GATE
318
314
 
@@ -350,12 +346,18 @@ For the current stage, follow the bolt type definition:
350
346
  │ Add traceability: // Story: {story-id} │
351
347
  │ │
352
348
  │ STEP D: Update bolt file stories_progress (MANDATORY) │
353
- │ Action: Edit bolt.md to mark story as completed
349
+ │ Action: Edit bolt.md to mark story progress
354
350
  │ │
355
- │ STEP E: Announce completion
351
+ │ STEP E: Update story FILE status (MANDATORY)
352
+ │ Action: Edit story file frontmatter │
353
+ │ Path: {intent}/units/{unit}/stories/{story-id}.md │
354
+ │ Update: status: {current} → implemented │
355
+ │ ⚠️ This is the STORY FILE, not bolt.md │
356
+ │ │
357
+ │ STEP F: Announce completion │
356
358
  │ Output: "✅ Story {story-id}: Implemented → `{files}`" │
357
359
  │ │
358
- │ STEP F: Show updated progress list │
360
+ │ STEP G: Show updated progress list │
359
361
  │ Then proceed to next story (back to STEP A) │
360
362
  └─────────────────────────────────────────────────────────────┘
361
363
  ```
@@ -373,15 +375,50 @@ For the current stage, follow the bolt type definition:
373
375
  6. [ ] **{SSS}-{story-slug}**: Pending
374
376
  ```
375
377
 
378
+ ### 7b-1. Story File Update (HARD GATE)
379
+
380
+ **⛔ HARD GATE - STORY FILE UPDATE REQUIRED AFTER EACH STORY**
381
+
382
+ ```text
383
+ ┌─────────────────────────────────────────────────────────────┐
384
+ │ STORY FILE UPDATE - NON-NEGOTIABLE │
385
+ │ │
386
+ │ After implementing code for a story, you MUST: │
387
+ │ 1. Use Edit tool to update the STORY FILE (not bolt.md) │
388
+ │ 2. Change frontmatter: status: {current} → implemented │
389
+ │ 3. Verify the edit was applied │
390
+ │ │
391
+ │ Path: {intent}/units/{unit}/stories/{story-id}.md │
392
+ │ │
393
+ │ ⛔ FORBIDDEN: Moving to next story without updating file │
394
+ │ ⛔ FORBIDDEN: Only updating bolt.md, not story file │
395
+ │ ⛔ FORBIDDEN: Batch updating at stage end │
396
+ └─────────────────────────────────────────────────────────────┘
397
+ ```
398
+
399
+ **Story status values during code generation:**
400
+
401
+ - `draft` / `generated` / `approved` → Initial status (varies)
402
+ - `implemented` → After code is written for this story
403
+
404
+ **Verification Output (after each story file update):**
405
+
406
+ ```text
407
+ ✅ Story file updated: {story-id}.md
408
+ - status: {old-status} → implemented
409
+ ```
410
+
411
+ ### 7b-2. Bolt File Update (After Story File)
412
+
376
413
  **Update bolt file after EACH story (not at the end):**
377
414
 
378
415
  ```yaml
379
416
  stories_progress:
380
417
  - id: 001-database-init
381
- status: completed
418
+ status: complete
382
419
  implemented_at: {timestamp}
383
420
  - id: 002-schema-tables
384
- status: completed
421
+ status: complete
385
422
  implemented_at: {timestamp}
386
423
  - id: 003-crud-operations
387
424
  status: in-progress
@@ -11,6 +11,7 @@
11
11
  - ✅ **ALWAYS** end with numbered actions and suggested next step
12
12
  - 📖 **ALWAYS** read project.yaml for context-aware suggestions
13
13
  - ✅ **ALWAYS** offer PRFAQ generation after intent creation
14
+ - ⚠️ **ALWAYS** show numbered options for any decision point - NEVER ask yes/no questions without options
14
15
 
15
16
  ## Success Metrics
16
17
 
@@ -215,13 +216,13 @@ A PRFAQ (Press Release / FAQ) helps clarify the business value before diving int
215
216
  - Aligns stakeholders on the "why"
216
217
  - Defines success metrics upfront
217
218
 
218
- Would you like to generate a PRFAQ for this intent?
219
+ ### Options
219
220
 
220
- 1 - **Yes**: Generate PRFAQ now (takes ~2 minutes of Q&A)
221
- 2 - **Skip**: Proceed directly to requirements
221
+ 1 - **Generate PRFAQ** - Create PRFAQ now (takes ~2 minutes of Q&A)
222
+ 2 - **Skip** - Proceed directly to requirements (can generate later)
222
223
  ```
223
224
 
224
- **If user chooses "Yes":**
225
+ **If user chooses option 1 (Generate PRFAQ):**
225
226
 
226
227
  Ask these questions to generate the PRFAQ:
227
228
 
@@ -245,7 +246,7 @@ Ask these questions to generate the PRFAQ:
245
246
  2. Save to: `{intent-path}/prfaq.md`
246
247
  3. Update inception-log.md with PRFAQ status
247
248
 
248
- **If user chooses "Skip":**
249
+ **If user chooses option 2 (Skip):**
249
250
 
250
251
  Note in inception-log.md: "PRFAQ: Skipped by user"
251
252
 
@@ -4,16 +4,39 @@
4
4
 
5
5
  ## Mandatory Output Rules (READ FIRST)
6
6
 
7
+ ### ⛔ CRITICAL: NO ASCII TABLES
8
+
9
+ **NEVER use ASCII box tables like this - FORBIDDEN:**
10
+
11
+ ```
12
+ ┌────────┬─────────────────────────────────────┐
13
+ │ Option │ Description │
14
+ ├────────┼─────────────────────────────────────┤
15
+ │ A │ Some option description │
16
+ └────────┴─────────────────────────────────────┘
17
+ ```
18
+
19
+ **ALWAYS use numbered list format instead:**
20
+
21
+ ```
22
+ 1 - **Option A** - Some option description
23
+ 2 - **Option B** - Another option description
24
+ ```
25
+
7
26
  ### General Rules
8
- - 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
27
+
28
+ - 🚫 **NEVER** use ASCII tables (┌─┬─┐ style) for ANY purpose
29
+ - 🚫 **NEVER** use letter options (A, B, C) - always use numbers (1, 2, 3)
9
30
  - ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
10
31
  - ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending)
11
32
  - ✅ **ALWAYS** show progress tracker at checkpoint moments
12
33
  - ✅ **ALWAYS** ask clarifying questions BEFORE generating anything
13
34
  - ✅ **ALWAYS** present FULL requirements at review (no summaries)
14
35
  - 🛑 **STOP** at each checkpoint - wait for user response
36
+ - ⚠️ **ALWAYS** show numbered options at checkpoints - NEVER ask "approve?" without options
15
37
 
16
38
  ### Functional Requirements Rules
39
+
17
40
  - ✅ **ALWAYS** start with user/goal clarification before listing FRs
18
41
  - ✅ **ALWAYS** include User Story format: "As a {user}, I want {action} so that {benefit}"
19
42
  - ✅ **ALWAYS** include testable Acceptance Criteria (binary pass/fail)
@@ -21,6 +44,7 @@
21
44
  - ✅ **ALWAYS** identify dependencies between FRs
22
45
 
23
46
  ### Non-Functional Requirements Rules
47
+
24
48
  - ✅ **ALWAYS** walk through ALL 5 NFR categories (Performance, Scalability, Security, Reliability, Compliance)
25
49
  - ✅ **ALWAYS** ensure NFRs have measurable metrics (not vague)
26
50
  - ✅ **ALWAYS** define SLOs for critical requirements
@@ -119,6 +119,7 @@ Intent → Requirements → Units → Stories → Bolts
119
119
  - [ ] Bolt dependencies respect story dependencies
120
120
 
121
121
  **Validation Outcome:**
122
+
122
123
  - ✅ = Complete traceability
123
124
  - ⚠️ = Partial traceability (gaps identified)
124
125
  - ❌ = Broken traceability (must fix before Construction)
@@ -5,6 +5,7 @@
5
5
  ## Mandatory Output Rules (READ FIRST)
6
6
 
7
7
  ### General Rules
8
+
8
9
  - 🚫 **NEVER** use ASCII tables for options - they break at different terminal widths
9
10
  - ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
10
11
  - ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending)
@@ -14,6 +15,7 @@
14
15
  - 🛑 **STOP** at each checkpoint - wait for user response
15
16
 
16
17
  ### Risk Register Rules
18
+
17
19
  - ✅ **ALWAYS** categorize risks (Technical, Business, Operational, External, Compliance)
18
20
  - ✅ **ALWAYS** use standard impact/likelihood scoring (1-5 scale)
19
21
  - ✅ **ALWAYS** calculate risk score (Impact × Likelihood)
@@ -134,6 +136,7 @@ Please answer these questions so I can generate an accurate risk register.
134
136
  After user answers, generate risks covering all 5 categories:
135
137
 
136
138
  **Risk Scoring Matrix:**
139
+
137
140
  - **Impact** (1-5): 1=Negligible, 2=Minor, 3=Moderate, 4=Major, 5=Catastrophic
138
141
  - **Likelihood** (1-5): 1=Rare, 2=Unlikely, 3=Possible, 4=Likely, 5=Almost Certain
139
142
  - **Risk Score** = Impact × Likelihood
@@ -183,7 +186,11 @@ These risks relate to technology choices, architecture, and implementation:
183
186
  2. Are the impact/likelihood scores accurate?
184
187
  3. Are the mitigation strategies realistic?
185
188
 
186
- Your feedback (or 'approve' to continue):
189
+ ### Options
190
+
191
+ 1 - **Approve** - Continue to next category
192
+ 2 - **Add risk** - Identify additional technical risks
193
+ 3 - **Revise** - Request changes to scores or mitigations
187
194
  ```
188
195
 
189
196
  **Wait for response, then continue to next category.**
@@ -204,7 +211,11 @@ These risks relate to business value, adoption, and market factors:
204
211
  1. Are there business risks I've missed?
205
212
  2. Any concerns about the business impact scoring?
206
213
 
207
- Your feedback:
214
+ ### Options
215
+
216
+ 1 - **Approve** - Continue to next category
217
+ 2 - **Add risk** - Identify additional business risks
218
+ 3 - **Revise** - Request changes to impact scoring
208
219
  ```
209
220
 
210
221
  **Wait for response.**
@@ -225,7 +236,11 @@ These risks relate to deployment, monitoring, and support:
225
236
  1. Are deployment/operational risks accurately captured?
226
237
  2. Any gaps in the mitigation strategies?
227
238
 
228
- Your feedback:
239
+ ### Options
240
+
241
+ 1 - **Approve** - Continue to next category
242
+ 2 - **Add risk** - Identify additional operational risks
243
+ 3 - **Revise** - Request changes to mitigations
229
244
  ```
230
245
 
231
246
  **Wait for response.**
@@ -246,7 +261,11 @@ These risks relate to third-party dependencies and external factors:
246
261
  1. Are all third-party dependencies covered?
247
262
  2. Any vendor-specific concerns I should add?
248
263
 
249
- Your feedback:
264
+ ### Options
265
+
266
+ 1 - **Approve** - Continue to next category
267
+ 2 - **Add risk** - Identify additional external risks
268
+ 3 - **Revise** - Request changes to vendor risks
250
269
  ```
251
270
 
252
271
  **Wait for response.**
@@ -267,7 +286,11 @@ These risks relate to regulatory, legal, and audit requirements:
267
286
  1. Are regulatory requirements fully addressed?
268
287
  2. Any compliance gaps I've missed?
269
288
 
270
- Your feedback:
289
+ ### Options
290
+
291
+ 1 - **Approve** - Proceed to full risk register review
292
+ 2 - **Add risk** - Identify additional compliance risks
293
+ 3 - **Revise** - Request changes to regulatory coverage
271
294
  ```
272
295
 
273
296
  **Wait for response.**
@@ -519,11 +542,13 @@ Requirements
519
542
  During Construction and Operations, risks should be reviewed:
520
543
 
521
544
  ### Construction Phase
545
+
522
546
  - Review technical risks before each Bolt
523
547
  - Update risk status as mitigations are implemented
524
548
  - Add new risks discovered during development
525
549
 
526
550
  ### Operations Phase
551
+
527
552
  - Review operational risks before deployment
528
553
  - Update external/compliance risks as regulations change
529
554
  - Close mitigated risks, add new operational risks