olympus-ai 4.0.1 → 4.0.3

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.
@@ -24,482 +24,107 @@ The AI model intelligently assesses what stages are needed based on:
24
24
  - Load `~/.claude/olympus/rules/common/question-format-guide.md` for question formatting rules
25
25
  - Load `~/.claude/olympus/rules/common/terminology.md` for phase/stage naming conventions
26
26
  - Load `~/.claude/olympus/rules/common/error-handling.md` for error recovery procedures
27
- - Reference these throughout the workflow execution
28
27
 
29
28
  ## MANDATORY: Content Validation
30
29
 
31
- **CRITICAL**: Before creating ANY file, you MUST validate content according to `~/.claude/olympus/rules/common/content-validation.md` rules:
32
- - Validate Mermaid diagram syntax
33
- - Validate ASCII art diagrams (see `~/.claude/olympus/rules/common/ascii-diagram-standards.md`)
34
- - Escape special characters properly
35
- - Provide text alternatives for complex visual content
36
- - Test content parsing compatibility
30
+ Before creating ANY file, validate content per `~/.claude/olympus/rules/common/content-validation.md`:
31
+ Mermaid syntax, ASCII diagrams, special character escaping, text alternatives.
37
32
 
38
33
  ## MANDATORY: Question File Format
39
34
 
40
- **CRITICAL**: When asking questions at any phase, you MUST follow question format guidelines.
41
-
42
- **See `~/.claude/olympus/rules/common/question-format-guide.md` for complete question formatting rules including**:
43
- - Multiple choice format (A, B, C, D, E options)
44
- - [Answer]: tag usage
45
- - Answer validation and ambiguity resolution
35
+ Follow `~/.claude/olympus/rules/common/question-format-guide.md` for multiple choice format, [Answer]: tags, and validation.
46
36
 
47
37
  ## MANDATORY: Custom Welcome Message
48
38
 
49
- **CRITICAL**: When starting ANY software development request, you MUST display the welcome message.
50
-
51
- **How to Display Welcome Message**:
52
- 1. Load the welcome message from `~/.claude/olympus/rules/common/welcome-message.md`
53
- 2. Display the complete message to the user
54
- 3. This should only be done ONCE at the start of a new workflow
55
- 4. Do NOT load this file in subsequent interactions to save context space
56
-
57
- # Adaptive Software Development Workflow
39
+ At workflow start, load and display `~/.claude/olympus/rules/common/welcome-message.md` once.
58
40
 
59
41
  ---
60
42
 
61
- # INCEPTION PHASE
62
-
63
- **Purpose**: Planning, requirements gathering, and architectural decisions
43
+ # INCEPTION PHASE — Determine WHAT to build and WHY
64
44
 
65
- **Focus**: Determine WHAT to build and WHY
66
-
67
- **Stages in INCEPTION PHASE**:
68
- - Workspace Detection (ALWAYS)
69
- - Reverse Engineering (CONDITIONAL - Brownfield only)
70
- - Requirements Analysis (ALWAYS - Adaptive depth)
71
- - User Stories (CONDITIONAL)
72
- - Workflow Planning (ALWAYS)
73
- - Application Design (CONDITIONAL)
74
- - Units Generation (CONDITIONAL)
75
-
76
- ---
45
+ Each stage: load its rule file BEFORE executing, log all interactions in audit.md, wait for explicit user approval before proceeding (do not auto-advance).
77
46
 
78
- ## Workspace Detection (ALWAYS EXECUTE)
79
-
80
- 1. **MANDATORY**: Log initial user request in audit.md with complete raw input
81
- 2. Load all steps from `~/.claude/olympus/rules/inception/workspace-detection.md`
82
- 3. Execute workspace detection:
83
- - Check for existing aidlc-state.md (resume if found)
84
- - Scan workspace for existing code
85
- - Determine if brownfield or greenfield
86
- - Check for existing reverse engineering artifacts
87
- 4. Determine next phase: Reverse Engineering (if brownfield and no artifacts) OR Requirements Analysis
88
- 5. **MANDATORY**: Log findings in audit.md
89
- 6. Present completion message to user (see workspace-detection.md for message formats)
90
- 7. Automatically proceed to next phase
91
-
92
- ## Reverse Engineering (CONDITIONAL - Brownfield Only)
93
-
94
- **Execute IF**:
95
- - Existing codebase detected
96
- - No previous reverse engineering artifacts found
97
-
98
- **Skip IF**:
99
- - Greenfield project
100
- - Previous reverse engineering artifacts exist
101
-
102
- **Execution**:
103
- 1. **MANDATORY**: Log start of reverse engineering in audit.md
104
- 2. Load all steps from `~/.claude/olympus/rules/inception/reverse-engineering.md`
105
- 3. Execute reverse engineering — delegate to `explore-medium` for codebase analysis:
106
- - Analyze all packages and components
107
- - Generate a business overview of the whole system covering the business transactions
108
- - Generate architecture documentation
109
- - Generate code structure documentation
110
- - Generate API documentation
111
- - Generate component inventory
112
- - Generate Interaction Diagrams depicting how business transactions are implemented across components
113
- - Generate technology stack documentation
114
- - Generate dependencies documentation
115
-
116
- 4. **Wait for Explicit Approval**: Present detailed completion message (see reverse-engineering.md for message format) - DO NOT PROCEED until user confirms
117
- 5. **MANDATORY**: Log user's response in audit.md with complete raw input
118
-
119
- ## Requirements Analysis (ALWAYS EXECUTE - Adaptive Depth)
120
-
121
- **Always executes** but depth varies based on request clarity and complexity:
122
- - **Minimal**: Simple, clear request - just document intent analysis
123
- - **Standard**: Normal complexity - gather functional and non-functional requirements
124
- - **Comprehensive**: Complex, high-risk - detailed requirements with traceability
125
-
126
- **Execution**:
127
- 1. **MANDATORY**: Log any user input during this phase in audit.md
128
- 2. Load all steps from `~/.claude/olympus/rules/inception/requirements-analysis.md`
129
- 3. Execute requirements analysis:
130
- - Load reverse engineering artifacts (if brownfield)
131
- - Analyze user request (intent analysis)
132
- - Determine requirements depth needed
133
- - Assess current requirements
134
- - Ask clarifying questions (if needed)
135
- - Generate requirements document
136
- 4. Execute at appropriate depth (minimal/standard/comprehensive)
137
- 5. **Wait for Explicit Approval**: Follow approval format from requirements-analysis.md detailed steps - DO NOT PROCEED until user confirms
138
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
139
-
140
- ## User Stories (CONDITIONAL)
141
-
142
- **INTELLIGENT ASSESSMENT**: Use multi-factor analysis to determine if user stories add value:
143
-
144
- **ALWAYS Execute IF** (High Priority Indicators):
145
- - New user-facing features or functionality
146
- - Changes affecting user workflows or interactions
147
- - Multiple user types or personas involved
148
- - Complex business requirements with acceptance criteria needs
149
- - Cross-functional team collaboration required
150
- - Customer-facing API or service changes
151
- - New product capabilities or enhancements
152
-
153
- **LIKELY Execute IF** (Medium Priority - Assess Complexity):
154
- - Modifications to existing user-facing features
155
- - Backend changes that indirectly affect user experience
156
- - Integration work that impacts user workflows
157
- - Performance improvements with user-visible benefits
158
- - Security enhancements affecting user interactions
159
- - Data model changes affecting user data or reports
160
-
161
- **COMPLEXITY-BASED ASSESSMENT**: For medium priority cases, execute user stories if:
162
- - Request involves multiple components or services
163
- - Changes span multiple user touchpoints
164
- - Business logic is complex or has multiple scenarios
165
- - Requirements have ambiguity that stories could clarify
166
- - Implementation affects multiple user journeys
167
- - Change has significant business impact or risk
168
-
169
- **SKIP ONLY IF** (Low Priority - Simple Cases):
170
- - Pure internal refactoring with zero user impact
171
- - Simple bug fixes with clear, isolated scope
172
- - Infrastructure changes with no user-facing effects
173
- - Technical debt cleanup with no functional changes
174
- - Developer tooling or build process improvements
175
- - Documentation-only updates
176
-
177
- **ASSESSMENT CRITERIA**: When in doubt, favor inclusion of user stories for:
178
- - Requests with business stakeholder involvement
179
- - Changes requiring user acceptance testing
180
- - Features with multiple implementation approaches
181
- - Work that benefits from shared team understanding
182
- - Projects where requirements clarity is valuable
183
-
184
- **ASSESSMENT PROCESS**:
185
- 1. Analyze request complexity and scope
186
- 2. Identify user impact (direct or indirect)
187
- 3. Evaluate business context and stakeholder needs
188
- 4. Consider team collaboration benefits
189
- 5. Default to inclusion for borderline cases
190
-
191
- **Note**: If Requirements Analysis executed, Stories can reference and build upon those requirements.
192
-
193
- **User Stories has two parts within one stage**:
194
- 1. **Part 1 - Planning**: Create story plan with questions, collect answers, analyze for ambiguities, get approval
195
- 2. **Part 2 - Generation**: Execute approved plan to generate stories and personas
196
-
197
- **Execution**:
198
- 1. **MANDATORY**: Log any user input during this phase in audit.md
199
- 2. Load all steps from `~/.claude/olympus/rules/inception/user-stories.md`
200
- 3. **MANDATORY**: Perform intelligent assessment (Step 1 in user-stories.md) to validate user stories are needed
201
- 4. Load reverse engineering artifacts (if brownfield)
202
- 5. If Requirements exist, reference them when creating stories
203
- 6. Execute at appropriate depth (minimal/standard/comprehensive)
204
- 7. **PART 1 - Planning**: Create story plan with questions, wait for user answers, analyze for ambiguities, get approval
205
- 8. **PART 2 - Generation**: Execute approved plan to generate stories and personas
206
- 9. **Wait for Explicit Approval**: Follow approval format from user-stories.md detailed steps - DO NOT PROCEED until user confirms
207
- 10. **MANDATORY**: Log user's response in audit.md with complete raw input
208
-
209
- ## Workflow Planning (ALWAYS EXECUTE)
210
-
211
- 1. **MANDATORY**: Log any user input during this phase in audit.md
212
- 2. Load all steps from `~/.claude/olympus/rules/inception/workflow-planning.md`
213
- 3. **MANDATORY**: Load content validation rules from `~/.claude/olympus/rules/common/content-validation.md`
214
- 4. Load all prior context:
215
- - Reverse engineering artifacts (if brownfield)
216
- - Intent analysis
217
- - Requirements (if executed)
218
- - User stories (if executed)
219
- 5. Execute workflow planning:
220
- - Determine which phases to execute
221
- - Determine depth level for each phase
222
- - Create multi-package change sequence (if brownfield)
223
- - Generate workflow visualization (VALIDATE Mermaid syntax before writing)
224
- 6. **MANDATORY**: Validate all content before file creation per content-validation.md rules
225
- 7. **Wait for Explicit Approval**: Present recommendations using language from workflow-planning.md Step 9, emphasizing user control to override recommendations - DO NOT PROCEED until user confirms
226
- 8. **MANDATORY**: Log user's response in audit.md with complete raw input
227
-
228
- ## Application Design (CONDITIONAL)
229
-
230
- **Execute IF**:
231
- - New components or services needed
232
- - Component methods and business rules need definition
233
- - Service layer design required
234
- - Component dependencies need clarification
235
-
236
- **Skip IF**:
237
- - Changes within existing component boundaries
238
- - No new components or methods
239
- - Pure implementation changes
240
-
241
- **Execution**:
242
- 1. **MANDATORY**: Log any user input during this phase in audit.md
243
- 2. Load all steps from `~/.claude/olympus/rules/inception/application-design.md`
244
- 3. Load reverse engineering artifacts (if brownfield)
245
- 4. Execute at appropriate depth (minimal/standard/comprehensive) — delegate to `oracle` for architecture decisions
246
- 5. **Wait for Explicit Approval**: Present detailed completion message (see application-design.md for message format) - DO NOT PROCEED until user confirms
247
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
248
-
249
- ## Units Generation (CONDITIONAL)
250
-
251
- **Execute IF**:
252
- - System needs decomposition into multiple units of work
253
- - Multiple services or modules required
254
- - Complex system requiring structured breakdown
255
-
256
- **Skip IF**:
257
- - Single simple unit
258
- - No decomposition needed
259
- - Straightforward single-component implementation
260
-
261
- **Execution**:
262
- 1. **MANDATORY**: Log any user input during this phase in audit.md
263
- 2. Load all steps from `~/.claude/olympus/rules/inception/units-generation.md`
264
- 3. Load reverse engineering artifacts (if brownfield)
265
- 4. Execute at appropriate depth (minimal/standard/comprehensive)
266
- 5. **Wait for Explicit Approval**: Present detailed completion message (see units-generation.md for message format) - DO NOT PROCEED until user confirms
267
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
47
+ | Stage | Condition | Rule File |
48
+ |-------|-----------|-----------|
49
+ | Workspace Detection | ALWAYS | `~/.claude/olympus/rules/inception/workspace-detection.md` |
50
+ | Reverse Engineering | Brownfield only (no prior artifacts) | `~/.claude/olympus/rules/inception/reverse-engineering.md` |
51
+ | Requirements Analysis | ALWAYS (adaptive depth) | `~/.claude/olympus/rules/inception/requirements-analysis.md` |
52
+ | User Stories | Conditional (new user-facing features, multiple personas, complex requirements) | `~/.claude/olympus/rules/inception/user-stories.md` |
53
+ | Workflow Planning | ALWAYS | `~/.claude/olympus/rules/inception/workflow-planning.md` |
54
+ | Application Design | Conditional (new components/services needed) | `~/.claude/olympus/rules/inception/application-design.md` |
55
+ | Units Generation | Conditional (multiple units of work needed) | `~/.claude/olympus/rules/inception/units-generation.md` |
268
56
 
269
57
  ---
270
58
 
271
- # CONSTRUCTION PHASE
272
-
273
- **Purpose**: Detailed design, NFR implementation, and code generation
274
-
275
- **Focus**: Determine HOW to build it
276
-
277
- **Stages in CONSTRUCTION PHASE**:
278
- - Per-Unit Loop (executes for each unit):
279
- - Functional Design (CONDITIONAL, per-unit)
280
- - NFR Requirements (CONDITIONAL, per-unit)
281
- - NFR Design (CONDITIONAL, per-unit)
282
- - Infrastructure Design (CONDITIONAL, per-unit)
283
- - Code Generation (ALWAYS, per-unit)
284
- - Build and Test (ALWAYS - after all units complete)
285
-
286
- **Note**: Each unit is completed fully (design + code) before moving to the next unit.
287
-
288
- ---
59
+ # CONSTRUCTION PHASE — Determine HOW to build it
289
60
 
290
- ## Per-Unit Loop (Executes for Each Unit)
291
-
292
- **For each unit of work, execute the following stages in sequence:**
293
-
294
- Units are identified by name (e.g., `{unit-name}`) — not by numbered codes.
295
- Each unit produces its own directory under `aidlc-docs/{workflow-id}/construction/{unit-name}/`.
296
-
297
- ### Functional Design (CONDITIONAL, per-unit)
298
-
299
- **Execute IF**:
300
- - New data models or schemas
301
- - Complex business logic
302
- - Business rules need detailed design
303
-
304
- **Skip IF**:
305
- - Simple logic changes
306
- - No new business logic
307
-
308
- **Execution**:
309
- 1. **MANDATORY**: Log any user input during this stage in audit.md
310
- 2. Load all steps from `~/.claude/olympus/rules/construction/functional-design.md`
311
- 3. Execute functional design for this unit — delegate to `oracle-medium` for design decisions
312
- 4. **MANDATORY**: Present standardized 2-option completion message as defined in functional-design.md - DO NOT use emergent 3-option behavior
313
- 5. **Wait for Explicit Approval**: User must choose between "Request Changes" or "Continue to Next Stage" - DO NOT PROCEED until user confirms
314
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
315
-
316
- ### NFR Requirements (CONDITIONAL, per-unit)
317
-
318
- **Execute IF**:
319
- - Performance requirements exist
320
- - Security considerations needed
321
- - Scalability concerns present
322
- - Tech stack selection required
323
-
324
- **Skip IF**:
325
- - No NFR requirements
326
- - Tech stack already determined
327
-
328
- **Execution**:
329
- 1. **MANDATORY**: Log any user input during this stage in audit.md
330
- 2. Load all steps from `~/.claude/olympus/rules/construction/nfr-requirements.md`
331
- 3. Execute NFR assessment for this unit
332
- 4. **MANDATORY**: Present standardized 2-option completion message as defined in nfr-requirements.md - DO NOT use emergent behavior
333
- 5. **Wait for Explicit Approval**: User must choose between "Request Changes" or "Continue to Next Stage" - DO NOT PROCEED until user confirms
334
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
335
-
336
- ### NFR Design (CONDITIONAL, per-unit)
337
-
338
- **Execute IF**:
339
- - NFR Requirements was executed
340
- - NFR patterns need to be incorporated
341
-
342
- **Skip IF**:
343
- - No NFR requirements
344
- - NFR Requirements Assessment was skipped
345
-
346
- **Execution**:
347
- 1. **MANDATORY**: Log any user input during this stage in audit.md
348
- 2. Load all steps from `~/.claude/olympus/rules/construction/nfr-design.md`
349
- 3. Execute NFR design for this unit
350
- 4. **MANDATORY**: Present standardized 2-option completion message as defined in nfr-design.md - DO NOT use emergent behavior
351
- 5. **Wait for Explicit Approval**: User must choose between "Request Changes" or "Continue to Next Stage" - DO NOT PROCEED until user confirms
352
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
353
-
354
- ### Infrastructure Design (CONDITIONAL, per-unit)
355
-
356
- **Execute IF**:
357
- - Infrastructure services need mapping
358
- - Deployment architecture required
359
- - Cloud resources need specification
360
-
361
- **Skip IF**:
362
- - No infrastructure changes
363
- - Infrastructure already defined
364
-
365
- **Execution**:
366
- 1. **MANDATORY**: Log any user input during this stage in audit.md
367
- 2. Load all steps from `~/.claude/olympus/rules/construction/infrastructure-design.md`
368
- 3. Execute infrastructure design for this unit
369
- 4. **MANDATORY**: Present standardized 2-option completion message as defined in infrastructure-design.md - DO NOT use emergent behavior
370
- 5. **Wait for Explicit Approval**: User must choose between "Request Changes" or "Continue to Next Stage" - DO NOT PROCEED until user confirms
371
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
372
-
373
- ### Code Generation (ALWAYS EXECUTE, per-unit)
374
-
375
- **Always executes for each unit**
376
-
377
- **Code Generation is two-part within one stage**:
378
- 1. **Part 1 - Planning**: Create a detailed code generation plan with explicit steps and checkboxes; present to user for approval
379
- 2. **Part 2 - Generation**: Execute the approved plan to generate code, tests, and artifacts — delegate to `olympian` or `olympian-high` (for complex units)
380
-
381
- **Execution**:
382
- 1. **MANDATORY**: Log any user input during this stage in audit.md
383
- 2. Load all steps from `~/.claude/olympus/rules/construction/code-generation.md`
384
- 3. **PART 1 - Planning**: Create code generation plan with checkboxes, get user approval
385
- 4. **PART 2 - Generation**: Execute approved plan; delegate implementation to `olympian`
386
- 5. **MANDATORY**: Present standardized 2-option completion message as defined in code-generation.md - DO NOT use emergent behavior
387
- 6. **Wait for Explicit Approval**: User must choose between "Request Changes" or "Continue to Next Stage" - DO NOT PROCEED until user confirms
388
- 7. **MANDATORY**: Log user's response in audit.md with complete raw input
61
+ Each unit is completed fully (design + code) before moving to the next unit. Construction stages use standardized 2-option completion messages (Request Changes / Continue) — NO emergent 3-option behavior.
389
62
 
390
- ---
63
+ **Per-Unit Loop** (for each unit of work):
391
64
 
392
- ## Build and Test (ALWAYS EXECUTE)
65
+ | Stage | Condition | Rule File |
66
+ |-------|-----------|-----------|
67
+ | Functional Design | Conditional (new data models, complex business logic) | `~/.claude/olympus/rules/construction/functional-design.md` |
68
+ | NFR Requirements | Conditional (performance, security, scalability, tech stack) | `~/.claude/olympus/rules/construction/nfr-requirements.md` |
69
+ | NFR Design | Conditional (NFR Requirements was executed) | `~/.claude/olympus/rules/construction/nfr-design.md` |
70
+ | Infrastructure Design | Conditional (infra services, deployment arch) | `~/.claude/olympus/rules/construction/infrastructure-design.md` |
71
+ | Code Generation | ALWAYS (two-part: plan then generate) | `~/.claude/olympus/rules/construction/code-generation.md` |
393
72
 
394
- 1. **MANDATORY**: Log any user input during this phase in audit.md
395
- 2. Load all steps from `~/.claude/olympus/rules/construction/build-and-test.md`
396
- 3. Generate comprehensive build and test instructions — delegate to `qa-tester` for test execution:
397
- - Build instructions for all units
398
- - Unit test execution instructions
399
- - Integration test instructions (test interactions between units)
400
- - Performance test instructions (if applicable)
401
- - Additional test instructions as needed (contract tests, security tests, e2e tests)
402
- 4. Create instruction files in build-and-test/ subdirectory: build-instructions.md, unit-test-instructions.md, integration-test-instructions.md, performance-test-instructions.md, build-and-test-summary.md
403
- 5. **Wait for Explicit Approval**: Ask: "**Build and test instructions complete. Ready to proceed to Operations stage?**" - DO NOT PROCEED until user confirms
404
- 6. **MANDATORY**: Log user's response in audit.md with complete raw input
73
+ **Build and Test** (ALWAYS, after all units): Load `~/.claude/olympus/rules/construction/build-and-test.md`
405
74
 
406
75
  ---
407
76
 
408
- # OPERATIONS PHASE
409
-
410
- **Purpose**: Placeholder for future deployment and monitoring workflows
411
-
412
- **Focus**: How to DEPLOY and RUN it (future expansion)
413
-
414
- **Stages in OPERATIONS PHASE**:
415
- - Operations (PLACEHOLDER)
77
+ # OPERATIONS PHASE — Placeholder for future deployment/monitoring workflows
416
78
 
417
79
  ---
418
80
 
419
- ## Operations (PLACEHOLDER)
420
-
421
- **Status**: This stage is currently a placeholder for future expansion.
422
-
423
- The Operations stage will eventually include:
424
- - Deployment planning and execution
425
- - Monitoring and observability setup
426
- - Incident response procedures
427
- - Maintenance and support workflows
428
- - Production readiness checklists
429
-
430
- **Current State**: All build and test activities are handled in the CONSTRUCTION phase.
431
-
432
81
  ## Key Principles
433
82
 
434
83
  - **Adaptive Execution**: Only execute stages that add value
435
- - **Transparent Planning**: Always show execution plan before starting
436
84
  - **User Control**: User can request stage inclusion/exclusion
437
85
  - **Progress Tracking**: Update aidlc-state.md with executed and skipped stages
438
86
  - **Complete Audit Trail**: Log ALL user inputs and AI responses in audit.md with timestamps
439
- - **CRITICAL**: Capture user's COMPLETE RAW INPUT exactly as provided
440
- - **CRITICAL**: Never summarize or paraphrase user input in audit log
441
- - **CRITICAL**: Log every interaction, not just approvals
442
- - **Quality Focus**: Complex changes get full treatment, simple changes stay efficient
443
- - **Content Validation**: Always validate content before file creation per content-validation.md rules
444
- - **NO EMERGENT BEHAVIOR**: Construction phases MUST use standardized 2-option completion messages as defined in their respective rule files. DO NOT create 3-option menus or other emergent navigation patterns.
87
+ - Capture user's COMPLETE RAW INPUT exactly as provided (never summarize)
88
+ - Log every interaction, not just approvals
89
+ - **Content Validation**: Validate before file creation per content-validation.md rules
90
+ - **NO EMERGENT BEHAVIOR**: Construction phases use standardized 2-option completion messages only
445
91
 
446
92
  ## MANDATORY: Plan-Level Checkbox Enforcement
447
93
 
448
- ### MANDATORY RULES FOR PLAN EXECUTION
449
- 1. **NEVER complete any work without updating plan checkboxes**
450
- 2. **IMMEDIATELY after completing ANY step described in a plan file, mark that step [x]**
451
- 3. **This must happen in the SAME interaction where the work is completed**
452
- 4. **NO EXCEPTIONS**: Every plan step completion MUST be tracked with checkbox updates
453
-
454
- ### Two-Level Checkbox Tracking System
455
- - **Plan-Level**: Track detailed execution progress within each stage
456
- - **Stage-Level**: Track overall workflow progress in aidlc-state.md
457
- - **Update immediately**: All progress updates in SAME interaction where work is completed
94
+ 1. NEVER complete any work without updating plan checkboxes
95
+ 2. IMMEDIATELY mark steps `[x]` in the SAME interaction where work is completed
96
+ 3. Two-Level tracking: Plan-Level (detailed steps) + Stage-Level (aidlc-state.md)
458
97
 
459
98
  ## Prompts Logging Requirements
460
- - **MANDATORY**: Log EVERY user input (prompts, questions, responses) with timestamp in audit.md
461
- - **MANDATORY**: Capture user's COMPLETE RAW INPUT exactly as provided (never summarize)
462
- - **MANDATORY**: Log every approval prompt with timestamp before asking the user
463
- - **MANDATORY**: Record every user response with timestamp after receiving it
464
- - **CRITICAL**: ALWAYS append changes to EDIT audit.md file, NEVER use tools and commands that completely overwrite its contents
465
- - Use ISO 8601 format for timestamps (YYYY-MM-DDTHH:MM:SSZ)
466
- - Include stage context for each entry
99
+
100
+ - Log EVERY user input with ISO 8601 timestamp in audit.md
101
+ - Capture COMPLETE RAW INPUT exactly as provided (never summarize)
102
+ - ALWAYS append/edit audit.md NEVER overwrite
467
103
 
468
104
  ### Audit Log Format:
469
105
  ```markdown
470
- ## [Stage Name or Interaction Type]
106
+ ## [Stage Name]
471
107
  **Timestamp**: [ISO timestamp]
472
- **User Input**: "[Complete raw user input - never summarized]"
473
- **AI Response**: "[AI's response or action taken]"
474
- **Context**: [Stage, action, or decision made]
108
+ **User Input**: "[Complete raw user input]"
109
+ **AI Response**: "[Action taken]"
110
+ **Context**: [Stage/decision]
475
111
 
476
112
  ---
477
113
  ```
478
114
 
479
- ### Correct Tool Usage for audit.md
480
-
481
- CORRECT:
482
- 1. Read the audit.md file
483
- 2. Append/Edit the file to make changes
484
-
485
- WRONG:
486
- 1. Read the audit.md file
487
- 2. Completely overwrite the audit.md with the contents of what you read, plus the new changes you want to add to it
488
-
489
115
  ## Directory Structure
490
116
 
491
117
  ```text
492
118
  <WORKSPACE-ROOT>/ # APPLICATION CODE HERE
493
- ├── [project-specific structure] # Varies by project (see code-generation.md)
494
-
119
+ ├── [project-specific structure]
495
120
  ├── aidlc-docs/ # DOCUMENTATION ONLY
496
- │ ├── inception/ # INCEPTION PHASE
121
+ │ ├── inception/
497
122
  │ │ ├── plans/
498
123
  │ │ ├── reverse-engineering/ # Brownfield only
499
124
  │ │ ├── requirements/
500
125
  │ │ ├── user-stories/
501
126
  │ │ └── application-design/
502
- │ ├── construction/ # CONSTRUCTION PHASE
127
+ │ ├── construction/
503
128
  │ │ ├── plans/
504
129
  │ │ ├── {unit-name}/
505
130
  │ │ │ ├── functional-design/
@@ -508,59 +133,36 @@ WRONG:
508
133
  │ │ │ ├── infrastructure-design/
509
134
  │ │ │ └── code/ # Markdown summaries only
510
135
  │ │ └── build-and-test/
511
- │ ├── operations/ # OPERATIONS PHASE (placeholder)
136
+ │ ├── operations/ # Placeholder
512
137
  │ ├── aidlc-state.md
513
138
  │ └── audit.md
514
139
  ```
515
140
 
516
- **CRITICAL RULE**:
517
- - Application code: Workspace root (NEVER in aidlc-docs/)
518
- - Documentation: aidlc-docs/ only
519
- - Project structure: See code-generation.md for patterns by project type
141
+ Application code: workspace root (NEVER in aidlc-docs/). Documentation: aidlc-docs/ only.
520
142
 
521
143
  ## Olympus Agent Delegation
522
144
 
523
- When executing AI-DLC workflow stages, Olympus delegates to specialized agents:
524
-
525
- | Stage | Agent | Recommended Skills | Purpose |
526
- |-------|-------|--------------------|---------|
527
- | Discovery/Reverse Engineering | `explore-medium` | | Codebase analysis |
528
- | Reverse Engineering (visual) | `multimodal-looker` (optional) | — | Architecture diagram extraction |
529
- | Intent/Requirements | `prometheus` | | Strategic planning with interview |
530
- | Requirements Analysis | `metis` (optional) | | Blind spot analysis |
531
- | User Stories | `oracle-medium` | | Story and persona generation |
532
- | Application Design | `oracle` | | Architecture decisions |
533
- | Application Design (review) | `momus` (optional) | | Design quality gate |
534
- | Units Generation | `olympian` | — | Decomposition execution |
535
- | Units Generation (review) | `momus` (optional) | — | Decomposition quality gate |
536
- | Functional Design | `oracle-medium` | — | Design decisions |
537
- | NFR Requirements | `oracle-medium` | — | NFR assessment |
538
- | NFR Requirements (validation) | `librarian` (optional) | — | Technology doc verification |
539
- | NFR Design | `oracle-medium` | | Design pattern incorporation |
540
- | Infrastructure Design | `oracle-medium` | — | Infrastructure mapping |
541
- | Code Generation (backend) | `olympian` or `olympian-high` | `ascent`, `ultrawork` | Backend/general implementation |
542
- | Code Generation (frontend) | `frontend-engineer` or `frontend-engineer-high` | `ascent`, `ultrawork` | UI/component implementation |
543
- | Build & Test | `qa-tester` | `ascent` | Testing and verification |
544
- | Review | `momus` | — | Critical evaluation |
545
-
546
- Use the Task tool to delegate. Run independent stages in parallel when profitable.
547
-
548
- ## Recommended Skill Stacking for AI-DLC
549
-
550
- The `/plan` command starts the AI-DLC workflow. For maximum effectiveness during the construction phase, users should stack additional Olympus skills:
551
-
552
- | Combination | Effect | Best For |
553
- |-------------|--------|----------|
554
- | `/plan` alone | Structured workflow with agent delegation | Standard features, single-unit work |
555
- | `/plan` + `/ascent` | Adds persistence — orchestrator cannot stop until all units complete | Multi-unit construction loops |
556
- | `/plan` + `/ultrawork` | Adds parallel execution and verification guarantees | Large implementations, independent units |
557
- | `/plan` + `/ascent` + `/ultrawork` | Full Olympus power: parallel, persistent, verified | Complex multi-unit features |
558
-
559
- **How skills enhance the orchestrator during AI-DLC**:
560
- - **`/ascent`** — Ensures the orchestrator persists through all construction units without stopping early. Enforces todo tracking and continuation.
561
- - **`/ultrawork`** — Enables parallel Task calls for independent units, adds mandatory independent verification after every agent delegation, and enforces zero-tolerance for incomplete work.
562
- - Skills modify the **orchestrator's behavior** (how it manages the workflow), not the sub-agents. Sub-agents are always delegated to via the Task tool with their own specific prompts.
145
+ | Stage | Agent | Purpose |
146
+ |-------|-------|---------|
147
+ | Discovery/Reverse Engineering | `explore-medium` | Codebase analysis |
148
+ | Intent/Requirements | `prometheus` | Strategic planning with interview |
149
+ | User Stories | `oracle-medium` | Story and persona generation |
150
+ | Application Design | `oracle` | Architecture decisions |
151
+ | Functional/NFR/Infrastructure Design | `oracle-medium` | Design decisions |
152
+ | Code Generation (backend) | `olympian` or `olympian-high` | Implementation |
153
+ | Code Generation (frontend) | `frontend-engineer` or `frontend-engineer-high` | UI implementation |
154
+ | Build & Test | `qa-tester` | Testing and verification |
155
+ | Review | `momus` | Critical evaluation |
156
+
157
+ ## Skill Stacking for AI-DLC
158
+
159
+ | Combination | Effect |
160
+ |-------------|--------|
161
+ | `/plan` alone | Structured workflow with agent delegation |
162
+ | `/plan` + `/ascent` | Adds persistence cannot stop until all units complete |
163
+ | `/plan` + `/ultrawork` | Adds parallel execution and verification guarantees |
164
+ | `/plan` + `/ascent` + `/ultrawork` | Full power: parallel, persistent, verified |
563
165
 
564
166
  ## Extensions
565
167
 
566
- Custom project-specific rule extensions can be placed in `.aidlc-rule-details/extensions/` at the workspace root. Files in that directory are loaded in addition to the standard rules above and take precedence for any rules they redefine.
168
+ Custom extensions in `.aidlc-rule-details/extensions/` at workspace root take precedence over standard rules.