olympus-ai 4.5.13 → 4.5.14

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 (49) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/cli/index.js +63 -27
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/hooks/olympus-hooks.cjs +257 -257
  5. package/dist/installer/hooks.d.ts +47 -14
  6. package/dist/installer/hooks.d.ts.map +1 -1
  7. package/dist/installer/hooks.js +45 -77
  8. package/dist/installer/hooks.js.map +1 -1
  9. package/dist/installer/index.d.ts +8 -7
  10. package/dist/installer/index.d.ts.map +1 -1
  11. package/dist/installer/index.js +49 -46
  12. package/dist/installer/index.js.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/config/risk-keywords.json +5 -5
  15. package/resources/rules/common/ascii-diagram-standards.md +115 -115
  16. package/resources/rules/common/content-validation.md +131 -131
  17. package/resources/rules/common/error-handling.md +430 -430
  18. package/resources/rules/common/markdown-formatting.md +170 -170
  19. package/resources/rules/common/overconfidence-prevention.md +100 -100
  20. package/resources/rules/common/pathway-behaviors.json +60 -60
  21. package/resources/rules/common/pathway-behaviors.md +100 -100
  22. package/resources/rules/common/process-overview.md +157 -157
  23. package/resources/rules/common/terminal-formatting.md +161 -161
  24. package/resources/rules/common/terminology.md +189 -189
  25. package/resources/rules/common/welcome-message.md +118 -118
  26. package/resources/rules/common/workflow-changes.md +285 -285
  27. package/resources/rules/construction/bolt-planning.md +153 -153
  28. package/resources/rules/construction/bolt-review.md +143 -143
  29. package/resources/rules/construction/build-and-test.md +527 -527
  30. package/resources/rules/construction/code-generation.md +414 -414
  31. package/resources/rules/construction/documentation.md +201 -201
  32. package/resources/rules/construction/functional-design.md +135 -135
  33. package/resources/rules/construction/infrastructure-design.md +110 -110
  34. package/resources/rules/construction/nfr-design.md +106 -106
  35. package/resources/rules/construction/nfr-requirements.md +118 -118
  36. package/resources/rules/construction/test-generation.md +112 -112
  37. package/resources/rules/core-workflow.md +196 -196
  38. package/resources/rules/inception/application-design.md +195 -195
  39. package/resources/rules/inception/bolt-planning.md +588 -588
  40. package/resources/rules/inception/reverse-engineering.md +354 -354
  41. package/resources/rules/inception/units-generation.md +505 -505
  42. package/resources/rules/inception/user-stories.md +527 -527
  43. package/resources/rules/inception/workspace-detection.md +82 -82
  44. package/resources/rules/operations/operations.md +19 -19
  45. package/resources/skills/brief/templates/ai-dlc-intent-brief-template.md +149 -149
  46. package/resources/skills/getting-started/SKILL.md +79 -79
  47. package/resources/templates/construction/bolt-spec-template.md +270 -270
  48. package/resources/templates/inception/unit-brief-template.md +188 -188
  49. package/resources/templates/inception/units-template.md +99 -99
@@ -1,195 +1,195 @@
1
- > **DEPRECATED**: This stage has been folded into Units Generation (domain analysis step). The application design work -- identifying components, services, and dependencies -- now happens as part of units-generation.md Step 2: Domain Analysis. This file is retained for backward compatibility with existing workflows but should not be executed as a separate stage.
2
-
3
- ---
4
-
5
- # Application Design - Detailed Steps
6
-
7
- ## Purpose
8
- **High-level component identification and service layer design**
9
-
10
- Application Design focuses on:
11
- - Identifying main functional components and their responsibilities
12
- - Defining component interfaces (not detailed business logic)
13
- - Designing service layer for orchestration
14
- - Establishing component dependencies and communication patterns
15
-
16
- **Note**: Detailed business logic design happens later in Functional Design (per-unit, CONSTRUCTION phase)
17
-
18
- ## Prerequisites
19
- - Context Assessment must be complete
20
- - Requirements Assessment recommended (provides functional context)
21
- - Story Development recommended (user stories guide design decisions)
22
- - Execution plan must indicate Application Design stage should execute
23
-
24
- ## Agent Delegation Strategy
25
-
26
- **MANDATORY**: Delegate application design artifact generation (Step 11) to `oracle`. Do NOT perform architectural design reasoning directly.
27
-
28
- **Execution mode**: Foreground sequential — single coherent architecture task requiring Opus-level reasoning due to high downstream impact on all construction work.
29
-
30
- **Delegation scope**:
31
- - **Orchestrator retains**: Steps 1-10 (context analysis, Q&A generation, answer collection, ambiguity resolution, plan creation, plan approval) and Steps 12-16 (logging, completion message, approval gate, state update).
32
- - **Delegated to `oracle`**: Step 11 (Generate Application Design Artifacts) — the agent produces components.md, component-methods.md, services.md, and component-dependency.md based on the approved plan and resolved Q&A.
33
-
34
- **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
35
-
36
- **After agent completes**: The orchestrator reviews the generated artifacts, presents the completion message, and manages the approval gate.
37
-
38
- **Optional quality gate — `momus` review**:
39
- Application Design artifacts are the foundation for all construction work. Design flaws here cascade to every unit. After `oracle` generates the artifacts (Step 11), the orchestrator may optionally invoke `momus` to critically evaluate the design before presenting it to the user. This is recommended for complex projects or when multiple components/services are defined. The orchestrator should offer: "Would you like Momus to review this design before you approve it?" Momus evaluates against: component completeness, interface consistency, dependency accuracy, and alignment with requirements/stories.
40
-
41
- ## Step-by-Step Execution
42
-
43
- ### 1. Analyze Context
44
- - Read `aidlc-docs/inception/requirements/requirements.md` and per-unit stories at `aidlc-docs/inception/units/{UNIT-NNN-slug}/stories/` (or fallback `aidlc-docs/inception/user-stories/stories.md`)
45
- - Identify key business capabilities and functional areas
46
- - Determine design scope and complexity
47
-
48
- ### 2. Generate Context-Appropriate Questions
49
- **DIRECTIVE**: Analyze the requirements and stories to generate ONLY questions relevant to THIS specific application design. Use the categories below as inspiration, NOT as a mandatory checklist. Skip entire categories if not applicable.
50
-
51
- - Use [Answer]: tag format for each question
52
- - Include [Recommendation]: tag with AI recommendation before each [Answer]: tag
53
- - Focus on ambiguities and missing information specific to this context
54
- - Generate questions only where user input is needed for design decisions
55
- - If presenting multiple-choice options:
56
- - Label the options as A, B, C, D etc.
57
- - Ensure options are mutually exclusive and don't overlap
58
- - ALWAYS include option for custom response: "X) Other (please describe after [Answer]: tag below)"
59
-
60
- **Example question categories** (adapt as needed):
61
- - **Component Identification** - Only if component boundaries or organization is unclear
62
- - **Component Methods** - Only if method signatures need clarification (detailed business rules come later)
63
- - **Service Layer Design** - Only if service orchestration or boundaries are ambiguous
64
- - **Component Dependencies** - Only if communication patterns or dependency management is unclear
65
- - **Design Patterns** - Only if architectural style or pattern choice needs user input
66
-
67
- ### 3. Store Questions File
68
- - Save as `aidlc-docs/inception/application-design/application-design-questions.md`
69
- - Include all [Recommendation]: and [Answer]: tags
70
- - Do NOT include plan checkboxes or artifact lists in this file — this is Q&A only
71
-
72
- ### 4. Request User Input
73
- - Ask user to fill [Answer]: tags in the questions document
74
- - Emphasize importance of design decisions
75
- - Provide clear instructions on completing the [Answer]: tags
76
-
77
- ### GATE: Await User Answers
78
- DO NOT proceed to Step 5 until all questions in application-design-questions.md are answered and validated.
79
- Present the question file to the user and STOP.
80
-
81
- ### 5. ANALYZE ANSWERS (MANDATORY)
82
- Before proceeding, you MUST carefully review all user answers for:
83
- - **Vague or ambiguous responses**: "mix of", "somewhere between", "not sure", "depends"
84
- - **Undefined criteria or terms**: References to concepts without clear definitions
85
- - **Contradictory answers**: Responses that conflict with each other
86
- - **Missing design details**: Answers that lack specific guidance
87
- - **Answers that combine options**: Responses that merge different approaches without clear decision rules
88
-
89
- ### 6. MANDATORY Follow-up Questions
90
- If the analysis in Step 5 reveals ANY ambiguous answers, you MUST:
91
- - Add specific follow-up questions to the questions document using [Answer]: tags
92
- - DO NOT proceed to the plan until all ambiguities are resolved
93
- - Examples of required follow-ups:
94
- - "You mentioned 'mix of A and B' - what specific criteria should determine when to use A vs B?"
95
- - "You said 'somewhere between A and B' - can you define the exact middle ground approach?"
96
- - "You indicated 'not sure' - what additional information would help you decide?"
97
- - "You mentioned 'depends on complexity' - how do you define complexity levels?"
98
-
99
- ### 7. Create Application Design Plan
100
- - **PREREQUISITE**: All questions must be answered and validated (Steps 2-6 complete)
101
- - Generate plan with checkboxes [] for application design
102
- - Incorporate user's answers from the questions file into plan decisions
103
- - Focus on components, responsibilities, methods, business rules, and services
104
- - Each step and sub-step should have a checkbox []
105
-
106
- ### 8. Include Mandatory Design Artifacts in Plan
107
- - **ALWAYS** include these mandatory artifacts in the design plan:
108
- - [ ] Generate components.md with component definitions and high-level responsibilities
109
- - [ ] Generate component-methods.md with method signatures (business rules detailed later in Functional Design)
110
- - [ ] Generate services.md with service definitions and orchestration patterns
111
- - [ ] Generate component-dependency.md with dependency relationships and communication patterns
112
- - [ ] Validate design completeness and consistency
113
-
114
- ### 9. Store Application Design Plan
115
- - Save as `aidlc-docs/inception/plans/application-design-plan.md`
116
- - Do NOT include [Answer]: tags — all design decisions should already be resolved
117
- - Ensure plan covers all design aspects informed by the answered questions
118
-
119
- ### 10. Present Plan for Approval
120
- - Present the plan to the user for review
121
- - Wait for explicit approval before executing
122
- - If user requests changes, update the plan and repeat
123
-
124
- ### 11. Generate Application Design Artifacts
125
- - Execute the approved plan to generate design artifacts
126
- - Create `aidlc-docs/inception/application-design/components.md` with:
127
- - Component name and purpose
128
- - Component responsibilities
129
- - Component interfaces
130
- - Create `aidlc-docs/inception/application-design/component-methods.md` with:
131
- - Method signatures for each component
132
- - High-level purpose of each method
133
- - Input/output types
134
- - Note: Detailed business rules will be defined in Functional Design (per-unit, CONSTRUCTION phase)
135
- - Create `aidlc-docs/inception/application-design/services.md` with:
136
- - Service definitions
137
- - Service responsibilities
138
- - Service interactions and orchestration
139
- - Create `aidlc-docs/inception/application-design/component-dependency.md` with:
140
- - Dependency matrix showing relationships
141
- - Communication patterns between components
142
- - Data flow diagrams
143
-
144
- ### MANDATORY: Post-Generation Consistency Validation
145
-
146
- After the agent generates application design artifacts (components.md, services.md, dependencies.md), the orchestrator MUST validate before presenting to the user:
147
-
148
- 1. **Load decision registry**: Read `aidlc-docs/{workflow-id}/inception/decisions.md` if it exists
149
- 2. **Verify folder paths**: Grep generated artifacts for file path references. All paths must match the decisions in requirements.md BRs (e.g., bolt folder structure, code plan locations)
150
- 3. **Verify naming conventions**: Grep for ID formats. All IDs must match the agreed naming convention (e.g., BOLT-NNN-slug, UNIT-NNN-slug)
151
- 4. **Verify lifecycle states**: Grep for state names. All states must match the agreed state machine in requirements.md BRs
152
- 5. **Verify type definitions**: Check Record vs Array, union member lists against requirements.md FRs
153
- 6. **Fix any violations** before presenting for user review
154
- 7. **Log validation results** in audit.md
155
-
156
- ### 12. Log Approval
157
- - Log approval prompt with timestamp in `aidlc-docs/audit.md`
158
- - Include complete approval prompt text
159
- - Use ISO 8601 timestamp format
160
-
161
- ### 13. Present Completion Message
162
-
163
- ```markdown
164
- # Application Design Complete
165
-
166
- [AI-generated summary of application design artifacts created in bullet points]
167
-
168
- ---
169
-
170
- ⚠️ **REVIEW REQUIRED**
171
-
172
- > Please examine the application design artifacts at:
173
- > `aidlc-docs/{workflow-id}/inception/application-design/`
174
-
175
- **You may:**
176
- - 🔧 **Request Changes** — Ask for modifications to the application design if required
177
- - ➕ **Add Skipped Stage** — Choose to include Units Generation stage (if currently skipped)
178
- - ✅ **Approve & Continue** — Approve design and proceed to **[Units Generation/CONSTRUCTION PHASE]**
179
- ```
180
-
181
- ### 14. Wait for Explicit Approval
182
- - Do not proceed until the user explicitly approves the application design
183
- - Approval must be clear and unambiguous
184
- - If user requests changes, update the design and repeat the approval process
185
-
186
- ### 15. Record Approval Response
187
- - Log the user's approval response with timestamp in `aidlc-docs/audit.md`
188
- - Include the exact user response text
189
- - Mark the approval status clearly
190
-
191
- ### 16. MANDATORY: Update State Tracking
192
- - **MANDATORY**: Update BOTH state files in the SAME interaction:
193
- 1. Mark Application Design stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
194
- 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set application-design status to "completed" with completed_at timestamp, update current_inception_stage to next stage
195
- - **Do NOT proceed to the next stage without completing this step**
1
+ > **DEPRECATED**: This stage has been folded into Units Generation (domain analysis step). The application design work -- identifying components, services, and dependencies -- now happens as part of units-generation.md Step 2: Domain Analysis. This file is retained for backward compatibility with existing workflows but should not be executed as a separate stage.
2
+
3
+ ---
4
+
5
+ # Application Design - Detailed Steps
6
+
7
+ ## Purpose
8
+ **High-level component identification and service layer design**
9
+
10
+ Application Design focuses on:
11
+ - Identifying main functional components and their responsibilities
12
+ - Defining component interfaces (not detailed business logic)
13
+ - Designing service layer for orchestration
14
+ - Establishing component dependencies and communication patterns
15
+
16
+ **Note**: Detailed business logic design happens later in Functional Design (per-unit, CONSTRUCTION phase)
17
+
18
+ ## Prerequisites
19
+ - Context Assessment must be complete
20
+ - Requirements Assessment recommended (provides functional context)
21
+ - Story Development recommended (user stories guide design decisions)
22
+ - Execution plan must indicate Application Design stage should execute
23
+
24
+ ## Agent Delegation Strategy
25
+
26
+ **MANDATORY**: Delegate application design artifact generation (Step 11) to `oracle`. Do NOT perform architectural design reasoning directly.
27
+
28
+ **Execution mode**: Foreground sequential — single coherent architecture task requiring Opus-level reasoning due to high downstream impact on all construction work.
29
+
30
+ **Delegation scope**:
31
+ - **Orchestrator retains**: Steps 1-10 (context analysis, Q&A generation, answer collection, ambiguity resolution, plan creation, plan approval) and Steps 12-16 (logging, completion message, approval gate, state update).
32
+ - **Delegated to `oracle`**: Step 11 (Generate Application Design Artifacts) — the agent produces components.md, component-methods.md, services.md, and component-dependency.md based on the approved plan and resolved Q&A.
33
+
34
+ **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
35
+
36
+ **After agent completes**: The orchestrator reviews the generated artifacts, presents the completion message, and manages the approval gate.
37
+
38
+ **Optional quality gate — `momus` review**:
39
+ Application Design artifacts are the foundation for all construction work. Design flaws here cascade to every unit. After `oracle` generates the artifacts (Step 11), the orchestrator may optionally invoke `momus` to critically evaluate the design before presenting it to the user. This is recommended for complex projects or when multiple components/services are defined. The orchestrator should offer: "Would you like Momus to review this design before you approve it?" Momus evaluates against: component completeness, interface consistency, dependency accuracy, and alignment with requirements/stories.
40
+
41
+ ## Step-by-Step Execution
42
+
43
+ ### 1. Analyze Context
44
+ - Read `aidlc-docs/inception/requirements/requirements.md` and per-unit stories at `aidlc-docs/inception/units/{UNIT-NNN-slug}/stories/` (or fallback `aidlc-docs/inception/user-stories/stories.md`)
45
+ - Identify key business capabilities and functional areas
46
+ - Determine design scope and complexity
47
+
48
+ ### 2. Generate Context-Appropriate Questions
49
+ **DIRECTIVE**: Analyze the requirements and stories to generate ONLY questions relevant to THIS specific application design. Use the categories below as inspiration, NOT as a mandatory checklist. Skip entire categories if not applicable.
50
+
51
+ - Use [Answer]: tag format for each question
52
+ - Include [Recommendation]: tag with AI recommendation before each [Answer]: tag
53
+ - Focus on ambiguities and missing information specific to this context
54
+ - Generate questions only where user input is needed for design decisions
55
+ - If presenting multiple-choice options:
56
+ - Label the options as A, B, C, D etc.
57
+ - Ensure options are mutually exclusive and don't overlap
58
+ - ALWAYS include option for custom response: "X) Other (please describe after [Answer]: tag below)"
59
+
60
+ **Example question categories** (adapt as needed):
61
+ - **Component Identification** - Only if component boundaries or organization is unclear
62
+ - **Component Methods** - Only if method signatures need clarification (detailed business rules come later)
63
+ - **Service Layer Design** - Only if service orchestration or boundaries are ambiguous
64
+ - **Component Dependencies** - Only if communication patterns or dependency management is unclear
65
+ - **Design Patterns** - Only if architectural style or pattern choice needs user input
66
+
67
+ ### 3. Store Questions File
68
+ - Save as `aidlc-docs/inception/application-design/application-design-questions.md`
69
+ - Include all [Recommendation]: and [Answer]: tags
70
+ - Do NOT include plan checkboxes or artifact lists in this file — this is Q&A only
71
+
72
+ ### 4. Request User Input
73
+ - Ask user to fill [Answer]: tags in the questions document
74
+ - Emphasize importance of design decisions
75
+ - Provide clear instructions on completing the [Answer]: tags
76
+
77
+ ### GATE: Await User Answers
78
+ DO NOT proceed to Step 5 until all questions in application-design-questions.md are answered and validated.
79
+ Present the question file to the user and STOP.
80
+
81
+ ### 5. ANALYZE ANSWERS (MANDATORY)
82
+ Before proceeding, you MUST carefully review all user answers for:
83
+ - **Vague or ambiguous responses**: "mix of", "somewhere between", "not sure", "depends"
84
+ - **Undefined criteria or terms**: References to concepts without clear definitions
85
+ - **Contradictory answers**: Responses that conflict with each other
86
+ - **Missing design details**: Answers that lack specific guidance
87
+ - **Answers that combine options**: Responses that merge different approaches without clear decision rules
88
+
89
+ ### 6. MANDATORY Follow-up Questions
90
+ If the analysis in Step 5 reveals ANY ambiguous answers, you MUST:
91
+ - Add specific follow-up questions to the questions document using [Answer]: tags
92
+ - DO NOT proceed to the plan until all ambiguities are resolved
93
+ - Examples of required follow-ups:
94
+ - "You mentioned 'mix of A and B' - what specific criteria should determine when to use A vs B?"
95
+ - "You said 'somewhere between A and B' - can you define the exact middle ground approach?"
96
+ - "You indicated 'not sure' - what additional information would help you decide?"
97
+ - "You mentioned 'depends on complexity' - how do you define complexity levels?"
98
+
99
+ ### 7. Create Application Design Plan
100
+ - **PREREQUISITE**: All questions must be answered and validated (Steps 2-6 complete)
101
+ - Generate plan with checkboxes [] for application design
102
+ - Incorporate user's answers from the questions file into plan decisions
103
+ - Focus on components, responsibilities, methods, business rules, and services
104
+ - Each step and sub-step should have a checkbox []
105
+
106
+ ### 8. Include Mandatory Design Artifacts in Plan
107
+ - **ALWAYS** include these mandatory artifacts in the design plan:
108
+ - [ ] Generate components.md with component definitions and high-level responsibilities
109
+ - [ ] Generate component-methods.md with method signatures (business rules detailed later in Functional Design)
110
+ - [ ] Generate services.md with service definitions and orchestration patterns
111
+ - [ ] Generate component-dependency.md with dependency relationships and communication patterns
112
+ - [ ] Validate design completeness and consistency
113
+
114
+ ### 9. Store Application Design Plan
115
+ - Save as `aidlc-docs/inception/plans/application-design-plan.md`
116
+ - Do NOT include [Answer]: tags — all design decisions should already be resolved
117
+ - Ensure plan covers all design aspects informed by the answered questions
118
+
119
+ ### 10. Present Plan for Approval
120
+ - Present the plan to the user for review
121
+ - Wait for explicit approval before executing
122
+ - If user requests changes, update the plan and repeat
123
+
124
+ ### 11. Generate Application Design Artifacts
125
+ - Execute the approved plan to generate design artifacts
126
+ - Create `aidlc-docs/inception/application-design/components.md` with:
127
+ - Component name and purpose
128
+ - Component responsibilities
129
+ - Component interfaces
130
+ - Create `aidlc-docs/inception/application-design/component-methods.md` with:
131
+ - Method signatures for each component
132
+ - High-level purpose of each method
133
+ - Input/output types
134
+ - Note: Detailed business rules will be defined in Functional Design (per-unit, CONSTRUCTION phase)
135
+ - Create `aidlc-docs/inception/application-design/services.md` with:
136
+ - Service definitions
137
+ - Service responsibilities
138
+ - Service interactions and orchestration
139
+ - Create `aidlc-docs/inception/application-design/component-dependency.md` with:
140
+ - Dependency matrix showing relationships
141
+ - Communication patterns between components
142
+ - Data flow diagrams
143
+
144
+ ### MANDATORY: Post-Generation Consistency Validation
145
+
146
+ After the agent generates application design artifacts (components.md, services.md, dependencies.md), the orchestrator MUST validate before presenting to the user:
147
+
148
+ 1. **Load decision registry**: Read `aidlc-docs/{workflow-id}/inception/decisions.md` if it exists
149
+ 2. **Verify folder paths**: Grep generated artifacts for file path references. All paths must match the decisions in requirements.md BRs (e.g., bolt folder structure, code plan locations)
150
+ 3. **Verify naming conventions**: Grep for ID formats. All IDs must match the agreed naming convention (e.g., BOLT-NNN-slug, UNIT-NNN-slug)
151
+ 4. **Verify lifecycle states**: Grep for state names. All states must match the agreed state machine in requirements.md BRs
152
+ 5. **Verify type definitions**: Check Record vs Array, union member lists against requirements.md FRs
153
+ 6. **Fix any violations** before presenting for user review
154
+ 7. **Log validation results** in audit.md
155
+
156
+ ### 12. Log Approval
157
+ - Log approval prompt with timestamp in `aidlc-docs/audit.md`
158
+ - Include complete approval prompt text
159
+ - Use ISO 8601 timestamp format
160
+
161
+ ### 13. Present Completion Message
162
+
163
+ ```markdown
164
+ # Application Design Complete
165
+
166
+ [AI-generated summary of application design artifacts created in bullet points]
167
+
168
+ ---
169
+
170
+ ⚠️ **REVIEW REQUIRED**
171
+
172
+ > Please examine the application design artifacts at:
173
+ > `aidlc-docs/{workflow-id}/inception/application-design/`
174
+
175
+ **You may:**
176
+ - 🔧 **Request Changes** — Ask for modifications to the application design if required
177
+ - ➕ **Add Skipped Stage** — Choose to include Units Generation stage (if currently skipped)
178
+ - ✅ **Approve & Continue** — Approve design and proceed to **[Units Generation/CONSTRUCTION PHASE]**
179
+ ```
180
+
181
+ ### 14. Wait for Explicit Approval
182
+ - Do not proceed until the user explicitly approves the application design
183
+ - Approval must be clear and unambiguous
184
+ - If user requests changes, update the design and repeat the approval process
185
+
186
+ ### 15. Record Approval Response
187
+ - Log the user's approval response with timestamp in `aidlc-docs/audit.md`
188
+ - Include the exact user response text
189
+ - Mark the approval status clearly
190
+
191
+ ### 16. MANDATORY: Update State Tracking
192
+ - **MANDATORY**: Update BOTH state files in the SAME interaction:
193
+ 1. Mark Application Design stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
194
+ 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set application-design status to "completed" with completed_at timestamp, update current_inception_stage to next stage
195
+ - **Do NOT proceed to the next stage without completing this step**